/external/libaom/libaom/av1/decoder/ |
D | decoder.c | 269 YV12_BUFFER_CONFIG *ref_buf = NULL; in av1_set_reference_dec() local 272 ref_buf = get_ref_frame(cm, idx); in av1_set_reference_dec() 274 if (ref_buf == NULL) { in av1_set_reference_dec() 280 if (!equal_dimensions(ref_buf, sd)) { in av1_set_reference_dec() 285 aom_yv12_copy_frame(sd, ref_buf, num_planes); in av1_set_reference_dec() 288 if (!equal_dimensions_and_border(ref_buf, sd)) { in av1_set_reference_dec() 295 ref_buf->store_buf_adr[0] = ref_buf->y_buffer; in av1_set_reference_dec() 296 ref_buf->store_buf_adr[1] = ref_buf->u_buffer; in av1_set_reference_dec() 297 ref_buf->store_buf_adr[2] = ref_buf->v_buffer; in av1_set_reference_dec() 298 ref_buf->y_buffer = sd->y_buffer; in av1_set_reference_dec() [all …]
|
D | decodeframe.c | 704 const RefCntBuffer *ref_buf = in dec_build_inter_predictors() local 710 (plane == 1) ? ref_buf->buf.u_buffer : ref_buf->buf.v_buffer; in dec_build_inter_predictors() 713 ref_buf->buf.uv_stride, in dec_build_inter_predictors() 715 pd->pre[ref].width = ref_buf->buf.uv_crop_width; in dec_build_inter_predictors() 716 pd->pre[ref].height = ref_buf->buf.uv_crop_height; in dec_build_inter_predictors() 717 pd->pre[ref].stride = ref_buf->buf.uv_stride; in dec_build_inter_predictors() 1067 const RefCntBuffer *ref_buf = get_ref_frame_buf(cm, frame); in predict_inter_block() local 1072 av1_setup_pre_planes(xd, ref, &ref_buf->buf, mi_row, mi_col, in predict_inter_block() 2445 const RefCntBuffer *const ref_buf = get_ref_frame_buf(cm, i); in setup_frame_size_with_refs() local 2451 if (ref_buf == NULL) { in setup_frame_size_with_refs() [all …]
|
/external/pdfium/core/fxcodec/codec/ |
D | fx_codec_fax.cpp | 84 void FaxG4FindB1B2(const std::vector<uint8_t>& ref_buf, in FaxG4FindB1B2() argument 91 (a0 < 0) ? 1 : ((ref_buf[a0 / 8] & (1 << (7 - a0 % 8))) != 0); in FaxG4FindB1B2() 92 *b1 = FindBit(ref_buf.data(), columns, a0 + 1, !first_bit); in FaxG4FindB1B2() 98 *b1 = FindBit(ref_buf.data(), columns, *b1 + 1, first_bit); in FaxG4FindB1B2() 105 *b2 = FindBit(ref_buf.data(), columns, *b1 + 1, first_bit); in FaxG4FindB1B2() 282 const std::vector<uint8_t>& ref_buf, in FaxG4GetRow() argument 294 FaxG4FindB1B2(ref_buf, columns, a0, a0color, &b1, &b2); in FaxG4GetRow() 571 std::vector<uint8_t> ref_buf(pitch, 0xff); in FaxG4Decode() local 576 FaxG4GetRow(src_buf, src_size << 3, &bitpos, line_buf, ref_buf, width); in FaxG4Decode() 577 memcpy(ref_buf.data(), line_buf, pitch); in FaxG4Decode() [all …]
|
/external/speex/libspeexdsp/ |
D | testecho.c | 20 short echo_buf[NN], ref_buf[NN], e_buf[NN]; in main() local 41 fread(ref_buf, sizeof(short), NN, ref_fd); in main() 43 speex_echo_cancellation(st, ref_buf, echo_buf, e_buf); in main()
|
/external/libaom/libaom/av1/encoder/ |
D | encode_strategy.c | 671 const YV12_BUFFER_CONFIG *const ref_buf, in dump_one_image() argument 676 if (ref_buf == NULL) { in dump_one_image() 688 fwrite(&ref_buf->y_buffer[h * ref_buf->y_stride], 1, cm->width, f_ref); in dump_one_image() 692 fwrite(&ref_buf->u_buffer[h * ref_buf->uv_stride], 1, (cm->width >> 1), in dump_one_image() 697 fwrite(&ref_buf->v_buffer[h * ref_buf->uv_stride], 1, (cm->width >> 1), in dump_one_image()
|
D | reconinter_enc.c | 146 const RefCntBuffer *ref_buf = in build_inter_predictors() local 152 (plane == 1) ? ref_buf->buf.u_buffer : ref_buf->buf.v_buffer; in build_inter_predictors() 155 ref_buf->buf.uv_stride, in build_inter_predictors() 157 pd->pre[ref].width = ref_buf->buf.uv_crop_width; in build_inter_predictors() 158 pd->pre[ref].height = ref_buf->buf.uv_crop_height; in build_inter_predictors() 159 pd->pre[ref].stride = ref_buf->buf.uv_stride; in build_inter_predictors()
|
D | mcomp.c | 2189 uint8_t const *ref_buf, *src_buf; in av1_int_pro_motion_estimation() local 2223 ref_buf = xd->plane[0].pre[0].buf - (bw >> 1); in av1_int_pro_motion_estimation() 2225 aom_int_pro_row(&hbuf[idx], ref_buf, ref_stride, bh); in av1_int_pro_motion_estimation() 2226 ref_buf += 16; in av1_int_pro_motion_estimation() 2229 ref_buf = xd->plane[0].pre[0].buf - (bh >> 1) * ref_stride; in av1_int_pro_motion_estimation() 2231 vbuf[idx] = aom_int_pro_col(ref_buf, bw) >> norm_factor; in av1_int_pro_motion_estimation() 2232 ref_buf += ref_stride; in av1_int_pro_motion_estimation() 2253 ref_buf = xd->plane[0].pre[0].buf + this_mv.row * ref_stride + this_mv.col; in av1_int_pro_motion_estimation() 2254 best_sad = cpi->fn_ptr[bsize].sdf(src_buf, src_stride, ref_buf, ref_stride); in av1_int_pro_motion_estimation() 2258 ref_buf - ref_stride, in av1_int_pro_motion_estimation() [all …]
|
D | tpl_model.c | 507 RefCntBuffer *ref_buf = get_ref_frame_buf(cm, GOLDEN_FRAME); in init_gop_frames() local 508 if (ref_buf) gf_picture[0].frame = &ref_buf->buf; in init_gop_frames()
|
D | encodeframe.c | 5495 YV12_BUFFER_CONFIG *ref_buf[REF_FRAMES]; in encode_frame_internal() local 5509 ref_buf[frame] = NULL; in encode_frame_internal() 5511 if (buf != NULL) ref_buf[frame] = &buf->buf; in encode_frame_internal() 5519 if (ref_buf[frame] == ref_buf[pframe]) break; in encode_frame_internal() 5524 } else if (ref_buf[frame] && in encode_frame_internal() 5525 ref_buf[frame]->y_crop_width == cpi->source->y_crop_width && in encode_frame_internal() 5526 ref_buf[frame]->y_crop_height == cpi->source->y_crop_height && in encode_frame_internal() 5531 is_cur_buf_hbd(xd), xd->bd, ref_buf[frame]->y_buffer, in encode_frame_internal() 5532 ref_buf[frame]->y_stride, cpi->source->y_buffer, in encode_frame_internal() 5558 av1_compute_global_motion(model, cpi->source, ref_buf[frame], in encode_frame_internal() [all …]
|
D | rd.c | 1059 const RefCntBuffer *const ref_buf = in av1_get_scaled_ref_frame() local 1061 return (scaled_buf != ref_buf && scaled_buf != NULL) ? &scaled_buf->buf in av1_get_scaled_ref_frame()
|
/external/libvpx/libvpx/vp9/decoder/ |
D | vp9_decoder.c | 227 YV12_BUFFER_CONFIG *ref_buf = NULL; in vp9_set_reference_dec() local 256 ref_buf = &cm->buffer_pool->frame_bufs[idx].buf; in vp9_set_reference_dec() 258 if (!equal_dimensions(ref_buf, sd)) { in vp9_set_reference_dec() 263 vpx_yv12_copy_frame(sd, ref_buf); in vp9_set_reference_dec()
|
D | vp9_decodeframe.c | 713 RefBuffer *ref_buf = &pbi->common.frame_refs[frame - LAST_FRAME]; in dec_build_inter_predictors_sb() local 714 const struct scale_factors *const sf = &ref_buf->sf; in dec_build_inter_predictors_sb() 715 const int idx = ref_buf->idx; in dec_build_inter_predictors_sb() 724 vp9_setup_pre_planes(xd, ref, ref_buf->buf, mi_row, mi_col, in dec_build_inter_predictors_sb() 726 xd->block_refs[ref] = ref_buf; in dec_build_inter_predictors_sb() 2295 RefBuffer *const ref_buf = &cm->frame_refs[i]; in read_uncompressed_header() local 2298 &ref_buf->sf, ref_buf->buf->y_crop_width, in read_uncompressed_header() 2299 ref_buf->buf->y_crop_height, cm->width, cm->height, in read_uncompressed_header() 2303 &ref_buf->sf, ref_buf->buf->y_crop_width, in read_uncompressed_header() 2304 ref_buf->buf->y_crop_height, cm->width, cm->height); in read_uncompressed_header()
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_mcomp.c | 2144 uint8_t const *ref_buf, *src_buf; in vp9_int_pro_motion_estimation() local 2181 ref_buf = xd->plane[0].pre[0].buf - (bw >> 1); in vp9_int_pro_motion_estimation() 2183 vpx_int_pro_row(&hbuf[idx], ref_buf, ref_stride, bh); in vp9_int_pro_motion_estimation() 2184 ref_buf += 16; in vp9_int_pro_motion_estimation() 2187 ref_buf = xd->plane[0].pre[0].buf - (bh >> 1) * ref_stride; in vp9_int_pro_motion_estimation() 2189 vbuf[idx] = vpx_int_pro_col(ref_buf, bw) >> norm_factor; in vp9_int_pro_motion_estimation() 2190 ref_buf += ref_stride; in vp9_int_pro_motion_estimation() 2211 ref_buf = xd->plane[0].pre[0].buf + this_mv.row * ref_stride + this_mv.col; in vp9_int_pro_motion_estimation() 2212 best_sad = cpi->fn_ptr[bsize].sdf(src_buf, src_stride, ref_buf, ref_stride); in vp9_int_pro_motion_estimation() 2216 ref_buf - ref_stride, in vp9_int_pro_motion_estimation() [all …]
|
D | vp9_encoder.c | 3602 RefBuffer *const ref_buf = &cm->frame_refs[ref_frame - 1]; local 3605 ref_buf->idx = buf_idx; 3609 ref_buf->buf = buf; 3612 &ref_buf->sf, buf->y_crop_width, buf->y_crop_height, cm->width, 3615 vp9_setup_scale_factors_for_frame(&ref_buf->sf, buf->y_crop_width, 3619 if (vp9_is_scaled(&ref_buf->sf)) vpx_extend_frame_borders(buf); 3621 ref_buf->buf = NULL;
|
/external/libaom/libaom/av1/common/ |
D | reconinter.c | 924 const RefCntBuffer *const ref_buf = get_ref_frame_buf(ctxt->cm, frame); in av1_setup_build_prediction_by_above_pred() local 931 av1_setup_pre_planes(xd, ref, &ref_buf->buf, ctxt->mi_row, above_mi_col, sf, in av1_setup_build_prediction_by_above_pred() 962 const RefCntBuffer *const ref_buf = get_ref_frame_buf(ctxt->cm, frame); in av1_setup_build_prediction_by_left_pred() local 970 av1_setup_pre_planes(xd, ref, &ref_buf->buf, left_mi_row, ctxt->mi_col, in av1_setup_build_prediction_by_left_pred()
|
D | mvref_common.c | 1022 const RefCntBuffer *ref_buf[INTER_REFS_PER_FRAME]; in av1_setup_motion_field() local 1032 ref_buf[ref_idx] = buf; in av1_setup_motion_field() 1043 if (ref_buf[LAST_FRAME - LAST_FRAME] != NULL) { in av1_setup_motion_field() 1045 ref_buf[LAST_FRAME - LAST_FRAME] in av1_setup_motion_field()
|