Lines Matching defs:frame
128 static void xavs2_copy_frame_with_shift(xavs2_picture_t *pic, const AVFrame *frame, const int shift_in)
138 p_buffer = frame->data[plane];
145 p_buffer += frame->linesize[plane];
150 static void xavs2_copy_frame(xavs2_picture_t *pic, const AVFrame *frame)
160 p_buffer = frame->data[plane];
165 p_buffer += frame->linesize[plane];
171 const AVFrame *frame, int *got_packet)
178 /* read frame data and send to the XAVS2 video encoder */
180 av_log(avctx, AV_LOG_ERROR, "Failed to get xavs2 frame buffer\n");
183 if (frame) {
184 switch (frame->format) {
187 xavs2_copy_frame(&pic, frame);
190 xavs2_copy_frame_with_shift(&pic, frame, shift_in);
195 xavs2_copy_frame(&pic, frame);
205 pic.i_pts = frame->pts;