Home
last modified time | relevance | path

Searched refs:dataSpace (Results 1 – 25 of 124) sorted by relevance

12345

/frameworks/av/media/libstagefright/omx/
DOmxGraphicBufferSource.cpp55 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged() argument
56 mOmxNode->dispatchDataSpaceChanged(dataSpace, aspects, pixelFormat); in dispatchDataSpaceChanged()
84 int32_t dataSpace, in configure() argument
90 return configure(omxNode, dataSpace, bufferCount, in configure()
96 int32_t dataSpace, in configure() argument
106 new OmxComponentWrapper(omxNode), dataSpace, bufferCount, in configure()
/frameworks/base/core/java/android/hardware/
DDataSpace.java701 public static @DataSpaceStandard int getStandard(@ColorDataSpace int dataSpace) { in getStandard() argument
702 @DataSpaceStandard int standard = dataSpace & STANDARD_MASK; in getStandard()
713 public static @DataSpaceTransfer int getTransfer(@ColorDataSpace int dataSpace) { in getTransfer() argument
714 @DataSpaceTransfer int transfer = dataSpace & TRANSFER_MASK; in getTransfer()
725 public static @DataSpaceRange int getRange(@ColorDataSpace int dataSpace) { in getRange() argument
726 @DataSpaceRange int range = dataSpace & RANGE_MASK; in getRange()
/frameworks/base/media/java/android/media/
DImageWriter.java254 int hardwareBufferFormat, int dataSpace, int width, int height, long usage) { in initializeImageWriter() argument
263 useSurfaceImageFormatInfo, hardwareBufferFormat, dataSpace, usage); in initializeImageWriter()
270 mDataSpace = dataSpace = SurfaceUtils.getSurfaceDataspace(surface); in initializeImageWriter()
271 imageFormat = PublicFormatUtils.getPublicFormat(hardwareBufferFormat, dataSpace); in initializeImageWriter()
317 int hardwareBufferFormat, int dataSpace, int width, int height, long usage) { in ImageWriter() argument
326 imageFormat = PublicFormatUtils.getPublicFormat(hardwareBufferFormat, dataSpace); in ImageWriter()
328 mDataSpace = dataSpace; in ImageWriter()
332 imageFormat, hardwareBufferFormat, dataSpace, width, height, usage); in ImageWriter()
995 public @NonNull Builder setDataSpace(@NamedDataSpace int dataSpace) { in setDataSpace() argument
996 mDataSpace = dataSpace; in setDataSpace()
[all …]
DImageReader.java318 long usage, int hardwareBufferFormat, int dataSpace) { in initializeImageReader() argument
335 hardwareBufferFormat, dataSpace); in initializeImageReader()
369 MultiResolutionImageReader parent, int hardwareBufferFormat, int dataSpace) { in ImageReader() argument
376 mDataSpace = dataSpace; in ImageReader()
378 mFormat = PublicFormatUtils.getPublicFormat(hardwareBufferFormat, dataSpace); in ImageReader()
381 dataSpace); in ImageReader()
1082 public @NonNull Builder setDefaultDataSpace(@NamedDataSpace int dataSpace) { in setDefaultDataSpace() argument
1083 mDataSpace = dataSpace; in setDefaultDataSpace()
1433 long consumerUsage, int hardwareBufferFormat, int dataSpace); in nativeInit() argument
DImage.java330 public void setDataSpace(@NamedDataSpace int dataSpace) { in setDataSpace() argument
332 mDataSpace = dataSpace; in setDataSpace()
/frameworks/av/services/camera/libcameraservice/utils/
DSessionConfigurationUtils.cpp158 int32_t format, android_dataspace dataSpace, in roundBufferDimensionNearest() argument
171 bool isJpegRDataSpace = (dataSpace == static_cast<android_dataspace_t>( in roundBufferDimensionNearest()
175 (dataSpace == HAL_DATASPACE_DEPTH) ? info.find(depthSizesTag) : in roundBufferDimensionNearest()
176 (dataSpace == static_cast<android_dataspace>(HAL_DATASPACE_HEIF)) ? in roundBufferDimensionNearest()
226 bool is10bitCompatibleFormat(int32_t format, android_dataspace_t dataSpace) { in is10bitCompatibleFormat() argument
232 if (dataSpace == static_cast<android_dataspace_t>( in is10bitCompatibleFormat()
318 bool isColorSpaceSupported(int32_t colorSpace, int32_t format, android_dataspace dataSpace, in isColorSpaceSupported() argument
324 if (format == HAL_PIXEL_FORMAT_BLOB && dataSpace == HAL_DATASPACE_V0_JFIF) { in isColorSpaceSupported()
327 && dataSpace == static_cast<android_dataspace>(HAL_DATASPACE_HEIF)) { in isColorSpaceSupported()
330 && dataSpace == static_cast<android_dataspace>(HAL_DATASPACE_DYNAMIC_DEPTH)) { in isColorSpaceSupported()
[all …]
DSessionConfigurationUtils.h101 android_dataspace dataSpace, const CameraMetadata& info, bool maxResolution,
118 bool is10bitCompatibleFormat(int32_t format, android_dataspace_t dataSpace);
128 bool isColorSpaceSupported(int32_t colorSpace, int32_t format, android_dataspace dataSpace,
131 bool dataSpaceFromColorSpace(android_dataspace *dataSpace, int32_t colorSpace);
/frameworks/av/media/module/aidlpersistentsurface/
DAidlGraphicBufferSource.cpp51 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged() argument
52 mAidlNode->dispatchDataSpaceChanged(dataSpace, aspects, pixelFormat); in dispatchDataSpaceChanged()
83 int32_t dataSpace, in configure() argument
93 new AidlComponentWrapper(aidlNode), dataSpace, bufferCount, in configure()
/frameworks/av/media/libstagefright/colorconversion/
DSoftwareRenderer.cpp91 android_dataspace dataSpace; in resetFormatIfChanged() local
94 && format->findInt32("android._dataspace", (int32_t *)&dataSpace) in resetFormatIfChanged()
95 && dataSpace != mDataSpace) { in resetFormatIfChanged()
159 if (((dataSpace & HAL_DATASPACE_STANDARD_MASK) == HAL_DATASPACE_STANDARD_BT2020) in resetFormatIfChanged()
160 && ((dataSpace & HAL_DATASPACE_TRANSFER_MASK) == HAL_DATASPACE_TRANSFER_ST2084)) { in resetFormatIfChanged()
433 android_dataspace dataSpace; in render() local
434 if (format->findInt32("android._dataspace", (int32_t *)&dataSpace) && dataSpace != mDataSpace) { in render()
435 mDataSpace = dataSpace; in render()
440 dataSpace = (android_dataspace) in render()
441 ((dataSpace & ~HAL_DATASPACE_RANGE_MASK) | HAL_DATASPACE_RANGE_FULL); in render()
[all …]
/frameworks/native/libs/ui/
DPublicFormat.cpp88 PublicFormat mapHalFormatDataspaceToPublicFormat(int format, android_dataspace dataSpace) { in mapHalFormatDataspaceToPublicFormat() argument
89 Dataspace ds = static_cast<Dataspace>(dataSpace); in mapHalFormatDataspaceToPublicFormat()
152 if (dataSpace == static_cast<android_dataspace>(HAL_DATASPACE_DYNAMIC_DEPTH)) { in mapHalFormatDataspaceToPublicFormat()
154 } else if (dataSpace == static_cast<android_dataspace>(Dataspace::JPEG_R)) { in mapHalFormatDataspaceToPublicFormat()
/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp90 void setBufferDataSpace(android_dataspace dataSpace) { mDataSpace = dataSpace; } in setBufferDataSpace() argument
323 sp<GraphicBuffer> buffer, int fenceFd, int dataSpace);
378 jint hardwareBufferFormat, jint dataSpace, jlong ndkUsage) { in ImageWriter_init() argument
470 android_dataspace nativeDataspace = static_cast<android_dataspace>(dataSpace); in ImageWriter_init()
487 surfaceDataspace = dataSpace; in ImageWriter_init()
643 jlong timestampNs, jint dataSpace, jint left, jint top, jint right, in ImageWriter_queueImage() argument
677 ALOGV("dataSpace to be queued: %d", dataSpace); in ImageWriter_queueImage()
679 anw.get(), static_cast<android_dataspace>(dataSpace)); in ImageWriter_queueImage()
736 sp<Surface> surface, sp<GraphicBuffer> gb, jlong timestampNs, jint dataSpace, in attachAndQeueuGraphicBuffer() argument
765 ALOGV("dataSpace to be queued: %" PRId32, dataSpace); in attachAndQeueuGraphicBuffer()
[all …]
/frameworks/av/media/libstagefright/renderfright/
DDescription.cpp26 Description::TransferFunction Description::dataSpaceToTransferFunction(ui::Dataspace dataSpace) { in dataSpaceToTransferFunction() argument
27 ui::Dataspace transfer = static_cast<ui::Dataspace>(dataSpace & ui::Dataspace::TRANSFER_MASK); in dataSpaceToTransferFunction()
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DOmxGraphicBufferSource.h71 int32_t dataSpace,
81 int32_t dataSpace,
/frameworks/av/media/codec2/sfplugin/
DOmx2IGraphicBufferSource.cpp73 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged()
78 msg.u.event_data.data1 = dataSpace; in dispatchDataSpaceChanged()
143 const sp<IOMXNode>& omxNode, int32_t dataSpace) { in configure() argument
177 dataSpace, in configure()
DInputSurfaceWrapper.h100 inline void setDataSpace(android_dataspace dataSpace) { in setDataSpace() argument
101 mDataSpace = dataSpace; in setDataSpace()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3OutputStream.h51 android_dataspace dataSpace; member
71 dataSpace(ds), in streamId()
92 android_dataspace dataSpace, camera_stream_rotation_t rotation,
111 android_dataspace dataSpace, camera_stream_rotation_t rotation,
128 uint64_t consumerUsage, android_dataspace dataSpace,
279 android_dataspace dataSpace, camera_stream_rotation_t rotation,
/frameworks/av/services/camera/libcameraservice/common/
DCameraDeviceBase.h180 android_dataspace dataSpace, camera_stream_rotation_t rotation, int *id,
204 android_dataspace dataSpace, camera_stream_rotation_t rotation, int *id,
235 android_dataspace dataSpace; member
242 dataSpace(HAL_DATASPACE_UNKNOWN), dataSpaceOverridden(false), in StreamInfo()
264 (dataSpace == clientDataSpace)) { in matchDataSpace()
/frameworks/av/media/libmedia/omx/1.0/
DWGraphicBufferSource.cpp34 const sp<IOMXNode>& omxNode, int32_t dataSpace) { in configure() argument
38 toHardwareDataspace(dataSpace))); in configure()
/frameworks/native/libs/gui/include/gui/
DCpuConsumer.h57 android_dataspace dataSpace; member
82 dataSpace(HAL_DATASPACE_UNKNOWN), in LockedBuffer()
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2Mapper.cpp988 C2Color::matrix_t matrix, C2Color::transfer_t transfer, uint32_t *dataSpace) { in map() argument
991 *dataSpace = HAL_DATASPACE_UNKNOWN; // this is 0 in map()
994 case C2Color::RANGE_FULL: *dataSpace |= HAL_DATASPACE_RANGE_FULL; break; in map()
995 case C2Color::RANGE_LIMITED: *dataSpace |= HAL_DATASPACE_RANGE_LIMITED; break; in map()
1000 case C2Color::TRANSFER_LINEAR: *dataSpace |= HAL_DATASPACE_TRANSFER_LINEAR; break; in map()
1001 case C2Color::TRANSFER_SRGB: *dataSpace |= HAL_DATASPACE_TRANSFER_SRGB; break; in map()
1002 case C2Color::TRANSFER_170M: *dataSpace |= HAL_DATASPACE_TRANSFER_SMPTE_170M; break; in map()
1003 case C2Color::TRANSFER_GAMMA22: *dataSpace |= HAL_DATASPACE_TRANSFER_GAMMA2_2; break; in map()
1004 case C2Color::TRANSFER_GAMMA28: *dataSpace |= HAL_DATASPACE_TRANSFER_GAMMA2_8; break; in map()
1005 case C2Color::TRANSFER_ST2084: *dataSpace |= HAL_DATASPACE_TRANSFER_ST2084; break; in map()
[all …]
/frameworks/av/services/camera/libcameraservice/api2/
DJpegRCompositeStream.cpp525 (streamInfo.dataSpace == static_cast<int>(kJpegRDataSpace))) { in isJpegRCompositeStreamInfo()
533 int64_t* /*out*/dynamicRange, int64_t* /*out*/dataSpace) { in deriveDynamicRangeAndDataspace()
534 if ((dynamicRange == nullptr) || (dataSpace == nullptr)) { in deriveDynamicRangeAndDataspace()
542 *dataSpace = HAL_DATASPACE_BT2020_ITU_PQ; in deriveDynamicRangeAndDataspace()
549 *dataSpace = HAL_DATASPACE_BT2020_ITU_HLG; in deriveDynamicRangeAndDataspace()
553 *dataSpace = kP010DefaultDataSpace; in deriveDynamicRangeAndDataspace()
830 int64_t dynamicRange, dataSpace; in getCompositeStreamInfo() local
831 deriveDynamicRangeAndDataspace(streamInfo.dynamicRangeProfile, &dynamicRange, &dataSpace); in getCompositeStreamInfo()
838 (*compositeOutput)[0].dataSpace = static_cast<android_dataspace_t>(dataSpace); in getCompositeStreamInfo()
851 (*compositeOutput)[1].dataSpace = kJpegDataSpace; in getCompositeStreamInfo()
/frameworks/base/native/graphics/jni/
Dbitmap.cpp99 int32_t dataSpace, in AndroidBitmap_compress() argument
111 return ABitmap_compress(info, (ADataSpace) dataSpace, pixels, in AndroidBitmap_compress()
/frameworks/av/camera/tests/fuzzer/
Dcamera_SessionStats_fuzzer.cpp51 int32_t dataSpace = fdp.ConsumeIntegral<int32_t>(); in LLVMFuzzerTestOneInput() local
53 parcelCamStreamStats.writeInt32(dataSpace); in LLVMFuzzerTestOneInput()
88 cameraStreamStats = new CameraStreamStats(width, height, format, maxPreviewFps, dataSpace, in LLVMFuzzerTestOneInput()
/frameworks/av/media/ndk/
DNdkImage.cpp163 AImage::getDataSpace(android_dataspace* dataSpace) const { in getDataSpace()
164 if (dataSpace == nullptr) { in getDataSpace()
167 *dataSpace = static_cast<android_dataspace>(-1); in getDataSpace()
172 *dataSpace = mHalDataSpace; in getDataSpace()
840 const AImage* image, /*out*/int32_t* dataSpace) { in AImage_getDataSpace() argument
843 if (image == nullptr || dataSpace == nullptr) { in AImage_getDataSpace()
844 ALOGE("%s: bad argument. image %p dataSpace %p", __FUNCTION__, image, dataSpace); in AImage_getDataSpace()
847 return image->getDataSpace((android_dataspace*)(dataSpace)); in AImage_getDataSpace()
/frameworks/base/core/java/android/hardware/camera2/utils/
DSurfaceUtils.java189 int dataSpace = nativeDetectSurfaceDataspace(surface); in getSurfaceDataspace() local
190 if (dataSpace == BAD_VALUE) throw new IllegalArgumentException("Surface was abandoned"); in getSurfaceDataspace()
191 return dataSpace; in getSurfaceDataspace()

12345