Lines Matching defs:state
188 uint32_t state = pc->state;
205 if (state == EXT_START_CODE && (buf[i] & 0xF0) != 0x80)
207 else if (state == EXT_START_CODE + 2) {
213 state++;
215 i = avpriv_find_start_code(buf + i, buf + buf_size, &state) - buf - 1;
216 if (pc->frame_start_found == 0 && state >= SLICE_MIN_START_CODE && state <= SLICE_MAX_START_CODE) {
220 if (state == SEQ_END_CODE) {
222 pc->state=-1;
225 if (pc->frame_start_found == 2 && state == SEQ_START_CODE)
227 if (pc->frame_start_found < 4 && state == EXT_START_CODE)
229 if (pc->frame_start_found == 4 && (state & 0xFFFFFF00) == 0x100) {
230 if (state < SLICE_MIN_START_CODE || state > SLICE_MAX_START_CODE) {
232 pc->state = -1;
236 if (pc->frame_start_found == 0 && s && state == PICTURE_START_CODE) {
241 pc->state = state;