Lines Matching refs:ps_sps

147                                  sps_t *ps_sps,  in ihevcd_parse_pred_wt_ofst()  argument
161 if(ps_sps->i1_chroma_format_idc != 0) in ihevcd_parse_pred_wt_ofst()
175 if(ps_sps->i1_chroma_format_idc != 0) in ihevcd_parse_pred_wt_ofst()
252 if(ps_sps->i1_chroma_format_idc != 0) in ihevcd_parse_pred_wt_ofst()
1191 sps_t *ps_sps; in ihevcd_parse_sps() local
1223 ps_sps = (ps_codec->s_parse.ps_sps_base + MAX_SPS_CNT - 1); in ihevcd_parse_sps()
1224 ps_sps->i1_sps_id = sps_id; in ihevcd_parse_sps()
1225 ps_sps->i1_vps_id = vps_id; in ihevcd_parse_sps()
1226 ps_sps->i1_sps_max_sub_layers = sps_max_sub_layers; in ihevcd_parse_sps()
1227 ps_sps->i1_sps_temporal_id_nesting_flag = sps_temporal_id_nesting_flag; in ihevcd_parse_sps()
1230 memcpy(&ps_sps->s_ptl, &s_ptl, sizeof(profile_tier_lvl_info_t)); in ihevcd_parse_sps()
1233 ps_sps->i1_chroma_format_idc = value; in ihevcd_parse_sps()
1235 if(ps_sps->i1_chroma_format_idc != CHROMA_FMT_IDC_YUV420) in ihevcd_parse_sps()
1241 if(CHROMA_FMT_IDC_YUV444_PLANES == ps_sps->i1_chroma_format_idc) in ihevcd_parse_sps()
1244 ps_sps->i1_separate_colour_plane_flag = value; in ihevcd_parse_sps()
1248 ps_sps->i1_separate_colour_plane_flag = 0; in ihevcd_parse_sps()
1252 ps_sps->i2_pic_width_in_luma_samples = value; in ihevcd_parse_sps()
1255 ps_sps->i2_pic_height_in_luma_samples = value; in ihevcd_parse_sps()
1257 if((0 >= ps_sps->i2_pic_width_in_luma_samples) || (0 >= ps_sps->i2_pic_height_in_luma_samples)) in ihevcd_parse_sps()
1263 ps_sps->i2_pic_width_in_luma_samples = ALIGN8(ps_sps->i2_pic_width_in_luma_samples); in ihevcd_parse_sps()
1264 ps_sps->i2_pic_height_in_luma_samples = ALIGN8(ps_sps->i2_pic_height_in_luma_samples); in ihevcd_parse_sps()
1267 ps_sps->i1_pic_cropping_flag = value; in ihevcd_parse_sps()
1269 if(ps_sps->i1_pic_cropping_flag) in ihevcd_parse_sps()
1273 ps_sps->i2_pic_crop_left_offset = value; in ihevcd_parse_sps()
1276 ps_sps->i2_pic_crop_right_offset = value; in ihevcd_parse_sps()
1279 ps_sps->i2_pic_crop_top_offset = value; in ihevcd_parse_sps()
1282 ps_sps->i2_pic_crop_bottom_offset = value; in ihevcd_parse_sps()
1286 ps_sps->i2_pic_crop_left_offset = 0; in ihevcd_parse_sps()
1287 ps_sps->i2_pic_crop_right_offset = 0; in ihevcd_parse_sps()
1288 ps_sps->i2_pic_crop_top_offset = 0; in ihevcd_parse_sps()
1289 ps_sps->i2_pic_crop_bottom_offset = 0; in ihevcd_parse_sps()
1302 ps_sps->i1_log2_max_pic_order_cnt_lsb = value + 4; in ihevcd_parse_sps()
1305 ps_sps->i1_sps_sub_layer_ordering_info_present_flag = value; in ihevcd_parse_sps()
1308 …i = (ps_sps->i1_sps_sub_layer_ordering_info_present_flag ? 0 : (ps_sps->i1_sps_max_sub_layers - 1)… in ihevcd_parse_sps()
1309 for(; i < ps_sps->i1_sps_max_sub_layers; i++) in ihevcd_parse_sps()
1312 ps_sps->ai1_sps_max_dec_pic_buffering[i] = value + 1; in ihevcd_parse_sps()
1315 ps_sps->ai1_sps_max_num_reorder_pics[i] = value; in ihevcd_parse_sps()
1318 ps_sps->ai1_sps_max_latency_increase[i] = value; in ihevcd_parse_sps()
1321 ps_sps->i1_log2_min_coding_block_size = value + 3; in ihevcd_parse_sps()
1324 ps_sps->i1_log2_diff_max_min_coding_block_size = value; in ihevcd_parse_sps()
1327 ps_sps->i1_log2_min_transform_block_size = value + 2; in ihevcd_parse_sps()
1330 ps_sps->i1_log2_diff_max_min_transform_block_size = value; in ihevcd_parse_sps()
1332 ps_sps->i1_log2_max_transform_block_size = ps_sps->i1_log2_min_transform_block_size + in ihevcd_parse_sps()
1333 ps_sps->i1_log2_diff_max_min_transform_block_size; in ihevcd_parse_sps()
1335 ps_sps->i1_log2_ctb_size = ps_sps->i1_log2_min_coding_block_size + in ihevcd_parse_sps()
1336 ps_sps->i1_log2_diff_max_min_coding_block_size; in ihevcd_parse_sps()
1338 if((ps_sps->i1_log2_min_coding_block_size < 3) || in ihevcd_parse_sps()
1339 (ps_sps->i1_log2_min_transform_block_size < 2) || in ihevcd_parse_sps()
1340 (ps_sps->i1_log2_diff_max_min_transform_block_size < 0) || in ihevcd_parse_sps()
1341 (ps_sps->i1_log2_max_transform_block_size > ps_sps->i1_log2_ctb_size) || in ihevcd_parse_sps()
1342 (ps_sps->i1_log2_ctb_size < 4) || in ihevcd_parse_sps()
1343 (ps_sps->i1_log2_ctb_size > 6)) in ihevcd_parse_sps()
1348 ps_sps->i1_log2_min_pcm_coding_block_size = 0; in ihevcd_parse_sps()
1349 ps_sps->i1_log2_diff_max_min_pcm_coding_block_size = 0; in ihevcd_parse_sps()
1352 ps_sps->i1_max_transform_hierarchy_depth_inter = value; in ihevcd_parse_sps()
1355 ps_sps->i1_max_transform_hierarchy_depth_intra = value; in ihevcd_parse_sps()
1359 ps_sps->i1_scaling_list_enable_flag = value; in ihevcd_parse_sps()
1361 if(ps_sps->i1_scaling_list_enable_flag) in ihevcd_parse_sps()
1363 COPY_DEFAULT_SCALING_LIST(ps_sps->pi2_scaling_mat); in ihevcd_parse_sps()
1365 ps_sps->i1_sps_scaling_list_data_present_flag = value; in ihevcd_parse_sps()
1367 if(ps_sps->i1_sps_scaling_list_data_present_flag) in ihevcd_parse_sps()
1368 ihevcd_scaling_list_data(ps_codec, ps_sps->pi2_scaling_mat); in ihevcd_parse_sps()
1372 COPY_FLAT_SCALING_LIST(ps_sps->pi2_scaling_mat); in ihevcd_parse_sps()
1376 ps_sps->i1_amp_enabled_flag = value; in ihevcd_parse_sps()
1379 ps_sps->i1_sample_adaptive_offset_enabled_flag = value; in ihevcd_parse_sps()
1382 ps_sps->i1_pcm_enabled_flag = value; in ihevcd_parse_sps()
1384 if(ps_sps->i1_pcm_enabled_flag) in ihevcd_parse_sps()
1387 ps_sps->i1_pcm_sample_bit_depth_luma = value + 1; in ihevcd_parse_sps()
1390 ps_sps->i1_pcm_sample_bit_depth_chroma = value + 1; in ihevcd_parse_sps()
1393 ps_sps->i1_log2_min_pcm_coding_block_size = value + 3; in ihevcd_parse_sps()
1396 ps_sps->i1_log2_diff_max_min_pcm_coding_block_size = value; in ihevcd_parse_sps()
1398 ps_sps->i1_pcm_loop_filter_disable_flag = value; in ihevcd_parse_sps()
1402 ps_sps->i1_num_short_term_ref_pic_sets = value; in ihevcd_parse_sps()
1404ps_sps->i1_num_short_term_ref_pic_sets = CLIP3(ps_sps->i1_num_short_term_ref_pic_sets, 0, MAX_STRE… in ihevcd_parse_sps()
1406 for(i = 0; i < ps_sps->i1_num_short_term_ref_pic_sets; i++) in ihevcd_parse_sps()
1407 …_short_term_ref_pic_set(ps_bitstrm, &ps_sps->as_stref_picset[0], ps_sps->i1_num_short_term_ref_pic… in ihevcd_parse_sps()
1410 ps_sps->i1_long_term_ref_pics_present_flag = value; in ihevcd_parse_sps()
1412 if(ps_sps->i1_long_term_ref_pics_present_flag) in ihevcd_parse_sps()
1415 ps_sps->i1_num_long_term_ref_pics_sps = value; in ihevcd_parse_sps()
1417 for(i = 0; i < ps_sps->i1_num_long_term_ref_pics_sps; i++) in ihevcd_parse_sps()
1419 …BITS_PARSE("lt_ref_pic_poc_lsb_sps[ i ]", value, ps_bitstrm, ps_sps->i1_log2_max_pic_order_cnt_lsb… in ihevcd_parse_sps()
1420 ps_sps->ai1_lt_ref_pic_poc_lsb_sps[i] = value; in ihevcd_parse_sps()
1423 ps_sps->ai1_used_by_curr_pic_lt_sps_flag[i] = value; in ihevcd_parse_sps()
1428 ps_sps->i1_sps_temporal_mvp_enable_flag = value; in ihevcd_parse_sps()
1432 ps_sps->i1_strong_intra_smoothing_enable_flag = value; in ihevcd_parse_sps()
1435 ps_sps->i1_vui_parameters_present_flag = value; in ihevcd_parse_sps()
1437 if(ps_sps->i1_vui_parameters_present_flag) in ihevcd_parse_sps()
1439 &ps_sps->s_vui_parameters, in ihevcd_parse_sps()
1440 ps_sps->i1_sps_max_sub_layers - 1); in ihevcd_parse_sps()
1449 ceil_offset = (1 << ps_sps->i1_log2_ctb_size) - 1; in ihevcd_parse_sps()
1450 numerator = ps_sps->i2_pic_width_in_luma_samples; in ihevcd_parse_sps()
1452 ps_sps->i2_pic_wd_in_ctb = ((numerator + ceil_offset) / in ihevcd_parse_sps()
1453 (1 << ps_sps->i1_log2_ctb_size)); in ihevcd_parse_sps()
1455 numerator = ps_sps->i2_pic_height_in_luma_samples; in ihevcd_parse_sps()
1456 ps_sps->i2_pic_ht_in_ctb = ((numerator + ceil_offset) / in ihevcd_parse_sps()
1457 (1 << ps_sps->i1_log2_ctb_size)); in ihevcd_parse_sps()
1459 ps_sps->i4_pic_size_in_ctb = ps_sps->i2_pic_ht_in_ctb * in ihevcd_parse_sps()
1460 ps_sps->i2_pic_wd_in_ctb; in ihevcd_parse_sps()
1463 ps_codec->s_parse.i4_next_ctb_indx = ps_sps->i4_pic_size_in_ctb; in ihevcd_parse_sps()
1465 numerator = ps_sps->i2_pic_width_in_luma_samples; in ihevcd_parse_sps()
1466 ps_sps->i2_pic_wd_in_min_cb = numerator / in ihevcd_parse_sps()
1467 (1 << ps_sps->i1_log2_min_coding_block_size); in ihevcd_parse_sps()
1469 numerator = ps_sps->i2_pic_height_in_luma_samples; in ihevcd_parse_sps()
1470 ps_sps->i2_pic_ht_in_min_cb = numerator / in ihevcd_parse_sps()
1471 (1 << ps_sps->i1_log2_min_coding_block_size); in ihevcd_parse_sps()
1474 ((ps_codec->i4_wd != ps_sps->i2_pic_width_in_luma_samples) || in ihevcd_parse_sps()
1475 (ps_codec->i4_ht != ps_sps->i2_pic_height_in_luma_samples))) in ihevcd_parse_sps()
1488 if(CHROMA_FMT_IDC_YUV420 == ps_sps->i1_chroma_format_idc) in ihevcd_parse_sps()
1494 disp_wd = ps_sps->i2_pic_width_in_luma_samples; in ihevcd_parse_sps()
1495 disp_wd -= ps_sps->i2_pic_crop_left_offset * crop_unit_x; in ihevcd_parse_sps()
1496 disp_wd -= ps_sps->i2_pic_crop_right_offset * crop_unit_x; in ihevcd_parse_sps()
1499 disp_ht = ps_sps->i2_pic_height_in_luma_samples; in ihevcd_parse_sps()
1500 disp_ht -= ps_sps->i2_pic_crop_top_offset * crop_unit_y; in ihevcd_parse_sps()
1501 disp_ht -= ps_sps->i2_pic_crop_bottom_offset * crop_unit_y; in ihevcd_parse_sps()
1510 ps_codec->i4_wd = ps_sps->i2_pic_width_in_luma_samples; in ihevcd_parse_sps()
1511 ps_codec->i4_ht = ps_sps->i2_pic_height_in_luma_samples; in ihevcd_parse_sps()
1515 ref_strd = ALIGN32(ps_sps->i2_pic_width_in_luma_samples + PAD_WD); in ihevcd_parse_sps()
1559 sps_t *ps_sps, *ps_sps_ref; in ihevcd_copy_sps() local
1565 ps_sps = ps_codec->ps_sps_base + sps_id; in ihevcd_copy_sps()
1567 if(ps_sps->i1_sps_valid) in ihevcd_copy_sps()
1569 if((ps_sps->i1_log2_ctb_size != ps_sps_ref->i1_log2_ctb_size) || in ihevcd_copy_sps()
1570 (ps_sps->i2_pic_wd_in_ctb != ps_sps_ref->i2_pic_wd_in_ctb) || in ihevcd_copy_sps()
1571 (ps_sps->i2_pic_ht_in_ctb != ps_sps_ref->i2_pic_ht_in_ctb)) in ihevcd_copy_sps()
1577 pi2_scaling_mat_backup = ps_sps->pi2_scaling_mat; in ihevcd_copy_sps()
1579 memcpy(ps_sps, ps_sps_ref, sizeof(sps_t)); in ihevcd_copy_sps()
1580 ps_sps->pi2_scaling_mat = pi2_scaling_mat_backup; in ihevcd_copy_sps()
1581 memcpy(ps_sps->pi2_scaling_mat, ps_sps_ref->pi2_scaling_mat, scaling_mat_size * sizeof(WORD16)); in ihevcd_copy_sps()
1582 ps_sps->i1_sps_valid = 1; in ihevcd_copy_sps()
1584 ps_codec->s_parse.ps_sps = ps_sps; in ihevcd_copy_sps()
1616 sps_t *ps_sps; in ihevcd_parse_pps() local
1643 ps_sps = (ps_codec->s_parse.ps_sps_base + ps_pps->i1_sps_id); in ihevcd_parse_pps()
1647 if(0 == ps_sps->i1_sps_valid) in ihevcd_parse_pps()
1702 …ps_pps->i1_log2_min_cu_qp_delta_size = ps_sps->i1_log2_ctb_size - ps_pps->i1_diff_cu_qp_delta_dept… in ihevcd_parse_pps()
1740 (ps_pps->i1_num_tile_columns > ps_sps->i2_pic_wd_in_ctb) || in ihevcd_parse_pps()
1742 (ps_pps->i1_num_tile_rows > ps_sps->i2_pic_ht_in_ctb)) in ihevcd_parse_pps()
1768 value = ps_sps->i2_pic_wd_in_ctb - start; in ihevcd_parse_pps()
1773 value = ((i + 1) * ps_sps->i2_pic_wd_in_ctb) / ps_pps->i1_num_tile_columns - in ihevcd_parse_pps()
1774 (i * ps_sps->i2_pic_wd_in_ctb) / ps_pps->i1_num_tile_columns; in ihevcd_parse_pps()
1785 if((start > ps_sps->i2_pic_wd_in_ctb) || in ihevcd_parse_pps()
1804 value = ps_sps->i2_pic_ht_in_ctb - start; in ihevcd_parse_pps()
1809 value = ((i + 1) * ps_sps->i2_pic_ht_in_ctb) / ps_pps->i1_num_tile_rows - in ihevcd_parse_pps()
1810 (i * ps_sps->i2_pic_ht_in_ctb) / ps_pps->i1_num_tile_rows; in ihevcd_parse_pps()
1821 if((start > ps_sps->i2_pic_ht_in_ctb) || in ihevcd_parse_pps()
1842 ps_pps->ps_tile->u2_wd = ps_sps->i2_pic_wd_in_ctb; in ihevcd_parse_pps()
1843 ps_pps->ps_tile->u2_ht = ps_sps->i2_pic_ht_in_ctb; in ihevcd_parse_pps()