Searched defs:imageSize (Results 1 - 2 of 2) sorted by relevance
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
H A D | TaskConvertImageToRGBPreview.java | 134 * @param imageSize Dimensions of the original image 138 protected int calculateBestSubsampleFactor(Size imageSize, Size targetSize) { argument 139 int maxSubsample = Math.min(imageSize.getWidth() / targetSize.getWidth(), 140 imageSize.getHeight() / targetSize.getHeight()); 149 if (((imageSize.getWidth() % (2 * i) == 0) 150 && (imageSize.getHeight() % (2 * i) == 0))) {
|
/packages/apps/LegacyCamera/jni/ |
H A D | feature_mos_jni.cpp | 577 int imageSize = width * height; local 584 LOGV("MosBytes: %d, W = %d, H = %d", imageSize, width, height); 586 int* image = new int[imageSize]; 603 jintArray bytes = env->NewIntArray(imageSize+2); 609 env->SetIntArrayRegion(bytes, 0, imageSize, (jint*) image); 610 env->SetIntArrayRegion(bytes, imageSize, 2, (jint*) dims); 626 int imageSize = 1.5*width * height; local 640 LOGV("MosBytes: %d, W = %d, H = %d", imageSize, width, height); 654 jbyteArray bytes = env->NewByteArray(imageSize+8); 660 env->SetByteArrayRegion(bytes, 0, imageSize, (jbyt [all...] |
Completed in 108 milliseconds