Lines Matching refs:frame
31 * - "optimally" split the frame into several non-regular areas
62 #define MIN_STRIPS 1 // Note: having more strips speeds up encoding the frame (this is less obvious)
67 // the numbers are only used for brute force optimization for the first frame,
93 int skip_error; // error when block is skipped (aka copied from last frame)
140 { "max_strips", "Limit strips/frame, vintage compatible is 1..3, otherwise the more the better",
142 { "min_strips", "Enforce min strips/frame, more is worse and faster, must be <= max_strips",
401 // "kind of" motion compensation, especially in 1 strip/frame case) -- rl
1008 static int rd_frame(CinepakEncContext *s, const AVFrame *frame,
1019 // build a copy of the given frame in the correct colorspace
1024 ir[0] = frame->data[0] + x * 3 + y * frame->linesize[0];
1025 ir[1] = ir[0] + frame->linesize[0];
1072 // support encoding zero strips (meaning skip the whole frame)
1100 (uint8_t **)frame->data, (int *)frame->linesize,
1132 // (this makes the processing of the very first frame faster)
1169 const AVFrame *frame, int *got_packet)
1174 s->lambda = frame->quality ? frame->quality - 1 : 2 * FF_LAMBDA_SCALE;
1178 ret = rd_frame(s, frame, (s->curframe == 0), pkt->data, s->frame_buf_size, &got_keyframe);