FFmpeg
Macros | Functions
op_list_gen_template.c File Reference
#include <stdbool.h>
#include "libswscale/format.h"
#include "libswscale/ops.h"
#include "libswscale/swscale.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.

Macros

#define DUMMY_SIZE   16
 

Functions

static int enum_ops_fmt (SwsContext *ctx, void *opaque, enum AVPixelFormat src_fmt, enum AVPixelFormat dst_fmt, int(*cb)(SwsContext *ctx, void *opaque, SwsOpList *ops))
 
static int ff_sws_enum_op_lists (SwsContext *ctx, void *opaque, 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. More...
 

Macro Definition Documentation

◆ DUMMY_SIZE

#define DUMMY_SIZE   16

Definition at line 30 of file op_list_gen_template.c.

Function Documentation

◆ enum_ops_fmt()

static int enum_ops_fmt ( SwsContext ctx,
void *  opaque,
enum AVPixelFormat  src_fmt,
enum AVPixelFormat  dst_fmt,
int(*)(SwsContext *ctx, void *opaque, SwsOpList *ops)  cb 
)
static

Definition at line 32 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,
enum AVPixelFormat  src_fmt,
enum AVPixelFormat  dst_fmt,
int(*)(SwsContext *ctx, void *opaque, SwsOpList *ops)  cb 
)
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
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 89 of file op_list_gen_template.c.

Referenced by main(), and sws_uops_macros_gen().