[FFmpeg-devel] [PATCH] avcodec/tiff: Check for Tiled and Stripped TIFFs
Michael Niedermayer
michael at niedermayer.cc
Thu May 21 15:17:07 EEST 2020
On Thu, May 21, 2020 at 12:13:15PM +0200, Anton Khirnov wrote:
> Quoting Michael Niedermayer (2020-05-21 08:59:27)
> >
> > I dont see IS_IRAP_NAL() and IS_IDR_NAL() to check every field in the headers
> > to be consistent with IDR / IRAP NALs, which is what the tiff code in this
> > thread does kind off ..
> >
> > to match hevc, i could add something like
> > #define HAVE_TILES(s) s->has_tiles
> > #define HAVE_STRIPS(s) s->strips
> >
> > but iam not sure what that would simplify
> > The validity checks are needed once and if thats put in a macro then maybe that
> > could be called HAVE_RANDOM_TILE_BITS() and HAVE_RANDOM_STRIP_BITS() could be
> > maybe a possibility
> > then again if thats what is suggested then i would suggest to rather add 2
> > local variable with these names instead of a macro which would seem more
> > readable
> >
> > whats your opinion ?
>
> I see little difference between a macro and a local variable in this
> case, either one is fine with me. And both are significantly more
> readable than a giant condition that the reader has to reverse engineer
> into (have_tiles && have_strips)
ok, will apply it with local variables
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200521/b0b41b22/attachment.sig>
More information about the ffmpeg-devel
mailing list