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
39#include "mpeg12data.h"39#include "mpeg12data.h"
40#include "mpegvideodata.h"40#include "mpegvideodata.h"
41#include "bytestream.h"41#include "bytestream.h"
42#include "vdpau_internal.h"
43#include "thread.h"42#include "thread.h"
44 43
45uint8_t ff_mpeg12_static_rl_table_store[2][2][2*MAX_RUN + MAX_LEVEL + 3];44uint8_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
53#include "mathops.h"53#include "mathops.h"
54#include "rectangle.h"54#include "rectangle.h"
55#include "tpeldsp.h"55#include "tpeldsp.h"
56#include "vdpau_internal.h"
57 56
58#if CONFIG_ZLIB57#if CONFIG_ZLIB
59#include <zlib.h>58#include <zlib.h>
libavcodec/vdpau_internal.h+1−9
@@ -24,15 +24,13 @@ · 23 unmodified lines
24#ifndef AVCODEC_VDPAU_INTERNAL_H24#ifndef AVCODEC_VDPAU_INTERNAL_H
25#define AVCODEC_VDPAU_INTERNAL_H25#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 */
38static inline uintptr_t ff_vdpau_get_surface_id(AVFrame *pic)36static 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
43struct vdpau_picture_context;
44#if CONFIG_VDPAU
45union VDPAUPictureInfo {41union VDPAUPictureInfo {
46 VdpPictureInfoH264 h264;42 VdpPictureInfoH264 h264;
47 VdpPictureInfoMPEG1Or2 mpeg;43 VdpPictureInfoMPEG1Or2 mpeg;
@@ -55,8 +51,6 @@ union VDPAUPictureInfo { · 7 unmodified lines
55#endif51#endif
56};52};
57 53
58#include "vdpau.h"
59
60typedef struct VDPAUHWContext {54typedef 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
115int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile,109int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile,
116 int level);110 int level);
117#endif //CONFIG_VDPAU
118
119int ff_vdpau_common_uninit(AVCodecContext *avctx);111int ff_vdpau_common_uninit(AVCodecContext *avctx);
120 112
121int ff_vdpau_common_start_frame(struct vdpau_picture_context *pic,113int 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