Home
last modified time | relevance | path

Searched refs:seq_params (Results 1 – 25 of 48) sorted by relevance

12

/external/libaom/libaom/av1/common/
Dtile_common.c31 int mi_cols = ALIGN_POWER_OF_TWO(cm->mi_cols, cm->seq_params.mib_size_log2); in av1_get_tile_limits()
32 int mi_rows = ALIGN_POWER_OF_TWO(cm->mi_rows, cm->seq_params.mib_size_log2); in av1_get_tile_limits()
33 int sb_cols = mi_cols >> cm->seq_params.mib_size_log2; in av1_get_tile_limits()
34 int sb_rows = mi_rows >> cm->seq_params.mib_size_log2; in av1_get_tile_limits()
36 int sb_size_log2 = cm->seq_params.mib_size_log2 + MI_SIZE_LOG2; in av1_get_tile_limits()
48 int mi_cols = ALIGN_POWER_OF_TWO(cm->mi_cols, cm->seq_params.mib_size_log2); in av1_calculate_tile_cols()
49 int mi_rows = ALIGN_POWER_OF_TWO(cm->mi_rows, cm->seq_params.mib_size_log2); in av1_calculate_tile_cols()
50 int sb_cols = mi_cols >> cm->seq_params.mib_size_log2; in av1_calculate_tile_cols()
51 int sb_rows = mi_rows >> cm->seq_params.mib_size_log2; in av1_calculate_tile_cols()
72 cm->tile_width = size_sb << cm->seq_params.mib_size_log2; in av1_calculate_tile_cols()
[all …]
Donyxc_int.h527 SequenceHeader seq_params; member
700 cm->seq_params.order_hint_info.enable_ref_frame_mvs && in frame_might_allow_ref_frame_mvs()
701 cm->seq_params.order_hint_info.enable_order_hint && in frame_might_allow_ref_frame_mvs()
708 cm->seq_params.enable_warped_motion; in frame_might_allow_warped_motion()
742 void cfl_init(CFL_CTX *cfl, const SequenceHeader *seq_params);
745 return cm->seq_params.monochrome ? 1 : MAX_MB_PLANE; in av1_num_planes()
785 cfl_init(&xd->cfl, &cm->seq_params); in av1_init_macroblockd()
1119 const SequenceHeader *const seq_params = &cm->seq_params; in av1_zero_above_context() local
1123 ALIGN_POWER_OF_TWO(width, seq_params->mib_size_log2); in av1_zero_above_context()
1127 const int offset_uv = offset_y >> seq_params->subsampling_x; in av1_zero_above_context()
[all …]
Drestoration.c45 int ss_x = is_uv && cm->seq_params.subsampling_x; in av1_whole_frame_rect()
46 int ss_y = is_uv && cm->seq_params.subsampling_y; in av1_whole_frame_rect()
1093 const SequenceHeader *const seq_params = &cm->seq_params; in av1_loop_restoration_filter_frame_init() local
1094 const int bit_depth = seq_params->bit_depth; in av1_loop_restoration_filter_frame_init()
1095 const int highbd = seq_params->use_highbitdepth; in av1_loop_restoration_filter_frame_init()
1101 lr_ctxt->dst, frame_width, frame_height, seq_params->subsampling_x, in av1_loop_restoration_filter_frame_init()
1102 seq_params->subsampling_y, highbd, AOM_RESTORATION_FRAME_BORDER, in av1_loop_restoration_filter_frame_init()
1128 lr_plane_ctxt->ss_x = is_uv && seq_params->subsampling_x; in av1_loop_restoration_filter_frame_init()
1129 lr_plane_ctxt->ss_y = is_uv && seq_params->subsampling_y; in av1_loop_restoration_filter_frame_init()
1285 const int ss_y = is_uv && cm->seq_params.subsampling_y; in av1_foreach_rest_unit_in_plane()
[all …]
Dresize.c1214 const int ss_x = is_uv && cm->seq_params.subsampling_x; in av1_upscale_normative_rows()
1255 if (cm->seq_params.use_highbitdepth) in av1_upscale_normative_rows()
1259 cm->seq_params.bit_depth); in av1_upscale_normative_rows()
1290 av1_resize_and_extend_frame(unscaled, scaled, (int)cm->seq_params.bit_depth, in av1_scale_if_required()
1356 const SequenceHeader *const seq_params = &cm->seq_params; in av1_superres_upscale() local
1365 &copy_buffer, aligned_width, cm->height, seq_params->subsampling_x, in av1_superres_upscale()
1366 seq_params->subsampling_y, seq_params->use_highbitdepth, in av1_superres_upscale()
1395 cm->superres_upscaled_height, seq_params->subsampling_x, in av1_superres_upscale()
1396 seq_params->subsampling_y, seq_params->use_highbitdepth, in av1_superres_upscale()
1409 cm->superres_upscaled_height, seq_params->subsampling_x, in av1_superres_upscale()
[all …]
Dav1_loopfilter.c1042 const int num_64x64 = cm->seq_params.mib_size >> MIN_MIB_SIZE_LOG2; in av1_setup_bitmask()
1076 setup_block_mask(cm, mi_row, mi_col, cm->seq_params.sb_size, plane, in av1_setup_bitmask()
1706 if (cm->seq_params.use_highbitdepth) in av1_filter_block_plane_bitmask_vert()
1710 &cm->lf_info, lfl, lfl2, (int)cm->seq_params.bit_depth); in av1_filter_block_plane_bitmask_vert()
1773 if (cm->seq_params.use_highbitdepth) in av1_filter_block_plane_bitmask_horz()
1776 mask_8x8, mask_4x4, &cm->lf_info, lfl, (int)cm->seq_params.bit_depth); in av1_filter_block_plane_bitmask_horz()
1803 for (r = 0; r < cm->seq_params.mib_size && in av1_filter_block_plane_ver()
1806 for (c = 0; c < cm->seq_params.mib_size && in av1_filter_block_plane_ver()
1852 if (cm->seq_params.use_highbitdepth) in av1_filter_block_plane_ver()
1856 &cm->lf_info, lfl, lfl2, (int)cm->seq_params.bit_depth); in av1_filter_block_plane_ver()
[all …]
Dmvref_common.c265 const int sb_mi_size = mi_size_wide[cm->seq_params.sb_size]; in has_top_right()
352 int cur_offset_0 = get_relative_dist(&cm->seq_params.order_hint_info, in add_tpl_ref_mv()
388 int cur_offset_0 = get_relative_dist(&cm->seq_params.order_hint_info, in add_tpl_ref_mv()
392 int cur_offset_1 = get_relative_dist(&cm->seq_params.order_hint_info, in add_tpl_ref_mv()
881 if (cm->seq_params.order_hint_info.enable_order_hint && buf != NULL) { in av1_setup_frame_sign_bias()
884 (get_relative_dist(&cm->seq_params.order_hint_info, ref_order_hint, in av1_setup_frame_sign_bias()
957 &cm->seq_params.order_hint_info, start_frame_order_hint, cur_order_hint); in motion_field_projection()
960 ref_offset[rf] = get_relative_dist(&cm->seq_params.order_hint_info, in motion_field_projection()
1008 const OrderHintInfo *const order_hint_info = &cm->seq_params.order_hint_info; in av1_setup_motion_field()
1273 const OrderHintInfo *const order_hint_info = &cm->seq_params.order_hint_info; in av1_setup_skip_mode_allowed()
[all …]
Dcdef.c112 if (cm->seq_params.use_highbitdepth) { in copy_sb8_16()
156 int coeff_shift = AOMMAX(cm->seq_params.bit_depth - 8, 0); in av1_cdef_frame()
159 av1_setup_dst_planes(xd->plane, cm->seq_params.sb_size, frame, 0, 0, 0, in av1_cdef_frame()
368 if (cm->seq_params.use_highbitdepth) { in av1_cdef_frame()
/external/libaom/libaom/av1/decoder/
Dobu.c128 SequenceHeader sh = cm->seq_params; in read_sequence_header_obu()
129 SequenceHeader *const seq_params = &sh; in read_sequence_header_obu() local
131 seq_params->profile = av1_read_profile(rb); in read_sequence_header_obu()
132 if (seq_params->profile > CONFIG_MAX_DECODE_PROFILE) { in read_sequence_header_obu()
138 seq_params->still_picture = aom_rb_read_bit(rb); in read_sequence_header_obu()
139 seq_params->reduced_still_picture_hdr = aom_rb_read_bit(rb); in read_sequence_header_obu()
141 if (!seq_params->still_picture && seq_params->reduced_still_picture_hdr) { in read_sequence_header_obu()
146 if (seq_params->reduced_still_picture_hdr) { in read_sequence_header_obu()
148 seq_params->decoder_model_info_present_flag = 0; in read_sequence_header_obu()
149 seq_params->display_model_info_present_flag = 0; in read_sequence_header_obu()
[all …]
Ddecodeframe.c91 static void set_planes_to_neutral_grey(const SequenceHeader *const seq_params, in set_planes_to_neutral_grey() argument
94 if (seq_params->use_highbitdepth) { in set_planes_to_neutral_grey()
95 const int val = 1 << (seq_params->bit_depth - 1); in set_planes_to_neutral_grey()
379 const SequenceHeader *const seq_params = &cm->seq_params; in decode_mbmi_block() local
392 (seq_params->subsampling_x || seq_params->subsampling_y)) { in decode_mbmi_block()
394 ss_size_lookup[bsize][seq_params->subsampling_x] in decode_mbmi_block()
395 [seq_params->subsampling_y]; in decode_mbmi_block()
1389 mbmi->sb_type, cm->seq_params.subsampling_x, in store_bitmask_vartx()
1390 cm->seq_params.subsampling_y)]; in store_bitmask_vartx()
1392 mbmi->sb_type, cm->seq_params.subsampling_x, in store_bitmask_vartx()
[all …]
Ddecodeframe.h27 SequenceHeader *seq_params);
55 int allow_lowbitdepth, SequenceHeader *seq_params,
Ddecodemv.c48 if (!(mi_col & (cm->seq_params.mib_size - 1)) && in read_cdef()
49 !(mi_row & (cm->seq_params.mib_size - 1))) { // Top left? in read_cdef()
56 const int index = cm->seq_params.sb_size == BLOCK_128X128 in read_cdef()
71 const int b_col = mi_col & (cm->seq_params.mib_size - 1); in read_delta_qindex()
72 const int b_row = mi_row & (cm->seq_params.mib_size - 1); in read_delta_qindex()
76 if ((bsize != cm->seq_params.sb_size || mbmi->skip == 0) && in read_delta_qindex()
103 const int b_col = mi_col & (cm->seq_params.mib_size - 1); in read_delta_lflevel()
104 const int b_row = mi_row & (cm->seq_params.mib_size - 1); in read_delta_lflevel()
107 if ((bsize != cm->seq_params.sb_size || mbmi->skip == 0) && in read_delta_lflevel()
559 read_palette_colors_y(xd, cm->seq_params.bit_depth, pmi, r); in read_palette_mode_info()
[all …]
/external/libaom/libaom/av1/encoder/
Dbitstream.c639 if (cm->seq_params.enable_dual_filter == 0) return; in write_mb_interp_filter()
781 write_palette_colors_y(xd, pmi, cm->seq_params.bit_depth, w); in write_palette_mode_info()
798 write_palette_colors_uv(xd, pmi, cm->seq_params.bit_depth, w); in write_palette_mode_info()
884 if (!(mi_row & (cm->seq_params.mib_size - 1)) && in write_cdef()
885 !(mi_col & (cm->seq_params.mib_size - 1))) { // Top left? in write_cdef()
892 const int index = cm->seq_params.sb_size == BLOCK_128X128 in write_cdef()
951 ((mi_row & (cm->seq_params.mib_size - 1)) == 0) && in write_delta_q_params()
952 ((mi_col & (cm->seq_params.mib_size - 1)) == 0); in write_delta_q_params()
954 if ((bsize != cm->seq_params.sb_size || skip == 0) && in write_delta_q_params()
1013 if (!cm->seq_params.monochrome && in write_intra_prediction_modes()
[all …]
Dencoder.c361 set_sb_size(&cm->seq_params, select_sb_size(cpi)); in setup_frame()
363 set_sb_size(&cm->seq_params, select_sb_size(cpi)); in setup_frame()
496 cm->seq_params.film_grain_params_present = 1; in update_film_grain_parameters()
503 cm->film_grain_params.bit_depth = cm->seq_params.bit_depth; in update_film_grain_parameters()
504 if (cm->seq_params.color_range == AOM_CR_FULL_RANGE) { in update_film_grain_parameters()
509 cm->seq_params.film_grain_params_present = 1; in update_film_grain_parameters()
518 cm->seq_params.film_grain_params_present = (cpi->oxcf.noise_level > 0); in update_film_grain_parameters()
520 cm->seq_params.film_grain_params_present = 0; in update_film_grain_parameters()
679 cm->seq_params.bit_depth); in configure_static_seg_features()
704 cm->seq_params.bit_depth); in configure_static_seg_features()
[all …]
Daq_cyclicrefresh.c125 rate_factor, cpi->common.seq_params.bit_depth); in compute_deltaq()
152 cm->seq_params.bit_depth) + in av1_cyclic_refresh_estimate_bits_at_q()
156 correction_factor, cm->seq_params.bit_depth) + in av1_cyclic_refresh_estimate_bits_at_q()
160 correction_factor, cm->seq_params.bit_depth)); in av1_cyclic_refresh_estimate_bits_at_q()
189 cm->seq_params.bit_depth) + in av1_cyclic_refresh_rc_bits_per_mb()
192 cm->seq_params.bit_depth)); in av1_cyclic_refresh_rc_bits_per_mb()
298 (cm->mi_cols + cm->seq_params.mib_size - 1) / cm->seq_params.mib_size; in cyclic_refresh_update_map()
300 (cm->mi_rows + cm->seq_params.mib_size - 1) / cm->seq_params.mib_size; in cyclic_refresh_update_map()
316 int mi_row = sb_row_index * cm->seq_params.mib_size; in cyclic_refresh_update_map()
317 int mi_col = sb_col_index * cm->seq_params.mib_size; in cyclic_refresh_update_map()
[all …]
Dlevel.c539 const SequenceHeader *const seq_params = &cm->seq_params; in av1_update_level_info() local
540 const BITSTREAM_PROFILE profile = seq_params->profile; in av1_update_level_info()
556 const int is_still_picture = seq_params->still_picture; in av1_update_level_info()
559 for (int i = 0; i < seq_params->operating_points_cnt_minus_1 + 1; ++i) { in av1_update_level_info()
560 if (!is_in_operating_point(seq_params->operating_point_idc[i], in av1_update_level_info()
604 const int tier = seq_params->tier[i]; in av1_update_level_info()
620 const SequenceHeader *const seq_params = &cpi->common.seq_params; in av1_get_seq_level_idx() local
622 for (int op = 0; op < seq_params->operating_points_cnt_minus_1 + 1; ++op) { in av1_get_seq_level_idx()
628 const int is_still_picture = seq_params->still_picture; in av1_get_seq_level_idx()
629 for (int op = 0; op < seq_params->operating_points_cnt_minus_1 + 1; ++op) { in av1_get_seq_level_idx()
[all …]
Daq_complexity.c70 get_aq_c_strength(cm->base_qindex, cm->seq_params.bit_depth); in av1_setup_in_frame_q_adj()
97 aq_c_q_adj_factor[aq_strength][segment], cm->seq_params.bit_depth); in av1_setup_in_frame_q_adj()
138 const int denom = cm->seq_params.mib_size * cm->seq_params.mib_size; in av1_caq_select_segment()
143 get_aq_c_strength(cm->base_qindex, cm->seq_params.bit_depth); in av1_caq_select_segment()
Dsegmentation.c192 mi_row += cm->seq_params.mib_size, in av1_choose_segmap_coding_method()
193 mi_ptr += cm->seq_params.mib_size * cm->mi_stride) { in av1_choose_segmap_coding_method()
196 mi_col += cm->seq_params.mib_size, mi += cm->seq_params.mib_size) { in av1_choose_segmap_coding_method()
199 mi_col, cm->seq_params.sb_size); in av1_choose_segmap_coding_method()
Dpicklpf.c87 cm->seq_params.use_highbitdepth); in try_filter_frame()
215 const int q = av1_ac_quant_Q3(cm->base_qindex, 0, cm->seq_params.bit_depth); in av1_pick_filter_level()
229 switch (cm->seq_params.bit_depth) { in av1_pick_filter_level()
248 if (cm->seq_params.bit_depth != AOM_BITS_8 && in av1_pick_filter_level()
Dfirstpass.c326 const SequenceHeader *const seq_params = &cm->seq_params; in av1_first_pass() local
365 const int qindex = find_fp_qindex(seq_params->bit_depth); in av1_first_pass()
393 av1_setup_block_planes(&x->e_mbd, seq_params->subsampling_x, in av1_first_pass()
394 seq_params->subsampling_y, num_planes); in av1_first_pass()
398 av1_setup_dst_planes(xd->plane, seq_params->sb_size, new_yv12, 0, 0, 0, in av1_first_pass()
484 if (seq_params->use_highbitdepth) { in av1_first_pass()
485 switch (seq_params->bit_depth) { in av1_first_pass()
504 if (seq_params->use_highbitdepth) in av1_first_pass()
Dencodeframe.c919 ((mi_row & (cm->seq_params.mib_size - 1)) == 0) && in update_stats()
920 ((mi_col & (cm->seq_params.mib_size - 1)) == 0); in update_stats()
947 (bsize != cm->seq_params.sb_size || !mbmi->skip) && in update_stats()
1199 if (cm->seq_params.enable_interintra_compound && in update_stats()
1275 cm->seq_params.enable_masked_compound; in update_stats()
1491 if (bsize == cpi->common.seq_params.sb_size && mbmi->skip == 1 && in encode_b()
1644 for (r = 0; r < cm->seq_params.mib_size; r += bh) { in set_partial_sb_partition()
1646 for (c = 0; c < cm->seq_params.mib_size; c += bw) { in set_partial_sb_partition()
1674 if ((mi_cols_remaining >= cm->seq_params.mib_size) && in set_fixed_partitioning()
1675 (mi_rows_remaining >= cm->seq_params.mib_size)) { in set_fixed_partitioning()
[all …]
Daq_variance.c81 rate_ratio[i] / avg_ratio, cm->seq_params.bit_depth); in av1_vaq_frame_setup()
196 deltaq_rate_ratio[rate_level], cm->seq_params.bit_depth); in av1_compute_deltaq_from_energy_level()
Dpickcdef.c300 int coeff_shift = AOMMAX(cm->seq_params.bit_depth - 8, 0); in av1_cdef_search()
321 quantizer = av1_ac_quant_Q3(cm->base_qindex, 0, cm->seq_params.bit_depth) >> in av1_cdef_search()
322 (cm->seq_params.bit_depth - 8); in av1_cdef_search()
325 av1_setup_dst_planes(xd->plane, cm->seq_params.sb_size, frame, 0, 0, 0, in av1_cdef_search()
365 if (cm->seq_params.use_highbitdepth) { in av1_cdef_search()
Dpickrst.c165 const int bit_depth = cm->seq_params.bit_depth; in try_restoration_unit()
166 const int highbd = cm->seq_params.use_highbitdepth; in try_restoration_unit()
175 is_uv && cm->seq_params.subsampling_x, in try_restoration_unit()
176 is_uv && cm->seq_params.subsampling_y, highbd, bit_depth, in try_restoration_unit()
623 const int highbd = cm->seq_params.use_highbitdepth; in search_sgrproj()
624 const int bit_depth = cm->seq_params.bit_depth; in search_sgrproj()
632 const int ss_x = is_uv && cm->seq_params.subsampling_x; in search_sgrproj()
633 const int ss_y = is_uv && cm->seq_params.subsampling_y; in search_sgrproj()
1199 if (cm->seq_params.use_highbitdepth) { in search_wiener()
1203 H, cm->seq_params.bit_depth); in search_wiener()
[all …]
Dvar_based_part.c462 assert(cm->seq_params.sb_size == BLOCK_64X64 || in av1_choose_var_based_partitioning()
463 cm->seq_params.sb_size == BLOCK_128X128); in av1_choose_var_based_partitioning()
464 const int is_small_sb = (cm->seq_params.sb_size == BLOCK_64X64); in av1_choose_var_based_partitioning()
512 mi->sb_type = cm->seq_params.sb_size; in av1_choose_var_based_partitioning()
517 av1_int_pro_motion_estimation(cpi, x, cm->seq_params.sb_size, mi_row, in av1_choose_var_based_partitioning()
531 cm->seq_params.sb_size, AOM_PLANE_Y, in av1_choose_var_based_partitioning()
Dtpl_model.c466 const SequenceHeader *const seq_params = &cm->seq_params; in init_gop_frames() local
487 seq_params->subsampling_x, seq_params->subsampling_y, in init_gop_frames()
488 seq_params->use_highbitdepth, cpi->oxcf.border_in_pixels, in init_gop_frames()

12