56 static const int dst_sizes[][2] = {
64 dst.width = dst_sizes[
i][0];
65 dst.height = dst_sizes[
i][1];
77 ret =
s->cb(
s->ctx,
s->opaque, ops);
150 s.src_start =
s.src_end = src_fmt;
152 s.dst_start =
s.dst_end = dst_fmt;
154 const int nb_fmts =
s.src_end -
s.src_start + 1;
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
#define i(width, name, range_min, range_max)
Utility Preprocessor macros.
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 ...
static enum AVPixelFormat first_pix_fmt(void)
static enum AVPixelFormat last_pix_fmt(void)
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)
void ff_sws_op_list_free(SwsOpList **p_ops)
int ff_sws_op_list_optimize(SwsOpList *ops)
Fuse compatible and eliminate redundant operations, as well as replacing some operations with more ef...
enum AVPixelFormat av_pix_fmt_desc_get_id(const AVPixFmtDescriptor *desc)
const AVPixFmtDescriptor * av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)
Iterate over all pixel format descriptors known to libavutil.
AVPixelFormat
Pixel format.
#define FF_ARRAY_ELEMS(a)
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
enum AVPixelFormat dst_start dst_end
int(* cb)(SwsContext *ctx, void *opaque, SwsOpList *ops)
enum AVPixelFormat src_start src_end
Main external API structure.
Append a set of operations for applying a gamut/tone mapping 3D LUT to the pixels.
Helper struct for representing a list of operations.
int ff_sws_thread_exec(void *priv, int(*func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads), int nb_threads, int nb_jobs)
Helper for dispatching a single function across multiple threads.
static AVFormatContext * ctx
static double cb(void *priv, double x, double y)