| 129 | } |
| 130 | |
| 131 | struct LossAttributes { |
| 132 | AVPixelFormat Format; |
| 133 | int ChromaUndersampling; |
| 134 | int ChromaOversampling; |
| 135 | int DepthDifference; |
| 136 | int CSLoss; // 0 = no difference, 1 = unused, 2 = full conversion required, 3 = alpha loss, 4 = full conversion plus alpha loss, 5 = complete color loss |
| 137 | int CSGain; // alpha plane added, gray converted to yuv/rgb |
| 138 | }; |
| 139 | |
| 140 | static int GetPseudoDepth(const AVPixFmtDescriptor &Desc) { |
| 141 | // Comparing the pseudo depth makes sure that rgb565-ish formats get selected over rgb555-ish ones |
nothing calls this directly
no outgoing calls
no test coverage detected