| 89 | { |
| 90 | |
| 91 | Subsampling 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 |
no outgoing calls
no test coverage detected