nalucommon.h File Reference

NALU handling common to encoder and decoder. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  nalu_t
 NAL unit structure. More...

Defines

#define MAXRBSPSIZE   64000
#define MAXNALUSIZE   64000

Typedefs

typedef struct nalu_t NALU_t

Enumerations

enum  NaluType {
  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
}
enum  NalRefIdc { NALU_PRIORITY_HIGHEST = 3, NALU_PRIORITY_HIGH = 2, NALU_PRIORITY_LOW = 1, NALU_PRIORITY_DISPOSABLE = 0 }

Functions

NALU_tAllocNALU (int)
void FreeNALU (NALU_t *n)


Detailed Description

NALU handling common to encoder and decoder.

nalucommon.h

Author:
Main contributors (see contributors.h for copyright, address and affiliation details)

Definition in file nalucommon.h.


Typedef Documentation

typedef struct nalu_t NALU_t

NAL unit structure.


Enumeration Type Documentation

enum NalRefIdc

values for nal_ref_idc

Definition at line 38 of file nalucommon.h.

enum NaluType

values for nal_unit_type

Definition at line 22 of file nalucommon.h.


Function Documentation

NALU_t* AllocNALU ( int  buffersize  ) 

allocate one NAL Unit

allocate one NAL Unit

Parameters:
buffersize size of NALU buffer
Returns:
pointer to a NALU

Definition at line 31 of file nalucommon.c.

References nalu_t::buf, nalu_t::max_size, and no_mem_exit().

Referenced by create_slice_nalus(), GeneratePic_parameter_set_NALU(), GenerateSEImessage_NALU(), GenerateSeq_parameter_set_NALU(), Write_AUD_NALU(), and Write_Filler_Data_NALU().

Here is the call graph for this function:

void FreeNALU ( NALU_t n  ) 

free one NAL Unit

free one NAL Unit

Parameters:
n NALU to be freed

Definition at line 60 of file nalucommon.c.

References nalu_t::buf.

Referenced by free_nal_unit(), rewrite_paramsets(), start_sequence(), Write_AUD_NALU(), Write_Filler_Data_NALU(), and write_PPS().


Documentation generated with DoxyGen