2 * Copyright © 2014 Intel Corporation
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the
6 * "Software"), to deal in the Software without restriction, including
7 * without limitation the rights to use, copy, modify, merge, publish,
8 * distribute, sub license, and/or sell copies of the Software, and to
9 * permit persons to whom the Software is furnished to do so, subject to
10 * the following conditions:
12 * The above copyright notice and this permission notice (including the
13 * next paragraph) shall be included in all copies or substantial portions
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
19 * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
20 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 * Xiang Haihao <haihao.xiang@intel.com>
35 #include <intel_bufmgr.h>
36 #include "i965_decoder.h"
37 #include "vp9_probs.h"
41 typedef struct vp9_frame_status
44 uint16_t frame_height;
47 uint8_t refresh_frame_context;
48 uint8_t frame_context_idx;
50 uint8_t prob_buffer_saved_flag;
51 uint8_t prob_buffer_restored_flag;
52 dri_bo * mv_temporal_buffer_bo;
53 }vp9_last_frame_status;
55 struct gen9_hcpd_context
57 struct hw_context base;
59 GenFrameStoreContext fs_ctx;
61 GenFrameStore reference_surfaces[MAX_GEN_HCP_REFERENCE_FRAMES];
63 VAIQMatrixBufferHEVC iq_matrix_hevc;
65 uint16_t picture_width_in_pixels;
66 uint16_t picture_height_in_pixels;
67 uint16_t picture_width_in_ctbs;
68 uint16_t picture_height_in_ctbs;
69 uint16_t picture_width_in_min_cb_minus1;
70 uint16_t picture_height_in_min_cb_minus1;
74 GenBuffer deblocking_filter_line_buffer;
75 GenBuffer deblocking_filter_tile_line_buffer;
76 GenBuffer deblocking_filter_tile_column_buffer;
77 GenBuffer metadata_line_buffer;
78 GenBuffer metadata_tile_line_buffer;
79 GenBuffer metadata_tile_column_buffer;
80 GenBuffer sao_line_buffer;
81 GenBuffer sao_tile_line_buffer;
82 GenBuffer sao_tile_column_buffer;
83 GenBuffer hvd_line_rowstore_buffer;
84 GenBuffer hvd_tile_rowstore_buffer;
85 GenBuffer vp9_probability_buffer;
86 GenBuffer vp9_segment_id_buffer;
88 unsigned short first_inter_slice_collocated_ref_idx;
89 unsigned short first_inter_slice_collocated_from_l0_flag;
90 int first_inter_slice_valid;
92 vp9_last_frame_status last_frame;
93 FRAME_CONTEXT vp9_frame_ctx[FRAME_CONTEXTS];
94 FRAME_CONTEXT vp9_fc_inter_default;
95 FRAME_CONTEXT vp9_fc_key_default;
97 FRAME_CONTEXT vp9_saved_fc;
100 #endif /* GEN9_MFD_H */