[VDPAU] Support H264 Hi10 via vdpau
Stephen Warren
swarren at nvidia.com
Tue Oct 29 15:58:36 CET 2013
Christian König wrote at Tuesday, October 29, 2013 2:06 AM:
> Am 28.10.2013 18:47, schrieb Stephen Warren:
> > ... although actually looking at the new fields you're adding, won't
> > the values *always* be "10" if the new profile is in use? I think you
> > only need to do one of adding a new profile value, or adding new
> > fields to the picture info struct, not both? Re: [PATCH 1/2] hi10:
> > bump version in configure.ac
>
> Nope, IIRC the spec says that those two fields *can* be larger than 0 if
> you have Hi10P (e.g. represent 9 or 10 bits per luma/chroma component),
> but they don't *have to*!
I'm assuming that "but they don't have to" means:
* If the stream is 8-bit, those fields can be 0, or 8.
* If the stream is 9-/10-bit, those fields must be non-zero in order to
Indicate that.
Presumably these fields don't vary throughout the stream, so I would expect
the application algorithm to be:
* If the stream is 8-bit, then use the existing VDP_DECODER_PROFILE_H264_*
* If the stream is 9-/10-bit, then use the new VDP_DECODER_PROFILE_H264_HI10.
So, perhaps it makes sense to add the new fields for the HI10 profile, but
not the existing profiles.
--
nvpublic
More information about the VDPAU
mailing list