FFmpeg
Loading...
Searching...
No Matches
op_list_gen_template.c File Reference
#include <stdbool.h>
#include "libswscale/format.h"
#include "libswscale/ops.h"
#include "libswscale/swscale.h"
#include "libswscale/swscale_internal.h"
#include "libavutil/error.h"
#include "libavutil/macros.h"
#include "libavutil/pixdesc.h"
#include "libavutil/pixfmt.h"

Go to the source code of this file.

Data Structures

struct  EnumFmtPriv
 

Macros

#define DUMMY_SIZE   16
 

Functions

static int enum_ops_fmt (const struct EnumFmtPriv *s, enum AVPixelFormat src_fmt, enum AVPixelFormat dst_fmt)
 
static int enum_fmt_slice (void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads)
 
static enum AVPixelFormat first_pix_fmt (void)
 
static enum AVPixelFormat last_pix_fmt (void)
 
static int ff_sws_enum_op_lists (SwsContext *ctx, void *opaque, const SwsLut3D *lut3d, enum AVPixelFormat src_fmt, enum AVPixelFormat dst_fmt, int(*cb)(SwsContext *ctx, void *opaque, SwsOpList *ops))
 Helper function to enumerate over all possible (optimized) operation lists, under the current set of options in ctx, and run the given callback on each list.
 

Macro Definition Documentation

◆ DUMMY_SIZE

#define DUMMY_SIZE   16

Definition at line 31 of file op_list_gen_template.c.

Referenced by enum_ops_fmt().

Function Documentation

◆ enum_ops_fmt()

static int enum_ops_fmt ( const struct EnumFmtPriv * s,
enum AVPixelFormat src_fmt,
enum AVPixelFormat dst_fmt )
static

Definition at line 44 of file op_list_gen_template.c.

Referenced by enum_fmt_slice().

◆ enum_fmt_slice()

static int enum_fmt_slice ( void * priv,
int jobnr,
int threadnr,
int nb_jobs,
int nb_threads )
static

Definition at line 89 of file op_list_gen_template.c.

Referenced by ff_sws_enum_op_lists().

◆ first_pix_fmt()

static enum AVPixelFormat first_pix_fmt ( void )
static

Definition at line 105 of file op_list_gen_template.c.

Referenced by ff_sws_enum_op_lists().

◆ last_pix_fmt()

static enum AVPixelFormat last_pix_fmt ( void )
static

Definition at line 111 of file op_list_gen_template.c.

Referenced by ff_sws_enum_op_lists().

◆ ff_sws_enum_op_lists()

static int ff_sws_enum_op_lists ( SwsContext * ctx,
void * opaque,
const SwsLut3D * lut3d,
enum AVPixelFormat src_fmt,
enum AVPixelFormat dst_fmt,
int(* cb )(SwsContext *ctx, void *opaque, SwsOpList *ops) )
inlinestatic

Helper function to enumerate over all possible (optimized) operation lists, under the current set of options in ctx, and run the given callback on each list.

Parameters
src_fmtIf set (not AV_PIX_FMT_NONE), constrain the source format
dst_fmtIf set (not AV_PIX_FMT_NONE), constrain the destination format
cbCallback to run on each op list. If ctx->threads != 1, this may be called from multiple threads.
Returns
0 on success, the return value if cb() < 0, or a negative error code
Note
ops belongs to sws_enum_op_lists(), but may be mutated by cb.

Definition at line 136 of file op_list_gen_template.c.

Referenced by main(), main(), and sws_uops_macros_gen().