[FFmpeg-devel] [PATCH 08/13] avformat/mxfenc: add white/black ref /color range
Michael Niedermayer
michael at niedermayer.cc
Tue May 8 20:12:40 EEST 2018
On Tue, May 08, 2018 at 12:47:35PM +0200, Tomas Härdin wrote:
> mån 2018-05-07 klockan 12:38 +0200 skrev Michael Niedermayer:
> > > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> >
> > + if (st->codecpar->color_range != AVCOL_RANGE_UNSPECIFIED) {
> > + int black = 0,
> > + white = (1<<sc->component_depth) - 1,
> > + color = (1<<sc->component_depth) - 1;
> > + if (st->codecpar->color_range == AVCOL_RANGE_MPEG) {
> > + black = 1 << (sc->component_depth - 4);
> > + white = 235 << (sc->component_depth - 8);
> > + color = (14 << (sc->component_depth - 4)) + 1;
> > + }
>
> This feels like something that should be part of pix_fmt stuff or
> something. But maybe someone can refactor that later. Looks OK
> otherwise
ok, will apply
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180508/f5bcad03/attachment.sig>
More information about the ffmpeg-devel
mailing list