/external/libvpx/libvpx/vp8/encoder/ |
ratectrl.c | 224 void vp8_save_coding_context(VP8_COMP *cpi) 226 CODING_CONTEXT *const cc = & cpi->coding_context; 234 cc->frames_since_key = cpi->frames_since_key; 235 cc->filter_level = cpi->common.filter_level; 236 cc->frames_till_gf_update_due = cpi->frames_till_gf_update_due; 237 cc->frames_since_golden = cpi->common.frames_since_golden; 239 vp8_copy(cc->mvc, cpi->common.fc.mvc); 240 vp8_copy(cc->mvcosts, cpi->rd_costs.mvcosts); 242 vp8_copy(cc->ymode_prob, cpi->common.fc.ymode_prob); 243 vp8_copy(cc->uv_mode_prob, cpi->common.fc.uv_mode_prob) [all...] |
mr_dissim.h | 16 extern void vp8_cal_low_res_mb_cols(VP8_COMP *cpi); 17 extern void vp8_cal_dissimilarity(VP8_COMP *cpi); 18 extern void vp8_store_drop_frame_info(VP8_COMP *cpi);
|
ratectrl.h | 16 extern void vp8_save_coding_context(VP8_COMP *cpi); 17 extern void vp8_restore_coding_context(VP8_COMP *cpi); 19 extern void vp8_setup_key_frame(VP8_COMP *cpi); 20 extern void vp8_update_rate_correction_factors(VP8_COMP *cpi, int damp_var); 21 extern int vp8_regulate_q(VP8_COMP *cpi, int target_bits_per_frame); 22 extern void vp8_adjust_key_frame_context(VP8_COMP *cpi); 23 extern void vp8_compute_frame_size_bounds(VP8_COMP *cpi, int *frame_under_shoot_limit, int *frame_over_shoot_limit); 26 extern int vp8_pick_frame_size(VP8_COMP *cpi);
|
firstpass.h | 15 extern void vp8_init_first_pass(VP8_COMP *cpi); 16 extern void vp8_first_pass(VP8_COMP *cpi); 17 extern void vp8_end_first_pass(VP8_COMP *cpi); 19 extern void vp8_init_second_pass(VP8_COMP *cpi); 20 extern void vp8_second_pass(VP8_COMP *cpi); 21 extern void vp8_end_second_pass(VP8_COMP *cpi);
|
onyx_if.c | 47 extern int vp8_update_coef_context(VP8_COMP *cpi); 48 extern void vp8_update_coef_probs(VP8_COMP *cpi); 51 extern void vp8cx_pick_filter_level_fast(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi); 52 extern void vp8cx_set_alt_lf_level(VP8_COMP *cpi, int filt_val); 53 extern void vp8cx_pick_filter_level(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi); 59 extern int vp8cx_create_encoder_threads(VP8_COMP *cpi); 60 extern void vp8cx_remove_encoder_threads(VP8_COMP *cpi); 62 int vp8_estimate_entropy_savings(VP8_COMP *cpi); 66 extern void vp8_temporal_filter_prepare_c(VP8_COMP *cpi, int distance); 68 static void set_default_lf_deltas(VP8_COMP *cpi); 1716 VP8_COMP *cpi; local 2051 VP8_COMP *cpi = *ptr; local [all...] |
quantize.h | 17 extern void vp8_set_quantizer(struct VP8_COMP *cpi, int Q); 18 extern void vp8cx_frame_init_quantizer(struct VP8_COMP *cpi); 19 extern void vp8_update_zbin_extra(struct VP8_COMP *cpi, struct macroblock *x); 20 extern void vp8cx_mb_init_quantizer(struct VP8_COMP *cpi, struct macroblock *x, int ok_to_skip); 21 extern void vp8cx_init_quantizer(struct VP8_COMP *cpi);
|
segmentation.h | 16 extern void vp8_update_gf_useage_maps(VP8_COMP *cpi, VP8_COMMON *cm, MACROBLOCK *x);
|
firstpass.c | 35 extern void vp8cx_frame_init_quantizer(VP8_COMP *cpi); 37 extern void vp8_alloc_compressor_data(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 [all...] |
encodeframe.h | 12 extern void vp8_activity_masking(VP8_COMP *cpi, MACROBLOCK *x); 18 extern void vp8_encode_frame(VP8_COMP *cpi); 20 extern int vp8cx_encode_inter_macroblock(VP8_COMP *cpi, MACROBLOCK *x, 25 extern int vp8cx_encode_intra_macroblock(VP8_COMP *cpi, MACROBLOCK *x,
|
quantize.c | 430 void vp8cx_init_quantizer(VP8_COMP *cpi) 442 quant_val = vp8_dc_quant(Q, cpi->common.y1dc_delta_q); 443 cpi->Y1quant_fast[Q][0] = (1 << 16) / quant_val; 444 invert_quant(cpi->sf.improved_quant, cpi->Y1quant[Q] + 0, 445 cpi->Y1quant_shift[Q] + 0, quant_val); 446 cpi->Y1zbin[Q][0] = ((qzbin_factors[Q] * quant_val) + 64) >> 7; 447 cpi->Y1round[Q][0] = (qrounding_factors[Q] * quant_val) >> 7; 448 cpi->common.Y1dequant[Q][0] = quant_val; 449 cpi->zrun_zbin_boost_y1[Q][0] = (quant_val * zbin_boost[0]) >> 7 [all...] |
ethreading.c | 20 extern void vp8cx_mb_init_quantizer(VP8_COMP *cpi, MACROBLOCK *x, int ok_to_skip); 22 extern void vp8_loopfilter_frame(VP8_COMP *cpi, VP8_COMMON *cm); 26 VP8_COMP *cpi = (VP8_COMP *)(((LPFTHREAD_DATA *)p_data)->ptr1); local 27 VP8_COMMON *cm = &cpi->common; 31 if (cpi->b_multi_threaded == 0) 34 if (sem_wait(&cpi->h_event_start_lpf) == 0) 36 if (cpi->b_multi_threaded == 0) /* we're shutting down */ 39 vp8_loopfilter_frame(cpi, cm); 41 sem_post(&cpi->h_event_end_lpf); 52 VP8_COMP *cpi = (VP8_COMP *)(((ENCODETHREAD_DATA *)p_data)->ptr1) local [all...] |
encodeframe.c | 36 extern void vp8_stuff_mb(VP8_COMP *cpi, MACROBLOCK *x, TOKENEXTRA **t) ; 42 extern void vp8_convert_rfct_to_prob(VP8_COMP *const cpi); 43 extern void vp8cx_initialize_me_consts(VP8_COMP *cpi, int QIndex); 44 extern void vp8_auto_select_speed(VP8_COMP *cpi); 45 extern void vp8cx_init_mbrthread_data(VP8_COMP *cpi, 50 static void adjust_act_zbin( VP8_COMP *cpi, MACROBLOCK *x ); 81 static unsigned int tt_activity_measure( VP8_COMP *cpi, MACROBLOCK *x ) 104 static unsigned int alt_activity_measure( VP8_COMP *cpi, 107 return vp8_encode_intra(cpi,x, use_dc_pred); 115 static unsigned int mb_activity_measure( VP8_COMP *cpi, MACROBLOCK *x [all...] |
rdopt.h | 68 extern void vp8_initialize_rd_consts(VP8_COMP *cpi, int Qvalue); 69 extern void vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, int recon_uvoffset, int *returnrate, int *returndistortion, int *returnintra); 84 static void get_predictor_pointers(const VP8_COMP *cpi, 89 if (cpi->ref_frame_flags & VP8_LAST_FRAME) 90 get_plane_pointers(&cpi->common.yv12_fb[cpi->common.lst_fb_idx], 93 if (cpi->ref_frame_flags & VP8_GOLD_FRAME) 94 get_plane_pointers(&cpi->common.yv12_fb[cpi->common.gld_fb_idx], 97 if (cpi->ref_frame_flags & VP8_ALTR_FRAME [all...] |
segmentation.c | 15 void vp8_update_gf_useage_maps(VP8_COMP *cpi, VP8_COMMON *cm, MACROBLOCK *x) 21 x->gf_active_ptr = (signed char *)cpi->gf_active_flags; 26 vpx_memset(cpi->gf_active_flags, 1, (cm->mb_rows * cm->mb_cols)); 27 cpi->gf_active_count = cm->mb_rows * cm->mb_cols; 48 cpi->gf_active_count ++; 54 cpi->gf_active_count--;
|
bitstream.c | 109 static void update_mbintra_mode_probs(VP8_COMP *cpi) 111 VP8_COMMON *const x = & cpi->common; 113 vp8_writer *const w = cpi->bc; 121 Pnew, x->fc.ymode_prob, bct, (unsigned int *)cpi->mb.ymode_count 130 Pnew, x->fc.uv_mode_prob, bct, (unsigned int *)cpi->mb.uv_mode_count 378 static void pack_tokens_into_partitions_c(VP8_COMP *cpi, unsigned char *cx_data, 392 w = cpi->bc + i + 1; 396 for (mb_row = i; mb_row < cpi->common.mb_rows; mb_row += num_part) 398 const TOKENEXTRA *p = cpi->tplist[mb_row].start; 399 const TOKENEXTRA *stop = cpi->tplist[mb_row].stop [all...] |
picklpf.c | 98 static int get_min_filter_level(VP8_COMP *cpi, int base_qindex) 102 if (cpi->source_alt_ref_active && cpi->common.refresh_golden_frame && 103 !cpi->common.refresh_alt_ref_frame) 119 static int get_max_filter_level(VP8_COMP *cpi, int base_qindex) 129 if (cpi->twopass.section_intra_rating > 8) 135 void vp8cx_pick_filter_level_fast(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi) 137 VP8_COMMON *cm = &cpi->common; 141 int min_filter_level = get_min_filter_level(cpi, cm->base_qindex); 142 int max_filter_level = get_max_filter_level(cpi, cm->base_qindex) [all...] |
temporal_filter.c | 141 VP8_COMP *cpi, 148 MACROBLOCK *x = &cpi->mb; 180 if (cpi->Speed < 8) 182 step_param = cpi->sf.first_step + (cpi->Speed > 5); 186 step_param = cpi->sf.first_step + 2; 193 &cpi->fn_ptr[BLOCK_16X16], 202 bestsme = cpi->find_fractional_mv_step(x, b, d, 206 &cpi->fn_ptr[BLOCK_16X16], 225 VP8_COMP *cpi, [all...] |
rdopt.c | 40 extern void vp8_update_zbin_extra(VP8_COMP *cpi, MACROBLOCK *x); 220 void vp8cx_initialize_me_consts(VP8_COMP *cpi, int QIndex) 222 cpi->mb.sadperbit16 = sad_per_bit16lut[QIndex]; 223 cpi->mb.sadperbit4 = sad_per_bit4lut[QIndex]; 226 void vp8_initialize_rd_consts(VP8_COMP *cpi, int Qvalue) 238 cpi->RDMULT = (int)(rdconst * (capped_q * capped_q)); 241 if (cpi->zbin_over_quant > 0) 247 * The units of cpi->zbin_over_quant are 1/128 of Q bin size 249 oq_factor = 1.0 + ((double)0.0015625 * cpi->zbin_over_quant); 251 cpi->RDMULT = (int)(rdconst * (modq * modq)) [all...] |
pickinter.c | 392 static void update_mvcount(VP8_COMP *cpi, MACROBLOCK *x, int_mv *best_ref_mv) 409 void get_lower_res_motion_info(VP8_COMP *cpi, MACROBLOCKD *xd, int *dissim, 415 = ((LOWER_RES_FRAME_INFO*)cpi->oxcf.mr_low_res_mode_info)->mb_info; 426 parent_mb_row = mb_row*cpi->oxcf.mr_down_sampling_factor.den 427 /cpi->oxcf.mr_down_sampling_factor.num; 428 parent_mb_col = mb_col*cpi->oxcf.mr_down_sampling_factor.den 429 /cpi->oxcf.mr_down_sampling_factor.num; 430 parent_mb_index = parent_mb_row*cpi->mr_low_res_mb_cols + parent_mb_col; 440 if (cpi->oxcf.mr_encoder_id == (cpi->oxcf.mr_total_resolutions - 1) [all...] |
mr_dissim.c | 19 void vp8_cal_low_res_mb_cols(VP8_COMP *cpi) 24 unsigned int iw = cpi->oxcf.Width*cpi->oxcf.mr_down_sampling_factor.den 25 + cpi->oxcf.mr_down_sampling_factor.num - 1; 27 low_res_w = iw/cpi->oxcf.mr_down_sampling_factor.num; 28 cpi->mr_low_res_mb_cols = ((low_res_w + 15) >> 4); 53 void vp8_cal_dissimilarity(VP8_COMP *cpi) 55 VP8_COMMON *cm = &cpi->common; 63 if (cpi->oxcf.mr_total_resolutions >1 64 && cpi->oxcf.mr_encoder_id < (cpi->oxcf.mr_total_resolutions - 1) [all...] |
encodeintra.h | 16 int vp8_encode_intra(VP8_COMP *cpi, MACROBLOCK *x, int use_dc_pred);
|
pickinter.h | 17 extern void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset,
|
/external/libvpx/libvpx/test/ |
set_roi.cc | 44 // Initialize elements of cpi with valid defaults. 45 VP8_COMP cpi; local 46 cpi.mb.e_mbd.mb_segement_abs_delta = SEGMENT_DELTADATA; 47 cpi.cyclic_refresh_mode_enabled = 0; 48 cpi.mb.e_mbd.segmentation_enabled = 0; 49 cpi.mb.e_mbd.update_mb_segmentation_map = 0; 50 cpi.mb.e_mbd.update_mb_segmentation_data = 0; 51 cpi.common.mb_rows = 240 >> 4; 52 cpi.common.mb_cols = 320 >> 4; 53 const int mbs = (cpi.common.mb_rows * cpi.common.mb_cols) [all...] |
/external/tcpdump/ |
print-ipcomp.c | 55 u_int16_t cpi; local 61 cpi = EXTRACT_16BITS(&ipcomp->comp_cpi); 70 printf("IPComp(cpi=0x%04x)", cpi);
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/form/ |
Form22c.java | 81 int cpi = ci.getIndex(); local 83 if (! unsignedFitsInShort(cpi)) { 102 int cpi = ((CstInsn) insn).getIndex(); local 107 (short) cpi);
|