21 #ifndef DE265_NAL_PARSER_H
22 #define DE265_NAL_PARSER_H
32 #define DE265_NAL_FREE_LIST_SIZE 16
33 #define DE265_SKIPPED_BYTES_INITIAL_SIZE 16
55 int size()
const {
return data_size; }
57 unsigned char*
data() {
return nal_data; }
58 const unsigned char*
data()
const {
return nal_data; }
79 unsigned char* nal_data;
83 std::vector<int> skipped_bytes;
106 int size = nBytes_in_NAL_queue;
107 if (pending_input_NAL) { size += pending_input_NAL->
size(); }
112 int size = NAL_queue.size();
113 if (pending_input_NAL) { size++; }
118 return NAL_queue.size();
133 int input_push_state;
140 std::queue<NAL_unit*> NAL_queue;
141 int nBytes_in_NAL_queue;
148 std::vector<NAL_unit*> NAL_free_list;
Definition: nal-parser.h:88
NAL_unit * pop_from_NAL_queue()
void free_NAL_unit(NAL_unit *)
void remove_pending_input_data()
bool is_end_of_frame() const
Definition: nal-parser.h:126
int number_of_NAL_units_pending() const
Definition: nal-parser.h:111
int get_NAL_queue_length() const
Definition: nal-parser.h:124
void mark_end_of_frame()
Definition: nal-parser.h:102
de265_error push_NAL(const unsigned char *data, int len, de265_PTS pts, void *user_data=NULL)
bool is_end_of_stream() const
Definition: nal-parser.h:125
int bytes_in_input_queue() const
Definition: nal-parser.h:105
de265_error push_data(const unsigned char *data, int len, de265_PTS pts, void *user_data=NULL)
void mark_end_of_stream()
Definition: nal-parser.h:101
int number_of_complete_NAL_units_pending() const
Definition: nal-parser.h:117
Definition: nal-parser.h:36
const unsigned char * data() const
Definition: nal-parser.h:58
int size() const
Definition: nal-parser.h:55
LIBDE265_CHECK_RESULT bool append(const unsigned char *data, int n)
unsigned char * data()
Definition: nal-parser.h:57
LIBDE265_CHECK_RESULT bool resize(int new_size)
LIBDE265_CHECK_RESULT bool set_data(const unsigned char *data, int n)
int num_skipped_bytes() const
Definition: nal-parser.h:64
nal_header header
Definition: nal-parser.h:41
de265_PTS pts
Definition: nal-parser.h:43
void insert_skipped_byte(int pos)
int num_skipped_bytes_before(int byte_position, int headerLength) const
void * user_data
Definition: nal-parser.h:44
void remove_stuffing_bytes()
void set_size(int s)
Definition: nal-parser.h:56
int64_t de265_PTS
Definition: de265.h:166
de265_error
Definition: de265.h:82
#define LIBDE265_CHECK_RESULT
Definition: util.h:56