nal.h File Reference

NAL related headers. More...

#include "nalucommon.h"
#include "enc_statistics.h"

Include dependency graph for nal.h:

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

Go to the source code of this file.

Functions

int addCabacZeroWords (ImageParameters *p_Img, NALU_t *nalu, StatParameters *cur_stats)
void SODBtoRBSP (Bitstream *currStream)
int RBSPtoEBSP (byte *NaluBuffer, unsigned char *rbsp, int rbsp_size)


Detailed Description

NAL related headers.

nal.h

Date:
4 Agust 2008
Author:
Main contributors (see contributors.h for copyright, address and affiliation details)
  • Karsten Sühring <suehring@hhi.de>
  • Alexis Michael Tourapis <alexismt@ieee.org> ***************************************************************************************

Definition in file nal.h.


Function Documentation

int addCabacZeroWords ( ImageParameters p_Img,
NALU_t nalu,
StatParameters *  cur_stats 
)

This function adds cabac_zero_word syntax elements at the end of the NAL unit to.

Parameters:
p_Img ImageParameters structure
nalu target NAL unit
cur_stats currently used statistics parameters
Returns:
number of added bytes

Definition at line 114 of file nal.c.

References nalu_t::buf, and nalu_t::len.

Referenced by terminate_slice().

int RBSPtoEBSP ( byte NaluBuffer,
unsigned char *  rbsp,
int  rbsp_size 
)

This function add emulation_prevention_three_byte for all occurrences of the following byte sequences in the stream 0x000000 -> 0x00000300 0x000001 -> 0x00000301 0x000002 -> 0x00000302 0x000003 -> 0x00000303.

Parameters:
NaluBuffer pointer to target buffer
rbsp pointer to source buffer
rbsp_size Size of source
Returns:
Size target buffer after emulation prevention.

Definition at line 73 of file nal.c.

Referenced by RBSPtoNALU(), and terminate_slice().

void SODBtoRBSP ( Bitstream currStream  ) 

Converts String Of Data Bits (SODB) to Raw Byte Sequence Packet (RBSP).

Parameters:
currStream Bitstream which contains data bits.
Returns:
None
Note:
currStream is byte-aligned at the end of this function

Definition at line 39 of file nal.c.

References Bitstream::bits_to_go, Bitstream::byte_buf, Bitstream::byte_pos, and Bitstream::streamBuffer.

Referenced by GeneratePic_parameter_set_rbsp(), GenerateSEImessage_rbsp(), GenerateSeq_parameter_set_rbsp(), and terminate_slice().


Documentation generated with DoxyGen