github.com/bluenviron/mediacommon@v1.9.3/pkg/codecs/mpeg4video/mpeg4_video.go (about) 1 // Package mpeg4video contains utilities to work with MPEG-4 part 2 video codecs. 2 package mpeg4video 3 4 const ( 5 // MaxFrameSize is the maximum size of a frame. 6 MaxFrameSize = 1 * 1024 * 1024 7 ) 8 9 // StartCode is a MPEG-4 Video start code. 10 // Specification: ISO 14496-2, Table 6-3 11 type StartCode uint8 12 13 // start codes. 14 const ( 15 VideoObjectStartCodeFirst StartCode = 0x00 16 VideoObjectStartCodeLast StartCode = 0x1F 17 VisualObjectSequenceStartCode StartCode = 0xB0 18 VideoObjectLayerStartCodeFirst StartCode = 0x20 19 VideoObjectLayerStartCodeLast StartCode = 0x2F 20 UserDataStartCode StartCode = 0xB2 21 GroupOfVOPStartCode StartCode = 0xB3 22 VisualObjectStartCode StartCode = 0xB5 23 VOPStartCode StartCode = 0xB6 24 )