Lines Matching defs:bpc
42 BMPParseContext *bpc = s->priv_data;
43 uint64_t state = bpc->pc.state64;
51 if (bpc->pc.frame_start_found <= 2+4+4) {
54 if (bpc->pc.frame_start_found == 0) {
56 bpc->fsize = av_bswap32(state >> 16);
57 if (bpc->fsize > 17)
58 bpc->pc.frame_start_found = 1;
60 } else if (bpc->pc.frame_start_found == 2+4+4) {
64 bpc->pc.frame_start_found = 0;
67 bpc->pc.frame_start_found++;
68 bpc->remaining_size = bpc->fsize + i - 17;
70 if (bpc->pc.index + i > 17) {
75 bpc->pc.state64 = 0;
78 } else if (bpc->pc.frame_start_found)
79 bpc->pc.frame_start_found++;
81 bpc->pc.state64 = state;
83 if (bpc->remaining_size) {
84 i = FFMIN(bpc->remaining_size, buf_size);
85 bpc->remaining_size -= i;
86 if (bpc->remaining_size)
89 bpc->pc.frame_start_found = 0;
95 if (ff_combine_frame(&bpc->pc, next, &buf, &buf_size) < 0)
99 bpc->pc.frame_start_found = FFMAX(bpc->pc.frame_start_found - i - 1, 0);
101 bpc->pc.frame_start_found = 0;