Home
last modified time | relevance | path

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

12345678

/hardware/google/graphics/common/libacryl/
Dacrylic_formats.cpp269 uint32_t haldataspace_to_v4l2(int dataspace, uint32_t width, uint32_t height) in haldataspace_to_v4l2() argument
272 if ((dataspace & HAL_DATASPACE_LEGACY_TYPE_MASK) != 0) { in haldataspace_to_v4l2()
273 dataspace &= HAL_DATASPACE_LEGACY_TYPE_MASK; in haldataspace_to_v4l2()
275 dataspace &= ~HAL_DATASPACE_LEGACY_TYPE_MASK; in haldataspace_to_v4l2()
277 if ((dataspace & HAL_DATASPACE_RANGE_MASK) == 0) in haldataspace_to_v4l2()
278 dataspace |= HAL_DATASPACE_RANGE_LIMITED; in haldataspace_to_v4l2()
280 if ((dataspace & HAL_DATASPACE_STANDARD_MASK) == 0) in haldataspace_to_v4l2()
281 dataspace |= ((width * height) < (1280 * 720)) in haldataspace_to_v4l2()
285 dataspace &= ~HAL_DATASPACE_TRANSFER_MASK; in haldataspace_to_v4l2()
288 if (__haldataspace_to_v4l2[i].hal == dataspace) in haldataspace_to_v4l2()
[all …]
Dacrylic_g2d.h46 …bool setLayerStaticMetadata(int layer_index, int dataspace, unsigned int min_luminance, unsigned i… in setLayerStaticMetadata() argument
47 …return mWriter ? mWriter->setLayerStaticMetadata(layer_index, dataspace, min_luminance, max_lumina… in setLayerStaticMetadata()
59 bool setTargetInfo(int dataspace, void *data) { in setTargetInfo() argument
60 return mWriter ? mWriter->setTargetInfo(dataspace, data) : true; in setTargetInfo()
/hardware/qcom/display/msm8909/sdm/libs/hwc2/
Dhwc_layers.cpp72 bool GetColorPrimary(const int32_t &dataspace, ColorPrimaries *color_primary) { in GetColorPrimary() argument
73 auto standard = dataspace & HAL_DATASPACE_STANDARD_MASK; in GetColorPrimary()
100 bool GetTransfer(const int32_t &dataspace, GammaTransfer *gamma_transfer) { in GetTransfer() argument
101 auto transfer = dataspace & HAL_DATASPACE_TRANSFER_MASK; in GetTransfer()
129 void GetRange(const int32_t &dataspace, ColorRange *color_range) { in GetRange() argument
130 auto range = dataspace & HAL_DATASPACE_RANGE_MASK; in GetRange()
155 bool GetSDMColorSpace(const int32_t &dataspace, ColorMetaData *color_metadata) { in GetSDMColorSpace() argument
157 valid = GetColorPrimary(dataspace, &(color_metadata->colorPrimaries)); in GetSDMColorSpace()
161 valid = GetTransfer(dataspace, &(color_metadata->transfer)); in GetSDMColorSpace()
165 GetRange(dataspace, &(color_metadata->range)); in GetSDMColorSpace()
[all …]
Dhwc_layers.h43 bool GetColorPrimary(const int32_t &dataspace, ColorPrimaries *color_primary);
44 bool GetTransfer(const int32_t &dataspace, GammaTransfer *gamma_transfer);
45 void GetRange(const int32_t &dataspace, ColorRange *color_range);
46 bool GetSDMColorSpace(const int32_t &dataspace, ColorMetaData *color_metadata);
74 HWC2::Error SetLayerDataspace(int32_t dataspace);
/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_layers.cpp72 bool GetColorPrimary(const int32_t &dataspace, ColorPrimaries *color_primary) { in GetColorPrimary() argument
73 auto standard = dataspace & HAL_DATASPACE_STANDARD_MASK; in GetColorPrimary()
100 bool GetTransfer(const int32_t &dataspace, GammaTransfer *gamma_transfer) { in GetTransfer() argument
101 auto transfer = dataspace & HAL_DATASPACE_TRANSFER_MASK; in GetTransfer()
132 void GetRange(const int32_t &dataspace, ColorRange *color_range) { in GetRange() argument
133 auto range = dataspace & HAL_DATASPACE_RANGE_MASK; in GetRange()
158 bool GetSDMColorSpace(const int32_t &dataspace, ColorMetaData *color_metadata) { in GetSDMColorSpace() argument
160 valid = GetColorPrimary(dataspace, &(color_metadata->colorPrimaries)); in GetSDMColorSpace()
164 valid = GetTransfer(dataspace, &(color_metadata->transfer)); in GetSDMColorSpace()
168 GetRange(dataspace, &(color_metadata->range)); in GetSDMColorSpace()
[all …]
Dhwc_layers.h43 bool GetColorPrimary(const int32_t &dataspace, ColorPrimaries *color_primary);
44 bool GetTransfer(const int32_t &dataspace, GammaTransfer *gamma_transfer);
45 void GetRange(const int32_t &dataspace, ColorRange *color_range);
46 bool GetSDMColorSpace(const int32_t &dataspace, ColorMetaData *color_metadata);
74 HWC2::Error SetLayerDataspace(int32_t dataspace);
/hardware/qcom/sm7250/display/composer/
Dhwc_layers.cpp69 bool GetColorPrimary(const int32_t &dataspace, ColorPrimaries *color_primary) { in GetColorPrimary() argument
70 auto standard = dataspace & HAL_DATASPACE_STANDARD_MASK; in GetColorPrimary()
97 bool GetTransfer(const int32_t &dataspace, GammaTransfer *gamma_transfer) { in GetTransfer() argument
98 auto transfer = dataspace & HAL_DATASPACE_TRANSFER_MASK; in GetTransfer()
129 bool GetRange(const int32_t &dataspace, ColorRange *color_range) { in GetRange() argument
130 auto range = dataspace & HAL_DATASPACE_RANGE_MASK; in GetRange()
159 int32_t dataspace = legacy_ds; in TranslateFromLegacyDataspace() local
161 if (dataspace & 0xffff) { in TranslateFromLegacyDataspace()
162 switch (dataspace & 0xffff) { in TranslateFromLegacyDataspace()
164 dataspace = HAL_DATASPACE_V0_SRGB; in TranslateFromLegacyDataspace()
[all …]
Dhwc_layers.h54 bool GetColorPrimary(const int32_t &dataspace, ColorPrimaries *color_primary);
55 bool GetTransfer(const int32_t &dataspace, GammaTransfer *gamma_transfer);
56 bool GetRange(const int32_t &dataspace, ColorRange *color_range);
57 bool GetSDMColorSpace(const int32_t &dataspace, ColorMetaData *color_metadata);
60 DisplayError ColorMetadataToDataspace(ColorMetaData color_metadata, Dataspace *dataspace);
97 HWC2::Error SetLayerDataspace(int32_t dataspace);
/hardware/qcom/sm8150/display/sdm/libs/hwc2/
Dhwc_layers.cpp68 bool GetColorPrimary(const int32_t &dataspace, ColorPrimaries *color_primary) { in GetColorPrimary() argument
69 auto standard = dataspace & HAL_DATASPACE_STANDARD_MASK; in GetColorPrimary()
96 bool GetTransfer(const int32_t &dataspace, GammaTransfer *gamma_transfer) { in GetTransfer() argument
97 auto transfer = dataspace & HAL_DATASPACE_TRANSFER_MASK; in GetTransfer()
128 bool GetRange(const int32_t &dataspace, ColorRange *color_range) { in GetRange() argument
129 auto range = dataspace & HAL_DATASPACE_RANGE_MASK; in GetRange()
158 int32_t dataspace = legacy_ds; in TranslateFromLegacyDataspace() local
160 if (dataspace & 0xffff) { in TranslateFromLegacyDataspace()
161 switch (dataspace & 0xffff) { in TranslateFromLegacyDataspace()
163 dataspace = HAL_DATASPACE_V0_SRGB; in TranslateFromLegacyDataspace()
[all …]
Dhwc_layers.h49 bool GetColorPrimary(const int32_t &dataspace, ColorPrimaries *color_primary);
50 bool GetTransfer(const int32_t &dataspace, GammaTransfer *gamma_transfer);
51 bool GetRange(const int32_t &dataspace, ColorRange *color_range);
52 bool GetSDMColorSpace(const int32_t &dataspace, ColorMetaData *color_metadata);
84 HWC2::Error SetLayerDataspace(int32_t dataspace);
/hardware/interfaces/graphics/composer/2.2/utils/hal/include/composer-hal/2.2/
DComposerClient.h62 Dataspace dataspace = Dataspace::UNKNOWN; in getReadbackBufferAttributes() local
63 Error error = mHal->getReadbackBufferAttributes(display, &format, &dataspace); in getReadbackBufferAttributes()
64 hidl_cb(error, format, dataspace); in getReadbackBufferAttributes()
116 PixelFormat format, Dataspace dataspace) override { in getClientTargetSupport_2_2() argument
117 Error err = mHal->getClientTargetSupport_2_2(display, width, height, format, dataspace); in getClientTargetSupport_2_2()
146 Dataspace dataspace, IComposerClient::getDataspaceSaturationMatrix_cb hidl_cb) override { in getDataspaceSaturationMatrix() argument
147 if (dataspace != Dataspace::SRGB_LINEAR) { in getDataspaceSaturationMatrix()
152 hidl_cb(Error::NONE, mHal->getDataspaceSaturationMatrix(dataspace).data()); in getDataspaceSaturationMatrix()
DComposerHal.h48 common::V1_0::Dataspace dataspace) override { in getClientTargetSupport() argument
50 static_cast<Dataspace>(dataspace)); in getClientTargetSupport()
81 PixelFormat format, Dataspace dataspace) = 0;
92 virtual std::array<float, 16> getDataspaceSaturationMatrix(Dataspace dataspace) = 0;
/hardware/interfaces/graphics/composer/2.3/utils/hal/include/composer-hal/2.3/
DComposerClient.h72 Dataspace dataspace = Dataspace::UNKNOWN; in getReadbackBufferAttributes_2_3() local
73 Error error = mHal->getReadbackBufferAttributes_2_3(display, &format, &dataspace); in getReadbackBufferAttributes_2_3()
74 hidl_cb(error, format, dataspace); in getReadbackBufferAttributes_2_3()
91 PixelFormat format, Dataspace dataspace) override { in getClientTargetSupport_2_3() argument
92 Error err = mHal->getClientTargetSupport_2_3(display, width, height, format, dataspace); in getClientTargetSupport_2_3()
126 common::V1_2::Dataspace dataspace; in getDisplayedContentSamplingAttributes() local
129 mHal->getDisplayedContentSamplingAttributes(display, format, dataspace, componentMask); in getDisplayedContentSamplingAttributes()
130 hidl_cb(error, format, dataspace, componentMask); in getDisplayedContentSamplingAttributes()
/hardware/google/gchips/gralloc4/src/hidl_common/
DSharedMetadata.cpp72 void get_dataspace(const private_handle_t *hnd, std::optional<Dataspace> *dataspace) in get_dataspace() argument
75 *dataspace = metadata->dataspace.to_std_optional(); in get_dataspace()
78 void set_dataspace(const private_handle_t *hnd, const Dataspace &dataspace) in set_dataspace() argument
81 metadata->dataspace = aligned_optional(dataspace); in set_dataspace()
DSharedMetadata_struct.h110 aligned_optional<Dataspace> dataspace {};
142 static_assert(offsetof(shared_metadata, dataspace) == 40, "bad alignment");
143 static_assert(sizeof(shared_metadata::dataspace) == 8, "bad size");
/hardware/interfaces/graphics/composer/2.2/utils/command-buffer/include/composer-command-buffer/2.2/
DComposerCommandBuffer.h68 Dataspace dataspace, const std::vector<IComposerClient::Rect>& damage) { in setClientTarget() argument
69 setClientTargetInternal(slot, target, acquireFence, static_cast<int32_t>(dataspace), in setClientTarget()
73 void setLayerDataspace(Dataspace dataspace) { in setLayerDataspace() argument
74 setLayerDataspaceInternal(static_cast<int32_t>(dataspace)); in setLayerDataspace()
/hardware/interfaces/graphics/composer/2.3/utils/command-buffer/include/composer-command-buffer/2.3/
DComposerCommandBuffer.h58 void setLayerDataspace(Dataspace dataspace) { in setLayerDataspace() argument
59 setLayerDataspaceInternal(static_cast<int32_t>(dataspace)); in setLayerDataspace()
63 Dataspace dataspace, const std::vector<IComposerClient::Rect>& damage) { in setClientTarget() argument
64 setClientTargetInternal(slot, target, acquireFence, static_cast<int32_t>(dataspace), in setClientTarget()
/hardware/google/graphics/common/libacryl/hdrplugin_headers/hardware/exynos/
Dg2d_hdr_plugin.h35 …virtual bool setLayerStaticMetadata(int layer_index, int dataspace, unsigned int min_luminance, un…
38 virtual bool setTargetInfo(int dataspace, void *data) = 0;
/hardware/interfaces/graphics/composer/2.2/utils/passthrough/include/composer-passthrough/2.2/
DHwcHal.h105 int32_t dataspace = 0; in getReadbackBufferAttributes() local
107 mDispatch.getReadbackBufferAttributes(mDevice, display, &format, &dataspace); in getReadbackBufferAttributes()
110 *outDataspace = static_cast<Dataspace>(dataspace); in getReadbackBufferAttributes()
144 PixelFormat format, Dataspace dataspace) override { in getClientTargetSupport_2_2() argument
147 static_cast<common::V1_0::Dataspace>(dataspace)); in getClientTargetSupport_2_2()
224 std::array<float, 16> getDataspaceSaturationMatrix(Dataspace dataspace) override { in getDataspaceSaturationMatrix() argument
229 error = mDispatch.getDataspaceSaturationMatrix(mDevice, static_cast<int32_t>(dataspace), in getDataspaceSaturationMatrix()
/hardware/interfaces/graphics/composer/2.2/utils/vts/
DReadbackVts.cpp55 std::string ReadbackHelper::getDataspaceString(Dataspace dataspace) { in getDataspaceString() argument
56 switch (dataspace) { in getDataspaceString()
155 bool ReadbackHelper::readbackSupported(const PixelFormat& pixelFormat, const Dataspace& dataspace, in readbackSupported() argument
164 if (std::find(dataspaces.begin(), dataspaces.end(), dataspace) == dataspaces.end()) { in readbackSupported()
191 Dataspace dataspace) { in ReadbackBuffer() argument
197 mDataspace = dataspace; in ReadbackBuffer()
302 void TestBufferLayer::setDataspace(Dataspace dataspace, in setDataspace() argument
305 writer->setLayerDataspace(dataspace); in setDataspace()
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/
Dhwc_layers.cpp244 HWC2::Error HWCLayer::SetLayerDataspace(int32_t dataspace) { in SetLayerDataspace() argument
247 if (dataspace & 0xffff) { in SetLayerDataspace()
248 switch (dataspace & 0xffff) { in SetLayerDataspace()
250 dataspace = HAL_DATASPACE_V0_SRGB; in SetLayerDataspace()
253 dataspace = HAL_DATASPACE_V0_JFIF; in SetLayerDataspace()
256 dataspace = HAL_DATASPACE_V0_SRGB_LINEAR; in SetLayerDataspace()
259 dataspace = HAL_DATASPACE_V0_BT601_625; in SetLayerDataspace()
262 dataspace = HAL_DATASPACE_V0_BT601_525; in SetLayerDataspace()
265 dataspace = HAL_DATASPACE_V0_BT709; in SetLayerDataspace()
269 DLOGW_IF(kTagQDCM, "Unsupported dataspace type %d", dataspace); in SetLayerDataspace()
[all …]
/hardware/interfaces/graphics/composer/aidl/vts/
DReadbackVts.h78 void setDataspace(Dataspace dataspace) { mDataspace = dataspace; } in setDataspace() argument
171 static std::string getDataspaceString(Dataspace dataspace);
186 static bool readbackSupported(const PixelFormat& pixelFormat, const Dataspace& dataspace);
202 int32_t height, common::PixelFormat pixelFormat, common::Dataspace dataspace);
/hardware/interfaces/graphics/common/1.1/
Dtypes.hal34 * interpretation is defined by the dataspace.
43 * interpretation is defined by the dataspace.
52 * whose interpretation is defined by the dataspace. The stencil values are
53 * unsigned integers, whose interpretation is defined by the dataspace.
61 * by the dataspace.
70 * defined by the dataspace. The stencil bits are unsigned integers, whose
71 * interpretation is defined by the dataspace.
79 * defined by the dataspace.
107 * interpretation is defined by the dataspace.
154 * This is also true when UNKNOWN is treated as a legacy dataspace.
/hardware/google/graphics/common/libhwc2.1/
DDisplaySceneInfo.cpp44 void DisplaySceneInfo::setLayerDataspace(LayerColorData& layerColorData, hwc::Dataspace dataspace) { in setLayerDataspace() argument
45 if (layerColorData.dataspace != dataspace) { in setLayerDataspace()
47 layerColorData.dataspace = dataspace; in setLayerDataspace()
272 ALOGD("dataspace: 0x%8x", static_cast<uint32_t>(layerData.dataspace)); in printLayerColorData()
/hardware/google/gchips/libvendorgraphicbuffer/gralloc5/
Dvendor_graphicbuffer_meta.cpp133 Dataspace dataspace; in get_dataspace() local
134 int err = get_metadata<StandardMetadataType::DATASPACE>(hnd, dataspace); in get_dataspace()
139 return static_cast<int>(dataspace); in get_dataspace()
143 android_dataspace_t dataspace) { in set_dataspace() argument
152 dataspace_value::encode(static_cast<Dataspace>(dataspace), nullptr, 0); in set_dataspace()
159 …size_required = dataspace_value::encode(static_cast<Dataspace>(dataspace), buffer.data(), buffer.s… in set_dataspace()

12345678