| 117 | } |
| 118 | |
| 119 | Size calculateChromaSize(Size lumaSize, vvdecColorFormat fmt) |
| 120 | { |
| 121 | if (fmt == VVDEC_CF_YUV400_PLANAR) |
| 122 | return {}; |
| 123 | if (fmt == VVDEC_CF_YUV420_PLANAR) |
| 124 | return {lumaSize.width / 2, lumaSize.height / 2}; |
| 125 | if (fmt == VVDEC_CF_YUV422_PLANAR) |
| 126 | return {lumaSize.width / 2, lumaSize.height}; |
| 127 | if (fmt == VVDEC_CF_YUV444_PLANAR) |
| 128 | return lumaSize; |
| 129 | |
| 130 | return {}; |
| 131 | } |
| 132 | |
| 133 | } // namespace |
| 134 |
no outgoing calls
no test coverage detected