Home
last modified time | relevance | path

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

12345

/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_s3tc.c62 …_mesa_image_row_stride(srcPacking, srcWidth, srcFormat, srcType) != srccomps * srcWidth * sizeof(G… in _mesa_texstore_rgb_dxt1()
67 int rgbRowStride = 3 * srcWidth * sizeof(GLubyte); in _mesa_texstore_rgb_dxt1()
68 tempImage = malloc(srcWidth * srcHeight * 3 * sizeof(GLubyte)); in _mesa_texstore_rgb_dxt1()
76 srcWidth, srcHeight, srcDepth, in _mesa_texstore_rgb_dxt1()
84 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight, in _mesa_texstore_rgb_dxt1()
90 tx_compress_dxt1(srccomps, srcWidth, srcHeight, pixels, in _mesa_texstore_rgb_dxt1()
108 int rgbaRowStride = 4 * srcWidth * sizeof(GLubyte); in _mesa_texstore_rgba_dxt1()
116 _mesa_image_row_stride(srcPacking, srcWidth, srcFormat, srcType) != rgbaRowStride || in _mesa_texstore_rgba_dxt1()
121 tempImage = malloc(srcWidth * srcHeight * 4 * sizeof(GLubyte)); in _mesa_texstore_rgba_dxt1()
133 srcWidth, srcHeight, srcDepth, in _mesa_texstore_rgba_dxt1()
[all …]
Dtexstore.c105 GLint srcWidth, GLint srcHeight, GLint srcDepth, in _mesa_memcpy_texture() argument
110 const GLint srcRowStride = _mesa_image_row_stride(srcPacking, srcWidth, in _mesa_memcpy_texture()
113 srcWidth, srcHeight, srcFormat, srcType); in _mesa_memcpy_texture()
115 srcPacking, srcAddr, srcWidth, srcHeight, srcFormat, srcType, 0, 0, 0); in _mesa_memcpy_texture()
117 const GLint bytesPerRow = srcWidth * texelBytes; in _mesa_memcpy_texture()
171 srcAddr, srcWidth, srcHeight, srcFormat, srcType, img, row, 0); in _mesa_texstore_z32()
172 _mesa_unpack_depth_span(ctx, srcWidth, in _mesa_texstore_z32()
201 srcAddr, srcWidth, srcHeight, srcFormat, srcType, img, row, 0); in _mesa_texstore_x8_z24()
202 _mesa_unpack_depth_span(ctx, srcWidth, in _mesa_texstore_x8_z24()
231 srcAddr, srcWidth, srcHeight, srcFormat, srcType, img, row, 0); in _mesa_texstore_z24_x8()
[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_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.c547 int srcWidth, int srcHeight, int srcDepth) in copy_image_subdata() argument
577 srcWidth, srcHeight); in copy_image_subdata()
586 GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth) in _mesa_CopyImageSubData_no_error() argument
601 dstLevel, srcWidth, srcHeight, srcDepth); in _mesa_CopyImageSubData_no_error()
609 GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth) in _mesa_CopyImageSubData() argument
629 srcWidth, srcHeight, srcDepth); in _mesa_CopyImageSubData()
674 (srcWidth % src_bw != 0 && (srcX + srcWidth) != src_w) || in _mesa_CopyImageSubData()
702 dstWidth = srcWidth * dst_bw / src_bw; in _mesa_CopyImageSubData()
707 srcX, srcY, srcZ, srcWidth, srcHeight, srcDepth, in _mesa_CopyImageSubData()
737 dstLevel, srcWidth, srcHeight, srcDepth); in _mesa_CopyImageSubData()
[all …]
Dmipmap.c176 do_row(GLenum datatype, GLuint comps, GLint srcWidth, in do_row() argument
180 const GLuint k0 = (srcWidth == dstWidth) ? 0 : 1; in do_row()
181 const GLuint colStride = (srcWidth == dstWidth) ? 1 : 2; in do_row()
809 do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth, in do_row_3D() argument
814 const GLuint k0 = (srcWidth == dstWidth) ? 0 : 1; in do_row_3D()
815 const GLuint colStride = (srcWidth == dstWidth) ? 1 : 2; in do_row_3D()
1443 GLint srcWidth, const GLubyte *srcPtr, in make_1d_mipmap() argument
1455 do_row(datatype, comps, srcWidth - 2 * border, src, src, in make_1d_mipmap()
1465 srcPtr + (srcWidth - 1) * bpt, in make_1d_mipmap()
1473 GLint srcWidth, GLint srcHeight, in make_2d_mipmap() argument
[all …]
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,
Dmipmap.h50 GLint srcWidth, GLint srcHeight, GLint srcDepth,
/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
DTextureImpl.cpp57 GLsizei srcWidth, in copyRenderbufferSubData() argument
75 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.c1337 static inline void RENAME(planar2x)(const uint8_t *src, uint8_t *dst, int srcWidth, int srcHeight, … in RENAME()
1344 for (x=0; x<srcWidth-1; x++) { in RENAME()
1348 dst[2*srcWidth-1]= src[srcWidth-1]; in RENAME()
1353 x86_reg mmxSize= srcWidth&~15; in RENAME()
1408 for (x=mmxSize-1; x<srcWidth-1; x++) { in RENAME()
1414 dst[srcWidth*2 -1 ]= (3*src[srcWidth-1] + src[srcWidth-1 + srcStride])>>2; in RENAME()
1415 dst[srcWidth*2 -1 + dstStride]= ( src[srcWidth-1] + 3*src[srcWidth-1 + srcStride])>>2; in RENAME()
1424 for (x=0; x<srcWidth-1; x++) { in RENAME()
1428 dst[2*srcWidth-1]= src[srcWidth-1]; in RENAME()
/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()
DSkImageInfo.cpp146 bool SkReadPixelsRec::trim(int srcWidth, int srcHeight) { in trim() argument
157 if (!srcR.intersect({0, 0, srcWidth, srcHeight})) { in trim()
/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()
DRenderbuffer.h105 GLsizei srcWidth,
119 GLsizei srcWidth,
/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,
/third_party/skia/src/codec/
DSkSwizzler.cpp1151 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()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/shaders/src/
DBlitResolveStencilNoExport.comp50 int srcWidth;
112 if (srcImageCoords.x >= 0 && srcImageCoords.x < params.srcWidth)
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/null/
DTextureNULL.h97 GLsizei srcWidth,
111 GLsizei srcWidth,
/third_party/skia/src/image/
DSkReadPixelsRec.h47 bool trim(int srcWidth, int srcHeight);

12345