yading@10: /* yading@10: * This file is part of FFmpeg. yading@10: * yading@10: * FFmpeg is free software; you can redistribute it and/or yading@10: * modify it under the terms of the GNU Lesser General Public yading@10: * License as published by the Free Software Foundation; either yading@10: * version 2.1 of the License, or (at your option) any later version. yading@10: * yading@10: * FFmpeg is distributed in the hope that it will be useful, yading@10: * but WITHOUT ANY WARRANTY; without even the implied warranty of yading@10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU yading@10: * Lesser General Public License for more details. yading@10: * yading@10: * You should have received a copy of the GNU Lesser General Public yading@10: * License along with FFmpeg; if not, write to the Free Software yading@10: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA yading@10: */ yading@10: yading@10: #ifndef AVFILTER_AVCODEC_H yading@10: #define AVFILTER_AVCODEC_H yading@10: yading@10: /** yading@10: * @file yading@10: * libavcodec/libavfilter gluing utilities yading@10: * yading@10: * This should be included in an application ONLY if the installed yading@10: * libavfilter has been compiled with libavcodec support, otherwise yading@10: * symbols defined below will not be available. yading@10: */ yading@10: yading@10: #include "avfilter.h" yading@10: yading@10: #if FF_API_AVFILTERBUFFER yading@10: /** yading@10: * Create and return a picref reference from the data and properties yading@10: * contained in frame. yading@10: * yading@10: * @param perms permissions to assign to the new buffer reference yading@10: * @deprecated avfilter APIs work natively with AVFrame instead. yading@10: */ yading@10: attribute_deprecated yading@10: AVFilterBufferRef *avfilter_get_video_buffer_ref_from_frame(const AVFrame *frame, int perms); yading@10: yading@10: yading@10: /** yading@10: * Create and return a picref reference from the data and properties yading@10: * contained in frame. yading@10: * yading@10: * @param perms permissions to assign to the new buffer reference yading@10: * @deprecated avfilter APIs work natively with AVFrame instead. yading@10: */ yading@10: attribute_deprecated yading@10: AVFilterBufferRef *avfilter_get_audio_buffer_ref_from_frame(const AVFrame *frame, yading@10: int perms); yading@10: yading@10: /** yading@10: * Create and return a buffer reference from the data and properties yading@10: * contained in frame. yading@10: * yading@10: * @param perms permissions to assign to the new buffer reference yading@10: * @deprecated avfilter APIs work natively with AVFrame instead. yading@10: */ yading@10: attribute_deprecated yading@10: AVFilterBufferRef *avfilter_get_buffer_ref_from_frame(enum AVMediaType type, yading@10: const AVFrame *frame, yading@10: int perms); yading@10: #endif yading@10: yading@10: #if FF_API_FILL_FRAME yading@10: /** yading@10: * Fill an AVFrame with the information stored in samplesref. yading@10: * yading@10: * @param frame an already allocated AVFrame yading@10: * @param samplesref an audio buffer reference yading@10: * @return 0 in case of success, a negative AVERROR code in case of yading@10: * failure yading@10: * @deprecated Use avfilter_copy_buf_props() instead. yading@10: */ yading@10: attribute_deprecated yading@10: int avfilter_fill_frame_from_audio_buffer_ref(AVFrame *frame, yading@10: const AVFilterBufferRef *samplesref); yading@10: yading@10: /** yading@10: * Fill an AVFrame with the information stored in picref. yading@10: * yading@10: * @param frame an already allocated AVFrame yading@10: * @param picref a video buffer reference yading@10: * @return 0 in case of success, a negative AVERROR code in case of yading@10: * failure yading@10: * @deprecated Use avfilter_copy_buf_props() instead. yading@10: */ yading@10: attribute_deprecated yading@10: int avfilter_fill_frame_from_video_buffer_ref(AVFrame *frame, yading@10: const AVFilterBufferRef *picref); yading@10: yading@10: /** yading@10: * Fill an AVFrame with information stored in ref. yading@10: * yading@10: * @param frame an already allocated AVFrame yading@10: * @param ref a video or audio buffer reference yading@10: * @return 0 in case of success, a negative AVERROR code in case of yading@10: * failure yading@10: * @deprecated Use avfilter_copy_buf_props() instead. yading@10: */ yading@10: attribute_deprecated yading@10: int avfilter_fill_frame_from_buffer_ref(AVFrame *frame, yading@10: const AVFilterBufferRef *ref); yading@10: #endif yading@10: yading@10: #endif /* AVFILTER_AVCODEC_H */