Home
last modified time | relevance | path

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

1234

/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dastcenccli_image.cpp34 astcenc_image *img = new astcenc_image; in alloc_image() local
35 img->dim_x = dim_x; in alloc_image()
36 img->dim_y = dim_y; in alloc_image()
37 img->dim_z = dim_z; in alloc_image()
40 img->data = data; in alloc_image()
44 img->data_type = ASTCENC_TYPE_U8; in alloc_image()
52 img->data_type = ASTCENC_TYPE_F16; in alloc_image()
61 img->data_type = ASTCENC_TYPE_F32; in alloc_image()
68 return img; in alloc_image()
72 void free_image(astcenc_image * img) in free_image() argument
[all …]
Dastcenccli_internal.h141 const astcenc_image* img,
183 astcenc_image* img);
193 const astcenc_image* img);
205 astc_compressed_image& img);
216 const astc_compressed_image& img,
231 astc_compressed_image& img) ;
243 const astc_compressed_image& img,
290 const astcenc_image* img,
304 const astcenc_image* img,
Dastcenc_compute_variance.cpp108 const astcenc_image* img = arg.img; in compute_pixel_region_variance() local
146 int ydt = img->dim_x; in compute_pixel_region_variance()
147 int zdt = img->dim_x * img->dim_y; in compute_pixel_region_variance()
154 if (img->data_type == ASTCENC_TYPE_U8) in compute_pixel_region_variance()
164 z_src = astc::clamp(z_src, 0, static_cast<int>(img->dim_z - 1)); in compute_pixel_region_variance()
165 uint8_t* data8 = static_cast<uint8_t*>(img->data[z_src]); in compute_pixel_region_variance()
170 y_src = astc::clamp(y_src, 0, static_cast<int>(img->dim_y - 1)); in compute_pixel_region_variance()
175 x_src = astc::clamp(x_src, 0, static_cast<int>(img->dim_x - 1)); in compute_pixel_region_variance()
177 data[0] = data8[(4 * img->dim_x * y_src) + (4 * x_src )]; in compute_pixel_region_variance()
178 data[1] = data8[(4 * img->dim_x * y_src) + (4 * x_src + 1)]; in compute_pixel_region_variance()
[all …]
Dastcenccli_image_load_store.cpp98 astcenc_image* img = astc_img_from_floatx4_array(data, dim_x, dim_y, y_flip); in load_image_with_stb() local
102 return img; in load_image_with_stb()
110 astcenc_image* img = astc_img_from_unorm8x4_array(data, dim_x, dim_y, y_flip); in load_image_with_stb() local
114 return img; in load_image_with_stb()
132 const astcenc_image* img, in store_exr_image_with_tinyexr() argument
136 float *buf = floatx4_array_from_astc_img(img, y_flip); in store_exr_image_with_tinyexr()
137 int res = SaveEXR(buf, img->dim_x, img->dim_y, 4, 1, filename, nullptr); in store_exr_image_with_tinyexr()
152 const astcenc_image* img, in store_png_image_with_stb() argument
156 assert(img->data_type == ASTCENC_TYPE_U8); in store_png_image_with_stb()
157 uint8_t* buf = reinterpret_cast<uint8_t*>(img->data[0]); in store_png_image_with_stb()
[all …]
Dastcenc_image.cpp153 const astcenc_image& img, in load_image_block() argument
161 unsigned int xsize = img.dim_x; in load_image_block()
162 unsigned int ysize = img.dim_y; in load_image_block()
163 unsigned int zsize = img.dim_z; in load_image_block()
190 if (img.data_type == ASTCENC_TYPE_F16) in load_image_block()
194 else if (img.data_type == ASTCENC_TYPE_F32) in load_image_block()
214 void* plane = img.data[zi]; in load_image_block()
270 const astcenc_image& img, in load_image_block_fast_ldr() argument
281 unsigned int xsize = img.dim_x; in load_image_block_fast_ldr()
282 unsigned int ysize = img.dim_y; in load_image_block_fast_ldr()
[all …]
Dastcenccli_toplevel.cpp1252 const astcenc_image& img, in image_get_pixel() argument
1258 assert(x < img.dim_x); in image_get_pixel()
1259 assert(y < img.dim_y); in image_get_pixel()
1260 assert(z < img.dim_z); in image_get_pixel()
1262 if (img.data_type == ASTCENC_TYPE_U8) in image_get_pixel()
1264 uint8_t* data = static_cast<uint8_t*>(img.data[z]); in image_get_pixel()
1266 float r = data[(4 * img.dim_x * y) + (4 * x )] / 255.0f; in image_get_pixel()
1267 float g = data[(4 * img.dim_x * y) + (4 * x + 1)] / 255.0f; in image_get_pixel()
1268 float b = data[(4 * img.dim_x * y) + (4 * x + 2)] / 255.0f; in image_get_pixel()
1269 float a = data[(4 * img.dim_x * y) + (4 * x + 3)] / 255.0f; in image_get_pixel()
[all …]
Dastcenccli_image_external.cpp167 astcenc_image* img = astc_img_from_unorm8x4_array(pixbuf_slice.ptr, dim_x, dim_y, y_flip); in load_png_with_wuffs() local
173 return img; in load_png_with_wuffs()
/hardware/google/gfxstream/guest/GLESv1/
Dgl.cpp61 void glEGLImageTargetTexture2DOES(void * self, GLenum target, GLeglImageOES img) in glEGLImageTargetTexture2DOES() argument
65 DBG("glEGLImageTargetTexture2DOES v1 target=%#x img=%p", target, img); in glEGLImageTargetTexture2DOES()
67 EGLImage_t *image = (EGLImage_t*)img; in glEGLImageTargetTexture2DOES()
94 void glEGLImageTargetRenderbufferStorageOES(void *self, GLenum target, GLeglImageOES img) in glEGLImageTargetRenderbufferStorageOES() argument
99 DBG("glEGLImageTargetRenderbufferStorageOES v1 image=%p\n", img); in glEGLImageTargetRenderbufferStorageOES()
101 EGLImage_t *image = (EGLImage_t*)img; in glEGLImageTargetRenderbufferStorageOES()
/hardware/google/gfxstream/guest/GLESv2/
Dgl2.cpp61 void glEGLImageTargetTexture2DOES(void * self, GLenum target, GLeglImageOES img) in glEGLImageTargetTexture2DOES() argument
66 DBG("glEGLImageTargetTexture2DOES v2 target=%#x img=%p\n", target, img); in glEGLImageTargetTexture2DOES()
68 EGLImage_t *image = (EGLImage_t*)img; in glEGLImageTargetTexture2DOES()
96 void glEGLImageTargetRenderbufferStorageOES(void *self, GLenum target, GLeglImageOES img) in glEGLImageTargetRenderbufferStorageOES() argument
101 DBG("glEGLImageTargetRenderbufferStorageOES v2 image=%p\n", img); in glEGLImageTargetRenderbufferStorageOES()
103 EGLImage_t *image = (EGLImage_t*)img; in glEGLImageTargetRenderbufferStorageOES()
/hardware/google/gfxstream/host/gl/glestranslator/EGL/
DEglImp.cpp1403 ImagePtr img( new EglImage() ); in eglCreateImageKHR() local
1404 img->isNative = true; in eglCreateImageKHR()
1405 img->nativeImage = image; in eglCreateImageKHR()
1406 img->width = 0; in eglCreateImageKHR()
1407 img->height = 0; in eglCreateImageKHR()
1413 img->width = current[1]; in eglCreateImageKHR()
1416 img->height = current[1]; in eglCreateImageKHR()
1427 return dpy->addImageKHR(img); in eglCreateImageKHR()
1437 ImagePtr img( new EglImage() ); in eglCreateImageKHR() local
1438 if (img.get() != NULL) { in eglCreateImageKHR()
[all …]
DEglDisplay.cpp519 EGLImageKHR EglDisplay::addImageKHR(ImagePtr img) { in addImageKHR() argument
525 img->imageId = m_nextEglImageId; in addImageKHR()
526 m_eglImages[m_nextEglImageId] = img; in addImageKHR()
541 ImagePtr EglDisplay::getImage(EGLImageKHR img, in getImage() argument
545 unsigned int hndl = SafeUIntFromPointer(img); in getImage()
554 bool EglDisplay:: destroyImageKHR(EGLImageKHR img) { in destroyImageKHR() argument
557 unsigned int hndl = SafeUIntFromPointer(img); in destroyImageKHR()
666 const ImagesHndlMap::value_type& img) { in onSaveAllImages() argument
667 stream->putBe32(img.first); in onSaveAllImages()
668 stream->putBe32(img.second->globalTexObj->getGlobalName()); in onSaveAllImages()
DEglDisplay.h136 ImagePtr getImage(EGLImageKHR img,
139 bool destroyImageKHR(EGLImageKHR img);
/hardware/google/graphics/common/libhwc2.1/libhwchelper/
DExynosHWCHelper.cpp547 void dumpExynosImage(uint32_t type, exynos_image &img) in dumpExynosImage() argument
553 dumpExynosImage(result, img); in dumpExynosImage()
558 void dumpExynosImage(String8& result, const exynos_image& img) { in dumpExynosImage() argument
561 img.bufferHandle, img.fullWidth, img.fullHeight, img.x, img.y, img.w, img.h, in dumpExynosImage()
562 getFormatStr(img.format, img.compressionInfo.type).c_str()); in dumpExynosImage()
564 img.usageFlags, img.layerFlags, img.acquireFenceFd, img.releaseFenceFd); in dumpExynosImage()
566 img.dataSpace, img.blending, img.transform, in dumpExynosImage()
567 getCompressionStr(img.compressionInfo).c_str()); in dumpExynosImage()
568 if (img.bufferHandle != NULL) { in dumpExynosImage()
569 VendorGraphicBufferMeta gmeta(img.bufferHandle); in dumpExynosImage()
[all …]
/hardware/google/camera/devices/EmulatedCamera/hwl/
DEmulatedSensor.cpp963 size_t buffer_size = (*b)->plane.img.buffer_size; in threadLoop()
993 (*b)->plane.img.img, (*b)->plane.img.stride_in_bytes, in threadLoop()
998 (*b)->plane.img.img, (*b)->plane.img.stride_in_bytes, in threadLoop()
1003 (*b)->plane.img.img, (*b)->plane.img.stride_in_bytes, in threadLoop()
1028 (uint16_t*)(*next_input_buffer->begin())->plane.img.img, in threadLoop()
1029 (uint16_t*)(*b)->plane.img.img, (*b)->plane.img.stride_in_bytes, in threadLoop()
1035 CaptureRGB((*b)->plane.img.img, (*b)->width, (*b)->height, in threadLoop()
1036 (*b)->plane.img.stride_in_bytes, RGBLayout::RGB, in threadLoop()
1047 CaptureRGB((*b)->plane.img.img, (*b)->width, (*b)->height, in threadLoop()
1048 (*b)->plane.img.stride_in_bytes, RGBLayout::RGBA, in threadLoop()
[all …]
DBase.h44 uint8_t* img = nullptr; member
65 SinglePlane img; member
DEmulatedSensor.h411 void CaptureRawBinned(uint8_t* img, size_t row_stride_in_bytes, uint32_t gain,
414 void CaptureRawFullRes(uint8_t* img, size_t row_stride_in_bytes,
416 void CaptureRawInSensorZoom(uint8_t* img, size_t row_stride_in_bytes,
418 void CaptureRaw(uint8_t* img, size_t row_stride_in_bytes, uint32_t gain,
423 void CaptureRGB(uint8_t* img, uint32_t width, uint32_t height,
429 void CaptureDepth(uint8_t* img, uint32_t gain, uint32_t width, uint32_t height,
DJpegCompressor.cpp322 {.output_buffer = job->output->plane.img.img, in CompressYUV420()
323 .output_buffer_size = job->output->plane.img.buffer_size, in CompressYUV420()
338 job->output->plane.img.buffer_size - sizeof(struct CameraBlob); in CompressYUV420()
341 job->output->plane.img.img + jpeg_header_offset); in CompressYUV420()
DEmulatedRequestProcessor.cpp340 sensor_buffer->plane.img.img = in LockSensorBuffer()
344 sensor_buffer->plane.img.img = in LockSensorBuffer()
347 if (sensor_buffer->plane.img.img == nullptr) { in LockSensorBuffer()
351 sensor_buffer->plane.img.stride_in_bytes = stride; in LockSensorBuffer()
352 sensor_buffer->plane.img.buffer_size = buffer_size; in LockSensorBuffer()
/hardware/interfaces/media/omx/1.0/vts/functional/video/
DVtsHalMediaOmxV1_0TargetVideoDecTest.cpp651 android::MediaImage& img = describeParamsV1.sMediaImage; in isColorFormatFlexibleYUV() local
652 if (img.mType == android::MediaImage::MEDIA_IMAGE_TYPE_YUV) { in isColorFormatFlexibleYUV()
653 if (img.mNumPlanes == 3 && in isColorFormatFlexibleYUV()
654 img.mPlane[img.Y].mHorizSubsampling == 1 && in isColorFormatFlexibleYUV()
655 img.mPlane[img.Y].mVertSubsampling == 1) { in isColorFormatFlexibleYUV()
656 if (img.mPlane[img.U].mHorizSubsampling == 2 && in isColorFormatFlexibleYUV()
657 img.mPlane[img.U].mVertSubsampling == 2 && in isColorFormatFlexibleYUV()
658 img.mPlane[img.V].mHorizSubsampling == 2 && in isColorFormatFlexibleYUV()
659 img.mPlane[img.V].mVertSubsampling == 2) { in isColorFormatFlexibleYUV()
660 if (img.mBitDepth <= 8) { in isColorFormatFlexibleYUV()
[all …]
/hardware/google/gfxstream/
D.gitignore109 /qemu-img
113 /qemu-img-cmds.texi
114 /qemu-img-cmds.h
163 /pc-bios/optionrom/linuxboot.img
167 /pc-bios/optionrom/linuxboot_dma.img
171 /pc-bios/optionrom/multiboot.img
175 /pc-bios/optionrom/kvmvapic.img
177 /pc-bios/s390-ccw/s390-ccw.img
/hardware/google/graphics/common/libhwc2.1/libresource/
DExynosMPP.cpp1796 int32_t ExynosMPP::getDstImageInfo(exynos_image *img) in getDstImageInfo() argument
1804 memset(img, 0, sizeof(exynos_image)); in getDstImageInfo()
1805 img->acquireFenceFd = -1; in getDstImageInfo()
1806 img->releaseFenceFd = -1; in getDstImageInfo()
1809 img->compressionInfo.type = COMP_TYPE_AFBC; in getDstImageInfo()
1810 img->compressionInfo.modifier = AFBC_FORMAT_MOD_BLOCK_SIZE_16x16; in getDstImageInfo()
1814 img->acquireFenceFd = -1; in getDstImageInfo()
1815 img->releaseFenceFd = -1; in getDstImageInfo()
1818 img->bufferHandle = mDstImgs[mCurrentDstBuf].bufferHandle; in getDstImageInfo()
1819 img->compressionInfo = getCompressionInfo(img->bufferHandle); in getDstImageInfo()
[all …]
/hardware/google/gfxstream/guest/mesa/include/CL/
Dopencl.hpp4478 Image(const Image& img) : Memory(img) {} in Image() argument
4483 Image& operator = (const Image &img) in operator =() argument
4485 Memory::operator=(img); in operator =()
4492 Image(Image&& img) CL_HPP_NOEXCEPT_ : Memory(std::move(img)) {} in Image() argument
4497 Image& operator = (Image &&img) in operator =() argument
4499 Memory::operator=(std::move(img)); in operator =()
4597 Image1D(const Image1D& img) : Image(img) {} in Image1D() argument
4602 Image1D& operator = (const Image1D &img) in operator =() argument
4604 Image::operator=(img); in operator =()
4611 Image1D(Image1D&& img) CL_HPP_NOEXCEPT_ : Image(std::move(img)) {} in Image1D() argument
[all …]
Dcl.hpp3600 Image(const Image& img) : Memory(img) {} in Image() argument
3605 Image& operator = (const Image &img) in operator =() argument
3607 Memory::operator=(img); in operator =()
3615 Image(Image&& img) CL_HPP_NOEXCEPT : Memory(std::move(img)) {} in Image() argument
3620 Image& operator = (Image &&img) in operator =() argument
3622 Memory::operator=(std::move(img)); in operator =()
3717 Image1D(const Image1D& img) : Image(img) {} in Image1D() argument
3722 Image1D& operator = (const Image1D &img) in operator =() argument
3724 Image::operator=(img); in operator =()
3732 Image1D(Image1D&& img) CL_HPP_NOEXCEPT : Image(std::move(img)) {} in Image1D() argument
[all …]
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/katex/
DREADME.md1 # [<img src="https://katex.org/img/katex-logo-black.svg" width="130" alt="KaTeX">](https://katex.or…
2 [![npm](https://img.shields.io/npm/v/katex.svg)](https://www.npmjs.com/package/katex)
8 ![](https://img.badgesize.io/KaTeX/KaTeX/v0.11.1/dist/katex.min.js?compression=gzip)
/hardware/qcom/display/msm8960/libcopybit/
Dcopybit.cpp141 static void set_image(struct mdp_img *img, const struct copybit_image_t *rhs) in set_image() argument
148 img->width = rhs->w; in set_image()
149 img->height = rhs->h; in set_image()
150 img->format = get_format(rhs->format); in set_image()
151 img->offset = hnd->offset; in set_image()
152 img->memory_id = hnd->fd; in set_image()

1234