#include "nalucommon.h"
Go to the source code of this file.
Data Structures | |
struct | annex_b_struct |
Typedefs | |
typedef struct annex_b_struct | ANNEXB_t |
Functions | |
int | GetAnnexbNALU (ImageParameters *p_Img, NALU_t *nalu) |
void | OpenAnnexBFile (ImageParameters *p_Img, char *fn) |
void | CloseAnnexBFile (ImageParameters *p_Img) |
void | init_annex_b (ANNEXB_t *annex_b) |
void | malloc_annex_b (ImageParameters *p_Img) |
void | free_annex_b (ImageParameters *p_Img) |
Definition in file annexb.h.
void CloseAnnexBFile | ( | ImageParameters * | p_Img | ) |
int GetAnnexbNALU | ( | ImageParameters * | p_Img, | |
NALU_t * | nalu | |||
) |
Returns the size of the NALU (bits between start codes in case of Annex B. nalu->buf and nalu->len are filled. Other field in nalu-> remain uninitialized (will be taken care of by NALUtoRBSP.
GetAnnexbNALU expects start codes at byte aligned positions in the file
Definition at line 139 of file annexb.c.
References nalu_t::buf, FindStartCode(), nalu_t::forbidden_bit, getfbyte(), nalu_t::len, nalu_t::lost_packets, nalu_t::max_size, nalu_t::nal_reference_idc, nalu_t::nal_unit_type, no_mem_exit(), and nalu_t::startcodeprefix_len.
Referenced by initBitsFile().
void OpenAnnexBFile | ( | ImageParameters * | p_Img, | |
char * | fn | |||
) |
Opens the bit stream file named fn.
Definition at line 310 of file annexb.c.
References error(), errortext, ET_SIZE, and getChunk().
Referenced by initBitsFile().