[Libav-user] change pixel format without scaling data ? // more3

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Jan 5 18:22:58 CET 2013


jim morgenstern <jmorgie at ...> writes:

> Code snippet:
> #define RGB16  PIX_FMT_RGB48LE  // little endian
> #define RGB    PIX_FMT_BGR24
> #define YUV422 PIX_FMT_YUV422P10LE
> #define YUV444 PIX_FMT_YUV444P16LE

(That must of course make the code much more readable 
and significantly ease the search for a problem as 
the one you seem to be having...)

> void Rescaler ( uint8_t* input_data,  AVPicture* outp, 
> int in_width, int in_height, PixelFormat in_pix_fmt, 
> int out_width, int out_height, PixelFormat out_pix_fmt)

So what did you pass as in_pix_fmt and out_pix_fmt ?

Please do not top-post on this mailing list, it 
is considered rude. And please force your mailer 
to "text-only".

Carl Eugen



More information about the Libav-user mailing list