[FFmpeg-devel] [PATCH]Add refdist_flag to VC1Context

Stephen Warren swarren
Wed Jan 7 19:02:24 CET 2009


Reimar D?ffinger wrote:
> 
> On Wed, Jan 07, 2009 at 04:00:26PM +0000, Carl Eugen Hoyos wrote:
> > Reimar D?ffinger <Reimar.Doeffinger <at> stud.uni-karlsruhe.de> writes:
> > > On Tue, Jan 06, 2009 at 02:02:12PM +0100, Carl Eugen Hoyos wrote:
> > > > To add VDPAU support for VC1, refdist has to be exported to
> > > > VC1Context.
> > >
> > > What is the meaning of that flag?
> >
> > /usr/include/vdpau/vdpau.h says:
> > Copy of the VC-1 bitstream field. See VC-1 6.2.4.
> >
> > It turned out that it makes no difference for the samples I tried.
> > I still think it is good to export the flag if possible.
> 
> I doubt the flag is relevant, but going by some early draft it should
> be the same as
> pict_type == FF_I_TYPE || pict_type == FF_B_TYPE
> in which case there would be no point in exporting it.
> To test, you should at least use one of the interlaced VC-1 samples,
> otherwise I think that code won't even be reached...

I doubt it's equivalent to that pict_type formula, or the field would
not be present in the stream; it could simply be derived.

This flag indicates whether the refdist syntax element is present in
The stream or not, and hence is required for a VLD-level decoder
(such as VDPAU) to parse the stream data correctly.

-- 
nvpublic





More information about the ffmpeg-devel mailing list