/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/ |
ratectrl.h | 21 extern void vp8_save_coding_context(VP8_COMP *cpi); 22 extern void vp8_restore_coding_context(VP8_COMP *cpi); 24 extern void vp8_setup_key_frame(VP8_COMP *cpi); 25 extern void vp8_update_rate_correction_factors(VP8_COMP *cpi, int damp_var); 26 extern int vp8_regulate_q(VP8_COMP *cpi, int target_bits_per_frame); 27 extern void vp8_adjust_key_frame_context(VP8_COMP *cpi); 28 extern void vp8_compute_frame_size_bounds(VP8_COMP *cpi, int *frame_under_shoot_limit, int *frame_over_shoot_limit); 31 extern int vp8_pick_frame_size(VP8_COMP *cpi);
|
ratectrl.c | 216 void vp8_save_coding_context(VP8_COMP *cpi) 218 CODING_CONTEXT *const cc = & cpi->coding_context; 226 cc->frames_since_key = cpi->frames_since_key; 227 cc->filter_level = cpi->common.filter_level; 228 cc->frames_till_gf_update_due = cpi->frames_till_gf_update_due; 229 cc->frames_since_golden = cpi->frames_since_golden; 231 vp8_copy(cc->mvc, cpi->common.fc.mvc); 232 vp8_copy(cc->mvcosts, cpi->rd_costs.mvcosts); 234 vp8_copy(cc->ymode_prob, cpi->common.fc.ymode_prob); 235 vp8_copy(cc->uv_mode_prob, cpi->common.fc.uv_mode_prob) [all...] |
mr_dissim.h | 20 extern void vp8_cal_low_res_mb_cols(VP8_COMP *cpi); 21 extern void vp8_cal_dissimilarity(VP8_COMP *cpi); 22 extern void vp8_store_drop_frame_info(VP8_COMP *cpi);
|
firstpass.h | 19 extern void vp8_init_first_pass(VP8_COMP *cpi); 20 extern void vp8_first_pass(VP8_COMP *cpi); 21 extern void vp8_end_first_pass(VP8_COMP *cpi); 23 extern void vp8_init_second_pass(VP8_COMP *cpi); 24 extern void vp8_second_pass(VP8_COMP *cpi); 25 extern void vp8_end_second_pass(VP8_COMP *cpi);
|
onyx_if.c | 48 extern int vp8_update_coef_context(VP8_COMP *cpi); 49 extern void vp8_update_coef_probs(VP8_COMP *cpi); 52 extern void vp8cx_pick_filter_level_fast(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi); 53 extern void vp8cx_set_alt_lf_level(VP8_COMP *cpi, int filt_val); 54 extern void vp8cx_pick_filter_level(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi); 60 extern int vp8cx_create_encoder_threads(VP8_COMP *cpi); 61 extern void vp8cx_remove_encoder_threads(VP8_COMP *cpi); 63 int vp8_estimate_entropy_savings(VP8_COMP *cpi); 67 extern void vp8_temporal_filter_prepare_c(VP8_COMP *cpi, int distance); 69 static void set_default_lf_deltas(VP8_COMP *cpi); 1789 VP8_COMP *cpi; local 2125 VP8_COMP *cpi = *ptr; local [all...] |
quantize.h | 21 extern void vp8_set_quantizer(struct VP8_COMP *cpi, int Q); 22 extern void vp8cx_frame_init_quantizer(struct VP8_COMP *cpi); 23 extern void vp8_update_zbin_extra(struct VP8_COMP *cpi, struct macroblock *x); 24 extern void vp8cx_mb_init_quantizer(struct VP8_COMP *cpi, struct macroblock *x, int ok_to_skip); 25 extern void vp8cx_init_quantizer(struct VP8_COMP *cpi);
|
firstpass.c | 36 extern void vp8cx_frame_init_quantizer(VP8_COMP *cpi); 38 extern void vp8_alloc_compressor_data(VP8_COMP *cpi); 56 #define POW1 (double)cpi->oxcf.two_pass_vbrbias/100.0 57 #define POW2 (double)cpi->oxcf.two_pass_vbrbias/100.0 77 static void find_next_key_frame(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame); 82 static void reset_fpf_position(VP8_COMP *cpi, FIRSTPASS_STATS *Position) 84 cpi->twopass.stats_in = Position; 87 static int lookup_next_frame_stats(VP8_COMP *cpi, FIRSTPASS_STATS *next_frame) 89 if (cpi->twopass.stats_in >= cpi->twopass.stats_in_end [all...] |
/external/libvpx/libvpx/vp9/encoder/ |
vp9_bitstream.h | 21 void vp9_pack_bitstream(VP9_COMP *cpi, uint8_t *dest, size_t *size); 23 static INLINE int vp9_preserve_existing_gf(VP9_COMP *cpi) { 24 return !cpi->multi_arf_allowed && cpi->refresh_golden_frame && 25 cpi->rc.is_src_frame_alt_ref && 26 (!cpi->use_svc || // Add spatial svc base layer case here 27 (is_two_pass_svc(cpi) && 28 cpi->svc.spatial_layer_id == 0 && 29 cpi->svc.layer_context[0].gold_ref_idx >=0 && 30 cpi->oxcf.ss_enable_auto_arf[0])) [all...] |
vp9_svc_layercontext.c | 23 void vp9_init_layer_context(VP9_COMP *const cpi) { 24 SVC *const svc = &cpi->svc; 25 const VP9EncoderConfig *const oxcf = &cpi->oxcf; 26 int mi_rows = cpi->common.mi_rows; 27 int mi_cols = cpi->common.mi_cols; 35 if (cpi->oxcf.error_resilient_mode == 0 && cpi->oxcf.pass == 2) { 36 if (vpx_realloc_frame_buffer(&cpi->svc.empty_frame.img, 38 cpi->common.subsampling_x, 39 cpi->common.subsampling_y [all...] |
vp9_encoder.c | 117 static void suppress_active_map(VP9_COMP *cpi) { 118 unsigned char *const seg_map = cpi->segmentation_map; 120 if (cpi->active_map.enabled || cpi->active_map.update) 121 for (i = 0; i < cpi->common.mi_rows * cpi->common.mi_cols; ++i) 126 static void apply_active_map(VP9_COMP *cpi) { 127 struct segmentation *const seg = &cpi->common.seg; 128 unsigned char *const seg_map = cpi->segmentation_map; 129 const unsigned char *const active_map = cpi->active_map.map 1611 VP9_COMP *volatile const cpi = vpx_memalign(32, sizeof(VP9_COMP)); local [all...] |
vp9_svc_layercontext.h | 90 void vp9_init_layer_context(struct VP9_COMP *const cpi); 93 void vp9_update_layer_context_change_config(struct VP9_COMP *const cpi, 98 void vp9_update_temporal_layer_framerate(struct VP9_COMP *const cpi); 101 void vp9_update_spatial_layer_framerate(struct VP9_COMP *const cpi, 105 // to be encoded, to the cpi struct. 106 void vp9_restore_layer_context(struct VP9_COMP *const cpi); 109 void vp9_save_layer_context(struct VP9_COMP *const cpi); 112 void vp9_init_second_pass_spatial_svc(struct VP9_COMP *cpi); 115 void vp9_inc_frame_in_layer(struct VP9_COMP *const cpi); 118 int vp9_is_upper_layer_key_frame(const struct VP9_COMP *const cpi); [all...] |
/external/libvpx/libvpx/vp8/encoder/ |
ratectrl.c | 217 void vp8_save_coding_context(VP8_COMP *cpi) 219 CODING_CONTEXT *const cc = & cpi->coding_context; 227 cc->frames_since_key = cpi->frames_since_key; 228 cc->filter_level = cpi->common.filter_level; 229 cc->frames_till_gf_update_due = cpi->frames_till_gf_update_due; 230 cc->frames_since_golden = cpi->frames_since_golden; 232 vp8_copy(cc->mvc, cpi->common.fc.mvc); 233 vp8_copy(cc->mvcosts, cpi->rd_costs.mvcosts); 235 vp8_copy(cc->ymode_prob, cpi->common.fc.ymode_prob); 236 vp8_copy(cc->uv_mode_prob, cpi->common.fc.uv_mode_prob) [all...] |
ratectrl.h | 21 extern void vp8_save_coding_context(VP8_COMP *cpi); 22 extern void vp8_restore_coding_context(VP8_COMP *cpi); 24 extern void vp8_setup_key_frame(VP8_COMP *cpi); 25 extern void vp8_update_rate_correction_factors(VP8_COMP *cpi, int damp_var); 26 extern int vp8_regulate_q(VP8_COMP *cpi, int target_bits_per_frame); 27 extern void vp8_adjust_key_frame_context(VP8_COMP *cpi); 28 extern void vp8_compute_frame_size_bounds(VP8_COMP *cpi, int *frame_under_shoot_limit, int *frame_over_shoot_limit); 31 extern int vp8_pick_frame_size(VP8_COMP *cpi); 33 extern int vp8_drop_encodedframe_overshoot(VP8_COMP *cpi, int Q);
|
mr_dissim.h | 20 extern void vp8_cal_low_res_mb_cols(VP8_COMP *cpi); 21 extern void vp8_cal_dissimilarity(VP8_COMP *cpi); 22 extern void vp8_store_drop_frame_info(VP8_COMP *cpi);
|
onyx_if.c | 51 extern int vp8_update_coef_context(VP8_COMP *cpi); 52 extern void vp8_update_coef_probs(VP8_COMP *cpi); 55 extern void vp8cx_pick_filter_level_fast(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi); 56 extern void vp8cx_set_alt_lf_level(VP8_COMP *cpi, int filt_val); 57 extern void vp8cx_pick_filter_level(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi); 63 extern int vp8cx_create_encoder_threads(VP8_COMP *cpi); 64 extern void vp8cx_remove_encoder_threads(VP8_COMP *cpi); 66 int vp8_estimate_entropy_savings(VP8_COMP *cpi); 70 extern void vp8_temporal_filter_prepare_c(VP8_COMP *cpi, int distance); 72 static void set_default_lf_deltas(VP8_COMP *cpi); 1843 VP8_COMP *cpi; local 2199 VP8_COMP *cpi = *ptr; local [all...] |
firstpass.h | 19 extern void vp8_init_first_pass(VP8_COMP *cpi); 20 extern void vp8_first_pass(VP8_COMP *cpi); 21 extern void vp8_end_first_pass(VP8_COMP *cpi); 23 extern void vp8_init_second_pass(VP8_COMP *cpi); 24 extern void vp8_second_pass(VP8_COMP *cpi); 25 extern void vp8_end_second_pass(VP8_COMP *cpi);
|
firstpass.c | 37 extern void vp8cx_frame_init_quantizer(VP8_COMP *cpi); 55 #define POW1 (double)cpi->oxcf.two_pass_vbrbias/100.0 56 #define POW2 (double)cpi->oxcf.two_pass_vbrbias/100.0 76 static void find_next_key_frame(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame); 81 static void reset_fpf_position(VP8_COMP *cpi, FIRSTPASS_STATS *Position) 83 cpi->twopass.stats_in = Position; 86 static int lookup_next_frame_stats(VP8_COMP *cpi, FIRSTPASS_STATS *next_frame) 88 if (cpi->twopass.stats_in >= cpi->twopass.stats_in_end) 91 *next_frame = *cpi->twopass.stats_in [all...] |
quantize.h | 24 extern void vp8_set_quantizer(struct VP8_COMP *cpi, int Q); 25 extern void vp8cx_frame_init_quantizer(struct VP8_COMP *cpi); 26 extern void vp8_update_zbin_extra(struct VP8_COMP *cpi, struct macroblock *x); 27 extern void vp8cx_mb_init_quantizer(struct VP8_COMP *cpi, struct macroblock *x, int ok_to_skip); 28 extern void vp8cx_init_quantizer(struct VP8_COMP *cpi);
|
vp8_quantize.c | 250 void vp8cx_init_quantizer(VP8_COMP *cpi) 262 quant_val = vp8_dc_quant(Q, cpi->common.y1dc_delta_q); 263 cpi->Y1quant_fast[Q][0] = (1 << 16) / quant_val; 264 invert_quant(cpi->sf.improved_quant, cpi->Y1quant[Q] + 0, 265 cpi->Y1quant_shift[Q] + 0, quant_val); 266 cpi->Y1zbin[Q][0] = ((qzbin_factors[Q] * quant_val) + 64) >> 7; 267 cpi->Y1round[Q][0] = (qrounding_factors[Q] * quant_val) >> 7; 268 cpi->common.Y1dequant[Q][0] = quant_val; 269 cpi->zrun_zbin_boost_y1[Q][0] = (quant_val * zbin_boost[0]) >> 7 [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
vp9_temporal_filter.h | 18 void vp9_temporal_filter_prepare(VP9_COMP *cpi, int distance); 19 void vp9_configure_arnr_filter(VP9_COMP *cpi,
|
vp9_svc_layercontext.h | 49 void vp9_init_layer_context(struct VP9_COMP *const cpi); 52 void vp9_update_layer_context_change_config(struct VP9_COMP *const cpi, 57 void vp9_update_temporal_layer_framerate(struct VP9_COMP *const cpi); 60 void vp9_update_spatial_layer_framerate(struct VP9_COMP *const cpi, 64 // to be encoded, to the cpi struct. 65 void vp9_restore_layer_context(struct VP9_COMP *const cpi); 68 void vp9_save_layer_context(struct VP9_COMP *const cpi); 71 void vp9_init_second_pass_spatial_svc(struct VP9_COMP *cpi);
|
vp9_onyx_if.c | 94 void vp9_init_quantizer(VP9_COMP *cpi); 122 static void set_high_precision_mv(VP9_COMP *cpi, int allow_high_precision_mv) { 123 MACROBLOCK *const mb = &cpi->mb; 124 cpi->common.allow_high_precision_mv = allow_high_precision_mv; 125 if (cpi->common.allow_high_precision_mv) { 134 static void setup_key_frame(VP9_COMP *cpi) { 135 vp9_setup_past_independence(&cpi->common); 138 cpi->refresh_golden_frame = 1; 139 cpi->refresh_alt_ref_frame = 1; 167 static void dealloc_compressor_data(VP9_COMP *cpi) { 1159 VP9_COMP *const cpi = vpx_memalign(32, sizeof(VP9_COMP)); local [all...] |
vp9_ratectrl.h | 88 void vp9_save_coding_context(struct VP9_COMP *cpi); 89 void vp9_restore_coding_context(struct VP9_COMP *cpi); 119 void vp9_rc_get_one_pass_vbr_params(struct VP9_COMP *cpi); 120 void vp9_rc_get_one_pass_cbr_params(struct VP9_COMP *cpi); 121 void vp9_rc_get_svc_params(struct VP9_COMP *cpi); 125 void vp9_rc_postencode_update(struct VP9_COMP *cpi, 128 void vp9_rc_postencode_update_drop_frame(struct VP9_COMP *cpi); 132 void vp9_rc_update_rate_correction_factors(struct VP9_COMP *cpi, int damp_var); 136 int vp9_rc_drop_frame(struct VP9_COMP *cpi); 139 void vp9_rc_compute_frame_size_bounds(const struct VP9_COMP *cpi, [all...] |
/external/libvpx/libvpx/test/ |
set_roi.cc | 46 // Initialize elements of cpi with valid defaults. 47 VP8_COMP cpi; local 48 cpi.mb.e_mbd.mb_segement_abs_delta = SEGMENT_DELTADATA; 49 cpi.cyclic_refresh_mode_enabled = 0; 50 cpi.mb.e_mbd.segmentation_enabled = 0; 51 cpi.mb.e_mbd.update_mb_segmentation_map = 0; 52 cpi.mb.e_mbd.update_mb_segmentation_data = 0; 53 cpi.common.mb_rows = 240 >> 4; 54 cpi.common.mb_cols = 320 >> 4; 55 const int mbs = (cpi.common.mb_rows * cpi.common.mb_cols) [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/ |
set_roi.cc | 46 // Initialize elements of cpi with valid defaults. 47 VP8_COMP cpi; local 48 cpi.mb.e_mbd.mb_segement_abs_delta = SEGMENT_DELTADATA; 49 cpi.cyclic_refresh_mode_enabled = 0; 50 cpi.mb.e_mbd.segmentation_enabled = 0; 51 cpi.mb.e_mbd.update_mb_segmentation_map = 0; 52 cpi.mb.e_mbd.update_mb_segmentation_data = 0; 53 cpi.common.mb_rows = 240 >> 4; 54 cpi.common.mb_cols = 320 >> 4; 55 const int mbs = (cpi.common.mb_rows * cpi.common.mb_cols) [all...] |