| @@ -24,15 +24,13 @@ · 23 unmodified lines |
| 24 | #ifndef AVCODEC_VDPAU_INTERNAL_H | 24 | #ifndef AVCODEC_VDPAU_INTERNAL_H |
| 25 | #define AVCODEC_VDPAU_INTERNAL_H | 25 | #define AVCODEC_VDPAU_INTERNAL_H |
| 26 | | 26 | |
| 27 | #include "config.h" | | |
| 28 | #include <stdint.h> | 27 | #include <stdint.h> |
| 29 | #if CONFIG_VDPAU | | |
| 30 | #include <vdpau/vdpau.h> | 28 | #include <vdpau/vdpau.h> |
| 31 | #endif | | |
| 32 | | 29 | |
| 33 | #include "libavutil/frame.h" | 30 | #include "libavutil/frame.h" |
| 34 | | 31 | |
| 35 | #include "avcodec.h" | 32 | #include "avcodec.h" |
| | 33 | #include "vdpau.h" |
| 36 | | 34 | |
| 37 | /** Extract VdpVideoSurface from an AVFrame */ | 35 | /** Extract VdpVideoSurface from an AVFrame */ |
| 38 | static inline uintptr_t ff_vdpau_get_surface_id(AVFrame *pic) | 36 | 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) · 1 unmodified line |
| 40 | return (uintptr_t)pic->data[3]; | 38 | return (uintptr_t)pic->data[3]; |
| 41 | } | 39 | } |
| 42 | | 40 | |
| 43 | struct vdpau_picture_context; | | |
| 44 | #if CONFIG_VDPAU | | |
| 45 | union VDPAUPictureInfo { | 41 | union VDPAUPictureInfo { |
| 46 | VdpPictureInfoH264 h264; | 42 | VdpPictureInfoH264 h264; |
| 47 | VdpPictureInfoMPEG1Or2 mpeg; | 43 | VdpPictureInfoMPEG1Or2 mpeg; |
| @@ -55,8 +51,6 @@ union VDPAUPictureInfo { · 7 unmodified lines |
| 55 | #endif | 51 | #endif |
| 56 | }; | 52 | }; |
| 57 | | 53 | |
| 58 | #include "vdpau.h" | | |
| 59 | | | |
| 60 | typedef struct VDPAUHWContext { | 54 | typedef struct VDPAUHWContext { |
| 61 | AVVDPAUContext context; | 55 | AVVDPAUContext context; |
| 62 | VdpDevice device; | 56 | VdpDevice device; |
| @@ -114,8 +108,6 @@ struct vdpau_picture_context { · 51 unmodified lines |
| 114 | | 108 | |
| 115 | int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile, | 109 | int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile, |
| 116 | int level); | 110 | int level); |
| 117 | #endif //CONFIG_VDPAU | | |
| 118 | | | |
| 119 | int ff_vdpau_common_uninit(AVCodecContext *avctx); | 111 | int ff_vdpau_common_uninit(AVCodecContext *avctx); |
| 120 | | 112 | |
| 121 | int ff_vdpau_common_start_frame(struct vdpau_picture_context *pic, | 113 | int ff_vdpau_common_start_frame(struct vdpau_picture_context *pic, |