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

Function convertFromInternalSubsampling

YUViewLib/src/decoder/decoderVVDec.cpp:105–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105Subsampling convertFromInternalSubsampling(vvdecColorFormat fmt)
106{
107 if (fmt == VVDEC_CF_YUV400_PLANAR)
108 return Subsampling::YUV_400;
109 if (fmt == VVDEC_CF_YUV420_PLANAR)
110 return Subsampling::YUV_420;
111 if (fmt == VVDEC_CF_YUV422_PLANAR)
112 return Subsampling::YUV_422;
113 if (fmt == VVDEC_CF_YUV444_PLANAR)
114 return Subsampling::YUV_444;
115
116 return Subsampling::UNKNOWN;
117}
118
119Size calculateChromaSize(Size lumaSize, vvdecColorFormat fmt)
120{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected