nalu.c File Reference

Decoder NALU support functions. More...

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

Include dependency graph for nalu.c:

Go to the source code of this file.

Functions

void initBitsFile (ImageParameters *p_Img, int filemode)
static int NALUtoRBSP (NALU_t *nalu)
int read_next_nalu (ImageParameters *p_Img, NALU_t *nalu)
void CheckZeroByteNonVCL (ImageParameters *p_Img, NALU_t *nalu)
void CheckZeroByteVCL (ImageParameters *p_Img, NALU_t *nalu)


Detailed Description

Decoder NALU support functions.

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

Definition in file nalu.c.


Function Documentation

void initBitsFile ( ImageParameters *  p_Img,
int  filemode 
)

Initialize bitstream reading structure.

Parameters:
p_Img,: Imageparameter information
filemode,: 

Definition at line 34 of file nalu.c.

References CloseAnnexBFile(), CloseRTPFile(), error(), GetAnnexbNALU(), GetRTPNALU(), no_mem_exit(), OpenAnnexBFile(), OpenRTPFile(), PAR_OF_ANNEXB, and PAR_OF_RTP.

Referenced by main().

Here is the call graph for this function:

static int NALUtoRBSP ( NALU_t nalu  )  [static]

Converts a NALU to an RBSP.

Parameters:
nalu,: nalu structure to be filled
Returns:
length of the RBSP in bytes

Definition at line 75 of file nalu.c.

References nalu_t::buf, EBSPtoRBSP(), and nalu_t::len.

Referenced by read_next_nalu().

Here is the call graph for this function:

int read_next_nalu ( ImageParameters *  p_Img,
NALU_t nalu 
)

Read the next NAL unit (with error handling).

Definition at line 90 of file nalu.c.

References error(), errortext, ET_SIZE, nalu_t::forbidden_bit, FreeNALU(), nalu_t::len, NALUtoRBSP(), and PAR_OF_ANNEXB.

Referenced by read_new_slice().

Here is the call graph for this function:


Documentation generated with DoxyGen