Home
last modified time | relevance | path

Searched refs:flex (Results 1 – 1 of 1) sorted by relevance

/hardware/interfaces/graphics/mapper/2.0/utils/passthrough/include/mapper-passthrough/2.0/
DGralloc1Hal.h144 android_flex_layout flex = {}; in lockYCbCr() local
145 int32_t error = mDispatch.getNumFlexPlanes(mDevice, bufferHandle, &flex.num_planes); in lockYCbCr()
149 std::vector<android_flex_plane_t> flexPlanes(flex.num_planes); in lockYCbCr()
150 flex.planes = flexPlanes.data(); in lockYCbCr()
156 &flex, fenceFd.release()); in lockYCbCr()
157 if (error == GRALLOC1_ERROR_NONE && !toYCbCrLayout(flex, outLayout)) { in lockYCbCr()
254 static bool toYCbCrLayout(const android_flex_layout& flex, YCbCrLayout* outLayout) { in toYCbCrLayout() argument
256 if (flex.format != FLEX_FORMAT_YCbCr || flex.num_planes < 3) { in toYCbCrLayout()
261 const auto& plane = flex.planes[i]; in toYCbCrLayout()
284 if (flex.planes[0].component != FLEX_COMPONENT_Y || in toYCbCrLayout()
[all …]