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

Function convertFromInternalSubsampling

YUViewLib/src/decoder/decoderDav1d.cpp:76–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74{
75
76Subsampling convertFromInternalSubsampling(Dav1dPixelLayout layout)
77{
78 if (layout == DAV1D_PIXEL_LAYOUT_I400)
79 return Subsampling::YUV_400;
80 else if (layout == DAV1D_PIXEL_LAYOUT_I420)
81 return Subsampling::YUV_420;
82 else if (layout == DAV1D_PIXEL_LAYOUT_I422)
83 return Subsampling::YUV_422;
84 else if (layout == DAV1D_PIXEL_LAYOUT_I444)
85 return Subsampling::YUV_444;
86
87 return Subsampling::UNKNOWN;
88}
89
90} // namespace
91

Callers 2

getSubsamplingMethod · 0.70
pushDataMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected