#include "nalucommon.h"


Go to the source code of this file.
Functions | |
| int | RBSPtoNALU (unsigned char *rbsp, NALU_t *nalu, int rbsp_size, int nal_unit_type, int nal_reference_idc, int UseAnnexbLongStartcode) |
| int | Write_AUD_NALU (ImageParameters *p_Img) |
| int | Write_Filler_Data_NALU (ImageParameters *p_Img, int num_bytes) |
Definition in file nalu.h.
| int RBSPtoNALU | ( | unsigned char * | rbsp, | |
| NALU_t * | nalu, | |||
| int | rbsp_size, | |||
| int | nal_unit_type, | |||
| int | nal_reference_idc, | |||
| int | UseAnnexbLongStartcode | |||
| ) |
Converts an RBSP to a NALU.
| rbsp | byte buffer with the rbsp | |
| nalu | nalu structure to be filled | |
| rbsp_size | size of the rbsp in bytes | |
| nal_unit_type | as in JVT doc | |
| nal_reference_idc | as in JVT doc | |
| UseAnnexbLongStartcode | some incomprehensible CABAC stuff | |
| UseAnnexbLongStartcode | when 1 and when using AnnexB bytestreams, then use a long startcode prefix |
Definition at line 44 of file nalu.c.
References nalu_t::buf, nalu_t::forbidden_bit, nalu_t::len, nalu_t::nal_reference_idc, nalu_t::nal_unit_type, RBSPtoEBSP(), and nalu_t::startcodeprefix_len.
Referenced by GeneratePic_parameter_set_NALU(), GenerateSEImessage_NALU(), GenerateSeq_parameter_set_NALU(), Write_AUD_NALU(), and Write_Filler_Data_NALU().

| int Write_AUD_NALU | ( | ImageParameters * | p_Img | ) |
write AUD NALU
Definition at line 71 of file nalu.c.
References AllocNALU(), FreeNALU(), and RBSPtoNALU().
Referenced by rewrite_paramsets(), start_sequence(), and write_non_vcl_nalu().

| int Write_Filler_Data_NALU | ( | ImageParameters * | p_Img, | |
| int | num_bytes | |||
| ) |
write Filler Data NALU (results to num_bytes + 4 bytes written)
Definition at line 111 of file nalu.c.
References AllocNALU(), FreeNALU(), nalu_t::len, and RBSPtoNALU().
