[FFmpeg-devel] [PATCH]Set CODEC_PROPERTY_LOSSLESS for j2k for dwt53
Michael Niedermayer
michael at niedermayer.cc
Fri Jul 17 15:49:45 CEST 2015
On Fri, Jul 17, 2015 at 12:46:25PM +0200, Carl Eugen Hoyos wrote:
> Hi!
>
> Attached patch allows to signal lossless mode when decoding j2k.
>
> Please comment, Carl Eugen
> jpeg2000dec.c | 3 +++
> 1 file changed, 3 insertions(+)
> 6a82e7f5e2e6448f69ff784461b4e3d84031fe10 patchj2klossless.diff
> diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
> index 6e60c0a..53870f7 100644
> --- a/libavcodec/jpeg2000dec.c
> +++ b/libavcodec/jpeg2000dec.c
> @@ -469,6 +469,9 @@ static int get_cox(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c)
> /* set integer 9/7 DWT in case of BITEXACT flag */
> if ((s->avctx->flags & CODEC_FLAG_BITEXACT) && (c->transform == FF_DWT97))
> c->transform = FF_DWT97_INT;
> + else if (c->transform == FF_DWT53) {
> + s->avctx->properties |= FF_CODEC_PROPERTY_LOSSLESS;
> + }
LGTM
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
It is what and why we do it that matters, not just one of them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150717/7310ab44/attachment.sig>
More information about the ffmpeg-devel
mailing list