~thopiekar/arm-mali/libvdpau-sunxi

« back to all changes in this revision

Viewing changes to vdpau_private.h

  • Committer: Jens Kuske
  • Date: 2016-02-16 13:12:22 UTC
  • Revision ID: git-v1:685769372a8281bf67046a958883323aaf14d232
Use libcedrus

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#define VBV_SIZE (1 * 1024 * 1024)
26
26
 
27
27
#include <stdlib.h>
 
28
#include <cedrus/cedrus.h>
28
29
#include <vdpau/vdpau.h>
29
30
#include <vdpau/vdpau_x11.h>
30
31
#include <X11/Xlib.h>
31
 
#include "ve.h"
32
32
#include "sunxi_disp.h"
33
33
 
34
34
#define INTERNAL_YCBCR_FORMAT (VdpYCbCrFormat)0xffff
35
35
 
36
36
typedef struct
37
37
{
 
38
        cedrus_t *cedrus;
38
39
        Display *display;
39
40
        int screen;
40
41
        VdpPreemptionCallback *preemption_callback;
47
48
typedef struct
48
49
{
49
50
        int ref_count;
50
 
        struct ve_mem *data;
 
51
        cedrus_mem_t *data;
51
52
} yuv_data_t;
52
53
 
53
54
typedef struct video_surface_ctx_struct
58
59
        VdpYCbCrFormat source_format;
59
60
        yuv_data_t *yuv;
60
61
        int luma_size, chroma_size;
61
 
        struct ve_mem *rec;
 
62
        cedrus_mem_t *rec;
62
63
        void *decoder_private;
63
64
        void (*decoder_private_free)(struct video_surface_ctx_struct *surface);
64
65
} video_surface_ctx_t;
67
68
{
68
69
        uint32_t width, height;
69
70
        VdpDecoderProfile profile;
70
 
        struct ve_mem *data;
 
71
        cedrus_mem_t *data;
71
72
        device_ctx_t *device;
72
73
        VdpStatus (*decode)(struct decoder_ctx_struct *decoder, VdpPictureInfo const *info, const int len, video_surface_ctx_t *output);
73
74
        void *private;
106
107
        device_ctx_t *device;
107
108
        VdpRGBAFormat format;
108
109
        uint32_t width, height;
109
 
        struct ve_mem *data;
 
110
        cedrus_mem_t *data;
110
111
        VdpRect dirty;
111
112
        uint32_t flags;
112
113
} rgba_surface_t;