35 #define UNESCAPED_THRESHOLD 37
41 #define UNESCAPED_LIMIT 144
119 const uint8_t **poutbuf,
int *poutbuf_size,
133 if (pic_found && buf_size == 0) {
139 while (i < buf_size) {
140 int start_code_found = 0;
144 unesc_buffer[unesc_index++] =
b;
146 search_state = b ?
NO_MATCH : search_state + 1;
159 start_code_found = 1;
174 while (i < buf_size) {
191 start_code_found = 1;
197 if (start_code_found) {
245 *poutbuf_size = buf_size;
256 for(i=0; i<buf_size; i++){
257 state= (state<<8) | buf[i];