/external/libvpx/libvpx/vpx/src/ |
D | vpx_image.c | 18 static vpx_image_t *img_alloc_helper(vpx_image_t *img, vpx_img_fmt_t fmt, in img_alloc_helper() argument 100 if (!img) { in img_alloc_helper() 101 img = (vpx_image_t *)calloc(1, sizeof(vpx_image_t)); in img_alloc_helper() 103 if (!img) goto fail; in img_alloc_helper() 105 img->self_allocd = 1; in img_alloc_helper() 107 memset(img, 0, sizeof(vpx_image_t)); in img_alloc_helper() 110 img->img_data = img_data; in img_alloc_helper() 128 img->img_data = (uint8_t *)vpx_memalign(buf_align, (size_t)alloc_size); in img_alloc_helper() 129 img->img_data_owner = 1; in img_alloc_helper() 132 if (!img->img_data) goto fail; in img_alloc_helper() [all …]
|
/external/libvpx/libvpx/vp9/ |
D | vp9_iface_common.h | 15 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/ |
D | JBig2_Image_unittest.cpp | 24 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/ |
D | tif_getimage.c | 43 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 …]
|
D | 0011-fix-leak-imagebegin2.patch | 5 @@ -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 …]
|
D | 0002-CVE-2015-8665-8683.patch | 56 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/valgrind/coregrind/m_debuginfo/ |
D | image.c | 130 static Bool is_sane_CEnt ( const HChar* who, const DiImage* img, UInt i ) in is_sane_CEnt() argument 132 vg_assert(img); in is_sane_CEnt() 135 CEnt* ce = img->ces[i]; in is_sane_CEnt() 142 if (!(ce->off >= img->real_size || ce->off == 0)) goto fail; in is_sane_CEnt() 143 if (!(ce->off + ce->used <= img->size)) goto fail; in is_sane_CEnt() 148 if (!(ce->off + ce->used <= img->real_size)) goto fail; in is_sane_CEnt() 482 static inline CSlc* find_cslc ( DiImage* img, DiOffT off ) in find_cslc() argument 484 for (UInt i = 0; i < img->cslc_used; i++) { in find_cslc() 485 if ( (img->cslc[i].offD <= off) in find_cslc() 486 && (img->cslc[i].offD + img->cslc[i].szD > off) in find_cslc() [all …]
|
D | priv_image.h | 78 DiOffT ML_(img_size)(const DiImage* img); 81 DiOffT ML_(img_real_size)(const DiImage* img); 84 Bool ML_(img_valid)(const DiImage* img, DiOffT offset, SizeT size); 89 DiImage* img, DiOffT offset, SizeT size); 100 DiImage* img, DiOffT offset, SizeT size); 105 HChar* ML_(img_strdup)(DiImage* img, const HChar* cc, DiOffT offset); 109 Int ML_(img_strcmp)(DiImage* img, DiOffT off1, DiOffT off2); 113 Int ML_(img_strcmp_c)(DiImage* img, DiOffT off1, const HChar* str2); 116 SizeT ML_(img_strlen)(DiImage* img, DiOffT off); 120 UChar ML_(img_get_UChar) (DiImage* img, DiOffT offset); [all …]
|
/external/mesa3d/src/gallium/drivers/ilo/core/ |
D | ilo_image.h | 198 ilo_image_init(struct ilo_image *img, 203 ilo_image_can_enable_aux(const struct ilo_image *img, unsigned level) in ilo_image_can_enable_aux() argument 205 return (img->aux.enables & (1 << level)); in ilo_image_can_enable_aux() 212 ilo_image_pos_to_mem(const struct ilo_image *img, in ilo_image_pos_to_mem() argument 216 assert(pos_x % img->block_width == 0); in ilo_image_pos_to_mem() 217 assert(pos_y % img->block_height == 0); in ilo_image_pos_to_mem() 219 *mem_x = pos_x / img->block_width * img->block_size; in ilo_image_pos_to_mem() 220 *mem_y = pos_y / img->block_height; in ilo_image_pos_to_mem() 227 ilo_image_mem_to_linear(const struct ilo_image *img, in ilo_image_mem_to_linear() argument 230 return mem_y * img->bo_stride + mem_x; in ilo_image_mem_to_linear() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | qcow2.c | 89 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/spirv-llvm/lib/SPIRV/runtime/OpenCL/src/ |
D | ImageQuerySize.cl | 3 __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/mesa3d/src/egl/main/ |
D | eglimage.h | 95 _eglInitImage(_EGLImage *img, _EGLDisplay *dpy); 102 _eglGetImage(_EGLImage *img) in _eglGetImage() argument 104 if (img) in _eglGetImage() 105 _eglGetResource(&img->Resource); in _eglGetImage() 106 return img; in _eglGetImage() 114 _eglPutImage(_EGLImage *img) in _eglPutImage() argument 116 return (img) ? _eglPutResource(&img->Resource) : EGL_FALSE; in _eglPutImage() 125 _eglLinkImage(_EGLImage *img) in _eglLinkImage() argument 127 _eglLinkResource(&img->Resource, _EGL_RESOURCE_IMAGE); in _eglLinkImage() 128 return (EGLImage) img; in _eglLinkImage() [all …]
|
/external/pdfium/core/fxcodec/codec/ |
D | fx_codec_jpx_opj.cpp | 174 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/mesa3d/src/gallium/state_trackers/va/ |
D | image.c | 103 VAImage *img; in vlVaCreateImage() local 114 img = CALLOC(1, sizeof(VAImage)); in vlVaCreateImage() 115 if (!img) in vlVaCreateImage() 118 img->image_id = handle_table_add(drv->htab, img); in vlVaCreateImage() 121 img->format = *format; in vlVaCreateImage() 122 img->width = width; in vlVaCreateImage() 123 img->height = height; in vlVaCreateImage() 129 img->num_planes = 2; in vlVaCreateImage() 130 img->pitches[0] = w; in vlVaCreateImage() 131 img->offsets[0] = 0; in vlVaCreateImage() [all …]
|
/external/syslinux/diag/geodsp/ |
D | Makefile | 26 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/vboot_reference/utility/ |
D | bmpblk_util.c | 96 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/libvpx/libvpx/test/ |
D | y4m_test.cc | 57 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 …]
|
D | md5_helper.h | 22 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/ |
D | spirv.h | 1 __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/mesa3d/src/mesa/state_tracker/ |
D | st_atom_image.c | 64 struct pipe_image_view *img = &images[i]; in st_bind_images() local 69 memset(img, 0, sizeof(*img)); in st_bind_images() 73 img->resource = stObj->pt; in st_bind_images() 74 img->format = st_mesa_format_to_pipe_format(st, u->_ActualFormat); in st_bind_images() 78 img->access = PIPE_IMAGE_ACCESS_READ; in st_bind_images() 81 img->access = PIPE_IMAGE_ACCESS_WRITE; in st_bind_images() 84 img->access = PIPE_IMAGE_ACCESS_READ_WRITE; in st_bind_images() 97 img->u.buf.offset = base; in st_bind_images() 98 img->u.buf.size = size; in st_bind_images() 100 img->u.tex.level = u->Level + stObj->base.MinLevel; in st_bind_images() [all …]
|
/external/libvpx/libvpx/vp8/ |
D | vp8_dx_iface.c | 52 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/libvpx/libvpx/vp9/encoder/ |
D | vp9_lookahead.c | 37 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/e2fsprogs/tests/ |
D | README | 24 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 …]
|
/external/mesa3d/src/mesa/main/ |
D | texstore.c | 120 GLint img; in _mesa_memcpy_texture() local 121 for (img = 0; img < srcDepth; img++) { in _mesa_memcpy_texture() 122 GLubyte *dstImage = dstSlices[img]; in _mesa_memcpy_texture() 129 GLint img, row; in _mesa_memcpy_texture() local 130 for (img = 0; img < srcDepth; img++) { in _mesa_memcpy_texture() 132 GLubyte *dstRow = dstSlices[img]; in _mesa_memcpy_texture() 164 GLint img, row; in _mesa_texstore_z32() local 165 for (img = 0; img < srcDepth; img++) { in _mesa_texstore_z32() 166 GLubyte *dstRow = dstSlices[img]; in _mesa_texstore_z32() 169 srcAddr, srcWidth, srcHeight, srcFormat, srcType, img, row, 0); in _mesa_texstore_z32() [all …]
|
/external/libvpx/libvpx/examples/ |
D | decode_to_md5.c | 44 static void get_image_md5(const vpx_image_t *img, unsigned char digest[16]) { in get_image_md5() argument 51 const unsigned char *buf = img->planes[plane]; in get_image_md5() 52 const int stride = img->stride[plane]; in get_image_md5() 53 const int w = plane ? (img->d_w + 1) >> 1 : img->d_w; in get_image_md5() 54 const int h = plane ? (img->d_h + 1) >> 1 : img->d_h; in get_image_md5() 108 vpx_image_t *img = NULL; in main() local 115 while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) { in main() 118 get_image_md5(img, digest); in main() 120 fprintf(outfile, " img-%dx%d-%04d.i420\n", img->d_w, img->d_h, in main()
|