yading@11: /* yading@11: * Copyright (c) 2007 Bobby Bingham yading@11: * yading@11: * This file is part of FFmpeg. yading@11: * yading@11: * FFmpeg is free software; you can redistribute it and/or yading@11: * modify it under the terms of the GNU Lesser General Public yading@11: * License as published by the Free Software Foundation; either yading@11: * version 2.1 of the License, or (at your option) any later version. yading@11: * yading@11: * FFmpeg is distributed in the hope that it will be useful, yading@11: * but WITHOUT ANY WARRANTY; without even the implied warranty of yading@11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU yading@11: * Lesser General Public License for more details. yading@11: * yading@11: * You should have received a copy of the GNU Lesser General Public yading@11: * License along with FFmpeg; if not, write to the Free Software yading@11: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA yading@11: */ yading@11: yading@11: #ifndef AVFILTER_VIDEO_H yading@11: #define AVFILTER_VIDEO_H yading@11: yading@11: #include "avfilter.h" yading@11: yading@11: AVFrame *ff_default_get_video_buffer(AVFilterLink *link, int w, int h); yading@11: AVFrame *ff_null_get_video_buffer(AVFilterLink *link, int w, int h); yading@11: yading@11: /** yading@11: * Request a picture buffer with a specific set of permissions. yading@11: * yading@11: * @param link the output link to the filter from which the buffer will yading@11: * be requested yading@11: * @param w the minimum width of the buffer to allocate yading@11: * @param h the minimum height of the buffer to allocate yading@11: * @return A reference to the buffer. This must be unreferenced with yading@11: * avfilter_unref_buffer when you are finished with it. yading@11: */ yading@11: AVFrame *ff_get_video_buffer(AVFilterLink *link, int w, int h); yading@11: yading@11: #endif /* AVFILTER_VIDEO_H */