X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fvdpau_internal.h;h=77800af33fc1eda7556749dc00dccab2007a575b;hb=e3842e87f2f03f8e2053cd4f5b7354e0274c2110;hp=8a63733546b371d7f39bfd55578f611959fb5c81;hpb=f512e4a39037ef798ec78170f734c7733abe3231;p=ffmpeg diff --git a/libavcodec/vdpau_internal.h b/libavcodec/vdpau_internal.h index 8a63733546b..77800af33fc 100644 --- a/libavcodec/vdpau_internal.h +++ b/libavcodec/vdpau_internal.h @@ -24,15 +24,13 @@ #ifndef AVCODEC_VDPAU_INTERNAL_H #define AVCODEC_VDPAU_INTERNAL_H -#include "config.h" #include -#if CONFIG_VDPAU #include -#endif #include "libavutil/frame.h" #include "avcodec.h" +#include "vdpau.h" /** Extract VdpVideoSurface from an AVFrame */ static inline uintptr_t ff_vdpau_get_surface_id(AVFrame *pic) @@ -40,8 +38,6 @@ static inline uintptr_t ff_vdpau_get_surface_id(AVFrame *pic) return (uintptr_t)pic->data[3]; } -struct vdpau_picture_context; -#if CONFIG_VDPAU union VDPAUPictureInfo { VdpPictureInfoH264 h264; VdpPictureInfoMPEG1Or2 mpeg; @@ -55,8 +51,6 @@ union VDPAUPictureInfo { #endif }; -#include "vdpau.h" - typedef struct VDPAUHWContext { AVVDPAUContext context; VdpDevice device; @@ -114,8 +108,6 @@ struct vdpau_picture_context { int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile, int level); -#endif //CONFIG_VDPAU - int ff_vdpau_common_uninit(AVCodecContext *avctx); int ff_vdpau_common_start_frame(struct vdpau_picture_context *pic,