Lines Matching refs:ycbcrInfo
78 const GrVkYcbcrConversionInfo& ycbcrInfo) { in GenerateKey() argument
79 SkASSERT(static_cast<int>(ycbcrInfo.fYcbcrModel <= 7)); in GenerateKey()
81 SkASSERT(static_cast<int>(ycbcrInfo.fYcbcrRange) <= 1); in GenerateKey()
83 SkASSERT(static_cast<int>(ycbcrInfo.fXChromaOffset) <= 1); in GenerateKey()
85 SkASSERT(static_cast<int>(ycbcrInfo.fXChromaOffset) <= 1); in GenerateKey()
87 SkASSERT(static_cast<int>(ycbcrInfo.fChromaFilter) <= 1); in GenerateKey()
89 SkASSERT(static_cast<int>(ycbcrInfo.fForceExplicitReconstruction) <= 1); in GenerateKey()
92 uint8_t ycbcrKey = static_cast<uint8_t>(ycbcrInfo.fYcbcrModel); in GenerateKey()
93 ycbcrKey |= (static_cast<uint8_t>(ycbcrInfo.fYcbcrRange) << kRangeShift); in GenerateKey()
94 ycbcrKey |= (static_cast<uint8_t>(ycbcrInfo.fXChromaOffset) << kXChromaOffsetShift); in GenerateKey()
95 ycbcrKey |= (static_cast<uint8_t>(ycbcrInfo.fYChromaOffset) << kYChromaOffsetShift); in GenerateKey()
96 ycbcrKey |= (static_cast<uint8_t>(ycbcrInfo.fChromaFilter) << kChromaFilterShift); in GenerateKey()
97 ycbcrKey |= (static_cast<uint8_t>(ycbcrInfo.fForceExplicitReconstruction) << kReconShift); in GenerateKey()
99 return {ycbcrInfo.fExternalFormat, ycbcrKey}; in GenerateKey()