/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | Size.java | 29 public class Size { class 39 public static List<Size> buildListFromCameraSizes(List<Camera.Size> cameraSizes) { in buildListFromCameraSizes() 40 ArrayList<Size> list = new ArrayList<Size>(cameraSizes.size()); in buildListFromCameraSizes() 41 for (Camera.Size cameraSize : cameraSizes) { in buildListFromCameraSizes() 42 list.add(new Size(cameraSize)); in buildListFromCameraSizes() 53 public static List<Size> buildListFromAndroidSizes(List<android.util.Size> androidSizes) { in buildListFromAndroidSizes() 54 ArrayList<Size> list = new ArrayList<Size>(androidSizes.size()); in buildListFromAndroidSizes() 55 for (android.util.Size androidSize : androidSizes) { in buildListFromAndroidSizes() 56 list.add(new Size(androidSize)); in buildListFromAndroidSizes() 67 public static String listToString(List<Size> sizes) { in listToString() [all …]
|
D | CameraSettings.java | 45 protected Size mCurrentPreviewSize; 47 protected Size mCurrentPhotoSize; 61 protected Size mExifThumbnailSize; 125 (src.mCurrentPreviewSize == null ? null : new Size(src.mCurrentPreviewSize)); in CameraSettings() 128 (src.mCurrentPhotoSize == null ? null : new Size(src.mCurrentPhotoSize)); in CameraSettings() 224 public Size getCurrentPreviewSize() { in getCurrentPreviewSize() 225 return new Size(mCurrentPreviewSize); in getCurrentPreviewSize() 232 public boolean setPreviewSize(Size previewSize) { in setPreviewSize() 238 mCurrentPreviewSize = new Size(previewSize); in setPreviewSize() 265 public Size getCurrentPhotoSize() { in getCurrentPhotoSize() [all …]
|
D | CameraCapabilities.java | 46 protected final ArrayList<Size> mSupportedPreviewSizes = new ArrayList<Size>(); 48 protected final ArrayList<Size> mSupportedVideoSizes = new ArrayList<Size>(); 49 protected final ArrayList<Size> mSupportedPhotoSizes = new ArrayList<Size>(); 57 protected Size mPreferredPreviewSizeForVideo; 525 public List<Size> getSupportedPhotoSizes() { in getSupportedPhotoSizes() 526 return new ArrayList<Size>(mSupportedPhotoSizes); in getSupportedPhotoSizes() 542 public final List<Size> getSupportedPreviewSizes() { in getSupportedPreviewSizes() 543 return new ArrayList<Size>(mSupportedPreviewSizes); in getSupportedPreviewSizes() 546 public final Size getPreferredPreviewSizeForVideo() { in getPreferredPreviewSizeForVideo() 547 return new Size(mPreferredPreviewSizeForVideo); in getPreferredPreviewSizeForVideo() [all …]
|
D | AndroidCameraCapabilities.java | 47 mPreferredPreviewSizeForVideo = new Size(p.getPreferredPreviewSizeForVideo()); in AndroidCameraCapabilities() 98 List<Camera.Size> supportedPreviewSizes = p.getSupportedPreviewSizes(); in buildPreviewSizes() 100 for (Camera.Size s : supportedPreviewSizes) { in buildPreviewSizes() 101 mSupportedPreviewSizes.add(new Size(s.width, s.height)); in buildPreviewSizes() 108 List<Camera.Size> supportedVideoSizes = p.getSupportedVideoSizes(); in buildVideoSizes() 110 for (Camera.Size s : supportedVideoSizes) { in buildVideoSizes() 111 mSupportedVideoSizes.add(new Size(s.width, s.height)); in buildVideoSizes() 118 List<Camera.Size> supportedPictureSizes = p.getSupportedPictureSizes(); in buildPictureSizes() 120 for (Camera.Size s : supportedPictureSizes) { in buildPictureSizes() 121 mSupportedPhotoSizes.add(new Size(s.width, s.height)); in buildPictureSizes() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
D | InstAlloc.c | 49 LVM_UINT32 Size ) in InstAlloc_AddMember() argument 54 Size = ((Size + 3) & (LVM_UINT32)~3); /* Ceil the size to a multiple of four */ in InstAlloc_AddMember() 56 pms->TotalSize += Size; in InstAlloc_AddMember() 57 pms->pNextMember += Size; in InstAlloc_AddMember() 142 LVM_UINT32 Size[], in InstAlloc_AddMemberAll() argument 148 …NewMemberAddress = InstAlloc_AddMember(&pms[LVM_PERSISTENT_SLOW_DATA], Size[LVM_PERSISTENT_SLOW_DA… in InstAlloc_AddMemberAll() 150 …pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].Size = InstAlloc_GetTotal(&pms[LVM_PERSISTE… in InstAlloc_AddMemberAll() 154 …NewMemberAddress = InstAlloc_AddMember(&pms[LVM_PERSISTENT_FAST_DATA], Size[LVM_PERSISTENT_FAST_DA… in InstAlloc_AddMemberAll() 156 …pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].Size = InstAlloc_GetTotal(&pms[LVM_PERSISTE… in InstAlloc_AddMemberAll() 160 …NewMemberAddress = InstAlloc_AddMember(&pms[LVM_PERSISTENT_FAST_COEF], Size[LVM_PERSISTENT_FAST_CO… in InstAlloc_AddMemberAll() [all …]
|
/frameworks/base/tests/Camera2Tests/CameraToo/tests/src/com/example/android/camera2/cameratoo/ |
D | CameraTooTest.java | 26 import android.util.Size; 57 Size empty = new Size(0, 0), fatAndFlat = new Size(100, 0), tallAndThin = new Size(0, 100); in compareSizesByArea() 58 Size smallSquare = new Size(4, 4), horizRect = new Size(8, 2), vertRect = new Size(2, 8); in compareSizesByArea() 59 Size largeSquare = new Size(5, 5); in compareSizesByArea() 60 Comparator<Size> rel = new CameraTooActivity.CompareSizesByArea(); in compareSizesByArea() 96 private void assertOptimalSize(Size[] options, int minWidth, int minHeight, Size expected) { in assertOptimalSize() 97 Size verdict = CameraTooActivity.chooseBigEnoughSize(options, minWidth, minHeight); in assertOptimalSize() 104 Size empty = new Size(0, 0), fatAndFlat = new Size(100, 0), tallAndThin = new Size(0, 100); in chooseBigEnoughSize() 105 Size smallSquare = new Size(4, 4), horizRect = new Size(8, 2), vertRect = new Size(2, 8); in chooseBigEnoughSize() 106 Size largeSquare = new Size(5, 5); in chooseBigEnoughSize() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
D | MarshalQueryableSize.java | 18 import android.util.Size; 31 public class MarshalQueryableSize implements MarshalQueryable<Size> { 34 private class MarshalerSize extends Marshaler<Size> { 35 protected MarshalerSize(TypeReference<Size> typeReference, int nativeType) { in MarshalerSize() 40 public void marshal(Size value, ByteBuffer buffer) { in marshal() 46 public Size unmarshal(ByteBuffer buffer) { in unmarshal() 50 return new Size(width, height); in unmarshal() 60 public Marshaler<Size> createMarshaler(TypeReference<Size> managedType, int nativeType) { in createMarshaler() 65 public boolean isTypeMappingSupported(TypeReference<Size> managedType, int nativeType) { in isTypeMappingSupported() 66 return nativeType == TYPE_INT32 && (Size.class.equals(managedType.getType())); in isTypeMappingSupported()
|
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/ |
D | LVM_Init.c | 217 CS_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_DATA].Size); in LVM_GetMemoryTable() 219 CS_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_COEF].Size); in LVM_GetMemoryTable() 220 …[LVM_MEMREGION_TEMPORARY_FAST].Size > AlgScratchSize) AlgScratchSize = CS_MemTab.Region[LVM_MEMREG… in LVM_GetMemoryTable() 250 DBE_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_DATA].Size); in LVM_GetMemoryTable() 252 DBE_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_COEF].Size); in LVM_GetMemoryTable() 253 …LVM_MEMREGION_TEMPORARY_FAST].Size > AlgScratchSize) AlgScratchSize = DBE_MemTab.Region[LVM_MEMREG… in LVM_GetMemoryTable() 284 EQNB_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_DATA].Size); in LVM_GetMemoryTable() 286 EQNB_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_COEF].Size); in LVM_GetMemoryTable() 287 …LVM_MEMREGION_TEMPORARY_FAST].Size > AlgScratchSize) AlgScratchSize = EQNB_MemTab.Region[LVM_MEMRE… in LVM_GetMemoryTable() 341 PSA_MemTab.Region[LVM_PERSISTENT_SLOW_DATA].Size); in LVM_GetMemoryTable() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | StreamConfigurationMap.java | 31 import android.util.Size; 180 Size size = config.getSize(); in StreamConfigurationMap() 266 public Size[] getInputSizes(final int format) { in getInputSizes() 404 Size surfaceSize = SurfaceUtils.getSurfaceSize(surface); in isOutputSupportedFor() 461 public <T> Size[] getOutputSizes(Class<T> klass) { in getOutputSizes() 493 public Size[] getOutputSizes(int format) { in getOutputSizes() 531 public Size[] getHighSpeedVideoSizes() { in getHighSpeedVideoSizes() 532 Set<Size> keySet = mHighSpeedVideoSizeMap.keySet(); in getHighSpeedVideoSizes() 533 return keySet.toArray(new Size[keySet.size()]); in getHighSpeedVideoSizes() 558 public Range<Integer>[] getHighSpeedVideoFpsRangesFor(Size size) { in getHighSpeedVideoFpsRangesFor() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraTestUtils.java | 59 import android.util.Size; 94 public static final Size SIZE_BOUND_1080P = new Size(1920, 1088); 95 public static final Size SIZE_BOUND_2160P = new Size(3840, 2160); 97 public static final Size PREVIEW_SIZE_BOUND = SIZE_BOUND_1080P; 175 public static ImageReader makeImageReader(Size size, int format, int maxNumImages, in makeImageReader() 247 private Size mSize; 250 public ImageVerifierListener(Size sz, int format) { in ImageVerifierListener() 954 public static Size[] getSupportedSizeForFormat(int format, String cameraId, in getSupportedSizeForFormat() 963 Size[] availableSizes = configMap.getOutputSizes(format); in getSupportedSizeForFormat() 966 Size[] highResAvailableSizes = configMap.getHighResolutionOutputSizes(format); in getSupportedSizeForFormat() [all …]
|
/frameworks/base/core/java/android/util/ |
D | Size.java | 24 public final class Size { class 31 public Size(int width, int height) { in Size() method in Size 72 if (obj instanceof Size) { in equals() 73 Size other = (Size) obj; in equals() 122 public static Size parseSize(String string) in parseSize() 134 return new Size(Integer.parseInt(string.substring(0, sep_ix)), in parseSize()
|
/frameworks/base/media/java/android/media/ |
D | ImageUtils.java | 22 import android.util.Size; 110 Size srcSize = new Size(src.getWidth(), src.getHeight()); in imageCopy() 111 Size dstSize = new Size(dst.getWidth(), dst.getHeight()); in imageCopy() 148 Size effectivePlaneSize = getEffectivePlaneSizeForImage(src, i); in imageCopy() 229 private static Size getEffectivePlaneSizeForImage(Image image, int planeIdx) { in getEffectivePlaneSizeForImage() 235 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage() 237 return new Size(image.getWidth() / 2, image.getHeight() / 2); in getEffectivePlaneSizeForImage() 241 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage() 243 return new Size(image.getWidth(), image.getHeight() / 2); in getEffectivePlaneSizeForImage() 256 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage() [all …]
|
D | Utils.java | 23 import android.util.Size; 199 static Size parseSize(Object o, Size fallback) { 201 return Size.parseSize((String) o); 290 static Pair<Size, Size> parseSizeRange(Object o) { 296 Size.parseSize(s.substring(0, ix)), 297 Size.parseSize(s.substring(ix + 1))); 299 Size value = Size.parseSize(s);
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
D | SizeAreaComparator.java | 19 import android.util.Size; 32 public class SizeAreaComparator implements Comparator<Size> { 37 public int compare(Size size, Size size2) { in compare() 66 public static Size findLargestByArea(List<Size> sizes) { in findLargestByArea()
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | RequestThreadManager.java | 34 import android.util.Size; 97 private Size mIntermediateBufferSize; 119 public final Collection<Pair<Surface, Size>> surfaces; 122 Size>> surfaces) { in ConfigureHolder() 331 private void configureOutputs(Collection<Pair<Surface, Size>> outputs) { in configureOutputs() 381 List<Size> previewOutputSizes = new ArrayList<>(); in configureOutputs() 382 List<Size> callbackOutputSizes = new ArrayList<>(); in configureOutputs() 387 for (Pair<Surface, Size> outPair : outputs) { in configureOutputs() 389 Size outSize = outPair.second; in configureOutputs() 439 Size smallestSupportedJpegSize = calculatePictureSize(mCallbackOutputs, in configureOutputs() [all …]
|
D | ParameterUtils.java | 30 import android.util.Size; 236 public static Size convertSize(Camera.Size size) { in convertSize() 239 return new Size(size.width, size.height); in convertSize() 245 public static List<Size> convertSizeList(List<Camera.Size> sizeList) { in convertSizeList() 248 List<Size> sizes = new ArrayList<>(sizeList.size()); in convertSizeList() 249 for (Camera.Size s : sizeList) { in convertSizeList() 250 sizes.add(new Size(s.width, s.height)); in convertSizeList() 258 public static Size[] convertSizeListToArray(List<Camera.Size> sizeList) { in convertSizeListToArray() 261 Size[] array = new Size[sizeList.size()]; in convertSizeListToArray() 263 for (Camera.Size s : sizeList) { in convertSizeListToArray() [all …]
|
D | SizeAreaComparator.java | 33 public class SizeAreaComparator implements Comparator<Camera.Size> { 38 public int compare(Camera.Size size, Camera.Size size2) { in compare() 67 public static Camera.Size findLargestByArea(List<Camera.Size> sizes) { in findLargestByArea()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | Camera2ReprocessCaptureTest.java | 35 import android.util.Size; 226 int reprocessOutputFormat, Size previewSize, CaptureTestCase captureTestCase) in testReprocessingMaxSizes() 228 Size maxInputSize = getMaxSize(inputFormat, StaticMetadata.StreamDirection.Input); in testReprocessingMaxSizes() 229 Size maxReprocessOutputSize = in testReprocessingMaxSizes() 260 private void testReprocessingAllCombinations(String cameraId, Size previewSize, in testReprocessingAllCombinations() 266 Size[] supportedInputSizes = in testReprocessingAllCombinations() 270 for (Size inputSize : supportedInputSizes) { in testReprocessingAllCombinations() 275 Size[] supportedReprocessOutputSizes = in testReprocessingAllCombinations() 279 for (Size reprocessOutputSize : supportedReprocessOutputSizes) { in testReprocessingAllCombinations() 308 private void testReprocessMixedBurst(String cameraId, Size inputSize, int inputFormat, in testReprocessMixedBurst() [all …]
|
D | Camera2RecordingTest.java | 44 import android.util.Size; 103 private List<Size> mSupportedVideoSizes; 109 private Size mVideoSize; 217 Size[] highSpeedVideoSizes = config.getHighSpeedVideoSizes(); in constrainedHighSpeedRecording() 218 for (Size size : highSpeedVideoSizes) { in constrainedHighSpeedRecording() 279 private int getFpsFromHighSpeedProfileForSize(Size size) { in getFpsFromHighSpeedProfileForSize() 284 if (size.equals(new Size(profile.videoFrameWidth, profile.videoFrameHeight))){ in getFpsFromHighSpeedProfileForSize() 294 Size size) { in getHighSpeedFixedFpsRangeForSize() 378 Size maxPreviewSize = mOrderedPreviewSizes.get(0); in basicRecordingTestByCamera() 390 Size videoSz = new Size(profile.videoFrameWidth, profile.videoFrameHeight); in basicRecordingTestByCamera() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | Camera2SurfaceViewTestCase.java | 52 import android.util.Size; 124 protected Size mPreviewSize; 125 protected List<Size> mOrderedPreviewSizes; // In descending order. 126 protected List<Size> mOrderedVideoSizes; // In descending order. 127 protected List<Size> mOrderedStillSizes; // In descending order. 128 protected List<Size> mOrderedRAW10Sizes; // In descending order. 129 protected List<Size> mOrderedYUV420888Sizes; // In descending order. 130 protected HashMap<Size, Long> mMinPreviewFrameDurationMap; 214 protected void startPreview(CaptureRequest.Builder request, Size previewSz, in startPreview() 283 CaptureRequest.Builder stillRequest, Size previewSz, Size stillSz, in prepareStillCaptureAndStartPreview() [all …]
|
/frameworks/base/media/mca/filterfw/jni/ |
D | jni_native_frame.cpp | 78 if (!data || size > frame->Size()) in Java_android_filterfw_core_NativeFrame_getNativeData() 93 return ToJBool(AttachDataToJBuffer(env, buffer, data, frame->Size())); in Java_android_filterfw_core_NativeFrame_getNativeBuffer() 122 if (!data || size > frame->Size() || (size % sizeof(jint)) != 0) in Java_android_filterfw_core_NativeFrame_getNativeInts() 156 if (!data || size > frame->Size() || (size % sizeof(jfloat)) != 0) in Java_android_filterfw_core_NativeFrame_getNativeFloats() 174 if ((size / 4) != (frame->Size() / bytes_per_sample)) { in Java_android_filterfw_core_NativeFrame_setNativeBitmap() 184 const uint8_t* end_ptr = dst_ptr + frame->Size(); in Java_android_filterfw_core_NativeFrame_setNativeBitmap() 203 memcpy(dst_ptr, src_ptr, frame->Size()); in Java_android_filterfw_core_NativeFrame_setNativeBitmap() 227 if ((size / 4) != (frame->Size() / bytes_per_sample)) { in Java_android_filterfw_core_NativeFrame_getNativeBitmap() 233 const uint8_t* end_ptr = src_ptr + frame->Size(); in Java_android_filterfw_core_NativeFrame_getNativeBitmap() 255 memcpy(dst_ptr, src_ptr, frame->Size()); in Java_android_filterfw_core_NativeFrame_getNativeBitmap() [all …]
|
D | jni_gl_frame.cpp | 131 if (frame && frame->Size() > 0) { in Java_android_filterfw_core_GLFrame_getNativeData() 132 jbyteArray result = env->NewByteArray(frame->Size()); in Java_android_filterfw_core_GLFrame_getNativeData() 134 frame->CopyDataTo(reinterpret_cast<uint8_t*>(data), frame->Size()); in Java_android_filterfw_core_GLFrame_getNativeData() 160 if (frame && frame->Size() > 0 && (frame->Size() % sizeof(jint) == 0)) { in Java_android_filterfw_core_GLFrame_getNativeInts() 161 jintArray result = env->NewIntArray(frame->Size() / sizeof(jint)); in Java_android_filterfw_core_GLFrame_getNativeInts() 163 frame->CopyDataTo(reinterpret_cast<uint8_t*>(data), frame->Size()); in Java_android_filterfw_core_GLFrame_getNativeInts() 196 if (frame && frame->Size() > 0) { in Java_android_filterfw_core_GLFrame_getNativeFloats() 198 jfloatArray result = env->NewFloatArray(frame->Size()); in Java_android_filterfw_core_GLFrame_getNativeFloats() 202 uint8_t* pixels = new uint8_t[frame->Size()]; in Java_android_filterfw_core_GLFrame_getNativeFloats() 203 frame->CopyDataTo(pixels, frame->Size()); in Java_android_filterfw_core_GLFrame_getNativeFloats() [all …]
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | Parameters.h | 113 struct Size { struct 361 Vector<Size> availablePreviewSizes; 362 Vector<Size> availableVideoSizes; 364 status_t getFilteredSizes(Size limit, Vector<Size> *sizes); 366 Size getMaxSizeForRatio(float ratio, const int32_t* sizeArray, size_t count); 388 int64_t getJpegStreamMinFrameDurationNs(Parameters::Size size); 393 Vector<Size> getAvailableJpegSizes(); 396 Size getMaxSize(const Vector<Size>& sizes);
|
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/ |
D | CameraTooActivity.java | 37 import android.util.Size; 90 static Size chooseBigEnoughSize(Size[] choices, int width, int height) { in chooseBigEnoughSize() 92 List<Size> bigEnough = new ArrayList<Size>(); in chooseBigEnoughSize() 93 for (Size option : choices) { in chooseBigEnoughSize() 111 static class CompareSizesByArea implements Comparator<Size> { 113 public int compare(Size lhs, Size rhs) { in compare() 247 Size largestSize = Collections.max( 263 Size optimalSize = chooseBigEnoughSize(
|
/frameworks/av/include/camera/ |
D | CameraParameters.h | 25 struct Size { struct 29 Size() { in Size() argument 34 Size(int w, int h) { in Size() argument 61 void getSupportedPreviewSizes(Vector<Size> &sizes) const; 81 void getSupportedVideoSizes(Vector<Size> &sizes) const; 98 void getSupportedPictureSizes(Vector<Size> &sizes) const;
|