Home
last modified time | relevance | path

Searched refs:nb_surfaces (Results 1 - 22 of 22) sorted by relevance

/third_party/ffmpeg/libavfilter/
H A Dvf_scale_qsv.c203 for (i = 0; i < out_frames_hwctx->nb_surfaces; i++) { in init_out_pool()
334 s->surface_ptrs_in = av_calloc(in_frames_hwctx->nb_surfaces, in init_out_session()
338 for (i = 0; i < in_frames_hwctx->nb_surfaces; i++) in init_out_session()
340 s->nb_surface_ptrs_in = in_frames_hwctx->nb_surfaces; in init_out_session()
342 s->surface_ptrs_out = av_calloc(out_frames_hwctx->nb_surfaces, in init_out_session()
346 for (i = 0; i < out_frames_hwctx->nb_surfaces; i++) in init_out_session()
348 s->nb_surface_ptrs_out = out_frames_hwctx->nb_surfaces; in init_out_session()
374 s->mem_ids_in = av_calloc(in_frames_hwctx->nb_surfaces, in init_out_session()
378 for (i = 0; i < in_frames_hwctx->nb_surfaces; i++) in init_out_session()
380 s->nb_mem_ids_in = in_frames_hwctx->nb_surfaces; in init_out_session()
[all...]
H A Dvf_deinterlace_qsv.c227 s->surface_ptrs = av_calloc(hw_frames_hwctx->nb_surfaces, in init_out_session()
231 for (i = 0; i < hw_frames_hwctx->nb_surfaces; i++) in init_out_session()
233 s->nb_surface_ptrs = hw_frames_hwctx->nb_surfaces; in init_out_session()
257 s->mem_ids = av_calloc(hw_frames_hwctx->nb_surfaces, in init_out_session()
261 for (i = 0; i < hw_frames_hwctx->nb_surfaces; i++) in init_out_session()
263 s->nb_mem_ids = hw_frames_hwctx->nb_surfaces; in init_out_session()
H A Dqsvvpp.c507 s->surface_ptrs_in = av_calloc(in_frames_hwctx->nb_surfaces, in init_vpp_session()
512 for (i = 0; i < in_frames_hwctx->nb_surfaces; i++) in init_vpp_session()
515 s->nb_surface_ptrs_in = in_frames_hwctx->nb_surfaces; in init_vpp_session()
556 s->surface_ptrs_out = av_calloc(out_frames_hwctx->nb_surfaces, in init_vpp_session()
563 for (i = 0; i < out_frames_hwctx->nb_surfaces; i++) in init_vpp_session()
565 s->nb_surface_ptrs_out = out_frames_hwctx->nb_surfaces; in init_vpp_session()
H A Dvaapi_vpp.c209 va_frames->surface_ids, va_frames->nb_surfaces, in ff_vaapi_vpp_config_output()
/third_party/ffmpeg/libavutil/
H A Dhwcontext_qsv.c320 if (s->nb_surfaces_used < hwctx->nb_surfaces) { in qsv_pool_alloc()
550 frames_hwctx->nb_surfaces = ctx->initial_pool_size; in qsv_init_pool()
578 resp->NumFrameActual = hwctx->nb_surfaces; in frame_alloc()
711 s->surface_ptrs = av_calloc(frames_hwctx->nb_surfaces, in qsv_frames_init()
716 for (i = 0; i < frames_hwctx->nb_surfaces; i++) in qsv_frames_init()
720 s->opaque_alloc.In.NumSurface = frames_hwctx->nb_surfaces; in qsv_frames_init()
730 s->mem_ids = av_calloc(frames_hwctx->nb_surfaces, sizeof(*s->mem_ids)); in qsv_frames_init()
734 for (i = 0; i < frames_hwctx->nb_surfaces; i++) in qsv_frames_init()
794 dst_hwctx->surface_ids = av_calloc(src_hwctx->nb_surfaces, in qsv_frames_derive_from()
798 for (i = 0; i < src_hwctx->nb_surfaces; in qsv_frames_derive_from()
[all...]
H A Dhwcontext_qsv.h44 int nb_surfaces; member
H A Dhwcontext_dxva2.h59 int nb_surfaces; member
H A Dhwcontext_vaapi.h102 int nb_surfaces; member
H A Dhwcontext_d3d11va.c75 int nb_surfaces; member
169 if (s->nb_surfaces <= s->nb_surfaces_used) { in wrap_texture_buf()
177 s->nb_surfaces = s->nb_surfaces_used + 1; in wrap_texture_buf()
301 s->nb_surfaces = ctx->initial_pool_size; in d3d11va_frames_init()
H A Dhwcontext_dxva2.c103 for (i = 0; i < frames_hwctx->nb_surfaces; i++) { in dxva2_frames_uninit()
134 if (s->nb_surfaces_used < hwctx->nb_surfaces) { in dxva2_pool_alloc()
205 frames_hwctx->nb_surfaces = ctx->initial_pool_size; in dxva2_init_pool()
H A Dhwcontext_vaapi.c481 avfc->nb_surfaces >= hwfc->initial_pool_size) in vaapi_pool_alloc()
506 av_assert0(avfc->nb_surfaces < hwfc->initial_pool_size); in vaapi_pool_alloc()
507 avfc->surface_ids[avfc->nb_surfaces] = surface_id; in vaapi_pool_alloc()
508 ++avfc->nb_surfaces; in vaapi_pool_alloc()
584 avfc->nb_surfaces = 0; in vaapi_frames_init()
594 avfc->nb_surfaces = 0; in vaapi_frames_init()
H A Dhwcontext_opencl.c2383 for (i = 0; i < src_hwctx->nb_surfaces; i++) { in opencl_map_from_dxva2()
2387 if (i >= src_hwctx->nb_surfaces) { in opencl_map_from_dxva2()
2459 frames_priv->nb_mapped_frames = src_hwctx->nb_surfaces; in opencl_frames_derive_from_dxva2()
/third_party/ffmpeg/libavcodec/
H A Dnvenc.c906 int nb_surfaces = FFMAX(4, ctx->encode_config.frameIntervalP * 2 * 2); in nvenc_recalc_surfaces() local
912 nb_surfaces = FFMAX(1, FFMAX(nb_surfaces, ctx->rc_lookahead + ctx->encode_config.frameIntervalP + 1 + 4)); in nvenc_recalc_surfaces()
913 if (nb_surfaces > ctx->nb_surfaces && ctx->nb_surfaces > 0) in nvenc_recalc_surfaces()
917 "increasing used surfaces %d -> %d\n", ctx->nb_surfaces, nb_surfaces); in nvenc_recalc_surfaces()
919 ctx->nb_surfaces = FFMAX(nb_surfaces, ct in nvenc_recalc_surfaces()
[all...]
H A Dqsv.c478 int nb_surfaces = frames_hwctx->nb_surfaces; in qsv_create_mids() local
488 mids = av_calloc(nb_surfaces, sizeof(*mids)); in qsv_create_mids()
494 mids_buf = av_buffer_create((uint8_t*)mids, nb_surfaces * sizeof(*mids), in qsv_create_mids()
502 for (i = 0; i < nb_surfaces; i++) { in qsv_create_mids()
517 int nb_surfaces = frames_hwctx->nb_surfaces; in qsv_setup_mids() local
523 resp->mids = av_calloc(nb_surfaces + 2, sizeof(*resp->mids)); in qsv_setup_mids()
527 for (i = 0; i < nb_surfaces; i++) in qsv_setup_mids()
529 resp->NumFrameActual = nb_surfaces; in qsv_setup_mids()
[all...]
H A Dcuviddec.c65 int nb_surfaces; member
312 cuinfo.ulNumDecodeSurfaces = ctx->nb_surfaces; in cuvid_handle_video_sequence()
391 return av_fifo_can_read(ctx->frame_queue) + delay >= ctx->nb_surfaces; in cuvid_is_buffer_full()
841 ctx->frame_queue = av_fifo_alloc2(ctx->nb_surfaces, sizeof(CuvidParsedFrame), 0); in cuvid_decode_init()
981 ctx->key_frame = av_mallocz(ctx->nb_surfaces * sizeof(int)); in cuvid_decode_init()
987 ctx->cuparseinfo.ulMaxNumDecodeSurfaces = ctx->nb_surfaces; in cuvid_decode_init()
1092 { "surfaces", "Maximum surfaces to be used for decoding", OFFSET(nb_surfaces), AV_OPT_TYPE_INT, { .i64 = 25 }, 0, INT_MAX, VD },
H A Dnvenc.h168 int nb_surfaces; member
H A Dqsvenc.c1179 int nb_surfaces, i; in qsv_init_opaque_alloc() local
1181 nb_surfaces = qsv->nb_opaque_surfaces + q->req.NumFrameSuggested; in qsv_init_opaque_alloc()
1183 q->opaque_alloc_buf = av_buffer_allocz(sizeof(*surfaces) * nb_surfaces); in qsv_init_opaque_alloc()
1187 q->opaque_surfaces = av_malloc_array(nb_surfaces, sizeof(*q->opaque_surfaces)); in qsv_init_opaque_alloc()
1192 for (i = 0; i < nb_surfaces; i++) { in qsv_init_opaque_alloc()
1200 q->opaque_alloc.In.NumSurface = nb_surfaces; in qsv_init_opaque_alloc()
1205 qsv->nb_opaque_surfaces = nb_surfaces; in qsv_init_opaque_alloc()
H A Dnvenc_hevc.c103 { "surfaces", "Number of concurrent surfaces", OFFSET(nb_surfaces), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, MAX_REGISTERED_FRAMES, VE },
H A Dnvenc_h264.c114 { "surfaces", "Number of concurrent surfaces", OFFSET(nb_surfaces), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, MAX_REGISTERED_FRAMES, VE },
H A Ddxva2.c399 frames_hwctx->nb_surfaces, &sctx->dxva2_decoder); in dxva2_create_decoder()
718 dxva_ctx->surface_count = frames_hwctx->nb_surfaces; in ff_dxva2_decode_init()
H A Dvaapi_decode.c663 ctx->hwfc->nb_surfaces, in ff_vaapi_decode_init()
H A Dvaapi_encode.c2645 recon_hwctx->nb_surfaces, in ff_vaapi_encode_init()

Completed in 30 milliseconds