HomeSort by relevance Sort by last modified time
    Searched refs:srcWidth (Results 1 - 25 of 93) sorted by null

1 2 3 4

  /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,
  /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/chromium_org/third_party/mesa/src/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,
mipmap.c 156 do_row(GLenum datatype, GLuint comps, GLint srcWidth,
160 const GLuint k0 = (srcWidth == dstWidth) ? 0 : 1;
161 const GLuint colStride = (srcWidth == dstWidth) ? 1 : 2;
167 assert(srcWidth == dstWidth || srcWidth == 2 * dstWidth);
    [all...]
  /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,
mipmap.c 149 do_row(GLenum datatype, GLuint comps, GLint srcWidth,
153 const GLuint k0 = (srcWidth == dstWidth) ? 0 : 1;
154 const GLuint colStride = (srcWidth == dstWidth) ? 1 : 2;
160 assert(srcWidth == dstWidth || srcWidth == 2 * dstWidth);
    [all...]
  /external/chromium_org/third_party/mesa/src/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...]
  /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/chromium_org/third_party/WebKit/Source/platform/graphics/skia/
SkiaUtils.cpp 201 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)
SkiaUtils.h 101 float srcWidth,
  /frameworks/av/include/media/stagefright/
ColorConverter.h 38 size_t srcWidth, size_t srcHeight,
  /frameworks/rs/cpu_ref/
rsCpuIntrinsicResize.cpp 189 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX;
212 *out = OneBiCubic(yp0, yp1, yp2, yp3, xf, yf, srcWidth);
229 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX;
252 *out = OneBiCubic(yp0, yp1, yp2, yp3, xf, yf, srcWidth);
269 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX;
292 *out = OneBiCubic(yp0, yp1, yp2, yp3, xf, yf, srcWidth);
316 const uint32_t srcWidth = mAlloc->mHal.drvState.lod[0].dimX;
332 scaleX = (float)srcWidth / aout->mHal.drvState.lod[0].dimX;

Completed in 724 milliseconds

1 2 3 4