Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
impeller::YUVConversionDescriptorVKEqual Struct Reference

#include <yuv_conversion_vk.h>

Public Member Functions

bool operator() (const YUVConversionDescriptorVK &lhs, const YUVConversionDescriptorVK &rhs) const
 

Detailed Description

Definition at line 91 of file yuv_conversion_vk.h.

Member Function Documentation

◆ operator()()

bool impeller::YUVConversionDescriptorVKEqual::operator() ( const YUVConversionDescriptorVK lhs,
const YUVConversionDescriptorVK rhs 
) const

Definition at line 75 of file yuv_conversion_vk.cc.

77 {
78 // Default equality checks in Vulkan HPP checks pNext member members by
79 // pointer which isn't what we want.
80 {
81 const auto& lhs = lhs_desc.get();
82 const auto& rhs = rhs_desc.get();
83
84 if (lhs.format != rhs.format || //
85 lhs.ycbcrModel != rhs.ycbcrModel || //
86 lhs.ycbcrRange != rhs.ycbcrRange || //
87 lhs.components.r != rhs.components.r || //
88 lhs.components.g != rhs.components.g || //
89 lhs.components.b != rhs.components.b || //
90 lhs.components.a != rhs.components.a || //
91 lhs.xChromaOffset != rhs.xChromaOffset || //
92 lhs.yChromaOffset != rhs.yChromaOffset || //
93 lhs.chromaFilter != rhs.chromaFilter || //
94 lhs.forceExplicitReconstruction != rhs.forceExplicitReconstruction //
95 ) {
96 return false;
97 }
98 }
99#if FML_OS_ANDROID
100 {
101 const auto lhs = lhs_desc.get<vk::ExternalFormatANDROID>();
102 const auto rhs = rhs_desc.get<vk::ExternalFormatANDROID>();
103 return lhs.externalFormat == rhs.externalFormat;
104 }
105#else // FML_OS_ANDROID
106 return true;
107#endif // FML_OS_ANDROID
108}

The documentation for this struct was generated from the following files: