[Libav-user] change pixel format without scaling data ? // more3
jim morgenstern
jmorgie at yahoo.com
Sat Jan 5 19:23:09 CET 2013
Sorry -- top-posting is anew concept for me; email says plain text.
I use this many ways. For one instance:
Input is YUV422
Output Is RGB16
-----Original Message-----
From: libav-user-bounces at ffmpeg.org [mailto:libav-user-bounces at ffmpeg.org] On Behalf Of Carl Eugen Hoyos
Sent: Saturday, January 05, 2013 12:23 PM
To: libav-user at ffmpeg.org
Subject: Re: [Libav-user] change pixel format without scaling data ? // more3
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
_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user
More information about the Libav-user
mailing list