YUV-RGB-Datenbereichskonvertierungen
Wenn Sie von RGB- oder YUV-Eingaben in YUV- oder RGB-Ausgaben konvertieren möchten, hängt das erwartete Verhalten vom Eingabedatenbereich ab:
Eingabe | Eingabe | Eingabe | Eingabe | Output | Output | Output | Ausgabe | Vorgang |
---|---|---|---|---|---|---|---|---|
data | format | RGB | Nominale | RGB | Nominale | format | data | |
range | range | range | range | range | range | |||
0 - 255 | YUV | – | 2 | – | 2 | YUV | 0 - 255 | Keine |
16-235 | YUV | – | 1 | – | 1 | YUV | 16-235 | Keine |
16-235 | YUV | – | 1 | – | 2 | YUV | 0 - 255 | Skalieren |
0 - 255 | YUV | – | 2 | – | 1 | YUV | 16-235 | Skalieren |
0 - 255 | RGB | 0 | – | – | 1 | YUV | 16-235 | RGBtoYUV |
0 - 255 | RGB | 0 | – | – | 2 | YUV | 0 - 255 | RGBtoYUV |
16-235 | YUV | – | 1 | 0 | – | RGB | 0 - 255 | YUVtoRGB |
0 - 255 | YUV | – | 2 | 0 | – | RGB | 0 - 255 | YUVtoRGB |
In diesem Fall ist der "nominale Bereich" der konstante Wert aus der DXVAHDDDI_NOMINAL_RANGE-Enumeration .
Definitionen von YUV-Formatbereichen in Windows 8.1 finden Sie unter YUV-Formatbereiche.