Lines Matching defs:buf
69 static int find_start_code(const uint8_t *buf, int buf_size,
74 buf_index = avpriv_find_start_code(buf + buf_index, buf + next_avc + 1, &state) - buf - 1;
79 static int h264_find_frame_end(H264ParseContext *p, const uint8_t *buf,
100 nalsize = (nalsize << 8) | buf[i++];
111 i += p->h264dsp.startcode_find_candidate(buf + i, next_avc - i);
115 if (buf[i] == 1)
117 else if (buf[i])
122 int nalu_type = buf[i] & 0x1F;
138 p->parse_history[p->parse_history_count++] = buf[i];
253 * @param buf buffer with field/frame data.
258 const uint8_t * const buf, int buf_size)
267 int q264 = buf_size >=4 && !memcmp("Q264", buf, 4);
294 nalsize = get_nalsize(p->nal_length_size, buf, buf_size, &buf_index, avctx);
299 buf_index = find_start_code(buf, buf_size, buf_index, next_avc);
307 state = buf[buf_index];
324 consumed = ff_h2645_extract_rbsp(buf + buf_index, src_length, &rbsp, &nal, 1);
592 const uint8_t *buf, int buf_size)
610 next = h264_find_frame_end(p, buf, buf_size, avctx);
612 if (ff_combine_frame(pc, next, &buf, &buf_size) < 0) {
624 parse_nal_units(s, avctx, buf, buf_size);
662 *poutbuf = buf;