Home
last modified time | relevance | path

Searched refs:ImageFormat (Results 1 – 25 of 117) sorted by relevance

12345

/frameworks/base/media/java/android/media/
DImageUtils.java19 import android.graphics.ImageFormat;
45 case ImageFormat.YV12: in getNumPlanesForFormat()
46 case ImageFormat.YUV_420_888: in getNumPlanesForFormat()
47 case ImageFormat.NV21: in getNumPlanesForFormat()
48 case ImageFormat.YCBCR_P010: in getNumPlanesForFormat()
50 case ImageFormat.NV16: in getNumPlanesForFormat()
56 case ImageFormat.JPEG: in getNumPlanesForFormat()
57 case ImageFormat.YUY2: in getNumPlanesForFormat()
58 case ImageFormat.Y8: in getNumPlanesForFormat()
59 case ImageFormat.Y16: in getNumPlanesForFormat()
[all …]
DImageReader.java23 import android.graphics.ImageFormat;
24 import android.graphics.ImageFormat.Format;
141 format == ImageFormat.PRIVATE ? 0 : HardwareBuffer.USAGE_CPU_READ_OFTEN, in newInstance()
273 format == ImageFormat.PRIVATE ? 0 : HardwareBuffer.USAGE_CPU_READ_OFTEN, in newInstance()
299 if (format == ImageFormat.NV21) { in ImageReader()
916 mFormat = (readerFormat == ImageFormat.PRIVATE) ? readerFormat : in getFormat()
926 case ImageFormat.JPEG: in getWidth()
927 case ImageFormat.DEPTH_POINT_CLOUD: in getWidth()
928 case ImageFormat.RAW_PRIVATE: in getWidth()
929 case ImageFormat.DEPTH_JPEG: in getWidth()
[all …]
DImageWriter.java22 import android.graphics.ImageFormat;
23 import android.graphics.ImageFormat.Format;
134 return new ImageWriter(surface, maxImages, ImageFormat.UNKNOWN, -1 /*width*/, in newInstance()
183 if (!ImageFormat.isPublicFormat(format) && !PixelFormat.isPublicFormat(format)) { in newInstance()
232 if (!ImageFormat.isPublicFormat(format) && !PixelFormat.isPublicFormat(format)) { in newInstance()
256 if (format == ImageFormat.UNKNOWN) { in ImageWriter()
266 format = ImageFormat.DEPTH_POINT_CLOUD; in ImageWriter()
269 format = ImageFormat.DEPTH_JPEG; in ImageWriter()
272 format = ImageFormat.HEIC; in ImageWriter()
275 format = ImageFormat.JPEG; in ImageWriter()
/frameworks/base/core/java/android/hardware/camera2/params/
DMandatoryStreamCombination.java25 import android.graphics.ImageFormat;
26 import android.graphics.ImageFormat.Format;
393 new StreamTemplate(ImageFormat.PRIVATE, SizeThreshold.MAXIMUM) },
396 new StreamTemplate(ImageFormat.JPEG, SizeThreshold.MAXIMUM) },
399 new StreamTemplate(ImageFormat.YUV_420_888, SizeThreshold.MAXIMUM) },
402 new StreamTemplate(ImageFormat.PRIVATE, SizeThreshold.PREVIEW),
403 new StreamTemplate(ImageFormat.JPEG, SizeThreshold.MAXIMUM) },
406 new StreamTemplate(ImageFormat.YUV_420_888, SizeThreshold.PREVIEW),
407 new StreamTemplate(ImageFormat.JPEG, SizeThreshold.MAXIMUM) },
410 new StreamTemplate(ImageFormat.PRIVATE, SizeThreshold.PREVIEW),
[all …]
DStreamConfigurationMap.java21 import android.graphics.ImageFormat;
380 outputsWithHeic[outputs.length] = ImageFormat.HEIC; in getValidOutputFormatsForInput()
1202 case ImageFormat.JPEG: in checkArgumentFormatInternal()
1203 case ImageFormat.HEIC: in checkArgumentFormatInternal()
1232 if (!ImageFormat.isPublicFormat(format) && !PixelFormat.isPublicFormat(format)) { in checkArgumentFormat()
1274 return ImageFormat.JPEG; in imageFormatToPublic()
1275 case ImageFormat.JPEG: in imageFormatToPublic()
1318 return ImageFormat.DEPTH_POINT_CLOUD; in depthFormatToPublic()
1320 return ImageFormat.DEPTH16; in depthFormatToPublic()
1322 return ImageFormat.RAW_DEPTH; in depthFormatToPublic()
[all …]
/frameworks/base/graphics/java/android/graphics/
DYuvImage.java80 if (format != ImageFormat.NV21 && in YuvImage()
81 format != ImageFormat.YUY2) { in YuvImage()
184 if (mFormat == ImageFormat.NV21) { in calculateOffsets()
191 if (mFormat == ImageFormat.YUY2) { in calculateOffsets()
201 if (format == ImageFormat.NV21) { in calculateStrides()
206 if (format == ImageFormat.YUY2) { in calculateStrides()
217 if (mFormat == ImageFormat.NV21) { in adjustRectangle()
227 if (mFormat == ImageFormat.YUY2) { in adjustRectangle()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
DGLTextureTarget.java26 import android.filterfw.format.ImageFormat;
42 addMaskedInputPort("frame", ImageFormat.create(ImageFormat.COLORSPACE_RGBA)); in setupPorts()
50 FrameFormat format = ImageFormat.create(input.getFormat().getWidth(), in process()
52 ImageFormat.COLORSPACE_RGBA, in process()
DGLTextureSource.java26 import android.filterfw.format.ImageFormat;
61 addOutputPort("frame", ImageFormat.create(ImageFormat.COLORSPACE_RGBA, in setupPorts()
78 FrameFormat outputFormat = ImageFormat.create(mWidth, mHeight, in process()
79 ImageFormat.COLORSPACE_RGBA, in process()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DBitmapSource.java25 import android.filterfw.format.ImageFormat;
56 FrameFormat outputFormat = ImageFormat.create(ImageFormat.COLORSPACE_RGBA, in setupPorts()
66 FrameFormat outputFormat = ImageFormat.create(mBitmap.getWidth(), in loadImage()
68 ImageFormat.COLORSPACE_RGBA, in loadImage()
DCropRectFilter.java26 import android.filterfw.format.ImageFormat;
61 addMaskedInputPort("image", ImageFormat.create(ImageFormat.COLORSPACE_RGBA)); in setupPorts()
94 FrameFormat outputFormat = ImageFormat.create(mOutputWidth, mOutputHeight, in process()
95 ImageFormat.COLORSPACE_RGBA, in process()
DAutoFixFilter.java26 import android.filterfw.format.ImageFormat;
164 addMaskedInputPort("image", ImageFormat.create(ImageFormat.COLORSPACE_RGBA)); in setupPorts()
209 FrameFormat densityFormat = ImageFormat.create(densityDim, 1, in prepare()
210 ImageFormat.COLORSPACE_RGBA, in prepare()
297 FrameFormat shaderHistFormat = ImageFormat.create(histDims, 1, in createHistogramFrame()
298 ImageFormat.COLORSPACE_RGBA, in createHistogramFrame()
DBitmapOverlayFilter.java26 import android.filterfw.format.ImageFormat;
62 addMaskedInputPort("image", ImageFormat.create(ImageFormat.COLORSPACE_RGBA)); in setupPorts()
127 FrameFormat format = ImageFormat.create(mBitmap.getWidth(), in createBitmapFrame()
129 ImageFormat.COLORSPACE_RGBA, in createBitmapFrame()
DToPackedGrayFilter.java28 import android.filterfw.format.ImageFormat;
65 addMaskedInputPort("image", ImageFormat.create(ImageFormat.COLORSPACE_RGBA, in setupPorts()
105 return ImageFormat.create(ow, oh, in convertInputFormat()
106 ImageFormat.COLORSPACE_GRAY, in convertInputFormat()
DRotateFilter.java27 import android.filterfw.format.ImageFormat;
57 addMaskedInputPort("image", ImageFormat.create(ImageFormat.COLORSPACE_RGBA)); in setupPorts()
105 FrameFormat outputFormat = ImageFormat.create(mOutputWidth, mOutputHeight, in process()
106 ImageFormat.COLORSPACE_RGBA, in process()
DGrainFilter.java26 import android.filterfw.format.ImageFormat;
98 addMaskedInputPort("image", ImageFormat.create(ImageFormat.COLORSPACE_RGBA)); in setupPorts()
157 FrameFormat noiseFormat = ImageFormat.create(inputFormat.getWidth() / 2, in process()
159 ImageFormat.COLORSPACE_RGBA, in process()
DImageEncoder.java25 import android.filterfw.format.ImageFormat;
48 addMaskedInputPort("image", ImageFormat.create(ImageFormat.COLORSPACE_RGBA, in setupPorts()
DRedEyeFilter.java26 import android.filterfw.format.ImageFormat;
86 addMaskedInputPort("image", ImageFormat.create(ImageFormat.COLORSPACE_RGBA)); in setupPorts()
167 FrameFormat format = ImageFormat.create(bitmapWidth, bitmapHeight, in createRedEyeFrame()
168 ImageFormat.COLORSPACE_RGBA, in createRedEyeFrame()
DToGrayFilter.java26 import android.filterfw.format.ImageFormat;
57 addMaskedInputPort("image", ImageFormat.create(ImageFormat.COLORSPACE_RGBA, in setupPorts()
/frameworks/base/core/java/android/hardware/camera2/
DCameraExtensionCharacteristics.java24 import android.graphics.ImageFormat;
136 public static final int NON_PROCESSING_INPUT_FORMAT = ImageFormat.PRIVATE;
143 public static final int PROCESSING_INPUT_FORMAT = ImageFormat.YUV_420_888;
200 ArrayList<Size> extensionSizes = getSupportedSizes(sizesList, ImageFormat.YUV_420_888); in generateJpegSupportedSizes()
202 streamMap.getOutputSizes(ImageFormat.YUV_420_888))) : new HashSet<>(extensionSizes); in generateJpegSupportedSizes()
204 ImageFormat.JPEG))); in generateJpegSupportedSizes()
608 ImageFormat.PRIVATE, streamMap); in getExtensionSupportedSizes()
614 ImageFormat.PRIVATE, streamMap); in getExtensionSupportedSizes()
662 case ImageFormat.YUV_420_888: in getExtensionSupportedSizes()
663 case ImageFormat.JPEG: in getExtensionSupportedSizes()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DCameraMetadataTest.java25 import android.graphics.ImageFormat;
859 new StreamConfiguration(ImageFormat.YUV_420_888, 640, 480, /*input*/false), in testReadWriteStreamConfiguration()
860 new StreamConfiguration(ImageFormat.RGB_565, 320, 240, /*input*/true), in testReadWriteStreamConfiguration()
863 ImageFormat.YUV_420_888, 640, 480, /*input*/0, in testReadWriteStreamConfiguration()
864 ImageFormat.RGB_565, 320, 240, /*input*/1) in testReadWriteStreamConfiguration()
877 ImageFormat.YUV_420_888, 640, 480, /*duration*/123L), in testReadWriteStreamConfigurationDuration()
879 ImageFormat.RGB_565, 320, 240, /*duration*/345L), in testReadWriteStreamConfigurationDuration()
882 ImageFormat.YUV_420_888 & MASK_UNSIGNED_INT, 640L, 480L, /*duration*/123L, in testReadWriteStreamConfigurationDuration()
883 ImageFormat.RGB_565 & MASK_UNSIGNED_INT, 320L, 240L, /*duration*/345L) in testReadWriteStreamConfigurationDuration()
892 final int RAW16 = ImageFormat.RAW_SENSOR; in testReadWriteReprocessFormatsMap()
[all …]
/frameworks/base/media/mca/effect/java/android/media/effect/
DFilterEffect.java25 import android.filterfw.format.ImageFormat;
87 FrameFormat format = ImageFormat.create(width, height, in frameFromTexture()
88 ImageFormat.COLORSPACE_RGBA, in frameFromTexture()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java21 import android.graphics.ImageFormat;
810 if ((format != ImageFormat.YUV_420_888) && in checkYuvFormat()
811 (format != ImageFormat.NV21) && in checkYuvFormat()
812 (format != ImageFormat.YV12)) { in checkYuvFormat()
822 if (format == ImageFormat.NV21 || format == ImageFormat.YV12) { in checkImage()
823 format = ImageFormat.YUV_420_888; in checkImage()
861 if (format == ImageFormat.JPEG || format == ImageFormat.DEPTH_POINT_CLOUD || in getDataFromImage()
862 format == ImageFormat.DEPTH_JPEG || format == ImageFormat.RAW_PRIVATE) { in getDataFromImage()
872 data = new byte[width * height * ImageFormat.getBitsPerPixel(format) / 8]; in getDataFromImage()
898 int bytesPerPixel = ImageFormat.getBitsPerPixel(format) / 8; in getDataFromImage()
[all …]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/
DSurfaceTargetFilter.java30 import android.filterfw.format.ImageFormat;
96 addMaskedInputPort("frame", ImageFormat.create(ImageFormat.COLORSPACE_RGBA)); in setupPorts()
125 MutableFrameFormat screenFormat = ImageFormat.create(mScreenWidth, in prepare()
127 ImageFormat.COLORSPACE_RGBA, in prepare()
DSurfaceRenderFilter.java31 import android.filterfw.format.ImageFormat;
90 addMaskedInputPort("frame", ImageFormat.create(ImageFormat.COLORSPACE_RGBA)); in setupPorts()
120 MutableFrameFormat screenFormat = ImageFormat.create(mSurfaceView.getWidth(), in prepare()
122 ImageFormat.COLORSPACE_RGBA, in prepare()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
DSurfaceTextureSource.java28 import android.filterfw.format.ImageFormat;
143 addOutputPort("video", ImageFormat.create(ImageFormat.COLORSPACE_RGBA, in setupPorts()
148 mOutputFormat = ImageFormat.create(mWidth, mHeight, in createFormats()
149 ImageFormat.COLORSPACE_RGBA, in createFormats()

12345