Search in sources :

Example 1 with LensShadingMap

use of android.hardware.camera2.params.LensShadingMap in project platform_frameworks_base by android.

the class CameraMetadataNative method getLensShadingMap.

private LensShadingMap getLensShadingMap() {
    float[] lsmArray = getBase(CaptureResult.STATISTICS_LENS_SHADING_MAP);
    Size s = get(CameraCharacteristics.LENS_INFO_SHADING_MAP_SIZE);
    // Do not warn if lsmArray is null while s is not. This is valid.
    if (lsmArray == null) {
        return null;
    }
    if (s == null) {
        Log.w(TAG, "getLensShadingMap - Lens shading map size was null.");
        return null;
    }
    LensShadingMap map = new LensShadingMap(lsmArray, s.getHeight(), s.getWidth());
    return map;
}
Also used : LensShadingMap(android.hardware.camera2.params.LensShadingMap) MarshalQueryableSize(android.hardware.camera2.marshal.impl.MarshalQueryableSize) Size(android.util.Size)

Example 2 with LensShadingMap

use of android.hardware.camera2.params.LensShadingMap in project android_frameworks_base by ResurrectionRemix.

the class CameraMetadataNative method getLensShadingMap.

private LensShadingMap getLensShadingMap() {
    float[] lsmArray = getBase(CaptureResult.STATISTICS_LENS_SHADING_MAP);
    Size s = get(CameraCharacteristics.LENS_INFO_SHADING_MAP_SIZE);
    // Do not warn if lsmArray is null while s is not. This is valid.
    if (lsmArray == null) {
        return null;
    }
    if (s == null) {
        Log.w(TAG, "getLensShadingMap - Lens shading map size was null.");
        return null;
    }
    LensShadingMap map = new LensShadingMap(lsmArray, s.getHeight(), s.getWidth());
    return map;
}
Also used : LensShadingMap(android.hardware.camera2.params.LensShadingMap) MarshalQueryableSize(android.hardware.camera2.marshal.impl.MarshalQueryableSize) Size(android.util.Size)

Example 3 with LensShadingMap

use of android.hardware.camera2.params.LensShadingMap in project android_frameworks_base by DirtyUnicorns.

the class CameraMetadataNative method getLensShadingMap.

private LensShadingMap getLensShadingMap() {
    float[] lsmArray = getBase(CaptureResult.STATISTICS_LENS_SHADING_MAP);
    Size s = get(CameraCharacteristics.LENS_INFO_SHADING_MAP_SIZE);
    // Do not warn if lsmArray is null while s is not. This is valid.
    if (lsmArray == null) {
        return null;
    }
    if (s == null) {
        Log.w(TAG, "getLensShadingMap - Lens shading map size was null.");
        return null;
    }
    LensShadingMap map = new LensShadingMap(lsmArray, s.getHeight(), s.getWidth());
    return map;
}
Also used : LensShadingMap(android.hardware.camera2.params.LensShadingMap) MarshalQueryableSize(android.hardware.camera2.marshal.impl.MarshalQueryableSize) Size(android.util.Size)

Example 4 with LensShadingMap

use of android.hardware.camera2.params.LensShadingMap in project android_frameworks_base by AOSPA.

the class CameraMetadataNative method getLensShadingMap.

private LensShadingMap getLensShadingMap() {
    float[] lsmArray = getBase(CaptureResult.STATISTICS_LENS_SHADING_MAP);
    Size s = get(CameraCharacteristics.LENS_INFO_SHADING_MAP_SIZE);
    // Do not warn if lsmArray is null while s is not. This is valid.
    if (lsmArray == null) {
        return null;
    }
    if (s == null) {
        Log.w(TAG, "getLensShadingMap - Lens shading map size was null.");
        return null;
    }
    LensShadingMap map = new LensShadingMap(lsmArray, s.getHeight(), s.getWidth());
    return map;
}
Also used : LensShadingMap(android.hardware.camera2.params.LensShadingMap) MarshalQueryableSize(android.hardware.camera2.marshal.impl.MarshalQueryableSize) Size(android.util.Size)

Example 5 with LensShadingMap

use of android.hardware.camera2.params.LensShadingMap in project android_frameworks_base by crdroidandroid.

the class CameraMetadataNative method getLensShadingMap.

private LensShadingMap getLensShadingMap() {
    float[] lsmArray = getBase(CaptureResult.STATISTICS_LENS_SHADING_MAP);
    Size s = get(CameraCharacteristics.LENS_INFO_SHADING_MAP_SIZE);
    // Do not warn if lsmArray is null while s is not. This is valid.
    if (lsmArray == null) {
        return null;
    }
    if (s == null) {
        Log.w(TAG, "getLensShadingMap - Lens shading map size was null.");
        return null;
    }
    LensShadingMap map = new LensShadingMap(lsmArray, s.getHeight(), s.getWidth());
    return map;
}
Also used : LensShadingMap(android.hardware.camera2.params.LensShadingMap) MarshalQueryableSize(android.hardware.camera2.marshal.impl.MarshalQueryableSize) Size(android.util.Size)

Aggregations

MarshalQueryableSize (android.hardware.camera2.marshal.impl.MarshalQueryableSize)5 LensShadingMap (android.hardware.camera2.params.LensShadingMap)5 Size (android.util.Size)5