/frameworks/native/libs/ui/ |
D | PublicFormat.cpp | 49 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()
|
D | DebugUtils.cpp | 68 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/ |
D | StreamConfigurationMap.java | 485 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/ |
D | AutoBackendTexture.cpp | 65 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()
|
D | AutoBackendTexture.h | 97 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);
|
D | ColorSpaces.cpp | 26 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/ |
D | HdrRenderTypeUtils.h | 37 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/ |
D | GraphiteBackendTexture.cpp | 71 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()
|
D | GaneshBackendTexture.cpp | 87 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()
|
D | GaneshBackendTexture.h | 38 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);
|
D | GraphiteBackendTexture.h | 43 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/ |
D | DisplayColorProfile.cpp | 316 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 …]
|
D | OutputLayerCompositionState.cpp | 72 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/ |
D | canvas.h | 49 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/ |
D | DeviceInfo.cpp | 60 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()
|
D | DeferredLayerUpdater.cpp | 151 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()
|
D | Tonemapper.cpp | 77 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/ |
D | DebugUtils.h | 29 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/ |
D | DebugUtils.h | 29 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/ |
D | DisplayColorProfile.h | 42 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/ |
D | android_canvas.cpp | 38 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/ |
D | PublicFormatUtils.java | 30 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/ |
D | DisplayedContentSampling_test.cpp | 44 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/ |
D | ScreenCaptureResults.cpp | 68 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/ |
D | OverlayProperties.java | 80 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
|