nalu.c File Reference

Decoder NALU support functions. More...

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

Include dependency graph for nalu.c:

Go to the source code of this file.

Functions

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

Variables

BitsFile bitsfile
static int LastAccessUnitExists = 0
static int NALUCount = 0


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 ( int  filemode  ) 

Initialize bitstream reading structure.

Parameters:
filemode,: 

Definition at line 37 of file nalu.c.

References CloseAnnexBFile(), CloseRTPFile(), error(), GetRTPNALU(), 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 70 of file nalu.c.

References EBSPtoRBSP().

Referenced by read_next_nalu().

Here is the call graph for this function:

int read_next_nalu ( NALU_t *  nalu  ) 

Read the next NAL unit (with error handling).

Definition at line 85 of file nalu.c.

References error(), errortext, ET_SIZE, FreeNALU(), NALUtoRBSP(), PAR_OF_ANNEXB, and params.

Referenced by read_new_slice().

Here is the call graph for this function:


Documentation generated with DoxyGen