[FFmpeg-devel] [PATCH] libopenjpegdec: decode images with bpc between 10 and 16
Jean First
jeanfirst at gmail.com
Tue May 22 18:52:01 CEST 2012
On Tue May 22 2012 18:49:17 GMT+0200 (CEST), Jean First wrote:
> regression since b7a928b2d1563575a8d9ec5aa606f735620b38ab
>
> Signed-off-by: Jean First<jeanfirst at gmail.com>
> ---
> libavcodec/libopenjpegdec.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/libavcodec/libopenjpegdec.c b/libavcodec/libopenjpegdec.c
> index 9928adb..6654e5a 100644
> --- a/libavcodec/libopenjpegdec.c
> +++ b/libavcodec/libopenjpegdec.c
> @@ -80,6 +80,14 @@ static inline int libopenjpeg_matches_pix_fmt(const opj_image_t *image, enum Pix
> break;
> }
>
> + if ( descriptor.nb_components == 3 ) {
> + if ( descriptor.comp[2].depth_minus1 == 15&& image->comps[2].prec> 10&& image->comps[2].prec< 16&&
> + 1<< descriptor.log2_chroma_w == image->comps[2].dx&&
> + 1<< descriptor.log2_chroma_h == image->comps[2].dy ) {
> + match = 1;
> + }
> + }
> +
> return match;
> }
>
this patch hase some cosmetic glitches - I'll send a new one in a minute.
More information about the ffmpeg-devel
mailing list