UVC H264视频帧描述符
2021-11-04
2436
30
typedef struct _H264_VIDEO_FORMAT_DESCRIPTOR
{
UINT8 bLength;
UINT8 bDescriptorType;
UINT8 bDescriptorSubtype;
UINT8 bFormatIndex;
UINT8 bNumberFrameDescriptor;
GUID guidFormat; //UINT[16]
UINT8 bBitsPerPixel;
UINT8 bDefaultFrameIndex;
UINT8 bAspectRatioX;
UINT8 bAspectRatioY;
UINT8 bmInterlaceFlags;
UINT8 bCopyProtect;
UINT8 bVariableSize;
}H264_VIDEO_FORMAT_DESCRIPTOR;
bLength : 0x1C (28 bytes)
bDescriptorType : 0x24 (Video Streaming Interface)
bDescriptorSubtype : 0x10 (Frame Based Format Type)
bFormatIndex : 0x03 (3)
bNumFrameDescriptors : 0x03 (3)
guidFormat : {34363248-0000-0010-8000-00AA00389B71} (H264)
bBitsPerPixel : 0x10 (16 bits)
bDefaultFrameIndex : 0x03 (3)
bAspectRatioX : 0x00
bAspectRatioY : 0x00
bmInterlaceFlags : 0x00
D0 IL stream or variable: 0 (no)
D1 Fields per frame : 0 (2 fields)
D2 Field 1 first : 0 (no)
D3 Reserved : 0
D4..5 Field pattern : 0 (Field 1 only)
D6..7 Display Mode : 0 (Bob only)
bCopyProtect : 0x00 (No restrictions)
bVariableSize : 0x01 (Variable Size)
Data (HexDump) : 1C 24 10 03 03 48 32 36 34 00 00 10 00 80 00 00 .$...H264.......
AA 00 38 9B 71 10 03 00 00 00 00 01 ..8.q.......
OUR_GUID_ENTRY(MEDIASUBTYPE_H264,
0x34363248, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71)
H264视频帧格式
#pragma pack(1)
typedef struct _H264_VIDEO_FRAME_DESCRIPTOR
{
UINT8 bLength;
UINT8 bDescriptorType;
UINT8 bDescriptorSubtype;
UINT8 bFrameIndex;
UINT8 bmCapabilities;
UINT16 wWidth;
UINT16 wHeight;
UINT32 dwMinBitRate;
UINT32 dwMaxBitRate;
UINT32 dwDefaultFrameInterval;
UINT8 bFrameIntervalType;
UINT32 dwBytesPerLine;
UINT32 adwFrameInterval[1];
} H264_VIDEO_FRAME_DESCRIPTOR;
#pragma pack()
----- VS Frame Based Payload Frame Type Descriptor ----
bLength : 0x26 (38 bytes)
bDescriptorType : 0x24 (Video Streaming Interface)
bDescriptorSubtype : 0x11 (Frame Based Payload Frame Type)
bFrameIndex : 0x03
bmCapabilities : 0x00
wWidth : 0x0780 (1920)
wHeight : 0x0438 (1080)
dwMinBitRate : 0x13C68000 (331776000 bps -> 41.472 MB/s)
dwMaxBitRate : 0x3B538000 (995328000 bps -> 124.416 MB/s)
dwDefaultFrameInterval : 0x00051615 (33.3333 ms -> 30.000 fps)
bFrameIntervalType : 0x03 (3 discrete frame intervals supported)
dwBytesPerLine : 0x00 (0 bytes)
adwFrameInterval[1] : 0x00051615 (33.3333 ms -> 30.000 fps)
adwFrameInterval[2] : 0x000A2C2A (66.6666 ms -> 15.000 fps)
adwFrameInterval[3] : 0x000F4240 (100.0000 ms -> 10.000 fps)
Data (HexDump) : 26 24 11 03 00 80 07 38 04 00 80 C6 13 00 80 53 &$.....8.......S
3B 15 16 05 00 03 00 00 00 00 15 16 05 00 2A 2C ;.............*,
0A 00 40 42 0F 00 ..@B..
HID人机交互QQ群:564808376
UAC音频QQ群:218581009
UVC相机QQ群:331552032
BOT&UASP大容量存储QQ群:258159197
STC-USB单片机QQ群:315457461
USB技术交流QQ群2:580684376
USB技术交流QQ群:952873936