/external/mesa3d/src/mesa/main/ |
D | texcompress_rgtc.c | 108 srcWidth, srcHeight, srcDepth, in _mesa_texstore_red_rgtc1() 117 dstRowDiff = dstRowStride >= (srcWidth * 2) ? dstRowStride - (((srcWidth + 3) & ~3) * 2) : 0; in _mesa_texstore_red_rgtc1() 121 srcaddr = tempImage + j * srcWidth; in _mesa_texstore_red_rgtc1() 122 for (i = 0; i < srcWidth; i += 4) { in _mesa_texstore_red_rgtc1() 123 if (srcWidth > i + 3) numxpixels = 4; in _mesa_texstore_red_rgtc1() 124 else numxpixels = srcWidth - i; in _mesa_texstore_red_rgtc1() 125 extractsrc_u(srcpixels, srcaddr, srcWidth, numxpixels, numypixels, 1); in _mesa_texstore_red_rgtc1() 155 srcWidth, srcHeight, srcDepth, in _mesa_texstore_signed_red_rgtc1() 164 dstRowDiff = dstRowStride >= (srcWidth * 2) ? dstRowStride - (((srcWidth + 3) & ~3) * 2) : 0; in _mesa_texstore_signed_red_rgtc1() 168 srcaddr = tempImage + j * srcWidth; in _mesa_texstore_signed_red_rgtc1() [all …]
|
D | texstore.c | 322 GLint srcWidth, GLint srcHeight, GLint srcDepth, in _mesa_make_temp_float_image() argument 331 _mesa_image_row_stride(srcPacking, srcWidth, srcFormat, srcType); in _mesa_make_temp_float_image() 357 tempImage = (GLfloat *) malloc(srcWidth * srcHeight * srcDepth in _mesa_make_temp_float_image() 366 srcWidth, srcHeight, in _mesa_make_temp_float_image() 370 _mesa_unpack_color_span_float(ctx, srcWidth, logicalBaseFormat, in _mesa_make_temp_float_image() 373 dst += srcWidth * components; in _mesa_make_temp_float_image() 395 newImage = (GLfloat *) malloc(srcWidth * srcHeight * srcDepth in _mesa_make_temp_float_image() 404 n = srcWidth * srcHeight * srcDepth; in _mesa_make_temp_float_image() 434 GLint srcWidth, GLint srcHeight, GLint srcDepth, in make_temp_uint_image() argument 442 _mesa_image_row_stride(srcPacking, srcWidth, srcFormat, srcType); in make_temp_uint_image() [all …]
|
D | texcompress_s3tc.c | 176 srcPacking->RowLength != srcWidth || in _mesa_texstore_rgb_dxt1() 182 srcWidth, srcHeight, srcDepth, in _mesa_texstore_rgb_dxt1() 191 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight, in _mesa_texstore_rgb_dxt1() 198 (*ext_tx_compress_dxtn)(3, srcWidth, srcHeight, pixels, in _mesa_texstore_rgb_dxt1() 229 srcPacking->RowLength != srcWidth || in _mesa_texstore_rgba_dxt1() 235 srcWidth, srcHeight, srcDepth, in _mesa_texstore_rgba_dxt1() 244 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight, in _mesa_texstore_rgba_dxt1() 251 (*ext_tx_compress_dxtn)(4, srcWidth, srcHeight, pixels, in _mesa_texstore_rgba_dxt1() 282 srcPacking->RowLength != srcWidth || in _mesa_texstore_rgba_dxt3() 288 srcWidth, srcHeight, srcDepth, in _mesa_texstore_rgba_dxt3() [all …]
|
D | mipmap.c | 149 do_row(GLenum datatype, GLuint comps, GLint srcWidth, in do_row() argument 153 const GLuint k0 = (srcWidth == dstWidth) ? 0 : 1; in do_row() 154 const GLuint colStride = (srcWidth == dstWidth) ? 1 : 2; in do_row() 782 do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth, in do_row_3D() argument 787 const GLuint k0 = (srcWidth == dstWidth) ? 0 : 1; in do_row_3D() 788 const GLuint colStride = (srcWidth == dstWidth) ? 1 : 2; in do_row_3D() 1416 GLint srcWidth, const GLubyte *srcPtr, in make_1d_mipmap() argument 1428 do_row(datatype, comps, srcWidth - 2 * border, src, src, in make_1d_mipmap() 1438 srcPtr + (srcWidth - 1) * bpt, in make_1d_mipmap() 1446 GLint srcWidth, GLint srcHeight, in make_2d_mipmap() argument [all …]
|
D | texstore.h | 63 GLint srcWidth, GLint srcHeight, GLint srcDepth, \ 77 GLint srcWidth, GLint srcHeight, GLint srcDepth, 86 GLint srcWidth, GLint srcHeight, GLint srcDepth,
|
D | texcompress_fxt1.c | 74 srcPacking->RowLength != srcWidth || in _mesa_texstore_rgb_fxt1() 80 srcWidth, srcHeight, srcDepth, in _mesa_texstore_rgb_fxt1() 86 srcRowStride = 3 * srcWidth; in _mesa_texstore_rgb_fxt1() 90 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight, in _mesa_texstore_rgb_fxt1() 93 srcRowStride = _mesa_image_row_stride(srcPacking, srcWidth, srcFormat, in _mesa_texstore_rgb_fxt1() 99 fxt1_encode(srcWidth, srcHeight, 3, pixels, srcRowStride, in _mesa_texstore_rgb_fxt1() 130 srcWidth, srcHeight, srcDepth, in _mesa_texstore_rgba_fxt1() 136 srcRowStride = 4 * srcWidth; in _mesa_texstore_rgba_fxt1() 140 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight, in _mesa_texstore_rgba_fxt1() 143 srcRowStride = _mesa_image_row_stride(srcPacking, srcWidth, srcFormat, in _mesa_texstore_rgba_fxt1() [all …]
|
D | mipmap.h | 36 GLint srcWidth, GLint srcHeight, GLint srcDepth,
|
/external/mesa3d/src/mesa/swrast/ |
D | s_blit.c | 43 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); in blit_nearest() local 142 typedef void (*resample_func)(GLint srcWidth, GLint dstWidth, in blit_nearest() 250 srcWidth, srcHeight, in blit_nearest() 268 srcBuffer = malloc(pixelSize * srcWidth); in blit_nearest() [all …]
|
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
D | TJCompressor.java | 148 srcWidth = width; in setSourceImage() 200 srcWidth = (width == 0) ? srcImage.getWidth(): width; in setSourceImage() 345 compressedSize = compress(srcBuf, srcX, srcY, srcWidth, srcPitch, in compress() 349 compressedSize = compress(srcBuf, srcWidth, srcPitch, srcHeight, in compress() 354 compressedSize = compress(srcBufInt, srcX, srcY, srcWidth, srcStride, in compress() 358 compressedSize = compress(srcBufInt, srcWidth, srcStride, srcHeight, in compress() 376 if (srcWidth < 1 || srcHeight < 1) in compress() 378 byte[] buf = new byte[TJ.bufSize(srcWidth, srcHeight, subsamp)]; in compress() 429 if (srcWidth != dstImage.getWidth() || srcHeight != dstImage.getHeight()) in encodeYUV() 433 encodeYUV(srcBufInt, srcX, srcY, srcWidth, srcStride, srcHeight, in encodeYUV() [all …]
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
D | SortedSpriteTest.java | 48 public MySprite (Texture texture, int srcX, int srcY, int srcWidth, int srcHeight) { in MySprite() argument 49 super(texture, srcX, srcY, srcWidth, srcHeight); in MySprite() 52 public MySprite (Texture texture, int srcWidth, int srcHeight) { in MySprite() argument 53 super(texture, srcWidth, srcHeight); in MySprite() 60 public MySprite (TextureRegion region, int srcX, int srcY, int srcWidth, int srcHeight) { in MySprite() argument 61 super(region, srcX, srcY, srcWidth, srcHeight); in MySprite()
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/ |
D | Batch.java | 97 …float scaleY, float rotation, int srcX, int srcY, int srcWidth, int srcHeight, boolean flipX, bool… in draw() argument 112 …aw (Texture texture, float x, float y, float width, float height, int srcX, int srcY, int srcWidth, in draw() argument 123 …public void draw (Texture texture, float x, float y, int srcX, int srcY, int srcWidth, int srcHeig… in draw() argument
|
D | CpuSpriteBatch.java | 152 …float scaleY, float rotation, int srcX, int srcY, int srcWidth, int srcHeight, boolean flipX, bool… in draw() argument 154 …, x, y, originX, originY, width, height, scaleX, scaleY, rotation, srcX, srcY, srcWidth, srcHeight, in draw() 157 …, x, y, originX, originY, width, height, scaleX, scaleY, rotation, srcX, srcY, srcWidth, srcHeight, in draw() 163 …aw (Texture texture, float x, float y, float width, float height, int srcX, int srcY, int srcWidth, in draw() argument 166 super.draw(texture, x, y, width, height, srcX, srcY, srcWidth, srcHeight, flipX, flipY); in draw() 168 …drawAdjusted(texture, x, y, 0, 0, width, height, 1, 1, 0, srcX, srcY, srcWidth, srcHeight, flipX, … in draw() 173 …public void draw (Texture texture, float x, float y, int srcX, int srcY, int srcWidth, int srcHeig… in draw() argument 175 super.draw(texture, x, y, srcX, srcY, srcWidth, srcHeight); in draw() 177 drawAdjusted(texture, x, y, 0, 0, srcWidth, srcHeight, 1, 1, 0, srcX, srcY, srcWidth, srcHeight, in draw() 275 …float scaleX, float scaleY, float rotation, int srcX, int srcY, int srcWidth, int srcHeight, boole… in drawAdjusted() argument [all …]
|
D | Sprite.java | 63 public Sprite (Texture texture, int srcWidth, int srcHeight) { in Sprite() argument 64 this(texture, 0, 0, srcWidth, srcHeight); in Sprite() 70 public Sprite (Texture texture, int srcX, int srcY, int srcWidth, int srcHeight) { in Sprite() argument 73 setRegion(srcX, srcY, srcWidth, srcHeight); in Sprite() 75 setSize(Math.abs(srcWidth), Math.abs(srcHeight)); in Sprite() 93 public Sprite (TextureRegion region, int srcX, int srcY, int srcWidth, int srcHeight) { in Sprite() argument 94 setRegion(region, srcX, srcY, srcWidth, srcHeight); in Sprite() 96 setSize(Math.abs(srcWidth), Math.abs(srcHeight)); in Sprite()
|
D | SpriteCache.java | 315 …public void add (Texture texture, float x, float y, int srcWidth, int srcHeight, float u, float v,… in add() argument 317 final float fx2 = x + srcWidth; in add() 368 …public void add (Texture texture, float x, float y, int srcX, int srcY, int srcWidth, int srcHeigh… in add() argument 373 final float u2 = (srcX + srcWidth) * invTexWidth; in add() 375 final float fx2 = x + srcWidth; in add() 426 …dd (Texture texture, float x, float y, float width, float height, int srcX, int srcY, int srcWidth, in add() argument 433 float u2 = (srcX + srcWidth) * invTexWidth; in add() 498 …float scaleY, float rotation, int srcX, int srcY, int srcWidth, int srcHeight, boolean flipX, bool… in add() argument 578 float u2 = (srcX + srcWidth) * invTexWidth; in add()
|
D | Gdx2DPixmap.java | 201 …public void drawPixmap (Gdx2DPixmap src, int srcX, int srcY, int srcWidth, int srcHeight, int dstX… in drawPixmap() argument 203 …drawPixmap(src.basePtr, basePtr, srcX, srcY, srcWidth, srcHeight, dstX, dstY, dstWidth, dstHeight); in drawPixmap() 350 …private static native void drawPixmap (long src, long dst, int srcX, int srcY, int srcWidth, int s… in drawPixmap() argument
|
D | SpriteBatch.java | 230 …float scaleY, float rotation, int srcX, int srcY, int srcWidth, int srcHeight, boolean flipX, bool… in draw() argument 316 float u2 = (srcX + srcWidth) * invTexWidth; in draw() 360 …aw (Texture texture, float x, float y, float width, float height, int srcX, int srcY, int srcWidth, in draw() argument 373 float u2 = (srcX + srcWidth) * invTexWidth; in draw() 419 …public void draw (Texture texture, float x, float y, int srcX, int srcY, int srcWidth, int srcHeig… in draw() argument 431 final float u2 = (srcX + srcWidth) * invTexWidth; in draw() 433 final float fx2 = x + srcWidth; in draw()
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/ |
D | Pixmap.java | 231 …public void drawPixmap (Pixmap pixmap, int x, int y, int srcx, int srcy, int srcWidth, int srcHeig… in drawPixmap() argument 232 this.pixmap.drawPixmap(pixmap.pixmap, srcx, srcy, x, y, srcWidth, srcHeight); in drawPixmap() 248 …public void drawPixmap (Pixmap pixmap, int srcx, int srcy, int srcWidth, int srcHeight, int dstx, … in drawPixmap() argument 250 …this.pixmap.drawPixmap(pixmap.pixmap, srcx, srcy, srcWidth, srcHeight, dstx, dsty, dstWidth, dstHe… in drawPixmap()
|
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/graphics/ |
D | Pixmap.java | 287 …public void drawPixmap (Pixmap pixmap, int x, int y, int srcx, int srcy, int srcWidth, int srcHeig… in drawPixmap() argument 289 image(image, srcx, srcy, srcWidth, srcHeight, x, y, srcWidth, srcHeight); in drawPixmap() 305 …public void drawPixmap (Pixmap pixmap, int srcx, int srcy, int srcWidth, int srcHeight, int dstx, … in drawPixmap() argument 307 …image(pixmap.getCanvasElement(), srcx, srcy, srcWidth, srcHeight, dstx, dsty, dstWidth, dstHeight); in drawPixmap() local 472 …private void image (CanvasElement image, int srcX, int srcY, int srcWidth, int srcHeight, int dstX… in image() argument 485 context.drawImage(image, srcX, srcY, srcWidth, srcHeight, dstX, dstY, dstWidth, dstHeight); in image()
|
/external/skia/src/core/ |
D | SkImageInfo.cpp | 86 bool SkReadPixelsRec::trim(int srcWidth, int srcHeight) { in trim() argument 104 if (!srcR.intersect(0, 0, srcWidth, srcHeight)) { in trim()
|
/external/deqp/framework/delibs/deimage/ |
D | deImage.c | 119 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/ |
D | SkSwizzler.cpp | 893 int srcWidth = dstInfo.width(); in CreateSwizzler() local 895 int dstWidth = srcWidth; in CreateSwizzler() 901 srcWidth = options.fSubset->width(); in CreateSwizzler() 902 dstWidth = srcWidth; in CreateSwizzler() 905 srcWidth = frame->width(); in CreateSwizzler() 908 return new SkSwizzler(fastProc, proc, ctable, srcOffset, srcWidth, dstOffset, dstWidth, in CreateSwizzler() 913 int srcWidth, int dstOffset, int dstWidth, int srcBPP, int dstBPP) in SkSwizzler() argument 922 , fSrcWidth(srcWidth) in SkSwizzler() 924 , fSwizzleWidth(srcWidth) in SkSwizzler()
|
/external/skia/src/image/ |
D | SkReadPixelsRec.h | 38 bool trim(int srcWidth, int srcHeight);
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_gen_mipmap.c | 169 do_row(enum dtype datatype, uint comps, int srcWidth, in do_row() argument 173 const uint k0 = (srcWidth == dstWidth) ? 0 : 1; in do_row() 174 const uint colStride = (srcWidth == dstWidth) ? 1 : 2; in do_row() 545 do_row_3D(enum dtype datatype, uint comps, int srcWidth, in do_row_3D() argument 550 const uint k0 = (srcWidth == dstWidth) ? 0 : 1; in do_row_3D() 551 const uint colStride = (srcWidth == dstWidth) ? 1 : 2; in do_row_3D() 962 int srcWidth, const ubyte *srcPtr, in reduce_1d() argument 972 srcWidth, srcPtr, srcPtr, in reduce_1d() 982 int srcWidth, int srcHeight, in reduce_2d() argument 997 srcRowStride = bpt * srcWidth; in reduce_2d() [all …]
|
/external/skia/src/effects/ |
D | SkBlurMask.cpp | 900 int srcWidth = src.fBounds.width(); in BlurGroundTruth() local 911 int padWidth = srcWidth + 4*pad; in BlurGroundTruth() 920 const uint8_t* srcptr = srcPixels + y * srcWidth; in BlurGroundTruth() 921 memcpy(padptr, srcptr, srcWidth); in BlurGroundTruth() 979 dst->fRowBytes, srcWidth, srcHeight); in BlurGroundTruth() 983 dst->fRowBytes, srcPixels, src.fRowBytes, srcWidth, srcHeight, style); in BlurGroundTruth()
|
/external/libgdx/gdx/jni/ |
D | com.badlogic.gdx.graphics.g2d.Gdx2DPixmap.cpp | 150 …nv* env, jclass clazz, jlong src, jlong dst, jint srcX, jint srcY, jint srcWidth, jint srcHeight, … in Java_com_badlogic_gdx_graphics_g2d_Gdx2DPixmap_drawPixmap() argument 155 …gdx2d_draw_pixmap((gdx2d_pixmap*)src, (gdx2d_pixmap*)dst, srcX, srcY, srcWidth, srcHeight, dstX, d… in Java_com_badlogic_gdx_graphics_g2d_Gdx2DPixmap_drawPixmap()
|