Lines Matching refs:PlaneConfig
43 enum class PlaneConfig {
66 * sampled. Note that Subsampling values other than k444 are only valid with PlaneConfig values
101 * inputs are valid. Invalid inputs consist of incompatible PlaneConfig/Subsampling/planeIdx
104 static std::tuple<int, int> PlaneSubsamplingFactors(PlaneConfig, Subsampling, int planeIdx);
115 PlaneConfig,
120 /** Number of planes for a given PlaneConfig. */
121 static constexpr int NumPlanes(PlaneConfig);
124 * Number of Y, U, V, A channels in the ith plane for a given PlaneConfig (or 0 if i is
127 static constexpr int NumChannelsInPlane(PlaneConfig, int i);
130 * Given a PlaneConfig and a set of channel flags for each plane, convert to YUVALocations
131 * representation. Fails if channel flags aren't valid for the PlaneConfig (i.e. don't have
134 static YUVALocations GetYUVALocations(PlaneConfig, const uint32_t* planeChannelFlags);
136 /** Does the PlaneConfig have alpha values? */
137 static bool HasAlpha(PlaneConfig);
147 PlaneConfig,
156 PlaneConfig planeConfig() const { return fPlaneConfig; }
206 * representation. Fails if the channel flags aren't valid for the PlaneConfig (i.e. don't have
214 * passed Subsampling is not k444 and this info's PlaneConfig is not compatible with chroma
229 bool isValid() const { return fPlaneConfig != PlaneConfig::kUnknown; }
234 PlaneConfig fPlaneConfig = PlaneConfig::kUnknown;
249 constexpr int SkYUVAInfo::NumPlanes(PlaneConfig planeConfig) {
251 case PlaneConfig::kUnknown: return 0;
252 case PlaneConfig::kY_U_V: return 3;
253 case PlaneConfig::kY_V_U: return 3;
254 case PlaneConfig::kY_UV: return 2;
255 case PlaneConfig::kY_VU: return 2;
256 case PlaneConfig::kYUV: return 1;
257 case PlaneConfig::kUYV: return 1;
258 case PlaneConfig::kY_U_V_A: return 4;
259 case PlaneConfig::kY_V_U_A: return 4;
260 case PlaneConfig::kY_UV_A: return 3;
261 case PlaneConfig::kY_VU_A: return 3;
262 case PlaneConfig::kYUVA: return 1;
263 case PlaneConfig::kUYVA: return 1;
268 constexpr int SkYUVAInfo::NumChannelsInPlane(PlaneConfig config, int i) {
270 case PlaneConfig::kUnknown:
273 case SkYUVAInfo::PlaneConfig::kY_U_V:
274 case SkYUVAInfo::PlaneConfig::kY_V_U:
276 case SkYUVAInfo::PlaneConfig::kY_UV:
277 case SkYUVAInfo::PlaneConfig::kY_VU:
283 case SkYUVAInfo::PlaneConfig::kYUV:
284 case SkYUVAInfo::PlaneConfig::kUYV:
286 case SkYUVAInfo::PlaneConfig::kY_U_V_A:
287 case SkYUVAInfo::PlaneConfig::kY_V_U_A:
289 case SkYUVAInfo::PlaneConfig::kY_UV_A:
290 case SkYUVAInfo::PlaneConfig::kY_VU_A:
297 case SkYUVAInfo::PlaneConfig::kYUVA:
298 case SkYUVAInfo::PlaneConfig::kUYVA: