Lines Matching defs:wi
20 void viddec_mpeg2_append_workitem(void *parent, viddec_workload_item_t *wi, uint8_t next_wl)
24 viddec_pm_append_workitem_next(parent, wi);
28 viddec_pm_append_workitem(parent, wi);
80 qmat_packed = (uint32_t *) parser->wi.qmat;
103 qmat_packed = (uint32_t *) parser->wi.qmat;
126 parser->wi.csi1 = 0x0;
127 parser->wi.csi2 = 0x0;
128 parser->wi.cpi1 = 0x0;
129 parser->wi.cpce1 = 0x0;
142 parser->wi.csi1 |= (parser->mpeg2_stream) << 1;
143 parser->wi.csi1 |= (parser->info.seq_hdr.constrained_parameters_flag) << 2;
144 parser->wi.csi1 |= (parser->info.seq_ext.progressive_sequence) << 3;
145 parser->wi.csi1 |= (parser->info.seq_ext.chroma_format) << 16;
146 parser->wi.csi1 |= (parser->info.qnt_ext.load_intra_quantiser_matrix) << 19;
147 parser->wi.csi1 |= (parser->info.qnt_ext.load_non_intra_quantiser_matrix) << 20;
148 parser->wi.csi1 |= (parser->info.qnt_ext.load_chroma_intra_quantiser_matrix) << 21;
149 parser->wi.csi1 |= (parser->info.qnt_ext.load_chroma_non_intra_quantiser_matrix) << 22;
150 MPEG2_DEB("Core Sequence Info 1: 0x%.8X\n", parser->wi.csi1);
153 parser->wi.csi2 |= (parser->info.seq_hdr.horizontal_size_value & MPEG2_BIT_MASK_11);
154 parser->wi.csi2 |= (parser->info.seq_hdr.vertical_size_value & MPEG2_BIT_MASK_11) << 14;
155 MPEG2_DEB("Core Sequence Info 2: 0x%.8X\n", parser->wi.csi2);
158 parser->wi.cpi1 |= (parser->info.pic_hdr.full_pel_forward_vect);
159 parser->wi.cpi1 |= (parser->info.pic_hdr.forward_f_code) << 1;
160 parser->wi.cpi1 |= (parser->info.pic_hdr.full_pel_backward_vect) << 4;
161 parser->wi.cpi1 |= (parser->info.pic_hdr.backward_f_code) << 5;
162 parser->wi.cpi1 |= (parser->info.pic_cod_ext.fcode00) << 8;
163 parser->wi.cpi1 |= (parser->info.pic_cod_ext.fcode01) << 12;
164 parser->wi.cpi1 |= (parser->info.pic_cod_ext.fcode10) << 16;
165 parser->wi.cpi1 |= (parser->info.pic_cod_ext.fcode11) << 20;
166 parser->wi.cpi1 |= (parser->info.pic_cod_ext.intra_dc_precision) << 24;
167 parser->wi.cpi1 |= (parser->info.pic_hdr.picture_coding_type-1) << 26;
168 MPEG2_DEB("Core Picture Info 1: 0x%.8X\n", parser->wi.cpi1);
171 parser->wi.cpce1 |= (parser->info.pic_cod_ext.composite_display_flag);
172 parser->wi.cpce1 |= (parser->info.pic_cod_ext.progressive_frame) << 1;
173 parser->wi.cpce1 |= (parser->info.pic_cod_ext.chroma_420_type) << 2;
174 parser->wi.cpce1 |= (parser->info.pic_cod_ext.repeat_first_field) << 3;
175 parser->wi.cpce1 |= (parser->info.pic_cod_ext.alternate_scan) << 4;
176 parser->wi.cpce1 |= (parser->info.pic_cod_ext.intra_vlc_format) << 5;
177 parser->wi.cpce1 |= (parser->info.pic_cod_ext.q_scale_type) << 6;
178 parser->wi.cpce1 |= (parser->info.pic_cod_ext.concealment_motion_vectors) << 7;
179 parser->wi.cpce1 |= (parser->info.pic_cod_ext.frame_pred_frame_dct) << 8;
180 parser->wi.cpce1 |= (parser->info.pic_cod_ext.top_field_first) << 9;
181 parser->wi.cpce1 |= (parser->info.pic_cod_ext.picture_structure) << 10;
182 MPEG2_DEB("Core Picture Ext Info 1: 0x%.8X\n", parser->wi.cpce1);
190 viddec_workload_item_t wi;
191 wi.vwi_type = wl_type;
193 wi.ref_frame.reference_id = 0;
194 wi.ref_frame.luma_phys_addr = 0;
195 wi.ref_frame.chroma_phys_addr = 0;
196 viddec_mpeg2_append_workitem( parent, &wi, flag );
202 viddec_workload_item_t wi;
204 wi.vwi_type = VIDDEC_WORKLOAD_REFERENCE_FRAME_REORDER;
205 wi.ref_reorder.ref_table_offset = 0;
207 wi.ref_reorder.ref_reorder_00010203 = 0x01010203;
208 wi.ref_reorder.ref_reorder_04050607 = 0x04050607;
209 viddec_mpeg2_append_workitem( parent, &wi, flag );
318 viddec_workload_item_t wi;
323 memset(&wi, 0, sizeof(viddec_workload_item_t));
324 wi.vwi_type = VIDDEC_WORKLOAD_SEQUENCE_INFO;
326 viddec_fw_mp2_sh_set_horizontal_size_value ( &(wi.mp2_sh) , parser->info.seq_hdr.horizontal_size_value);
327 viddec_fw_mp2_sh_set_vertical_size_value ( &(wi.mp2_sh) , parser->info.seq_hdr.vertical_size_value);
328 viddec_fw_mp2_sh_set_aspect_ratio_information ( &(wi.mp2_sh) , parser->info.seq_hdr.aspect_ratio_information);
329 viddec_fw_mp2_sh_set_frame_rate_code ( &(wi.mp2_sh) , parser->info.seq_hdr.frame_rate_code);
330 viddec_fw_mp2_sh_set_bit_rate_value ( &(wi.mp2_sh) , parser->info.seq_hdr.bit_rate_value);
331 viddec_fw_mp2_sh_set_vbv_buffer_size_value ( &(wi.mp2_sh) , parser->info.seq_hdr.vbv_buffer_size_value);
333 viddec_mpeg2_append_workitem(parent, &wi, parser->mpeg2_use_next_workload);
339 memset(&wi, 0, sizeof(viddec_workload_item_t));
340 wi.vwi_type = VIDDEC_WORKLOAD_MPEG2_SEQ_EXT;
342 viddec_fw_mp2_se_set_profile_and_level_indication( &(wi.mp2_se) , parser->info.seq_ext.profile_and_level_indication);
343 viddec_fw_mp2_se_set_progressive_sequence ( &(wi.mp2_se) , parser->info.seq_ext.progressive_sequence);
344 viddec_fw_mp2_se_set_chroma_format ( &(wi.mp2_se) , parser->info.seq_ext.chroma_format);
345 viddec_fw_mp2_se_set_horizontal_size_extension ( &(wi.mp2_se) , parser->info.seq_ext.horizontal_size_extension);
346 viddec_fw_mp2_se_set_vertical_size_extension ( &(wi.mp2_se) , parser->info.seq_ext.vertical_size_extension);
347 viddec_fw_mp2_se_set_bit_rate_extension ( &(wi.mp2_se) , parser->info.seq_ext.bit_rate_extension);
348 viddec_fw_mp2_se_set_vbv_buffer_size_extension ( &(wi.mp2_se) , parser->info.seq_ext.vbv_buffer_size_extension);
349 viddec_fw_mp2_se_set_frame_rate_extension_n ( &(wi.mp2_se) , parser->info.seq_ext.frame_rate_extension_n);
350 viddec_fw_mp2_se_set_frame_rate_extension_d ( &(wi.mp2_se) , parser->info.seq_ext.frame_rate_extension_d);
352 viddec_mpeg2_append_workitem(parent, &wi, parser->mpeg2_use_next_workload);
358 memset(&wi, 0, sizeof(viddec_workload_item_t));
359 wi.vwi_type = VIDDEC_WORKLOAD_DISPLAY_INFO;
361 viddec_fw_mp2_sde_set_video_format ( &(wi.mp2_sde) , parser->info.seq_disp_ext.video_format);
362 viddec_fw_mp2_sde_set_color_description ( &(wi.mp2_sde) , parser->info.seq_disp_ext.colour_description);
363 viddec_fw_mp2_sde_set_color_primaries ( &(wi.mp2_sde) , parser->info.seq_disp_ext.colour_primaries);
364 viddec_fw_mp2_sde_set_transfer_characteristics( &(wi.mp2_sde) , parser->info.seq_disp_ext.transfer_characteristics);
365 viddec_fw_mp2_sde_set_display_horizontal_size ( &(wi.mp2_sde) , parser->info.seq_disp_ext.display_horizontal_size);
366 viddec_fw_mp2_sde_set_display_vertical_size ( &(wi.mp2_sde) , parser->info.seq_disp_ext.display_vertical_size);
368 viddec_mpeg2_append_workitem(parent, &wi, parser->mpeg2_use_next_workload);
374 memset(&wi, 0, sizeof(viddec_workload_item_t));
375 wi.vwi_type = VIDDEC_WORKLOAD_GOP_INFO;
377 viddec_fw_mp2_gop_set_closed_gop ( &(wi.mp2_gop) , parser->info.gop_hdr.closed_gop);
378 viddec_fw_mp2_gop_set_broken_link( &(wi.mp2_gop) , parser->info.gop_hdr.broken_link);
380 viddec_mpeg2_append_workitem(parent, &wi, parser->mpeg2_use_next_workload);
399 viddec_workload_item_t wi;
403 wi.vwi_type = workitem_type;
404 wi.data.data_offset = (char *) address - (const char *) initial_address;
405 wi.data.data_payload[0] = address[0];
406 wi.data.data_payload[1] = address[1];
409 viddec_mpeg2_append_workitem(parent, &wi, flag);
440 (uint32_t *) &parser->wi,
450 (uint32_t *) parser->wi.qmat,