Lines Matching defs:state
176 uint32_t state = pc->state;
193 if (state == EXT_START_CODE && (buf[i] & 0xF0) != 0x80)
195 else if (state == EXT_START_CODE + 2) {
201 state++;
203 i = avpriv_find_start_code(buf + i, buf + buf_size, &state) - buf - 1;
204 if (pc->frame_start_found == 0 && state >= SLICE_MIN_START_CODE && state <= SLICE_MAX_START_CODE) {
208 if (state == SEQ_END_CODE) {
210 pc->state=-1;
213 if (pc->frame_start_found == 2 && state == SEQ_START_CODE)
215 if (pc->frame_start_found < 4 && state == EXT_START_CODE)
217 if (pc->frame_start_found == 4 && (state & 0xFFFFFF00) == 0x100) {
218 if (state < SLICE_MIN_START_CODE || state > SLICE_MAX_START_CODE) {
220 pc->state = -1;
224 if (pc->frame_start_found == 0 && s && state == PICTURE_START_CODE) {
229 pc->state = state;