Re: [FFmpeg-devel] [libav-devel] [PATCHv3] avcodec: Cineform HD Decoder

2016-01-28 Thread Vittorio Giovara
On Thu, Jan 28, 2016 at 1:15 PM, Kieran Kunhya wrote: > On Thu, 28 Jan 2016 at 16:26 Vittorio Giovara > wrote: > >> On Mon, Jan 25, 2016 at 6:15 PM, Kieran Kunhya >> wrote: >> >>> +{ >> >>> +CFHDContext *s = avctx->priv_data; >> >>> + >> >>> +avctx->pix_fmt = AV_PIX_FMT_YUV42

Re: [FFmpeg-devel] [libav-devel] [PATCHv3] avcodec: Cineform HD Decoder

2016-01-28 Thread Kieran Kunhya
On Thu, 28 Jan 2016 at 16:26 Vittorio Giovara wrote: > On Mon, Jan 25, 2016 at 6:15 PM, Kieran Kunhya > wrote: > >>> +{ > >>> +CFHDContext *s = avctx->priv_data; > >>> + > >>> +avctx->pix_fmt = AV_PIX_FMT_YUV422P10; > >> > >> if the decoder supports multiple pixel formats it'

Re: [FFmpeg-devel] [libav-devel] [PATCHv3] avcodec: Cineform HD Decoder

2016-01-28 Thread Vittorio Giovara
On Mon, Jan 25, 2016 at 6:15 PM, Kieran Kunhya wrote: >>> +{ >>> +CFHDContext *s = avctx->priv_data; >>> + >>> +avctx->pix_fmt = AV_PIX_FMT_YUV422P10; >> >> if the decoder supports multiple pixel formats it's better not to >> initialize the pixel format here, and wait until dec

Re: [FFmpeg-devel] [libav-devel] [PATCHv3] avcodec: Cineform HD Decoder

2016-01-25 Thread Kieran Kunhya
On Mon, Jan 25, 2016 at 4:51 PM, Vittorio Giovara wrote: > On Sun, Jan 24, 2016 at 7:34 PM, Kieran Kunhya wrote: >> Decodes YUV 4:2:2 10-bit and RGB 12-bit files. >> Older files with more subbands, skips, Bayer, alpha not supported. >> Alpha requires addition of GBRAP12 pixel format. > > Actually

Re: [FFmpeg-devel] [libav-devel] [PATCHv3] avcodec: Cineform HD Decoder

2016-01-25 Thread Vittorio Giovara
On Sun, Jan 24, 2016 at 7:34 PM, Kieran Kunhya wrote: > Decodes YUV 4:2:2 10-bit and RGB 12-bit files. > Older files with more subbands, skips, Bayer, alpha not supported. > Alpha requires addition of GBRAP12 pixel format. Actually you could set AV_PIX_FMT_GBRAP16 and tweak the bits_per_raw_sampl