Searched defs:cpi (Results 1 - 25 of 97) sorted by relevance

1234

/external/chromium_org/third_party/libvpx/source/libvpx/vp9/encoder/
H A Dvp9_bitstream.h23 void vp9_pack_bitstream(VP9_COMP *cpi, uint8_t *dest, size_t *size);
25 static INLINE int vp9_preserve_existing_gf(VP9_COMP *cpi) { argument
26 return !cpi->multi_arf_allowed && cpi->refresh_golden_frame &&
27 cpi->rc.is_src_frame_alt_ref &&
28 (!cpi->use_svc || // Add spatial svc base layer case here
29 (is_two_pass_svc(cpi) &&
30 cpi->svc.spatial_layer_id == 0 &&
31 cpi->svc.layer_context[0].gold_ref_idx >=0 &&
32 cpi
[all...]
H A Dvp9_speed_features.c18 static int frame_is_boosted(const VP9_COMP *cpi) { argument
19 return frame_is_intra_only(&cpi->common) ||
20 cpi->refresh_alt_ref_frame ||
21 (cpi->refresh_golden_frame && !cpi->rc.is_src_frame_alt_ref) ||
22 vp9_is_upper_layer_key_frame(cpi);
26 static void set_good_speed_feature(VP9_COMP *cpi, VP9_COMMON *cm, argument
28 const int boosted = frame_is_boosted(cpi);
66 sf->tx_size_search_method = frame_is_boosted(cpi) ? USE_FULL_RD
155 cpi
162 set_rt_speed_feature(VP9_COMP *cpi, SPEED_FEATURES *sf, int speed, vp9e_tune_content content) argument
322 vp9_set_speed_features(VP9_COMP *cpi) argument
[all...]
H A Dvp9_context_tree.c90 void vp9_setup_pc_tree(VP9_COMMON *cm, VP9_COMP *cpi) { argument
100 vpx_free(cpi->leaf_tree);
101 CHECK_MEM_ERROR(cm, cpi->leaf_tree, vpx_calloc(leaf_nodes,
102 sizeof(*cpi->leaf_tree)));
103 vpx_free(cpi->pc_tree);
104 CHECK_MEM_ERROR(cm, cpi->pc_tree, vpx_calloc(tree_nodes,
105 sizeof(*cpi->pc_tree)));
107 this_pc = &cpi->pc_tree[0];
108 this_leaf = &cpi->leaf_tree[0];
113 alloc_mode_context(cm, 1, &cpi
142 vp9_free_pc_tree(VP9_COMP *cpi) argument
[all...]
H A Dvp9_picklpf.c26 static int get_max_filter_level(const VP9_COMP *cpi) { argument
27 if (cpi->oxcf.pass == 2) {
28 return cpi->twopass.section_intra_rating > 8 ? MAX_LOOP_FILTER * 3 / 4
36 static int try_filter_frame(const YV12_BUFFER_CONFIG *sd, VP9_COMP *const cpi, argument
38 VP9_COMMON *const cm = &cpi->common;
41 vp9_loop_filter_frame(cm->frame_to_show, cm, &cpi->mb.e_mbd, filt_level, 1,
46 vpx_yv12_copy_y(&cpi->last_frame_uf, cm->frame_to_show);
51 static int search_filter_level(const YV12_BUFFER_CONFIG *sd, VP9_COMP *cpi, argument
53 const VP9_COMMON *const cm = &cpi->common;
56 const int max_filter_level = get_max_filter_level(cpi);
132 vp9_pick_filter_level(const YV12_BUFFER_CONFIG *sd, VP9_COMP *cpi, LPF_PICK_METHOD method) argument
[all...]
H A Dvp9_aq_complexity.c32 void vp9_setup_in_frame_q_adj(VP9_COMP *cpi) { argument
33 VP9_COMMON *const cm = &cpi->common;
40 cpi->refresh_alt_ref_frame ||
41 (cpi->refresh_golden_frame && !cpi->rc.is_src_frame_alt_ref)) {
47 vpx_memset(cpi->segmentation_map, 0, cm->mi_rows * cm->mi_cols);
50 vpx_memset(cpi->complexity_map, 0, cm->mi_rows * cm->mi_cols);
56 if (cpi->rc.sb64_target_rate < 256) {
72 vp9_compute_qdelta_by_rate(&cpi->rc, cm->frame_type, cm->base_qindex,
97 void vp9_select_in_frame_q_segment(VP9_COMP *cpi, argument
[all...]
H A Dvp9_aq_variance.c75 void vp9_vaq_frame_setup(VP9_COMP *cpi) { argument
76 VP9_COMMON *cm = &cpi->common;
79 const int base_rdmult = vp9_compute_rd_mult(cpi, cm->base_qindex +
84 cpi->refresh_alt_ref_frame ||
85 (cpi->refresh_golden_frame && !cpi->rc.is_src_frame_alt_ref)) {
102 qindex_delta = vp9_compute_qdelta(&cpi->rc, base_q, base_q * Q_RATIO(i),
107 segment_rdmult = vp9_compute_rd_mult(cpi, cm->base_qindex + qindex_delta +
116 static unsigned int block_variance(VP9_COMP *cpi, MACROBLOCK *x, argument
134 var = cpi
141 vp9_block_energy(VP9_COMP *cpi, MACROBLOCK *x, BLOCK_SIZE bs) argument
[all...]
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/encoder/
H A Dsegmentation.c15 void vp8_update_gf_useage_maps(VP8_COMP *cpi, VP8_COMMON *cm, MACROBLOCK *x) argument
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--;
H A Dencodeintra.c21 int vp8_encode_intra(VP8_COMP *cpi, MACROBLOCK *x, int use_dc_pred) argument
26 (void) cpi;
H A Drdopt.h72 extern void vp8_initialize_rd_consts(VP8_COMP *cpi, MACROBLOCK *x, int Qvalue);
73 extern void vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x,
91 static void get_predictor_pointers(const VP8_COMP *cpi, argument
96 if (cpi->ref_frame_flags & VP8_LAST_FRAME)
97 get_plane_pointers(&cpi->common.yv12_fb[cpi->common.lst_fb_idx],
100 if (cpi->ref_frame_flags & VP8_GOLD_FRAME)
101 get_plane_pointers(&cpi->common.yv12_fb[cpi->common.gld_fb_idx],
104 if (cpi
110 get_reference_search_order(const VP8_COMP *cpi, int ref_frame_map[4]) argument
[all...]
H A Dmr_dissim.c20 void vp8_cal_low_res_mb_cols(VP8_COMP *cpi) argument
25 unsigned int iw = cpi->oxcf.Width*cpi->oxcf.mr_down_sampling_factor.den
26 + cpi->oxcf.mr_down_sampling_factor.num - 1;
28 low_res_w = iw/cpi->oxcf.mr_down_sampling_factor.num;
29 cpi->mr_low_res_mb_cols = ((low_res_w + 15) >> 4);
54 void vp8_cal_dissimilarity(VP8_COMP *cpi) argument
56 VP8_COMMON *cm = &cpi->common;
64 if (cpi->oxcf.mr_total_resolutions >1
65 && cpi
218 vp8_store_drop_frame_info(VP8_COMP *cpi) argument
[all...]
H A Dencodemv.c357 void vp8_write_mvprobs(VP8_COMP *cpi) argument
359 vp8_writer *const w = cpi->bc;
360 MV_CONTEXT *mvc = cpi->common.fc.mvc;
367 cpi->mb.MVcount[0], 0, &flags[0]
371 cpi->mb.MVcount[1], 1, &flags[1]
375 vp8_build_component_cost_table(cpi->mb.mvcost, (const MV_CONTEXT *) cpi->common.fc.mvc, flags);
H A Dethreading.c20 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 local
450 vp8cx_init_mbrthread_data(VP8_COMP *cpi, MACROBLOCK *x, MB_ROW_COMP *mbr_ei, int count ) argument
512 vp8cx_create_encoder_threads(VP8_COMP *cpi) argument
638 vp8cx_remove_encoder_threads(VP8_COMP *cpi) argument
[all...]
/external/libvpx/libvpx/vp8/encoder/
H A Dsegmentation.c15 void vp8_update_gf_useage_maps(VP8_COMP *cpi, VP8_COMMON *cm, MACROBLOCK *x) argument
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--;
H A Dencodeintra.c21 int vp8_encode_intra(VP8_COMP *cpi, MACROBLOCK *x, int use_dc_pred) argument
26 (void) cpi;
H A Drdopt.h72 extern void vp8_initialize_rd_consts(VP8_COMP *cpi, MACROBLOCK *x, int Qvalue);
73 extern void vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, int recon_uvoffset, int *returnrate, int *returndistortion, int *returnintra);
88 static void get_predictor_pointers(const VP8_COMP *cpi, argument
93 if (cpi->ref_frame_flags & VP8_LAST_FRAME)
94 get_plane_pointers(&cpi->common.yv12_fb[cpi->common.lst_fb_idx],
97 if (cpi->ref_frame_flags & VP8_GOLD_FRAME)
98 get_plane_pointers(&cpi->common.yv12_fb[cpi->common.gld_fb_idx],
101 if (cpi
107 get_reference_search_order(const VP8_COMP *cpi, int ref_frame_map[4]) argument
[all...]
H A Dmr_dissim.c19 void vp8_cal_low_res_mb_cols(VP8_COMP *cpi) argument
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) argument
55 VP8_COMMON *cm = &cpi->common;
63 if (cpi->oxcf.mr_total_resolutions >1
64 && cpi
217 vp8_store_drop_frame_info(VP8_COMP *cpi) argument
[all...]
/external/tcpdump/
H A Dprint-ipcomp.c55 u_int16_t cpi; local
61 cpi = EXTRACT_16BITS(&ipcomp->comp_cpi);
70 printf("IPComp(cpi=0x%04x)", cpi);
/external/chromium_org/third_party/libvpx/source/libvpx/test/
H A Dset_roi.cc46 // 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
[all...]
/external/libvpx/libvpx/test/
H A Dset_roi.cc46 // 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
[all...]
/external/libvpx/libvpx/vp9/encoder/
H A Dvp9_speed_features.c43 static void set_good_speed_feature(VP9_COMP *cpi, VP9_COMMON *cm, argument
52 sf->tx_size_search_method = vp9_frame_is_boosted(cpi) ? USE_FULL_RD
76 sf->tx_size_search_method = vp9_frame_is_boosted(cpi) ? USE_FULL_RD
135 cpi->allow_encode_breakout = ENCODE_BREAKOUT_ENABLED;
284 void vp9_set_speed_features(VP9_COMP *cpi) { argument
285 SPEED_FEATURES *const sf = &cpi->sf;
286 VP9_COMMON *const cm = &cpi->common;
287 const VP9_CONFIG *const oxcf = &cpi->oxcf;
288 const int speed = cpi->speed < 0 ? -cpi
[all...]
H A Dvp9_aq_complexity.c21 void vp9_setup_in_frame_q_adj(VP9_COMP *cpi) { argument
22 VP9_COMMON *const cm = &cpi->common;
29 cpi->refresh_alt_ref_frame ||
30 (cpi->refresh_golden_frame && !cpi->rc.is_src_frame_alt_ref)) {
34 vpx_memset(cpi->segmentation_map, 0, cm->mi_rows * cm->mi_cols);
37 vpx_memset(cpi->complexity_map, 0, cm->mi_rows * cm->mi_cols);
51 vp9_compute_qdelta_by_rate(&cpi->rc, cm->frame_type, cm->base_qindex,
60 void vp9_select_in_frame_q_segment(VP9_COMP *cpi, argument
63 VP9_COMMON *const cm = &cpi
[all...]
H A Dvp9_picklpf.c26 static int get_max_filter_level(VP9_COMP *cpi) { argument
27 return cpi->twopass.section_intra_rating > 8 ? MAX_LOOP_FILTER * 3 / 4
32 static int try_filter_frame(const YV12_BUFFER_CONFIG *sd, VP9_COMP *const cpi, argument
34 VP9_COMMON *const cm = &cpi->common;
37 vp9_loop_filter_frame(cm, &cpi->mb.e_mbd, filt_level, 1, partial_frame);
41 vpx_yv12_copy_y(&cpi->last_frame_uf, cm->frame_to_show);
46 static void search_filter_level(const YV12_BUFFER_CONFIG *sd, VP9_COMP *cpi, argument
48 VP9_COMMON *const cm = &cpi->common;
51 const int max_filter_level = get_max_filter_level(cpi);
66 vpx_yv12_copy_y(cm->frame_to_show, &cpi
134 vp9_pick_filter_level(const YV12_BUFFER_CONFIG *sd, VP9_COMP *cpi, LPF_PICK_METHOD method) argument
[all...]
H A Dvp9_svc_layercontext.c16 void vp9_init_layer_context(VP9_COMP *const cpi) { argument
17 SVC *const svc = &cpi->svc;
18 const VP9_CONFIG *const oxcf = &cpi->oxcf;
65 void vp9_update_layer_context_change_config(VP9_COMP *const cpi, argument
67 SVC *const svc = &cpi->svc;
68 const VP9_CONFIG *const oxcf = &cpi->oxcf;
69 const RATE_CONTROL *const rc = &cpi->rc;
119 void vp9_update_temporal_layer_framerate(VP9_COMP *const cpi) { argument
120 SVC *const svc = &cpi->svc;
121 const VP9_CONFIG *const oxcf = &cpi
143 vp9_update_spatial_layer_framerate(VP9_COMP *const cpi, double framerate) argument
170 vp9_restore_layer_context(VP9_COMP *const cpi) argument
190 vp9_save_layer_context(VP9_COMP *const cpi) argument
203 vp9_init_second_pass_spatial_svc(VP9_COMP *cpi) argument
[all...]
H A Dvp9_aq_variance.c75 void vp9_vaq_frame_setup(VP9_COMP *cpi) { argument
76 VP9_COMMON *cm = &cpi->common;
79 const int base_rdmult = vp9_compute_rd_mult(cpi, cm->base_qindex +
84 cpi->refresh_alt_ref_frame ||
85 (cpi->refresh_golden_frame && !cpi->rc.is_src_frame_alt_ref)) {
102 qindex_delta = vp9_compute_qdelta(&cpi->rc, base_q, base_q * Q_RATIO(i));
106 segment_rdmult = vp9_compute_rd_mult(cpi, cm->base_qindex + qindex_delta +
115 static unsigned int block_variance(VP9_COMP *cpi, MACROBLOCK *x, argument
133 var = cpi
140 vp9_block_energy(VP9_COMP *cpi, MACROBLOCK *x, BLOCK_SIZE bs) argument
[all...]
/external/libvterm/src/
H A Dencoding.c29 uint32_t cp[], int *cpi, int cplen,
38 for(; *pos < bytelen && *cpi < cplen; (*pos)++) {
50 cp[(*cpi)++] = UNICODE_INVALID;
52 cp[(*cpi)++] = c;
61 cp[(*cpi)++] = UNICODE_INVALID;
94 cp[(*cpi)++] = data->this_cp;
100 cp[(*cpi)++] = UNICODE_INVALID;
109 cp[(*cpi)++] = UNICODE_INVALID;
118 cp[(*cpi)++] = UNICODE_INVALID;
127 cp[(*cpi)
28 decode_utf8(VTermEncoding *enc, void *data_, uint32_t cp[], int *cpi, int cplen, const char bytes[], size_t *pos, size_t bytelen) argument
154 decode_usascii(VTermEncoding *enc, void *data, uint32_t cp[], int *cpi, int cplen, const char bytes[], size_t *pos, size_t bytelen) argument
179 decode_table(VTermEncoding *enc, void *data, uint32_t cp[], int *cpi, int cplen, const char bytes[], size_t *pos, size_t bytelen) argument
[all...]

Completed in 381 milliseconds

1234