[FFmpeg-soc] [soc]: r946 - in libavfilter: avfilter.h vf_overlay.c
koorogi
subversion at mplayerhq.hu
Sat Aug 18 04:21:01 CEST 2007
Author: koorogi
Date: Sat Aug 18 04:21:01 2007
New Revision: 946
Log:
Add another "reuse" permission, to distinguish between the case where a
source filter will simply want to re-output the same image multiple times
and reuse a buffer to do it, and the case where the source filter will
output multiple image by modifying a single buffer and outputting it multiple
times.
Modified:
libavfilter/avfilter.h
libavfilter/vf_overlay.c
Modified: libavfilter/avfilter.h
==============================================================================
--- libavfilter/avfilter.h (original)
+++ libavfilter/avfilter.h Sat Aug 18 04:21:01 2007
@@ -78,7 +78,8 @@ typedef struct AVFilterPicRef
#define AV_PERM_READ 0x01 ///< can read from the buffer
#define AV_PERM_WRITE 0x02 ///< can write to the buffer
#define AV_PERM_PRESERVE 0x04 ///< nobody else can overwrite the buffer
-#define AV_PERM_REUSE 0x08 ///< can output the buffer multiple times
+#define AV_PERM_REUSE 0x08 ///< can output the buffer multiple times, with the same contents each time
+#define AV_PERM_REUSE2 0x10 ///< can output the buffer multiple times, modified each time
} AVFilterPicRef;
/**
Modified: libavfilter/vf_overlay.c
==============================================================================
--- libavfilter/vf_overlay.c (original)
+++ libavfilter/vf_overlay.c Sat Aug 18 04:21:01 2007
@@ -233,7 +233,7 @@ AVFilter vf_overlay =
.config_props = config_input_main,
.end_frame = end_frame,
.min_perms = AV_PERM_READ,
- .rej_perms = AV_PERM_REUSE, },
+ .rej_perms = AV_PERM_REUSE2, },
{ .name = "sub",
.type = AV_PAD_VIDEO,
.start_frame = start_frame,
@@ -242,7 +242,7 @@ AVFilter vf_overlay =
.config_props = config_input_sub,
.end_frame = end_frame,
.min_perms = AV_PERM_READ,
- .rej_perms = AV_PERM_REUSE, },
+ .rej_perms = AV_PERM_REUSE2, },
{ .name = NULL}},
.outputs = (AVFilterPad[]) {{ .name = "default",
.type = AV_PAD_VIDEO,
More information about the FFmpeg-soc
mailing list