On Tue, Mar 19, 2013 at 12:11:04PM +0100, Nicolas Bertrand wrote:
> XYZ colorspace added to decoder, to allow decoding of DCINEMA frames
> ---
>  libavcodec/libopenjpegdec.c |    6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/libavcodec/libopenjpegdec.c b/libavcodec/libopenjpegdec.c
> index 19ab160..1f4eaf4 100644
> --- a/libavcodec/libopenjpegdec.c
> +++ b/libavcodec/libopenjpegdec.c
> @@ -57,12 +57,16 @@
>                             AV_PIX_FMT_YUV420P16, AV_PIX_FMT_YUV422P16, \
>                             AV_PIX_FMT_YUV444P16
>  
> +#define XYZ_PIXEL_FORMATS  AV_PIX_FMT_XYZ12
> +
>  static const enum AVPixelFormat rgb_pix_fmts[]  = {RGB_PIXEL_FORMATS};
>  static const enum AVPixelFormat gray_pix_fmts[] = {GRAY_PIXEL_FORMATS};
>  static const enum AVPixelFormat yuv_pix_fmts[]  = {YUV_PIXEL_FORMATS};
>  static const enum AVPixelFormat any_pix_fmts[]  = {RGB_PIXEL_FORMATS,
>                                                   GRAY_PIXEL_FORMATS,
> -                                                 YUV_PIXEL_FORMATS};
> +                                                 YUV_PIXEL_FORMATS,
> +                                                 XYZ_PIXEL_FORMATS,
> +                                                };
>  
>  typedef struct {
>      AVClass *class;
> -- 

looks OK, thought Diego might want to improve commit message
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to