/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/src/ |
D | vpx_image.c | 43 static vpx_image_t *img_alloc_helper(vpx_image_t *img, in img_alloc_helper() argument 136 if (!img) { in img_alloc_helper() 137 img = (vpx_image_t *)calloc(1, sizeof(vpx_image_t)); in img_alloc_helper() 139 if (!img) in img_alloc_helper() 142 img->self_allocd = 1; in img_alloc_helper() 144 memset(img, 0, sizeof(vpx_image_t)); in img_alloc_helper() 147 img->img_data = img_data; in img_alloc_helper() 150 img->img_data = img_buf_memalign(buf_align, ((fmt & VPX_IMG_FMT_PLANAR) ? in img_alloc_helper() 152 img->img_data_owner = 1; in img_alloc_helper() 155 if (!img->img_data) in img_alloc_helper() [all …]
|
D | vpx_encoder.c | 205 const vpx_image_t *img, in vpx_codec_encode() argument 212 if (!ctx || (img && !duration)) in vpx_codec_encode() 227 res = ctx->iface->enc.encode(ctx->priv->alg_priv, img, pts, in vpx_codec_encode() 238 if (img) img += num_enc - 1; in vpx_codec_encode() 241 if ((res = ctx->iface->enc.encode(ctx->priv->alg_priv, img, pts, in vpx_codec_encode() 246 if (img) img--; in vpx_codec_encode() 328 vpx_image_t *img = NULL; in vpx_codec_get_preview_frame() local 338 img = ctx->iface->enc.get_preview(ctx->priv->alg_priv); in vpx_codec_get_preview_frame() 341 return img; in vpx_codec_get_preview_frame()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/ |
D | vp9_iface_common.h | 13 static void yuvconfig2image(vpx_image_t *img, const YV12_BUFFER_CONFIG *yv12, in yuvconfig2image() argument 22 img->fmt = VPX_IMG_FMT_I444; in yuvconfig2image() 25 img->fmt = VPX_IMG_FMT_I422; in yuvconfig2image() 29 img->fmt = VPX_IMG_FMT_I420; in yuvconfig2image() 31 img->w = yv12->y_stride; in yuvconfig2image() 32 img->h = ALIGN_POWER_OF_TWO(yv12->y_height + 2 * VP9_ENC_BORDER_IN_PIXELS, 3); in yuvconfig2image() 33 img->d_w = yv12->y_crop_width; in yuvconfig2image() 34 img->d_h = yv12->y_crop_height; in yuvconfig2image() 35 img->x_chroma_shift = yv12->uv_width < yv12->y_width; in yuvconfig2image() 36 img->y_chroma_shift = yv12->uv_height < yv12->y_height; in yuvconfig2image() [all …]
|
D | vp9_dx_iface.c | 41 vpx_image_t img; member 266 yuvconfig2image(&ctx->img, &sd, user_priv); in decode_one() 268 ctx->img.fb_priv = cm->frame_bufs[cm->new_fb_idx].raw_frame_buffer.priv; in decode_one() 372 vpx_image_t *img = NULL; in vp9_get_frame() local 379 img = &ctx->img; in vp9_get_frame() 380 *iter = img; in vp9_get_frame() 385 return img; in vp9_get_frame() 414 image2yuvconfig(&frame->img, &sd); in set_reference() 430 image2yuvconfig(&frame->img, &sd); in copy_reference() 447 yuvconfig2image(&data->img, fb, NULL); in get_reference()
|
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/h264/parser/ |
D | h264parse_dpb.c | 457 if (active_fs->frame_num > pInfo->img.frame_num) in h264_dpb_update_ref_lists() 558 …pic_list_from_frame_list(p_dpb, gen_pic_pic_list, gen_pic_fs_list0, pInfo->img.structure, list0idx… in h264_dpb_update_ref_lists() 593 …ic_list_from_frame_list(p_dpb, gen_pic_pic_list, gen_pic_fs_listlt, pInfo->img.structure, listltid… in h264_dpb_update_ref_lists() 647 if (pInfo->img.framepoc >= active_fs->frame.poc) in h264_dpb_update_ref_lists() 682 if (pInfo->img.framepoc < active_fs->frame.poc) in h264_dpb_update_ref_lists() 751 if (pInfo->img.ThisPOC >= active_fs->frame.poc) { in h264_dpb_update_ref_lists() 781 if (pInfo->img.ThisPOC < active_fs->frame.poc) { in h264_dpb_update_ref_lists() 804 …pic_list_from_frame_list(p_dpb, gen_pic_pic_list, gen_pic_fs_list0, pInfo->img.structure, list0idx… in h264_dpb_update_ref_lists() 811 …pic_list_from_frame_list(p_dpb, gen_pic_pic_list, gen_pic_fs_list1, pInfo->img.structure, list0idx… in h264_dpb_update_ref_lists() 829 …ic_list_from_frame_list(p_dpb, gen_pic_pic_list, gen_pic_fs_listlt, pInfo->img.structure, listltid… in h264_dpb_update_ref_lists() [all …]
|
D | h264parse.c | 123 pInfo->img.PicWidthInMbs = (pInfo->active_SPS.sps_disp.pic_width_in_mbs_minus1 + 1); in h264_active_par_set() 125 pInfo->img.FrameHeightInMbs = pInfo->active_SPS.sps_disp.frame_mbs_only_flag? \ in h264_active_par_set() 292 h264_memset(&(pInfo->img), 0x0, sizeof(h264_img_par) ); in h264_init_img() 344 h264_memset( &(pInfo->img), 0x0, sizeof(h264_img_par) ); in h264_init_Info_under_sps_pps_level() 400 pInfo->img.frame_count = 0; in h264_init_Info() 534 pInfo->img.current_slice_num = 0; in h264_check_previous_frame_end() 536 if((pInfo->img.structure == FRAME) || (pInfo->img.second_field)) { in h264_check_previous_frame_end() 615 pInfo->img.frame_num = pInfo->SliceHeader.frame_num; in h264_update_img_info() 616 pInfo->img.structure = pInfo->SliceHeader.structure; in h264_update_img_info() 618 pInfo->img.field_pic_flag = pInfo->SliceHeader.field_pic_flag; in h264_update_img_info() [all …]
|
D | viddec_h264_parse.c | 54 pInfo->img.g_new_frame = 0; in viddec_h264_parse() 69 …nfo->nal_unit_type, pInfo->wl_err_curr, pInfo->is_current_workload_done, 0, pInfo->img.frame_num); in viddec_h264_parse() 77 pInfo->img.recovery_point_found |= 1; in viddec_h264_parse() 105 pInfo->img.recovery_point_found |=4; in viddec_h264_parse() 111 if(pInfo->img.recovery_point_found == 0) { in viddec_h264_parse() 112 pInfo->img.structure = FRAME; in viddec_h264_parse() 147 pInfo->img.current_slice_num++; in viddec_h264_parse() 167 pInfo->img.g_new_pic++; in viddec_h264_parse() 186 pInfo->img.second_field = h264_is_second_field(pInfo); in viddec_h264_parse() 187 if(pInfo->img.second_field == 0) in viddec_h264_parse() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/ |
D | md5_helper.h | 24 void Add(const vpx_image_t *img) { in Add() argument 26 const uint8_t *buf = img->planes[plane]; in Add() 31 const int h = plane ? (img->d_h + img->y_chroma_shift) >> in Add() 32 img->y_chroma_shift : img->d_h; in Add() 33 const int w = plane ? (img->d_w + img->x_chroma_shift) >> in Add() 34 img->x_chroma_shift : img->d_w; in Add() 38 buf += img->stride[plane]; in Add()
|
D | encode_test_driver.cc | 21 if (video->img()) in EncodeFrame() 40 const vpx_image_t *img = video.img(); in EncodeFrameInternal() local 44 cfg_.g_w = img->d_w; in EncodeFrameInternal() 45 cfg_.g_h = img->d_h; in EncodeFrameInternal() 54 if (cfg_.g_w != img->d_w || cfg_.g_h != img->d_h) { in EncodeFrameInternal() 55 cfg_.g_w = img->d_w; in EncodeFrameInternal() 56 cfg_.g_h = img->d_h; in EncodeFrameInternal() 64 video.img(), video.pts(), video.duration(), in EncodeFrameInternal() 161 again = (video->img() != NULL); in RunLoop()
|
D | decode_test_driver.cc | 41 const vpx_image_t *img = NULL; in RunLoop() local 44 while ((img = dec_iter.Next())) in RunLoop() 45 DecompressedFrameHook(*img, video->frame_number()); in RunLoop()
|
D | external_frame_buffer_test.cc | 110 void CheckXImageFrameBuffer(const vpx_image_t *img) { in CheckXImageFrameBuffer() argument 111 if (img->fb_priv != NULL) { in CheckXImageFrameBuffer() 113 reinterpret_cast<ExternalFrameBuffer*>(img->fb_priv); in CheckXImageFrameBuffer() 115 ASSERT_TRUE(img->planes[0] >= ext_fb->data && in CheckXImageFrameBuffer() 116 img->planes[0] < (ext_fb->data + ext_fb->size)); in CheckXImageFrameBuffer() 223 virtual void DecompressedFrameHook(const vpx_image_t &img, in DecompressedFrameHook() argument 235 md5_res.Add(&img); in DecompressedFrameHook() 330 const vpx_image_t *img = NULL; in CheckDecodedFrames() local 333 while ((img = dec_iter.Next()) != NULL) { in CheckDecodedFrames() 334 fb_list_.CheckXImageFrameBuffer(img); in CheckDecodedFrames()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
D | tools_common.c | 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() 208 return (img->d_w + 1) >> img->x_chroma_shift; in vpx_img_plane_width() 210 return img->d_w; in vpx_img_plane_width() 213 int vpx_img_plane_height(const vpx_image_t *img, int plane) { in vpx_img_plane_height() argument 214 if (plane > 0 && img->y_chroma_shift > 0) in vpx_img_plane_height() 215 return (img->d_h + 1) >> img->y_chroma_shift; in vpx_img_plane_height() 217 return img->d_h; in vpx_img_plane_height() 220 void vpx_img_write(const vpx_image_t *img, FILE *file) { in vpx_img_write() argument 224 const unsigned char *buf = img->planes[plane]; in vpx_img_write() [all …]
|
D | vpxdec.c | 237 static void update_image_md5(const vpx_image_t *img, const int planes[3], in update_image_md5() argument 243 const unsigned char *buf = img->planes[plane]; in update_image_md5() 244 const int stride = img->stride[plane]; in update_image_md5() 245 const int w = vpx_img_plane_width(img, plane); in update_image_md5() 246 const int h = vpx_img_plane_height(img, plane); in update_image_md5() 255 static void write_image_file(const vpx_image_t *img, const int planes[3], in write_image_file() argument 261 const unsigned char *buf = img->planes[plane]; in write_image_file() 262 const int stride = img->stride[plane]; in write_image_file() 263 const int w = vpx_img_plane_width(img, plane); in write_image_file() 264 const int h = vpx_img_plane_height(img, plane); in write_image_file() [all …]
|
D | tools_common.h | 142 int vpx_img_plane_width(const vpx_image_t *img, int plane); 143 int vpx_img_plane_height(const vpx_image_t *img, int plane); 144 void vpx_img_write(const vpx_image_t *img, FILE *file); 145 int vpx_img_read(vpx_image_t *img, FILE *file);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/examples/ |
D | decode_to_md5.c | 46 static void get_image_md5(const vpx_image_t *img, unsigned char digest[16]) { in get_image_md5() argument 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() 114 vpx_image_t *img = NULL; in main() local 121 while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) { in main() 124 get_image_md5(img, digest); in main() 127 img->d_w, img->d_h, ++frame_cnt); in main()
|
D | vp8_multi_resolution_encoder.c | 67 int (*read_frame_p)(FILE *f, vpx_image_t *img); 69 static int read_frame(FILE *f, vpx_image_t *img) { in read_frame() argument 73 to_read = img->w*img->h*3/2; in read_frame() 74 nbytes = fread(img->planes[0], 1, to_read, f); in read_frame() 83 static int read_frame_by_row(FILE *f, vpx_image_t *img) { in read_frame_by_row() argument 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() 102 ptr = img->planes[img->fmt==VPX_IMG_FMT_YV12? VPX_PLANE_V : VPX_PLANE_U]; in read_frame_by_row() 105 ptr = img->planes[img->fmt==VPX_IMG_FMT_YV12?VPX_PLANE_U : VPX_PLANE_V]; in read_frame_by_row() 108 ptr = img->planes[plane]; in read_frame_by_row() [all …]
|
D | decode_with_partial_drops.c | 254 vpx_image_t *img; in main() local 307 while((img = vpx_codec_get_frame(&codec, &iter))) { 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 | simple_decoder.c | 133 vpx_image_t *img = NULL; in main() local 140 while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) { in main() 141 vpx_img_write(img, outfile); in main()
|
/hardware/libhardware/tests/camera2/ |
D | CameraStreamFixture.h | 286 void DumpYuvToFile(const String8 &fileName, const CpuConsumer::LockedBuffer &img) { in DumpYuvToFile() argument 292 switch (img.format) { in DumpYuvToFile() 294 stride = img.stride; in DumpYuvToFile() 295 chromaStride = img.chromaStride; in DumpYuvToFile() 296 chromaStep = img.chromaStep; in DumpYuvToFile() 297 dataCb = img.dataCb; in DumpYuvToFile() 298 dataCr = img.dataCr; in DumpYuvToFile() 301 stride = img.width; in DumpYuvToFile() 302 chromaStride = img.width; in DumpYuvToFile() 304 dataCr = img.data + img.width * img.height; in DumpYuvToFile() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/ |
D | vp8_dx_iface.c | 69 vpx_image_t img; member 285 static void yuvconfig2image(vpx_image_t *img, in yuvconfig2image() argument 293 img->fmt = VPX_IMG_FMT_I420; in yuvconfig2image() 294 img->w = yv12->y_stride; in yuvconfig2image() 295 img->h = (yv12->y_height + 2 * VP8BORDERINPIXELS + 15) & ~15; in yuvconfig2image() 296 img->d_w = yv12->y_width; in yuvconfig2image() 297 img->d_h = yv12->y_height; in yuvconfig2image() 298 img->x_chroma_shift = 1; in yuvconfig2image() 299 img->y_chroma_shift = 1; in yuvconfig2image() 300 img->planes[VPX_PLANE_Y] = yv12->y_buffer; in yuvconfig2image() [all …]
|
D | vp8_cx_iface.c | 265 const vpx_image_t *img) in validate_img() argument 267 switch (img->fmt) in validate_img() 278 if ((img->d_w != ctx->cfg.g_w) || (img->d_h != ctx->cfg.g_h)) in validate_img() 678 static vpx_codec_err_t image2yuvconfig(const vpx_image_t *img, in image2yuvconfig() argument 682 yv12->y_buffer = img->planes[VPX_PLANE_Y]; in image2yuvconfig() 683 yv12->u_buffer = img->planes[VPX_PLANE_U]; in image2yuvconfig() 684 yv12->v_buffer = img->planes[VPX_PLANE_V]; in image2yuvconfig() 686 yv12->y_crop_width = img->d_w; in image2yuvconfig() 687 yv12->y_crop_height = img->d_h; in image2yuvconfig() 688 yv12->y_width = img->d_w; in image2yuvconfig() [all …]
|
/hardware/intel/common/omx-components/videocodec/ |
D | OMXVideoDecoderVP9HWR.cpp | 567 vpx_image_t *img = NULL; in FillRenderBuffer() local 568 img = vpx_codec_get_frame((vpx_codec_ctx_t *)mCtx, &iter); in FillRenderBuffer() 570 if (img != NULL) { in FillRenderBuffer() 572 mDecodedImageWidth = img->d_w; in FillRenderBuffer() 573 mDecodedImageHeight = img->d_h; in FillRenderBuffer() 575 if ((mDecodedImageWidth != img->d_w) && (mDecodedImageHeight != img->d_h)) { in FillRenderBuffer() 576 mDecodedImageNewWidth = img->d_w; in FillRenderBuffer() 577 mDecodedImageNewHeight = img->d_h; in FillRenderBuffer() 583 if (img == NULL) { in FillRenderBuffer() 589 extMIDs[img->fb_index]->m_render_done = true; in FillRenderBuffer() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/ |
D | vpx_image.h | 174 vpx_image_t *vpx_img_alloc(vpx_image_t *img, 199 vpx_image_t *vpx_img_wrap(vpx_image_t *img, 220 int vpx_img_set_rect(vpx_image_t *img, 234 void vpx_img_flip(vpx_image_t *img); 242 void vpx_img_free(vpx_image_t *img);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
D | vp9_lookahead.c | 50 vp9_free_frame_buffer(&ctx->buf[i].img); in vp9_lookahead_destroy() 80 if (vp9_alloc_frame_buffer(&ctx->buf[i].img, in vp9_lookahead_init() 139 vp9_copy_and_extend_frame_with_rect(src, &buf->img, in vp9_lookahead_push() 151 vp9_copy_and_extend_frame(src, &buf->img); in vp9_lookahead_push() 155 vp9_copy_and_extend_frame(src, &buf->img); in vp9_lookahead_push()
|
/hardware/intel/img/hwcomposer/merrifield/test/ |
D | nv12_ved_test.cpp | 91 uint8_t* img = NULL; in main() local 123 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**) (&img)); in main() 124 if (!img) { in main() 129 loadYUVBufferFromFile(img, 640, 480, buf->getStride()); in main()
|