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/avfilter.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/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 5bd19b7719..eb0a868273 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -287,13 +287,13 @@ void avfilter_end_frame(AVFilterLink *link) } -void avfilter_draw_slice(AVFilterLink *link, int y, int h) +void avfilter_draw_slice(AVFilterLink *link, int y, int h, int slice_dir) { uint8_t *src[4], *dst[4]; int i, j, hsub, vsub; - void (*draw_slice)(AVFilterLink *, int, int); + void (*draw_slice)(AVFilterLink *, int, int, int); - DPRINTF_START(NULL, draw_slice); dprintf_link(NULL, link, 0); dprintf(NULL, " y:%d h:%d\n", y, h); + DPRINTF_START(NULL, draw_slice); dprintf_link(NULL, link, 0); dprintf(NULL, " y:%d h:%d dir:%d\n", y, h, slice_dir); /* copy the slice if needed for permission reasons */ if(link->srcpic) { @@ -325,7 +325,7 @@ void avfilter_draw_slice(AVFilterLink *link, int y, int h) if(!(draw_slice = link_dpad(link).draw_slice)) draw_slice = avfilter_default_draw_slice; - draw_slice(link, y, h); + draw_slice(link, y, h, slice_dir); } #define MAX_REGISTERED_AVFILTERS_NB 64 |