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
31 } avc_it_command_mb_info;
43 unsigned int width_in_mbs;
44 unsigned int height_in_mbs;
50 int use_avc_hw_scoreboard;
53 unsigned int weight128_luma_l0;
54 unsigned int weight128_luma_l1;
55 unsigned int weight128_chroma_l0;
56 unsigned int weight128_chroma_l1;
57 char weight128_offset0_flag;
58 short weight128_offset0;
60 struct i965_avc_bsd_context i965_avc_bsd_context;
61 struct i965_avc_hw_scoreboard_context avc_hw_scoreboard_context;
62 struct i965_avc_ildb_context avc_ildb_context;
64 GenFrameStoreContext fs_ctx;
65 GenFrameStore fsid_list[MAX_GEN_REFERENCE_FRAMES];
67 struct i965_kernel avc_kernels[NUM_H264_AVC_KERNELS];
68 struct intel_batchbuffer *batch;
71 void i965_media_h264_decode_init(VADriverContextP ctx, struct decode_state *decode_state, struct i965_media_context *media_context);
72 void i965_media_h264_dec_context_init(VADriverContextP ctx, struct i965_media_context *media_context);
74 #endif /* _I965_MEDIA_H264_H_ */