/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
BitmapUtils.java | 27 * @param srcW the source width 54 public static void calculateCroppedSrcRect(final int srcW, final int srcH, final int dstW, 61 final float wScale = (float) srcW / dstW; 76 outRect.left = (srcW - srcCroppedW) / 2; 94 * @param srcW 100 public static void calculateCroppedSrcRect(int srcW, int srcH, int dstW, int dstH, 102 calculateCroppedSrcRect(srcW, srcH, dstW, dstH, Integer.MAX_VALUE, outRect); 105 public static void calculateCroppedSrcRect(int srcW, int srcH, int dstW, int dstH, 111 (float) srcW / dstW, 119 outRect.left = (srcW - srcCroppedW) / 2 [all...] |
/external/pcre/dist/sljit/ |
sljitNativeSPARC_common.c | 472 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_return(struct sljit_compiler *compiler, sljit_si op, sljit_si src, sljit_sw srcw) 475 check_sljit_emit_return(compiler, op, src, srcw); 478 FAIL_IF(emit_mov_before_return(compiler, op, src, srcw)); 819 sljit_si src, sljit_sw srcw) 824 check_sljit_emit_op1(compiler, op, dst, dstw, src, srcw); 826 ADJUST_LOCAL_OFFSET(src, srcw); 832 return emit_op(compiler, SLJIT_MOV, flags | WORD_DATA, dst, dstw, TMP_REG1, 0, src, srcw); 835 return emit_op(compiler, SLJIT_MOV_UI, flags | INT_DATA, dst, dstw, TMP_REG1, 0, src, srcw); 838 return emit_op(compiler, SLJIT_MOV_SI, flags | INT_DATA | SIGNED_DATA, dst, dstw, TMP_REG1, 0, src, srcw); 841 return emit_op(compiler, SLJIT_MOV_UB, flags | BYTE_DATA, dst, dstw, TMP_REG1, 0, src, (src & SLJIT_IMM) ? (sljit_ub)srcw : srcw) [all...] |
sljitNativeMIPS_common.c | 629 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_return(struct sljit_compiler *compiler, sljit_si op, sljit_si src, sljit_sw srcw) 635 check_sljit_emit_return(compiler, op, src, srcw); 637 FAIL_IF(emit_mov_before_return(compiler, op, src, srcw)); [all...] |
sljitNativeARM_64.c | [all...] |
sljitNativeX86_common.c | 579 sljit_si src, sljit_sw srcw); 653 sljit_si src, sljit_sw srcw) 660 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src, srcw); 675 return emit_do_imm(compiler, MOV_r_i32 + reg_map[dst], srcw); 678 if (NOT_HALFWORD(srcw)) 679 return emit_load_imm64(compiler, dst, srcw); 682 return emit_do_imm32(compiler, (reg_map[dst] >= 8) ? REX_B : 0, MOV_r_i32 + reg_lmap[dst], srcw); 686 if (!compiler->mode32 && NOT_HALFWORD(srcw)) { 687 FAIL_IF(emit_load_imm64(compiler, TMP_REG2, srcw)); 694 inst = emit_x86_instruction(compiler, 1, SLJIT_IMM, srcw, dst, dstw) [all...] |
sljitLir.c | 943 static SLJIT_INLINE void check_sljit_emit_return(struct sljit_compiler *compiler, sljit_si op, sljit_si src, sljit_sw srcw) 949 SLJIT_UNUSED_ARG(srcw); 954 FUNCTION_CHECK_SRC(src, srcw); 957 SLJIT_ASSERT(src == 0 && srcw == 0); 965 sljit_verbose_param(compiler, src, srcw); 991 static SLJIT_INLINE void check_sljit_emit_fast_return(struct sljit_compiler *compiler, sljit_si src, sljit_sw srcw) 996 SLJIT_UNUSED_ARG(srcw); 999 FUNCTION_CHECK_SRC(src, srcw); 1004 sljit_verbose_param(compiler, src, srcw); 1027 sljit_si src, sljit_sw srcw) [all...] |
sljitNativeARM_T2_32.c | [all...] |
sljitNativeTILEGX_64.c | [all...] |
sljitNativeX86_64.c | 269 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_return(struct sljit_compiler *compiler, sljit_si op, sljit_si src, sljit_sw srcw) 275 check_sljit_emit_return(compiler, op, src, srcw); 278 FAIL_IF(emit_mov_before_return(compiler, op, src, srcw)); 642 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_fast_return(struct sljit_compiler *compiler, sljit_si src, sljit_sw srcw) 647 check_sljit_emit_fast_return(compiler, src, srcw); 648 ADJUST_LOCAL_OFFSET(src, srcw); 650 if ((src & SLJIT_IMM) && NOT_HALFWORD(srcw)) { 651 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, srcw)); 675 inst = emit_x86_instruction(compiler, 1, 0, 0, src, srcw); 685 SLJIT_ASSERT(IS_HALFWORD(srcw)); [all...] |
/hardware/intel/img/hwcomposer/ips/anniedale/ |
PlaneCapabilities.cpp | 170 int srcW, srcH; 173 srcW = (int)src.right - (int)src.left; 180 return ((srcW == dstW) && (srcH == dstH)) ? true : false; 184 if ((srcW > INTEL_OVERLAY_MAX_WIDTH - 1) || (srcH > INTEL_OVERLAY_MAX_HEIGHT - 1)) { 188 if (dstW <= 1 || dstH <= 1 || srcW <= 1 || srcH <= 1) { 195 int tmp = srcW; 196 srcW = srcH; 206 float scaleX = (float)srcW / dstW;
|
/hardware/intel/img/psb_video/src/x11/ |
psb_ctexture.c | 225 unsigned short srcw, 264 tmp = srcw; 265 srcw = srch; 405 srcw=%d, srch=%d, destx=%d, desty=%d, destw=%d, desth=%d, cur_buffer=%d\n", 406 srcx, srcy, srcw, srch, xoffset, yoffset, xres, yres, texture_priv->extend_current_blt_buffer); 409 psb_putsurface_textureblit(ctx, (unsigned char *)texture_priv->extend_blt_meminfo[texture_priv->extend_current_blt_buffer], surface, srcx, srcy, srcw, srch, 0, 0, local 415 psb_putsurface_textureblit(ctx, (unsigned char *)texture_priv->extend_blt_meminfo[texture_priv->extend_current_blt_buffer], surface, srcx, srcy, srcw, srch, 0, 0, local 465 drv_debug_msg(VIDEO_DEBUG_GENERAL, "psb_putsurface_ctexture: Main video Pixmap, coordinate: srcx= %d, srcy=%d, srcw=%d, srch=%d, destx=%d, desty=%d, destw=%d, desth=%d, cur_buffer=%d\n", 466 srcx, srcy, srcw, srch, destx, desty, destw, desth, texture_priv->current_blt_buffer); 468 psb_putsurface_textureblit(ctx, (unsigned char *)texture_priv->blt_meminfo_pixmap, surface, srcx, srcy, srcw, srch, destx, desty, destw, desth, 1 local 473 psb_putsurface_textureblit(ctx, (unsigned char *)texture_priv->blt_meminfo_pixmap, surface, srcx, srcy, srcw, srch, destx, desty, destw, desth, 0, local 487 psb_putsurface_textureblit(ctx, (unsigned char *)texture_priv->blt_meminfo[texture_priv->current_blt_buffer], surface, srcx, srcy, srcw, srch, destx, desty, destw, desth, 1, local 492 psb_putsurface_textureblit(ctx, (unsigned char *)texture_priv->blt_meminfo[texture_priv->current_blt_buffer], surface, srcx, srcy, srcw, srch, destx, desty, destw, desth, 0, local 505 psb_putsurface_textureblit(ctx, (unsigned char *)texture_priv->flip_meminfo[texture_priv->current_blt_buffer], surface, srcx, srcy, srcw, srch, destx, desty, local 510 psb_putsurface_textureblit(ctx, (unsigned char *)texture_priv->flip_meminfo[texture_priv->current_blt_buffer], surface, srcx, srcy, srcw, srch, destx, desty, local [all...] |
psb_x11.c | 110 unsigned short srcw, 139 if (srcw <= destw) 140 width = srcw; 158 drv_debug_msg(VIDEO_DEBUG_GENERAL, "PutSurface: src w x h = %d x %d\n", srcw, srch); 461 unsigned short srcw, 490 psb_putsurface_x11(ctx, surface, draw, srcx, srcy, srcw, srch, 502 pnw_check_output_method(ctx, obj_surface, srcw, srch, destw, desth, draw); 510 srcx, srcy, srcw, srch, 517 srcw = srcw <= 1920 ? srcw : 1920 [all...] |
psb_x11.h | 115 unsigned short srcw, 133 unsigned short srcw, 150 unsigned short srcw,
|
/hardware/intel/img/psb_video/src/android/ |
psb_output_android.c | 154 unsigned short srcw, 176 psb_putsurface_textureblit(ctx, data, surface, srcx, srcy, srcw, srch, 194 unsigned short srcw, 210 float _slope_xy = (float)srch / srcw; 230 srcx, srcy, srcw, srch, destx, desty, destw, desth); 233 ctx, surface, srcx, srcy, srcw, srch, 281 unsigned short srcw, 297 if ((srcw >= 2048) || (srch >= 2048)) { 345 _slope_xy = (float)srcw / srch; 347 _slope_xy = (float)srch / srcw; [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/common/ |
extend.c | 108 int srch, int srcw) 126 if (srcx + srcw != src->y_width) 133 srch, srcw, 141 srcw = (srcw + 1) >> 1; 147 srch, srcw, 154 srch, srcw,
|
extend.h | 27 int srch, int srcw);
|
/external/libvpx/libvpx/vp8/common/ |
extend.c | 108 int srch, int srcw) 126 if (srcx + srcw != src->y_width) 133 srch, srcw, 141 srcw = (srcw + 1) >> 1; 147 srch, srcw, 154 srch, srcw,
|
extend.h | 27 int srch, int srcw);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/ |
extend.c | 108 int srch, int srcw) 126 if (srcx + srcw != src->y_width) 133 srch, srcw, 141 srcw = (srcw + 1) >> 1; 147 srch, srcw, 154 srch, srcw,
|
extend.h | 27 int srch, int srcw);
|
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/encoder/ |
vp9_extend.h | 28 int srch, int srcw);
|
/external/libvpx/libvpx/vp9/encoder/ |
vp9_extend.h | 28 int srch, int srcw);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
vp9_extend.h | 28 int srch, int srcw);
|
/external/chromium_org/base/strings/ |
stringprintf_unittest.cc | 83 wchar_t srcw[kSrcLen]; local 84 for (size_t i = 0; i < arraysize(srcw); i++) 85 srcw[i] = 'A'; 94 srcw[kSrcLen - i] = 0; 96 SStringPrintf(&outw, L"%ls", srcw); 97 EXPECT_STREQ(srcw, outw.c_str());
|
/external/qemu/distrib/sdl-1.2.15/src/video/ |
SDL_yuv.c | 86 int srcx, srcy, srcw, srch; local 97 srcw = overlay->w; 104 srcw += (dstx * overlay->w) / dstrect->w; 111 srcw -= (extra * overlay->w) / dstrect->w; 125 if ( srcw <= 0 || srch <= 0 || 132 src.w = srcw;
|