#pragma once #include #include namespace pixel::graphics { using aidl::android::hardware::graphics::common::PlaneLayoutComponentType; // These are represented as bitwise in PlaneLayoutComponentType.aidl, but we // do not treat them as such. This helps in better separation of component type // as required. enum class ComponentType : uint32_t { Y = static_cast(PlaneLayoutComponentType::Y), CB = static_cast(PlaneLayoutComponentType::CB), CR = static_cast(PlaneLayoutComponentType::CR), R = static_cast(PlaneLayoutComponentType::R), G = static_cast(PlaneLayoutComponentType::G), B = static_cast(PlaneLayoutComponentType::B), RAW = static_cast(PlaneLayoutComponentType::RAW), A = static_cast(PlaneLayoutComponentType::A), // These are not in PlaneLayoutComponentType D = 1 << 21, S, BLOB, }; } // namespace pixel::graphics