Originally committed as revision 22594 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -395,6 +395,19 @@ void avfilter_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats) |
| 395 | 395 |
/** Default handler for query_formats() */ |
| 396 | 396 |
int avfilter_default_query_formats(AVFilterContext *ctx); |
| 397 | 397 |
|
| 398 |
+/** start_frame() handler for filters which simply pass video along */ |
|
| 399 |
+void avfilter_null_start_frame(AVFilterLink *link, AVFilterPicRef *picref); |
|
| 400 |
+ |
|
| 401 |
+/** draw_slice() handler for filters which simply pass video along */ |
|
| 402 |
+void avfilter_null_draw_slice(AVFilterLink *link, int y, int h, int slice_dir); |
|
| 403 |
+ |
|
| 404 |
+/** end_frame() handler for filters which simply pass video along */ |
|
| 405 |
+void avfilter_null_end_frame(AVFilterLink *link); |
|
| 406 |
+ |
|
| 407 |
+/** get_video_buffer() handler for filters which simply pass video along */ |
|
| 408 |
+AVFilterPicRef *avfilter_null_get_video_buffer(AVFilterLink *link, |
|
| 409 |
+ int perms, int w, int h); |
|
| 410 |
+ |
|
| 398 | 411 |
/** |
| 399 | 412 |
* Filter definition. This defines the pads a filter contains, and all the |
| 400 | 413 |
* callback functions used to interact with the filter. |
| ... | ... |
@@ -165,3 +165,23 @@ int avfilter_default_query_formats(AVFilterContext *ctx) |
| 165 | 165 |
return 0; |
| 166 | 166 |
} |
| 167 | 167 |
|
| 168 |
+void avfilter_null_start_frame(AVFilterLink *link, AVFilterPicRef *picref) |
|
| 169 |
+{
|
|
| 170 |
+ avfilter_start_frame(link->dst->outputs[0], picref); |
|
| 171 |
+} |
|
| 172 |
+ |
|
| 173 |
+void avfilter_null_draw_slice(AVFilterLink *link, int y, int h, int slice_dir) |
|
| 174 |
+{
|
|
| 175 |
+ avfilter_draw_slice(link->dst->outputs[0], y, h, slice_dir); |
|
| 176 |
+} |
|
| 177 |
+ |
|
| 178 |
+void avfilter_null_end_frame(AVFilterLink *link) |
|
| 179 |
+{
|
|
| 180 |
+ avfilter_end_frame(link->dst->outputs[0]); |
|
| 181 |
+} |
|
| 182 |
+ |
|
| 183 |
+AVFilterPicRef *avfilter_null_get_video_buffer(AVFilterLink *link, int perms, int w, int h) |
|
| 184 |
+{
|
|
| 185 |
+ return avfilter_get_video_buffer(link->dst->outputs[0], perms, w, h); |
|
| 186 |
+} |
|
| 187 |
+ |