/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/src/ |
H A D | vpx_image.c | 43 static vpx_image_t *img_alloc_helper(vpx_image_t *img, argument 136 if (!img) { 137 img = (vpx_image_t *)calloc(1, sizeof(vpx_image_t)); 139 if (!img) 142 img->self_allocd = 1; 144 memset(img, 0, sizeof(vpx_image_t)); 147 img->img_data = img_data; 150 img->img_data = img_buf_memalign(buf_align, ((fmt & VPX_IMG_FMT_PLANAR) ? 152 img->img_data_owner = 1; 155 if (!img 178 vpx_img_alloc(vpx_image_t *img, vpx_img_fmt_t fmt, unsigned int d_w, unsigned int d_h, unsigned int align) argument 186 vpx_img_wrap(vpx_image_t *img, vpx_img_fmt_t fmt, unsigned int d_w, unsigned int d_h, unsigned int stride_align, unsigned char *img_data) argument 197 vpx_img_set_rect(vpx_image_t *img, unsigned int x, unsigned int y, unsigned int w, unsigned int h) argument 249 vpx_img_flip(vpx_image_t *img) argument 271 vpx_img_free(vpx_image_t *img) argument [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/ |
H A D | vp9_iface_common.h | 13 static void yuvconfig2image(vpx_image_t *img, const YV12_BUFFER_CONFIG *yv12, argument 22 img->fmt = VPX_IMG_FMT_I444; 25 img->fmt = VPX_IMG_FMT_I422; 29 img->fmt = VPX_IMG_FMT_I420; 31 img->w = yv12->y_stride; 32 img->h = ALIGN_POWER_OF_TWO(yv12->y_height + 2 * VP9_ENC_BORDER_IN_PIXELS, 3); 33 img->d_w = yv12->y_crop_width; 34 img->d_h = yv12->y_crop_height; 35 img->x_chroma_shift = yv12->uv_width < yv12->y_width; 36 img 53 image2yuvconfig(const vpx_image_t *img, YV12_BUFFER_CONFIG *yv12) argument [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/ |
H A D | md5_helper.h | 24 void Add(const vpx_image_t *img) { argument 26 const uint8_t *buf = img->planes[plane]; 31 const int h = plane ? (img->d_h + img->y_chroma_shift) >> 32 img->y_chroma_shift : img->d_h; 33 const int w = plane ? (img->d_w + img->x_chroma_shift) >> 34 img->x_chroma_shift : img [all...] |
H A D | decode_test_driver.cc | 41 const vpx_image_t *img = NULL; local 44 while ((img = dec_iter.Next())) 45 DecompressedFrameHook(*img, video->frame_number());
|
H A D | encode_test_driver.cc | 21 if (video->img()) 40 const vpx_image_t *img = video.img(); local 44 cfg_.g_w = img->d_w; 45 cfg_.g_h = img->d_h; 54 if (cfg_.g_w != img->d_w || cfg_.g_h != img->d_h) { 55 cfg_.g_w = img->d_w; 56 cfg_.g_h = img->d_h; 64 video.img(), vide [all...] |
H A D | test_vector_test.cc | 42 virtual void DecompressedFrameHook(const vpx_image_t& img, argument 54 md5_res.Add(&img);
|
H A D | external_frame_buffer_test.cc | 110 void CheckXImageFrameBuffer(const vpx_image_t *img) { argument 111 if (img->fb_priv != NULL) { 113 reinterpret_cast<ExternalFrameBuffer*>(img->fb_priv); 115 ASSERT_TRUE(img->planes[0] >= ext_fb->data && 116 img->planes[0] < (ext_fb->data + ext_fb->size)); 223 virtual void DecompressedFrameHook(const vpx_image_t &img, argument 235 md5_res.Add(&img); 330 const vpx_image_t *img = NULL; local 333 while ((img = dec_iter.Next()) != NULL) { 334 fb_list_.CheckXImageFrameBuffer(img); [all...] |
/hardware/samsung_slsi/exynos5/libhwjpeg/ |
H A D | ExynosJpegDecoder.cpp | 1334 unsigned char *img[4]; local 1373 img[0] = image_ptr[0]+x; 1374 img[1] = image_ptr[1]+x; 1375 img[2] = image_ptr[2]+x; 1376 img[3] = image_ptr[3]+x; 1378 block[0] = img[0]; 1379 block[1] = img[1]; 1380 block[2] = img[2]; 1381 block[3] = img[3]; 1440 ivalue[0] = CLIP255(*img[ [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/examples/ |
H A D | decode_to_md5.c | 46 static void get_image_md5(const vpx_image_t *img, unsigned char digest[16]) { argument 53 const unsigned char *buf = img->planes[plane]; 54 const int stride = img->stride[plane]; 55 const int w = plane ? (img->d_w + 1) >> 1 : img->d_w; 56 const int h = plane ? (img->d_h + 1) >> 1 : img->d_h; 114 vpx_image_t *img = NULL; local 121 while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) { 124 get_image_md5(img, diges [all...] |
H A D | simple_decoder.c | 133 vpx_image_t *img = NULL; local 140 while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) { 141 vpx_img_write(img, outfile);
|
H A D | decode_with_drops.c | 118 vpx_image_t *img = NULL; local 134 while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) 135 vpx_img_write(img, outfile);
|
H A D | postproc.c | 101 vpx_image_t *img = NULL; local 124 while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) { 125 vpx_img_write(img, outfile);
|
H A 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) { argument 73 to_read = img->w*img->h*3/2; 74 nbytes = fread(img->planes[0], 1, to_read, f); 83 static int read_frame_by_row(FILE *f, vpx_image_t *img) { argument 91 int w = (plane ? (1 + img->d_w) / 2 : img->d_w); 92 int h = (plane ? (1 + img->d_h) / 2 : img [all...] |
H A D | decode_with_partial_drops.c | 254 vpx_image_t *img; local 307 while((img = vpx_codec_get_frame(&codec, &iter))) { 311 unsigned char *buf =img->planes[plane]; 313 for(y=0; y < (plane ? (img->d_h + 1) >> 1 : img->d_h); y++) { 314 (void) fwrite(buf, 1, (plane ? (img->d_w + 1) >> 1 : img->d_w), 316 buf += img->stride[plane];
|
/hardware/libhardware/tests/camera2/ |
H A D | CameraStreamFixture.h | 284 void DumpYuvToFile(const String8 &fileName, const CpuConsumer::LockedBuffer &img) { argument 290 switch (img.format) { 292 stride = img.stride; 293 chromaStride = img.chromaStride; 294 chromaStep = img.chromaStep; 295 dataCb = img.dataCb; 296 dataCr = img.dataCr; 299 stride = img.width; 300 chromaStride = img.width; 302 dataCr = img [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
H A D | tools_common.c | 206 int vpx_img_plane_width(const vpx_image_t *img, int plane) { argument 207 if (plane > 0 && img->x_chroma_shift > 0) 208 return (img->d_w + 1) >> img->x_chroma_shift; 210 return img->d_w; 213 int vpx_img_plane_height(const vpx_image_t *img, int plane) { argument 214 if (plane > 0 && img->y_chroma_shift > 0) 215 return (img->d_h + 1) >> img->y_chroma_shift; 217 return img 220 vpx_img_write(const vpx_image_t *img, FILE *file) argument 237 vpx_img_read(vpx_image_t *img, FILE *file) argument [all...] |
H A 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/vpx/ |
H A D | vpx_image.h | 161 * \param[in] img Pointer to storage for descriptor. If this parameter 170 * \return Returns a pointer to the initialized image descriptor. If the img 171 * parameter is non-null, the value of the img parameter will be 174 vpx_image_t *vpx_img_alloc(vpx_image_t *img, 186 * \param[in] img Pointer to storage for descriptor. If this parameter 195 * \return Returns a pointer to the initialized image descriptor. If the img 196 * parameter is non-null, the value of the img parameter will be 199 vpx_image_t *vpx_img_wrap(vpx_image_t *img, 212 * \param[in] img Image descriptor 220 int vpx_img_set_rect(vpx_image_t *img, [all...] |
H A D | vp8.h | 107 vpx_image_t img; /**< reference frame data in image format */ member in struct:vpx_ref_frame 116 vpx_image_t img; /**< img structure to populate (output) */ member in struct:vp9_ref_frame
|
H A D | vpx_decoder.h | 265 const vpx_image_t *img); 305 const vpx_image_t *img,
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/ |
H A D | vp8_dx_iface.c | 69 vpx_image_t img; member in struct:vpx_codec_alg_priv 285 static void yuvconfig2image(vpx_image_t *img, argument 293 img->fmt = VPX_IMG_FMT_I420; 294 img->w = yv12->y_stride; 295 img->h = (yv12->y_height + 2 * VP8BORDERINPIXELS + 15) & ~15; 296 img->d_w = yv12->y_width; 297 img->d_h = yv12->y_height; 298 img->x_chroma_shift = 1; 299 img->y_chroma_shift = 1; 300 img 578 vpx_image_t *img = NULL; local 706 image2yuvconfig(const vpx_image_t *img, YV12_BUFFER_CONFIG *yv12) argument [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/ |
H A D | lookahead.h | 21 YV12_BUFFER_CONFIG img; member in struct:lookahead_entry
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
H A D | vp9_lookahead.h | 27 YV12_BUFFER_CONFIG img; member in struct:lookahead_entry
|
H A D | vp9_lookahead.c | 50 vp9_free_frame_buffer(&ctx->buf[i].img); 80 if (vp9_alloc_frame_buffer(&ctx->buf[i].img, 139 vp9_copy_and_extend_frame_with_rect(src, &buf->img, 151 vp9_copy_and_extend_frame(src, &buf->img); 155 vp9_copy_and_extend_frame(src, &buf->img);
|
/hardware/intel/common/omx-components/videocodec/ |
H A D | OMXVideoDecoderVP9HWR.cpp | 570 vpx_image_t *img = NULL; local 571 img = vpx_codec_get_frame((vpx_codec_ctx_t *)mCtx, &iter); 573 if (img != NULL) { 575 mDecodedImageWidth = img->d_w; 576 mDecodedImageHeight = img->d_h; 578 if ((mDecodedImageWidth != img->d_w) && (mDecodedImageHeight != img->d_h)) { 579 mDecodedImageNewWidth = img->d_w; 580 mDecodedImageNewHeight = img->d_h; 586 if (img [all...] |