/external/mesa3d/src/mesa/main/ |
D | texcompress_rgtc.c | 91 tempImage = malloc(srcWidth * srcHeight * 1 * sizeof(GLubyte)); in _mesa_texstore_red_rgtc1() 94 redRowStride = 1 * srcWidth * sizeof(GLubyte); in _mesa_texstore_red_rgtc1() 100 srcWidth, srcHeight, srcDepth, in _mesa_texstore_red_rgtc1() 107 dstRowDiff = dstRowStride >= (srcWidth * 2) ? dstRowStride - (((srcWidth + 3) & ~3) * 2) : 0; in _mesa_texstore_red_rgtc1() 111 srcaddr = tempImage + j * srcWidth; in _mesa_texstore_red_rgtc1() 112 for (i = 0; i < srcWidth; i += 4) { in _mesa_texstore_red_rgtc1() 113 if (srcWidth > i + 3) numxpixels = 4; in _mesa_texstore_red_rgtc1() 114 else numxpixels = srcWidth - i; in _mesa_texstore_red_rgtc1() 115 extractsrc_u(srcpixels, srcaddr, srcWidth, numxpixels, numypixels, 1); in _mesa_texstore_red_rgtc1() 144 redRowStride = 1 * srcWidth * sizeof(GLfloat); in _mesa_texstore_signed_red_rgtc1() [all …]
|
D | texcompress_s3tc.c | 61 ALIGN(srcPacking->RowLength, srcPacking->Alignment) != srcWidth || in _mesa_texstore_rgb_dxt1() 65 int rgbRowStride = 3 * srcWidth * sizeof(GLubyte); in _mesa_texstore_rgb_dxt1() 66 tempImage = malloc(srcWidth * srcHeight * 3 * sizeof(GLubyte)); in _mesa_texstore_rgb_dxt1() 74 srcWidth, srcHeight, srcDepth, in _mesa_texstore_rgb_dxt1() 81 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight, in _mesa_texstore_rgb_dxt1() 87 tx_compress_dxtn(3, srcWidth, srcHeight, pixels, in _mesa_texstore_rgb_dxt1() 113 ALIGN(srcPacking->RowLength, srcPacking->Alignment) != srcWidth || in _mesa_texstore_rgba_dxt1() 117 int rgbaRowStride = 4 * srcWidth * sizeof(GLubyte); in _mesa_texstore_rgba_dxt1() 118 tempImage = malloc(srcWidth * srcHeight * 4 * sizeof(GLubyte)); in _mesa_texstore_rgba_dxt1() 127 srcWidth, srcHeight, srcDepth, in _mesa_texstore_rgba_dxt1() [all …]
|
D | texstore.c | 103 GLint srcWidth, GLint srcHeight, GLint srcDepth, in _mesa_memcpy_texture() argument 108 const GLint srcRowStride = _mesa_image_row_stride(srcPacking, srcWidth, in _mesa_memcpy_texture() 111 srcWidth, srcHeight, srcFormat, srcType); in _mesa_memcpy_texture() 113 srcPacking, srcAddr, srcWidth, srcHeight, srcFormat, srcType, 0, 0, 0); in _mesa_memcpy_texture() 115 const GLint bytesPerRow = srcWidth * texelBytes; in _mesa_memcpy_texture() 169 srcAddr, srcWidth, srcHeight, srcFormat, srcType, img, row, 0); in _mesa_texstore_z32() 170 _mesa_unpack_depth_span(ctx, srcWidth, in _mesa_texstore_z32() 199 srcAddr, srcWidth, srcHeight, srcFormat, srcType, img, row, 0); in _mesa_texstore_x8_z24() 200 _mesa_unpack_depth_span(ctx, srcWidth, in _mesa_texstore_x8_z24() 229 srcAddr, srcWidth, srcHeight, srcFormat, srcType, img, row, 0); in _mesa_texstore_z24_x8() [all …]
|
D | copyimage.c | 540 int srcWidth, int srcHeight, int srcDepth) in copy_image_subdata() argument 570 srcWidth, srcHeight); in copy_image_subdata() 579 GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth) in _mesa_CopyImageSubData_no_error() argument 594 dstLevel, srcWidth, srcHeight, srcDepth); in _mesa_CopyImageSubData_no_error() 602 GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth) in _mesa_CopyImageSubData() argument 622 srcWidth, srcHeight, srcDepth); in _mesa_CopyImageSubData() 667 (srcWidth % src_bw != 0 && (srcX + srcWidth) != src_w) || in _mesa_CopyImageSubData() 695 dstWidth = srcWidth * dst_bw / src_bw; in _mesa_CopyImageSubData() 700 srcX, srcY, srcZ, srcWidth, srcHeight, srcDepth, in _mesa_CopyImageSubData() 730 dstLevel, srcWidth, srcHeight, srcDepth); in _mesa_CopyImageSubData()
|
D | mipmap.c | 150 do_row(GLenum datatype, GLuint comps, GLint srcWidth, in do_row() argument 154 const GLuint k0 = (srcWidth == dstWidth) ? 0 : 1; in do_row() 155 const GLuint colStride = (srcWidth == dstWidth) ? 1 : 2; in do_row() 783 do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth, in do_row_3D() argument 788 const GLuint k0 = (srcWidth == dstWidth) ? 0 : 1; in do_row_3D() 789 const GLuint colStride = (srcWidth == dstWidth) ? 1 : 2; in do_row_3D() 1417 GLint srcWidth, const GLubyte *srcPtr, in make_1d_mipmap() argument 1429 do_row(datatype, comps, srcWidth - 2 * border, src, src, in make_1d_mipmap() 1439 srcPtr + (srcWidth - 1) * bpt, in make_1d_mipmap() 1447 GLint srcWidth, GLint srcHeight, in make_2d_mipmap() argument [all …]
|
D | texcompress_bptc.c | 1288 int rgbaRowStride = 4 * srcWidth * sizeof(GLubyte); in _mesa_texstore_bptc_rgba_unorm() 1289 tempImage = malloc(srcWidth * srcHeight * 4 * sizeof(GLubyte)); in _mesa_texstore_bptc_rgba_unorm() 1298 srcWidth, srcHeight, srcDepth, in _mesa_texstore_bptc_rgba_unorm() 1303 rowstride = srcWidth * 4; in _mesa_texstore_bptc_rgba_unorm() 1305 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight, in _mesa_texstore_bptc_rgba_unorm() 1307 rowstride = _mesa_image_row_stride(srcPacking, srcWidth, in _mesa_texstore_bptc_rgba_unorm() 1311 compress_rgba_unorm(srcWidth, srcHeight, in _mesa_texstore_bptc_rgba_unorm() 1600 int rgbRowStride = 3 * srcWidth * sizeof(GLfloat); in texstore_bptc_rgb_float() 1601 tempImage = malloc(srcWidth * srcHeight * 3 * sizeof(GLfloat)); in texstore_bptc_rgb_float() 1609 srcWidth, srcHeight, srcDepth, in texstore_bptc_rgb_float() [all …]
|
D | mipmap.h | 36 GLint srcWidth, GLint srcHeight, GLint srcDepth, 54 GLint srcWidth, GLint srcHeight, GLint srcDepth,
|
D | copyimage.h | 43 GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); 50 GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
|
D | texcompress_fxt1.c | 68 ALIGN(srcPacking->RowLength, srcPacking->Alignment) != srcWidth || in _mesa_texstore_rgb_fxt1() 72 int rgbRowStride = 3 * srcWidth * sizeof(GLubyte); in _mesa_texstore_rgb_fxt1() 73 tempImage = malloc(srcWidth * srcHeight * 3 * sizeof(GLubyte)); in _mesa_texstore_rgb_fxt1() 81 srcWidth, srcHeight, srcDepth, in _mesa_texstore_rgb_fxt1() 85 srcRowStride = 3 * srcWidth; in _mesa_texstore_rgb_fxt1() 89 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight, in _mesa_texstore_rgb_fxt1() 92 srcRowStride = _mesa_image_row_stride(srcPacking, srcWidth, srcFormat, in _mesa_texstore_rgb_fxt1() 98 fxt1_encode(srcWidth, srcHeight, 3, pixels, srcRowStride, in _mesa_texstore_rgb_fxt1() 126 int rgbaRowStride = 4 * srcWidth * sizeof(GLubyte); in _mesa_texstore_rgba_fxt1() 127 tempImage = malloc(srcWidth * srcHeight * 4 * sizeof(GLubyte)); in _mesa_texstore_rgba_fxt1() [all …]
|
D | pack.h | 101 int srcWidth, int srcHeight, int srcDepth, 108 int srcWidth, int srcHeight, int srcDepth,
|
D | texstore.h | 63 GLint srcWidth, GLint srcHeight, GLint srcDepth, \ 83 GLint srcWidth, GLint srcHeight, GLint srcDepth,
|
/external/mesa3d/src/mesa/swrast/ |
D | s_blit.c | 44 NAME(GLint srcWidth, GLint dstWidth, \ 54 GLint srcCol = (dstCol * srcWidth) / dstWidth; \ 56 assert(srcCol < srcWidth); \ 57 srcCol = srcWidth - 1 - srcCol; /* flip */ \ 75 GLint srcCol = (dstCol * srcWidth) / dstWidth; \ 77 assert(srcCol < srcWidth); \ 121 const GLint srcWidth = ABS(srcX1 - srcX0); in blit_nearest() local 148 typedef void (*resample_func)(GLint srcWidth, GLint dstWidth, in blit_nearest() 193 srcBuffer = malloc(MAX_PIXEL_BYTES * srcWidth); in blit_nearest() 282 srcWidth, srcHeight, in blit_nearest() [all …]
|
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
D | TJCompressor.java | 151 srcWidth = width; in setSourceImage() 204 srcWidth = (width == 0) ? srcImage.getWidth() : width; in setSourceImage() 349 compressedSize = compress(srcBuf, srcX, srcY, srcWidth, srcPitch, in compress() 353 compressedSize = compress(srcBuf, srcWidth, srcPitch, srcHeight, in compress() 358 compressedSize = compress(srcBufInt, srcX, srcY, srcWidth, srcStride, in compress() 362 compressedSize = compress(srcBufInt, srcWidth, srcStride, srcHeight, in compress() 381 byte[] buf = new byte[TJ.bufSize(srcWidth, srcHeight, subsamp)]; in compress() 434 if (srcWidth != dstImage.getWidth() || srcHeight != dstImage.getHeight()) in encodeYUV() 438 encodeYUV(srcBufInt, srcX, srcY, srcWidth, srcStride, srcHeight, in encodeYUV() 442 encodeYUV(srcBuf, srcX, srcY, srcWidth, srcPitch, srcHeight, in encodeYUV() [all …]
|
/external/mesa3d/src/mesa/drivers/common/ |
D | meta_generate_mipmap.c | 276 GLsizei srcWidth, srcHeight, srcDepth; in _mesa_meta_GenerateMipmap() local 283 srcWidth = srcImage->Width; in _mesa_meta_GenerateMipmap() 293 dstWidth = minify(srcWidth, 1); in _mesa_meta_GenerateMipmap() 297 if (dstWidth == srcWidth && in _mesa_meta_GenerateMipmap() 331 srcWidth, srcHeight, /* img size */ in _mesa_meta_GenerateMipmap() 332 srcWidth, srcHeight, srcDepth, in _mesa_meta_GenerateMipmap()
|
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/env/ |
D | ImageUtils.java | 294 final int srcWidth, in getTransformationMatrix() argument 308 matrix.postTranslate(-srcWidth / 2.0f, -srcHeight / 2.0f); in getTransformationMatrix() 318 final int inWidth = transpose ? srcHeight : srcWidth; in getTransformationMatrix() 319 final int inHeight = transpose ? srcWidth : srcHeight; in getTransformationMatrix()
|
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/ |
D | ImageUtils.java | 294 final int srcWidth, in getTransformationMatrix() argument 308 matrix.postTranslate(-srcWidth / 2.0f, -srcHeight / 2.0f); in getTransformationMatrix() 318 final int inWidth = transpose ? srcHeight : srcWidth; in getTransformationMatrix() 319 final int inHeight = transpose ? srcWidth : srcHeight; in getTransformationMatrix()
|
/external/skqp/src/core/ |
D | SkBlurMask.cpp | 559 int srcWidth = src.fBounds.width(); in BlurGroundTruth() local 570 int padWidth = srcWidth + 4*pad; in BlurGroundTruth() 579 const uint8_t* srcptr = srcPixels + y * srcWidth; in BlurGroundTruth() 580 memcpy(padptr, srcptr, srcWidth); in BlurGroundTruth() 633 srcWidth, srcHeight); in BlurGroundTruth() 639 srcWidth, srcHeight); in BlurGroundTruth() 651 dst->fRowBytes, srcWidth, srcHeight); in BlurGroundTruth()
|
D | SkImageInfo.cpp | 102 bool SkReadPixelsRec::trim(int srcWidth, int srcHeight) { in trim() argument 113 if (!srcR.intersect(0, 0, srcWidth, srcHeight)) { in trim()
|
/external/skia/src/core/ |
D | SkBlurMask.cpp | 559 int srcWidth = src.fBounds.width(); in BlurGroundTruth() local 570 int padWidth = srcWidth + 4*pad; in BlurGroundTruth() 579 const uint8_t* srcptr = srcPixels + y * srcWidth; in BlurGroundTruth() 580 memcpy(padptr, srcptr, srcWidth); in BlurGroundTruth() 633 srcWidth, srcHeight); in BlurGroundTruth() 639 srcWidth, srcHeight); in BlurGroundTruth() 651 dst->fRowBytes, srcWidth, srcHeight); in BlurGroundTruth()
|
D | SkImageInfo.cpp | 104 bool SkReadPixelsRec::trim(int srcWidth, int srcHeight) { in trim() argument 115 if (!srcR.intersect(0, 0, srcWidth, srcHeight)) { in trim()
|
/external/deqp/framework/delibs/deimage/ |
D | deImage.c | 119 int srcWidth = srcImage->width; in deImage_scale() local 140 int x1 = deClamp32(x0+1, 0, srcWidth-1); in deImage_scale() 142 DE_ASSERT(deInBounds32(x0, 0, srcWidth)); in deImage_scale()
|
/external/skia/src/codec/ |
D | SkSwizzler.cpp | 1151 int srcWidth = dstInfo.width(); in Make() local 1153 int dstWidth = srcWidth; in Make() 1159 srcWidth = options.fSubset->width(); in Make() 1160 dstWidth = srcWidth; in Make() 1163 srcWidth = frame->width(); in Make() 1166 return std::unique_ptr<SkSwizzler>(new SkSwizzler(fastProc, proc, ctable, srcOffset, srcWidth, in Make() 1171 int srcWidth, int dstOffset, int dstWidth, int srcBPP, int dstBPP) in SkSwizzler() argument 1180 , fSrcWidth(srcWidth) in SkSwizzler() 1182 , fSwizzleWidth(srcWidth) in SkSwizzler()
|
/external/skqp/src/codec/ |
D | SkSwizzler.cpp | 1151 int srcWidth = dstInfo.width(); in Make() local 1153 int dstWidth = srcWidth; in Make() 1159 srcWidth = options.fSubset->width(); in Make() 1160 dstWidth = srcWidth; in Make() 1163 srcWidth = frame->width(); in Make() 1166 return std::unique_ptr<SkSwizzler>(new SkSwizzler(fastProc, proc, ctable, srcOffset, srcWidth, in Make() 1171 int srcWidth, int dstOffset, int dstWidth, int srcBPP, int dstBPP) in SkSwizzler() argument 1180 , fSrcWidth(srcWidth) in SkSwizzler() 1182 , fSwizzleWidth(srcWidth) in SkSwizzler()
|
/external/skia/modules/canvaskit/ |
D | interface.js | 430 CanvasKit.SkCanvas.prototype.writePixels = function(pixels, srcWidth, srcHeight, argument 432 if (pixels.byteLength % (srcWidth * srcHeight)) { 435 var bytesPerPixel = pixels.byteLength / (srcWidth * srcHeight); 439 var srcRowBytes = bytesPerPixel * srcWidth; 445 'width': srcWidth,
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Hexagon/ |
D | swp-stages5.ll | 14 define void @fred(i8* noalias nocapture %src, i32 %srcWidth, i32 %srcHeight, i32 %srcStride, i8* no… 16 %sub = add i32 %srcWidth, -1
|