Home
last modified time | relevance | path

Searched refs:srcWidth (Results 1 – 25 of 50) sorted by relevance

12

/external/mesa3d/src/mesa/main/
Dtexcompress_rgtc.c91 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 …]
Dtexstore.c103 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 …]
Dtexcompress_s3tc.c135 ALIGN(srcPacking->RowLength, srcPacking->Alignment) != srcWidth || in _mesa_texstore_rgb_dxt1()
139 int rgbRowStride = 3 * srcWidth * sizeof(GLubyte); in _mesa_texstore_rgb_dxt1()
140 tempImage = malloc(srcWidth * srcHeight * 3 * sizeof(GLubyte)); in _mesa_texstore_rgb_dxt1()
148 srcWidth, srcHeight, srcDepth, in _mesa_texstore_rgb_dxt1()
155 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight, in _mesa_texstore_rgb_dxt1()
162 (*ext_tx_compress_dxtn)(3, srcWidth, srcHeight, pixels, in _mesa_texstore_rgb_dxt1()
192 ALIGN(srcPacking->RowLength, srcPacking->Alignment) != srcWidth || in _mesa_texstore_rgba_dxt1()
196 int rgbaRowStride = 4 * srcWidth * sizeof(GLubyte); in _mesa_texstore_rgba_dxt1()
197 tempImage = malloc(srcWidth * srcHeight * 4 * sizeof(GLubyte)); in _mesa_texstore_rgba_dxt1()
206 srcWidth, srcHeight, srcDepth, in _mesa_texstore_rgba_dxt1()
[all …]
Dmipmap.c150 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 …]
Dcopyimage.c458 GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth) in _mesa_CopyImageSubData() argument
479 srcWidth, srcHeight, srcDepth); in _mesa_CopyImageSubData()
522 (srcWidth % src_bw != 0 && (srcX + srcWidth) != src_w) || in _mesa_CopyImageSubData()
550 dstWidth = srcWidth * dst_bw / src_bw; in _mesa_CopyImageSubData()
555 srcX, srcY, srcZ, srcWidth, srcHeight, srcDepth, in _mesa_CopyImageSubData()
611 srcWidth, srcHeight); in _mesa_CopyImageSubData()
Dtexcompress_bptc.c1288 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 …]
Dmipmap.h36 GLint srcWidth, GLint srcHeight, GLint srcDepth,
54 GLint srcWidth, GLint srcHeight, GLint srcDepth,
Dtexcompress_fxt1.c68 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 …]
Dpack.h101 int srcWidth, int srcHeight, int srcDepth,
108 int srcWidth, int srcHeight, int srcDepth,
Dtexstore.h63 GLint srcWidth, GLint srcHeight, GLint srcDepth, \
83 GLint srcWidth, GLint srcHeight, GLint srcDepth,
Dcopyimage.h43 GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
Dpack.c1568 int srcWidth, int srcHeight, int srcDepth, in _mesa_unpack_color_index_to_rgba_float() argument
1576 count = srcWidth * srcHeight; in _mesa_unpack_color_index_to_rgba_float()
1595 srcWidth, srcHeight, in _mesa_unpack_color_index_to_rgba_float()
1612 dstPtr += srcHeight * srcWidth * 4; in _mesa_unpack_color_index_to_rgba_float()
1623 int srcWidth, int srcHeight, int srcDepth, in _mesa_unpack_color_index_to_rgba_ubyte() argument
1634 srcWidth, srcHeight, srcDepth, in _mesa_unpack_color_index_to_rgba_ubyte()
1637 count = srcWidth * srcHeight * srcDepth; in _mesa_unpack_color_index_to_rgba_ubyte()
/external/mesa3d/src/mesa/swrast/
Ds_blit.c44 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/
DTJCompressor.java150 srcWidth = width; in setSourceImage()
202 srcWidth = (width == 0) ? srcImage.getWidth(): width; in setSourceImage()
347 compressedSize = compress(srcBuf, srcX, srcY, srcWidth, srcPitch, in compress()
351 compressedSize = compress(srcBuf, srcWidth, srcPitch, srcHeight, in compress()
356 compressedSize = compress(srcBufInt, srcX, srcY, srcWidth, srcStride, in compress()
360 compressedSize = compress(srcBufInt, srcWidth, srcStride, srcHeight, in compress()
379 byte[] buf = new byte[TJ.bufSize(srcWidth, srcHeight, subsamp)]; in compress()
430 if (srcWidth != dstImage.getWidth() || srcHeight != dstImage.getHeight()) in encodeYUV()
434 encodeYUV(srcBufInt, srcX, srcY, srcWidth, srcStride, srcHeight, in encodeYUV()
438 encodeYUV(srcBuf, srcX, srcY, srcWidth, srcPitch, srcHeight, in encodeYUV()
[all …]
/external/mesa3d/src/mesa/drivers/common/
Dmeta_generate_mipmap.c276 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/
DImageUtils.java294 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/skia/src/effects/
DSkBlurMask.cpp443 int srcWidth = src.fBounds.width(); in BlurGroundTruth() local
454 int padWidth = srcWidth + 4*pad; in BlurGroundTruth()
463 const uint8_t* srcptr = srcPixels + y * srcWidth; in BlurGroundTruth()
464 memcpy(padptr, srcptr, srcWidth); in BlurGroundTruth()
522 dst->fRowBytes, srcWidth, srcHeight); in BlurGroundTruth()
526 dst->fRowBytes, srcPixels, src.fRowBytes, srcWidth, srcHeight, style); in BlurGroundTruth()
/external/skqp/src/effects/
DSkBlurMask.cpp441 int srcWidth = src.fBounds.width(); in BlurGroundTruth() local
452 int padWidth = srcWidth + 4*pad; in BlurGroundTruth()
461 const uint8_t* srcptr = srcPixels + y * srcWidth; in BlurGroundTruth()
462 memcpy(padptr, srcptr, srcWidth); in BlurGroundTruth()
520 dst->fRowBytes, srcWidth, srcHeight); in BlurGroundTruth()
524 dst->fRowBytes, srcPixels, src.fRowBytes, srcWidth, srcHeight, style); in BlurGroundTruth()
/external/deqp/framework/delibs/deimage/
DdeImage.c119 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/skqp/src/codec/
DSkSwizzler.cpp1167 int srcWidth = dstInfo.width(); in CreateSwizzler() local
1169 int dstWidth = srcWidth; in CreateSwizzler()
1175 srcWidth = options.fSubset->width(); in CreateSwizzler()
1176 dstWidth = srcWidth; in CreateSwizzler()
1179 srcWidth = frame->width(); in CreateSwizzler()
1182 return new SkSwizzler(fastProc, proc, ctable, srcOffset, srcWidth, dstOffset, dstWidth, in CreateSwizzler()
1187 int srcWidth, int dstOffset, int dstWidth, int srcBPP, int dstBPP) in SkSwizzler() argument
1196 , fSrcWidth(srcWidth) in SkSwizzler()
1198 , fSwizzleWidth(srcWidth) in SkSwizzler()
/external/skia/src/codec/
DSkSwizzler.cpp1146 int srcWidth = dstInfo.width(); in Make() local
1148 int dstWidth = srcWidth; in Make()
1154 srcWidth = options.fSubset->width(); in Make()
1155 dstWidth = srcWidth; in Make()
1158 srcWidth = frame->width(); in Make()
1161 return std::unique_ptr<SkSwizzler>(new SkSwizzler(fastProc, proc, ctable, srcOffset, srcWidth, in Make()
1166 int srcWidth, int dstOffset, int dstWidth, int srcBPP, int dstBPP) in SkSwizzler() argument
1175 , fSrcWidth(srcWidth) in SkSwizzler()
1177 , fSwizzleWidth(srcWidth) in SkSwizzler()
/external/skqp/src/core/
DSkImageInfo.cpp167 bool SkReadPixelsRec::trim(int srcWidth, int srcHeight) { in trim() argument
178 if (!srcR.intersect(0, 0, srcWidth, srcHeight)) { in trim()
/external/skia/src/core/
DSkImageInfo.cpp207 bool SkReadPixelsRec::trim(int srcWidth, int srcHeight) { in trim() argument
218 if (!srcR.intersect(0, 0, srcWidth, srcHeight)) { in trim()
/external/skqp/src/image/
DSkReadPixelsRec.h46 bool trim(int srcWidth, int srcHeight);
/external/skia/src/image/
DSkReadPixelsRec.h46 bool trim(int srcWidth, int srcHeight);

12