[PATCH] Make slicify honour the slice direction
Hi, as in subject. Without this some combination with the pad filter may issue weird behavior. Regards. -- FFmpeg = Fast Furious Mere Peaceful Eccentric Guru
On Mon, Nov 30, 2009 at 11:41:26PM +0100, Stefano Sabatini wrote:
Hi, as in subject.
Without this some combination with the pad filter may issue weird behavior.
Regards. -- FFmpeg = Fast Furious Mere Peaceful Eccentric Guru
vf_slicify.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 9e459bac2cabe3ccb99c5419be00af872fc72f01 fix-slice-dir-for-slicify.patch Index: libavfilter-soc/ffmpeg/libavfilter/vf_slicify.c =================================================================== --- libavfilter-soc.orig/ffmpeg/libavfilter/vf_slicify.c 2009-11-30 22:18:44.000000000 +0100 +++ libavfilter-soc/ffmpeg/libavfilter/vf_slicify.c 2009-11-30 23:34:49.000000000 +0100 @@ -28,6 +28,8 @@ typedef struct { int h; ///< output slice height int vshift; ///< vertical chroma subsampling shift + int slice_dir; ///< detected slice direction for the current frame + int slice_y; ///< if the slice direction is bottom-up is the bottom y for the next slice } SliceContext;
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) @@ -65,6 +67,8 @@
static void start_frame(AVFilterLink *link, AVFilterPicRef *picref) { + SliceContext *slice = link->dst->priv; + slice->slice_dir = 0; avfilter_start_frame(link->dst->outputs[0], picref); }
@@ -78,11 +82,29 @@ SliceContext *slice = link->dst->priv; int y2;
+ if (!slice->slice_dir) { + if (y != 0 && y + h != link->h) { + av_log(link->dst, AV_LOG_ERROR, "Slices start in the middle!\n"); + return; + } + slice->slice_dir = y ? -1 : 1; + slice->slice_y = y ? link->dst->outputs[0]->h : y; + }
code duplication an additional argument in draw_slice() that specifies direction seems simpler to me. [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The educated differ from the uneducated as much as the living from the dead. -- Aristotle
On date Tuesday 2009-12-01 12:44:10 +0100, Michael Niedermayer encoded:
On Mon, Nov 30, 2009 at 11:41:26PM +0100, Stefano Sabatini wrote:
Hi, as in subject.
Without this some combination with the pad filter may issue weird behavior.
Regards. -- FFmpeg = Fast Furious Mere Peaceful Eccentric Guru
vf_slicify.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 9e459bac2cabe3ccb99c5419be00af872fc72f01 fix-slice-dir-for-slicify.patch Index: libavfilter-soc/ffmpeg/libavfilter/vf_slicify.c =================================================================== --- libavfilter-soc.orig/ffmpeg/libavfilter/vf_slicify.c 2009-11-30 22:18:44.000000000 +0100 +++ libavfilter-soc/ffmpeg/libavfilter/vf_slicify.c 2009-11-30 23:34:49.000000000 +0100 @@ -28,6 +28,8 @@ typedef struct { int h; ///< output slice height int vshift; ///< vertical chroma subsampling shift + int slice_dir; ///< detected slice direction for the current frame + int slice_y; ///< if the slice direction is bottom-up is the bottom y for the next slice } SliceContext;
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) @@ -65,6 +67,8 @@
static void start_frame(AVFilterLink *link, AVFilterPicRef *picref) { + SliceContext *slice = link->dst->priv; + slice->slice_dir = 0; avfilter_start_frame(link->dst->outputs[0], picref); }
@@ -78,11 +82,29 @@ SliceContext *slice = link->dst->priv; int y2;
+ if (!slice->slice_dir) { + if (y != 0 && y + h != link->h) { + av_log(link->dst, AV_LOG_ERROR, "Slices start in the middle!\n"); + return; + } + slice->slice_dir = y ? -1 : 1; + slice->slice_y = y ? link->dst->outputs[0]->h : y; + }
code duplication
True.
an additional argument in draw_slice() that specifies direction seems simpler to me.
Considering that the slice direction is per-frame, then it could make sense to define the parameter in start_frame(), then a filter which needs it may store its value in the context and use that (well this was the first solution I devised when fixing the scale filter). Regards. -- FFmpeg = Fiendish and Furious Mega Programmable Evanescent Gadget
On date Wednesday 2009-12-02 00:37:21 +0100, Stefano Sabatini encoded:
On date Tuesday 2009-12-01 12:44:10 +0100, Michael Niedermayer encoded:
On Mon, Nov 30, 2009 at 11:41:26PM +0100, Stefano Sabatini wrote:
Hi, as in subject.
Without this some combination with the pad filter may issue weird behavior.
Updated. This fixes for example: ffplay -loglevel debug in.avi -vfilters "scale=100:100, slicify=50, vflip, slicify=10, scale" [...] start_frame : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] picref[0xa33aa10 data[0xa5e6f10, 0xa5e9ad0, 0xa5ea750, (nil)] linesize[112, 64, 64, 0] pts:566666 s:100x100] draw_slice : link[0xa30ced0 s:464x348 fmt:yuv420p ffplay_input ->scale ] y:0 h:348 dir:1 draw_slice : link[0xa332870 s:100x100 fmt:yuv420p scale ->slicify ] y:0 h:100 dir:1 draw_slice : link[0xa333160 s:100x100 fmt:yuv420p slicify ->vflip ] y:0 h:50 dir:1 draw_slice : link[0xa333480 s:100x100 fmt:yuv420p vflip ->slicify ] y:50 h:50 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:50 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:100 h:0 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:60 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:100 h:0 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:70 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:100 h:0 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:80 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:100 h:0 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:90 h:10 dir:-1 draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:90 h:10 dir:-1 draw_slice : link[0xa333160 s:100x100 fmt:yuv420p slicify ->vflip ] y:50 h:50 dir:1 draw_slice : link[0xa333480 s:100x100 fmt:yuv420p vflip ->slicify ] y:0 h:50 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:0 h:10 dir:-1 draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:80 h:10 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:10 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:80 h:0 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:20 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:80 h:0 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:30 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:80 h:0 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:40 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:80 h:0 dir:-1 which becomes with the patch applied: start_frame : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] picref[0x89fe740 data[0x8c5c1e0, 0x8c5eda0, 0x8c5fa20, (nil)] linesize[112, 64, 64, 0] pts:1533333 s:100x100] draw_slice : link[0x8971ed0 s:464x348 fmt:yuv420p ffplay_input ->scale ] y:0 h:348 dir:1 draw_slice : link[0x8997870 s:100x100 fmt:yuv420p scale ->slicify ] y:0 h:100 dir:1 draw_slice : link[0x8998160 s:100x100 fmt:yuv420p slicify ->vflip ] y:0 h:50 dir:1 draw_slice : link[0x8998480 s:100x100 fmt:yuv420p vflip ->slicify ] y:50 h:50 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:90 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:90 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:80 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:80 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:70 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:70 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:60 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:60 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:50 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:50 h:10 dir:-1 draw_slice : link[0x8998160 s:100x100 fmt:yuv420p slicify ->vflip ] y:50 h:50 dir:1 draw_slice : link[0x8998480 s:100x100 fmt:yuv420p vflip ->slicify ] y:0 h:50 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:40 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:40 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:30 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:30 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:20 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:20 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:10 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:10 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:0 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:0 h:10 dir:-1 Regards. -- FFmpeg = Faithless Funny Magical Philosofic Enigmatic Governor
On Sat, Dec 05, 2009 at 02:23:38AM +0100, Stefano Sabatini wrote:
On date Wednesday 2009-12-02 00:37:21 +0100, Stefano Sabatini encoded:
On date Tuesday 2009-12-01 12:44:10 +0100, Michael Niedermayer encoded:
On Mon, Nov 30, 2009 at 11:41:26PM +0100, Stefano Sabatini wrote:
Hi, as in subject.
Without this some combination with the pad filter may issue weird behavior.
Updated.
This fixes for example:
ffplay -loglevel debug in.avi -vfilters "scale=100:100, slicify=50, vflip, slicify=10, scale" [...] start_frame : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] picref[0xa33aa10 data[0xa5e6f10, 0xa5e9ad0, 0xa5ea750, (nil)] linesize[112, 64, 64, 0] pts:566666 s:100x100] draw_slice : link[0xa30ced0 s:464x348 fmt:yuv420p ffplay_input ->scale ] y:0 h:348 dir:1 draw_slice : link[0xa332870 s:100x100 fmt:yuv420p scale ->slicify ] y:0 h:100 dir:1 draw_slice : link[0xa333160 s:100x100 fmt:yuv420p slicify ->vflip ] y:0 h:50 dir:1 draw_slice : link[0xa333480 s:100x100 fmt:yuv420p vflip ->slicify ] y:50 h:50 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:50 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:100 h:0 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:60 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:100 h:0 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:70 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:100 h:0 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:80 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:100 h:0 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:90 h:10 dir:-1 draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:90 h:10 dir:-1 draw_slice : link[0xa333160 s:100x100 fmt:yuv420p slicify ->vflip ] y:50 h:50 dir:1 draw_slice : link[0xa333480 s:100x100 fmt:yuv420p vflip ->slicify ] y:0 h:50 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:0 h:10 dir:-1 draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:80 h:10 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:10 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:80 h:0 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:20 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:80 h:0 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:30 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:80 h:0 dir:-1 draw_slice : link[0xa333740 s:100x100 fmt:yuv420p slicify ->scale ] y:40 h:10 dir:-1 [swscaler @ 0xa37c760]Slices start in the middle! draw_slice : link[0xa333830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:80 h:0 dir:-1
which becomes with the patch applied: start_frame : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] picref[0x89fe740 data[0x8c5c1e0, 0x8c5eda0, 0x8c5fa20, (nil)] linesize[112, 64, 64, 0] pts:1533333 s:100x100] draw_slice : link[0x8971ed0 s:464x348 fmt:yuv420p ffplay_input ->scale ] y:0 h:348 dir:1 draw_slice : link[0x8997870 s:100x100 fmt:yuv420p scale ->slicify ] y:0 h:100 dir:1 draw_slice : link[0x8998160 s:100x100 fmt:yuv420p slicify ->vflip ] y:0 h:50 dir:1 draw_slice : link[0x8998480 s:100x100 fmt:yuv420p vflip ->slicify ] y:50 h:50 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:90 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:90 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:80 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:80 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:70 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:70 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:60 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:60 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:50 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:50 h:10 dir:-1 draw_slice : link[0x8998160 s:100x100 fmt:yuv420p slicify ->vflip ] y:50 h:50 dir:1 draw_slice : link[0x8998480 s:100x100 fmt:yuv420p vflip ->slicify ] y:0 h:50 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:40 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:40 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:30 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:30 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:20 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:20 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:10 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:10 h:10 dir:-1 draw_slice : link[0x8998740 s:100x100 fmt:yuv420p slicify ->scale ] y:0 h:10 dir:-1 draw_slice : link[0x8998830 s:100x100 fmt:yuv420p scale ->ffplay_output ] y:0 h:10 dir:-1
Regards. -- FFmpeg = Faithless Funny Magical Philosofic Enigmatic Governor
vf_slicify.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 46f182cf22315ee4cd11f0d7b04f0ecb2cdd286d fix-slice-dir-for-slicify.patch Index: libavfilter-soc/ffmpeg/libavfilter/vf_slicify.c =================================================================== --- libavfilter-soc.orig/ffmpeg/libavfilter/vf_slicify.c 2009-12-05 02:18:08.000000000 +0100 +++ libavfilter-soc/ffmpeg/libavfilter/vf_slicify.c 2009-12-05 02:18:52.000000000 +0100 @@ -28,6 +28,7 @@ typedef struct { int h; ///< output slice height int vshift; ///< vertical chroma subsampling shift + int slice_y; ///< if the slice direction is bottom-up is the bottom y for the next slice } SliceContext;
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
i see no need for this variable its also not needed for the other direction [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Avoid a single point of failure, be that a person or equipment.
On date Sunday 2009-12-06 03:41:15 +0100, Michael Niedermayer encoded:
On Sat, Dec 05, 2009 at 02:23:38AM +0100, Stefano Sabatini wrote: [...]
Index: libavfilter-soc/ffmpeg/libavfilter/vf_slicify.c =================================================================== --- libavfilter-soc.orig/ffmpeg/libavfilter/vf_slicify.c 2009-12-05 02:18:08.000000000 +0100 +++ libavfilter-soc/ffmpeg/libavfilter/vf_slicify.c 2009-12-05 02:18:52.000000000 +0100 @@ -28,6 +28,7 @@ typedef struct { int h; ///< output slice height int vshift; ///< vertical chroma subsampling shift + int slice_y; ///< if the slice direction is bottom-up is the bottom y for the next slice } SliceContext;
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
i see no need for this variable its also not needed for the other direction
Right, thanks. Regards. -- FFmpeg = Fundamental and Fantastic Merciless Puritan Egregious Ghost
On Sun, Dec 06, 2009 at 10:57:23AM +0100, Stefano Sabatini wrote:
On date Sunday 2009-12-06 03:41:15 +0100, Michael Niedermayer encoded:
On Sat, Dec 05, 2009 at 02:23:38AM +0100, Stefano Sabatini wrote: [...]
Index: libavfilter-soc/ffmpeg/libavfilter/vf_slicify.c =================================================================== --- libavfilter-soc.orig/ffmpeg/libavfilter/vf_slicify.c 2009-12-05 02:18:08.000000000 +0100 +++ libavfilter-soc/ffmpeg/libavfilter/vf_slicify.c 2009-12-05 02:18:52.000000000 +0100 @@ -28,6 +28,7 @@ typedef struct { int h; ///< output slice height int vshift; ///< vertical chroma subsampling shift + int slice_y; ///< if the slice direction is bottom-up is the bottom y for the next slice } SliceContext;
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
i see no need for this variable its also not needed for the other direction
Right, thanks.
Regards. -- FFmpeg = Fundamental and Fantastic Merciless Puritan Egregious Ghost
vf_slicify.c | 8 ++++++++ 1 file changed, 8 insertions(+) 700c1c7adb13eacccef273652e179bf0d440ea0c fix-slice-dir-for-slicify.patch
ok (is tested of course) [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB No human being will ever know the Truth, for even if they happen to say it by chance, they would not even known they had done so. -- Xenophanes
On date Sunday 2009-12-06 14:51:03 +0100, Michael Niedermayer encoded:
On Sun, Dec 06, 2009 at 10:57:23AM +0100, Stefano Sabatini wrote:
On date Sunday 2009-12-06 03:41:15 +0100, Michael Niedermayer encoded:
On Sat, Dec 05, 2009 at 02:23:38AM +0100, Stefano Sabatini wrote: [...]
Index: libavfilter-soc/ffmpeg/libavfilter/vf_slicify.c =================================================================== --- libavfilter-soc.orig/ffmpeg/libavfilter/vf_slicify.c 2009-12-05 02:18:08.000000000 +0100 +++ libavfilter-soc/ffmpeg/libavfilter/vf_slicify.c 2009-12-05 02:18:52.000000000 +0100 @@ -28,6 +28,7 @@ typedef struct { int h; ///< output slice height int vshift; ///< vertical chroma subsampling shift + int slice_y; ///< if the slice direction is bottom-up is the bottom y for the next slice } SliceContext;
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
i see no need for this variable its also not needed for the other direction
Right, thanks.
Regards. -- FFmpeg = Fundamental and Fantastic Merciless Puritan Egregious Ghost
vf_slicify.c | 8 ++++++++ 1 file changed, 8 insertions(+) 700c1c7adb13eacccef273652e179bf0d440ea0c fix-slice-dir-for-slicify.patch
ok (is tested of course)
Applied. -- FFmpeg = Frenzy Faithful Multimedia Practical Extroverse Gospel
participants (2)
-
michaelni@gmx.at -
stefano.sabatini-lala@poste.it