nalu.c File Reference

Common NALU support functions. More...

#include "global.h"
#include "nalu.h"
#include "nal.h"

Include dependency graph for nalu.c:

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 min_num_bytes, int UseAnnexbLongStartcode)
int Write_AUD_NALU (void)


Detailed Description

Common NALU support functions.

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

Definition in file nalu.c.


Function Documentation

int RBSPtoNALU ( unsigned char *  rbsp,
NALU_t *  nalu,
int  rbsp_size,
int  nal_unit_type,
int  nal_reference_idc,
int  min_num_bytes,
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
min_num_bytes 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(), and Write_AUD_NALU().

Here is the call graph for this function:

int Write_AUD_NALU ( void   ) 

write AUD NALU

Hides the write function in Annex B or RTP.

Definition at line 72 of file nalu.c.

References AllocNALU(), FreeNALU(), ImageParameters::primary_pic_type, RBSPtoNALU(), and ImageParameters::type.

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

Here is the call graph for this function:


Documentation generated with DoxyGen