Home
last modified time | relevance | path

Searched refs:img (Results 1 – 25 of 82) sorted by relevance

1234

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/src/
Dvpx_image.c43 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 …]
Dvpx_encoder.c205 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/samsung_slsi/exynos5/libhwjpeg/
DExynosJpegDecoder.cpp1334 unsigned char *img[4]; in reduceBlockingArtifact() local
1373 img[0] = image_ptr[0]+x; in reduceBlockingArtifact()
1374 img[1] = image_ptr[1]+x; in reduceBlockingArtifact()
1375 img[2] = image_ptr[2]+x; in reduceBlockingArtifact()
1376 img[3] = image_ptr[3]+x; in reduceBlockingArtifact()
1378 block[0] = img[0]; in reduceBlockingArtifact()
1379 block[1] = img[1]; in reduceBlockingArtifact()
1380 block[2] = img[2]; in reduceBlockingArtifact()
1381 block[3] = img[3]; in reduceBlockingArtifact()
1440 …ivalue[0] = CLIP255(*img[0]+Ytable[idx[0][0]][idx[0][1]][idx[0][2]][idx[0][3]][idx[0][4]][0]); *im… in reduceBlockingArtifact()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/
Dvp9_iface_common.h13 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 …]
Dvp9_dx_iface.c41 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/omx-components/videocodec/libvpx_internal/libvpx/test/
Dmd5_helper.h24 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()
Dencode_test_driver.cc21 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()
Ddecode_test_driver.cc41 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()
Dexternal_frame_buffer_test.cc110 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/
Dtools_common.c206 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 …]
Dvpxdec.c237 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 …]
Dtools_common.h142 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);
Dvpxenc.c97 int read_frame(struct VpxInputContext *input_ctx, vpx_image_t *img) { in read_frame() argument
103 if (y4m_input_fetch_frame(y4m, f, img) < 1) in read_frame()
106 shortread = read_yuv_frame(input_ctx, img); in read_frame()
633 struct vpx_image *img; member
1258 struct vpx_image *img, in encode_frame() argument
1272 if (img && (img->d_w != cfg->g_w || img->d_h != cfg->g_h)) { in encode_frame()
1273 if (!stream->img) in encode_frame()
1274 stream->img = vpx_img_alloc(NULL, VPX_IMG_FMT_I420, in encode_frame()
1276 I420Scale(img->planes[VPX_PLANE_Y], img->stride[VPX_PLANE_Y], in encode_frame()
1277 img->planes[VPX_PLANE_U], img->stride[VPX_PLANE_U], in encode_frame()
[all …]
/hardware/libhardware/tests/camera2/
DCameraStreamFixture.h284 void DumpYuvToFile(const String8 &fileName, const CpuConsumer::LockedBuffer &img) { in DumpYuvToFile() argument
290 switch (img.format) { in DumpYuvToFile()
292 stride = img.stride; in DumpYuvToFile()
293 chromaStride = img.chromaStride; in DumpYuvToFile()
294 chromaStep = img.chromaStep; in DumpYuvToFile()
295 dataCb = img.dataCb; in DumpYuvToFile()
296 dataCr = img.dataCr; in DumpYuvToFile()
299 stride = img.width; in DumpYuvToFile()
300 chromaStride = img.width; in DumpYuvToFile()
302 dataCr = img.data + img.width * img.height; in DumpYuvToFile()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/examples/
Ddecode_to_md5.c46 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()
Dvp8_multi_resolution_encoder.c67 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 …]
Ddecode_with_partial_drops.c254 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()
Dsimple_decoder.c133 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()
Dpostproc.c101 vpx_image_t *img = NULL; in main() local
124 while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) { in main()
125 vpx_img_write(img, outfile); in main()
Ddecode_with_drops.c118 vpx_image_t *img = NULL; in main() local
134 while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) in main()
135 vpx_img_write(img, outfile); in main()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/
Dvp8_dx_iface.c69 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 …]
Dvp8_cx_iface.c265 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/
DOMXVideoDecoderVP9HWR.cpp570 vpx_image_t *img = NULL; in FillRenderBuffer() local
571 img = vpx_codec_get_frame((vpx_codec_ctx_t *)mCtx, &iter); in FillRenderBuffer()
573 if (img != NULL) { in FillRenderBuffer()
575 mDecodedImageWidth = img->d_w; in FillRenderBuffer()
576 mDecodedImageHeight = img->d_h; in FillRenderBuffer()
578 if ((mDecodedImageWidth != img->d_w) && (mDecodedImageHeight != img->d_h)) { in FillRenderBuffer()
579 mDecodedImageNewWidth = img->d_w; in FillRenderBuffer()
580 mDecodedImageNewHeight = img->d_h; in FillRenderBuffer()
586 if (img == NULL) { in FillRenderBuffer()
592 extMIDs[img->fb_index]->m_render_done = true; in FillRenderBuffer()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/
Dvpx_image.h174 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/
Dvp9_lookahead.c50 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()

1234