Home
last modified time | relevance | path

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

123456

/third_party/mesa3d/src/mesa/main/
Dtexcompress_rgtc.c93 tempImage = malloc(srcWidth * srcHeight * 1 * sizeof(GLubyte)); in _mesa_texstore_red_rgtc1()
96 redRowStride = 1 * srcWidth * sizeof(GLubyte); in _mesa_texstore_red_rgtc1()
102 srcWidth, srcHeight, srcDepth, in _mesa_texstore_red_rgtc1()
109 dstRowDiff = dstRowStride >= (srcWidth * 2) ? dstRowStride - (((srcWidth + 3) & ~3) * 2) : 0; in _mesa_texstore_red_rgtc1()
113 srcaddr = tempImage + j * srcWidth; in _mesa_texstore_red_rgtc1()
114 for (i = 0; i < srcWidth; i += 4) { in _mesa_texstore_red_rgtc1()
115 if (srcWidth > i + 3) numxpixels = 4; in _mesa_texstore_red_rgtc1()
116 else numxpixels = srcWidth - i; in _mesa_texstore_red_rgtc1()
117 extractsrc_u(srcpixels, srcaddr, srcWidth, numxpixels, numypixels, 1); in _mesa_texstore_red_rgtc1()
146 redRowStride = 1 * srcWidth * sizeof(GLfloat); in _mesa_texstore_signed_red_rgtc1()
[all …]
Dtexcompress_bptc.c138 int rgbaRowStride = 4 * srcWidth * sizeof(GLubyte); in _mesa_texstore_bptc_rgba_unorm()
139 tempImage = malloc(srcWidth * srcHeight * 4 * sizeof(GLubyte)); in _mesa_texstore_bptc_rgba_unorm()
151 srcWidth, srcHeight, srcDepth, in _mesa_texstore_bptc_rgba_unorm()
156 rowstride = srcWidth * 4; in _mesa_texstore_bptc_rgba_unorm()
158 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight, in _mesa_texstore_bptc_rgba_unorm()
160 rowstride = _mesa_image_row_stride(srcPacking, srcWidth, in _mesa_texstore_bptc_rgba_unorm()
164 compress_rgba_unorm(srcWidth, srcHeight, in _mesa_texstore_bptc_rgba_unorm()
187 int rgbRowStride = 3 * srcWidth * sizeof(GLfloat); in texstore_bptc_rgb_float()
188 tempImage = malloc(srcWidth * srcHeight * 3 * sizeof(GLfloat)); in texstore_bptc_rgb_float()
196 srcWidth, srcHeight, srcDepth, in texstore_bptc_rgb_float()
[all …]
Dtexcompress_s3tc.c61 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()
130 srcWidth, srcHeight, srcDepth, in _mesa_texstore_rgba_dxt1()
[all …]
Dtexstore.c104 GLint srcWidth, GLint srcHeight, GLint srcDepth, in _mesa_memcpy_texture() argument
109 const GLint srcRowStride = _mesa_image_row_stride(srcPacking, srcWidth, in _mesa_memcpy_texture()
112 srcWidth, srcHeight, srcFormat, srcType); in _mesa_memcpy_texture()
114 srcPacking, srcAddr, srcWidth, srcHeight, srcFormat, srcType, 0, 0, 0); in _mesa_memcpy_texture()
116 const GLint bytesPerRow = srcWidth * texelBytes; in _mesa_memcpy_texture()
170 srcAddr, srcWidth, srcHeight, srcFormat, srcType, img, row, 0); in _mesa_texstore_z32()
171 _mesa_unpack_depth_span(ctx, srcWidth, in _mesa_texstore_z32()
200 srcAddr, srcWidth, srcHeight, srcFormat, srcType, img, row, 0); in _mesa_texstore_x8_z24()
201 _mesa_unpack_depth_span(ctx, srcWidth, in _mesa_texstore_x8_z24()
230 srcAddr, srcWidth, srcHeight, srcFormat, srcType, img, row, 0); in _mesa_texstore_z24_x8()
[all …]
Dtexcompress_fxt1.c63 int rgbaRowStride = 4 * srcWidth * sizeof(uint8_t); in _mesa_texstore_fxt1()
64 tempImage = malloc(srcWidth * srcHeight * 4 * sizeof(uint8_t)); in _mesa_texstore_fxt1()
72 srcWidth, srcHeight, srcDepth, in _mesa_texstore_fxt1()
76 srcRowStride = 4 * srcWidth; in _mesa_texstore_fxt1()
80 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight, in _mesa_texstore_fxt1()
83 srcRowStride = _mesa_image_row_stride(srcPacking, srcWidth, srcFormat, in _mesa_texstore_fxt1()
90 …util_format_fxt1_rgb_pack_rgba_8unorm(dst, dstRowStride, pixels, srcRowStride, srcWidth, srcHeight… in _mesa_texstore_fxt1()
92 …util_format_fxt1_rgba_pack_rgba_8unorm(dst, dstRowStride, pixels, srcRowStride, srcWidth, srcHeigh… in _mesa_texstore_fxt1()
Dcopyimage.c545 int srcWidth, int srcHeight, int srcDepth) in copy_image_subdata() argument
575 srcWidth, srcHeight); in copy_image_subdata()
584 GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth) in _mesa_CopyImageSubData_no_error() argument
599 dstLevel, srcWidth, srcHeight, srcDepth); in _mesa_CopyImageSubData_no_error()
607 GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth) in _mesa_CopyImageSubData() argument
627 srcWidth, srcHeight, srcDepth); in _mesa_CopyImageSubData()
672 (srcWidth % src_bw != 0 && (srcX + srcWidth) != src_w) || in _mesa_CopyImageSubData()
700 dstWidth = srcWidth * dst_bw / src_bw; in _mesa_CopyImageSubData()
705 srcX, srcY, srcZ, srcWidth, srcHeight, srcDepth, in _mesa_CopyImageSubData()
735 dstLevel, srcWidth, srcHeight, srcDepth); in _mesa_CopyImageSubData()
[all …]
Dcopyimage.h43 GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
50 GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
57 GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
64 GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
Dmipmap.c175 do_row(GLenum datatype, GLuint comps, GLint srcWidth, in do_row() argument
179 const GLuint k0 = (srcWidth == dstWidth) ? 0 : 1; in do_row()
180 const GLuint colStride = (srcWidth == dstWidth) ? 1 : 2; in do_row()
808 do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth, in do_row_3D() argument
813 const GLuint k0 = (srcWidth == dstWidth) ? 0 : 1; in do_row_3D()
814 const GLuint colStride = (srcWidth == dstWidth) ? 1 : 2; in do_row_3D()
1442 GLint srcWidth, const GLubyte *srcPtr, in make_1d_mipmap() argument
1454 do_row(datatype, comps, srcWidth - 2 * border, src, src, in make_1d_mipmap()
1464 srcPtr + (srcWidth - 1) * bpt, in make_1d_mipmap()
1472 GLint srcWidth, GLint srcHeight, in make_2d_mipmap() argument
[all …]
Dmipmap.h43 GLint srcWidth, GLint srcHeight, GLint srcDepth,
61 GLint srcWidth, GLint srcHeight, GLint srcDepth,
Dtexstore.h67 GLint srcWidth, GLint srcHeight, GLint srcDepth, \
82 UNUSED GLint srcWidth, UNUSED GLint srcHeight, UNUSED GLint srcDepth, \
101 GLint srcWidth, GLint srcHeight, GLint srcDepth,
Dpack.h103 int srcWidth, int srcHeight, int srcDepth,
110 int srcWidth, int srcHeight, int srcDepth,
/third_party/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 …]
/third_party/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DTJCompressor.java151 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()
387 buf = new byte[TJ.bufSize(srcWidth, srcHeight, subsamp)]; in compress()
441 if (srcWidth != dstImage.getWidth() || srcHeight != dstImage.getHeight()) in encodeYUV()
445 encodeYUV(srcBufInt, srcX, srcY, srcWidth, srcStride, srcHeight, in encodeYUV()
449 encodeYUV(srcBuf, srcX, srcY, srcWidth, srcPitch, srcHeight, in encodeYUV()
[all …]
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DTJCompressor.java151 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 …]
/third_party/mesa3d/src/mesa/drivers/common/
Dmeta_generate_mipmap.c275 GLsizei srcWidth, srcHeight, srcDepth; in _mesa_meta_GenerateMipmap() local
282 srcWidth = srcImage->Width; in _mesa_meta_GenerateMipmap()
292 dstWidth = minify(srcWidth, 1); in _mesa_meta_GenerateMipmap()
296 if (dstWidth == srcWidth && in _mesa_meta_GenerateMipmap()
330 srcWidth, srcHeight, /* img size */ in _mesa_meta_GenerateMipmap()
331 srcWidth, srcHeight, srcDepth, in _mesa_meta_GenerateMipmap()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
DRenderbufferImpl.h62 GLsizei srcWidth,
76 GLsizei srcWidth,
107 GLsizei srcWidth, in copyRenderbufferSubData() argument
125 GLsizei srcWidth, in copyTextureSubData() argument
/third_party/ffmpeg/libswscale/
Drgb2rgb_template.c561 static inline void planar2x_c(const uint8_t *src, uint8_t *dst, int srcWidth, in planar2x_c() argument
569 for (x = 0; x < srcWidth - 1; x++) { in planar2x_c()
573 dst[2 * srcWidth - 1] = src[srcWidth - 1]; in planar2x_c()
583 for (x = mmxSize - 1; x < srcWidth - 1; x++) { in planar2x_c()
589 … dst[srcWidth * 2 - 1] = (src[srcWidth - 1] * 3 + src[srcWidth - 1 + srcStride]) >> 2; in planar2x_c()
590 … dst[srcWidth * 2 - 1 + dstStride] = (src[srcWidth - 1] + 3 * src[srcWidth - 1 + srcStride]) >> 2; in planar2x_c()
599 for (x = 0; x < srcWidth - 1; x++) { in planar2x_c()
603 dst[2 * srcWidth - 1] = src[srcWidth - 1]; in planar2x_c()
/third_party/ffmpeg/libswscale/x86/
Drgb2rgb_template.c1359 static inline void RENAME(planar2x)(const uint8_t *src, uint8_t *dst, int srcWidth, int srcHeight, … in RENAME()
1366 for (x=0; x<srcWidth-1; x++) { in RENAME()
1370 dst[2*srcWidth-1]= src[srcWidth-1]; in RENAME()
1375 x86_reg mmxSize= srcWidth&~15; in RENAME()
1430 for (x=mmxSize-1; x<srcWidth-1; x++) { in RENAME()
1436 dst[srcWidth*2 -1 ]= (3*src[srcWidth-1] + src[srcWidth-1 + srcStride])>>2; in RENAME()
1437 dst[srcWidth*2 -1 + dstStride]= ( src[srcWidth-1] + 3*src[srcWidth-1 + srcStride])>>2; in RENAME()
1446 for (x=0; x<srcWidth-1; x++) { in RENAME()
1450 dst[2*srcWidth-1]= src[srcWidth-1]; in RENAME()
/third_party/flutter/skia/src/core/
DSkBlurMask.cpp559 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()
DSkImageInfo.cpp104 bool SkReadPixelsRec::trim(int srcWidth, int srcHeight) { in trim() argument
115 if (!srcR.intersect(0, 0, srcWidth, srcHeight)) { in trim()
/third_party/skia/src/core/
DSkBlurMask.cpp554 int srcWidth = src.fBounds.width(); in BlurGroundTruth() local
565 int padWidth = srcWidth + 4*pad; in BlurGroundTruth()
574 const uint8_t* srcptr = srcPixels + y * srcWidth; in BlurGroundTruth()
575 memcpy(padptr, srcptr, srcWidth); in BlurGroundTruth()
628 srcWidth, srcHeight); in BlurGroundTruth()
634 srcWidth, srcHeight); in BlurGroundTruth()
646 dst->fRowBytes, srcWidth, srcHeight); in BlurGroundTruth()
/third_party/vk-gl-cts/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()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DRenderbuffer.cpp205 GLsizei srcWidth, in copyRenderbufferSubData() argument
210 srcZ, dstLevel, dstX, dstY, dstZ, srcWidth, in copyRenderbufferSubData()
226 GLsizei srcWidth, in copyTextureSubData() argument
231 dstLevel, dstX, dstY, dstZ, srcWidth, srcHeight, in copyTextureSubData()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DRenderbufferVk.cpp204 GLsizei srcWidth, in copyRenderbufferSubData() argument
215 srcZ, mImage, dstLevel, dstX, dstY, dstZ, srcWidth, in copyRenderbufferSubData()
229 GLsizei srcWidth, in copyTextureSubData() argument
241 srcZ, mImage, dstLevel, dstX, dstY, dstZ, srcWidth, in copyTextureSubData()
DRenderbufferVk.h50 GLsizei srcWidth,
64 GLsizei srcWidth,

123456