Home
last modified time | relevance | path

Searched refs:hwaccel (Results 1 – 25 of 37) sorted by relevance

12

/third_party/ffmpeg/libavcodec/
Dhwconfig.h39 const AVHWAccel *hwaccel; member
54 .hwaccel = &name, \
64 .hwaccel = NULL, \
93 .hwaccel = NULL, \
Ddecode.c1184 if (!avctx->hwaccel) in ff_decode_get_hw_frames_ctx()
1205 avctx->hwaccel->pix_fmt, in ff_decode_get_hw_frames_ctx()
1246 hwa = hw_config->hwaccel; in avcodec_get_hw_frames_parameters()
1280 const AVHWAccel *hwaccel; in hwaccel_init() local
1283 hwaccel = hw_config->hwaccel; in hwaccel_init()
1284 if (hwaccel->capabilities & AV_HWACCEL_CODEC_CAP_EXPERIMENTAL && in hwaccel_init()
1287 hwaccel->name); in hwaccel_init()
1291 if (hwaccel->priv_data_size) { in hwaccel_init()
1293 av_mallocz(hwaccel->priv_data_size); in hwaccel_init()
1298 avctx->hwaccel = hwaccel; in hwaccel_init()
[all …]
Dav1dec.c464 if (!avctx->hwaccel) { in get_pixel_format()
725 if (avctx->hwaccel) { in av1_frame_alloc()
726 const AVHWAccel *hwaccel = avctx->hwaccel; in av1_frame_alloc() local
727 if (hwaccel->frame_priv_data_size) { in av1_frame_alloc()
729 av_buffer_allocz(hwaccel->frame_priv_data_size); in av1_frame_alloc()
942 if (avctx->hwaccel && avctx->hwaccel->decode_params) { in av1_decode_frame()
943 ret = avctx->hwaccel->decode_params(avctx, unit->type, unit->data, in av1_decode_frame()
1011 if (avctx->hwaccel) { in av1_decode_frame()
1012 ret = avctx->hwaccel->start_frame(avctx, unit->data, in av1_decode_frame()
1038 if (avctx->hwaccel) { in av1_decode_frame()
[all …]
Dvc1dec.c679 if (avctx->hwaccel) in vc1_decode_frame()
685 if (avctx->hwaccel) in vc1_decode_frame()
749 if (avctx->hwaccel) in vc1_decode_frame()
903 if (avctx->hwaccel) { in vc1_decode_frame()
908 … if ((ret = avctx->hwaccel->start_frame(avctx, buf_start, buf_start_second_field - buf_start)) < 0) in vc1_decode_frame()
913 …if ((ret = avctx->hwaccel->decode_slice(avctx, buf_start, buf_start_second_field - buf_start)) < 0) in vc1_decode_frame()
916 … if ((ret = avctx->hwaccel->decode_slice(avctx, buf_start, slices[0].rawbuf - buf_start)) < 0) in vc1_decode_frame()
934 … if ((ret = avctx->hwaccel->decode_slice(avctx, slices[i].rawbuf, slices[i].raw_size)) < 0) in vc1_decode_frame()
939 if ((ret = avctx->hwaccel->end_frame(avctx)) < 0) in vc1_decode_frame()
955 …if ((ret = avctx->hwaccel->start_frame(avctx, buf_start_second_field, (buf + buf_size) - buf_start… in vc1_decode_frame()
[all …]
Dh263dec.c171 if (s->divx_packed || s->avctx->hwaccel) { in get_consumed_bytes()
212 if (s->avctx->hwaccel) { in decode_slice()
214 ret = s->avctx->hwaccel->decode_slice(s->avctx, start, s->gb.buffer_end - start); in decode_slice()
618 if (!s->divx_packed && !avctx->hwaccel) in ff_h263_decode_frame()
621 if (avctx->hwaccel) { in ff_h263_decode_frame()
622 ret = avctx->hwaccel->start_frame(avctx, s->gb.buffer, in ff_h263_decode_frame()
677 if (avctx->hwaccel) { in ff_h263_decode_frame()
678 ret = avctx->hwaccel->end_frame(avctx); in ff_h263_decode_frame()
688 if (!s->divx_packed && avctx->hwaccel) in ff_h263_decode_frame()
Dh264dec.c635 if (h->avctx->hwaccel && in decode_nal_units()
636 (ret = h->avctx->hwaccel->start_frame(h->avctx, buf, buf_size)) < 0) in decode_nal_units()
640 max_slice_ctx = avctx->hwaccel ? 1 : h->nb_slice_ctx; in decode_nal_units()
642 if (h->avctx->hwaccel) { in decode_nal_units()
643 ret = avctx->hwaccel->decode_slice(avctx, nal->raw_data, nal->raw_size); in decode_nal_units()
666 if (avctx->hwaccel && avctx->hwaccel->decode_params) { in decode_nal_units()
667 ret = avctx->hwaccel->decode_params(avctx, in decode_nal_units()
685 if (avctx->hwaccel && avctx->hwaccel->decode_params) { in decode_nal_units()
686 ret = avctx->hwaccel->decode_params(avctx, in decode_nal_units()
882 if (!h->avctx->hwaccel && in finalize_frame()
Dpthread_frame.c218 if (avctx->hwaccel) { in frame_worker_thread()
241 avctx->hwaccel = NULL; in frame_worker_thread()
248 av_assert0(!avctx->hwaccel); in frame_worker_thread()
459 av_assert0(!p->avctx->hwaccel); in submit_packet()
460 FFSWAP(const AVHWAccel*, p->avctx->hwaccel, fctx->stash_hwaccel); in submit_packet()
655 if (avctx->hwaccel && !p->hwaccel_serializing) { in ff_thread_finish_setup()
661 if (avctx->hwaccel && in ff_thread_finish_setup()
662 !(avctx->hwaccel->caps_internal & HWACCEL_CAP_ASYNC_SAFE)) { in ff_thread_finish_setup()
672 p->parent->stash_hwaccel = avctx->hwaccel; in ff_thread_finish_setup()
825 av_assert0(!avctx->hwaccel); in ff_frame_thread_free()
[all …]
Dhevc_refs.c115 if (s->avctx->hwaccel) { in alloc_frame()
116 const AVHWAccel *hwaccel = s->avctx->hwaccel; in alloc_frame() local
118 if (hwaccel->frame_priv_data_size) { in alloc_frame()
119 frame->hwaccel_priv_buf = av_buffer_allocz(hwaccel->frame_priv_data_size); in alloc_frame()
395 if (!s->avctx->hwaccel) { in generate_missing_ref()
Dmpegpicture.c64 if (avctx->hwaccel) in ff_mpeg_framesize_alloc()
142 if (avctx->hwaccel) { in alloc_frame_buffer()
144 if (avctx->hwaccel->frame_priv_data_size) { in alloc_frame_buffer()
145 pic->hwaccel_priv_buf = av_buffer_allocz(avctx->hwaccel->frame_priv_data_size); in alloc_frame_buffer()
Dh264_picture.c175 if (avctx->hwaccel) { in ff_h264_field_end()
176 err = avctx->hwaccel->end_frame(avctx); in ff_h264_field_end()
Derror_resilience.c745 s->avctx->hwaccel && s->avctx->hwaccel->decode_mb && in is_intra_more_likely()
815 if(s->avctx->hwaccel && s->avctx->hwaccel->decode_slice || in er_supported()
839 if (s->avctx->hwaccel && s->avctx->hwaccel->decode_slice) in ff_er_add_slice()
1236 if (CONFIG_XVMC && s->avctx->hwaccel && s->avctx->hwaccel->decode_mb) in ff_er_frame_end()
Dmpeg12dec.c1189 if (avctx->hwaccel) in setup_hwaccel_for_pixfmt()
1193 if (avctx->hwaccel && avctx->pix_fmt == AV_PIX_FMT_XVMC) { in setup_hwaccel_for_pixfmt()
1670 if (s->avctx->hwaccel) { in mpeg_field_start()
1671 if ((ret = s->avctx->hwaccel->end_frame(s->avctx)) < 0) { in mpeg_field_start()
1686 if (avctx->hwaccel) { in mpeg_field_start()
1687 if ((ret = avctx->hwaccel->start_frame(avctx, buf, buf_size)) < 0) in mpeg_field_start()
1762 if (avctx->hwaccel && avctx->hwaccel->decode_slice) { in mpeg_decode_slice()
1769 if (avctx->hwaccel->decode_slice(avctx, buf_start, buf_end - buf_start) < 0) in mpeg_decode_slice()
2041 if (s->avctx->hwaccel) { in slice_end()
2042 int ret = s->avctx->hwaccel->end_frame(s->avctx); in slice_end()
[all …]
Dhevcdec.c505 if (sps->sao_enabled && !s->avctx->hwaccel) { in set_sps()
2944 if (!s->avctx->hwaccel) in hevc_frame_start()
2968 if (s->avctx->hwaccel && s->avctx->hwaccel->decode_params) { in decode_nal_unit()
2969 ret = s->avctx->hwaccel->decode_params(s->avctx, in decode_nal_unit()
2981 if (s->avctx->hwaccel && s->avctx->hwaccel->decode_params) { in decode_nal_unit()
2982 ret = s->avctx->hwaccel->decode_params(s->avctx, in decode_nal_unit()
2995 if (s->avctx->hwaccel && s->avctx->hwaccel->decode_params) { in decode_nal_unit()
2996 ret = s->avctx->hwaccel->decode_params(s->avctx, in decode_nal_unit()
3009 if (s->avctx->hwaccel && s->avctx->hwaccel->decode_params) { in decode_nal_unit()
3010 ret = s->avctx->hwaccel->decode_params(s->avctx, in decode_nal_unit()
[all …]
Dvdpau.c322 avctx->hwaccel->uninit(avctx); in ff_vdpau_common_reinit()
323 return avctx->hwaccel->init(avctx); in ff_vdpau_common_reinit()
Davcodec.h1680 const struct AVHWAccel *hwaccel; member
4106 void av_register_hwaccel(AVHWAccel *hwaccel);
4117 AVHWAccel *av_hwaccel_next(const AVHWAccel *hwaccel);
Davcodec.c612 if (avctx->hwaccel && avctx->hwaccel->uninit) in avcodec_close()
613 avctx->hwaccel->uninit(avctx); in avcodec_close()
Dvp9.c141 if (avctx->hwaccel) { in vp9_frame_alloc()
142 const AVHWAccel *hwaccel = avctx->hwaccel; in vp9_frame_alloc() local
144 if (hwaccel->frame_priv_data_size) { in vp9_frame_alloc()
145 f->hwaccel_priv_buf = av_buffer_allocz(hwaccel->frame_priv_data_size); in vp9_frame_alloc()
1633 if (avctx->hwaccel) { in vp9_decode_frame()
1634 ret = avctx->hwaccel->start_frame(avctx, NULL, 0); in vp9_decode_frame()
1637 ret = avctx->hwaccel->decode_slice(avctx, pkt->data, pkt->size); in vp9_decode_frame()
1640 ret = avctx->hwaccel->end_frame(avctx); in vp9_decode_frame()
Dvp8.c79 if (s->avctx->hwaccel) { in vp8_alloc_frame()
80 const AVHWAccel *hwaccel = s->avctx->hwaccel; in vp8_alloc_frame() local
81 if (hwaccel->frame_priv_data_size) { in vp8_alloc_frame()
82 f->hwaccel_priv_buf = av_buffer_allocz(hwaccel->frame_priv_data_size); in vp8_alloc_frame()
2725 if (avctx->hwaccel) { in vp78_decode_frame()
2726 ret = avctx->hwaccel->start_frame(avctx, avpkt->data, avpkt->size); in vp78_decode_frame()
2730 ret = avctx->hwaccel->decode_slice(avctx, avpkt->data, avpkt->size); in vp78_decode_frame()
2734 ret = avctx->hwaccel->end_frame(avctx); in vp78_decode_frame()
Dmpegutils.c192 if (avctx->hwaccel || !mbtype_table) in ff_print_debug_info2()
Dmjpegdec.c766 if (s->avctx->hwaccel) { in ff_mjpeg_decode_sof()
768 av_mallocz(s->avctx->hwaccel->frame_priv_data_size); in ff_mjpeg_decode_sof()
772 ret = s->avctx->hwaccel->start_frame(s->avctx, s->raw_image_buffer, in ff_mjpeg_decode_sof()
1737 if (s->avctx->hwaccel) { in ff_mjpeg_decode_sos()
1742 ret = s->avctx->hwaccel->decode_slice(s->avctx, in ff_mjpeg_decode_sos()
2550 if (!avctx->hwaccel && avctx->skip_frame != AVDISCARD_ALL && in ff_mjpeg_receive_frame()
2570 if (s->avctx->hwaccel) { in ff_mjpeg_receive_frame()
2571 ret = s->avctx->hwaccel->end_frame(s->avctx); in ff_mjpeg_receive_frame()
Doptions.c259 dest->hwaccel = NULL; in avcodec_copy_context()
Dh264_slice.c199 if (h->avctx->hwaccel) { in alloc_picture()
200 const AVHWAccel *hwaccel = h->avctx->hwaccel; in alloc_picture() local
202 if (hwaccel->frame_priv_data_size) { in alloc_picture()
203 pic->hwaccel_priv_buf = av_buffer_allocz(hwaccel->frame_priv_data_size); in alloc_picture()
209 if (CONFIG_GRAY && !h->avctx->hwaccel && h->flags & AV_CODEC_FLAG_GRAY && pic->f->data[2]) { in alloc_picture()
1615 } else if (!h->frame_recovered && !h->avctx->hwaccel) in h264_field_start()
2810 if (h->avctx->hwaccel || context_count < 1) in ff_h264_execute_decode_slices()
/third_party/ffmpeg/libavcodec/x86/
Dblockdsp_init.c48 if (CONFIG_XVMC && avctx->hwaccel && avctx->hwaccel->decode_mb) in ff_blockdsp_init_x86()
/third_party/ffmpeg/fftools/
Dffmpeg_opt.c793 const char *hwaccel = NULL; in add_input_streams() local
886 MATCH_PER_STREAM_OPT(hwaccels, str, hwaccel, ic, st); in add_input_streams()
890 if (!hwaccel_output_format && hwaccel && !strcmp(hwaccel, "cuvid")) { in add_input_streams()
906 if (hwaccel) { in add_input_streams()
908 if (!strcmp(hwaccel, "nvdec") || !strcmp(hwaccel, "cuvid")) in add_input_streams()
909 hwaccel = "cuda"; in add_input_streams()
911 if (!strcmp(hwaccel, "none")) in add_input_streams()
913 else if (!strcmp(hwaccel, "auto")) in add_input_streams()
919 if (!strcmp(hwaccels[i].name, hwaccel)) { in add_input_streams()
926 type = av_hwdevice_find_type_by_name(hwaccel); in add_input_streams()
[all …]
/third_party/ffmpeg/tests/
Dfate-run.sh26 hwaccel=${17:-none}
129 dec_opts="-hwaccel $hwaccel -threads $threads -thread_type $thread_type"

12