Home
last modified time | relevance | path

Searched refs:dataspace (Results 1 – 25 of 146) sorted by relevance

123456

/frameworks/native/libs/ui/
DPublicFormat.cpp49 Dataspace dataspace; in mapPublicFormatToHalDataspace() local
52 dataspace = Dataspace::JFIF; in mapPublicFormatToHalDataspace()
58 dataspace = Dataspace::DEPTH; in mapPublicFormatToHalDataspace()
64 dataspace = Dataspace::ARBITRARY; in mapPublicFormatToHalDataspace()
69 dataspace = Dataspace::JFIF; in mapPublicFormatToHalDataspace()
72 dataspace = Dataspace::DYNAMIC_DEPTH; in mapPublicFormatToHalDataspace()
75 dataspace = Dataspace::HEIF; in mapPublicFormatToHalDataspace()
78 dataspace = Dataspace::JPEG_R; in mapPublicFormatToHalDataspace()
82 dataspace = Dataspace::UNKNOWN; in mapPublicFormatToHalDataspace()
85 return static_cast<android_dataspace>(dataspace); in mapPublicFormatToHalDataspace()
DDebugUtils.cpp68 std::string decodeStandard(android_dataspace dataspace) { in decodeStandard() argument
69 const uint32_t dataspaceStandard = (dataspace & HAL_DATASPACE_STANDARD_MASK); in decodeStandard()
71 switch (dataspace & 0xffff) { in decodeStandard()
94 return StringPrintf("Unknown deprecated dataspace code %d", dataspace); in decodeStandard()
133 std::string decodeTransfer(android_dataspace dataspace) { in decodeTransfer() argument
134 const uint32_t dataspaceSelect = (dataspace & HAL_DATASPACE_STANDARD_MASK); in decodeTransfer()
136 switch (dataspace & 0xffff) { in decodeTransfer()
157 const uint32_t dataspaceTransfer = (dataspace & HAL_DATASPACE_TRANSFER_MASK); in decodeTransfer()
179 std::string decodeRange(android_dataspace dataspace) { in decodeRange() argument
180 const uint32_t dataspaceSelect = (dataspace & HAL_DATASPACE_STANDARD_MASK); in decodeRange()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DStreamConfigurationMap.java485 int dataspace = imageFormatToDataspace(format); in isOutputSupportedFor() local
486 if (dataspace == HAL_DATASPACE_DEPTH) { in isOutputSupportedFor()
488 } else if (dataspace == HAL_DATASPACE_DYNAMIC_DEPTH) { in isOutputSupportedFor()
490 } else if (dataspace == HAL_DATASPACE_HEIF) { in isOutputSupportedFor()
492 } else if (dataspace == HAL_DATASPACE_JPEG_R) { in isOutputSupportedFor()
641 int dataspace = imageFormatToDataspace(format); in isOutputSupportedFor() local
644 dataspace == HAL_DATASPACE_DEPTH ? mDepthConfigurations : in isOutputSupportedFor()
645 dataspace == HAL_DATASPACE_DYNAMIC_DEPTH ? mDynamicDepthConfigurations : in isOutputSupportedFor()
646 dataspace == HAL_DATASPACE_HEIF ? mHeicConfigurations : in isOutputSupportedFor()
647 dataspace == HAL_DATASPACE_JPEG_R ? mJpegRConfigurations : in isOutputSupportedFor()
[all …]
/frameworks/native/libs/renderengine/skia/
DAutoBackendTexture.cpp65 sk_sp<SkImage> AutoBackendTexture::makeImage(ui::Dataspace dataspace, SkAlphaType alphaType) { in makeImage() argument
68 sk_sp<SkImage> image = mBackendTexture->makeImage(alphaType, dataspace, releaseImageProc, this); in makeImage()
73 mDataspace = dataspace; in makeImage()
77 sk_sp<SkSurface> AutoBackendTexture::getOrCreateSurface(ui::Dataspace dataspace) { in getOrCreateSurface() argument
81 if (!mSurface.get() || mDataspace != dataspace) { in getOrCreateSurface()
83 mBackendTexture->makeSurface(dataspace, releaseSurfaceProc, this); in getOrCreateSurface()
90 mDataspace = dataspace; in getOrCreateSurface()
DAutoBackendTexture.h97 sk_sp<SkImage> makeImage(ui::Dataspace dataspace, SkAlphaType alphaType) { in makeImage() argument
98 return mTexture->makeImage(dataspace, alphaType); in makeImage()
102 sk_sp<SkSurface> getOrCreateSurface(ui::Dataspace dataspace) { in getOrCreateSurface() argument
103 return mTexture->getOrCreateSurface(dataspace); in getOrCreateSurface()
134 sk_sp<SkImage> makeImage(ui::Dataspace dataspace, SkAlphaType alphaType);
137 sk_sp<SkSurface> getOrCreateSurface(ui::Dataspace dataspace);
DColorSpaces.cpp26 sk_sp<SkColorSpace> toSkColorSpace(ui::Dataspace dataspace) { in toSkColorSpace() argument
28 switch (dataspace & HAL_DATASPACE_STANDARD_MASK) { in toSkColorSpace()
54 switch (dataspace & HAL_DATASPACE_TRANSFER_MASK) { in toSkColorSpace()
/frameworks/native/libs/ui/include_types/ui/
DHdrRenderTypeUtils.h37 inline HdrRenderType getHdrRenderType(ui::Dataspace dataspace,
40 const auto transfer = dataspace & HAL_DATASPACE_TRANSFER_MASK;
41 const auto range = dataspace & HAL_DATASPACE_RANGE_MASK;
51 if ((dataspace == BT2020_LINEAR_EXT || dataspace == ui::Dataspace::V0_SCRGB) &&
/frameworks/native/libs/renderengine/skia/compat/
DGraphiteBackendTexture.cpp71 sk_sp<SkImage> GraphiteBackendTexture::makeImage(SkAlphaType alphaType, ui::Dataspace dataspace, in makeImage() argument
77 toSkColorSpace(dataspace), releaseImageProc, releaseContext); in makeImage()
79 logFatalTexture("Unable to generate SkImage.", dataspace, colorType); in makeImage()
84 sk_sp<SkSurface> GraphiteBackendTexture::makeSurface(ui::Dataspace dataspace, in makeSurface() argument
91 toSkColorSpace(dataspace), &props, releaseSurfaceProc, in makeSurface()
94 logFatalTexture("Unable to generate SkSurface.", dataspace, colorType); in makeSurface()
99 void GraphiteBackendTexture::logFatalTexture(const char* msg, ui::Dataspace dataspace, in logFatalTexture() argument
107 msg, isOutputBuffer(), static_cast<int32_t>(dataspace), colorType, in logFatalTexture()
DGaneshBackendTexture.cpp87 sk_sp<SkImage> GaneshBackendTexture::makeImage(SkAlphaType alphaType, ui::Dataspace dataspace, in makeImage() argument
97 colorType, alphaType, toSkColorSpace(dataspace), in makeImage()
100 logFatalTexture("Unable to generate SkImage.", dataspace, colorType); in makeImage()
105 sk_sp<SkSurface> GaneshBackendTexture::makeSurface(ui::Dataspace dataspace, in makeSurface() argument
112 toSkColorSpace(dataspace), nullptr, releaseSurfaceProc, in makeSurface()
115 logFatalTexture("Unable to generate SkSurface.", dataspace, colorType); in makeSurface()
120 void GaneshBackendTexture::logFatalTexture(const char* msg, ui::Dataspace dataspace, in logFatalTexture() argument
131 msg, mBackendTexture.isValid(), static_cast<int32_t>(dataspace), in logFatalTexture()
146 msg, mBackendTexture.isValid(), static_cast<int32_t>(dataspace), in logFatalTexture()
DGaneshBackendTexture.h38 sk_sp<SkImage> makeImage(SkAlphaType alphaType, ui::Dataspace dataspace,
42 sk_sp<SkSurface> makeSurface(ui::Dataspace dataspace, TextureReleaseProc releaseSurfaceProc,
48 void logFatalTexture(const char* msg, ui::Dataspace dataspace, SkColorType colorType);
DGraphiteBackendTexture.h43 sk_sp<SkImage> makeImage(SkAlphaType alphaType, ui::Dataspace dataspace,
47 sk_sp<SkSurface> makeSurface(ui::Dataspace dataspace, TextureReleaseProc releaseSurfaceProc,
53 void logFatalTexture(const char* msg, ui::Dataspace dataspace, SkColorType colorType);
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DDisplayColorProfile.cpp316 const Dataspace dataspace = colorModeToDataspace(mode); in addColorMode() local
320 dataspaceDetails(static_cast<android_dataspace_t>(dataspace)).c_str(), in addColorMode()
325 mColorModes[getColorModeKey(dataspace, intent)] = {hwcDataspace, hwcColorMode, hwcIntent}; in addColorMode()
335 bool DisplayColorProfile::hasLegacyHdrSupport(Dataspace dataspace) const { in hasLegacyHdrSupport()
336 if ((dataspace == Dataspace::BT2020_PQ && hasHDR10Support()) || in hasLegacyHdrSupport()
337 (dataspace == Dataspace::BT2020_HLG && hasHLGSupport())) { in hasLegacyHdrSupport()
339 mColorModes.find(getColorModeKey(dataspace, RenderIntent::TONE_MAP_COLORIMETRIC)); in hasLegacyHdrSupport()
340 return iter == mColorModes.end() || iter->second.dataspace != dataspace; in hasLegacyHdrSupport()
346 void DisplayColorProfile::getBestColorMode(Dataspace dataspace, RenderIntent intent, in getBestColorMode() argument
349 auto iter = mColorModes.find(getColorModeKey(dataspace, intent)); in getBestColorMode()
[all …]
DOutputLayerCompositionState.cpp72 dumpVal(out, "dataspace", toString(dataspace), dataspace); in dump()
78 dumpVal(out, "override dataspace", toString(overrideInfo.dataspace), overrideInfo.dataspace); in dump()
/frameworks/base/libs/hwui/apex/include/android/graphics/
Dcanvas.h49 int32_t /*android_dataspace_t*/ dataspace);
65 int32_t /*android_dataspace_t*/ dataspace);
108 Canvas(const ANativeWindow_Buffer& buffer, int32_t /*android_dataspace_t*/ dataspace) : in Canvas() argument
109 mCanvas(ACanvas_createCanvas(&buffer, dataspace)), in Canvas()
118 int32_t /*android_dataspace_t*/ dataspace) { in setBuffer()
119 return ACanvas_setBuffer(mCanvas, buffer, dataspace); in setBuffer()
/frameworks/base/libs/hwui/
DDeviceInfo.cpp60 ADataSpace dataspace; in updateDisplayInfo() local
62 ADisplay_getPreferredWideColorFormat(displays[i], &dataspace, &pixelFormat); in updateDisplayInfo()
87 void DeviceInfo::setWideColorDataspace(ADataSpace dataspace) { in setWideColorDataspace() argument
88 switch (dataspace) { in setWideColorDataspace()
97 ALOGW("Unknown dataspace %d", dataspace); in setWideColorDataspace()
DDeferredLayerUpdater.cpp151 android_dataspace dataspace; in apply() local
163 mSurfaceTexture.get(), &slot, &dataspace, &hdrMetadataType, &cta861_3, in apply()
170 hardwareBuffer, dataspace, newContent, in apply()
228 android_dataspace dataspace, in createIfNeeded() argument
231 if (!mTextureRelease || !mTextureRelease->getImage().get() || dataspace != mDataspace || in createIfNeeded()
247 mDataspace = dataspace; in createIfNeeded()
249 mTextureRelease->makeImage(buffer, dataspace, context); in createIfNeeded()
DTonemapper.cpp77 static ui::Dataspace extractTransfer(ui::Dataspace dataspace) { in extractTransfer() argument
78 return static_cast<ui::Dataspace>(dataspace & HAL_DATASPACE_TRANSFER_MASK); in extractTransfer()
81 static bool isHdrDataspace(ui::Dataspace dataspace) { in isHdrDataspace() argument
82 const auto transfer = extractTransfer(dataspace); in isHdrDataspace()
/frameworks/native/libs/ui/include/ui/
DDebugUtils.h29 std::string decodeStandard(android_dataspace dataspace);
31 std::string decodeTransfer(android_dataspace dataspace);
33 std::string decodeRange(android_dataspace dataspace);
35 std::string dataspaceDetails(android_dataspace dataspace);
/frameworks/native/libs/ui/include_vndk/ui/
DDebugUtils.h29 std::string decodeStandard(android_dataspace dataspace);
31 std::string decodeTransfer(android_dataspace dataspace);
33 std::string decodeRange(android_dataspace dataspace);
35 std::string dataspaceDetails(android_dataspace dataspace);
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DDisplayColorProfile.h42 bool hasLegacyHdrSupport(ui::Dataspace dataspace) const override;
43 void getBestColorMode(ui::Dataspace dataspace, ui::RenderIntent intent,
70 ui::Dataspace dataspace; member
75 static ColorModeKey getColorModeKey(ui::Dataspace dataspace, ui::RenderIntent intent) { in getColorModeKey() argument
76 return (static_cast<uint64_t>(dataspace) << 32) | static_cast<uint32_t>(intent); in getColorModeKey()
/frameworks/base/libs/hwui/apex/
Dandroid_canvas.cpp38 int32_t /*android_dataspace_t*/ dataspace, in convert()
44 sk_sp<SkColorSpace> cs(uirenderer::DataSpaceToColorSpace((android_dataspace)dataspace)); in convert()
72 int32_t /*android_dataspace_t*/ dataspace) { in ACanvas_createCanvas()
74 bool isValidBuffer = convert(buffer, dataspace, &bitmap); in ACanvas_createCanvas()
83 int32_t /*android_dataspace_t*/ dataspace) { in ACanvas_setBuffer()
85 bool isValidBuffer = (buffer == nullptr) ? false : convert(buffer, dataspace, &bitmap); in ACanvas_setBuffer()
/frameworks/base/media/java/android/media/
DPublicFormatUtils.java30 public static int getPublicFormat(int imageFormat, @DataSpace.NamedDataSpace int dataspace) { in getPublicFormat() argument
31 return nativeGetPublicFormat(imageFormat, dataspace); in getPublicFormat()
35 private static native int nativeGetPublicFormat(int imageFormat, int dataspace); in nativeGetPublicFormat() argument
/frameworks/native/libs/gui/tests/
DDisplayedContentSampling_test.cpp44 ui::Dataspace dataspace; in shouldSkipTest() local
47 &dataspace, &componentMask); in shouldSkipTest()
69 ui::Dataspace dataspace; in TEST_F() local
72 &dataspace, &componentMask); in TEST_F()
/frameworks/native/libs/gui/
DScreenCaptureResults.cpp68 uint32_t dataspace = 0; in readFromParcel() local
69 SAFE_PARCEL(parcel->readUint32, &dataspace); in readFromParcel()
70 capturedDataspace = static_cast<ui::Dataspace>(dataspace); in readFromParcel()
/frameworks/base/core/java/android/hardware/
DOverlayProperties.java80 public boolean isCombinationSupported(@DataSpace.ColorDataSpace int dataspace, in isCombinationSupported() argument
86 return nIsCombinationSupported(mNativeObject, dataspace, format); in isCombinationSupported()
140 long nativeObject, int dataspace, int format); in nIsCombinationSupported() argument

123456