[FFmpeg-devel] Patch for High color and High bit-depth support
Debargha Mukherjee
debargha at google.com
Fri Apr 10 01:00:56 CEST 2015
Resolutions inline.
On Wed, Apr 8, 2015 at 8:45 PM, James Zern <jzern at google.com> wrote:
> On Tue, Apr 7, 2015 at 5:16 PM, Debargha Mukherjee <debargha at google.com>
> wrote:
> > Protected use of VPX_CODEC_CAP_HIGHBITDEPTH within
> > #ifdef VPX_CODEC_CAP_HIGHBITDEPTH
> >
>
> > --- a/libavcodec/libvpx.c
> > +++ b/libavcodec/libvpx.c
> > @@ -19,12 +19,50 @@
> > */
> >
> > #include <vpx/vpx_codec.h>
> > +#include <vpx/vpx_encoder.h>
>
> Technically one could build a decode only lib and this header wouldn't be
> installed.
>
protected within CONFIG_LIBVPX_VP9_ENCODER
>
> > av_cold void ff_vp9_init_static(AVCodec *codec)
> > {
> > if ( vpx_codec_version_major() < 1
> > || (vpx_codec_version_major() == 1 && vpx_codec_version_minor()
> < 3))
> > codec->capabilities |= CODEC_CAP_EXPERIMENTAL;
> > + if ( vpx_codec_version_major() >= 1 && vpx_codec_version_minor()
> >= 4) {
> > + vpx_codec_caps_t codec_caps =
> vpx_codec_get_caps(vpx_codec_vp9_cx());
> >
>
> This should be major > 1 || (major == 1 && minor >= 4)
>
Done.
>
> > +#ifdef VPX_CODEC_CAP_HIGHBITDEPTH
> > + if (codec_caps & VPX_CODEC_CAP_HIGHBITDEPTH)
> > + codec->pix_fmts = vp9_pix_fmts_highbd;
> > + else
> > +#endif
> > + codec->pix_fmts = vp9_pix_fmts_highcol;
>
> I don't think you want to set this in the decode case; if you avoid it
> then you can ifdef the tables out.
>
doesn't harm to keep the tables. Also eventually will be good to set these
for decoding as well.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
--
Debargha Mukherjee, Ph.D.
Staff Software Engineer,
Google, Inc.
Email: debargha at google.com
Phone: 408-234-5956 (cell)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Support-for-VP9-high-color-high-bit-depth-encoding.patch
Type: text/x-patch
Size: 8505 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150409/b0e22d93/attachment.bin>
More information about the ffmpeg-devel
mailing list