1 #ifndef _I965_MEDIA_H264_H_
2 #define _I965_MEDIA_H264_H_
4 #include "i965_avc_bsd.h"
5 #include "i965_avc_hw_scoreboard.h"
6 #include "i965_avc_ildb.h"
7 #include "i965_decoder.h"
10 struct i965_media_context;
12 #define INST_UNIT_GEN4 16
13 #define INST_UNIT_GEN5 8
15 #define MB_CMD_IN_BYTES 64
16 #define MB_CMD_IN_DWS 16
17 #define MB_CMD_IN_OWS 4
20 H264_AVC_COMBINED = 0,
24 #define NUM_H264_AVC_KERNELS 2
26 struct i965_h264_context {
30 } avc_it_command_mb_info;
42 unsigned int width_in_mbs;
43 unsigned int height_in_mbs;
49 int use_avc_hw_scoreboard;
52 unsigned int weight128_luma_l0;
53 unsigned int weight128_luma_l1;
54 unsigned int weight128_chroma_l0;
55 unsigned int weight128_chroma_l1;
56 char weight128_offset0_flag;
57 short weight128_offset0;
59 struct i965_avc_bsd_context i965_avc_bsd_context;
60 struct i965_avc_hw_scoreboard_context avc_hw_scoreboard_context;
61 struct i965_avc_ildb_context avc_ildb_context;
63 GenFrameStoreContext fs_ctx;
64 GenFrameStore fsid_list[MAX_GEN_REFERENCE_FRAMES];
66 struct i965_kernel avc_kernels[NUM_H264_AVC_KERNELS];
67 struct intel_batchbuffer *batch;
70 void i965_media_h264_decode_init(VADriverContextP ctx, struct decode_state *decode_state, struct i965_media_context *media_context);
71 void i965_media_h264_dec_context_init(VADriverContextP ctx, struct i965_media_context *media_context);
73 #endif /* _I965_MEDIA_H264_H_ */