Searched defs:ref (Results 1 - 25 of 39) sorted by relevance

12

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
H A Dvp9_mbgraph.h25 } ref[MAX_REF_FRAMES]; member in struct:__anon1152
H A Dvp9_pickmode.c39 int ref = mbmi->ref_frame[0]; local
40 const MV ref_mv = mbmi->ref_mvs[ref][0].as_mv;
49 ref);
68 if ((x->pred_mv_sad[ref] >> 3) > x->pred_mv_sad[i]) {
79 assert(x->mv_best_ref_index[ref] <= 2);
80 if (x->mv_best_ref_index[ref] < 2)
81 mvp_full = mbmi->ref_mvs[ref][x->mv_best_ref_index[ref]].as_mv;
83 mvp_full = x->pred_mv[ref].as_mv;
140 int ref local
[all...]
H A Dvp9_encodemv.c203 const MV* mv, const MV* ref,
205 const MV diff = {mv->row - ref->row,
206 mv->col - ref->col};
208 usehp = usehp && vp9_use_mv_hp(ref);
237 const MV *ref = &mbmi->ref_mvs[mbmi->ref_frame[i]][0].as_mv; local
238 const MV diff = {mvs[i].as_mv.row - ref->row,
239 mvs[i].as_mv.col - ref->col};
202 vp9_encode_mv(VP9_COMP* cpi, vp9_writer* w, const MV* mv, const MV* ref, const nmv_context* mvctx, int usehp) argument
H A Dvp9_encodemb.c114 const int ref = is_inter_block(&xd->mi[0]->mbmi); local
176 mb->token_costs[tx_size][type][ref][band][0][pt]
179 mb->token_costs[tx_size][type][ref][band][0][pt]
225 rate0 += mb->token_costs[tx_size][type][ref][band][!x][pt]
230 rate1 += mb->token_costs[tx_size][type][ref][band][!x][pt]
262 mb->token_costs[tx_size][type][ref][band][1][0][t0];
267 mb->token_costs[tx_size][type][ref][band][1][0][t1];
284 rate0 += mb->token_costs[tx_size][type][ref][band][0][pt][t0];
285 rate1 += mb->token_costs[tx_size][type][ref][band][0][pt][t1];
H A Dvp9_tokenize.c228 const int ref = is_inter_block(mbmi); local
230 cpi->coef_counts[tx_size][type][ref];
232 cpi->common.fc.coef_probs[tx_size][type][ref];
234 cpi->common.counts.eob_branch[tx_size][type][ref];
H A Dvp9_variance.c1098 int height, const uint8_t *ref, int ref_stride) {
1104 tmp = pred[j] + ref[j];
1109 ref += ref_stride;
1097 vp9_comp_avg_pred(uint8_t *comp_pred, const uint8_t *pred, int width, int height, const uint8_t *ref, int ref_stride) argument
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/examples/
H A Dvp8cx_set_ref.c165 vpx_ref_frame_t ref; local
166 ref.frame_type = VP8_LAST_FRAME;
167 ref.img = raw;
168 if (vpx_codec_control(&codec, VP8_SET_REFERENCE, &ref))
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/x86/
H A Dvp9_sad4d_intrin_avx2.c15 uint8_t *ref[4],
24 ref0 = ref[0];
25 ref1 = ref[1];
26 ref2 = ref[2];
27 ref3 = ref[3];
39 // sum of the absolute differences between every ref-i to src
44 // sum every ref-i
85 uint8_t *ref[4],
96 ref0 = ref[0];
97 ref1 = ref[
13 vp9_sad32x32x4d_avx2(uint8_t *src, int src_stride, uint8_t *ref[4], int ref_stride, unsigned int res[4]) argument
83 vp9_sad64x64x4d_avx2(uint8_t *src, int src_stride, uint8_t *ref[4], int ref_stride, unsigned int res[4]) argument
[all...]
H A Dvp9_variance_impl_intrin_avx2.c19 __m256i src, src_expand_low, src_expand_high, ref, ref_expand_low; local
36 ref =_mm256_castsi128_si256(
38 ref = _mm256_inserti128_si256(ref,
45 ref_expand_low = _mm256_unpacklo_epi8(ref, zero_reg);
46 ref_expand_high = _mm256_unpackhi_epi8(ref, zero_reg);
48 // src-ref
52 // madd low (src - ref)
58 // madd high (src - ref)
130 __m256i src, src_expand_low, src_expand_high, ref, ref_expand_lo local
[all...]
/hardware/intel/common/libmix/videodecoder/
H A DVideoDecoderVP8.cpp41 ReferenceFrameBuffer ref = mRFBs[toggle][ref_type]; local
42 if (ref.surfaceBuffer) {
43 ref.surfaceBuffer->asReferernce = false;
H A DVideoDecoderAVC.cpp418 VAPictureH264 *ref = sliceParam->RefPicList0; local
425 for (int32_t j = 0; j <= activeMinus1; j++, ref++) {
426 if (!(ref->flags & VA_PICTURE_H264_INVALID)) {
427 ref->picture_id = findSurface(ref);
428 if (ref->picture_id == VA_INVALID_SURFACE) {
434 WTRACE("Reference frame %d is missing. Use last reference", getPOC(ref));
435 ref->picture_id = mLastReference->renderBuffer.surface;
437 ETRACE("Reference frame %d is missing. Stop decoding.", getPOC(ref));
444 ref
453 VAPictureH264 *ref = picParam->ReferenceFrames; local
[all...]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/
H A Dloopfilter.c118 ref, /* index in ref_lf_deltas */ local
160 ref = INTRA_FRAME;
163 lvl_ref = lvl_seg + mbd->ref_lf_deltas[ref];
172 lfi->lvl[seg][ref][mode] = lvl_mode;
177 lfi->lvl[seg][ref][mode] = lvl_mode;
180 for(ref = 1; ref < MAX_REF_FRAMES; ref++)
183 lvl_ref = lvl_seg + mbd->ref_lf_deltas[ref];
192 lfi->lvl[seg][ref][mod
[all...]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
H A Dvp9_entropymv.c133 int vp9_use_mv_hp(const MV *ref) { argument
134 return (abs(ref->row) >> 3) < COMPANDED_MVREF_THRESH &&
135 (abs(ref->col) >> 3) < COMPANDED_MVREF_THRESH;
H A Dvp9_reconintra.c314 static void build_intra_predictors(const MACROBLOCKD *xd, const uint8_t *ref, argument
360 left_col[i] = ref[i * ref_stride - 1];
364 left_col[i] = ref[i * ref_stride - 1];
366 left_col[i] = ref[(extend_bottom - 1) * ref_stride - 1];
371 left_col[i] = ref[i * ref_stride - 1];
378 const uint8_t *above_ref = ref - ref_stride;
440 const uint8_t *ref, int ref_stride,
452 build_intra_predictors(xd, ref, ref_stride, dst, dst_stride, mode, tx_size,
438 vp9_predict_intra_block(const MACROBLOCKD *xd, int block_idx, int bwl_in, TX_SIZE tx_size, MB_PREDICTION_MODE mode, const uint8_t *ref, int ref_stride, uint8_t *dst, int dst_stride, int aoff, int loff, int plane) argument
H A Dvp9_mvref_common.c32 // This is used to figure out a context for the ref blocks. The code flattens
137 static INLINE int_mv scale_mv(const MB_MODE_INFO *mbmi, int ref, argument
140 int_mv mv = mbmi->mv[ref];
141 if (ref_sign_bias[mbmi->ref_frame[ref]] != ref_sign_bias[this_ref_frame]) {
320 int block, int ref, int mi_row, int mi_col,
329 find_mv_refs_idx(cm, xd, tile, mi, mi->mbmi.ref_frame[ref], mv_list, block,
340 nearest->as_int = bmi[0].as_mv[ref].as_int;
349 candidates[0] = bmi[1].as_mv[ref];
350 candidates[1] = bmi[0].as_mv[ref];
354 nearest->as_int = bmi[2].as_mv[ref]
318 vp9_append_sub8x8_mvs_for_idx(VP9_COMMON *cm, MACROBLOCKD *xd, const TileInfo *const tile, int block, int ref, int mi_row, int mi_col, int_mv *nearest, int_mv *near) argument
[all...]
H A Dvp9_postproc.c437 char *ref = (char *)(noise + (rand() & 0xff)); // NOLINT local
446 pos[j] += ref[j];
H A Dvp9_reconinter.c71 int w, int h, int ref,
74 sf->predict[subpel_x != 0][subpel_y != 0][ref](
83 int w, int h, int ref,
97 sf, w, h, ref, kernel, sf->x_step_q4, sf->y_step_q4);
150 int ref; local
152 for (ref = 0; ref < 1 + is_compound; ++ref) {
153 const struct scale_factors *const sf = &xd->block_refs[ref]->sf;
154 struct buf_2d *const pre_buf = &pd->pre[ref];
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
254 int ref; local
[all...]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/
H A Dvp9_detokenize.c89 const int ref = is_inter_block(&xd->mi[0]->mbmi); local
92 fc->coef_probs[tx_size][type][ref];
95 counts->coef[tx_size][type][ref];
97 counts->eob_branch[tx_size][type][ref];
H A Dvp9_decodemv.c237 static INLINE void read_mv(vp9_reader *r, MV *mv, const MV *ref, argument
242 const int use_hp = allow_hp && vp9_use_mv_hp(ref);
253 mv->row = ref->row + diff.row;
254 mv->col = ref->col + diff.col;
285 // FIXME(rbultje) I'm pretty sure this breaks segmentation ref frame coding
432 int inter_mode_ctx, ref, is_compound; local
437 for (ref = 0; ref < 1 + is_compound; ++ref) {
438 const MV_REFERENCE_FRAME frame = mbmi->ref_frame[ref];
[all...]
/hardware/intel/img/psb_video/src/
H A Dtng_picmgmt.c52 VAStatus tng_picmgmt_update(context_ENC_p ctx, IMG_PICMGMT_TYPE eType, unsigned int ref) argument
62 F_ENCODE(ref, MTX_MSG_PICMGMT_DATA);
H A Dvsp_vp8.c305 struct ref_frame_surface *ref = local
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/
H A Dconvolve_test.cc344 uint8_t ref[kOutputStride * kMaxDimension]; local
354 ref, kOutputStride,
377 ASSERT_EQ(ref[y * kOutputStride + x], out[y * kOutputStride + x])
389 uint8_t ref[kOutputStride * kMaxDimension]; local
391 // Populate ref and out with some random data
398 ref[y * kOutputStride + x] = r;
413 ref, kOutputStride,
436 ASSERT_EQ(ref[y * kOutputStride + x], out[y * kOutputStride + x])
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/
H A Dvp8_cx_iface.c776 int ref = 7; local
779 ref ^= VP8_LAST_FRAME;
782 ref ^= VP8_GOLD_FRAME;
785 ref ^= VP8_ALTR_FRAME;
787 vp8_use_as_reference(ctx->cpi, ref);
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
H A Dbitstream.c452 vp8_writer *w, const MV *mv, const int_mv *ref, const MV_CONTEXT *mvc
456 e.row = mv->row - ref->as_mv.row;
457 e.col = mv->col - ref->as_mv.col;
500 /* Calculate the probabilities used to code the ref frame based on usage */
1403 * or ref frame (if they are enabled).
450 write_mv( vp8_writer *w, const MV *mv, const int_mv *ref, const MV_CONTEXT *mvc ) argument
H A Dmcomp.c26 int vp8_mv_bit_cost(int_mv *mv, int_mv *ref, int *mvcost[2], int Weight) argument
35 return ((mvcost[0][(mv->as_mv.row - ref->as_mv.row) >> 1] + mvcost[1][(mv->as_mv.col - ref->as_mv.col) >> 1]) * Weight) >> 7;
38 static int mv_err_cost(int_mv *mv, int_mv *ref, int *mvcost[2], int error_per_bit) argument
42 return ((mvcost[0][(mv->as_mv.row - ref->as_mv.row) >> 1] +
43 mvcost[1][(mv->as_mv.col - ref->as_mv.col) >> 1])
48 static int mvsad_err_cost(int_mv *mv, int_mv *ref, int *mvsadcost[2], int error_per_bit) argument
53 return ((mvsadcost[0][(mv->as_mv.row - ref->as_mv.row)] +
54 mvsadcost[1][(mv->as_mv.col - ref->as_mv.col)])
183 * cycles spent on reading ref dat
[all...]

Completed in 591 milliseconds

12