~ubuntu-branches/ubuntu/natty/libva/natty

« back to all changes in this revision

Viewing changes to i965_drv_video/i965_drv_video.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler, Artur Rona, Reinhard Tartler
  • Date: 2011-02-13 19:01:16 UTC
  • mfrom: (3.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110213190116-wy9fqh71nmomiacl
Tags: 1.0.8-3
[ Artur Rona ]
* Update library dependencies to fix FTBFS properly.

[ Reinhard Tartler ]
* Disable i965 driver on hurd-i386, Closes: #613102

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#ifndef _I965_DRV_VIDEO_H_
31
31
#define _I965_DRV_VIDEO_H_
32
32
 
33
 
#include "va.h"
 
33
#include <va/va.h>
 
34
#include <va/va_backend.h>
 
35
 
34
36
#include "object_heap.h"
35
37
 
36
38
#include "intel_driver.h"
41
43
#define I965_MAX_PROFILES                       11
42
44
#define I965_MAX_ENTRYPOINTS                    5
43
45
#define I965_MAX_CONFIG_ATTRIBUTES              10
44
 
#define I965_MAX_IMAGE_FORMATS                  10
45
 
#define I965_MAX_SUBPIC_FORMATS                 2
 
46
#define I965_MAX_IMAGE_FORMATS                  3
 
47
#define I965_MAX_SUBPIC_FORMATS                 4
46
48
#define I965_MAX_DISPLAY_ATTRIBUTES             4
47
49
#define I965_STR_VENDOR                         "i965 Driver 0.1"
48
50
 
51
53
    unsigned char *buffer;
52
54
    dri_bo *bo;
53
55
    int ref_count;
 
56
    int num_elements;
54
57
};
55
58
    
56
59
struct object_config 
62
65
    int num_attribs;
63
66
};
64
67
 
 
68
#define NUM_SLICES     10
 
69
 
65
70
struct decode_state
66
71
{
67
72
    struct buffer_store *pic_param;
68
 
    struct buffer_store *slice_param;
 
73
    struct buffer_store **slice_params;
69
74
    struct buffer_store *iq_matrix;
70
75
    struct buffer_store *bit_plane;
71
 
    struct buffer_store *slice_data;
 
76
    struct buffer_store **slice_datas;
72
77
    VASurfaceID current_render_target;
73
 
    int num_slices;
 
78
    int max_slice_params;
 
79
    int max_slice_datas;
 
80
    int num_slice_params;
 
81
    int num_slice_datas;
74
82
};
75
83
 
76
84
struct object_context 
86
94
    struct decode_state decode_state;
87
95
};
88
96
 
 
97
#define SURFACE_REFERENCED      (1 << 0)
 
98
#define SURFACE_DISPLAYED       (1 << 1)
 
99
 
89
100
struct object_surface 
90
101
{
91
102
    struct object_base base;
94
105
    int width;
95
106
    int height;
96
107
    int size;
 
108
    int orig_width;
 
109
    int orig_height;
 
110
    int flags;
97
111
    dri_bo *bo;
 
112
    int pp_out_width;
 
113
    int pp_out_height;
 
114
    int orig_pp_out_width;
 
115
    int orig_pp_out_height;
 
116
    dri_bo *pp_out_bo;
 
117
    void (*free_private_data)(void **data);
 
118
    void *private_data;
98
119
};
99
120
 
100
121
struct object_buffer 
124
145
    unsigned int format;
125
146
    int width;
126
147
    int height;
 
148
    int pitch;
127
149
    dri_bo *bo;
128
150
};
129
151
 
130
 
 
131
 
 
132
152
struct i965_driver_data 
133
153
{
134
154
    struct intel_driver_data intel;