Searched defs:sizes (Results 1 - 18 of 18) sorted by relevance

/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DSizeAreaComparator.java62 * @param sizes a non-{@code null} list of non-{@code null} sizes
65 * @throws NullPointerException if {@code sizes} or any elements in it were {@code null}
67 public static Camera.Size findLargestByArea(List<Camera.Size> sizes) { argument
68 checkNotNull(sizes, "sizes must not be null");
70 return Collections.max(sizes, new SizeAreaComparator());
H A DLegacyMetadataMapper.java260 * Implementation-defined (preview, recording, etc) -> use camera1 preview sizes
261 * YUV_420_888 cpu callbacks -> use camera1 preview sizes
262 * Other preview callbacks (CPU) -> use camera1 preview sizes
263 * JPEG still capture -> use camera1 still capture sizes
277 * - Work-around the HAL limitations by removing all of the largest preview sizes
294 // Now remove preview sizes from the end (largest->smallest) until aspect ratio matches
730 Size[] sizes = convertSizeListToArray(thumbnailSizes);
731 Arrays.sort(sizes, new android.hardware.camera2.utils.SizeAreaComparator());
732 m.set(JPEG_AVAILABLE_THUMBNAIL_SIZES, sizes);
1022 ArrayList<StreamConfiguration> configs, int format, List<Camera.Size> sizes) {
1021 appendStreamConfig( ArrayList<StreamConfiguration> configs, int format, List<Camera.Size> sizes) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DSizeAreaComparator.java61 * @param sizes a non-{@code null} list of non-{@code null} sizes
64 * @throws NullPointerException if {@code sizes} or any elements in it were {@code null}
66 public static Size findLargestByArea(List<Size> sizes) { argument
67 checkNotNull(sizes, "sizes must not be null");
69 return Collections.max(sizes, new SizeAreaComparator());
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DSize.java64 * @param sizes List of this class to encode.
67 public static String listToString(List<Size> sizes) { argument
69 for (Size s : sizes) {
/frameworks/base/core/tests/coretests/src/android/text/
H A DDynamicLayoutBlocksTest.java69 private void assertState(int[] sizes, int[] indices) { argument
72 assertEquals(sizes.length, dl.getNumberOfBlocks());
75 int[] ends = new int[sizes.length];
77 ends[i] = i == 0 ? (sizes[0] == 0 ? 0 : sizes[0] - 1) : ends[i - 1] + sizes[i];
86 private void assertState(int[] sizes) { argument
87 int[] ids = new int[sizes.length];
88 for (int i = 0; i < sizes.length; i++) {
91 assertState(sizes, id
[all...]
/frameworks/rs/
H A DrsClosure.cpp15 const int* sizes, size_t sizes_length,
26 sizes, (const Closure**)depClosures,
36 const int* sizes, const size_t sizes_length) {
41 sizes);
64 const int* sizes,
82 mGlobals[fieldIDs[i]] = make_pair(values[i], sizes[i]);
115 const int64_t* values, const int* sizes) :
122 mGlobals[fieldIDs[i]] = make_pair(values[i], sizes[i]);
11 rsi_ClosureCreate(Context* context, RsScriptKernelID kernelID, RsAllocation returnValue, RsScriptFieldID* fieldIDs, size_t fieldIDs_length, const int64_t* values, size_t values_length, const int* sizes, size_t sizes_length, RsClosure* depClosures, size_t depClosures_length, RsScriptFieldID* depFieldIDs, size_t depFieldIDs_length) argument
32 rsi_InvokeClosureCreate(Context* context, RsScriptInvokeID invokeID, const void* params, const size_t paramLength, const RsScriptFieldID* fieldIDs, const size_t fieldIDs_length, const int64_t* values, const size_t values_length, const int* sizes, const size_t sizes_length) argument
58 Closure(Context* context, const ScriptKernelID* kernelID, Allocation* returnValue, const int numValues, const ScriptFieldID** fieldIDs, const int64_t* values, const int* sizes, const Closure** depClosures, const ScriptFieldID** depFieldIDs) argument
112 Closure(Context* context, const ScriptInvokeID* invokeID, const void* params, const size_t paramLength, const size_t numValues, const ScriptFieldID** fieldIDs, const int64_t* values, const int* sizes) argument
/frameworks/av/services/camera/libcameraservice/
H A DCameraFlashlight.cpp445 // if stream configuration is not found, try available processed sizes.
793 Vector<Size> sizes; local
795 mParameters.getSupportedPreviewSizes(sizes);
796 for (size_t i = 0; i < sizes.size(); i++) {
797 Size s = sizes[i];
H A DCameraService.cpp518 Vector<Size> sizes; local
522 shimParams.getSupportedPreviewSizes(/*out*/sizes);
533 size_t streamConfigSize = (sizes.size() * formats.size() + jpegSizes.size()) * INTS_PER_CONFIG;
539 for (size_t j = 0; j < sizes.size(); ++j) {
541 streamConfigs.add(sizes[j].width);
542 streamConfigs.add(sizes[j].height);
/frameworks/av/media/libstagefright/webm/
H A DWebmWriter.cpp498 uint64_t sizes[nElems]; local
507 sizes[i] = e->mSize;
514 mInfoSize = sizes[3];
/frameworks/base/rs/java/android/renderscript/
H A DScriptGroup.java128 int[] sizes = new int[numValues];
136 values, sizes, depClosures, depFieldIDs);
143 values, sizes, depClosures, depFieldIDs);
148 fieldIDs, values, sizes, depClosures, depFieldIDs);
168 int[] sizes = new int[numValues];
178 sizes, depClosures, depFieldIDs);
183 values, sizes);
209 long[] values, int[] sizes,
232 sizes[index] = 0;
236 sizes[inde
207 retrieveValueAndDependenceInfo(RenderScript rs, int index, Script.FieldID fid, Object obj, long[] values, int[] sizes, long[] depClosures, long[] depFieldIDs) argument
[all...]
H A DRenderScript.java324 long[] fieldIDs, long[] values, int[] sizes, long[] depClosures,
327 long[] fieldIDs, long[] values, int[] sizes, long[] depClosures,
331 sizes, depClosures, depFieldIDs);
339 long[] fieldIDs, long[] values, int[] sizes);
341 long[] fieldIDs, long[] values, int[] sizes) {
344 values, sizes);
323 rsnClosureCreate(long con, long kernelID, long returnValue, long[] fieldIDs, long[] values, int[] sizes, long[] depClosures, long[] depFieldIDs) argument
326 nClosureCreate(long kernelID, long returnValue, long[] fieldIDs, long[] values, int[] sizes, long[] depClosures, long[] depFieldIDs) argument
338 rsnInvokeClosureCreate(long con, long invokeID, byte[] params, long[] fieldIDs, long[] values, int[] sizes) argument
340 nInvokeClosureCreate(long invokeID, byte[] params, long[] fieldIDs, long[] values, int[] sizes) argument
/frameworks/av/media/libstagefright/
H A DCameraSource.cpp248 * of the supported sizes.
251 * @param suppportedSizes the vector of sizes that we check against
278 * Query the camera to retrieve the supported video frame sizes
284 * @param sizes returns the vector of Size objects for the
285 * supported video frame sizes advertised by the camera.
290 Vector<Size>& sizes) {
293 params.getSupportedVideoSizes(sizes);
294 if (sizes.size() == 0) {
296 params.getSupportedPreviewSizes(sizes);
336 Vector<Size> sizes; local
287 getSupportedVideoSizes( const CameraParameters& params, bool *isSetVideoSizeSupported, Vector<Size>& sizes) argument
418 Vector<Size> sizes; local
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScriptGroup.java141 int[] sizes = new int[numValues];
149 values, sizes, depClosures, depFieldIDs);
156 values, sizes, depClosures, depFieldIDs);
161 fieldIDs, values, sizes, depClosures, depFieldIDs);
184 int[] sizes = new int[numValues];
194 sizes, depClosures, depFieldIDs);
199 values, sizes);
206 long[] values, int[] sizes,
229 sizes[index] = 0;
233 sizes[inde
204 retrieveValueAndDependenceInfo(RenderScript rs, int index, Script.FieldID fid, Object obj, long[] values, int[] sizes, long[] depClosures, long[] depFieldIDs) argument
[all...]
H A DRenderScript.java858 long[] fieldIDs, long[] values, int[] sizes, long[] depClosures,
861 long[] fieldIDs, long[] values, int[] sizes, long[] depClosures,
865 sizes, depClosures, depFieldIDs);
873 long[] fieldIDs, long[] values, int[] sizes);
875 long[] fieldIDs, long[] values, int[] sizes) {
878 values, sizes);
857 rsnClosureCreate(long con, long kernelID, long returnValue, long[] fieldIDs, long[] values, int[] sizes, long[] depClosures, long[] depFieldIDs) argument
860 nClosureCreate(long kernelID, long returnValue, long[] fieldIDs, long[] values, int[] sizes, long[] depClosures, long[] depFieldIDs) argument
872 rsnInvokeClosureCreate(long con, long invokeID, byte[] params, long[] fieldIDs, long[] values, int[] sizes) argument
874 nInvokeClosureCreate(long invokeID, byte[] params, long[] fieldIDs, long[] values, int[] sizes) argument
/frameworks/av/camera/
H A DCameraParameters.cpp322 static void parseSizesList(const char *sizesStr, Vector<Size> &sizes) argument
335 ALOGE("Picture sizes string \"%s\" contains invalid character.", sizesStr);
338 sizes.push(Size(width, height));
371 void CameraParameters::getSupportedPreviewSizes(Vector<Size> &sizes) const
374 parseSizesList(previewSizesStr, sizes);
392 void CameraParameters::getSupportedVideoSizes(Vector<Size> &sizes) const
395 parseSizesList(videoSizesStr, sizes);
442 void CameraParameters::getSupportedPictureSizes(Vector<Size> &sizes) const
445 parseSizesList(pictureSizesStr, sizes);
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp95 // on the list of both preview and recording sizes
133 ALOGV("Supported preview sizes are: %s", supportedPreviewSizes.string());
144 ALOGV("Supported video sizes are: %s", supportedVideoSizes.string());
1191 // such as supported preview sizes, etc. Should probably produce an error if
2707 status_t Parameters::getFilteredSizes(Size limit, Vector<Size> *sizes) { argument
2712 if (sizes == NULL) {
2716 sizes->clear();
2726 sizes->push(sz);
2739 // Need skip the preview sizes that are too large.
2742 sizes
2780 getMaxSize(const Vector<Parameters::Size> &sizes) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraTestUtils.java950 * Get the available output sizes for the user-defined {@code format}.
975 if (VERBOSE) Log.v(TAG, "Supported sizes are: " + Arrays.deepToString(availableSizes));
980 * Get the available output sizes for the given class.
1004 if (VERBOSE) Log.v(TAG, "Supported sizes are: " + Arrays.deepToString(availableSizes));
1011 * <p>If two the areas of two sizes are same, compare the widths.</p>
1022 * Get sorted size list in descending order. Remove the sizes larger than
1031 "Available sizes for SurfaceHolder class should not be empty");
1033 Log.v(TAG, "Supported sizes are: " + Arrays.deepToString(rawSizes));
1040 List<Size> sizes = new ArrayList<Size>();
1043 sizes
1193 getMaxSize(Size... sizes) argument
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DCameraStreamer.java1325 private int[] findClosestSizeFromList(int width, int height, List<Camera.Size> sizes) { argument
1328 int smallestWidth = sizes.get(0).width;
1329 int smallestHeight = sizes.get(0).height;
1330 for (Camera.Size size : sizes) {

Completed in 571 milliseconds