annexb.c File Reference

Annex B Byte Stream format NAL Unit writing routines. More...

#include "global.h"
#include "nalucommon.h"

Include dependency graph for annexb.c:

Go to the source code of this file.

Functions

int WriteAnnexbNALU (ImageParameters *p_Img, NALU_t *n)
void OpenAnnexbFile (ImageParameters *p_Img, char *Filename)
void CloseAnnexbFile (ImageParameters *p_Img)


Detailed Description

Annex B Byte Stream format NAL Unit writing routines.

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

Definition in file annexb.c.


Function Documentation

void CloseAnnexbFile ( ImageParameters p_Img  ) 

Closes the output bit stream file.

Returns:
none. Funtion trerminates the program in case of an error

Definition at line 119 of file annexb.c.

Referenced by terminate_sequence().

void OpenAnnexbFile ( ImageParameters p_Img,
char *  Filename 
)

Opens the output file for the bytestream.

Parameters:
p_Img ImageParameters structure
Filename The filename of the file to be opened
Returns:
none. Function terminates the program in case of an error

Definition at line 100 of file annexb.c.

Referenced by start_sequence().

int WriteAnnexbNALU ( ImageParameters p_Img,
NALU_t n 
)

Writes a NALU to the Annex B Byte Stream.

Returns:
number of bits written

Definition at line 28 of file annexb.c.

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

Referenced by start_sequence().


Documentation generated with DoxyGen