/hardware/qcom/display/msm8226/libqdutils/ |
qd_utils.cpp | 97 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth, 101 if (srcWidth * destHeight > destWidth * srcHeight) { 102 srcHeight = destWidth * srcHeight / srcWidth; 103 srcWidth = destWidth; 104 } else if (srcWidth * destHeight < destWidth * srcHeight) { 105 srcWidth = destHeight * srcWidth / srcHeight; 108 srcWidth = destWidth; 111 if (srcWidth > destWidth) srcWidth = destWidth [all...] |
qd_utils.h | 51 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,
|
/hardware/qcom/display/msm8909/libqdutils/ |
qd_utils.cpp | 110 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth, 114 if (srcWidth * destHeight > destWidth * srcHeight) { 115 srcHeight = destWidth * srcHeight / srcWidth; 116 srcWidth = destWidth; 117 } else if (srcWidth * destHeight < destWidth * srcHeight) { 118 srcWidth = destHeight * srcWidth / srcHeight; 121 srcWidth = destWidth; 124 if (srcWidth > destWidth) srcWidth = destWidth [all...] |
qd_utils.h | 59 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,
|
/hardware/qcom/display/msm8994/libqdutils/ |
qd_utils.cpp | 96 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth, 100 if (srcWidth * destHeight > destWidth * srcHeight) { 101 srcHeight = destWidth * srcHeight / srcWidth; 102 srcWidth = destWidth; 103 } else if (srcWidth * destHeight < destWidth * srcHeight) { 104 srcWidth = destHeight * srcWidth / srcHeight; 107 srcWidth = destWidth; 110 if (srcWidth > destWidth) srcWidth = destWidth [all...] |
qd_utils.h | 59 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,
|
/packages/apps/Gallery2/jni/filters/ |
geometry.c | 20 static __inline__ void flipVertical(char * source, int srcWidth, int srcHeight, char * destination, int dstWidth, int dstHeight){ 23 int width = cpy_bytes * srcWidth; 34 static __inline__ void flipHorizontal(char * source, int srcWidth, int srcHeight, char * destination, int dstWidth, int dstHeight){ 37 int width = cpy_bytes * srcWidth; 51 static __inline__ void flip_fun(int flip, char * source, int srcWidth, int srcHeight, char * destination, int dstWidth, int dstHeight){ 57 flipHorizontal(source, srcWidth, srcHeight, temp, dstWidth, dstHeight); 63 flipHorizontal(source, srcWidth, srcHeight, destination, dstWidth, dstHeight); 67 flipVertical(source, srcWidth, srcHeight, destination, dstWidth, dstHeight); 73 static __inline__ void rotate90(char * source, int srcWidth, int srcHeight, char * destination, int dstWidth, int dstHeight){ 75 int width = cpy_bytes * srcWidth; [all...] |
/hardware/ti/omap4-aah/libI420colorconvert/ |
ColorConvert.cpp | 26 void* srcBits, int srcWidth, int srcHeight, ARect srcRect, void* dstBits) { 29 srcWidth * srcRect.top + srcRect.left; 31 srcWidth * (srcHeight - srcRect.top / 2); 44 pSrc_y += srcWidth; 54 pSrc_uv += srcWidth; 66 void* srcBits, int srcWidth, int srcHeight, 72 memcpy(pDst_y, pSrc_y, srcWidth); 73 pSrc_y += srcWidth; 76 uint8_t* pSrc_u = (uint8_t*)srcBits + (srcWidth * srcHeight); 77 uint8_t* pSrc_v = (uint8_t*)pSrc_u + (srcWidth / 2) * (srcHeight / 2) [all...] |
/hardware/ti/omap4xxx/libI420colorconvert/ |
ColorConvert.cpp | 26 void* srcBits, int srcWidth, int srcHeight, ARect srcRect, void* dstBits) { 29 srcWidth * srcRect.top + srcRect.left; 31 srcWidth * (srcHeight - srcRect.top / 2); 44 pSrc_y += srcWidth; 54 pSrc_uv += srcWidth; 66 void* srcBits, int srcWidth, int srcHeight, 72 memcpy(pDst_y, pSrc_y, srcWidth); 73 pSrc_y += srcWidth; 76 uint8_t* pSrc_u = (uint8_t*)srcBits + (srcWidth * srcHeight); 77 uint8_t* pSrc_v = (uint8_t*)pSrc_u + (srcWidth / 2) * (srcHeight / 2) [all...] |
/frameworks/native/include/media/editor/ |
II420ColorConverter.h | 70 * @param srcWidth (IN) Width of the I420 frame 86 void* srcBits, int srcWidth, int srcHeight, 99 * @param srcWidth (IN) Width of the I420 frame 112 int srcWidth, int srcHeight,
|
/external/mesa3d/src/mesa/main/ |
texcompress_rgtc.c | 108 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 * 2) ? dstRowStride - (((srcWidth + 3) & ~3) * 2) : 0 [all...] |
texstore.c | 309 * \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, GLint srcHeight, GLint srcDepth [all...] |
texstore.h | 51 * \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,
|
texcompress_s3tc.c | 176 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, srcHeight, srcDepth [all...] |
mipmap.h | 36 GLint srcWidth, GLint srcHeight, GLint srcDepth,
|
/external/skia/src/image/ |
SkReadPixelsRec.h | 38 bool trim(int srcWidth, int srcHeight);
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
SortedSpriteTest.java | 48 public MySprite (Texture texture, int srcX, int srcY, int srcWidth, int srcHeight) {
49 super(texture, srcX, srcY, srcWidth, srcHeight);
52 public MySprite (Texture texture, int srcWidth, int srcHeight) {
53 super(texture, srcWidth, srcHeight);
60 public MySprite (TextureRegion region, int srcX, int srcY, int srcWidth, int srcHeight) {
61 super(region, srcX, srcY, srcWidth, srcHeight);
|
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
TJCompressor.java | 148 srcWidth = width; 200 srcWidth = (width == 0) ? srcImage.getWidth(): width; 345 compressedSize = compress(srcBuf, srcX, srcY, srcWidth, srcPitch, 349 compressedSize = compress(srcBuf, srcWidth, srcPitch, srcHeight, 354 compressedSize = compress(srcBufInt, srcX, srcY, srcWidth, srcStride, 358 compressedSize = compress(srcBufInt, srcWidth, srcStride, srcHeight, 376 if (srcWidth < 1 || srcHeight < 1) 378 byte[] buf = new byte[TJ.bufSize(srcWidth, srcHeight, subsamp)]; 429 if (srcWidth != dstImage.getWidth() || srcHeight != dstImage.getHeight()) 433 encodeYUV(srcBufInt, srcX, srcY, srcWidth, srcStride, srcHeight [all...] |
/external/mesa3d/src/mesa/swrast/ |
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); 142 typedef void (*resample_func)(GLint srcWidth, GLint dstWidth, 250 srcWidth, srcHeight, 268 srcBuffer = malloc(pixelSize * srcWidth); [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
BitmapUtil.java | 139 final int srcWidth = src.getWidth(); 143 if (w == srcWidth && h == srcHeight) { 149 (float) w / srcWidth, 158 srcX = (int) (srcWidth * horizontalCenterPercent - srcCroppedW / 2); 162 srcX = Math.max(Math.min(srcX, srcWidth - srcCroppedW), 0); 171 srcWidth, srcHeight, w, h, srcX, srcY, srcCroppedW, srcCroppedH, scale,
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/ |
Batch.java | 79 * portion of the {@link Texture} given by srcX, srcY and srcWidth, srcHeight is used. These coordinates and sizes are given in
92 * @param srcWidth the source with in texels
97 float scaleY, float rotation, int srcX, int srcY, int srcWidth, int srcHeight, boolean flipX, boolean flipY);
100 * {@link Texture} given by srcX, srcY and srcWidth, srcHeight is used. These coordinates and sizes are given in texels. FlipX
108 * @param srcWidth the source with in texels
112 public void draw (Texture texture, float x, float y, float width, float height, int srcX, int srcY, int srcWidth,
116 * {@link Texture} given by srcX, srcY and srcWidth, srcHeight are used. These coordinates and sizes are given in texels.
121 * @param srcWidth the source with in texels
123 public void draw (Texture texture, float x, float y, int srcX, int srcY, int srcWidth, int srcHeight);
|
/external/skia/src/core/ |
SkImageInfo.cpp | 86 bool SkReadPixelsRec::trim(int srcWidth, int srcHeight) { 104 if (!srcR.intersect(0, 0, srcWidth, srcHeight)) {
|
/frameworks/rs/cpu_ref/ |
rsCpuIntrinsicResize.cpp | 324 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; 365 xclip, srcWidth - xoff + xclip, 374 *out = OneBiCubic(yp0, yp1, yp2, yp3, xf, yf, srcWidth); 391 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; 432 xclip, srcWidth - xoff + xclip, 441 *out = OneBiCubic(yp0, yp1, yp2, yp3, xf, yf, srcWidth); 458 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; 499 xclip, srcWidth - xoff + xclip, 508 *out = OneBiCubic(yp0, yp1, yp2, yp3, xf, yf, srcWidth); 525 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/ |
Pixmap.java | 229 * @param srcWidth The width of the area form the other Pixmap in pixels
231 public void drawPixmap (Pixmap pixmap, int x, int y, int srcx, int srcy, int srcWidth, int srcHeight) {
232 this.pixmap.drawPixmap(pixmap.pixmap, srcx, srcy, x, y, srcWidth, srcHeight);
242 * @param srcWidth The width of the area form the other Pixmap in pixels
248 public void drawPixmap (Pixmap pixmap, int srcx, int srcy, int srcWidth, int srcHeight, int dstx, int dsty, int dstWidth,
250 this.pixmap.drawPixmap(pixmap.pixmap, srcx, srcy, srcWidth, srcHeight, dstx, dsty, dstWidth, dstHeight);
|
/frameworks/av/include/media/stagefright/ |
ColorConverter.h | 38 size_t srcWidth, size_t srcHeight,
|