Home
last modified time | relevance | path

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

1234

/external/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 …]
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,
Dtexcompress_fxt1.c70 ALIGN(srcPacking->RowLength, srcPacking->Alignment) != srcWidth || in _mesa_texstore_rgb_fxt1()
74 int rgbRowStride = 3 * srcWidth * sizeof(GLubyte); in _mesa_texstore_rgb_fxt1()
75 tempImage = malloc(srcWidth * srcHeight * 3 * sizeof(GLubyte)); in _mesa_texstore_rgb_fxt1()
83 srcWidth, srcHeight, srcDepth, in _mesa_texstore_rgb_fxt1()
87 srcRowStride = 3 * srcWidth; in _mesa_texstore_rgb_fxt1()
91 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight, in _mesa_texstore_rgb_fxt1()
94 srcRowStride = _mesa_image_row_stride(srcPacking, srcWidth, srcFormat, in _mesa_texstore_rgb_fxt1()
100 fxt1_encode(srcWidth, srcHeight, 3, pixels, srcRowStride, in _mesa_texstore_rgb_fxt1()
128 int rgbaRowStride = 4 * srcWidth * sizeof(GLubyte); in _mesa_texstore_rgba_fxt1()
129 tempImage = malloc(srcWidth * srcHeight * 4 * sizeof(GLubyte)); in _mesa_texstore_rgba_fxt1()
[all …]
/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.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 …]
/external/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()
/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/skqp/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.cpp102 bool SkReadPixelsRec::trim(int srcWidth, int srcHeight) { in trim() argument
113 if (!srcR.intersect(0, 0, srcWidth, srcHeight)) { in trim()
/external/skia/src/core/
DSkBlurMask.cpp553 int srcWidth = src.fBounds.width(); in BlurGroundTruth() local
564 int padWidth = srcWidth + 4*pad; in BlurGroundTruth()
573 const uint8_t* srcptr = srcPixels + y * srcWidth; in BlurGroundTruth()
574 memcpy(padptr, srcptr, srcWidth); in BlurGroundTruth()
627 srcWidth, srcHeight); in BlurGroundTruth()
633 srcWidth, srcHeight); in BlurGroundTruth()
645 dst->fRowBytes, srcWidth, srcHeight); in BlurGroundTruth()
DSkImageInfo.cpp128 bool SkReadPixelsRec::trim(int srcWidth, int srcHeight) { in trim() argument
139 if (!srcR.intersect({0, 0, srcWidth, srcHeight})) { in trim()
/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/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()
/external/skqp/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()
/external/skia/src/image/
DSkReadPixelsRec.h47 bool trim(int srcWidth, int srcHeight);
/external/skqp/src/image/
DSkReadPixelsRec.h46 bool trim(int srcWidth, int srcHeight);
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Hexagon/
Dswp-stages5.ll14 define void @fred(i8* noalias nocapture %src, i32 %srcWidth, i32 %srcHeight, i32 %srcStride, i8* no…
16 %sub = add i32 %srcWidth, -1

1234