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

Go to the source code of this file.

Data Structures

struct  VulkanPriv
 

Macros

#define MAX_DITHER_BUFS   4
 

Functions

static void ff_sws_vk_uninit (AVRefStructOpaque opaque, void *obj)
 Copyright (C) 2026 Lynne. More...
 
int ff_sws_vk_init (SwsContext *sws, AVBufferRef *dev_ref)
 
static void process (const SwsFrame *dst, const SwsFrame *src, int y, int h, const SwsPass *pass)
 
static void free_fn (void *priv)
 
static int create_dither_bufs (FFVulkanOpsCtx *s, VulkanPriv *p, SwsOpList *ops)
 
static int compile (SwsContext *sws, SwsOpList *ops, SwsCompiledOp *out, int glsl)
 

Macro Definition Documentation

◆ MAX_DITHER_BUFS

#define MAX_DITHER_BUFS   4

Definition at line 85 of file ops.c.

Function Documentation

◆ ff_sws_vk_uninit()

static void ff_sws_vk_uninit ( AVRefStructOpaque  opaque,
void *  obj 
)
static

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 33 of file ops.c.

Referenced by ff_sws_vk_init().

◆ ff_sws_vk_init()

int ff_sws_vk_init ( SwsContext sws,
AVBufferRef dev_ref 
)

Definition at line 44 of file ops.c.

Referenced by sws_frame_setup().

◆ process()

static void process ( const SwsFrame dst,
const SwsFrame src,
int  y,
int  h,
const SwsPass pass 
)
static

Definition at line 97 of file ops.c.

Referenced by compile().

◆ free_fn()

static void free_fn ( void *  priv)
static

Definition at line 155 of file ops.c.

Referenced by compile().

◆ create_dither_bufs()

static int create_dither_bufs ( FFVulkanOpsCtx s,
VulkanPriv p,
SwsOpList ops 
)
static

Definition at line 166 of file ops.c.

◆ compile()

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

Definition at line 1131 of file ops.c.