FFmpeg
Data Structures | Functions | Variables
ops.c File Reference
#include "../ops_internal.h"
#include "../swscale_internal.h"
#include "libavutil/mem.h"
#include "ops.h"

Go to the source code of this file.

Data Structures

struct  VulkanPriv
 

Functions

void ff_sws_vk_uninit (SwsContext *sws)
 Copyright (C) 2026 Lynne. More...
 
int ff_sws_vk_init (SwsContext *sws, AVBufferRef *dev_ref)
 
static void process (const SwsOpExec *exec, const void *priv, int x_start, int y_start, int x_end, int y_end)
 
static void free_fn (void *priv)
 
static int compile (SwsContext *sws, SwsOpList *ops, SwsCompiledOp *out)
 

Variables

const SwsOpBackend backend_vulkan
 

Function Documentation

◆ ff_sws_vk_uninit()

void ff_sws_vk_uninit ( SwsContext sws)

Copyright (C) 2026 Lynne.

This file is part of FFmpeg.

FFmpeg is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

FFmpeg is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with FFmpeg; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Definition at line 26 of file ops.c.

Referenced by sws_freeContext().

◆ ff_sws_vk_init()

int ff_sws_vk_init ( SwsContext sws,
AVBufferRef dev_ref 
)

Definition at line 42 of file ops.c.

Referenced by sws_frame_setup().

◆ process()

static void process ( const SwsOpExec exec,
const void *  priv,
int  x_start,
int  y_start,
int  x_end,
int  y_end 
)
static

Definition at line 95 of file ops.c.

Referenced by compile().

◆ free_fn()

static void free_fn ( void *  priv)
static

Definition at line 153 of file ops.c.

Referenced by compile().

◆ compile()

static int compile ( SwsContext sws,
SwsOpList ops,
SwsCompiledOp out 
)
static

Definition at line 302 of file ops.c.

Variable Documentation

◆ backend_vulkan

const SwsOpBackend backend_vulkan
Initial value:
= {
.name = "vulkan",
.compile = compile,
.hw_format = AV_PIX_FMT_VULKAN,
}

Definition at line 338 of file ops.c.

AV_PIX_FMT_VULKAN
@ AV_PIX_FMT_VULKAN
Vulkan hardware images.
Definition: pixfmt.h:379
compile
static int compile(SwsContext *sws, SwsOpList *ops, SwsCompiledOp *out)
Definition: ops.c:302