Videountertyp-GUIDs
Die folgenden Videountertyp-GUIDs werden in der Headerdatei mfapi.h definiert. Um den Untertyp anzugeben, legen Sie das attribut MF_MT_SUBTYPE für den Medientyp fest.
Wenn diese Untertypen verwendet werden, legen Sie das attribut MF_MT_MAJOR_TYPE auf MFMediaType_Videofest.
- nicht komprimierte RGB-Formate
- YUV-Formate: 8-Bit- und palettisierte
- YUV-Formate: 10-Bit- und 16-Bit-
- Leuchtdichte und Tiefenformate
- Codierte Videotypen
- Erstellen von Untertyp-GUIDs aus FOURCCs und D3DFORMAT Werte
- Verwandte Themen
Nicht komprimierte RGB-Formate
GUID | Beschreibung |
---|---|
MFVideoFormat_RGB8 | RGB, 8 Bit pro Pixel (bpp). (Dasselbe Speicherlayout wie D3DFMT_P8.) |
MFVideoFormat_RGB555 | RGB 555, 16 bpp. (Dasselbe Speicherlayout wie D3DFMT_X1R5G5B5.) |
MFVideoFormat_RGB565 | RGB 565, 16 bpp. (Dasselbe Speicherlayout wie D3DFMT_R5G6B5.) |
MFVideoFormat_RGB24 | RGB, 24 bpp. |
MFVideoFormat_RGB32 | RGB, 32 bpp. |
MFVideoFormat_ARGB32 | RGB, 32 bpp mit Alphakanal. |
MFVideoFormat_A2R10G10B10 | RGB, 10 bpp für jede Farbe und 2 bpp für Alpha. (Gleiches Speicherlayout wie D3DFMT_A2B10G10R10) |
MFVideoFormat_A16B16G16R16F | RGB, 16 bpp mit Alphakanal. (Gleiches Speicherlayout wie D3DFMT_A16B16G16R16F) |
Anmerkung
Diese Untertypen stimmen nicht mit den RGB-Untertyp-GUIDs überein, die in früheren SDKs verwendet werden, z. B. DirectShow.
YUV-Formate: 8-Bit und palettisiert
GUID | Format | Probenahme | Verpackt oder planar | Bits pro Kanal |
---|---|---|---|---|
MFVideoFormat_AI44 | AI44 | 4:4:4 | Eingepackt | Palettisiert |
MFVideoFormat_AYUV | AYUV | 4:4:4 | Eingepackt | 8 |
MFVideoFormat_I420 | I420 | 4:2:0 | Flach | 8 |
MFVideoFormat_IYUV | IYUV | 4:2:0 | Flach | 8 |
MFVideoFormat_NV11 | NV11 | 4:1:1 | Flach | 8 |
MFVideoFormat_NV12 | NV12 | 4:2:0 | Flach | 8 |
MFVideoFormat_NV21 | NV21 | 4:2:0 | Flach | 8 |
MFVideoFormat_UYVY | UYVY | 4:2:2 | Eingepackt | 8 |
MFVideoFormat_Y41P | Y41P | 4:1:1 | Eingepackt | 8 |
MFVideoFormat_Y41T | Y41T | 4:1:1 | Eingepackt | 8 |
MFVideoFormat_Y42T | Y42T | 4:2:2 | Eingepackt | 8 |
MFVideoFormat_YUY2 | YUY2 | 4:2:2 | Eingepackt | 8 |
MFVideoFormat_YVU9 | YVU9 | 8:4:4 | Flach | 9 |
MFVideoFormat_YV12 | YV12 | 4:2:0 | Flach | 8 |
MFVideoFormat_YVYU | YVYU | 4:2:2 | Eingepackt | 8 |
Die empfohlenen YUV-Formate werden im Thema Empfohlenen 8-Bit-YUV-Formate für das Videorenderingausführlich beschrieben.
Anmerkung
I420 und IYUV weisen dasselbe Layout im Arbeitsspeicher auf, weisen jedoch unterschiedliche Untertyp-GUIDs zu. Die Untertyp-GUIDs entsprechen den FOURCC-Codes "I420" und "IYUV"; weitere Informationen finden Sie unter Video FOURCCs.
YUV-Formate: 10-Bit und 16-Bit
GUID | Format | Probenahme | Verpackt oder planar | Bits pro Kanal |
---|---|---|---|---|
MFVideoFormat_P010 | P010 | 4:2:0 | Flach | 10 |
MFVideoFormat_P016 | P016 | 4:2:0 | Flach | 16 |
MFVideoFormat_P210 | P210 | 4:2:2 | Flach | 10 |
MFVideoFormat_P216 | P216 | 4:2:2 | Flach | 16 |
MFVideoFormat_v210 | v210 | 4:2:2 | Eingepackt | 10 |
MFVideoFormat_v216 | v216 | 4:2:2 | Eingepackt | 16 |
MFVideoFormat_v410 | v40 | 4:4:4 | Eingepackt | 10 |
MFVideoFormat_Y210 | Y210 | 4:2:2 | Eingepackt | 10 |
MFVideoFormat_Y216 | Y216 | 4:2:2 | Eingepackt | 16 |
MFVideoFormat_Y410 | Y40 | 4:4:4 | Eingepackt | 10 |
MFVideoFormat_Y416 | Y416 | 4:4:4 | Eingepackt | 16 |
Weitere Informationen zu diesen Formaten finden Sie unter 10-Bit- und 16-Bit-YUV-Videoformate.
Leuchtdichte und Tiefenformate
GUID | Beschreibung |
---|---|
MFVideoFormat_L8 | Nur 8-Bit-Leuchtdichte. (bpp). (Dasselbe Speicherlayout wie D3DFMT_L8.) |
MFVideoFormat_L16 | Nur 16-Bit-Leuchtdichte. (Dasselbe Speicherlayout wie D3DFMT_L16.) |
MFVideoFormat_D16 | 16-Bit-Z-Puffertiefe. (Dasselbe Speicherlayout wie D3DFMT_D16.) |
Codierte Videotypen
GUID | FOURCC | Beschreibung |
---|---|---|
MFVideoFormat_DV25 | "dv25" | DVCPRO 25 (525-60 oder 625-50). |
MFVideoFormat_DV50 | "dv50" | DVCPRO 50 (525-60 oder 625-50). |
MFVideoFormat_DVC | 'dvc' | DVC/DV Video. |
MFVideoFormat_DVH1 | 'dvh1' | DVCPRO 100 (1080/60i, 1080/50i oder 720/60P). |
MFVideoFormat_DVHD | 'dvhd' | HD-DVCR (1125-60 oder 1250-50). |
MFVideoFormat_DVSD | "dvsd" | SDL-DVCR (525-60 oder 625-50). |
MFVideoFormat_DVSL | 'dvsl' | SD-DVCR (525-60 oder 625-50). |
MFVideoFormat_H263 | "H263" | H.263-Video. |
MFVideoFormat_H264 | "H264" | H.264-Video. Medienbeispiele enthalten H.264-Bitstreamdaten mit Startcodes und enthält interleavierte SPS/PPS. Jedes Beispiel enthält ein vollständiges Bild, entweder ein Feld oder einen Frame. |
MFVideoFormat_H265 | "H265" | H.265-Video. |
MFVideoFormat_H264_ES | Nicht zutreffend | H.264-Elementardatenstrom. Dieser Medientyp ist mit MFVideoFormat_H264identisch, außer Medienbeispiele enthalten einen fragmentierten H.264-Bitstream. Jedes Beispiel kann ein Teilbild enthalten; mehrere vollständige Bilder; oder mindestens ein vollständiges Bild sowie ein Teilbild. |
MFVideoFormat_HEVC | "HEVC" | Das HEVC-Hauptprofil und das Hauptbildprofil. Jedes Beispiel enthält ein vollständiges Bild. Unterstützt in Windows 8.1 und höher. Das HEVC-Hauptprofil und der Elementardatenstrom "Main Still Picture". |
MFVideoFormat_HEVC_ES | "HEVS" | Dieser Medientyp ist identisch mit MFVideoFormat_HEVC, außer Medienbeispiele enthalten einen fragmentierten HEVC-Bitstream. Jedes Beispiel kann ein Teilbild enthalten; mehrere vollständige Bilder; oder mindestens ein vollständiges Bild sowie ein Teilbild. Unterstützt in Windows 8.1 und höher. |
MFVideoFormat_M4S2 | 'M4S2' | MPEG-4 Teil 2-Video. |
MFVideoFormat_MJPG | 'MJPG' | Motion JPEG. |
MFVideoFormat_MP43 | "MP43" | Microsoft MPEG 4 Codec Version 3. Dieser Codec wird nicht mehr unterstützt. |
MFVideoFormat_MP4S | "MP4S" | ISO MPEG 4 Codec Version 1. |
MFVideoFormat_MP4V | "MP4V" | MPEG-4 Teil 2-Video. |
MFVideoFormat_MPEG2 | Nicht zutreffend | MPEG-2-Video. (Entspricht MEDIASUBTYPE_MPEG2_VIDEO in DirectShow.) |
MFVideoFormat_VP80 | "MPG1" | VP8 Video. |
MFVideoFormat_VP90 | "MPG1" | VP9 Video. |
MFVideoFormat_MPG1 | "MPG1" | MPEG-1-Video. |
MFVideoFormat_MSS1 | "MSS1" | Windows Media Screen Codec, Version 1. |
MFVideoFormat_MSS2 | 'MSS2' | Windows Media Video 9-Bildschirmcodec. |
MFVideoFormat_WMV1 | "WMV1" | Windows Media Video Codec Version 7. |
MFVideoFormat_WMV2 | "WMV2" | Windows Media Video 8-Codec. |
MFVideoFormat_WMV3 | "WMV3" | Windows Media Video 9-Codec. |
MFVideoFormat_WVC1 | "WVC1" | SMPTE 421M ("VC-1"). |
MFVideoFormat_420O | '420O' | 8-Bit pro Kanalplanar YUV 4:2:0 Video. |
MFVideoFormat_AV1 | 'AV01' | AV1-Video. |
Erstellen von Untertyp-GUIDs aus FOURCCs und D3DFORMAT Werten
Videoformate werden häufig durch FOURCCs oder D3DFORMAT Werte dargestellt. Ein Bereich von GUIDs ist für die Darstellung dieser Werte als Untertypen reserviert. Diese GUIDs weisen das Formular XXXXXXXX-0000-0010-8000-00AA00389B71
auf, wobei XXXXXXXX
der 4-Byte FOURCC-Code oder D3DFORMAT Wert ist.
Wenn ein Videoformat einen zugehörigen FOURCC- oder D3DFORMAT-Wert aufweist, können Sie die entsprechende Untertyp-GUID wie folgt erstellen: Beginnen Sie mit der Konstanten MFVideoFormat_Base, und ersetzen Sie die erste DWORD- der GUID durch das Video FOURCC oder den D3DFORMAT Wert. Sie können das makro DEFINE_MEDIATYPE_GUID zu diesem Zweck verwenden.
Anmerkung
DirectShow verwendet dieses System auch für die meisten Videountertypen, aber nicht für nicht komprimierte RGB-Formate. Daher stimmen die RGB-Untertypen in DirectShow nicht mit den RGB-Untertypen in Media Foundation überein.
Die D3DFORMAT Enumeration wird in der Headerdatei d3d9types.h definiert. Die folgende Tabelle zeigt die gängigsten unkomprimierten RGB-Formate und den entsprechenden D3DFORMAT Wert.
RGB-Format | wert D3DFORMAT |
---|---|
32-Bit RGB | D3DFMT_X8R8G8B8 |
32-Bit RGB mit Alphakanal | D3DFMT_A8R8G8B8 |
24-Bit RGB | D3DFMT_R8G8B8 |
RGB 555 (16-bit RGB) | D3DFMT_X1R5G5B5 |
RGB 555 mit Alphakanal | D3DFMT_A1R5G5B5 |
RGB 565 (16-bit RGB) | D3DFMT_R5G6B5 |
8-Bit-Palettized RGB | D3DFMT_P8 |
A2 R10 G10 B10 (32-Bit RGB mit Alphakanal; 10 Bit pro RGB-Kanal) | D3DFMT_A2R10G10B10 |
A2 B10 G10 R10 (32-Bit RGB mit Alphakanal; 10 Bit pro RGB-Kanal) | D3DFMT_A2B10G10R10 |
Nur 8-Bit-Leuchtdichte. | D3DFMT_L8 |
Nur 16-Bit-Leuchtdichte. | D3DFMT_L16 |
16-Bit-Z-Puffertiefe | D3DFMT_D16 |
Weitere Informationen zu FOURCCs finden Sie unter Video FOURCCs.
Verwandte Themen