35 #define UNESCAPED_THRESHOLD 37
41 #define UNESCAPED_LIMIT 144
119 const uint8_t **poutbuf,
int *poutbuf_size,
130 int start_code_found = 0;
134 if (pic_found && buf_size == 0) {
140 while (i < buf_size) {
142 start_code_found = 0;
145 unesc_buffer[unesc_index++] =
b;
147 search_state = b ?
NO_MATCH : search_state + 1;
160 start_code_found = 1;
175 while (i < buf_size) {
192 start_code_found = 1;
198 if (start_code_found) {
244 *poutbuf_size = buf_size;
255 for(i=0; i<buf_size; i++){
256 state= (state<<8) | buf[i];