35 #define UNESCAPED_THRESHOLD 37
41 #define UNESCAPED_LIMIT 144
121 const uint8_t **poutbuf,
int *poutbuf_size,
132 int start_code_found = 0;
136 if (pic_found && buf_size == 0) {
142 while (i < buf_size) {
144 start_code_found = 0;
147 unesc_buffer[unesc_index++] =
b;
149 search_state = b ?
NO_MATCH : search_state + 1;
162 start_code_found = 1;
177 while (i < buf_size) {
194 start_code_found = 1;
200 if (start_code_found) {
246 *poutbuf_size = buf_size;
257 for(i=0; i<buf_size; i++){
258 state= (state<<8) | buf[i];