FFmpeg
Data Structures | Macros | Functions | Variables
ops_memcpy.c File Reference
#include "libavutil/avassert.h"
#include "ops_backend.h"

Go to the source code of this file.

Data Structures

struct  MemcpyPriv
 Copyright (C) 2025 Niklas Haas. More...
 

Macros

#define SWS_MAX_PADDING   64
 Switch to loop if total padding exceeds this number of bytes. More...
 

Functions

static void process (const SwsOpExec *exec, const void *priv, int x_start, int y_start, int x_end, int y_end)
 
static int compile (SwsContext *ctx, SwsOpList *ops, SwsCompiledOp *out)
 

Variables

const SwsOpBackend backend_murder
 

Macro Definition Documentation

◆ SWS_MAX_PADDING

#define SWS_MAX_PADDING   64

Switch to loop if total padding exceeds this number of bytes.

Chosen to align with the typical L1 cache size of modern CPUs, as this avoids the risk of the implementation loading one extra unnecessary cache line.

Definition at line 36 of file ops_memcpy.c.

Function Documentation

◆ 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 40 of file ops_memcpy.c.

◆ compile()

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

Definition at line 72 of file ops_memcpy.c.

Variable Documentation

◆ backend_murder

const SwsOpBackend backend_murder
Initial value:
= {
.name = "memcpy",
.compile = compile,
.hw_format = AV_PIX_FMT_NONE,
}

Definition at line 143 of file ops_memcpy.c.

compile
static int compile(SwsContext *ctx, SwsOpList *ops, SwsCompiledOp *out)
Definition: ops_memcpy.c:72
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:72