Home
last modified time | relevance | path

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

1234

/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()
49 case ImageFormat.NV16: in getNumPlanesForFormat()
55 case ImageFormat.JPEG: in getNumPlanesForFormat()
56 case ImageFormat.YUY2: in getNumPlanesForFormat()
57 case ImageFormat.Y8: in getNumPlanesForFormat()
58 case ImageFormat.Y16: in getNumPlanesForFormat()
59 case ImageFormat.RAW_SENSOR: in getNumPlanesForFormat()
[all …]
DImageReader.java21 import android.graphics.ImageFormat;
22 import android.graphics.ImageFormat.Format;
135 format == ImageFormat.PRIVATE ? 0 : HardwareBuffer.USAGE_CPU_READ_OFTEN); in newInstance()
255 if (format == ImageFormat.NV21) { in ImageReader()
822 mFormat = (readerFormat == ImageFormat.PRIVATE) ? readerFormat : in getFormat()
832 case ImageFormat.JPEG: in getWidth()
833 case ImageFormat.DEPTH_POINT_CLOUD: in getWidth()
834 case ImageFormat.RAW_PRIVATE: in getWidth()
835 case ImageFormat.DEPTH_JPEG: in getWidth()
836 case ImageFormat.HEIC: in getWidth()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DMandatoryStreamCombination.java26 import android.graphics.ImageFormat;
27 import android.graphics.ImageFormat.Format;
313 new StreamTemplate(ImageFormat.PRIVATE, SizeThreshold.MAXIMUM) },
316 new StreamTemplate(ImageFormat.JPEG, SizeThreshold.MAXIMUM) },
319 new StreamTemplate(ImageFormat.YUV_420_888, SizeThreshold.MAXIMUM) },
322 new StreamTemplate(ImageFormat.PRIVATE, SizeThreshold.PREVIEW),
323 new StreamTemplate(ImageFormat.JPEG, SizeThreshold.MAXIMUM) },
326 new StreamTemplate(ImageFormat.YUV_420_888, SizeThreshold.PREVIEW),
327 new StreamTemplate(ImageFormat.JPEG, SizeThreshold.MAXIMUM) },
330 new StreamTemplate(ImageFormat.PRIVATE, SizeThreshold.PREVIEW),
[all …]
DStreamConfigurationMap.java22 import android.graphics.ImageFormat;
380 outputsWithHeic[outputs.length] = ImageFormat.HEIC; in getValidOutputFormatsForInput()
1204 case ImageFormat.JPEG: in checkArgumentFormatInternal()
1205 case ImageFormat.HEIC: in checkArgumentFormatInternal()
1234 if (!ImageFormat.isPublicFormat(format) && !PixelFormat.isPublicFormat(format)) { in checkArgumentFormat()
1276 return ImageFormat.JPEG; in imageFormatToPublic()
1277 case ImageFormat.JPEG: in imageFormatToPublic()
1320 return ImageFormat.DEPTH_POINT_CLOUD; in depthFormatToPublic()
1322 return ImageFormat.DEPTH16; in depthFormatToPublic()
1324 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()
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()
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()
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()
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()
DImageEncoder.java25 import android.filterfw.format.ImageFormat;
48 addMaskedInputPort("image", ImageFormat.create(ImageFormat.COLORSPACE_RGBA, in setupPorts()
DToGrayFilter.java26 import android.filterfw.format.ImageFormat;
57 addMaskedInputPort("image", ImageFormat.create(ImageFormat.COLORSPACE_RGBA, in setupPorts()
DCrossProcessFilter.java26 import android.filterfw.format.ImageFormat;
77 addMaskedInputPort("image", ImageFormat.create(ImageFormat.COLORSPACE_RGBA)); in setupPorts()
DNegativeFilter.java26 import android.filterfw.format.ImageFormat;
52 addMaskedInputPort("image", ImageFormat.create(ImageFormat.COLORSPACE_RGBA)); in setupPorts()
/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/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/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()
/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/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()

1234