MCPcopy Create free account
hub / github.com/IENT/YUView / convertFromInternalSubsampling

Function convertFromInternalSubsampling

YUViewLib/src/decoder/decoderVTM.cpp:91–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89{
90
91Subsampling convertFromInternalSubsampling(libVTMDec_ChromaFormat fmt)
92{
93 if (fmt == LIBVTMDEC_CHROMA_400)
94 return Subsampling::YUV_400;
95 if (fmt == LIBVTMDEC_CHROMA_420)
96 return Subsampling::YUV_420;
97 if (fmt == LIBVTMDEC_CHROMA_422)
98 return Subsampling::YUV_422;
99 if (fmt == LIBVTMDEC_CHROMA_444)
100 return Subsampling::YUV_444;
101
102 return Subsampling::UNKNOWN;
103}
104
105} // namespace
106

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected