nalucommon.c File Reference

Common NALU support functions. More...

#include "global.h"
#include "nalu.h"
#include "memalloc.h"

Include dependency graph for nalucommon.c:

Go to the source code of this file.

Functions

NALU_tAllocNALU (int buffersize)
void FreeNALU (NALU_t *n)


Detailed Description

Common NALU support functions.

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

Definition in file nalucommon.c.


Function Documentation

NALU_t* AllocNALU ( int  buffersize  ) 

Allocates memory for a NALU.

allocate one NAL Unit

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

Definition at line 32 of file nalucommon.c.

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

Referenced by read_new_slice().

Here is the call graph for this function:

void FreeNALU ( NALU_t n  ) 

Frees a NALU.

free one NAL Unit

Parameters:
n NALU to be freed

Definition at line 61 of file nalucommon.c.

References nalu_t::buf.

Referenced by read_new_slice(), and read_next_nalu().


Documentation generated with DoxyGen