/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
D | tools_common.c | 84 int plane = 0; in read_yuv_frame() local 87 for (plane = 0; plane < 3; ++plane) { in read_yuv_frame() 89 const int w = (plane ? (1 + yuv_frame->d_w) / 2 : yuv_frame->d_w); in read_yuv_frame() 90 const int h = (plane ? (1 + yuv_frame->d_h) / 2 : yuv_frame->d_h); in read_yuv_frame() 97 switch (plane) { in read_yuv_frame() 107 ptr = yuv_frame->planes[plane]; in read_yuv_frame() 125 ptr += yuv_frame->stride[plane]; in read_yuv_frame() 206 int vpx_img_plane_width(const vpx_image_t *img, int plane) { in vpx_img_plane_width() argument 207 if (plane > 0 && img->x_chroma_shift > 0) in vpx_img_plane_width() 213 int vpx_img_plane_height(const vpx_image_t *img, int plane) { in vpx_img_plane_height() argument [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/ |
D | vp9_blockd.c | 40 const MACROBLOCKD *const xd, BLOCK_SIZE bsize, int plane, in vp9_foreach_transformed_block_in_plane() argument 42 const struct macroblockd_plane *const pd = &xd->plane[plane]; in vp9_foreach_transformed_block_in_plane() 47 const TX_SIZE tx_size = plane ? get_uv_tx_size(mbmi) in vp9_foreach_transformed_block_in_plane() 79 visit(plane, i, plane_bsize, tx_size, arg); in vp9_foreach_transformed_block_in_plane() 85 visit(plane, i, plane_bsize, tx_size, arg); in vp9_foreach_transformed_block_in_plane() 93 int plane; in vp9_foreach_transformed_block() local 95 for (plane = 0; plane < MAX_MB_PLANE; plane++) in vp9_foreach_transformed_block() 96 vp9_foreach_transformed_block_in_plane(xd, bsize, plane, visit, arg); in vp9_foreach_transformed_block() 145 xd->plane[i].plane_type = i ? PLANE_TYPE_UV : PLANE_TYPE_Y; in vp9_setup_block_planes() 146 xd->plane[i].subsampling_x = i ? ss_x : 0; in vp9_setup_block_planes() [all …]
|
D | vp9_reconinter.c | 142 static void build_inter_predictors(MACROBLOCKD *xd, int plane, int block, in build_inter_predictors() argument 146 struct macroblockd_plane *const pd = &xd->plane[plane]; in build_inter_predictors() 163 ? (plane == 0 ? mi->bmi[block].as_mv[ref].as_mv in build_inter_predictors() 204 int plane; in build_inter_predictors_for_planes() local 207 for (plane = plane_from; plane <= plane_to; ++plane) { in build_inter_predictors_for_planes() 209 &xd->plane[plane]); in build_inter_predictors_for_planes() 220 build_inter_predictors(xd, plane, i++, bw, bh, in build_inter_predictors_for_planes() 223 build_inter_predictors(xd, plane, 0, bw, bh, in build_inter_predictors_for_planes() 246 static void dec_build_inter_predictors(MACROBLOCKD *xd, int plane, int block, in dec_build_inter_predictors() argument 250 struct macroblockd_plane *const pd = &xd->plane[plane]; in dec_build_inter_predictors() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
D | vp9_encodemb.c | 54 void vp9_subtract_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane) { in vp9_subtract_plane() argument 55 struct macroblock_plane *const p = &x->plane[plane]; in vp9_subtract_plane() 56 const struct macroblockd_plane *const pd = &x->e_mbd.plane[plane]; in vp9_subtract_plane() 108 static void optimize_b(int plane, int block, BLOCK_SIZE plane_bsize, in optimize_b() argument 112 struct macroblock_plane *p = &mb->plane[plane]; in optimize_b() 113 struct macroblockd_plane *pd = &xd->plane[plane]; in optimize_b() 117 const int16_t *coeff = BLOCK_OFFSET(mb->plane[plane].coeff, block); in optimize_b() 137 assert((!type && !plane) || (type && plane)); in optimize_b() 305 mb->plane[plane].eobs[block] = final_eob; in optimize_b() 317 void vp9_xform_quant(MACROBLOCK *x, int plane, int block, in vp9_xform_quant() argument [all …]
|
D | vp9_mbgraph.c | 75 return vp9_sad16x16(x->plane[0].src.buf, x->plane[0].src.stride, in do_16x16_motion_iteration() 76 xd->plane[0].dst.buf, xd->plane[0].dst.stride, in do_16x16_motion_iteration() 89 err = vp9_sad16x16(x->plane[0].src.buf, x->plane[0].src.stride, in do_16x16_motion_search() 90 xd->plane[0].pre[0].buf, xd->plane[0].pre[0].stride, in do_16x16_motion_search() 128 err = vp9_sad16x16(x->plane[0].src.buf, x->plane[0].src.stride, in do_16x16_zerozero_search() 129 xd->plane[0].pre[0].buf, xd->plane[0].pre[0].stride, in do_16x16_zerozero_search() 150 x->plane[0].src.buf, x->plane[0].src.stride, in find_best_16x16_intra() 151 xd->plane[0].dst.buf, xd->plane[0].dst.stride, in find_best_16x16_intra() 153 err = vp9_sad16x16(x->plane[0].src.buf, x->plane[0].src.stride, in find_best_16x16_intra() 154 xd->plane[0].dst.buf, xd->plane[0].dst.stride, best_err); in find_best_16x16_intra() [all …]
|
D | vp9_quantize.c | 129 void vp9_regular_quantize_b_4x4(MACROBLOCK *x, int plane, int block, in vp9_regular_quantize_b_4x4() argument 132 struct macroblock_plane *p = &x->plane[plane]; in vp9_regular_quantize_b_4x4() 133 struct macroblockd_plane *pd = &xd->plane[plane]; in vp9_regular_quantize_b_4x4() 227 x->plane[0].quant = quants->y_quant[qindex]; in vp9_init_plane_quantizers() 228 x->plane[0].quant_shift = quants->y_quant_shift[qindex]; in vp9_init_plane_quantizers() 229 x->plane[0].zbin = quants->y_zbin[qindex]; in vp9_init_plane_quantizers() 230 x->plane[0].round = quants->y_round[qindex]; in vp9_init_plane_quantizers() 231 x->plane[0].zbin_extra = (int16_t)((cm->y_dequant[qindex][1] * zbin) >> 7); in vp9_init_plane_quantizers() 232 xd->plane[0].dequant = cm->y_dequant[qindex]; in vp9_init_plane_quantizers() 236 x->plane[i].quant = quants->uv_quant[qindex]; in vp9_init_plane_quantizers() [all …]
|
D | vp9_tokenize.c | 167 static void set_entropy_context_b(int plane, int block, BLOCK_SIZE plane_bsize, in set_entropy_context_b() argument 171 struct macroblock_plane *p = &args->cpi->mb.plane[plane]; in set_entropy_context_b() 172 struct macroblockd_plane *pd = &xd->plane[plane]; in set_entropy_context_b() 209 static void tokenize_b(int plane, int block, BLOCK_SIZE plane_bsize, in tokenize_b() argument 216 struct macroblock_plane *p = &cpi->mb.plane[plane]; in tokenize_b() 217 struct macroblockd_plane *pd = &xd->plane[plane]; in tokenize_b() 293 static void is_skippable(int plane, int block, in is_skippable() argument 297 args->skippable[0] &= (!args->x->plane[plane].eobs[block]); in is_skippable() 300 int vp9_is_skippable_in_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane) { in vp9_is_skippable_in_plane() argument 303 vp9_foreach_transformed_block_in_plane(&x->e_mbd, bsize, plane, is_skippable, in vp9_is_skippable_in_plane()
|
D | vp9_encodemb.h | 26 void vp9_xform_quant(MACROBLOCK *x, int plane, int block, 29 void vp9_subtract_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane); 31 void vp9_encode_block_intra(MACROBLOCK *x, int plane, int block, 35 void vp9_encode_intra_block_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane);
|
D | vp9_temporal_filter.c | 142 struct buf_2d src = x->plane[0].src; in temporal_filter_find_matching_mb_c() 143 struct buf_2d pre = xd->plane[0].pre[0]; in temporal_filter_find_matching_mb_c() 149 x->plane[0].src.buf = arf_frame_buf; in temporal_filter_find_matching_mb_c() 150 x->plane[0].src.stride = stride; in temporal_filter_find_matching_mb_c() 151 xd->plane[0].pre[0].buf = frame_ptr_buf; in temporal_filter_find_matching_mb_c() 152 xd->plane[0].pre[0].stride = stride; in temporal_filter_find_matching_mb_c() 183 x->plane[0].src = src; in temporal_filter_find_matching_mb_c() 184 xd->plane[0].pre[0] = pre; in temporal_filter_find_matching_mb_c() 209 const int mb_uv_height = 16 >> mbd->plane[1].subsampling_y; in temporal_filter_iterate_c() 216 assert(mbd->plane[1].subsampling_x == mbd->plane[1].subsampling_y); in temporal_filter_iterate_c() [all …]
|
D | vp9_mcomp.c | 273 const uint8_t *z = x->plane[0].src.buf; in vp9_find_best_sub_pixel_tree() 274 const int src_stride = x->plane[0].src.stride; in vp9_find_best_sub_pixel_tree() 284 const int y_stride = xd->plane[0].pre[0].stride; in vp9_find_best_sub_pixel_tree() 286 const uint8_t *y = xd->plane[0].pre[0].buf + offset; in vp9_find_best_sub_pixel_tree() 371 const uint8_t *z = x->plane[0].src.buf; in vp9_find_best_sub_pixel_comp_tree() 372 const int src_stride = x->plane[0].src.stride; in vp9_find_best_sub_pixel_comp_tree() 383 const int y_stride = xd->plane[0].pre[0].stride; in vp9_find_best_sub_pixel_comp_tree() 385 const uint8_t *y = xd->plane[0].pre[0].buf + offset; in vp9_find_best_sub_pixel_comp_tree() 515 const struct buf_2d *const what = &x->plane[0].src; in vp9_pattern_search() 516 const struct buf_2d *const in_what = &xd->plane[0].pre[0]; in vp9_pattern_search() [all …]
|
D | vp9_pickmode.c | 56 backup_yv12[i] = xd->plane[i].pre[0]; in full_pixel_motion_search() 74 xd->plane[i].pre[0] = backup_yv12[i]; in full_pixel_motion_search() 129 xd->plane[i].pre[0] = backup_yv12[i]; in full_pixel_motion_search() 152 backup_yv12[i] = xd->plane[i].pre[0]; in sub_pixel_motion_search() 173 xd->plane[i].pre[0] = backup_yv12[i]; in sub_pixel_motion_search() 189 struct macroblock_plane *const p = &x->plane[0]; in model_rd_for_sb_y() 190 struct macroblockd_plane *const pd = &xd->plane[0]; in model_rd_for_sb_y() 211 struct macroblock_plane *const p = &x->plane[0]; in vp9_pick_inter_mode() 212 struct macroblockd_plane *const pd = &xd->plane[0]; in vp9_pick_inter_mode() 273 xd->plane[0].pre[0] = yv12_mb[ref_frame][0]; in vp9_pick_inter_mode()
|
D | vp9_rdopt.c | 439 struct macroblock_plane *const p = &x->plane[i]; in model_rd_for_sb() 440 struct macroblockd_plane *const pd = &xd->plane[i]; in model_rd_for_sb() 484 const struct macroblock_plane *const p = &x->plane[0]; in model_rd_for_sb_y_tx() 485 const struct macroblockd_plane *const pd = &xd->plane[0]; in model_rd_for_sb_y_tx() 553 int plane, int block, in cost_coeffs() argument 560 const struct macroblock_plane *p = &x->plane[plane]; in cost_coeffs() 561 const struct macroblockd_plane *pd = &xd->plane[plane]; in cost_coeffs() 626 static void dist_block(int plane, int block, TX_SIZE tx_size, in dist_block() argument 631 const struct macroblock_plane *const p = &x->plane[plane]; in dist_block() 632 const struct macroblockd_plane *const pd = &xd->plane[plane]; in dist_block() [all …]
|
/hardware/intel/img/hwcomposer/common/planes/ |
D | DisplayPlaneManager.cpp | 52 DisplayPlane *plane = mPlanes[i].itemAt(j); in deinitialize() local 53 plane->reset(); in deinitialize() 55 DEINIT_AND_DELETE_OBJ(plane); in deinitialize() 95 DisplayPlane* plane = allocPlane(j, i); in initialize() local 96 if (!plane) { in initialize() 100 mPlanes[i].push_back(plane); in initialize() 194 void DisplayPlaneManager::putPlane(int /* dsp */, DisplayPlane& plane) in putPlane() argument 201 index = plane.getIndex(); in putPlane() 202 type = plane.getType(); in putPlane() 257 void DisplayPlaneManager::reclaimPlane(int /* dsp */, DisplayPlane& plane) in reclaimPlane() argument [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/ |
D | md5_helper.h | 25 for (int plane = 0; plane < 3; ++plane) { in Add() local 26 const uint8_t *buf = img->planes[plane]; in Add() 31 const int h = plane ? (img->d_h + img->y_chroma_shift) >> in Add() 33 const int w = plane ? (img->d_w + img->x_chroma_shift) >> in Add() 38 buf += img->stride[plane]; in Add()
|
/hardware/intel/img/hwcomposer/ips/anniedale/ |
D | AnnPlaneManager.cpp | 141 DisplayPlane *plane = NULL; in allocPlane() local 145 plane = new AnnRGBPlane(index, DisplayPlane::PLANE_PRIMARY, index/*disp*/); in allocPlane() 148 plane = new AnnRGBPlane(index, DisplayPlane::PLANE_SPRITE, 0/*disp*/); in allocPlane() 151 plane = new AnnOverlayPlane(index, 0/*disp*/); in allocPlane() 154 plane = new AnnCursorPlane(index, index /*disp */); in allocPlane() 161 if (plane && !plane->initialize(DisplayPlane::MIN_DATA_BUFFER_COUNT)) { in allocPlane() 163 DEINIT_AND_DELETE_OBJ(plane); in allocPlane() 166 return plane; in allocPlane() 340 zLayer->plane = getPlane(desc.type, desc.index); in assignPlanes() 341 if (zLayer->plane == NULL) { in assignPlanes() [all …]
|
D | AnnCursorPlane.cpp | 203 arg.plane.type = DC_CURSOR_PLANE; in enablePlane() 204 arg.plane.index = mIndex; in enablePlane() 205 arg.plane.ctx = 0; in enablePlane() 225 arg.plane.type = DC_CURSOR_PLANE; in isDisabled() 227 arg.plane.index = mIndex; in isDisabled() 228 arg.plane.ctx = 0; in isDisabled() 238 return arg.plane.ctx == PSB_DC_PLANE_DISABLED; in isDisabled()
|
D | AnnRGBPlane.cpp | 268 arg.plane.type = DC_SPRITE_PLANE; in enablePlane() 270 arg.plane.type = DC_PRIMARY_PLANE; in enablePlane() 272 arg.plane.index = mIndex; in enablePlane() 273 arg.plane.ctx = 0; in enablePlane() 294 arg.plane.type = DC_SPRITE_PLANE; in isDisabled() 296 arg.plane.type = DC_PRIMARY_PLANE; in isDisabled() 299 arg.plane.index = mIndex; in isDisabled() 300 arg.plane.ctx = 0; in isDisabled() 310 return arg.plane.ctx == PSB_DC_PLANE_DISABLED; in isDisabled()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/examples/ |
D | decode_to_md5.c | 47 int plane, y; in get_image_md5() local 52 for (plane = 0; plane < 3; ++plane) { in get_image_md5() 53 const unsigned char *buf = img->planes[plane]; in get_image_md5() 54 const int stride = img->stride[plane]; in get_image_md5() 55 const int w = plane ? (img->d_w + 1) >> 1 : img->d_w; in get_image_md5() 56 const int h = plane ? (img->d_h + 1) >> 1 : img->d_h; in get_image_md5()
|
D | decode_with_partial_drops.c | 308 unsigned int plane, y; in main() local 310 for(plane=0; plane < 3; plane++) { in main() 311 unsigned char *buf =img->planes[plane]; in main() 313 for(y=0; y < (plane ? (img->d_h + 1) >> 1 : img->d_h); y++) { in main() 314 (void) fwrite(buf, 1, (plane ? (img->d_w + 1) >> 1 : img->d_w), in main() 316 buf += img->stride[plane]; in main()
|
D | vp8_multi_resolution_encoder.c | 86 int plane; in read_frame_by_row() local 88 for (plane = 0; plane < 3; plane++) in read_frame_by_row() 91 int w = (plane ? (1 + img->d_w) / 2 : img->d_w); in read_frame_by_row() 92 int h = (plane ? (1 + img->d_h) / 2 : img->d_h); in read_frame_by_row() 99 switch (plane) in read_frame_by_row() 108 ptr = img->planes[plane]; in read_frame_by_row() 123 ptr += img->stride[plane]; in read_frame_by_row()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/ |
D | rdopt.h | 78 unsigned char *plane[3], in get_plane_pointers() 82 plane[0] = fb->y_buffer + recon_yoffset; in get_plane_pointers() 83 plane[1] = fb->u_buffer + recon_uvoffset; in get_plane_pointers() 84 plane[2] = fb->v_buffer + recon_uvoffset; in get_plane_pointers() 89 unsigned char *plane[4][3], in get_predictor_pointers() 95 plane[LAST_FRAME], recon_yoffset, recon_uvoffset); in get_predictor_pointers() 99 plane[GOLDEN_FRAME], recon_yoffset, recon_uvoffset); in get_predictor_pointers() 103 plane[ALTREF_FRAME], recon_yoffset, recon_uvoffset); in get_predictor_pointers()
|
/hardware/intel/img/hwcomposer/common/base/ |
D | HwcLayerList.cpp | 367 DisplayPlane *plane = hwcLayer->detachPlane(); in deinitialize() local 368 if (plane) { in deinitialize() 369 planeManager->reclaimPlane(mDisplayIndex, *plane); in deinitialize() 629 if (zlayer->plane == NULL || zlayer->hwcLayer == NULL) { in attachPlanes() 634 zlayer->plane->setZOrder(i); in attachPlanes() 636 if (zlayer->plane->getType() == DisplayPlane::PLANE_CURSOR) { in attachPlanes() 645 zlayer->hwcLayer->attachPlane(zlayer->plane, mDisplayIndex); in attachPlanes() 650 zlayer->plane->getType(), in attachPlanes() 651 zlayer->plane->getIndex(), in attachPlanes() 733 layer->plane = NULL; in addZOrderLayer() [all …]
|
D | HwcLayer.cpp | 90 bool HwcLayer::attachPlane(DisplayPlane* plane, int device) in attachPlane() argument 97 if (!plane) { in attachPlane() 104 plane->assignToDevice(device); in attachPlane() 105 mPlane = plane; in attachPlane() 114 DisplayPlane *plane = mPlane; in detachPlane() local 117 return plane; in detachPlane()
|
/hardware/qcom/media/mm-video-v4l2/vidc/venc/src/ |
D | video_encoder_device_v4l2.cpp | 243 struct v4l2_plane plane[VIDEO_MAX_PLANES]; in async_venc_message_thread() local 297 v4l2_buf.m.planes = plane; in async_venc_message_thread() 344 v4l2_buf.m.planes = plane; in async_venc_message_thread() 2172 struct v4l2_plane plane[VIDEO_MAX_PLANES]; in venc_use_buf() local 2182 plane[0].length = pmem_tmp->size; in venc_use_buf() 2183 plane[0].m.userptr = (unsigned long)pmem_tmp->buffer; in venc_use_buf() 2184 plane[0].reserved[0] = pmem_tmp->fd; in venc_use_buf() 2185 plane[0].reserved[1] = 0; in venc_use_buf() 2186 plane[0].data_offset = pmem_tmp->offset; in venc_use_buf() 2187 buf.m.planes = plane; in venc_use_buf() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/ |
D | vp9_dthread.c | 106 int plane; in loop_filter_rows_mt() local 113 for (plane = 0; plane < num_planes; ++plane) { in loop_filter_rows_mt() 114 vp9_filter_block_plane(cm, &xd->plane[plane], mi_row, &lfm); in loop_filter_rows_mt()
|