OSDN Git Service

Bump version to 0.20
[android-x86/hardware-intel-common-libva.git] / dummy_drv_video / dummy_drv_video.h
1 /*
2  * @COPYRIGHT@ Intel Confidential - Unreleased Software
3  */
4
5 #ifndef _DUMMY_DRV_VIDEO_H_
6 #define _DUMMY_DRV_VIDEO_H_
7
8 #include "va.h"
9 #include "object_heap.h"
10
11 #define DUMMY_MAX_PROFILES                              11
12 #define DUMMY_MAX_ENTRYPOINTS                   5
13 #define DUMMY_MAX_CONFIG_ATTRIBUTES             10
14
15 struct dummy_driver_data {
16     struct object_heap  config_heap;
17     struct object_heap  context_heap;
18     struct object_heap  surface_heap;
19     struct object_heap  buffer_heap;
20 };
21
22 struct object_config {
23     struct object_base base;
24     VAProfile profile;
25     VAEntrypoint entrypoint;
26     VAConfigAttrib attrib_list[DUMMY_MAX_CONFIG_ATTRIBUTES];
27     int attrib_count;
28 };
29
30 struct object_context {
31     struct object_base base;
32     VAContext *context;
33     VAConfigID config;
34     VASurfaceID current_render_target;
35 };
36
37 struct object_surface {
38     struct object_base base;
39     VASurface *surface;
40 };
41
42 struct object_buffer {
43     struct object_base base;
44     void *buffer_data;
45     int max_num_elements;
46     int num_elements;
47 };
48
49 typedef struct object_config *object_config_p;
50 typedef struct object_context *object_context_p;
51 typedef struct object_surface *object_surface_p;
52 typedef struct object_buffer *object_buffer_p;
53
54 #endif /* _DUMMY_DRV_VIDEO_H_ */