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 (NALU_t *n)
void OpenAnnexbFile (char *Filename)
void CloseAnnexbFile (void)

Variables

static FILE * f = NULL


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 ( void   ) 

Closes the output bit stream file.

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

Definition at line 120 of file annexb.c.

References f.

Referenced by terminate_sequence().

void OpenAnnexbFile ( char *  Filename  ) 

Opens the output file for the bytestream.

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

Definition at line 101 of file annexb.c.

References f.

Referenced by start_sequence().

int WriteAnnexbNALU ( NALU_t *  n  ) 

Writes a NALU to the Annex B Byte Stream.

Returns:
number of bits written

Definition at line 31 of file annexb.c.

References NALU_t::buf, f, NALU_t::forbidden_bit, NALU_t::len, NALU_t::nal_reference_idc, NALU_t::nal_unit_type, p_trace, and NALU_t::startcodeprefix_len.

Referenced by start_sequence().


Documentation generated with DoxyGen