Lines Matching defs:state
72 uint32_t state = -1;
74 buf_index = avpriv_find_start_code(buf + buf_index, buf + next_avc + 1, &state) - buf - 1;
83 uint32_t state;
88 state = pc->state;
89 if (state > 13)
90 state = 7;
107 state = 5;
110 if (state == 7) {
113 state = 2;
114 } else if (state <= 2) {
116 state ^= 5; // 2->7, 1->4, 0->5
118 state = 7;
120 state >>= 1; // 2->1, 1->0, 0->0
121 } else if (state <= 5) {
131 state += 8;
134 state = 7;
153 state = 7;
157 pc->state = state;
163 pc->state = 7;
167 return i - (state & 5);
266 int state = -1, got_reset = 0;
307 state = buf[buf_index];
308 switch (state & 0x1f) {
312 if ((state & 0x1f) == H264_NAL_IDR_SLICE || ((state >> 5) & 0x3) == 0) {
620 h264_find_frame_end(p, &pc->buffer[pc->last_index + next], -next, avctx); // update state