Searched refs:srcWidth (Results 1 - 25 of 42) sorted by relevance

12

/external/chromium_org/third_party/mesa/src/src/mesa/main/
H A Dtexcompress_rgtc.c108 srcWidth, srcHeight, srcDepth,
117 dstRowDiff = dstRowStride >= (srcWidth * 2) ? dstRowStride - (((srcWidth + 3) & ~3) * 2) : 0;
121 srcaddr = tempImage + j * srcWidth;
122 for (i = 0; i < srcWidth; i += 4) {
123 if (srcWidth > i + 3) numxpixels = 4;
124 else numxpixels = srcWidth - i;
125 extractsrc_u(srcpixels, srcaddr, srcWidth, numxpixels, numypixels, 1);
155 srcWidth, srcHeight, srcDepth,
164 dstRowDiff = dstRowStride >= (srcWidth *
[all...]
H A Dtexstore.c309 * \param srcWidth source image width
322 GLint srcWidth, GLint srcHeight, GLint srcDepth,
331 _mesa_image_row_stride(srcPacking, srcWidth, srcFormat, srcType);
357 tempImage = (GLfloat *) malloc(srcWidth * srcHeight * srcDepth
366 srcWidth, srcHeight,
370 _mesa_unpack_color_span_float(ctx, srcWidth, logicalBaseFormat,
373 dst += srcWidth * components;
395 newImage = (GLfloat *) malloc(srcWidth * srcHeight * srcDepth
404 n = srcWidth * srcHeight * srcDepth;
434 GLint srcWidth, GLin
319 _mesa_make_temp_float_image(struct gl_context *ctx, GLuint dims, GLenum logicalBaseFormat, GLenum textureBaseFormat, GLint srcWidth, GLint srcHeight, GLint srcDepth, GLenum srcFormat, GLenum srcType, const GLvoid *srcAddr, const struct gl_pixelstore_attrib *srcPacking, GLbitfield transferOps) argument
431 make_temp_uint_image(struct gl_context *ctx, GLuint dims, GLenum logicalBaseFormat, GLenum textureBaseFormat, GLint srcWidth, GLint srcHeight, GLint srcDepth, GLenum srcFormat, GLenum srcType, const GLvoid *srcAddr, const struct gl_pixelstore_attrib *srcPacking) argument
560 _mesa_make_temp_ubyte_image(struct gl_context *ctx, GLuint dims, GLenum logicalBaseFormat, GLenum textureBaseFormat, GLint srcWidth, GLint srcHeight, GLint srcDepth, GLenum srcFormat, GLenum srcType, const GLvoid *srcAddr, const struct gl_pixelstore_attrib *srcPacking) argument
845 _mesa_swizzle_ubyte_image(struct gl_context *ctx, GLuint dimensions, GLenum srcFormat, GLenum srcType, GLenum baseInternalFormat, const GLubyte *rgba2dst, GLuint dstComponents, GLint dstRowStride, GLubyte **dstSlices, GLint srcWidth, GLint srcHeight, GLint srcDepth, const GLvoid *srcAddr, const struct gl_pixelstore_attrib *srcPacking ) argument
925 memcpy_texture(struct gl_context *ctx, GLuint dimensions, gl_format dstFormat, GLint dstRowStride, GLubyte **dstSlices, GLint srcWidth, GLint srcHeight, GLint srcDepth, GLenum srcFormat, GLenum srcType, const GLvoid *srcAddr, const struct gl_pixelstore_attrib *srcPacking) argument
[all...]
H A Dtexstore.h51 * \param srcWidth/Height/Depth source image size, in pixels
63 GLint srcWidth, GLint srcHeight, GLint srcDepth, \
77 GLint srcWidth, GLint srcHeight, GLint srcDepth,
86 GLint srcWidth, GLint srcHeight, GLint srcDepth,
H A Dtexcompress_s3tc.c176 srcPacking->RowLength != srcWidth ||
182 srcWidth, srcHeight, srcDepth,
191 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight,
198 (*ext_tx_compress_dxtn)(3, srcWidth, srcHeight, pixels,
229 srcPacking->RowLength != srcWidth ||
235 srcWidth, srcHeight, srcDepth,
244 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight,
251 (*ext_tx_compress_dxtn)(4, srcWidth, srcHeight, pixels,
282 srcPacking->RowLength != srcWidth ||
288 srcWidth, srcHeigh
[all...]
H A Dmipmap.h36 GLint srcWidth, GLint srcHeight, GLint srcDepth,
H A Dmipmap.c156 do_row(GLenum datatype, GLuint comps, GLint srcWidth, argument
160 const GLuint k0 = (srcWidth == dstWidth) ? 0 : 1;
161 const GLuint colStride = (srcWidth == dstWidth) ? 1 : 2;
167 assert(srcWidth == dstWidth || srcWidth == 2 * dstWidth);
780 * \param srcWidth Width of a row in the source data
789 do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth, argument
794 const GLuint k0 = (srcWidth == dstWidth) ? 0 : 1;
795 const GLuint colStride = (srcWidth == dstWidth) ? 1 : 2;
1423 GLint srcWidth, cons
1422 make_1d_mipmap(GLenum datatype, GLuint comps, GLint border, GLint srcWidth, const GLubyte *srcPtr, GLint dstWidth, GLubyte *dstPtr) argument
1452 make_2d_mipmap(GLenum datatype, GLuint comps, GLint border, GLint srcWidth, GLint srcHeight, const GLubyte *srcPtr, GLint srcRowStride, GLint dstWidth, GLint dstHeight, GLubyte *dstPtr, GLint dstRowStride) argument
1544 make_3d_mipmap(GLenum datatype, GLuint comps, GLint border, GLint srcWidth, GLint srcHeight, GLint srcDepth, const GLubyte **srcPtr, GLint srcRowStride, GLint dstWidth, GLint dstHeight, GLint dstDepth, GLubyte **dstPtr, GLint dstRowStride) argument
1710 _mesa_generate_mipmap_level(GLenum target, GLenum datatype, GLuint comps, GLint border, GLint srcWidth, GLint srcHeight, GLint srcDepth, const GLubyte **srcData, GLint srcRowStride, GLint dstWidth, GLint dstHeight, GLint dstDepth, GLubyte **dstData, GLint dstRowStride) argument
1778 next_mipmap_level_size(GLenum target, GLint border, GLint srcWidth, GLint srcHeight, GLint srcDepth, GLint *dstWidth, GLint *dstHeight, GLint *dstDepth) argument
1905 GLint srcWidth, srcHeight, srcDepth; local
2090 GLint srcWidth, srcHeight, srcDepth; local
[all...]
H A Dtexcompress_fxt1.c74 srcPacking->RowLength != srcWidth ||
80 srcWidth, srcHeight, srcDepth,
86 srcRowStride = 3 * srcWidth;
90 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight,
93 srcRowStride = _mesa_image_row_stride(srcPacking, srcWidth, srcFormat,
99 fxt1_encode(srcWidth, srcHeight, 3, pixels, srcRowStride,
130 srcWidth, srcHeight, srcDepth,
136 srcRowStride = 4 * srcWidth;
140 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight,
143 srcRowStride = _mesa_image_row_stride(srcPacking, srcWidth, srcForma
[all...]
/external/mesa3d/src/mesa/main/
H A Dtexcompress_rgtc.c108 srcWidth, srcHeight, srcDepth,
117 dstRowDiff = dstRowStride >= (srcWidth * 2) ? dstRowStride - (((srcWidth + 3) & ~3) * 2) : 0;
121 srcaddr = tempImage + j * srcWidth;
122 for (i = 0; i < srcWidth; i += 4) {
123 if (srcWidth > i + 3) numxpixels = 4;
124 else numxpixels = srcWidth - i;
125 extractsrc_u(srcpixels, srcaddr, srcWidth, numxpixels, numypixels, 1);
155 srcWidth, srcHeight, srcDepth,
164 dstRowDiff = dstRowStride >= (srcWidth *
[all...]
H A Dtexstore.c309 * \param srcWidth source image width
322 GLint srcWidth, GLint srcHeight, GLint srcDepth,
331 _mesa_image_row_stride(srcPacking, srcWidth, srcFormat, srcType);
357 tempImage = (GLfloat *) malloc(srcWidth * srcHeight * srcDepth
366 srcWidth, srcHeight,
370 _mesa_unpack_color_span_float(ctx, srcWidth, logicalBaseFormat,
373 dst += srcWidth * components;
395 newImage = (GLfloat *) malloc(srcWidth * srcHeight * srcDepth
404 n = srcWidth * srcHeight * srcDepth;
434 GLint srcWidth, GLin
319 _mesa_make_temp_float_image(struct gl_context *ctx, GLuint dims, GLenum logicalBaseFormat, GLenum textureBaseFormat, GLint srcWidth, GLint srcHeight, GLint srcDepth, GLenum srcFormat, GLenum srcType, const GLvoid *srcAddr, const struct gl_pixelstore_attrib *srcPacking, GLbitfield transferOps) argument
431 make_temp_uint_image(struct gl_context *ctx, GLuint dims, GLenum logicalBaseFormat, GLenum textureBaseFormat, GLint srcWidth, GLint srcHeight, GLint srcDepth, GLenum srcFormat, GLenum srcType, const GLvoid *srcAddr, const struct gl_pixelstore_attrib *srcPacking) argument
560 _mesa_make_temp_ubyte_image(struct gl_context *ctx, GLuint dims, GLenum logicalBaseFormat, GLenum textureBaseFormat, GLint srcWidth, GLint srcHeight, GLint srcDepth, GLenum srcFormat, GLenum srcType, const GLvoid *srcAddr, const struct gl_pixelstore_attrib *srcPacking) argument
845 _mesa_swizzle_ubyte_image(struct gl_context *ctx, GLuint dimensions, GLenum srcFormat, GLenum srcType, GLenum baseInternalFormat, const GLubyte *rgba2dst, GLuint dstComponents, GLint dstRowStride, GLubyte **dstSlices, GLint srcWidth, GLint srcHeight, GLint srcDepth, const GLvoid *srcAddr, const struct gl_pixelstore_attrib *srcPacking ) argument
925 memcpy_texture(struct gl_context *ctx, GLuint dimensions, gl_format dstFormat, GLint dstRowStride, GLubyte **dstSlices, GLint srcWidth, GLint srcHeight, GLint srcDepth, GLenum srcFormat, GLenum srcType, const GLvoid *srcAddr, const struct gl_pixelstore_attrib *srcPacking) argument
[all...]
H A Dtexstore.h51 * \param srcWidth/Height/Depth source image size, in pixels
63 GLint srcWidth, GLint srcHeight, GLint srcDepth, \
77 GLint srcWidth, GLint srcHeight, GLint srcDepth,
86 GLint srcWidth, GLint srcHeight, GLint srcDepth,
H A Dtexcompress_s3tc.c176 srcPacking->RowLength != srcWidth ||
182 srcWidth, srcHeight, srcDepth,
191 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight,
198 (*ext_tx_compress_dxtn)(3, srcWidth, srcHeight, pixels,
229 srcPacking->RowLength != srcWidth ||
235 srcWidth, srcHeight, srcDepth,
244 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight,
251 (*ext_tx_compress_dxtn)(4, srcWidth, srcHeight, pixels,
282 srcPacking->RowLength != srcWidth ||
288 srcWidth, srcHeigh
[all...]
H A Dmipmap.h36 GLint srcWidth, GLint srcHeight, GLint srcDepth,
H A Dmipmap.c149 do_row(GLenum datatype, GLuint comps, GLint srcWidth, argument
153 const GLuint k0 = (srcWidth == dstWidth) ? 0 : 1;
154 const GLuint colStride = (srcWidth == dstWidth) ? 1 : 2;
160 assert(srcWidth == dstWidth || srcWidth == 2 * dstWidth);
773 * \param srcWidth Width of a row in the source data
782 do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth, argument
787 const GLuint k0 = (srcWidth == dstWidth) ? 0 : 1;
788 const GLuint colStride = (srcWidth == dstWidth) ? 1 : 2;
1416 GLint srcWidth, cons
1415 make_1d_mipmap(GLenum datatype, GLuint comps, GLint border, GLint srcWidth, const GLubyte *srcPtr, GLint dstWidth, GLubyte *dstPtr) argument
1445 make_2d_mipmap(GLenum datatype, GLuint comps, GLint border, GLint srcWidth, GLint srcHeight, const GLubyte *srcPtr, GLint srcRowStride, GLint dstWidth, GLint dstHeight, GLubyte *dstPtr, GLint dstRowStride) argument
1537 make_3d_mipmap(GLenum datatype, GLuint comps, GLint border, GLint srcWidth, GLint srcHeight, GLint srcDepth, const GLubyte **srcPtr, GLint srcRowStride, GLint dstWidth, GLint dstHeight, GLint dstDepth, GLubyte **dstPtr, GLint dstRowStride) argument
1703 _mesa_generate_mipmap_level(GLenum target, GLenum datatype, GLuint comps, GLint border, GLint srcWidth, GLint srcHeight, GLint srcDepth, const GLubyte **srcData, GLint srcRowStride, GLint dstWidth, GLint dstHeight, GLint dstDepth, GLubyte **dstData, GLint dstRowStride) argument
1771 next_mipmap_level_size(GLenum target, GLint border, GLint srcWidth, GLint srcHeight, GLint srcDepth, GLint *dstWidth, GLint *dstHeight, GLint *dstDepth) argument
1898 GLint srcWidth, srcHeight, srcDepth; local
2083 GLint srcWidth, srcHeight, srcDepth; local
[all...]
H A Dtexcompress_fxt1.c74 srcPacking->RowLength != srcWidth ||
80 srcWidth, srcHeight, srcDepth,
86 srcRowStride = 3 * srcWidth;
90 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight,
93 srcRowStride = _mesa_image_row_stride(srcPacking, srcWidth, srcFormat,
99 fxt1_encode(srcWidth, srcHeight, 3, pixels, srcRowStride,
130 srcWidth, srcHeight, srcDepth,
136 srcRowStride = 4 * srcWidth;
140 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight,
143 srcRowStride = _mesa_image_row_stride(srcPacking, srcWidth, srcForma
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/
H A Ds_blit.c43 NAME(GLint srcWidth, GLint dstWidth, \
53 GLint srcCol = (dstCol * srcWidth) / dstWidth; \
55 ASSERT(srcCol < srcWidth); \
56 srcCol = srcWidth - 1 - srcCol; /* flip */ \
74 GLint srcCol = (dstCol * srcWidth) / dstWidth; \
76 ASSERT(srcCol < srcWidth); \
115 const GLint srcWidth = ABS(srcX1 - srcX0); local
142 typedef void (*resample_func)(GLint srcWidth, GLint dstWidth,
250 srcWidth, srcHeight,
268 srcBuffer = malloc(pixelSize * srcWidth);
373 resample_linear_row_ub(GLint srcWidth, GLint dstWidth, const GLvoid *srcBuffer0, const GLvoid *srcBuffer1, GLvoid *dstBuffer, GLboolean flip, GLfloat rowWeight) argument
430 resample_linear_row_float(GLint srcWidth, GLint dstWidth, const GLvoid *srcBuffer0, const GLvoid *srcBuffer1, GLvoid *dstBuffer, GLboolean flip, GLfloat rowWeight) argument
495 const GLint srcWidth = ABS(srcX1 - srcX0); local
[all...]
/external/mesa3d/src/mesa/swrast/
H A Ds_blit.c43 NAME(GLint srcWidth, GLint dstWidth, \
53 GLint srcCol = (dstCol * srcWidth) / dstWidth; \
55 ASSERT(srcCol < srcWidth); \
56 srcCol = srcWidth - 1 - srcCol; /* flip */ \
74 GLint srcCol = (dstCol * srcWidth) / dstWidth; \
76 ASSERT(srcCol < srcWidth); \
115 const GLint srcWidth = ABS(srcX1 - srcX0); local
142 typedef void (*resample_func)(GLint srcWidth, GLint dstWidth,
250 srcWidth, srcHeight,
268 srcBuffer = malloc(pixelSize * srcWidth);
373 resample_linear_row_ub(GLint srcWidth, GLint dstWidth, const GLvoid *srcBuffer0, const GLvoid *srcBuffer1, GLvoid *dstBuffer, GLboolean flip, GLfloat rowWeight) argument
430 resample_linear_row_float(GLint srcWidth, GLint dstWidth, const GLvoid *srcBuffer0, const GLvoid *srcBuffer1, GLvoid *dstBuffer, GLboolean flip, GLfloat rowWeight) argument
495 const GLint srcWidth = ABS(srcX1 - srcX0); local
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/
H A DSkiaUtils.cpp201 float srcWidth,
224 float diffWidth = fabs(destWidth - srcWidth);
232 if (srcWidth <= kSmallImageSizeThreshold
241 if ((!nearlyIntegral(destWidth) && srcWidth > 1 + std::numeric_limits<float>::epsilon())
250 if (srcHeight * kLargeStretch <= destHeight || srcWidth * kLargeStretch <= destWidth) {
265 if ((diffWidth / srcWidth < kFractionalChangeThreshold)
199 computeInterpolationQuality( const SkMatrix& matrix, float srcWidth, float srcHeight, float destWidth, float destHeight, bool isDataComplete) argument
H A DSkiaUtils.h101 float srcWidth,
/external/chromium_org/ui/file_manager/gallery/js/image_editor/
H A Dfilter.js157 var srcWidth = src.width;
160 if (offsetX < 0 || offsetX + dstWidth > srcWidth ||
166 var srcIndex = (offsetX + (offsetY + y) * srcWidth) * 4;
228 var srcWidth = src.width;
230 var srcStride = srcWidth * 4;
233 if (offsetX < 0 || offsetX + dstWidth > srcWidth ||
245 var endX = Math.min(dstWidth, srcWidth - margin - offsetX);
377 var srcWidth = src.width;
380 if (offsetX < 0 || offsetX + dstWidth > srcWidth ||
391 var srcIndex = (offsetX + (offsetY + y) * srcWidth) *
[all...]
/external/deqp/framework/delibs/deimage/
H A DdeImage.c119 int srcWidth = srcImage->width; local
140 int x1 = deClamp32(x0+1, 0, srcWidth-1);
142 DE_ASSERT(deInBounds32(x0, 0, srcWidth));
/external/chromium_org/third_party/skia/src/effects/
H A DSkBlurMask.cpp902 int srcWidth = src.fBounds.width(); local
913 int padWidth = srcWidth + 4*pad;
922 const uint8_t* srcptr = srcPixels + y * srcWidth;
923 memcpy(padptr, srcptr, srcWidth);
981 dst->fRowBytes, srcWidth, srcHeight);
985 dst->fRowBytes, srcPixels, src.fRowBytes, srcWidth, srcHeight, style);
/external/skia/src/effects/
H A DSkBlurMask.cpp902 int srcWidth = src.fBounds.width(); local
913 int padWidth = srcWidth + 4*pad;
922 const uint8_t* srcptr = srcPixels + y * srcWidth;
923 memcpy(padptr, srcptr, srcWidth);
981 dst->fRowBytes, srcWidth, srcHeight);
985 dst->fRowBytes, srcPixels, src.fRowBytes, srcWidth, srcHeight, style);
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_gen_mipmap.c169 do_row(enum dtype datatype, uint comps, int srcWidth, argument
173 const uint k0 = (srcWidth == dstWidth) ? 0 : 1;
174 const uint colStride = (srcWidth == dstWidth) ? 1 : 2;
180 assert(srcWidth == dstWidth || srcWidth == 2 * dstWidth);
536 * \param srcWidth Width of a row in the source data
545 do_row_3D(enum dtype datatype, uint comps, int srcWidth, argument
550 const uint k0 = (srcWidth == dstWidth) ? 0 : 1;
551 const uint colStride = (srcWidth == dstWidth) ? 1 : 2;
962 int srcWidth, cons
961 reduce_1d(enum pipe_format pformat, int srcWidth, const ubyte *srcPtr, int dstWidth, ubyte *dstPtr) argument
981 reduce_2d(enum pipe_format pformat, int srcWidth, int srcHeight, int srcRowStride, const ubyte *srcPtr, int dstWidth, int dstHeight, int dstRowStride, ubyte *dstPtr) argument
1022 reduce_3d(enum pipe_format pformat, int srcWidth, int srcHeight, int srcDepth, int srcRowStride, int srcImageStride, const ubyte *srcPtr, int dstWidth, int dstHeight, int dstDepth, int dstRowStride, int dstImageStride, ubyte *dstPtr) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_gen_mipmap.c169 do_row(enum dtype datatype, uint comps, int srcWidth, argument
173 const uint k0 = (srcWidth == dstWidth) ? 0 : 1;
174 const uint colStride = (srcWidth == dstWidth) ? 1 : 2;
180 assert(srcWidth == dstWidth || srcWidth == 2 * dstWidth);
536 * \param srcWidth Width of a row in the source data
545 do_row_3D(enum dtype datatype, uint comps, int srcWidth, argument
550 const uint k0 = (srcWidth == dstWidth) ? 0 : 1;
551 const uint colStride = (srcWidth == dstWidth) ? 1 : 2;
962 int srcWidth, cons
961 reduce_1d(enum pipe_format pformat, int srcWidth, const ubyte *srcPtr, int dstWidth, ubyte *dstPtr) argument
981 reduce_2d(enum pipe_format pformat, int srcWidth, int srcHeight, int srcRowStride, const ubyte *srcPtr, int dstWidth, int dstHeight, int dstRowStride, ubyte *dstPtr) argument
1022 reduce_3d(enum pipe_format pformat, int srcWidth, int srcHeight, int srcDepth, int srcRowStride, int srcImageStride, const ubyte *srcPtr, int dstWidth, int dstHeight, int dstDepth, int dstRowStride, int dstImageStride, ubyte *dstPtr) argument
[all...]
/external/chromium_org/ui/file_manager/file_manager/foreground/js/
H A Dfile_transfer_controller.js506 var srcWidth = Math.min(canvas.width * minScale, thumbnailImage.width);
511 (thumbnailImage.width - srcWidth) / 2,
513 srcWidth,

Completed in 759 milliseconds

12