diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-12-04 23:26:13 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-12-04 23:26:13 +0000 |
commit | a13a543797a6607b72ba32188dc6a09cbe887e0e (patch) | |
tree | 1a321ac0950db15ed806eae8bae5dbd169010a07 /libavfilter/vf_slicify.c | |
parent | 78149213cc2f13096cf48912fd818552d837a1fa (diff) | |
download | ffmpeg-a13a543797a6607b72ba32188dc6a09cbe887e0e.tar.gz |
Add a slice_dir parameter to avfilter_draw_slice().
Avoid the need to implement slice direction detection code, thus
reducing code duplication.
See the thread:
"[FFmpeg-devel] [PATCH] Add a slice_dir parameter to avfilter_start_frame()".
Originally committed as revision 20734 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/vf_slicify.c')
-rw-r--r-- | libavfilter/vf_slicify.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/vf_slicify.c b/libavfilter/vf_slicify.c index 40824cefdc..3aae1c334e 100644 --- a/libavfilter/vf_slicify.c +++ b/libavfilter/vf_slicify.c @@ -73,16 +73,16 @@ static void end_frame(AVFilterLink *link) avfilter_end_frame(link->dst->outputs[0]); } -static void draw_slice(AVFilterLink *link, int y, int h) +static void draw_slice(AVFilterLink *link, int y, int h, int slice_dir) { SliceContext *slice = link->dst->priv; int y2; for (y2 = y; y2 + slice->h <= y + h; y2 += slice->h) - avfilter_draw_slice(link->dst->outputs[0], y2, slice->h); + avfilter_draw_slice(link->dst->outputs[0], y2, slice->h, slice_dir); if (y2 < y + h) - avfilter_draw_slice(link->dst->outputs[0], y2, y + h - y2); + avfilter_draw_slice(link->dst->outputs[0], y2, y + h - y2, slice_dir); } AVFilter avfilter_vf_slicify = { |