| 73 | { |
| 74 | |
| 75 | Subsampling convertFromInternalSubsampling(de265_chroma fmt) |
| 76 | { |
| 77 | if (fmt == de265_chroma_mono) |
| 78 | return Subsampling::YUV_400; |
| 79 | else if (fmt == de265_chroma_420) |
| 80 | return Subsampling::YUV_420; |
| 81 | else if (fmt == de265_chroma_422) |
| 82 | return Subsampling::YUV_422; |
| 83 | else if (fmt == de265_chroma_444) |
| 84 | return Subsampling::YUV_444; |
| 85 | |
| 86 | return Subsampling::UNKNOWN; |
| 87 | } |
| 88 | |
| 89 | } // namespace |
| 90 |