libgpac
Documentation of the core library of GPAC
|
Constants. More...
Macros | |
#define | GF_4CC(a, b, c, d) ((((u32)a)<<24)|(((u32)b)<<16)|(((u32)c)<<8)|(d)) |
#define | GF_AUDIO_CH_SCREEN_EDGE_LEFT 0x2000000000ULL |
#define | GF_AUDIO_CH_SCREEN_EDGE_RIGHT 0x4000000000ULL |
#define | GF_AUDIO_CH_BACK_SURROUND_LEFT 0x20000000000ULL |
#define | GF_AUDIO_CH_BACK_SURROUND_RIGHT 0x40000000000ULL |
#define | GF_HLS_SAMPLE_AES_SCHEME GF_4CC('s','a','e','s') |
#define | GF_RTP_TX3G_SIDX_OFFSET 129 |
#define | RFC6381_CODEC_NAME_SIZE_MAX 100 |
#define | GF_ISOM_UDTA_GPAC_SRD GF_4CC('G','S','R','D') |
#define | GPAC_VERSION |
GPAC Version. More... | |
#define | GPAC_VERSION_MAJOR 12 |
#define | GPAC_VERSION_MINOR 15 |
#define | GPAC_VERSION_MICRO 0 |
Enumerations | |
enum | { GF_STREAM_UNKNOWN = 0 , GF_STREAM_OD = 0x01 , GF_STREAM_OCR = 0x02 , GF_STREAM_SCENE = 0x03 , GF_STREAM_VISUAL = 0x04 , GF_STREAM_AUDIO = 0x05 , GF_STREAM_MPEG7 = 0x06 , GF_STREAM_IPMP = 0x07 , GF_STREAM_OCI = 0x08 , GF_STREAM_MPEGJ = 0x09 , GF_STREAM_INTERACT = 0x0A , GF_STREAM_IPMP_TOOL = 0x0B , GF_STREAM_FONT = 0x0C , GF_STREAM_TEXT = 0x0D , GF_STREAM_ND_SUBPIC = 0x38 , GF_STREAM_PRIVATE_SCENE = 0x20 , GF_STREAM_METADATA = 0x21 , GF_STREAM_ENCRYPTED = 0xE0 , GF_STREAM_FILE = 0xE1 } |
Supported media stream types. More... | |
enum | GF_PixelFormat { GF_PIXEL_GREYSCALE = GF_4CC('G','R','E','Y') , GF_PIXEL_ALPHAGREY = GF_4CC('G','R','A','L') , GF_PIXEL_GREYALPHA = GF_4CC('A','L','G','R') , GF_PIXEL_RGB_444 = GF_4CC('R','4','4','4') , GF_PIXEL_RGB_555 = GF_4CC('R','5','5','5') , GF_PIXEL_RGB_565 = GF_4CC('R','5','6','5') , GF_PIXEL_RGB = GF_4CC('R','G','B','3') , GF_PIXEL_BGR = GF_4CC('B','G','R','3') , GF_PIXEL_RGBX = GF_4CC('R','G','B','4') , GF_PIXEL_BGRX = GF_4CC('B','G','R','4') , GF_PIXEL_XRGB = GF_4CC('R','G','B','X') , GF_PIXEL_XBGR = GF_4CC('B','G','R','X') , GF_PIXEL_ARGB = GF_4CC('A','R','G','B') , GF_PIXEL_RGBA = GF_4CC('R','G','B', 'A') , GF_PIXEL_BGRA = GF_4CC('B','G','R','A') , GF_PIXEL_ABGR = GF_4CC('A','B','G','R') , GF_PIXEL_RGBD = GF_4CC('R', 'G', 'B', 'D') , GF_PIXEL_RGBDS = GF_4CC('3', 'C', 'D', 'S') , GF_PIXEL_RGB_DEPTH = GF_4CC('R', 'G', 'B', 'd') , GF_PIXEL_UNCV = GF_4CC('u', 'n', 'c', 'v') , GF_PIXEL_YUYV = GF_4CC('Y','U','Y','V') , GF_PIXEL_YVYU = GF_4CC('Y','V','Y','U') , GF_PIXEL_UYVY = GF_4CC('U','Y','V','Y') , GF_PIXEL_VYUY = GF_4CC('V','Y','U','Y') , GF_PIXEL_YUYV_10 = GF_4CC('Y','U','Y','L') , GF_PIXEL_YVYU_10 = GF_4CC('Y','V','Y','L') , GF_PIXEL_UYVY_10 = GF_4CC('U','Y','V','L') , GF_PIXEL_VYUY_10 = GF_4CC('V','Y','U','L') , GF_PIXEL_YUV = GF_4CC('Y','U','1','2') , GF_PIXEL_YVU = GF_4CC('Y','V','1','2') , GF_PIXEL_YUV_10 = GF_4CC('Y','0','1','0') , GF_PIXEL_YUVA = GF_4CC('Y', 'U', 'V', 'A') , GF_PIXEL_YUVD = GF_4CC('Y', 'U', 'V', 'D') , GF_PIXEL_NV21 = GF_4CC('N','V','2','1') , GF_PIXEL_NV21_10 = GF_4CC('N','2','1','0') , GF_PIXEL_NV12 = GF_4CC('N','V','1','2') , GF_PIXEL_NV12_10 = GF_4CC('N','1','2','0') , GF_PIXEL_YUV422 = GF_4CC('Y','4','4','2') , GF_PIXEL_YUV422_10 = GF_4CC('Y','2','1','0') , GF_PIXEL_YUVA444 = GF_4CC('Y','A','4','4') , GF_PIXEL_YUV444 = GF_4CC('Y','4','4','4') , GF_PIXEL_YUV444_10 = GF_4CC('Y','4','1','0') , GF_PIXEL_YUV444_PACK = GF_4CC('Y','U','V','4') , GF_PIXEL_VYU444_PACK = GF_4CC('V','Y','U','4') , GF_PIXEL_YUVA444_PACK = GF_4CC('Y','A','4','p') , GF_PIXEL_UYVA444_PACK = GF_4CC('U','Y','V','A') , GF_PIXEL_YUV444_10_PACK = GF_4CC('Y','4','1','p') , GF_PIXEL_V210 = GF_4CC('v','2','1','0') , GF_PIXEL_GL_EXTERNAL = GF_4CC('E','X','G','L') } |
Pixel Formats. More... | |
enum | GF_CodecID { GF_CODECID_NONE = 0 , GF_CODECID_BIFS = 0x01 , GF_CODECID_OD_V1 = 0x01 , GF_CODECID_BIFS_V2 = 0x02 , GF_CODECID_OD_V2 = 0x02 , GF_CODECID_INTERACT = 0x03 , GF_CODECID_BIFS_EXTENDED = 0x04 , GF_CODECID_AFX = 0x05 , GF_CODECID_FONT = 0x06 , GF_CODECID_SYNTHESIZED_TEXTURE = 0x07 , GF_CODECID_TEXT_MPEG4 = 0x08 , GF_CODECID_LASER = 0x09 , GF_CODECID_SAF = 0x0A , GF_CODECID_MPEG4_PART2 = 0x20 , GF_CODECID_AVC = 0x21 , GF_CODECID_AVC_PS = 0x22 , GF_CODECID_HEVC = 0x23 , GF_CODECID_SVC = 0x24 , GF_CODECID_LHVC = 0x25 , GF_CODECID_MVC = 0x29 , GF_CODECID_AAC_MPEG4 = 0x40 , GF_CODECID_MPEG2_SIMPLE = 0x60 , GF_CODECID_MPEG2_MAIN = 0x61 , GF_CODECID_MPEG2_SNR = 0x62 , GF_CODECID_MPEG2_SPATIAL = 0x63 , GF_CODECID_MPEG2_HIGH = 0x64 , GF_CODECID_MPEG2_422 = 0x65 , GF_CODECID_AAC_MPEG2_MP = 0x66 , GF_CODECID_AAC_MPEG2_LCP = 0x67 , GF_CODECID_AAC_MPEG2_SSRP = 0x68 , GF_CODECID_MPEG2_PART3 = 0x69 , GF_CODECID_MPEG1 = 0x6A , GF_CODECID_MPEG_AUDIO = 0x6B , GF_CODECID_JPEG = 0x6C , GF_CODECID_PNG = 0x6D , GF_CODECID_LAST_MPEG4_MAPPING = 0xFF , GF_CODECID_J2K = GF_4CC('j','p','2','k') , GF_CODECID_S263 = GF_4CC('s','2','6','3') , GF_CODECID_H263 = GF_4CC('h','2','6','3') , GF_CODECID_HEVC_TILES = GF_4CC( 'h', 'v', 't', '1' ) , GF_CODECID_HEVC_MERGE = GF_4CC( 'h', 'v', 'c', 'm' ) , GF_CODECID_EVRC = GF_4CC('s','e','v','c') , GF_CODECID_SMV = GF_4CC('s','s','m','v') , GF_CODECID_QCELP = GF_4CC('s','q','c','p') , GF_CODECID_AMR = GF_4CC('s','a','m','r') , GF_CODECID_AMR_WB = GF_4CC('s','a','w','b') , GF_CODECID_EVRC_PV = GF_4CC('p','e','v','c') , GF_CODECID_SMPTE_VC1 = GF_4CC('v','c','-','1') , GF_CODECID_DIRAC = GF_4CC('d','r','a','c') , GF_CODECID_AC3 = GF_4CC('a','c','-','3') , GF_CODECID_EAC3 = GF_4CC('e','c','-','3') , GF_CODECID_TRUEHD = GF_4CC('m','l','p','a') , GF_CODECID_DRA = GF_4CC('d','r','a','1') , GF_CODECID_G719 = GF_4CC('g','7','1','9') , GF_CODECID_DTS_EXPRESS_LBR = GF_4CC('d','t','s','e') , GF_CODECID_DTS_CA = GF_4CC('d','t','s','c') , GF_CODECID_DTS_HD_HR_MASTER = GF_4CC('d','t','s','h') , GF_CODECID_DTS_HD_LOSSLESS = GF_4CC('d','t','s','l') , GF_CODECID_DTS_X = GF_4CC('d','t','s','x') , GF_CODECID_DTS_Y = GF_4CC('d','t','s','y') , GF_CODECID_DVB_EIT = GF_4CC('e','i','t',' ') , GF_CODECID_SVG = GF_4CC('s','g','g',' ') , GF_CODECID_SVG_GZ = GF_4CC('s','v','g','z') , GF_CODECID_DIMS = GF_4CC('d','i','m','s') , GF_CODECID_WEBVTT = GF_4CC('w','v','t','t') , GF_CODECID_SIMPLE_TEXT = GF_4CC('s','t','x','t') , GF_CODECID_META_TEXT = GF_4CC('m','e','t','t') , GF_CODECID_META_XML = GF_4CC('m','e','t','x') , GF_CODECID_SUBS_TEXT = GF_4CC('s','b','t','t') , GF_CODECID_SUBS_XML = GF_4CC('s','t','p','p') , GF_CODECID_TX3G = GF_4CC( 't', 'x', '3', 'g' ) , GF_CODECID_SUBS_SSA = GF_4CC( 'a', 's', 's', 'a' ) , GF_CODECID_DVB_SUBS = GF_4CC( 'd', 'v', 'b', 's' ) , GF_CODECID_DVB_TELETEXT = GF_4CC( 'd', 'v', 'b', 't' ) , GF_CODECID_SCTE35 = GF_4CC( 's', 'c', '3', '5' ) , GF_CODECID_THEORA = GF_4CC('t','h','e','u') , GF_CODECID_VORBIS = GF_4CC('v','o','r','b') , GF_CODECID_FLAC = GF_4CC('f','l','a','c') , GF_CODECID_SPEEX = GF_4CC('s','p','e','x') , GF_CODECID_OPUS = GF_4CC('O','p','u','s') , GF_CODECID_SUBPIC = GF_4CC('s','u','b','p') , GF_CODECID_ADPCM = GF_4CC('A','P','C','M') , GF_CODECID_IBM_CVSD = GF_4CC('C','S','V','D') , GF_CODECID_ALAW = GF_4CC('A','L','A','W') , GF_CODECID_MULAW = GF_4CC('M','L','A','W') , GF_CODECID_OKI_ADPCM = GF_4CC('O','P','C','M') , GF_CODECID_DVI_ADPCM = GF_4CC('D','P','C','M') , GF_CODECID_DIGISTD = GF_4CC('D','S','T','D') , GF_CODECID_YAMAHA_ADPCM = GF_4CC('Y','P','C','M') , GF_CODECID_DSP_TRUESPEECH = GF_4CC('T','S','P','E') , GF_CODECID_GSM610 = GF_4CC('G','6','1','0') , GF_CODECID_IBM_MULAW = GF_4CC('I','U','L','W') , GF_CODECID_IBM_ALAW = GF_4CC('I','A','L','W') , GF_CODECID_IBM_ADPCM = GF_4CC('I','P','C','M') , GF_CODECID_FLASH = GF_4CC( 'f', 'l', 's', 'h' ) , GF_CODECID_RAW = GF_4CC('R','A','W','M') , GF_CODECID_RAW_UNCV = GF_4CC('U','N','C','V') , GF_CODECID_AV1 = GF_4CC('A','V','1',' ') , GF_CODECID_VP8 = GF_4CC('V','P','0','8') , GF_CODECID_VP9 = GF_4CC('V','P','0','9') , GF_CODECID_VP10 = GF_4CC('V','P','1','0') , GF_CODECID_MPHA = GF_4CC('m','p','h','a') , GF_CODECID_MHAS = GF_4CC('m','h','a','s') , GF_CODECID_APCH = GF_4CC( 'a', 'p', 'c', 'h' ) , GF_CODECID_APCO = GF_4CC( 'a', 'p', 'c', 'o' ) , GF_CODECID_APCN = GF_4CC( 'a', 'p', 'c', 'n' ) , GF_CODECID_APCS = GF_4CC( 'a', 'p', 'c', 's' ) , GF_CODECID_AP4X = GF_4CC( 'a', 'p', '4', 'x' ) , GF_CODECID_AP4H = GF_4CC( 'a', 'p', '4', 'h' ) , GF_CODECID_TMCD = GF_4CC('t','m','c','d') , GF_CODECID_EVTE = GF_4CC('e','v','t','e') , GF_CODECID_FFV1 = GF_4CC('f','f','v','1') , GF_CODECID_FFMPEG = GF_4CC('F','F','I','D') , GF_CODECID_VVC = GF_4CC('v','v','c',' ') , GF_CODECID_VVC_SUBPIC = GF_4CC('v','v','c','s') , GF_CODECID_USAC = GF_4CC('u','s','a','c') , GF_CODECID_MPEG_AUDIO_L1 = GF_4CC('m','p','a','1') , GF_CODECID_MSPEG4_V3 = GF_4CC('D','I','V','3') , GF_CODECID_ALAC = GF_4CC('A','L','A','C') , GF_CODECID_DNXHD = GF_4CC('D','N','x','H') , GF_CODECID_FAKE_MP2T = GF_4CC('M','P','2','T') } |
Codec IDs. More... | |
enum | { GPAC_AFX_3DMC = 0x00 , GPAC_AFX_WAVELET_SUBDIVISION = 0x01 , GPAC_AFX_MESHGRID = 0x02 , GPAC_AFX_COORDINATE_INTERPOLATOR = 0x03 , GPAC_AFX_ORIENTATION_INTERPOLATOR = 0x04 , GPAC_AFX_POSITION_INTERPOLATOR = 0x05 , GPAC_AFX_OCTREE_IMAGE = 0x06 , GPAC_AFX_BBA = 0x07 , GPAC_AFX_POINT_TEXTURE = 0x08 , GPAC_AFX_3DMC_EXT = 0x09 , GPAC_AFX_FOOTPRINT = 0x0A , GPAC_AFX_ANIMATED_MESH = 0x0B , GPAC_AFX_SCALABLE_COMPLEXITY = 0x0C } |
AFX Object Code. More... | |
enum | { GF_AUDIO_CH_FRONT_LEFT = (1) , GF_AUDIO_CH_FRONT_RIGHT = (1<<1) , GF_AUDIO_CH_FRONT_CENTER = (1<<2) , GF_AUDIO_CH_LFE = (1<<3) , GF_AUDIO_CH_SURROUND_LEFT = (1 << 4) , GF_AUDIO_CH_SURROUND_RIGHT = (1 << 5) , GF_AUDIO_CH_FRONT_CENTER_LEFT = (1 << 6) , GF_AUDIO_CH_FRONT_CENTER_RIGHT = (1 << 7) , GF_AUDIO_CH_REAR_SURROUND_LEFT = (1<<8) , GF_AUDIO_CH_REAR_SURROUND_RIGHT = (1<<9) , GF_AUDIO_CH_REAR_CENTER = (1 << 10) , GF_AUDIO_CH_SURROUND_DIRECT_LEFT = (1 << 11) , GF_AUDIO_CH_SURROUND_DIRECT_RIGHT = (1 << 12) , GF_AUDIO_CH_SIDE_SURROUND_LEFT = (1 << 13) , GF_AUDIO_CH_SIDE_SURROUND_RIGHT = (1 << 14) , GF_AUDIO_CH_WIDE_FRONT_LEFT = (1 << 15) , GF_AUDIO_CH_WIDE_FRONT_RIGHT = (1 << 16) , GF_AUDIO_CH_FRONT_TOP_LEFT = (1 << 17) , GF_AUDIO_CH_FRONT_TOP_RIGHT = (1 << 18) , GF_AUDIO_CH_FRONT_TOP_CENTER = (1 << 19) , GF_AUDIO_CH_SURROUND_TOP_LEFT = (1 << 20) , GF_AUDIO_CH_SURROUND_TOP_RIGHT = (1 << 21) , GF_AUDIO_CH_REAR_CENTER_TOP = (1 << 22) , GF_AUDIO_CH_SIDE_SURROUND_TOP_LEFT = (1 << 23) , GF_AUDIO_CH_SIDE_SURROUND_TOP_RIGHT = (1 << 24) , GF_AUDIO_CH_CENTER_SURROUND_TOP = (1 << 25) , GF_AUDIO_CH_LFE2 = (1 << 26) , GF_AUDIO_CH_FRONT_BOTTOM_LEFT = (1 << 27) , GF_AUDIO_CH_FRONT_BOTTOM_RIGHT = (1 << 28) , GF_AUDIO_CH_FRONT_BOTTOM_CENTER = (1 << 29) , GF_AUDIO_CH_SURROUND_BOTTOM_LEFT = (1 << 30) , GF_AUDIO_CH_SURROUND_BOTTOM_RIGHT = 0x80000000 } |
Audio Channel Configuration. More... | |
enum | GF_AudioFormat { GF_AUDIO_FMT_U8 = 1 , GF_AUDIO_FMT_S16 , GF_AUDIO_FMT_S16_BE , GF_AUDIO_FMT_S32 , GF_AUDIO_FMT_S32_BE , GF_AUDIO_FMT_FLT , GF_AUDIO_FMT_FLT_BE , GF_AUDIO_FMT_DBL , GF_AUDIO_FMT_DBL_BE , GF_AUDIO_FMT_S24 , GF_AUDIO_FMT_S24_BE , GF_AUDIO_FMT_LAST_PACKED , GF_AUDIO_FMT_U8P , GF_AUDIO_FMT_S16P , GF_AUDIO_FMT_S32P , GF_AUDIO_FMT_FLTP , GF_AUDIO_FMT_DBLP , GF_AUDIO_FMT_S24P } |
Audio Sample format. More... | |
enum | GF_ColorPrimaries { GF_COLOR_PRIM_RESERVED0 = 0 , GF_COLOR_PRIM_BT709 = 1 , GF_COLOR_PRIM_UNSPECIFIED = 2 , GF_COLOR_PRIM_RESERVED = 3 , GF_COLOR_PRIM_BT470M = 4 , GF_COLOR_PRIM_BT470BG = 5 , GF_COLOR_PRIM_SMPTE170M = 6 , GF_COLOR_PRIM_SMPTE240M = 7 , GF_COLOR_PRIM_FILM = 8 , GF_COLOR_PRIM_BT2020 = 9 , GF_COLOR_PRIM_SMPTE428 = 10 , GF_COLOR_PRIM_SMPTE431 = 11 , GF_COLOR_PRIM_SMPTE432 = 12 , GF_COLOR_PRIM_EBU3213 = 22 } |
enum | GF_ColorTransferCharacteristic { GF_COLOR_TRC_RESERVED0 = 0 , GF_COLOR_TRC_BT709 = 1 , GF_COLOR_TRC_UNSPECIFIED = 2 , GF_COLOR_TRC_RESERVED = 3 , GF_COLOR_TRC_GAMMA22 = 4 , GF_COLOR_TRC_GAMMA28 = 5 , GF_COLOR_TRC_SMPTE170M = 6 , GF_COLOR_TRC_SMPTE240M = 7 , GF_COLOR_TRC_LINEAR = 8 , GF_COLOR_TRC_LOG = 9 , GF_COLOR_TRC_LOG_SQRT = 10 , GF_COLOR_TRC_IEC61966_2_4 = 11 , GF_COLOR_TRC_BT1361_ECG = 12 , GF_COLOR_TRC_IEC61966_2_1 = 13 , GF_COLOR_TRC_BT2020_10 = 14 , GF_COLOR_TRC_BT2020_12 = 15 , GF_COLOR_TRC_SMPTE2084 = 16 , GF_COLOR_TRC_SMPTE428 = 17 , GF_COLOR_TRC_ARIB_STD_B67 = 18 } |
enum | GF_ColorMatrixCoefficients { GF_COLOR_MX_RGB = 0 , GF_COLOR_MX_BT709 = 1 , GF_COLOR_MX_UNSPECIFIED = 2 , GF_COLOR_MX_RESERVED = 3 , GF_COLOR_MX_FCC47 = 4 , GF_COLOR_MX_BT470BG = 5 , GF_COLOR_MX_SMPTE170M = 6 , GF_COLOR_MX_SMPTE240M = 7 , GF_COLOR_MX_YCGCO = 8 , GF_COLOR_MX_BT2020_NCL = 9 , GF_COLOR_MX_BT2020_CL = 10 , GF_COLOR_MX_SMPTE2085 = 11 } |
enum | GF_ChromaLocation { GF_CHROMALOC_UNKNOWN =0 , GF_CHROMALOC_LEFT , GF_CHROMALOC_CENTER , GF_CHROMALOC_TOPLEFT , GF_CHROMALOC_TOP , GF_CHROMALOC_BOTTOMLEFT , GF_CHROMALOC_BOTTOM , GF_CHROMALOC_DV420 } |
enum | { GF_DIMS_UNIT_S = 1 , GF_DIMS_UNIT_M = 1<<1 , GF_DIMS_UNIT_I = 1<<2 , GF_DIMS_UNIT_D = 1<<3 , GF_DIMS_UNIT_P = 1<<4 , GF_DIMS_UNIT_C = 1<<5 } |
DIMS Unit header flags. More... | |
enum | { GF_AVC_NALU_NON_IDR_SLICE = 1 , GF_AVC_NALU_DP_A_SLICE = 2 , GF_AVC_NALU_DP_B_SLICE = 3 , GF_AVC_NALU_DP_C_SLICE = 4 , GF_AVC_NALU_IDR_SLICE = 5 , GF_AVC_NALU_SEI = 6 , GF_AVC_NALU_SEQ_PARAM = 7 , GF_AVC_NALU_PIC_PARAM = 8 , GF_AVC_NALU_ACCESS_UNIT = 9 , GF_AVC_NALU_END_OF_SEQ = 10 , GF_AVC_NALU_END_OF_STREAM = 11 , GF_AVC_NALU_FILLER_DATA = 12 , GF_AVC_NALU_SEQ_PARAM_EXT = 13 , GF_AVC_NALU_SVC_PREFIX_NALU = 14 , GF_AVC_NALU_SVC_SUBSEQ_PARAM = 15 , GF_AVC_NALU_SLICE_AUX = 19 , GF_AVC_NALU_SVC_SLICE = 20 , GF_AVC_NALU_VDRD = 24 , GF_AVC_NALU_DV_RPU = 28 , GF_AVC_NALU_DV_EL = 30 , GF_AVC_NALU_FF_AGGREGATOR =30 , GF_AVC_NALU_FF_EXTRACTOR =31 } |
enum | { GF_AVC_TYPE_P = 0 , GF_AVC_TYPE_B = 1 , GF_AVC_TYPE_I = 2 , GF_AVC_TYPE_SP = 3 , GF_AVC_TYPE_SI = 4 , GF_AVC_TYPE2_P = 5 , GF_AVC_TYPE2_B = 6 , GF_AVC_TYPE2_I = 7 , GF_AVC_TYPE2_SP = 8 , GF_AVC_TYPE2_SI = 9 } |
enum | { GF_HEVC_NALU_SLICE_TRAIL_N = 0 , GF_HEVC_NALU_SLICE_TRAIL_R = 1 , GF_HEVC_NALU_SLICE_TSA_N = 2 , GF_HEVC_NALU_SLICE_TSA_R = 3 , GF_HEVC_NALU_SLICE_STSA_N = 4 , GF_HEVC_NALU_SLICE_STSA_R = 5 , GF_HEVC_NALU_SLICE_RADL_N = 6 , GF_HEVC_NALU_SLICE_RADL_R = 7 , GF_HEVC_NALU_SLICE_RASL_N = 8 , GF_HEVC_NALU_SLICE_RASL_R = 9 , GF_HEVC_NALU_SLICE_RSV_VCL_N10 = 10 , GF_HEVC_NALU_SLICE_RSV_VCL_N12 = 12 , GF_HEVC_NALU_SLICE_RSV_VCL_N14 = 14 , GF_HEVC_NALU_SLICE_RSV_VCL_R11 = 11 , GF_HEVC_NALU_SLICE_RSV_VCL_R13 = 13 , GF_HEVC_NALU_SLICE_RSV_VCL_R15 = 15 , GF_HEVC_NALU_SLICE_BLA_W_LP = 16 , GF_HEVC_NALU_SLICE_BLA_W_DLP = 17 , GF_HEVC_NALU_SLICE_BLA_N_LP = 18 , GF_HEVC_NALU_SLICE_IDR_W_DLP = 19 , GF_HEVC_NALU_SLICE_IDR_N_LP = 20 , GF_HEVC_NALU_SLICE_CRA = 21 , GF_HEVC_NALU_VID_PARAM = 32 , GF_HEVC_NALU_SEQ_PARAM = 33 , GF_HEVC_NALU_PIC_PARAM = 34 , GF_HEVC_NALU_ACCESS_UNIT = 35 , GF_HEVC_NALU_END_OF_SEQ = 36 , GF_HEVC_NALU_END_OF_STREAM = 37 , GF_HEVC_NALU_FILLER_DATA = 38 , GF_HEVC_NALU_SEI_PREFIX = 39 , GF_HEVC_NALU_SEI_SUFFIX = 40 , GF_HEVC_NALU_FF_AGGREGATOR =48 , GF_HEVC_NALU_FF_EXTRACTOR =49 , GF_HEVC_NALU_DV_RPU = 62 , GF_HEVC_NALU_DV_EL = 63 } |
enum | { GF_VVC_NALU_SLICE_TRAIL = 0 , GF_VVC_NALU_SLICE_STSA = 1 , GF_VVC_NALU_SLICE_RADL = 2 , GF_VVC_NALU_SLICE_RASL = 3 , GF_VVC_NALU_SLICE_IDR_W_RADL = 7 , GF_VVC_NALU_SLICE_IDR_N_LP = 8 , GF_VVC_NALU_SLICE_CRA = 9 , GF_VVC_NALU_SLICE_GDR = 10 , GF_VVC_NALU_OPI = 12 , GF_VVC_NALU_DEC_PARAM = 13 , GF_VVC_NALU_VID_PARAM = 14 , GF_VVC_NALU_SEQ_PARAM = 15 , GF_VVC_NALU_PIC_PARAM = 16 , GF_VVC_NALU_APS_PREFIX = 17 , GF_VVC_NALU_APS_SUFFIX = 18 , GF_VVC_NALU_PIC_HEADER = 19 , GF_VVC_NALU_ACCESS_UNIT = 20 , GF_VVC_NALU_END_OF_SEQ = 21 , GF_VVC_NALU_END_OF_STREAM = 22 , GF_VVC_NALU_SEI_PREFIX = 23 , GF_VVC_NALU_SEI_SUFFIX = 24 , GF_VVC_NALU_FILLER_DATA = 25 } |
enum | GF_ID3v2FrameType { GF_ID3V2_FRAME_AENC = GF_4CC('A','E','N','C') , GF_ID3V2_FRAME_APIC = GF_4CC('A','P','I','C') , GF_ID3V2_FRAME_COMM = GF_4CC('C','O','M','M') , GF_ID3V2_FRAME_COMR = GF_4CC('C','O','M','R') , GF_ID3V2_FRAME_ENCR = GF_4CC('E','N','C','R') , GF_ID3V2_FRAME_EQUA = GF_4CC('E','Q','U','A') , GF_ID3V2_FRAME_ETCO = GF_4CC('E','T','C','O') , GF_ID3V2_FRAME_GEOB = GF_4CC('G','E','O','B') , GF_ID3V2_FRAME_GRID = GF_4CC('G','R','I','D') , GF_ID3V2_FRAME_IPLS = GF_4CC('I','P','L','S') , GF_ID3V2_FRAME_LINK = GF_4CC('L','I','N','K') , GF_ID3V2_FRAME_MCDI = GF_4CC('M','C','D','I') , GF_ID3V2_FRAME_MLLT = GF_4CC('M','L','L','T') , GF_ID3V2_FRAME_OWNE = GF_4CC('O','W','N','E') , GF_ID3V2_FRAME_PRIV = GF_4CC('P','R','I','V') , GF_ID3V2_FRAME_PCNT = GF_4CC('P','C','N','T') , GF_ID3V2_FRAME_POPM = GF_4CC('P','O','P','M') , GF_ID3V2_FRAME_POSS = GF_4CC('P','O','S','S') , GF_ID3V2_FRAME_RBUF = GF_4CC('R','B','U','F') , GF_ID3V2_FRAME_RVAD = GF_4CC('R','V','A','D') , GF_ID3V2_FRAME_RVRB = GF_4CC('R','V','R','B') , GF_ID3V2_FRAME_SYLT = GF_4CC('S','Y','L','T') , GF_ID3V2_FRAME_SYTC = GF_4CC('S','Y','T','C') , GF_ID3V2_FRAME_TALB = GF_4CC('T','A','L','B') , GF_ID3V2_FRAME_TBPM = GF_4CC('T','B','P','M') , GF_ID3V2_FRAME_TCAT = GF_4CC('T','C','A','T') , GF_ID3V2_FRAME_TCMP = GF_4CC('T','C','M','P') , GF_ID3V2_FRAME_TCOM = GF_4CC('T','C','O','M') , GF_ID3V2_FRAME_TCON = GF_4CC('T','C','O','N') , GF_ID3V2_FRAME_TCOP = GF_4CC('T','C','O','P') , GF_ID3V2_FRAME_TDAT = GF_4CC('T','D','A','T') , GF_ID3V2_FRAME_TDES = GF_4CC('T','D','E','S') , GF_ID3V2_FRAME_TDLY = GF_4CC('T','D','L','Y') , GF_ID3V2_FRAME_TDRC = GF_4CC('T','D','R','C') , GF_ID3V2_FRAME_TENC = GF_4CC('T','E','N','C') , GF_ID3V2_FRAME_TEXT = GF_4CC('T','E','X','T') , GF_ID3V2_FRAME_TFLT = GF_4CC('T','F','L','T') , GF_ID3V2_FRAME_TIME = GF_4CC('T','I','M','E') , GF_ID3V2_FRAME_TIT1 = GF_4CC('T','I','T','1') , GF_ID3V2_FRAME_TIT2 = GF_4CC('T','I','T','2') , GF_ID3V2_FRAME_TIT3 = GF_4CC('T','I','T','3') , GF_ID3V2_FRAME_TKEY = GF_4CC('T','K','E','Y') , GF_ID3V2_FRAME_TKWD = GF_4CC('T','K','W','D') , GF_ID3V2_FRAME_TLAN = GF_4CC('T','L','A','N') , GF_ID3V2_FRAME_TLEN = GF_4CC('T','L','E','N') , GF_ID3V2_FRAME_TMED = GF_4CC('T','M','E','D') , GF_ID3V2_FRAME_TOAL = GF_4CC('T','O','A','L') , GF_ID3V2_FRAME_TOFN = GF_4CC('T','O','F','N') , GF_ID3V2_FRAME_TOLY = GF_4CC('T','O','L','Y') , GF_ID3V2_FRAME_TOPE = GF_4CC('T','O','P','E') , GF_ID3V2_FRAME_TORY = GF_4CC('T','O','R','Y') , GF_ID3V2_FRAME_TOWN = GF_4CC('T','O','W','N') , GF_ID3V2_FRAME_TPE1 = GF_4CC('T','P','E','1') , GF_ID3V2_FRAME_TPE2 = GF_4CC('T','P','E','2') , GF_ID3V2_FRAME_TPE3 = GF_4CC('T','P','E','3') , GF_ID3V2_FRAME_TPE4 = GF_4CC('T','P','E','4') , GF_ID3V2_FRAME_TPOS = GF_4CC('T','P','E','5') , GF_ID3V2_FRAME_TPUB = GF_4CC('T','P','U','B') , GF_ID3V2_FRAME_TRCK = GF_4CC('T','R','C','K') , GF_ID3V2_FRAME_TRDA = GF_4CC('T','R','D','A') , GF_ID3V2_FRAME_TRSN = GF_4CC('T','R','S','N') , GF_ID3V2_FRAME_TRSO = GF_4CC('T','R','S','O') , GF_ID3V2_FRAME_TSIZ = GF_4CC('T','S','I','Z') , GF_ID3V2_FRAME_TSO2 = GF_4CC('T','S','O','2') , GF_ID3V2_FRAME_TSOA = GF_4CC('T','S','O','A') , GF_ID3V2_FRAME_TSOC = GF_4CC('T','S','O','C') , GF_ID3V2_FRAME_TSOT = GF_4CC('T','S','O','T') , GF_ID3V2_FRAME_TSOP = GF_4CC('T','S','O','P') , GF_ID3V2_FRAME_TSRC = GF_4CC('T','S','R','C') , GF_ID3V2_FRAME_TSSE = GF_4CC('T','S','S','E') , GF_ID3V2_FRAME_TYER = GF_4CC('T','Y','E','R') , GF_ID3V2_FRAME_TXXX = GF_4CC('T','X','X','X') , GF_ID3V2_FRAME_UFID = GF_4CC('U','F','I','D') , GF_ID3V2_FRAME_USER = GF_4CC('U','S','E','R') , GF_ID3V2_FRAME_USLT = GF_4CC('U','S','L','T') , GF_ID3V2_FRAME_WCOM = GF_4CC('W','C','O','M') , GF_ID3V2_FRAME_WCOP = GF_4CC('W','C','O','P') , GF_ID3V2_FRAME_WOAF = GF_4CC('W','O','A','F') , GF_ID3V2_FRAME_WOAR = GF_4CC('W','O','A','R') , GF_ID3V2_FRAME_WOAS = GF_4CC('W','O','A','S') , GF_ID3V2_FRAME_WORS = GF_4CC('W','O','R','S') , GF_ID3V2_FRAME_WPAY = GF_4CC('W','P','A','Y') , GF_ID3V2_FRAME_WPUB = GF_4CC('W','P','U','B') , GF_ID3V2_FRAME_WXXX = GF_4CC('W','X','X','X') } |
enum | { GF_ITAG_STR =0 , GF_ITAG_INT8 , GF_ITAG_INT16 , GF_ITAG_INT32 , GF_ITAG_INT64 , GF_ITAG_BOOL , GF_ITAG_ID3_GENRE , GF_ITAG_FRAC6 , GF_ITAG_FRAC8 , GF_ITAG_FILE } |
enum | { GF_META_ITEM_TYPE_MIME = GF_4CC('m', 'i', 'm', 'e') , GF_META_ITEM_TYPE_URI = GF_4CC('u', 'r', 'i', ' ') , GF_META_ITEM_TYPE_PICT = GF_4CC('p', 'i', 'c', 't') , GF_META_TYPE_SVG = GF_4CC('s','v','g',' ') , GF_META_TYPE_SVGZ = GF_4CC('s','v','g','z') , GF_META_TYPE_SMIL = GF_4CC('s','m','i','l') , GF_META_TYPE_SMLZ = GF_4CC('s','m','l','z') , GF_META_TYPE_X3D = GF_4CC('x','3','d',' ') , GF_META_TYPE_X3DZ = GF_4CC('x','3','d','z') , GF_META_TYPE_XMTA = GF_4CC('x','m','t','a') , GF_META_TYPE_XMTZ = GF_4CC('x','m','t','z') , GF_META_TYPE_RVCI = GF_4CC('r','v','c','i') } |
enum | { GF_S4CC_MPEG4 = GF_4CC('m', 'p', '4', 's') , GF_S4CC_LASER = GF_4CC('l', 's', 'r', '1') } |
enum | { GF_CICP_PRIM_RESERVED_0 = 0 , GF_CICP_PRIM_BT709 , GF_CICP_PRIM_UNSPECIFIED , GF_CICP_PRIM_RESERVED_3 , GF_CICP_PRIM_BT470M , GF_CICP_PRIM_BT470G , GF_CICP_PRIM_SMPTE170 , GF_CICP_PRIM_SMPTE240 , GF_CICP_PRIM_FILM , GF_CICP_PRIM_BT2020 , GF_CICP_PRIM_SMPTE428 , GF_CICP_PRIM_SMPTE431 , GF_CICP_PRIM_SMPTE432 , GF_CICP_PRIM_EBU3213 =22 , GF_CICP_PRIM_LAST } |
enum | { GF_CICP_TRANSFER_RESERVED_0 = 0 , GF_CICP_TRANSFER_BT709 , GF_CICP_TRANSFER_UNSPECIFIED , GF_CICP_TRANSFER_RESERVED_3 , GF_CICP_TRANSFER_BT470M , GF_CICP_TRANSFER_BT470BG , GF_CICP_TRANSFER_SMPTE170 , GF_CICP_TRANSFER_SMPTE240 , GF_CICP_TRANSFER_LINEAR , GF_CICP_TRANSFER_LOG100 , GF_CICP_TRANSFER_LOG316 , GF_CICP_TRANSFER_IEC61966 , GF_CICP_TRANSFER_BT1361 , GF_CICP_TRANSFER_SRGB , GF_CICP_TRANSFER_BT2020_10 , GF_CICP_TRANSFER_BT2020_12 , GF_CICP_TRANSFER_SMPTE2084 , GF_CICP_TRANSFER_SMPTE428 , GF_CICP_TRANSFER_STDB67 , GF_CICP_TRANSFER_LAST } |
enum | { GF_CICP_MX_IDENTITY = 0 , GF_CICP_MX_BT709 , GF_CICP_MX_UNSPECIFIED , GF_CICP_MX_RESERVED_3 , GF_CICP_MX_FCC47 , GF_CICP_MX_BT601_625 , GF_CICP_MX_SMPTE170 , GF_CICP_MX_SMPTE240 , GF_CICP_MX_YCgCo , GF_CICP_MX_BT2020 , GF_CICP_MX_BT2020_CL , GF_CICP_MX_YDzDx , GF_CICP_MX_LAST } |
enum | { GF_STEREO_NONE = 0 , GF_STEREO_TOP_BOTTOM , GF_STEREO_LEFT_RIGHT , GF_STEREO_CUSTOM , GF_STEREO_RIGHT_LEFT , GF_STEREO_BOTTOM_TOP } |
enum | { GF_PROJ360_NONE = 0 , GF_PROJ360_CUBE_MAP , GF_PROJ360_EQR , GF_PROJ360_MESH } |
Variables | |
static const unsigned int | GF_QCELP_RATE_TO_SIZE_NB = 7 |
static const unsigned int | GF_QCELP_RATE_TO_SIZE [] = {0, 1, 1, 4, 2, 8, 3, 17, 4, 35, 5, 8, 14, 1} |
static const unsigned int | GF_SMV_EVRC_RATE_TO_SIZE_NB = 6 |
static const unsigned int | GF_SMV_EVRC_RATE_TO_SIZE [] = {0, 1, 1, 3, 2, 6, 3, 11, 4, 23, 5, 1} |
static const unsigned int | GF_AMR_FRAME_SIZE [16] = { 12, 13, 15, 17, 19, 20, 26, 31, 5, 0, 0, 0, 0, 0, 0, 0 } |
static const unsigned int | GF_AMR_WB_FRAME_SIZE [16] = { 17, 23, 32, 36, 40, 46, 50, 58, 60, 5, 5, 0, 0, 0, 0, 0 } |
This section documents some constants used in the GPAC framework which are not related to any specific sub-project.
#define GF_AUDIO_CH_SCREEN_EDGE_LEFT 0x2000000000ULL |
Left edge of screen Channel
#define GF_AUDIO_CH_SCREEN_EDGE_RIGHT 0x4000000000ULL |
Right edge of screen Channel
#define GF_AUDIO_CH_BACK_SURROUND_LEFT 0x20000000000ULL |
left back surround Channel
#define GF_AUDIO_CH_BACK_SURROUND_RIGHT 0x40000000000ULL |
right back surround Channel
#define GF_HLS_SAMPLE_AES_SCHEME GF_4CC('s','a','e','s') |
Scheme Type only used internally to signal HLS sample AES in TS
#define GF_RTP_TX3G_SIDX_OFFSET 129 |
out-of-band sample description index for 3GPP (128 and 255 reserved in RFC)
#define RFC6381_CODEC_NAME_SIZE_MAX 100 |
RFC6381 codec name max length
#define GF_ISOM_UDTA_GPAC_SRD GF_4CC('G','S','R','D') |
user data used by GPAC to store SRD info
#define GPAC_VERSION |
Macro giving GPAC version name expressed as a printable string
#define GPAC_VERSION_MAJOR 12 |
ABI Major number of libgpac
#define GPAC_VERSION_MINOR 15 |
ABI Minor number of libgpac
#define GPAC_VERSION_MICRO 0 |
ABI Micro number of libgpac
anonymous enum |
Supported media stream types for media objects.
Enumerator | |
---|---|
GF_STREAM_UNKNOWN | Unknown stream type |
GF_STREAM_OD | MPEG-4 Object Descriptor Stream |
GF_STREAM_OCR | MPEG-4 Object Clock Reference Stream |
GF_STREAM_SCENE | MPEG-4 Scene Description Stream |
GF_STREAM_VISUAL | Visual Stream (Video, Image or MPEG-4 SNHC Tools) |
GF_STREAM_AUDIO | Audio Stream (Audio, MPEG-4 Structured-Audio Tools) |
GF_STREAM_MPEG7 | MPEG-7 Description Stream |
GF_STREAM_IPMP | MPEG-4 Intellectual Property Management and Protection Stream |
GF_STREAM_OCI | MPEG-4 Object Content Information Stream |
GF_STREAM_MPEGJ | MPEG-4 MPEGlet Stream |
GF_STREAM_INTERACT | MPEG-4 User Interaction Stream |
GF_STREAM_IPMP_TOOL | MPEG-4 IPMP Tool Stream |
GF_STREAM_FONT | MPEG-4 Font Data Stream |
GF_STREAM_TEXT | MPEG-4 Streaming Text Stream |
GF_STREAM_ND_SUBPIC | Nero Digital Subpicture Stream |
GF_STREAM_PRIVATE_SCENE | GPAC Private Scene streams
|
enum GF_PixelFormat |
Supported pixel formats for everything using video
enum GF_CodecID |
Codec ID identifies the stream coding type. The enum is divided into values less than 255, which are equivalent to MPEG-4 systems ObjectTypeIndication. Other values are 4CCs, usually matching ISOMEDIA sample entry types.
Unless specified otherwise the decoder configuration is:
anonymous enum |
Enumerator | |
---|---|
GPAC_AFX_3DMC | 3D Mesh Compression |
GPAC_AFX_WAVELET_SUBDIVISION | Wavelet Subdivision Surface |
GPAC_AFX_MESHGRID | MeshGrid |
GPAC_AFX_COORDINATE_INTERPOLATOR | Coordinate Interpolator |
GPAC_AFX_ORIENTATION_INTERPOLATOR | Orientation Interpolator |
GPAC_AFX_POSITION_INTERPOLATOR | Position Interpolator |
GPAC_AFX_OCTREE_IMAGE | Octree Image |
GPAC_AFX_BBA | BBA |
GPAC_AFX_POINT_TEXTURE | PointTexture |
GPAC_AFX_3DMC_EXT | 3DMC Extension |
GPAC_AFX_FOOTPRINT | FootPrint representation |
GPAC_AFX_ANIMATED_MESH | Animated Mesh Compression |
GPAC_AFX_SCALABLE_COMPLEXITY | Scalable Complexity |
anonymous enum |
Audio channel flags for spatialization.
enum GF_AudioFormat |
Audio sample bit format.
enum GF_ColorPrimaries |
Color primaries as defined by ISO/IEC 23001-8 / 23091-2
Color Transfer Characteristics as defined by ISO/IEC 23001-8 / 23091-2
MatrixCoefficients as defined by ISO/IEC 23001-8 / 23091-2
enum GF_ChromaLocation |
Chroma location values, semantics from CoreVideo - direct match of values to FFmpeg
anonymous enum |
DIMS Unit header flags as 3GPP TS 26.142.
anonymous enum |
AVC NAL unit types
anonymous enum |
anonymous enum |
HEVC NAL unit types
anonymous enum |
VVC NAL unit types - vtm10)
enum GF_ID3v2FrameType |
ID3v2 tags
anonymous enum |
tag base types
anonymous enum |
meta types from box_code_meta.c - fileimport.c
anonymous enum |
meta types from box_code_meta.c - fileimport.c
anonymous enum |
CICP code points for color primaries
anonymous enum |
CICP code points for color transfer
anonymous enum |
CICP code points for matrix coefficients
anonymous enum |
stereo frame packing types
anonymous enum |
360 projection types
Enumerator | |
---|---|
GF_PROJ360_NONE | flat video |
GF_PROJ360_CUBE_MAP | cube map projection video is upper half: right, left, up, lower half: down, front, back |
GF_PROJ360_EQR | Equirectangular projection / video |
GF_PROJ360_MESH | Mesh projection (not supported yet) |
const char* gf_stream_type_name | ( | u32 | streamType | ) |
Gets the stream type name based on stream type
streamType | stream type GF_STREAM_XXX as defined in constants.h |
const char* gf_stream_type_short_name | ( | u32 | streamType | ) |
Gets the stream type short name based on stream type (usually the lower case value of the stream name)
streamType | stream type GF_STREAM_XXX as defined in constants.h |
u32 gf_stream_type_by_name | ( | const char * | name | ) |
Gets the stream type by name
name | name of the stream type to query |
Enumerates defined stream types
idx | index of the stream type, 0-based |
name | name of the stream type (used when parsing stream type from textual definition) |
desc | description of the stream type |
GF_PixelFormat gf_pixel_fmt_parse | ( | const char * | pf_name | ) |
enumerates GPAC pixel formats
pf_name | name of the pixel format |
const char* gf_pixel_fmt_name | ( | GF_PixelFormat | pfmt | ) |
gets name of pixel formats
pfmt | pixel format code |
Bool gf_pixel_fmt_probe | ( | GF_PixelFormat | pf_4cc, |
const char * | pf_name | ||
) |
checks if pixel format is known, does not throw error message
pf_4cc | pixel format code or 0 |
pf_name | pixel format name or short name or NULL |
const char* gf_pixel_fmt_sname | ( | GF_PixelFormat | pfmt | ) |
gets short name of pixel formats, as used for file extensions
pfmt | pixel format code |
GF_PixelFormat gf_pixel_fmt_enum | ( | u32 * | idx, |
const char ** | name, | ||
const char ** | fileext, | ||
const char ** | description | ||
) |
enumerates pixel formats
idx | index of the pixel format, 0-based |
name | name of the pixel format |
fileext | file extension of the pixel format |
description | description of the pixel format |
const char* gf_pixel_fmt_all_names | ( | ) |
gets the list of all supported pixel format names
const char* gf_pixel_fmt_all_shortnames | ( | ) |
gets the list of all supported pixel format names
Bool gf_pixel_get_size_info | ( | GF_PixelFormat | pixfmt, |
u32 | width, | ||
u32 | height, | ||
u32 * | out_size, | ||
u32 * | out_stride, | ||
u32 * | out_stride_uv, | ||
u32 * | out_planes, | ||
u32 * | out_plane_uv_height | ||
) |
returns size and stride characteristics for the pixel format. If the stride or stride_uv value are not 0, they are used to compute the size. Otherwise no padding at end of line is assumed.
pixfmt | pixfmt format code | |
width | target frame width | |
height | target frame height | |
[out] | out_size | output frame size |
[in,out] | out_stride | output frame stride for single plane or plane 0 |
[in,out] | out_stride_uv | output frame stride for UV planes |
[out] | out_planes | output frame plane numbers |
[out] | out_plane_uv_height | height of UV planes |
u32 gf_pixel_get_bytes_per_pixel | ( | GF_PixelFormat | pixfmt | ) |
Gets the number of bytes per pixel on first plane
pixfmt | pixel format code |
u32 gf_pixel_is_wide_depth | ( | GF_PixelFormat | pixfmt | ) |
Gets the number of bits per component
pixfmt | pixel format code |
u32 gf_pixel_get_nb_comp | ( | GF_PixelFormat | pixfmt | ) |
Gets the number of component per pixel
pixfmt | pixel format code |
Bool gf_pixel_fmt_is_transparent | ( | GF_PixelFormat | pixfmt | ) |
Checks if pixel format is transparent
pixfmt | pixel format code |
Bool gf_pixel_fmt_is_yuv | ( | GF_PixelFormat | pixfmt | ) |
Checks if format is YUV
pixfmt | pixel format code |
GF_PixelFormat gf_pixel_fmt_from_qt_type | ( | u32 | qt_code | ) |
gets pixel format associated with a given uncompressed video QT code
qt_code | the desired QT/ISOBMFF uncompressed video code |
u32 gf_pixel_fmt_to_qt_type | ( | GF_PixelFormat | pixfmt | ) |
gets QY code associated with a given pixel format
pixfmt | the desired pixel format |
Bool gf_pixel_fmt_get_uncc | ( | GF_PixelFormat | pixfmt, |
u32 | profile_mode, | ||
u8 ** | dsi, | ||
u32 * | dsi_size | ||
) |
gets uncC configuration (ISO 23001-17) of pixel format. The configuration is made of the boxes uncC and cmpd in full mode, and uncC only in restricted mode
pixfmt | the desired pixel format |
profile_mode | if 1, sets profile if known. If 2 and profile is known, use reduced version |
dsi | set to the generated configuration, must be freed by user |
dsi_size | set to the generated configuration size |
const char* gf_codecid_name | ( | GF_CodecID | codecid | ) |
Gets a textual description for the given codecID
codecid | target codec ID |
GF_CodecID gf_codecid_enum | ( | u32 | idx, |
const char ** | short_name, | ||
const char ** | long_name | ||
) |
Enumerates supported codec format
idx | 0-based index, to incremented at each call |
short_name | pointer for codec name |
long_name | pointer for codec description |
u32 gf_codecid_type | ( | GF_CodecID | codecid | ) |
Gets the associated streamtype for the given codecID
codecid | target codec ID |
GF_CodecID gf_codecid_alt | ( | GF_CodecID | codecid | ) |
Gets alternate ID of codec if any
codecid | target codec ID |
u8 gf_codecid_oti | ( | GF_CodecID | codecid | ) |
Gets the associated ObjectTypeIndication if any for the given codecID
codecid | target codec ID |
GF_CodecID gf_codecid_from_oti | ( | u32 | stream_type, |
u32 | oti | ||
) |
Gets the codecID from a given ObjectTypeIndication
stream_type | stream type of the stream |
oti | ObjectTypeIndication of the stream |
u32 gf_codecid_4cc_type | ( | GF_CodecID | codecid | ) |
Gets the associated 4CC used by isomedia or RFC6381
codecid | target codec ID |
Bool gf_codecid_has_unframer | ( | GF_CodecID | codecid | ) |
Checks if reframer/unframer exists for this codec in gpac
codecid | target codec ID |
GF_CodecID gf_codecid_parse | ( | const char * | cname | ) |
Gets the codecid given the associated short name
cname | target codec short name |
const char* gf_codecid_file_ext | ( | GF_CodecID | codecid | ) |
Gets the raw file ext (one or more, | separated) for the given codecid
codecid | codec ID |
const char* gf_codecid_mime | ( | GF_CodecID | codecid | ) |
Gets the raw file mime type for the given codecid
codecid | codec ID |
GF_CodecID gf_codec_id_from_isobmf | ( | u32 | isobmftype | ) |
Gets the codecid from isomedia code point
isobmftype | isomedia code point |
const char* gf_stream_type_afx_name | ( | u8 | afx_code | ) |
Gets a textual description of an AFX stream type
afx_code | target stream type descriptor |
GF_AudioFormat gf_audio_fmt_parse | ( | const char * | af_name | ) |
enumerates GPAC audio formats
af_name | name of the audio format |
const char* gf_audio_fmt_name | ( | GF_AudioFormat | afmt | ) |
gets name of audio formats
afmt | audio format code |
const char* gf_audio_fmt_sname | ( | GF_AudioFormat | afmt | ) |
gets short name of audio formats, as used for file extensions
afmt | audio format code |
const char* gf_audio_fmt_all_names | ( | ) |
gets the list of all supported audio format names
const char* gf_audio_fmt_all_shortnames | ( | ) |
gets the list of all supported audio format names
u32 gf_audio_fmt_bit_depth | ( | GF_AudioFormat | afmt | ) |
returns number of bits per sample for the given format
afmt | desired audio format |
Bool gf_audio_fmt_is_planar | ( | GF_AudioFormat | afmt | ) |
Check if a given audio format is planar
afmt | desired audio format |
GF_AudioFormat gf_audio_fmt_from_isobmf | ( | u32 | msubtype | ) |
Returns audio format for raw audio ISOBMFF sample description type
msubtype | ISOBMFF sample description type |
u32 gf_audio_fmt_to_isobmf | ( | GF_AudioFormat | afmt | ) |
Returns QTFF/ISOBMFF sample description 4CC of an audio format
afmt | audio format to query |
GF_AudioFormat gf_audio_fmt_enum | ( | u32 * | idx, |
const char ** | name, | ||
const char ** | fileext, | ||
const char ** | desc | ||
) |
enumerates audio formats
idx | index of the audio format, 0-based |
name | name of the audio format |
fileext | file extension of the pixel format |
desc | audio format description |
get CICP layout code point from audio configuration
nb_chan | total number of channels |
nb_surr | number of surround channels |
nb_lfe | number of LFE channels |
get channel layout mask from CICP layout
cicp_layout | channel layout CICP code point |
const char* gf_audio_fmt_get_layout_name_from_cicp | ( | u32 | cicp_layout | ) |
get CICP layout name
cicp_layout | channel layout CICP code point |
const char* gf_audio_fmt_get_layout_name | ( | u64 | chan_layout | ) |
get channel layout name
chan_layout | channel layout mask |
u64 gf_audio_fmt_get_layout_from_name | ( | const char * | name | ) |
get channel layout from name
name | channel layout name |
get CICP layout value from channel layout mask
chan_layout | channel layout mask |
get channel count from channel layout
chan_layout | channel layout mask |
get dloby chanmap value from cicp layout
cicp_layout | channel CICP layout |
get dloby chanmap value from channel layout
channel_layout | channel layout mask |
enumerates CICP channel layout
idx | index of cicp layout value to query |
short_name | set t o CICP name as used in GPAC - may be NULL |
ch_mask | set t o audio channel mask, as used in GPAC - may be NULL |
u32 gf_audio_fmt_get_cicp_from_name | ( | const char * | name | ) |
get CICP code from name
name | channel layout name |
const char* gf_audio_fmt_get_cicp_name | ( | u32 | cicp_code | ) |
get CICP name from code
cicp_code | channel cicp code |
const char* gf_audio_fmt_cicp_all_names | ( | ) |
get all CICP layout names
finds a tag by its ID3 value
id3tag | ID3 tag value |
finds a tag by its itunes value
itag | itunes tag value |
s32 gf_itags_find_by_name | ( | const char * | tag_name | ) |
finds a tag by its name
tag_name | tag name |
gets tag associated type
tag_idx | tag index |
const char* gf_itags_get_name | ( | u32 | tag_idx | ) |
gets tag associated name
tag_idx | tag index |
const char* gf_itags_get_alt_name | ( | u32 | tag_idx | ) |
gets tag associated alternative names
tag_idx | tag index |
gets tag associated itunes tag
tag_idx | tag index |
gets tag associated id3 tag
tag_idx | tag index |
enumerates tags
tag_idx | tag index, increased at each call |
itag | set to itunes tag value - may be NULL |
id3tag | set to ID3 tag value - may be NULL |
type | set to tag type - may be NULL |
const char* gf_id3_get_genre | ( | u32 | tag | ) |
gets genre name by genre tag
tag | genre tag (from 1 to max number of ID3 genres) |
u32 gf_id3_get_genre_tag | ( | const char * | name | ) |
gets genre tag by genre name
name | genre name |
u32 gf_cicp_parse_color_primaries | ( | const char * | val | ) |
parse CICP color primaries
val | CICP color primaries name |
const char* gf_cicp_color_primaries_name | ( | u32 | cicp_prim | ) |
get CICP color primaries name
cicp_prim | CICP color primaries code |
const char* gf_cicp_color_primaries_all_names | ( | ) |
get CICP color primaries names
u32 gf_cicp_parse_color_transfer | ( | const char * | val | ) |
parse CICP color transfer
val | CICP color transfer name |
const char* gf_cicp_color_transfer_name | ( | u32 | cicp_trans | ) |
get CICP color transfer name
cicp_trans | CICP color transfer code |
const char* gf_cicp_color_transfer_all_names | ( | ) |
get CICP color transfer names
u32 gf_cicp_parse_color_matrix | ( | const char * | val | ) |
parse CICP color matrix coefficients
val | CICP color matrix coefficients name |
const char* gf_cicp_color_matrix_name | ( | u32 | cicp_mx | ) |
get CICP color matrix coefficients name
cicp_mx | CICP color matrix coefficients code |
const char* gf_cicp_color_matrix_all_names | ( | ) |
get CICP color matrix names
const char* gf_gpac_version | ( | ) |
gets GPAC full version including GIT revision
const char* gf_gpac_copyright | ( | ) |
gets GPAC copyright
const char* gf_gpac_copyright_cite | ( | ) |
gets GPAC copyright + citations DOI
u32 gf_gpac_abi_major | ( | ) |
gets libgpac ABI major version
u32 gf_gpac_abi_minor | ( | ) |
gets libgpac ABI minor version
u32 gf_gpac_abi_micro | ( | ) |
gets libgpac ABI major version
|
static |
Number of defined QCELP rate sizes
|
static |
QCELP rate sizes - note that these sizes INCLUDE the rate_type header byte
|
static |
Number of defined EVRC rate sizes
|
static |
EVRC rate sizes - note that these sizes INCLUDE the rate_type header byte
|
static |
AMR frame sizes
|
static |
AMR WB frame sizes