data NALFrame {
const byte T_UNKNOWN = 0
const byte T_HEADER_SPS = 1
const byte T_HEADER_PPS = 2
const byte T_HEADER_SEI = 3
const byte T_FRAME_I = 4
const byte T_FRAME_P = 5
const byte T_FRAME_B = 6
byte type
int startOffset
int endOffset
}
data SPSHeader {
int width
int height
int profile
int level
bool crop
int cropL
int cropR
int cropT
int cropB
}
interface H264Parser {
NALFrame getNextFrame(byte content[], int offset)
SPSHeader parseSPS(byte content[], int offset)
}To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n media.video.H264Parser -m "reason for update" -u yourUsername
Version 1 (this version) by barry
Notes for this version: Adds H264 annexb file parser