| 74 | { |
| 75 | |
| 76 | Subsampling 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 |
no outgoing calls
no test coverage detected