nal.c File Reference

Converts Encapsulated Byte Sequence Packets (EBSP) to Raw Byte Sequence Packets (RBSP), and then onto String Of Data Bits (SODB). More...

#include "contributors.h"
#include "global.h"

Include dependency graph for nal.c:

Go to the source code of this file.

Functions

int RBSPtoSODB (byte *streamBuffer, int last_byte_pos)
int EBSPtoRBSP (byte *streamBuffer, int end_bytepos, int begin_bytepos)


Detailed Description

Converts Encapsulated Byte Sequence Packets (EBSP) to Raw Byte Sequence Packets (RBSP), and then onto String Of Data Bits (SODB).

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

Definition in file nal.c.


Function Documentation

int EBSPtoRBSP ( byte streamBuffer,
int  end_bytepos,
int  begin_bytepos 
)

Converts Encapsulated Byte Sequence Packets to RBSP.

Parameters:
streamBuffer pointer to data stream
end_bytepos size of data stream
begin_bytepos Position after beginning

Definition at line 85 of file nal.c.

Referenced by NALUtoRBSP().

int RBSPtoSODB ( byte streamBuffer,
int  last_byte_pos 
)

Converts RBSP to string of data bits.

Parameters:
streamBuffer pointer to buffer containing data
last_byte_pos position of the last byte containing data.
Returns:
last_byte_pos position of the last byte pos. If the last-byte was entirely a stuffing byte, it is removed, and the last_byte_pos is updated.

Definition at line 34 of file nal.c.

Referenced by read_new_slice().


Documentation generated with DoxyGen