Home
last modified time | relevance | path

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

12345678910>>...26

/external/libvpx/libvpx/vpx/src/
Dvpx_image.c18 static vpx_image_t *img_alloc_helper(vpx_image_t *img, vpx_img_fmt_t fmt, in img_alloc_helper() argument
101 if (!img) { in img_alloc_helper()
102 img = (vpx_image_t *)calloc(1, sizeof(vpx_image_t)); in img_alloc_helper()
104 if (!img) goto fail; in img_alloc_helper()
106 img->self_allocd = 1; in img_alloc_helper()
108 memset(img, 0, sizeof(vpx_image_t)); in img_alloc_helper()
111 img->img_data = img_data; in img_alloc_helper()
120 img->img_data = (uint8_t *)vpx_memalign(buf_align, (size_t)alloc_size); in img_alloc_helper()
121 img->img_data_owner = 1; in img_alloc_helper()
124 if (!img->img_data) goto fail; in img_alloc_helper()
[all …]
/external/libvpx/libvpx/vp9/
Dvp9_iface_common.h15 static void yuvconfig2image(vpx_image_t *img, const YV12_BUFFER_CONFIG *yv12, in yuvconfig2image() argument
24 img->fmt = VPX_IMG_FMT_I444; in yuvconfig2image()
27 img->fmt = VPX_IMG_FMT_I422; in yuvconfig2image()
32 img->fmt = VPX_IMG_FMT_I440; in yuvconfig2image()
35 img->fmt = VPX_IMG_FMT_I420; in yuvconfig2image()
39 img->cs = yv12->color_space; in yuvconfig2image()
40 img->range = yv12->color_range; in yuvconfig2image()
41 img->bit_depth = 8; in yuvconfig2image()
42 img->w = yv12->y_stride; in yuvconfig2image()
43 img->h = ALIGN_POWER_OF_TWO(yv12->y_height + 2 * VP9_ENC_BORDER_IN_PIXELS, 3); in yuvconfig2image()
[all …]
/external/pdfium/core/fxcodec/jbig2/
DJBig2_Image_unittest.cpp24 CJBig2_Image img(kWidthPixels, kHeightLines); in TEST() local
25 img.setPixel(0, 0, true); in TEST()
26 img.setPixel(kWidthPixels - 1, kHeightLines - 1, false); in TEST()
27 EXPECT_EQ(kWidthPixels, img.width()); in TEST()
28 EXPECT_EQ(kHeightLines, img.height()); in TEST()
29 EXPECT_TRUE(img.getPixel(0, 0)); in TEST()
30 EXPECT_FALSE(img.getPixel(kWidthPixels - 1, kHeightLines - 1)); in TEST()
34 CJBig2_Image img(kWidthPixels, kTooLargeHeightLines); in TEST() local
35 EXPECT_EQ(0, img.width()); in TEST()
36 EXPECT_EQ(0, img.height()); in TEST()
[all …]
/external/pdfium/third_party/libtiff/
Dtif_getimage.c43 static int BuildMapUaToAa(TIFFRGBAImage* img);
44 static int BuildMapBitdepth16To8(TIFFRGBAImage* img);
215 TIFFRGBAImageEnd(TIFFRGBAImage* img) in TIFFRGBAImageEnd() argument
217 if (img->Map) in TIFFRGBAImageEnd()
218 _TIFFfree(img->Map), img->Map = NULL; in TIFFRGBAImageEnd()
219 if (img->BWmap) in TIFFRGBAImageEnd()
220 _TIFFfree(img->BWmap), img->BWmap = NULL; in TIFFRGBAImageEnd()
221 if (img->PALmap) in TIFFRGBAImageEnd()
222 _TIFFfree(img->PALmap), img->PALmap = NULL; in TIFFRGBAImageEnd()
223 if (img->ycbcr) in TIFFRGBAImageEnd()
[all …]
D0011-fix-leak-imagebegin2.patch5 @@ -267,6 +267,13 @@ TIFFRGBAImageBegin(TIFFRGBAImage* img, TIFF* tif, int stop, char emsg[1024])
6 img->redcmap = NULL;
7 img->greencmap = NULL;
8 img->bluecmap = NULL;
9 + img->Map = NULL;
10 + img->BWmap = NULL;
11 + img->PALmap = NULL;
12 + img->ycbcr = NULL;
13 + img->cielab = NULL;
14 + img->UaToAa = NULL;
[all …]
D0002-CVE-2015-8665-8683.patch56 img->row_offset = 0;
59 switch (img->bitspersample) {
61 - if (img->alpha == EXTRASAMPLE_ASSOCALPHA)
62 + if (img->alpha == EXTRASAMPLE_ASSOCALPHA &&
63 + img->samplesperpixel >= 4)
64 img->put.contig = putRGBAAcontig8bittile;
65 - else if (img->alpha == EXTRASAMPLE_UNASSALPHA)
66 + else if (img->alpha == EXTRASAMPLE_UNASSALPHA &&
67 + img->samplesperpixel >= 4)
69 if (BuildMapUaToAa(img))
[all …]
/external/opencv/cv/src/
Dcvfloodfill.cpp99 uchar* img = pImage + step * seed.y; in icvFloodFill_8u_CnIR() local
112 val0[0] = img[L]; in icvFloodFill_8u_CnIR()
115 img[L] = newVal[0]; in icvFloodFill_8u_CnIR()
117 while( ++R < roi.width && img[R] == val0[0] ) in icvFloodFill_8u_CnIR()
118 img[R] = newVal[0]; in icvFloodFill_8u_CnIR()
120 while( --L >= 0 && img[L] == val0[0] ) in icvFloodFill_8u_CnIR()
121 img[L] = newVal[0]; in icvFloodFill_8u_CnIR()
126 ICV_SET_C3( val0, img + L*3 ); in icvFloodFill_8u_CnIR()
129 ICV_SET_C3( img + L*3, newVal ); in icvFloodFill_8u_CnIR()
131 while( --L >= 0 && ICV_EQ_C3( img + L*3, val0 )) in icvFloodFill_8u_CnIR()
[all …]
/external/valgrind/coregrind/m_debuginfo/
Dimage.c419 static UInt alloc_CEnt ( DiImage* img ) in alloc_CEnt() argument
421 vg_assert(img); in alloc_CEnt()
422 vg_assert(img->ces_used < CACHE_N_ENTRIES); in alloc_CEnt()
423 UInt entNo = img->ces_used; in alloc_CEnt()
424 img->ces_used++; in alloc_CEnt()
425 vg_assert(img->ces[entNo] == NULL); in alloc_CEnt()
426 img->ces[entNo] = ML_(dinfo_zalloc)("di.alloc_CEnt.1", sizeof(CEnt)); in alloc_CEnt()
432 static void move_CEnt_to_top ( DiImage* img, UInt entNo ) in move_CEnt_to_top() argument
434 vg_assert(img->ces_used <= CACHE_N_ENTRIES); in move_CEnt_to_top()
435 vg_assert(entNo > 0 && entNo < img->ces_used); in move_CEnt_to_top()
[all …]
Dpriv_image.h78 DiOffT ML_(img_size)(const DiImage* img);
81 Bool ML_(img_valid)(const DiImage* img, DiOffT offset, SizeT size);
86 DiImage* img, DiOffT offset, SizeT size);
97 DiImage* img, DiOffT offset, SizeT size);
102 HChar* ML_(img_strdup)(DiImage* img, const HChar* cc, DiOffT offset);
106 Int ML_(img_strcmp)(DiImage* img, DiOffT off1, DiOffT off2);
110 Int ML_(img_strcmp_c)(DiImage* img, DiOffT off1, const HChar* str2);
113 SizeT ML_(img_strlen)(DiImage* img, DiOffT off);
117 UChar ML_(img_get_UChar) (DiImage* img, DiOffT offset);
118 UShort ML_(img_get_UShort)(DiImage* img, DiOffT offset);
[all …]
/external/e2fsprogs/lib/ext2fs/
Dqcow2.c89 static int qcow2_read_l1_table(struct ext2_qcow2_image *img) in qcow2_read_l1_table() argument
91 int fd = img->fd; in qcow2_read_l1_table()
92 size_t size, l1_size = img->l1_size * sizeof(blk64_t); in qcow2_read_l1_table()
100 if (ext2fs_llseek(fd, img->l1_offset, SEEK_SET) < 0) { in qcow2_read_l1_table()
111 img->l1_table = table; in qcow2_read_l1_table()
116 static int qcow2_read_l2_table(struct ext2_qcow2_image *img, in qcow2_read_l2_table() argument
119 int fd = img->fd; in qcow2_read_l2_table()
127 size = read(fd, *l2_table, img->cluster_size); in qcow2_read_l2_table()
128 if (size != img->cluster_size) in qcow2_read_l2_table()
162 struct ext2_qcow2_image img; in qcow2_write_raw_image() local
[all …]
/external/opencv/otherlibs/highgui/
Dimage.cpp99 IplImage* img = image.GetImage(); in CopyOf() local
100 if( img ) in CopyOf()
102 CopyOf( img, desired_color ); in CopyOf()
107 #define HG_IS_IMAGE(img) \ argument
108 ((img) != 0 && ((const IplImage*)(img))->nSize == sizeof(IplImage) && \
109 ((IplImage*)img)->imageData != 0)
112 void CvvImage::CopyOf( IplImage* img, int desired_color ) in CopyOf() argument
114 if( HG_IS_IMAGE(img) ) in CopyOf()
117 CvSize size = cvGetSize( img ); in CopyOf()
120 color = img->nChannels > 1; in CopyOf()
[all …]
/external/mesa3d/src/egl/main/
Deglimage.h74 _eglInitImage(_EGLImage *img, _EGLDisplay *dpy);
81 _eglGetImage(_EGLImage *img) in _eglGetImage() argument
83 if (img) in _eglGetImage()
84 _eglGetResource(&img->Resource); in _eglGetImage()
85 return img; in _eglGetImage()
93 _eglPutImage(_EGLImage *img) in _eglPutImage() argument
95 return (img) ? _eglPutResource(&img->Resource) : EGL_FALSE; in _eglPutImage()
104 _eglLinkImage(_EGLImage *img) in _eglLinkImage() argument
106 _eglLinkResource(&img->Resource, _EGL_RESOURCE_IMAGE); in _eglLinkImage()
107 return (EGLImageKHR) img; in _eglLinkImage()
[all …]
/external/spirv-llvm/lib/SPIRV/runtime/OpenCL/src/
DImageQuerySize.cl3 __attribute__((overloadable, always_inline)) int __spirv_ImageQuerySize(image1d_buffer_t img) {
4 return get_image_width(img);
7 __attribute__((overloadable, always_inline)) int __spirv_ImageQuerySizeLod(image1d_t img, int lod)…
8 return get_image_width(img) >> lod;
10 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySize(image1d_array_t img) {
11 return (int2)(get_image_width(img), get_image_array_size(img));
13 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySizeLod(image1d_array_t img, i…
14 return (int2)(get_image_width(img) >> lod, get_image_array_size(img) >> lod);
18 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySizeLod(ImgTy img, int lod) { \
19 return get_image_dim(img) >> lod; \
[all …]
/external/pdfium/core/fxcodec/codec/
Dfx_codec_jpx_opj.cpp174 static void sycc444_to_rgb(opj_image_t* img) { in sycc444_to_rgb() argument
175 int prec = img->comps[0].prec; in sycc444_to_rgb()
179 std::min({img->comps[0].w, img->comps[1].w, img->comps[2].w}); in sycc444_to_rgb()
181 std::min({img->comps[0].h, img->comps[1].h, img->comps[2].h}); in sycc444_to_rgb()
187 const int* y = img->comps[0].data; in sycc444_to_rgb()
188 const int* cb = img->comps[1].data; in sycc444_to_rgb()
189 const int* cr = img->comps[2].data; in sycc444_to_rgb()
208 FX_Free(img->comps[0].data); in sycc444_to_rgb()
209 FX_Free(img->comps[1].data); in sycc444_to_rgb()
210 FX_Free(img->comps[2].data); in sycc444_to_rgb()
[all …]
/external/vboot_reference/utility/
Dbmpblk_util.c96 static void *do_efi_decompress(ImageInfo *img) { in do_efi_decompress() argument
105 ibuf = (void*)(img + 1); in do_efi_decompress()
106 isize = img->compressed_size; in do_efi_decompress()
146 static void *do_lzma_decompress(ImageInfo *img) { in do_lzma_decompress() argument
154 ibuf = (void*)(img + 1); in do_lzma_decompress()
155 isize = img->compressed_size; in do_lzma_decompress()
156 osize = img->original_size; in do_lzma_decompress()
195 ImageInfo *img; in dump_bmpblock() local
281 img = (ImageInfo *)(ptr + offset); in dump_bmpblock()
282 if (img->compression) in dump_bmpblock()
[all …]
/external/syslinux/diag/geodsp/
DMakefile26 geodsp1s.img.xz geodspms.img.xz
35 %.img.xz: %.bin mk-lba-img.pl
36 $(PERL) $(SRC)/mk-lba-img.pl $< | $(XZ) -0 > $@ || ( rm -f $@ ; false )
38 %.img.gz: %.bin mk-lba-img.pl
39 $(PERL) $(SRC)/mk-lba-img.pl $< | $(GZIPPROG) -9 > $@ || ( rm -f $@ ; false )
42 %.img: %.bin mk-lba-img.pl
43 $(PERL) $(SRC)/mk-lba-img.pl $< > $@ || ( rm -f $@ ; false )
48 mk-lba-img: mk-lba-img.c
52 rm -Rf *.lst *.img
53 rm -f mk-lba-img
/external/libvpx/libvpx/test/
Dy4m_test.cc57 static void write_image_file(const vpx_image_t *img, FILE *file) { in write_image_file() argument
60 const unsigned char *buf = img->planes[plane]; in write_image_file()
61 const int stride = img->stride[plane]; in write_image_file()
62 const int bytes_per_sample = (img->fmt & VPX_IMG_FMT_HIGHBITDEPTH) ? 2 : 1; in write_image_file()
64 (plane ? (img->d_h + img->y_chroma_shift) >> img->y_chroma_shift in write_image_file()
65 : img->d_h); in write_image_file()
67 (plane ? (img->d_w + img->x_chroma_shift) >> img->x_chroma_shift in write_image_file()
68 : img->d_w); in write_image_file()
96 ASSERT_EQ(img()->d_w, kWidth); in HeaderChecks()
97 ASSERT_EQ(img()->d_h, kHeight); in HeaderChecks()
[all …]
Dmd5_helper.h22 void Add(const vpx_image_t *img) { in Add() argument
24 const uint8_t *buf = img->planes[plane]; in Add()
30 (img->fmt & VPX_IMG_FMT_HIGHBITDEPTH) ? 2 : 1; in Add()
32 plane ? (img->d_h + img->y_chroma_shift) >> img->y_chroma_shift in Add()
33 : img->d_h; in Add()
35 (plane ? (img->d_w + img->x_chroma_shift) >> img->x_chroma_shift in Add()
36 : img->d_w) * in Add()
41 buf += img->stride[plane]; in Add()
/external/spirv-llvm/lib/SPIRV/runtime/OpenCL/inc/
Dspirv.h1 __attribute__((overloadable, always_inline)) int __spirv_ImageQuerySize(image1d_buffer_t img);
2 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySize(image1d_array_t img);
3 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySize(image2d_t img);
4 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySize(image2d_depth_t img);
5 __attribute__((overloadable, always_inline)) int3 __spirv_ImageQuerySize(image2d_array_t img);
6 __attribute__((overloadable, always_inline)) int3 __spirv_ImageQuerySize(image2d_array_depth_t img);
8 __attribute__((overloadable, always_inline)) int __spirv_ImageQuerySizeLod(image1d_t img, int lod);
9 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySizeLod(image1d_array_t img, in…
10 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySizeLod(image2d_t img, int lod);
11 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySizeLod(image2d_depth_t img, in…
[all …]
/external/libvpx/libvpx/vp8/
Dvp8_dx_iface.c52 vpx_image_t img; member
201 static void yuvconfig2image(vpx_image_t *img, const YV12_BUFFER_CONFIG *yv12, in yuvconfig2image() argument
207 img->fmt = VPX_IMG_FMT_I420; in yuvconfig2image()
208 img->w = yv12->y_stride; in yuvconfig2image()
209 img->h = (yv12->y_height + 2 * VP8BORDERINPIXELS + 15) & ~15; in yuvconfig2image()
210 img->d_w = img->r_w = yv12->y_width; in yuvconfig2image()
211 img->d_h = img->r_h = yv12->y_height; in yuvconfig2image()
212 img->x_chroma_shift = 1; in yuvconfig2image()
213 img->y_chroma_shift = 1; in yuvconfig2image()
214 img->planes[VPX_PLANE_Y] = yv12->y_buffer; in yuvconfig2image()
[all …]
/external/mesa3d/src/gallium/state_trackers/dri/drm/
Ddri2.c421 __DRIimage *img; in dri2_lookup_egl_image() local
426 img = loader->lookupEGLImage(screen->sPriv, in dri2_lookup_egl_image()
429 return img; in dri2_lookup_egl_image()
438 __DRIimage *img; in dri2_create_image_from_name() local
466 img = CALLOC_STRUCT(__DRIimageRec); in dri2_create_image_from_name()
467 if (!img) in dri2_create_image_from_name()
484 img->texture = screen->base.screen->resource_from_handle(screen->base.screen, in dri2_create_image_from_name()
486 if (!img->texture) { in dri2_create_image_from_name()
487 FREE(img); in dri2_create_image_from_name()
491 img->level = 0; in dri2_create_image_from_name()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_lookahead.c37 for (i = 0; i < ctx->max_sz; i++) vpx_free_frame_buffer(&ctx->buf[i].img); in vp9_lookahead_destroy()
70 &ctx->buf[i].img, width, height, subsampling_x, subsampling_y, in vp9_lookahead_init()
109 new_dimensions = width != buf->img.y_crop_width || in vp9_lookahead_push()
110 height != buf->img.y_crop_height || in vp9_lookahead_push()
111 uv_width != buf->img.uv_crop_width || in vp9_lookahead_push()
112 uv_height != buf->img.uv_crop_height; in vp9_lookahead_push()
113 larger_dimensions = width > buf->img.y_width || height > buf->img.y_height || in vp9_lookahead_push()
114 uv_width > buf->img.uv_width || in vp9_lookahead_push()
115 uv_height > buf->img.uv_height; in vp9_lookahead_push()
147 vp9_copy_and_extend_frame_with_rect(src, &buf->img, row << 4, col << 4, in vp9_lookahead_push()
[all …]
/external/opencv/cxcore/src/
Dcximage.cpp77 IplImage* img = 0; in icvRetrieveImage() local
84 img = (IplImage*)obj; in icvRetrieveImage()
88 CV_CALL( img = cvCreateImageHeader( cvSize(m->cols,m->rows), in icvRetrieveImage()
90 cvSetData( img, m->data.ptr, m->step ); in icvRetrieveImage()
91 img->imageDataOrigin = (char*)m->refcount; in icvRetrieveImage()
103 return img; in icvRetrieveImage()
109 IplImage* img = 0; in load() local
117 img = icvRetrieveImage(cvLoad(filename,0,imgname)); in load()
118 if( (img->nChannels > 1) != (color == 0) ) in load()
132 img = load_image( filename, color ); in load()
[all …]
/external/opencv/cxcore/include/
Dcvwimage.h242 explicit WImage(IplImage* img) : image_(img) { in WImage() argument
243 assert(!img || img->depth == Depth()); in WImage()
266 explicit WImageC(IplImage* img) : WImage<T>(img) { in WImageC() argument
267 assert(!img || img->nChannels == Channels()); in WImageC()
316 explicit WImageBuffer(IplImage* img) : WImage<T>(img) {} in WImageBuffer() argument
323 void SetIpl(IplImage* img) { in SetIpl() argument
325 WImage<T>::SetIpl(img); in SetIpl()
373 explicit WImageBufferC(IplImage* img) : WImageC<T, C>(img) {} in WImageBufferC() argument
380 void SetIpl(IplImage* img) { in SetIpl() argument
382 WImageC<T, C>::SetIpl(img); in SetIpl()
[all …]
/external/e2fsprogs/tests/
DREADME24 exception is the okgroup.img filesystem, which contains no errors, and
37 baddir.img Filesystem with a corrupted directory
38 badbblocks.img Filesystem with illegal blocks in the bad block inode.
39 badinode.img Filesystem with various different corrupted inode
41 badlkcnt.img Filesystem with deleted files with non-zero link count
42 badroot.img Filesystem with a file for a root directory
43 badtable.img Filesystem with blocks shared between the bitmaps and
45 bbfile.img Filesystem with files containing bad blocks
46 bitmaps.img Filesystem with corrupted inode and block bitmaps
47 dirlink.img Filesystem with a hard link to a directory
[all …]

12345678910>>...26