/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 = new Size(0,0); 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 …]
|
D | AndroidCameraSettings.java | 42 Camera.Size paramPreviewSize = params.getPreviewSize(); in AndroidCameraSettings() 43 setPreviewSize(new Size(paramPreviewSize.width, paramPreviewSize.height)); in AndroidCameraSettings() 70 Camera.Size paramPictureSize = params.getPictureSize(); in AndroidCameraSettings() 71 setPhotoSize(new Size(paramPictureSize.width, paramPictureSize.height)); in AndroidCameraSettings()
|
/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/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/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/params/ |
D | StreamConfigurationMap.java | 28 import android.util.Size; 123 Size size = config.getSize(); in StreamConfigurationMap() 184 public Size[] getInputSizes(final int format) { in getInputSizes() 341 public <T> Size[] getOutputSizes(Class<T> klass) { in getOutputSizes() 344 return new Size[0]; in getOutputSizes() 369 public Size[] getOutputSizes(int format) { in getOutputSizes() 401 public Size[] getHighSpeedVideoSizes() { in getHighSpeedVideoSizes() 402 Set<Size> keySet = mHighSpeedVideoSizeMap.keySet(); in getHighSpeedVideoSizes() 403 return keySet.toArray(new Size[keySet.size()]); in getHighSpeedVideoSizes() 429 public Range<Integer>[] getHighSpeedVideoFpsRangesFor(Size size) { in getHighSpeedVideoFpsRangesFor() [all …]
|
D | HighSpeedVideoConfiguration.java | 24 import android.util.Size; 59 mSize = new Size(mWidth, mHeight); in HighSpeedVideoConfiguration() 104 public Size getSize() { in getSize() 155 private final Size mSize;
|
/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/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/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/legacy/ |
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()
|
D | ParameterUtils.java | 32 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 | RequestThreadManager.java | 36 import android.util.Size; 99 private Size mIntermediateBufferSize; 395 List<Size> outputSizes = new ArrayList<>(outputs.size()); in configureOutputs() 398 Size size = LegacyCameraDevice.getSurfaceSize(s); in configureOutputs() 405 Size largestOutput = SizeAreaComparator.findLargestByArea(outputSizes); in configureOutputs() 408 Size largestJpegDimen = ParameterUtils.getLargestSupportedJpegSizeByArea(mParams); in configureOutputs() 410 List<Size> supportedPreviewSizes = ParameterUtils.convertSizeList( in configureOutputs() 417 Size bestPreviewDimen = SizeAreaComparator.findLargestByArea(supportedPreviewSizes); in configureOutputs() 418 for (Size s : supportedPreviewSizes) { in configureOutputs() 442 Size smallestSupportedJpegSize = calculatePictureSize(mCallbackOutputs, mParams); in configureOutputs() [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/include/camera/ |
D | CameraParameters.h | 25 struct Size { struct 29 Size() { in Size() argument 34 Size(int w, int h) { in Size() function 61 void getSupportedPreviewSizes(Vector<Size> &sizes) const; 81 void getSupportedVideoSizes(Vector<Size> &sizes) const; 98 void getSupportedPictureSizes(Vector<Size> &sizes) const;
|
/frameworks/compile/libbcc/lib/ExecutionEngine/ |
D | GDBJITRegistrar.cpp | 95 void registerObject(const ObjectBuffer* Object, std::size_t Size); 155 void GDBJITRegistrar::registerObject(const ObjectBuffer* Object, std::size_t Size) { in registerObject() argument 168 JITCodeEntry->symfile_size = Size; in registerObject() 170 ObjectBufferMap[Object] = std::make_pair(Size, JITCodeEntry); in registerObject() 233 void registerObjectWithGDB(const ObjectBuffer* Object, std::size_t Size) { in registerObjectWithGDB() argument 236 Registrar->registerObject(Object, Size); in registerObjectWithGDB()
|
/frameworks/av/media/libeffects/lvm/lib/Common/lib/ |
D | InstAlloc.h | 63 void* InstAlloc_AddMember( INST_ALLOC *pms, LVM_UINT32 Size ); 76 LVM_UINT32 Size[], 80 LVM_UINT32 Size[],
|
/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/base/media/java/android/media/ |
D | Utils.java | 23 import android.util.Size; 201 static Size parseSize(Object o, Size fallback) { 203 return Size.parseSize((String) o); 289 static Pair<Size, Size> parseSizeRange(Object o) { 295 Size.parseSize(s.substring(0, ix)), 296 Size.parseSize(s.substring(ix + 1))); 298 Size value = Size.parseSize(s);
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | CameraCharacteristics.java | 705 public static final Key<android.util.Size[]> JPEG_AVAILABLE_THUMBNAIL_SIZES = 706 … new Key<android.util.Size[]>("android.jpeg.availableThumbnailSizes", android.util.Size[].class); 841 public static final Key<android.util.Size> LENS_INFO_SHADING_MAP_SIZE = 842 new Key<android.util.Size>("android.lens.info.shadingMapSize", android.util.Size.class); 1274 public static final Key<android.util.Size[]> SCALER_AVAILABLE_JPEG_SIZES = 1275 … new Key<android.util.Size[]>("android.scaler.availableJpegSizes", android.util.Size[].class); 1335 public static final Key<android.util.Size[]> SCALER_AVAILABLE_PROCESSED_SIZES = 1336 … new Key<android.util.Size[]>("android.scaler.availableProcessedSizes", android.util.Size[].class); 1852 public static final Key<android.util.Size> SENSOR_INFO_PIXEL_ARRAY_SIZE = 1853 … new Key<android.util.Size>("android.sensor.info.pixelArraySize", android.util.Size.class);
|
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
D | CameraPreviewActivity.java | 76 private List<Camera.Size> mPreviewSizes; 77 private Camera.Size mNextPreviewSize; 78 private Camera.Size mPreviewSize; 201 List<Camera.Size> unsortedSizes = p.getSupportedPreviewSizes(); in setUpCamera() 203 class SizeCompare implements Comparator<Camera.Size> { in setUpCamera() 204 public int compare(Camera.Size lhs, Camera.Size rhs) { in setUpCamera() 214 TreeSet<Camera.Size> sortedResolutions = new TreeSet<Camera.Size>(s); in setUpCamera() 217 mPreviewSizes = new ArrayList<Camera.Size>(sortedResolutions); in setUpCamera()
|