nalu.h File Reference

Common NALU support functions. More...

#include "nalucommon.h"

Include dependency graph for nalu.h:

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

Go to the source code of this file.

Functions

int RBSPtoNALU (unsigned char *rbsp, NALU_t *nalu, int rbsp_size, int nal_unit_type, int nal_reference_idc, int UseAnnexbLongStartcode)
int Write_AUD_NALU (ImageParameters *p_Img)
int Write_Filler_Data_NALU (ImageParameters *p_Img, int num_bytes)


Detailed Description

Common NALU support functions.

nalu.h

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

Definition in file nalu.h.


Function Documentation

int RBSPtoNALU ( unsigned char *  rbsp,
NALU_t nalu,
int  rbsp_size,
int  nal_unit_type,
int  nal_reference_idc,
int  UseAnnexbLongStartcode 
)

Converts an RBSP to a NALU.

Parameters:
rbsp byte buffer with the rbsp
nalu nalu structure to be filled
rbsp_size size of the rbsp in bytes
nal_unit_type as in JVT doc
nal_reference_idc as in JVT doc
UseAnnexbLongStartcode some incomprehensible CABAC stuff
UseAnnexbLongStartcode when 1 and when using AnnexB bytestreams, then use a long startcode prefix
Returns:
length of the NALU in bytes

Definition at line 44 of file nalu.c.

References nalu_t::buf, nalu_t::forbidden_bit, nalu_t::len, nalu_t::nal_reference_idc, nalu_t::nal_unit_type, RBSPtoEBSP(), and nalu_t::startcodeprefix_len.

Referenced by 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:

int Write_AUD_NALU ( ImageParameters p_Img  ) 

write AUD NALU

Definition at line 71 of file nalu.c.

References AllocNALU(), FreeNALU(), and RBSPtoNALU().

Referenced by rewrite_paramsets(), start_sequence(), and write_non_vcl_nalu().

Here is the call graph for this function:

int Write_Filler_Data_NALU ( ImageParameters p_Img,
int  num_bytes 
)

write Filler Data NALU (results to num_bytes + 4 bytes written)

Definition at line 111 of file nalu.c.

References AllocNALU(), FreeNALU(), nalu_t::len, and RBSPtoNALU().

Here is the call graph for this function:


Documentation generated with DoxyGen