Home
last modified time | relevance | path

Searched refs:tmp_frame (Results 1 - 11 of 11) sorted by relevance

/third_party/ffmpeg/fftools/
H A Dffmpeg_videotoolbox.c31 AVFrame *tmp_frame; member
47 av_frame_unref(vt->tmp_frame); in videotoolbox_retrieve_data()
50 case kCVPixelFormatType_420YpCbCr8Planar: vt->tmp_frame->format = AV_PIX_FMT_YUV420P; break; in videotoolbox_retrieve_data()
51 case kCVPixelFormatType_422YpCbCr8: vt->tmp_frame->format = AV_PIX_FMT_UYVY422; break; in videotoolbox_retrieve_data()
52 case kCVPixelFormatType_32BGRA: vt->tmp_frame->format = AV_PIX_FMT_BGRA; break; in videotoolbox_retrieve_data()
55 case kCVPixelFormatType_420YpCbCr8BiPlanarFullRange: vt->tmp_frame->format = AV_PIX_FMT_NV12; break; in videotoolbox_retrieve_data()
59 case kCVPixelFormatType_420YpCbCr10BiPlanarFullRange: vt->tmp_frame->format = AV_PIX_FMT_P010; break; in videotoolbox_retrieve_data()
68 vt->tmp_frame->width = frame->width; in videotoolbox_retrieve_data()
69 vt->tmp_frame->height = frame->height; in videotoolbox_retrieve_data()
70 ret = av_frame_get_buffer(vt->tmp_frame, in videotoolbox_retrieve_data()
[all...]
/third_party/ffmpeg/doc/examples/
H A Dhw_decode.c80 AVFrame *tmp_frame = NULL; in decode_write() local
114 tmp_frame = sw_frame; in decode_write()
116 tmp_frame = frame; in decode_write()
118 size = av_image_get_buffer_size(tmp_frame->format, tmp_frame->width, in decode_write()
119 tmp_frame->height, 1); in decode_write()
127 (const uint8_t * const *)tmp_frame->data, in decode_write()
128 (const int *)tmp_frame->linesize, tmp_frame->format, in decode_write()
129 tmp_frame in decode_write()
[all...]
H A Dmuxing.c63 AVFrame *tmp_frame; member
277 ost->tmp_frame = alloc_audio_frame(AV_SAMPLE_FMT_S16, &c->ch_layout, in open_audio()
313 AVFrame *frame = ost->tmp_frame; in get_audio_frame()
436 ost->tmp_frame = NULL; in open_video()
438 ost->tmp_frame = alloc_picture(AV_PIX_FMT_YUV420P, c->width, c->height); in open_video()
439 if (!ost->tmp_frame) { in open_video()
504 fill_yuv_image(ost->tmp_frame, ost->next_pts, c->width, c->height); in get_video_frame()
505 sws_scale(ost->sws_ctx, (const uint8_t * const *) ost->tmp_frame->data, in get_video_frame()
506 ost->tmp_frame->linesize, 0, c->height, ost->frame->data, in get_video_frame()
530 av_frame_free(&ost->tmp_frame); in close_stream()
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvf_sharpen_npp.c46 AVFrame* tmp_frame; member
59 s->tmp_frame = av_frame_alloc(); in nppsharpen_init()
60 if (!s->tmp_frame) in nppsharpen_init()
67 av_frame_free(&s->tmp_frame); in nppsharpen_init()
131 av_frame_free(&s->tmp_frame); in nppsharpen_uninit()
205 ret = av_hwframe_get_buffer(s->own_frame->hw_frames_ctx, s->tmp_frame, 0); in nppsharpen_filter_frame()
210 av_frame_move_ref(s->own_frame, s->tmp_frame); in nppsharpen_filter_frame()
H A Dvf_chromakey_cuda.c70 AVFrame *tmp_frame; member
87 s->tmp_frame = av_frame_alloc(); in cudachromakey_init()
88 if (!s->tmp_frame) in cudachromakey_init()
111 av_frame_free(&s->tmp_frame); in cudachromakey_uninit()
399 ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0); in cudachromakey_process()
404 av_frame_move_ref(s->frame, s->tmp_frame); in cudachromakey_process()
H A Dvf_transpose_npp.c77 AVFrame *tmp_frame; member
94 s->tmp_frame = av_frame_alloc(); in npptranspose_init()
95 if (!s->tmp_frame) in npptranspose_init()
111 av_frame_free(&s->tmp_frame); in npptranspose_uninit()
371 ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0); in npptranspose_filter()
376 av_frame_move_ref(src, s->tmp_frame); in npptranspose_filter()
H A Dvf_scale_cuda.c87 AVFrame *tmp_frame; member
122 s->tmp_frame = av_frame_alloc(); in cudascale_init()
123 if (!s->tmp_frame) in cudascale_init()
145 av_frame_free(&s->tmp_frame); in cudascale_uninit()
515 ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0); in cudascale_scale()
520 av_frame_move_ref(s->frame, s->tmp_frame); in cudascale_scale()
H A Dvf_scale_npp.c131 AVFrame *tmp_frame; member
351 scale->tmp_frame = av_frame_alloc(); in nppscale_init()
352 if (!scale->tmp_frame) in nppscale_init()
428 av_frame_free(&s->tmp_frame); in nppscale_uninit()
849 ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0); in nppscale_scale()
853 s->tmp_frame->width = src->width; in nppscale_scale()
854 s->tmp_frame->height = src->height; in nppscale_scale()
857 av_frame_move_ref(src, s->tmp_frame); in nppscale_scale()
/third_party/ffmpeg/libavutil/
H A Dhwcontext_qsv.c1072 AVFrame *tmp_frame = &s->realigned_download_frame; in qsv_transfer_data_from() local
1085 if (tmp_frame->format != dst->format || in qsv_transfer_data_from()
1086 tmp_frame->width != FFALIGN(dst->linesize[0], 16) || in qsv_transfer_data_from()
1087 tmp_frame->height != FFALIGN(dst->height, 16)) { in qsv_transfer_data_from()
1088 av_frame_unref(tmp_frame); in qsv_transfer_data_from()
1090 tmp_frame->format = dst->format; in qsv_transfer_data_from()
1091 tmp_frame->width = FFALIGN(dst->linesize[0], 16); in qsv_transfer_data_from()
1092 tmp_frame->height = FFALIGN(dst->height, 16); in qsv_transfer_data_from()
1093 ret = av_frame_get_buffer(tmp_frame, 0); in qsv_transfer_data_from()
1099 dst_frame = realigned ? tmp_frame in qsv_transfer_data_from()
1156 AVFrame *tmp_frame = &s->realigned_upload_frame; qsv_transfer_data_to() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Dvaapi_av1.c45 AVFrame *tmp_frame; member
78 ctx->tmp_frame = av_frame_alloc(); in vaapi_av1_decode_init()
79 if (!ctx->tmp_frame) { in vaapi_av1_decode_init()
102 if (ctx->tmp_frame->buf[0]) in vaapi_av1_decode_uninit()
103 ff_thread_release_buffer(avctx, ctx->tmp_frame); in vaapi_av1_decode_uninit()
104 av_frame_free(&ctx->tmp_frame); in vaapi_av1_decode_uninit()
140 if (ctx->tmp_frame->buf[0]) in vaapi_av1_start_frame()
141 ff_thread_release_buffer(avctx, ctx->tmp_frame); in vaapi_av1_start_frame()
142 err = ff_thread_get_buffer(avctx, ctx->tmp_frame, AV_GET_BUFFER_FLAG_REF); in vaapi_av1_start_frame()
145 pic->output_surface = ff_vaapi_get_surface_id(ctx->tmp_frame); in vaapi_av1_start_frame()
[all...]
H A Dcuviddec.c552 AVFrame *tmp_frame = av_frame_alloc(); in cuvid_output_frame() local
553 if (!tmp_frame) { in cuvid_output_frame()
561 tmp_frame->format = AV_PIX_FMT_CUDA; in cuvid_output_frame()
562 tmp_frame->hw_frames_ctx = av_buffer_ref(ctx->hwframe); in cuvid_output_frame()
563 if (!tmp_frame->hw_frames_ctx) { in cuvid_output_frame()
565 av_frame_free(&tmp_frame); in cuvid_output_frame()
569 tmp_frame->width = avctx->width; in cuvid_output_frame()
570 tmp_frame->height = avctx->height; in cuvid_output_frame()
578 tmp_frame->data[i] = (uint8_t*)mapped_frame + offset; in cuvid_output_frame()
579 tmp_frame in cuvid_output_frame()
[all...]

Completed in 10 milliseconds