#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 min_num_bytes, int UseAnnexbLongStartcode) |
| int | Write_AUD_NALU (void) |
Variables | |
| int(* | WriteNALU )(NALU_t *n) |
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 | min_num_bytes, | |||
| 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 | |
| min_num_bytes | 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(), and Write_AUD_NALU().

| int Write_AUD_NALU | ( | void | ) |
Hides the write function in Annex B or RTP.
Definition at line 72 of file nalu.c.
References AllocNALU(), FreeNALU(), ImageParameters::primary_pic_type, RBSPtoNALU(), and ImageParameters::type.
Referenced by rewrite_paramsets(), start_sequence(), and write_non_vcl_nalu().
