Re: [Libav-user] Encoding in PIX_FMT_YUYV422

2012-01-24 Thread Carl Eugen Hoyos
writes: the comment is not clear > too. It says : > > ///< planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples) > > even though the two Croma are inverted, the difference will be in colors. > If they are swapped (little endian instead of big endian due to the fact > that is in 16 bi

Re: [Libav-user] Encoding in PIX_FMT_YUYV422

2012-01-23 Thread francesco
At 15.30 23/01/2012 +, you wrote: > writes: > >> >> locpFrame->data[0] => The buffer containing packetized samples, >> >> Y0,Cr0,Y1,Cb0,Y2,Cr1,Y3,Cb1 >> > >> >This is approximately PIX_FMT_YUYV422, but I suspect you have Cr and Cb >> swapped, >> >please see libavutil/pixfmt.h >> >(Or is th

Re: [Libav-user] Encoding in PIX_FMT_YUYV422

2012-01-23 Thread Carl Eugen Hoyos
writes: > >> locpFrame->data[0] => The buffer containing packetized samples, > >> Y0,Cr0,Y1,Cb0,Y2,Cr1,Y3,Cb1 > > > >This is approximately PIX_FMT_YUYV422, but I suspect you have Cr and Cb > swapped, > >please see libavutil/pixfmt.h > >(Or is the comment wrong there?) [...] > why you state

Re: [Libav-user] Encoding in PIX_FMT_YUYV422

2012-01-23 Thread francesco
At 12.04 23/01/2012 +, you wrote: > writes: > >> I'm attempting to encode in PIX_FMT_YUYV422 using libavcodec. >> It's not clear to me the format of input raw data. I understood that >> all pixel should be in 16 Bit format, but in buffer, how should be inserted >> data ? That is, if locpFram

Re: [Libav-user] Encoding in PIX_FMT_YUYV422

2012-01-23 Thread Carl Eugen Hoyos
Carl Eugen Hoyos writes: > > locpFrame->data[0] => The buffer containing packetized samples, > > Y0,Cr0,Y1,Cb0,Y2,Cr1,Y3,Cb1 > > This is approximately PIX_FMT_YUYV422 I should add that afaict, rawvideo is the only encoder that supports PIX_FMT_YUYV422, so I don't think that is what you want

Re: [Libav-user] Encoding in PIX_FMT_YUYV422

2012-01-23 Thread Carl Eugen Hoyos
writes: > I'm attempting to encode in PIX_FMT_YUYV422 using libavcodec. > It's not clear to me the format of input raw data. I understood that > all pixel should be in 16 Bit format, but in buffer, how should be inserted > data ? That is, if locpFrame is a pointer to an AVFrame, I should inser

[Libav-user] Encoding in PIX_FMT_YUYV422

2012-01-23 Thread francesco
Hi to all I'm attempting to encode in PIX_FMT_YUYV422 using libavcodec. It's not clear to me the format of input raw data. I understood that all pixel should be in 16 Bit format, but in buffer, how should be inserted data ? That is, if locpFrame is a pointer to an AVFrame, I should insert; locp