Revision 0eb4ff9e libavfilter/avfilter.h

View differences:

libavfilter/avfilter.h
22 22
#ifndef AVFILTER_AVFILTER_H
23 23
#define AVFILTER_AVFILTER_H
24 24

  
25
#define LIBAVFILTER_VERSION_MAJOR  0
26
#define LIBAVFILTER_VERSION_MINOR  5
27
#define LIBAVFILTER_VERSION_MICRO  1
25
#define LIBAVFILTER_VERSION_MAJOR  1
26
#define LIBAVFILTER_VERSION_MINOR  0
27
#define LIBAVFILTER_VERSION_MICRO  0
28 28

  
29 29
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
30 30
                                               LIBAVFILTER_VERSION_MINOR, \
......
293 293
     *
294 294
     * Input video pads only.
295 295
     */
296
    AVFilterPicRef *(*get_video_buffer)(AVFilterLink *link, int perms);
296
    AVFilterPicRef *(*get_video_buffer)(AVFilterLink *link, int perms, int w, int h);
297 297

  
298 298
    /**
299 299
     * Callback called after the slices of a frame are completely sent. If
......
361 361
int avfilter_default_config_input_link (AVFilterLink *link);
362 362
/** default handler for get_video_buffer() for video inputs */
363 363
AVFilterPicRef *avfilter_default_get_video_buffer(AVFilterLink *link,
364
                                                  int perms);
364
                                                  int perms, int w, int h);
365 365
/**
366 366
 * A helper for query_formats() which sets all links to the same list of
367 367
 * formats. If there are no links hooked to this filter, the list of formats is
......
499 499
 * @param link  the output link to the filter from which the picture will
500 500
 *              be requested
501 501
 * @param perms the required access permissions
502
 * @param w     the minimum width of the buffer to allocate
503
 * @param h     the minimum height of the buffer to allocate
502 504
 * @return      A reference to the picture. This must be unreferenced with
503 505
 *              avfilter_unref_pic when you are finished with it.
504 506
 */
505
AVFilterPicRef *avfilter_get_video_buffer(AVFilterLink *link, int perms);
507
AVFilterPicRef *avfilter_get_video_buffer(AVFilterLink *link, int perms,
508
                                          int w, int h);
506 509

  
507 510
/**
508 511
 * Requests an input frame from the filter at the other end of the link.

Also available in: Unified diff