#include "global.h"
#include "annexb.h"
#include "nalu.h"
#include "memalloc.h"
#include "rtp.h"
Go to the source code of this file.
Functions | |
void | initBitsFile (ImageParameters *p_Img, int filemode) |
static int | NALUtoRBSP (NALU_t *nalu) |
int | read_next_nalu (ImageParameters *p_Img, NALU_t *nalu) |
void | CheckZeroByteNonVCL (ImageParameters *p_Img, NALU_t *nalu) |
void | CheckZeroByteVCL (ImageParameters *p_Img, NALU_t *nalu) |
Definition in file nalu.c.
void initBitsFile | ( | ImageParameters * | p_Img, | |
int | filemode | |||
) |
Initialize bitstream reading structure.
p_Img,: | Imageparameter information | |
filemode,: |
Definition at line 34 of file nalu.c.
References CloseAnnexBFile(), CloseRTPFile(), error(), GetAnnexbNALU(), GetRTPNALU(), no_mem_exit(), OpenAnnexBFile(), OpenRTPFile(), PAR_OF_ANNEXB, and PAR_OF_RTP.
Referenced by main().
static int NALUtoRBSP | ( | NALU_t * | nalu | ) | [static] |
Converts a NALU to an RBSP.
nalu,: | nalu structure to be filled |
Definition at line 75 of file nalu.c.
References nalu_t::buf, EBSPtoRBSP(), and nalu_t::len.
Referenced by read_next_nalu().
int read_next_nalu | ( | ImageParameters * | p_Img, | |
NALU_t * | nalu | |||
) |
Read the next NAL unit (with error handling).
Definition at line 90 of file nalu.c.
References error(), errortext, ET_SIZE, nalu_t::forbidden_bit, FreeNALU(), nalu_t::len, NALUtoRBSP(), and PAR_OF_ANNEXB.
Referenced by read_new_slice().