History

avcodec/vdpau: clean up vdpau_internal.h

Also don't include it on files that don't need it. This reduces differences with libav

James Almer committed 10 years ago

Commit be63ef31 parent 376d4b33 files · +1 −11Browse files

Unified · Split

3 files
  1. libavcodec/mpeg12.c +0 −1
  2. libavcodec/svq3.c +0 −1
  3. libavcodec/vdpau_internal.h +1 −9
libavcodec/mpeg12.c+0−1
@@ -39,7 +39,6 @@ · 38 unmodified lines
3939 #include "mpeg12data.h"
4040 #include "mpegvideodata.h"
4141 #include "bytestream.h"
42−#include "vdpau_internal.h"
4342 #include "thread.h"
4443
4544 uint8_t ff_mpeg12_static_rl_table_store[2][2][2*MAX_RUN + MAX_LEVEL + 3];
libavcodec/svq3.c+0−1
@@ -53,7 +53,6 @@ · 52 unmodified lines
5353 #include "mathops.h"
5454 #include "rectangle.h"
5555 #include "tpeldsp.h"
56−#include "vdpau_internal.h"
5756
5857 #if CONFIG_ZLIB
5958 #include <zlib.h>
libavcodec/vdpau_internal.h+1−9
@@ -24,15 +24,13 @@ · 23 unmodified lines
2424 #ifndef AVCODEC_VDPAU_INTERNAL_H
2525 #define AVCODEC_VDPAU_INTERNAL_H
2626
27−#include "config.h"
2827 #include <stdint.h>
29−#if CONFIG_VDPAU
3028 #include <vdpau/vdpau.h>
31−#endif
3229
3330 #include "libavutil/frame.h"
3431
3532 #include "avcodec.h"
33+#include "vdpau.h"
3634
3735 /** Extract VdpVideoSurface from an AVFrame */
3836 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
4038 return (uintptr_t)pic->data[3];
4139 }
4240
43−struct vdpau_picture_context;
44−#if CONFIG_VDPAU
4541 union VDPAUPictureInfo {
4642 VdpPictureInfoH264 h264;
4743 VdpPictureInfoMPEG1Or2 mpeg;
@@ -55,8 +51,6 @@ union VDPAUPictureInfo { · 7 unmodified lines
5551 #endif
5652 };
5753
58−#include "vdpau.h"
59−
6054 typedef struct VDPAUHWContext {
6155 AVVDPAUContext context;
6256 VdpDevice device;
@@ -114,8 +108,6 @@ struct vdpau_picture_context { · 51 unmodified lines
114108
115109 int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile,
116110 int level);
117−#endif //CONFIG_VDPAU
118−
119111 int ff_vdpau_common_uninit(AVCodecContext *avctx);
120112
121113 int ff_vdpau_common_start_frame(struct vdpau_picture_context *pic,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t