Re: [Libav-user] Retrieve 10bit video frames

2012-05-18 Thread Michael Bradshaw
On Thu, May 17, 2012 at 5:43 AM, Dnegel X. wrote: >> > However, the decoded frameYUV->data is of type uint8_t, and I would >> > expect >> > to get something able to store 10bit values like a uint16_t. So, what is >> > returned in this 8bit array in this case? How can I proceed to get the >> > 10bi

Re: [Libav-user] Retrieve 10bit video frames

2012-05-17 Thread Dnegel X.
> > However, the decoded frameYUV->data is of type uint8_t, and I would > > expect > > to get something able to store 10bit values like a uint16_t. So, what is > > returned in this 8bit array in this case? How can I proceed to get the > > 10bit > > values? > > Just cast the buffer. > > uint16_t* pl

Re: [Libav-user] Retrieve 10bit video frames

2012-05-16 Thread Michael Bradshaw
> However, the decoded frameYUV->data is of type uint8_t, and I would expect > to get something able to store 10bit values like a uint16_t. So, what is > returned in this 8bit array in this case? How can I proceed to get the 10bit > values? Just cast the buffer. uint16_t* planes[3] = {(uint16_t*)

[Libav-user] Retrieve 10bit video frames

2012-05-16 Thread Dnegel X.
Hi, I would like to decode 10bit videos into PIX_FMT_YUV422P10LE pixel format, using: struct SwsContext* swContext = sws_getContext(width, height, originalpixfmt, width, height, PIX_FMT_YUV422P10LE, SWS_FAST_BILI