Lines Matching refs:avfc
472 AVVAAPIFramesContext *avfc = hwfc->hwctx; in vaapi_pool_alloc() local
478 avfc->nb_surfaces >= hwfc->initial_pool_size) in vaapi_pool_alloc()
503 av_assert0(avfc->nb_surfaces < hwfc->initial_pool_size); in vaapi_pool_alloc()
504 avfc->surface_ids[avfc->nb_surfaces] = surface_id; in vaapi_pool_alloc()
505 ++avfc->nb_surfaces; in vaapi_pool_alloc()
513 AVVAAPIFramesContext *avfc = hwfc->hwctx; in vaapi_frames_init() local
535 for (i = 0; i < avfc->nb_attributes; i++) { in vaapi_frames_init()
536 if (avfc->attributes[i].type == VASurfaceAttribMemoryType) in vaapi_frames_init()
538 if (avfc->attributes[i].type == VASurfaceAttribPixelFormat) in vaapi_frames_init()
542 avfc->nb_attributes + need_memory_type + need_pixel_format; in vaapi_frames_init()
551 for (i = 0; i < avfc->nb_attributes; i++) in vaapi_frames_init()
552 ctx->attributes[i] = avfc->attributes[i]; in vaapi_frames_init()
581 avfc->nb_surfaces = 0; in vaapi_frames_init()
582 avfc->surface_ids = av_malloc(hwfc->initial_pool_size * in vaapi_frames_init()
583 sizeof(*avfc->surface_ids)); in vaapi_frames_init()
584 if (!avfc->surface_ids) { in vaapi_frames_init()
591 avfc->nb_surfaces = 0; in vaapi_frames_init()
592 avfc->surface_ids = NULL; in vaapi_frames_init()
658 av_freep(&avfc->surface_ids); in vaapi_frames_init()
665 AVVAAPIFramesContext *avfc = hwfc->hwctx; in vaapi_frames_uninit() local
668 av_freep(&avfc->surface_ids); in vaapi_frames_uninit()