36 #define UNESCAPED_THRESHOLD 37
42 #define UNESCAPED_LIMIT 144
122 const uint8_t **poutbuf,
int *poutbuf_size,
133 int start_code_found = 0;
137 if (pic_found && buf_size == 0) {
143 while (i < buf_size) {
145 start_code_found = 0;
148 unesc_buffer[unesc_index++] =
b;
150 search_state = b ?
NO_MATCH : search_state + 1;
163 start_code_found = 1;
178 while (i < buf_size) {
195 start_code_found = 1;
201 if (start_code_found) {
247 *poutbuf_size = buf_size;
263 return ptr - 4 -
buf;