Searched refs:sf (Results 1 - 25 of 33) sorted by relevance

12

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
H A Dvp9_scale.c15 static INLINE int scaled_x(int val, const struct scale_factors *sf) { argument
16 return (int)((int64_t)val * sf->x_scale_fp >> REF_SCALE_SHIFT);
19 static INLINE int scaled_y(int val, const struct scale_factors *sf) { argument
20 return (int)((int64_t)val * sf->y_scale_fp >> REF_SCALE_SHIFT);
23 static int unscaled_value(int val, const struct scale_factors *sf) { argument
24 (void) sf;
44 MV32 vp9_scale_mv(const MV *mv, int x, int y, const struct scale_factors *sf) { argument
45 const int x_off_q4 = scaled_x(x << SUBPEL_BITS, sf) & SUBPEL_MASK;
46 const int y_off_q4 = scaled_y(y << SUBPEL_BITS, sf) & SUBPEL_MASK;
48 scaled_y(mv->row, sf)
54 vp9_setup_scale_factors_for_frame(struct scale_factors *sf, int other_w, int other_h, int this_w, int this_h) argument
[all...]
H A Dvp9_scale.h31 int (*scale_value_x)(int val, const struct scale_factors *sf);
32 int (*scale_value_y)(int val, const struct scale_factors *sf);
37 MV32 vp9_scale_mv(const MV *mv, int x, int y, const struct scale_factors *sf);
39 void vp9_setup_scale_factors_for_frame(struct scale_factors *sf,
43 static INLINE int vp9_is_valid_scale(const struct scale_factors *sf) { argument
44 return sf->x_scale_fp != REF_INVALID_SCALE &&
45 sf->y_scale_fp != REF_INVALID_SCALE;
48 static INLINE int vp9_is_scaled(const struct scale_factors *sf) { argument
49 return sf->x_scale_fp != REF_NO_SCALE ||
50 sf
[all...]
H A Dvp9_reconinter.h36 const struct scale_factors *sf,
43 const struct scale_factors *sf) {
44 const int x = sf ? sf->scale_value_x(x_offset, sf) : x_offset;
45 const int y = sf ? sf->scale_value_y(y_offset, sf) : y_offset;
65 const struct scale_factors *sf);
42 scaled_buffer_offset(int x_offset, int y_offset, int stride, const struct scale_factors *sf) argument
H A Dvp9_reconinter.c70 const struct scale_factors *sf,
74 sf->predict[subpel_x != 0][subpel_y != 0][ref](
82 const struct scale_factors *sf,
90 MV32 mv = vp9_scale_mv(&mv_q4, x, y, sf);
97 sf, w, h, ref, kernel, sf->x_step_q4, sf->y_step_q4);
153 const struct scale_factors *const sf = &xd->block_refs[ref]->sf; local
180 if (vp9_is_scaled(sf)) {
66 inter_predictor(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, const int subpel_x, const int subpel_y, const struct scale_factors *sf, int w, int h, int ref, const InterpKernel *kernel, int xs, int ys) argument
79 vp9_build_inter_predictor(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, const MV *src_mv, const struct scale_factors *sf, int w, int h, int ref, const InterpKernel *kernel, enum mv_precision precision, int x, int y) argument
257 const struct scale_factors *const sf = &xd->block_refs[ref]->sf; local
428 vp9_setup_pre_planes(MACROBLOCKD *xd, int idx, const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col, const struct scale_factors *sf) argument
[all...]
H A Dvp9_blockd.h201 struct scale_factors sf; member in struct:RefBuffer
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
H A Dvp9_speed_features.c45 SPEED_FEATURES *sf,
48 sf->adaptive_rd_thresh = 1;
49 sf->recode_loop = ((speed < 1) ? ALLOW_RECODE : ALLOW_RECODE_KFMAXBW);
50 sf->allow_skip_recode = 1;
53 sf->use_square_partition_only = !frame_is_intra_only(cm);
54 sf->less_rectangular_check = 1;
55 sf->tx_size_search_method = vp9_frame_is_boosted(cpi)
59 sf->disable_split_mask = cm->show_frame ?
62 sf->disable_split_mask = DISABLE_COMPOUND_SPLIT;
63 sf
43 set_good_speed_feature(VP9_COMP *cpi, VP9_COMMON *cm, SPEED_FEATURES *sf, int speed) argument
147 set_rt_speed_feature(VP9_COMMON *cm, SPEED_FEATURES *sf, int speed) argument
284 SPEED_FEATURES *const sf = &cpi->sf; local
[all...]
H A Dvp9_pickmode.c88 if (cpi->sf.search_method == FAST_DIAMOND) {
93 } else if (cpi->sf.search_method == FAST_HEX) {
98 } else if (cpi->sf.search_method == HEX) {
103 } else if (cpi->sf.search_method == SQUARE) {
108 } else if (cpi->sf.search_method == BIGDIA) {
114 int further_steps = (cpi->sf.max_step_search_steps - 1) - step_param;
161 cpi->sf.subpel_force_stop,
162 cpi->sf.subpel_iters_per_step,
238 x->skip_encode = cpi->sf.skip_encode_frame && x->q_index < QIDX_SKIP_THRESH;
291 if (cpi->sf
[all...]
H A Dvp9_rdopt.c257 // range of values used for cpi->sf.thresh_mult[].
289 x->select_txfm_size = (cpi->sf.tx_size_search_method == USE_LARGESTALL &&
294 if (!cpi->sf.use_nonrd_pick_mode || cm->frame_type == KEY_FRAME) {
302 if (!cpi->sf.use_nonrd_pick_mode || (cm->current_video_frame & 0x07) == 1 ||
788 mbmi->tx_size, cpi->sf.use_fast_coef_costing);
933 cpi->sf.use_fast_coef_costing);
962 if (cpi->sf.tx_size_search_method == USE_LARGESTALL) {
971 if (cpi->sf.tx_size_search_method == USE_LARGESTINTRA_MODELINTER) {
982 cpi->sf.use_fast_coef_costing);
1000 if (cpi->sf
2331 const struct scale_factors *const sf = &cm->frame_refs[ref_frame - 1].sf; local
[all...]
H A Dvp9_temporal_filter.c156 step_param = cpi->sf.reduce_first_step_size + ((cpi->speed > 5) ? 1 : 0);
158 step_param = cpi->sf.reduce_first_step_size + 2;
159 step_param = MIN(step_param, (cpi->sf.max_step_search_steps - 2));
161 /*cpi->sf.search_method == HEX*/
177 0, cpi->sf.subpel_iters_per_step,
388 struct scale_factors sf; local
447 vp9_setup_scale_factors_for_frame(&sf,
462 strength, &sf);
H A Dvp9_encodeframe.c487 const struct scale_factors *const sf = &cm->frame_refs[LAST_FRAME - 1].sf; local
501 vp9_setup_pre_planes(xd, 0, yv12, mi_row, mi_col, sf);
1627 cpi->sf.partition_search_type == SEARCH_PARTITION &&
1628 cpi->sf.adjust_partitioning_from_last_frame) {
1758 && cpi->sf.adjust_partitioning_from_last_frame
1759 && cpi->sf.partition_search_type == SEARCH_PARTITION
1964 if (cpi->sf.auto_min_max_partition_size == RELAXED_NEIGHBORING_MIN_MAX) {
1979 if (cpi->sf.use_square_partition_only &&
2051 if (cpi->sf
[all...]
H A Dvp9_mbgraph.c40 int step_param = cpi->sf.reduce_first_step_size +
42 step_param = MIN(step_param, (cpi->sf.max_step_search_steps - 2));
49 /*cpi->sf.search_method == HEX*/
60 &v_fn_ptr, 0, cpi->sf.subpel_iters_per_step, NULL, NULL, &distortion,
H A Dvp9_onyx_if.c507 const SPEED_FEATURES *const sf = &cpi->sf; local
522 if (sf->disable_split_mask & (1 << i))
657 if (cpi->sf.search_method == NSTEP) {
659 } else if (cpi->sf.search_method == DIAMOND) {
2021 } else if ((cpi->sf.recode_loop == ALLOW_RECODE) ||
2022 ((cpi->sf.recode_loop == ALLOW_RECODE_KFARFGF) &&
2112 vp9_pick_filter_level(cpi->Source, cpi, cpi->sf.lpf_pick);
2338 if (cpi->sf.recode_loop >= ALLOW_RECODE_KFARFGF) {
2341 if (!cpi->sf
2547 const SPEED_FEATURES *const sf = &cpi->sf; local
[all...]
H A Dvp9_aq_cyclicrefresh.c214 if (cpi->sf.use_nonrd_pick_mode) {
H A Dvp9_ratectrl.c982 if (cpi->sf.use_nonrd_pick_mode) {
985 if (cpi->sf.force_frame_boost == 1)
986 q -= cpi->sf.max_delta_qindex;
1006 (cpi->sf.recode_tolerance * this_frame_target) / 100;
1083 cpi, (cpi->sf.recode_loop >= ALLOW_RECODE_KFARFGF ||
H A Dvp9_encodemv.c219 if (!cpi->dummy_packing && cpi->sf.auto_mv_step_size) {
/hardware/invensense/60xx/mlsdk/mllite/
H A DmlSetGyroBias.c56 int sf; local
60 sf = 2000 * 131 / mldl_cfg->gyro_sens_trim;
62 sf = 2000;
75 biasTmp[i] = (long)(biasTmp[i] * 1.39882274201861f / sf);
110 int sf, i; local
116 sf = 2000 * 131 / mldl_cfg->gyro_sens_trim;
118 sf = 2000;
122 biasTmp = -bias[i] / sf;
H A Dml.c777 unsigned long sf; local
871 sf = (1073741824L / inv_obj.accel_sens);
873 sf = 0;
875 regs[0] = (unsigned char)((sf >> 8) & 0xff);
876 regs[1] = (unsigned char)(sf & 0xff);
931 int sf = 0; local
1008 //sf = (gyroSens) * (0.5 * (pi/180) / 200.0) * 16384
1020 sf = (long)((long long)23832619764371LL / inv_obj.gyro_sens);
1022 sf = 0;
1025 result = inv_set_mpu_memory(KEY_D_0_24, 4, inv_int32_to_big8(sf, reg
[all...]
H A Dmlarray.c2133 long sf = 0; local
2139 sf = 2000 * 131 / mldl_cfg->gyro_sens_trim;
2141 sf = 2000;
2145 biasTmp = -inv_obj.gyro_bias[i] / sf;
2284 long sf; local
2292 sf = -inv_obj.temp_slope[i] / 1118;
2293 if (sf > 127) {
2294 sf -= 256;
2296 regs[i] = (unsigned char)sf;
H A Dmldl.c687 long sf; local
689 sf = (2000L * 131) / mldlCfg.gyro_sens_trim;
694 inv_obj.gyro_bias[ii] = -offset[ii] * sf;
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
H A Donyx_if.c751 SPEED_FEATURES *sf = &cpi->sf; local
756 int last_improved_quant = sf->improved_quant;
768 sf->RD = 1;
769 sf->search_method = NSTEP;
770 sf->improved_quant = 1;
771 sf->improved_dct = 1;
772 sf->auto_filter = 1;
773 sf->recode_loop = 1;
774 sf
[all...]
H A Dquantize.c448 invert_quant(cpi->sf.improved_quant, cpi->Y1quant[Q] + 0,
457 invert_quant(cpi->sf.improved_quant, cpi->Y2quant[Q] + 0,
466 invert_quant(cpi->sf.improved_quant, cpi->UVquant[Q] + 0,
476 invert_quant(cpi->sf.improved_quant, cpi->Y1quant[Q] + 1,
485 invert_quant(cpi->sf.improved_quant, cpi->Y2quant[Q] + 1,
494 invert_quant(cpi->sf.improved_quant, cpi->UVquant[Q] + 1,
H A Dtemporal_filter.c181 step_param = cpi->sf.first_step + (cpi->Speed > 5);
185 step_param = cpi->sf.first_step + 2;
H A Dencodeframe.c1170 if (cpi->sf.RD && cpi->compressor_speed != 2)
1235 if (cpi->sf.RD)
1240 if(cpi->sf.use_fastquant_for_pick)
1253 if (cpi->sf.improved_quant)
1329 if (cpi->sf.improved_quant)
H A Dpickinter.c503 !(cpi->sf.half_pixel_search) || cpi->common.full_pixel==1)
599 int sf_improved_mv_pred = cpi->sf.improved_mv_pred;
881 step_param = cpi->sf.first_step + speed_adjust;
962 0: (cpi->sf.max_step_search_steps - 1 - step_param);
964 if (cpi->sf.search_method == HEX)
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/src/
H A Dsvc_encodeframe.c179 static void sf_create_index(struct Superframe *sf) { argument
185 if (sf->count == 0 || sf->count >= 8) return;
188 marker |= sf->count - 1;
192 if (sf->magnitude < mask) break;
199 sf->index_size = 2 + (mag + 1) * sf->count;
200 bufp = sf->buffer;
203 for (i = 0; i < sf->count; ++i) {
204 int this_sz = sf
[all...]

Completed in 338 milliseconds

12