larksuite / rsmpeg

A Rust crate that exposes FFmpeg's power as much as possible.
https://docs.rs/rsmpeg/latest/rsmpeg/
MIT License
677 stars 41 forks source link

There are color differences in the result of image processing #195

Closed phial3 closed 1 month ago

phial3 commented 1 month ago

Here are my steps:

  1. load image, get AVFrame yuv420p
  2. convert AVFrame yuv420p to RGB24
  3. get ImageBuffer from ImageBuffer::from_raw(width, height, buffer), this buffer is AVFrame RGB24 data
  4. save iamge

there are color differences : dog The result of processing: frame_0

what should i do?