Go to the source code of this file.
◆ SHUFFLE_HORIZONTAL
#define SHUFFLE_HORIZONTAL |
( |
|
name, |
|
|
|
type |
|
) |
| |
Value:
int jobnr, int nb_jobs) \
{ \
ShufflePixelsContext *
s =
ctx->priv; \
AVFrame *in = td->in; \
AVFrame *
out = td->out;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
int slice_start = (
s->planeheight[p] * jobnr) / nb_jobs; \
const
int slice_end = (
s->planeheight[p] * (jobnr+1)) / nb_jobs; \
for (
int x = 0; x <
s->planewidth[p]; x++) { \
} \
\
dst +=
out->linesize[p] /
sizeof(
type); \
src += in->linesize[p] /
sizeof(
type); \
} \
} \
\
return 0; \
}
Definition at line 197 of file vf_shufflepixels.c.
◆ SHUFFLE_VERTICAL
Value:
int jobnr, int nb_jobs) \
{ \
ShufflePixelsContext *
s =
ctx->priv; \
AVFrame *in = td->in; \
AVFrame *
out = td->out;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
int slice_start = (
s->planeheight[p] * jobnr) / nb_jobs; \
const
int slice_end = (
s->planeheight[p] * (jobnr+1)) / nb_jobs; \
map[y] * in->linesize[p]); \
\
memcpy(
dst,
src,
s->linesize[p]); \
dst +=
out->linesize[p] /
sizeof(
type); \
} \
} \
\
return 0; \
}
Definition at line 230 of file vf_shufflepixels.c.
◆ SHUFFLE_BLOCK
Value:
int jobnr, int nb_jobs) \
{ \
ShufflePixelsContext *
s =
ctx->priv; \
AVFrame *in = td->in; \
AVFrame *
out = td->out;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
int slice_start = (
s->planeheight[p] * jobnr) / nb_jobs; \
const
int slice_end = (
s->planeheight[p] * (jobnr+1)) / nb_jobs; \
\
for (
int x = 0; x <
s->planewidth[p]; x++) { \
int ymap =
map[x] /
s->planewidth[p]; \
int xmap =
map[x] %
s->planewidth[p]; \
\
dst[x] =
src[xmap + ymap * in->linesize[p] /
sizeof(
type)]; \
} \
\
dst +=
out->linesize[p] /
sizeof(
type); \
map +=
s->planewidth[p]; \
} \
} \
\
return 0; \
}
Definition at line 260 of file vf_shufflepixels.c.
◆ OFFSET
◆ FLAGS
◆ make_horizontal_map()
◆ make_vertical_map()
◆ make_block_map()
◆ config_output()
◆ filter_frame()
◆ uninit()
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
shufflepixels |
| ) |
|
◆ pix_fmts
◆ shufflepixels_options
◆ shufflepixels_inputs
◆ shufflepixels_outputs
◆ ff_vf_shufflepixels
Initial value:= {
.name = "shufflepixels",
.priv_class = &shufflepixels_class,
}
Definition at line 443 of file vf_shufflepixels.c.
#define AV_PIX_FMT_GBRAP16
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
#define FILTER_PIXFMTS_ARRAY(array)
static const AVFilterPad shufflepixels_inputs[]
#define FILTER_INPUTS(array)
#define AV_PIX_FMT_GBRP14
static int slice_end(AVCodecContext *avctx, AVFrame *pict, int *got_output)
Handle slice ends.
@ AV_PIX_FMT_GBRAP
planar GBRA 4:4:4:4 32bpp
#define AV_PIX_FMT_GBRP10
#define AV_PIX_FMT_YUVA444P16
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf type
#define AV_PIX_FMT_GRAY16
static const AVFilterPad shufflepixels_outputs[]
#define AV_PIX_FMT_YUV444P10
#define AV_PIX_FMT_GBRAP10
#define AV_PIX_FMT_GBRAP12
#define AV_PIX_FMT_YUV444P16
@ AV_OPT_TYPE_INT64
Underlying C type is int64_t.
#define AV_PIX_FMT_GRAY14
#define FILTER_OUTPUTS(array)
#define AV_PIX_FMT_GRAY10
#define AV_PIX_FMT_GBRP16
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
#define AV_PIX_FMT_YUV444P12
static av_cold void uninit(AVFilterContext *ctx)
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
#define AV_PIX_FMT_YUVA444P10
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
#define AV_PIX_FMT_GBRP12
#define AV_PIX_FMT_YUV444P9
static int slice_start(SliceContext *sc, VVCContext *s, VVCFrameContext *fc, const CodedBitstreamUnit *unit, const int is_first_slice)
#define AV_PIX_FMT_YUVA444P9
static enum AVPixelFormat pix_fmts[]
@ AV_OPT_TYPE_INT
Underlying C type is int.
static int config_output(AVFilterLink *outlink)
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
@ AV_PIX_FMT_GBRP
planar GBR 4:4:4 24bpp
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
const VDPAUPixFmtMap * map
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
#define AV_PIX_FMT_YUV444P14
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.