/frameworks/native/libs/ui/ |
D | DebugUtils.cpp | 30 std::string decodeStandard(android_dataspace dataspace) { in decodeStandard() argument 31 const uint32_t dataspaceSelect = (dataspace & HAL_DATASPACE_STANDARD_MASK); in decodeStandard() 67 switch (dataspace & 0xffff) { in decodeStandard() 90 return StringPrintf("Unknown deprecated dataspace code %d", dataspace); in decodeStandard() 97 std::string decodeTransfer(android_dataspace dataspace) { in decodeTransfer() argument 98 const uint32_t dataspaceSelect = (dataspace & HAL_DATASPACE_STANDARD_MASK); in decodeTransfer() 100 switch (dataspace & 0xffff) { in decodeTransfer() 121 const uint32_t dataspaceTransfer = (dataspace & HAL_DATASPACE_TRANSFER_MASK); in decodeTransfer() 154 std::string decodeRange(android_dataspace dataspace) { in decodeRange() argument 155 const uint32_t dataspaceSelect = (dataspace & HAL_DATASPACE_STANDARD_MASK); in decodeRange() [all …]
|
D | PublicFormat.cpp | 47 Dataspace dataspace; in mapPublicFormatToHalDataspace() local 50 dataspace = Dataspace::V0_JFIF; in mapPublicFormatToHalDataspace() 56 dataspace = Dataspace::DEPTH; in mapPublicFormatToHalDataspace() 62 dataspace = Dataspace::ARBITRARY; in mapPublicFormatToHalDataspace() 67 dataspace = Dataspace::V0_JFIF; in mapPublicFormatToHalDataspace() 70 dataspace = Dataspace::DYNAMIC_DEPTH; in mapPublicFormatToHalDataspace() 73 dataspace = Dataspace::HEIF; in mapPublicFormatToHalDataspace() 77 dataspace = Dataspace::UNKNOWN; in mapPublicFormatToHalDataspace() 80 return static_cast<android_dataspace>(dataspace); in mapPublicFormatToHalDataspace()
|
/frameworks/native/libs/renderengine/skia/ |
D | AutoBackendTexture.cpp | 85 sk_sp<SkImage> AutoBackendTexture::makeImage(ui::Dataspace dataspace, SkAlphaType alphaType, in makeImage() argument 102 alphaType, toSkColorSpace(dataspace), releaseImageProc, this); in makeImage() 109 mDataspace = dataspace; in makeImage() 112 mBackendTexture.isValid(), dataspace); in makeImage() 116 sk_sp<SkSurface> AutoBackendTexture::getOrCreateSurface(ui::Dataspace dataspace, in getOrCreateSurface() argument 120 if (!mSurface.get() || mDataspace != dataspace) { in getOrCreateSurface() 124 toSkColorSpace(dataspace), nullptr, in getOrCreateSurface() 133 mDataspace = dataspace; in getOrCreateSurface() 136 mBackendTexture.isValid(), dataspace); in getOrCreateSurface()
|
D | AutoBackendTexture.h | 98 sk_sp<SkImage> makeImage(ui::Dataspace dataspace, SkAlphaType alphaType, in makeImage() argument 100 return mTexture->makeImage(dataspace, alphaType, context); in makeImage() 104 sk_sp<SkSurface> getOrCreateSurface(ui::Dataspace dataspace, GrDirectContext* context) { in getOrCreateSurface() argument 105 return mTexture->getOrCreateSurface(dataspace, context); in getOrCreateSurface() 133 sk_sp<SkImage> makeImage(ui::Dataspace dataspace, SkAlphaType alphaType, 137 sk_sp<SkSurface> getOrCreateSurface(ui::Dataspace dataspace, GrDirectContext* context);
|
D | ColorSpaces.cpp | 24 sk_sp<SkColorSpace> toSkColorSpace(ui::Dataspace dataspace) { in toSkColorSpace() argument 26 switch (dataspace & HAL_DATASPACE_STANDARD_MASK) { in toSkColorSpace() 52 switch (dataspace & HAL_DATASPACE_TRANSFER_MASK) { in toSkColorSpace()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | StreamConfigurationMap.java | 443 int dataspace = imageFormatToDataspace(format); in isOutputSupportedFor() local 444 if (dataspace == HAL_DATASPACE_DEPTH) { in isOutputSupportedFor() 446 } else if (dataspace == HAL_DATASPACE_DYNAMIC_DEPTH) { in isOutputSupportedFor() 448 } else if (dataspace == HAL_DATASPACE_HEIF) { in isOutputSupportedFor() 594 int dataspace = imageFormatToDataspace(format); in isOutputSupportedFor() local 597 dataspace == HAL_DATASPACE_DEPTH ? mDepthConfigurations : in isOutputSupportedFor() 598 dataspace == HAL_DATASPACE_DYNAMIC_DEPTH ? mDynamicDepthConfigurations : in isOutputSupportedFor() 599 dataspace == HAL_DATASPACE_HEIF ? mHeicConfigurations : in isOutputSupportedFor() 1486 int dataspace = imageFormatToDataspace(format); in getPublicFormatSizes() local 1488 return getInternalFormatSizes(internalFormat, dataspace, output, highRes); in getPublicFormatSizes() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | DisplayColorProfile.cpp | 327 const Dataspace dataspace = colorModeToDataspace(mode); in addColorMode() local 331 dataspaceDetails(static_cast<android_dataspace_t>(dataspace)).c_str(), in addColorMode() 336 mColorModes[getColorModeKey(dataspace, intent)] = {hwcDataspace, hwcColorMode, hwcIntent}; in addColorMode() 346 bool DisplayColorProfile::hasLegacyHdrSupport(Dataspace dataspace) const { in hasLegacyHdrSupport() 347 if ((dataspace == Dataspace::BT2020_PQ && hasHDR10Support()) || in hasLegacyHdrSupport() 348 (dataspace == Dataspace::BT2020_HLG && hasHLGSupport())) { in hasLegacyHdrSupport() 350 mColorModes.find(getColorModeKey(dataspace, RenderIntent::TONE_MAP_COLORIMETRIC)); in hasLegacyHdrSupport() 351 return iter == mColorModes.end() || iter->second.dataspace != dataspace; in hasLegacyHdrSupport() 357 void DisplayColorProfile::getBestColorMode(Dataspace dataspace, RenderIntent intent, in getBestColorMode() argument 360 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/native/libs/ui/include/ui/ |
D | DebugUtils.h | 29 std::string decodeStandard(android_dataspace dataspace); 30 std::string decodeTransfer(android_dataspace dataspace); 31 std::string decodeRange(android_dataspace dataspace); 32 std::string dataspaceDetails(android_dataspace dataspace);
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | DebugUtils.h | 29 std::string decodeStandard(android_dataspace dataspace); 30 std::string decodeTransfer(android_dataspace dataspace); 31 std::string decodeRange(android_dataspace dataspace); 32 std::string dataspaceDetails(android_dataspace dataspace);
|
/frameworks/base/libs/hwui/apex/ |
D | android_canvas.cpp | 36 int32_t /*android_dataspace_t*/ dataspace, in convert() 42 sk_sp<SkColorSpace> cs(uirenderer::DataSpaceToColorSpace((android_dataspace)dataspace)); in convert() 70 int32_t /*android_dataspace_t*/ dataspace) { in ACanvas_createCanvas() 72 bool isValidBuffer = convert(buffer, dataspace, &bitmap); in ACanvas_createCanvas() 81 int32_t /*android_dataspace_t*/ dataspace) { in ACanvas_setBuffer() 83 bool isValidBuffer = (buffer == nullptr) ? false : convert(buffer, dataspace, &bitmap); in ACanvas_setBuffer()
|
/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, 71 ui::Dataspace dataspace; member 76 static ColorModeKey getColorModeKey(ui::Dataspace dataspace, ui::RenderIntent intent) { in getColorModeKey() argument 77 return (static_cast<uint64_t>(dataspace) << 32) | static_cast<uint32_t>(intent); in getColorModeKey()
|
/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/services/surfaceflinger/ |
D | EffectLayer.cpp | 95 bool EffectLayer::setDataspace(ui::Dataspace dataspace) { in setDataspace() argument 96 if (mDrawingState.dataspace == dataspace) { in setDataspace() 101 mDrawingState.dataspace = dataspace; in setDataspace() 141 return mDrawingState.dataspace; in getDataSpace()
|
/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()
|
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() 225 android_dataspace dataspace, in createIfNeeded() argument 228 if (!mTextureRelease || !mTextureRelease->getImage().get() || dataspace != mDataspace || in createIfNeeded() 244 mDataspace = dataspace; in createIfNeeded() 246 mTextureRelease->makeImage(buffer, dataspace, context); in createIfNeeded()
|
/frameworks/native/libs/shaders/ |
D | shaders.cpp | 32 aidl::android::hardware::graphics::common::Dataspace toAidlDataspace(ui::Dataspace dataspace) { in toAidlDataspace() argument 33 return static_cast<aidl::android::hardware::graphics::common::Dataspace>(dataspace); in toAidlDataspace() 36 void generateEOTF(ui::Dataspace dataspace, std::string& shader) { in generateEOTF() argument 37 switch (dataspace & HAL_DATASPACE_TRANSFER_MASK) { in generateEOTF() 267 void generateOETF(ui::Dataspace dataspace, std::string& shader) { in generateOETF() argument 268 switch (dataspace & HAL_DATASPACE_TRANSFER_MASK) { in generateOETF() 417 ColorSpace toColorSpace(ui::Dataspace dataspace) { in toColorSpace() argument 418 switch (dataspace & HAL_DATASPACE_STANDARD_MASK) { in toColorSpace()
|
/frameworks/native/libs/gui/tests/ |
D | DisplayedContentSampling_test.cpp | 41 ui::Dataspace dataspace; in shouldSkipTest() local 44 &dataspace, &componentMask); in shouldSkipTest() 66 ui::Dataspace dataspace; in TEST_F() local 69 &dataspace, &componentMask); in TEST_F()
|
/frameworks/native/libs/gui/ |
D | ScreenCaptureResults.cpp | 62 uint32_t dataspace = 0; in readFromParcel() local 63 SAFE_PARCEL(parcel->readUint32, &dataspace); in readFromParcel() 64 capturedDataspace = static_cast<ui::Dataspace>(dataspace); in readFromParcel()
|
/frameworks/native/libs/ui/include_types/ui/ |
D | DataspaceUtils.h | 23 inline bool isHdrDataspace(ui::Dataspace dataspace) { in isHdrDataspace() argument 24 const auto transfer = dataspace & HAL_DATASPACE_TRANSFER_MASK; in isHdrDataspace()
|
/frameworks/av/media/libstagefright/ |
D | FrameCaptureLayer.cpp | 38 ui::Dataspace translateDataspace(ui::Dataspace dataspace) { in translateDataspace() argument 39 ui::Dataspace updatedDataspace = dataspace; in translateDataspace() 41 switch (dataspace) { in translateDataspace() 68 ui::Dataspace dataspace = translateDataspace(static_cast<ui::Dataspace>(bi.mDataSpace)); in isHdrY410() local 70 return ((dataspace == ui::Dataspace::BT2020_ITU_PQ || in isHdrY410() 71 dataspace == ui::Dataspace::BT2020_ITU_HLG) && in isHdrY410()
|
/frameworks/base/libs/hwui/utils/ |
D | Color.cpp | 218 sk_sp<SkColorSpace> DataSpaceToColorSpace(android_dataspace dataspace) { in DataSpaceToColorSpace() argument 219 if (dataspace == HAL_DATASPACE_UNKNOWN) { in DataSpaceToColorSpace() 222 if (dataspace == HAL_DATASPACE_DCI_P3) { in DataSpaceToColorSpace() 231 switch (dataspace & HAL_DATASPACE_STANDARD_MASK) { in DataSpaceToColorSpace() 254 ALOGV("Unsupported Gamut: %d", dataspace); in DataSpaceToColorSpace() 259 if ((dataspace & HAL_DATASPACE_TRANSFER_MASK) == HAL_DATASPACE_TRANSFER_HLG) { in DataSpaceToColorSpace() 266 switch (dataspace & HAL_DATASPACE_TRANSFER_MASK) { in DataSpaceToColorSpace() 284 ALOGV("Unsupported Gamma: %d", dataspace); in DataSpaceToColorSpace()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
D | LayerFE.h | 127 const ui::Dataspace dataspace; member 186 lhs.viewport == rhs.viewport && lhs.dataspace == rhs.dataspace && 210 PrintTo(settings.dataspace, os); in PrintTo()
|
/frameworks/base/media/jni/ |
D | android_media_PublicFormatUtils.cpp | 43 jint dataspace) { in android_media_PublicFormatUtils_getPublicFormat() argument 45 hardwareBufferFormat, static_cast<android_dataspace>(dataspace)); in android_media_PublicFormatUtils_getPublicFormat()
|