mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
yukawa: adapt different YCC orders
am: 59b31c9b90
Change-Id: I7142f64e5343b24348a49fdd0bfe2b9448a235fe
This commit is contained in:
@@ -282,14 +282,16 @@ class Gralloc1HalImpl : public Hal {
|
||||
}
|
||||
|
||||
if (flex.planes[0].component != FLEX_COMPONENT_Y ||
|
||||
flex.planes[1].component != FLEX_COMPONENT_Cb ||
|
||||
flex.planes[2].component != FLEX_COMPONENT_Cr) {
|
||||
((flex.planes[1].component != FLEX_COMPONENT_Cb || flex.planes[2].component != FLEX_COMPONENT_Cr) &&
|
||||
(flex.planes[2].component != FLEX_COMPONENT_Cb || flex.planes[1].component != FLEX_COMPONENT_Cr))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const auto& y = flex.planes[0];
|
||||
const auto& cb = flex.planes[1];
|
||||
const auto& cr = flex.planes[2];
|
||||
const auto& cb = (flex.planes[1].component == FLEX_COMPONENT_Cb)?
|
||||
flex.planes[1] : flex.planes[2];
|
||||
const auto& cr = (flex.planes[2].component == FLEX_COMPONENT_Cr)?
|
||||
flex.planes[2] : flex.planes[1];
|
||||
|
||||
if (cb.h_increment != cr.h_increment || cb.v_increment != cr.v_increment) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user