Le jeudi 10 janvier 2013 21:00:48, Luca Barbato a écrit :
> > diff --git a/libavcodec/vdpau.h b/libavcodec/vdpau.h
> > index 241ff19..65492aa 100644
> > --- a/libavcodec/vdpau.h
> > +++ b/libavcodec/vdpau.h
> > @@ -52,6 +52,74 @@
> >
> > #include <vdpau/vdpau.h>
> > #include <vdpau/vdpau_x11.h>
> >
> > +union VdpPictureInfo {
> > + VdpPictureInfoH264 h264;
> > + VdpPictureInfoMPEG1Or2 mpeg;
> > + VdpPictureInfoVC1 vc1;
> > + VdpPictureInfoMPEG4Part2 mpeg4;
> > +};
> > +
> > +/**
> > + * This structure is used to share data between the Libav library and
> > + * the client video application.
> > + * This shall be zero-allocated and available as
> > + * AVCodecContext.hwaccel_context. All user members can be set once
> > + * during initialization or through each AVCodecContext.get_buffer()
> > + * function call. In any case, they must be valid prior to calling
> > + * decoding functions.
> > + */
> > +struct vdpau_context {
>
> Make it a typedef VDPAUContext
I don't mind, but then it won't follow the same style as the other hwaccel...
> Maybe also the other struct could enjoy that.
I only moved the existing union declaration out of `struct
vdpau_render_state'... Also, the type is otherwise never mentioned, so I do
not really see a point in typedef.
--
Rémi Denis-Courmont
http://www.remlab.net/
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel