Lines Matching refs:buf_end
63 const uint8_t *buf, const uint8_t *buf_end)
68 for (i=0; i < s->avctx->height && buf_end - buf >= s->avctx->width; i++) {
95 const uint8_t *buf_end)
102 for(x=0; x<s->avctx->width/4 && buf_end - buf > i; x++) {
105 if (raw+16<buf_end && *raw==0xFF) { /* intra */
112 }else if(raw<buf_end) { /* inter using second-last frame as reference */
133 static int cmv_process_header(CmvContext *s, const uint8_t *buf, const uint8_t *buf_end)
137 if(buf_end - buf < 16) {
163 for (i=pal_start; i<pal_start+pal_count && i<AVPALETTE_COUNT && buf_end - buf >= 3; i++) {
181 const uint8_t *buf_end = buf + buf_size;
185 if (buf_end - buf < EA_PREAMBLE_SIZE)
190 ret = cmv_process_header(s, buf+EA_PREAMBLE_SIZE, buf_end);
193 if (size > buf_end - buf - EA_PREAMBLE_SIZE)
208 cmv_decode_inter(s, frame, buf+2, buf_end);
214 cmv_decode_intra(s, frame, buf+2, buf_end);