42 if (!strcmp(args,
"random")) {
45 sscanf(args,
"%d", &slice->
h);
84 for (y2 = y; y2 + slice->
h <= y + h; y2 += slice->
h)
89 }
else if (slice_dir == -1) {
90 for (y2 = y + h; y2 - slice->
h >= y; y2 -= slice->
h)
100 .description =
NULL_IF_CONFIG_SMALL(
"Pass the images of input video on to next video filter as multiple slices."),
int use_random_h
enable the use of random slice height values
static void draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
void avfilter_null_end_frame(AVFilterLink *link)
end_frame() handler for filters which simply pass video along
int vshift
vertical chroma subsampling shift
A filter pad used for either input or output.
A link between two filters.
uint8_t log2_chroma_h
Amount to shift the luma height right to find the chroma height.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void * priv
private data for use by the filter
void av_log(void *avcl, int level, const char *fmt,...)
const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB]
The array of all the pixel format descriptors.
static int config_props(AVFilterLink *link)
void avfilter_draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
Send a slice to the next filter.
int format
agreed upon media format
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
A reference to an AVFilterBuffer.
uint32_t lcg_state
LCG state used to compute random slice height.
void avfilter_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
Notify the next filter of the start of a frame.
const char * name
filter name
AVFilterBufferRef * avfilter_null_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
get_video_buffer() handler for filters which simply pass video along
AVFilterLink ** outputs
array of pointers to output links
AVFilter avfilter_vf_slicify
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
AVFilterContext * dst
dest filter