12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef _NALUCOMMON_H_
- #define _NALUCOMMON_H_
- #define MAXRBSPSIZE 64000
- #define MAXNALUSIZE 64000
- typedef enum {
- NALU_TYPE_SLICE = 1,
- NALU_TYPE_DPA = 2,
- NALU_TYPE_DPB = 3,
- NALU_TYPE_DPC = 4,
- NALU_TYPE_IDR = 5,
- NALU_TYPE_SEI = 6,
- NALU_TYPE_SPS = 7,
- NALU_TYPE_PPS = 8,
- NALU_TYPE_AUD = 9,
- NALU_TYPE_EOSEQ = 10,
- NALU_TYPE_EOSTREAM = 11,
- NALU_TYPE_FILL = 12
- } NaluType;
- typedef enum {
- NALU_PRIORITY_HIGHEST = 3,
- NALU_PRIORITY_HIGH = 2,
- NALU_PRIORITY_LOW = 1,
- NALU_PRIORITY_DISPOSABLE = 0
- } NalRefIdc;
- typedef struct nalu_t
- {
- int startcodeprefix_len;
- unsigned len;
- unsigned max_size;
- int forbidden_bit;
- NaluType nal_unit_type;
- NalRefIdc nal_reference_idc;
- byte *buf;
- uint16 lost_packets;
- } NALU_t;
- extern NALU_t *AllocNALU(int);
- extern void FreeNALU(NALU_t *n);
- #endif
|