Home
last modified time | relevance | path

Searched refs:last_picture (Results 1 – 25 of 33) sorted by relevance

12

/third_party/ffmpeg/libavcodec/
Dlscrdec.c42 AVFrame *last_picture; member
115 AVFrame *frame = s->last_picture; in decode_frame_lscr()
216 av_frame_free(&s->last_picture); in lscr_decode_close()
232 s->last_picture = av_frame_alloc(); in lscr_decode_init()
233 if (!s->last_picture) in lscr_decode_init()
244 av_frame_unref(s->last_picture); in lscr_decode_flush()
Dsnow.c362 uint8_t *src= s->last_picture[block->ref]->data[plane_index]; in ff_snow_pred_block()
499 s->last_picture[i] = av_frame_alloc(); in ff_snow_common_init()
500 if (!s->last_picture[i]) in ff_snow_common_init()
649 if(s->last_picture[s->max_ref_frames-1]->data[0]){ in ff_snow_release_buffer()
650 av_frame_unref(s->last_picture[s->max_ref_frames-1]); in ff_snow_release_buffer()
665 tmp= s->last_picture[s->max_ref_frames-1]; in ff_snow_frame_start()
667 s->last_picture[i] = s->last_picture[i-1]; in ff_snow_frame_start()
673 s->last_picture[0] = s->current_picture; in ff_snow_frame_start()
680 for(i=0; i<s->max_ref_frames && s->last_picture[i]->data[0]; i++) in ff_snow_frame_start()
681 if(i && s->last_picture[i-1]->key_frame) in ff_snow_frame_start()
[all …]
Dffv1.c47 s->last_picture.f = av_frame_alloc(); in ff_ffv1_common_init()
48 if (!s->picture.f || !s->last_picture.f) in ff_ffv1_common_init()
205 if (s->last_picture.f) in ff_ffv1_close()
206 ff_thread_release_ext_buffer(avctx, &s->last_picture); in ff_ffv1_close()
207 av_frame_free(&s->last_picture.f); in ff_ffv1_close()
Dpngdec.c62 ThreadFrame last_picture; member
1030 if ((sequence_number == 0 || !s->last_picture.f->data[0]) && in decode_fctl_chunk()
1062 uint8_t *pd_last = s->last_picture.f->data[0]; in handle_p_frame_png()
1067 ff_thread_await_progress(&s->last_picture, INT_MAX, 0); in handle_p_frame_png()
1072 pd_last += s->last_picture.f->linesize[0]; in handle_p_frame_png()
1085 const uint8_t *src = s->last_picture.f->data[0]; in handle_p_frame_apng()
1086 ptrdiff_t src_stride = s->last_picture.f->linesize[0]; in handle_p_frame_apng()
1099 ff_thread_await_progress(&s->last_picture, INT_MAX, 0); in handle_p_frame_apng()
1438 if (s->last_picture.f->data[0]) { in decode_frame_common()
1440 && s->last_picture.f->width == p->width in decode_frame_common()
[all …]
Dsvq1enc.c276 s->m.last_picture_ptr = &s->m.last_picture; in svq1_encode_plane()
277 s->m.last_picture.f->data[0] = ref_plane; in svq1_encode_plane()
279 s->m.last_picture.f->linesize[0] = in svq1_encode_plane()
513 av_frame_free(&s->last_picture); in svq1_encode_end()
533 s->last_picture = av_frame_alloc(); in svq1_encode_init()
534 if (!s->current_picture || !s->last_picture) { in svq1_encode_init()
603 if (!s->last_picture->data[0]) { in svq1_encode_frame()
604 ret = ff_encode_alloc_frame(avctx, s->last_picture); in svq1_encode_frame()
614 FFSWAP(AVFrame*, s->current_picture, s->last_picture); in svq1_encode_frame()
630 s->last_picture->data[i], in svq1_encode_frame()
Dffv1dec.c268 ff_thread_await_progress(&f->last_picture, si, 0); in decode_slice()
868 if (f->last_picture.f) in decode_frame()
869 ff_thread_release_ext_buffer(avctx, &f->last_picture); in decode_frame()
870 FFSWAP(ThreadFrame, f->picture, f->last_picture); in decode_frame()
980 if (fs->slice_damaged && f->last_picture.f->data[0]) { in decode_frame()
984 ff_thread_await_progress(&f->last_picture, INT_MAX, 0); in decode_frame()
991 src[j] = f->last_picture.f->data[j] + f->last_picture.f->linesize[j] * in decode_frame()
997 src[1] = f->last_picture.f->data[1]; in decode_frame()
1000 f->last_picture.f->linesize, in decode_frame()
1008 if (f->last_picture.f) in decode_frame()
[all …]
Dvc1_mc.c187 !v->s.last_picture.f->data[0]) in ff_vc1_mc_1mv()
230 srcY = s->last_picture.f->data[0]; in ff_vc1_mc_1mv()
231 srcU = s->last_picture.f->data[1]; in ff_vc1_mc_1mv()
232 srcV = s->last_picture.f->data[2]; in ff_vc1_mc_1mv()
236 interlace = s->last_picture.f->interlaced_frame; in ff_vc1_mc_1mv()
467 !v->s.last_picture.f->data[0]) in ff_vc1_mc_4mv_luma()
482 srcY = s->last_picture.f->data[0]; in ff_vc1_mc_4mv_luma()
485 interlace = s->last_picture.f->interlaced_frame; in ff_vc1_mc_4mv_luma()
648 if (!v->field_mode && !v->s.last_picture.f->data[0]) in ff_vc1_mc_4mv_chroma()
667 …if (v->field_mode && chroma_ref_type == 1 && v->cur_field_type == 1 && !v->s.last_picture.f->data[… in ff_vc1_mc_4mv_chroma()
[all …]
Dmpegvideo_dec.c126 UPDATE_PICTURE(last_picture); in ff_mpeg_update_thread_context()
306 ff_mpeg_unref_picture(s->avctx, &s->last_picture); in ff_mpv_frame_start()
446 memset(s->last_picture.f->data, 0, sizeof(s->last_picture.f->data)); in ff_mpv_frame_start()
451 (ret = ff_mpeg_ref_picture(s->avctx, &s->last_picture, in ff_mpv_frame_start()
472 s->last_picture.f->linesize[i] *= 2; in ff_mpv_frame_start()
563 ff_mpeg_unref_picture(s->avctx, &s->last_picture); in ff_mpeg_flush()
Dsvq1enc.h44 AVFrame *last_picture; member
Dnvdec_mpeg12.c65 .ForwardRefIdx = ff_nvdec_get_ref_idx(s->last_picture.f), in nvdec_mpeg12_start_frame()
Dvdpau_mpeg4.c56 ref = ff_vdpau_get_surface_id(s->last_picture.f); in vdpau_mpeg4_start_frame()
Dffv1.h90 ThreadFrame picture, last_picture; member
Dnvdec_mpeg4.c62 .ForwardRefIdx = ff_nvdec_get_ref_idx(s->last_picture.f), in nvdec_mpeg4_start_frame()
Dvdpau_mpeg12.c55 ref = ff_vdpau_get_surface_id(s->last_picture.f); in vdpau_mpeg_start_frame()
Dnvdec_vc1.c65 .ForwardRefIdx = ff_nvdec_get_ref_idx(s->last_picture.f), in nvdec_vc1_start_frame()
Dvdpau_vc1.c58 ref = ff_vdpau_get_surface_id(s->last_picture.f); in vdpau_vc1_start_frame()
Dvaapi_mpeg2.c79 pic_param.forward_reference_picture = ff_vaapi_get_surface_id(s->last_picture.f); in vaapi_mpeg2_start_frame()
Dvaapi_mpeg4.c105 pic_param.forward_reference_picture = ff_vaapi_get_surface_id(s->last_picture.f); in vaapi_mpeg4_start_frame()
Dmotion_est.c703 …s->hdsp.put_no_rnd_pixels_tab[1][dxy](c->scratchpad , s->last_picture.f->data[1] + offset, s->u… in h263_mv4_search()
704 …s->hdsp.put_no_rnd_pixels_tab[1][dxy](c->scratchpad + 8, s->last_picture.f->data[2] + offset, s->u… in h263_mv4_search()
706 …s->hdsp.put_pixels_tab [1][dxy](c->scratchpad , s->last_picture.f->data[1] + offset, s->u… in h263_mv4_search()
707 …s->hdsp.put_pixels_tab [1][dxy](c->scratchpad + 8, s->last_picture.f->data[2] + offset, s->u… in h263_mv4_search()
900 init_ref(c, s->new_picture->data, s->last_picture.f->data, NULL, 16*mb_x, 16*mb_y, 0); in ff_estimate_p_frame_motion()
1071 init_ref(c, s->new_picture->data, s->last_picture.f->data, NULL, 16*mb_x, 16*mb_y, 0); in ff_pre_estimate_p_frame_motion()
1500 init_ref(c, s->new_picture->data, s->last_picture.f->data, in ff_estimate_b_frame_motion()
Dmpegvideo.c664 memset(&s->last_picture, 0, sizeof(s->last_picture)); in clear_context()
794 !(s->last_picture.f = av_frame_alloc()) || in ff_mpv_common_init()
904 ff_mpv_picture_free(s->avctx, &s->last_picture); in ff_mpv_common_end()
1498 … MPV_motion_lowres(s, dest_y, dest_cb, dest_cr, 0, s->last_picture.f->data, op_pix); in mpv_reconstruct_mb_internal()
1512 … ff_mpv_motion(s, dest_y, dest_cb, dest_cr, 0, s->last_picture.f->data, op_pix, op_qpix); in mpv_reconstruct_mb_internal()
Dmpegvideo_xvmc.c138 last = (struct xvmc_pix_fmt*)s->last_picture.f->data[2]; in ff_xvmc_field_start()
Dmpegvideo.h145 Picture last_picture; member
Ddxva2_mpeg2.c54 pp->wForwardRefPictureIndex = ff_dxva2_get_surface_index(avctx, ctx, s->last_picture.f); in fill_picture_parameters()
Dvc1dec.c214 iplane = s->last_picture.f->data[plane]; in vc1_draw_sprites()
215 iline = s->last_picture.f->linesize[plane]; in vc1_draw_sprites()
294 if (v->two_sprites && (!s->last_picture_ptr || !s->last_picture.f->data[0])) { in vc1_decode_sprites()
/third_party/ffmpeg/libavformat/tests/
Dmovenc.c69 enum AVPictureType last_picture; variable
268 last_picture = AV_PICTURE_TYPE_I; in mux_frames()
272 if (last_picture == AV_PICTURE_TYPE_P) { in mux_frames()
273 last_picture = AV_PICTURE_TYPE_B; in mux_frames()
277 last_picture = AV_PICTURE_TYPE_P; in mux_frames()

12