Lines Matching defs:buf_end
61 const uint8_t *buf, const uint8_t *buf_end)
66 for (i=0; i < s->avctx->height && buf_end - buf >= s->avctx->width; i++) {
93 const uint8_t *buf_end)
100 for(x=0; x<s->avctx->width/4 && buf_end - buf > i; x++) {
103 if (raw+16<buf_end && *raw==0xFF) { /* intra */
110 }else if(raw<buf_end) { /* inter using second-last frame as reference */
131 static int cmv_process_header(CmvContext *s, const uint8_t *buf, const uint8_t *buf_end)
135 if(buf_end - buf < 16) {
161 for (i=pal_start; i<pal_start+pal_count && i<AVPALETTE_COUNT && buf_end - buf >= 3; i++) {
178 const uint8_t *buf_end = buf + buf_size;
181 if (buf_end - buf < EA_PREAMBLE_SIZE)
186 ret = cmv_process_header(s, buf+EA_PREAMBLE_SIZE, buf_end);
189 if (size > buf_end - buf - EA_PREAMBLE_SIZE)
204 cmv_decode_inter(s, frame, buf+2, buf_end);
210 cmv_decode_intra(s, frame, buf+2, buf_end);