[FFmpeg-cvslog] r20443 - in trunk/libavfilter: vf_format.c vf_null.c

stefano subversion
Tue Nov 3 23:04:56 CET 2009


Author: stefano
Date: Tue Nov  3 23:04:55 2009
New Revision: 20443

Log:
Explicitely define get_video_buffer() callbacks in the format,
noformat and null filters.

Modified:
   trunk/libavfilter/vf_format.c
   trunk/libavfilter/vf_null.c

Modified: trunk/libavfilter/vf_format.c
==============================================================================
--- trunk/libavfilter/vf_format.c	Tue Nov  3 22:59:41 2009	(r20442)
+++ trunk/libavfilter/vf_format.c	Tue Nov  3 23:04:55 2009	(r20443)
@@ -96,6 +96,12 @@ static int query_formats_noformat(AVFilt
     return 0;
 }
 
+static AVFilterPicRef *get_video_buffer(AVFilterLink *link, int perms,
+                                        int w, int h)
+{
+    return avfilter_get_video_buffer(link->dst->outputs[0], perms, w, h);
+}
+
 static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
 {
     avfilter_start_frame(link->dst->outputs[0], picref);
@@ -123,6 +129,7 @@ AVFilter avfilter_vf_format = {
 
     .inputs    = (AVFilterPad[]) {{ .name            = "default",
                                     .type            = CODEC_TYPE_VIDEO,
+                                    .get_video_buffer= get_video_buffer,
                                     .start_frame     = start_frame,
                                     .draw_slice      = draw_slice,
                                     .end_frame       = end_frame, },
@@ -144,6 +151,7 @@ AVFilter avfilter_vf_noformat = {
 
     .inputs    = (AVFilterPad[]) {{ .name            = "default",
                                     .type            = CODEC_TYPE_VIDEO,
+                                    .get_video_buffer= get_video_buffer,
                                     .start_frame     = start_frame,
                                     .draw_slice      = draw_slice,
                                     .end_frame       = end_frame, },

Modified: trunk/libavfilter/vf_null.c
==============================================================================
--- trunk/libavfilter/vf_null.c	Tue Nov  3 22:59:41 2009	(r20442)
+++ trunk/libavfilter/vf_null.c	Tue Nov  3 23:04:55 2009	(r20443)
@@ -23,6 +23,12 @@
 
 #include "avfilter.h"
 
+static AVFilterPicRef *get_video_buffer(AVFilterLink *link, int perms,
+                                        int w, int h)
+{
+    return avfilter_get_video_buffer(link->dst->outputs[0], perms, w, h);
+}
+
 static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
 {
     avfilter_start_frame(link->dst->outputs[0], picref);
@@ -41,6 +47,7 @@ AVFilter avfilter_vf_null = {
 
     .inputs    = (AVFilterPad[]) {{ .name             = "default",
                                     .type             = CODEC_TYPE_VIDEO,
+                                    .get_video_buffer = get_video_buffer,
                                     .start_frame      = start_frame,
                                     .end_frame        = end_frame },
                                   { .name = NULL}},



More information about the ffmpeg-cvslog mailing list