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

Paul B Mahol onemda at gmail.com
Mon Jan 25 10:25:30 CET 2016


On 1/25/16, Kieran Kunhya <kieran at kunhya.com> 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.
> ---
>  libavcodec/Makefile     |   1 +
>  libavcodec/allcodecs.c  |   1 +
>  libavcodec/avcodec.h    |   1 +
>  libavcodec/cfhd.c       | 744
> ++++++++++++++++++++++++++++++++++++++++++++++++
>  libavcodec/cfhd.h       | 107 +++++++
>  libavcodec/cfhddata.c   | 327 +++++++++++++++++++++
>  libavcodec/codec_desc.c |   7 +
>  libavformat/riff.c      |   1 +
>  8 files changed, 1189 insertions(+)
>  create mode 100644 libavcodec/cfhd.c
>  create mode 100644 libavcodec/cfhd.h
>  create mode 100644 libavcodec/cfhddata.c
>

[...]

> +        s->plane[i].idwt_buf = av_malloc(height * stride *
> sizeof(*s->plane[i].idwt_buf));
> +        s->plane[i].idwt_tmp = av_malloc(height * stride *
> sizeof(*s->plane[i].idwt_tmp));

av_malloc_array()

rest LGTM


More information about the ffmpeg-devel mailing list