几个filter的接口转换函数

1  /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19  #ifndef AVFILTER_AVCODEC_H
20  #define AVFILTER_AVCODEC_H
21 
22  /**
23  * @file
24  * libavcodec/libavfilter gluing utilities
25  *
26  * This should be included in an application ONLY if the installed
27  * libavfilter has been compiled with libavcodec support, otherwise
28  * symbols defined below will not be available.
29  */
30 
31  #include "avfilter.h"
32 
33  #if FF_API_AVFILTERBUFFER
34  /**
35  * Create and return a picref reference from the data and properties
36  * contained in frame.
37  *
38  * @param perms permissions to assign to the new buffer reference
39  * @deprecated avfilter APIs work natively with AVFrame instead.
40  */
42 AVFilterBufferRef *avfilter_get_video_buffer_ref_from_frame( const AVFrame * frame, int perms);
43 
44 
45  /**
46  * Create and return a picref reference from the data and properties
47  * contained in frame.
48  *
49  * @param perms permissions to assign to the new buffer reference
50  * @deprecated avfilter APIs work natively with AVFrame instead.
51  */
53 AVFilterBufferRef *avfilter_get_audio_buffer_ref_from_frame( const AVFrame * frame,
54  int perms);
55 
56  /**
57  * Create and return a buffer reference from the data and properties
58  * contained in frame.
59  *
60  * @param perms permissions to assign to the new buffer reference
61  * @deprecated avfilter APIs work natively with AVFrame instead.
62  */
64 AVFilterBufferRef *avfilter_get_buffer_ref_from_frame( enum AVMediaType type,
65  const AVFrame * frame,
66  int perms);
67  #endif
68 
69  #if FF_API_FILL_FRAME
70  /**
71  * Fill an AVFrame with the information stored in samplesref.
72  *
73  * @param frame an already allocated AVFrame
74  * @param samplesref an audio buffer reference
75  * @return >= 0 in case of success, a negative AVERROR code in case of
76  * failure
77  * @deprecated Use avfilter_copy_buf_props() instead.
78  */
80  int avfilter_fill_frame_from_audio_buffer_ref( AVFrame * frame,
81  const AVFilterBufferRef *samplesref);
82 
83  /**
84  * Fill an AVFrame with the information stored in picref.
85  *
86  * @param frame an already allocated AVFrame
87  * @param picref a video buffer reference
88  * @return >= 0 in case of success, a negative AVERROR code in case of
89  * failure
90  * @deprecated Use avfilter_copy_buf_props() instead.
91  */
93  int avfilter_fill_frame_from_video_buffer_ref( AVFrame * frame,
94  const AVFilterBufferRef *picref);
95 
96  /**
97  * Fill an AVFrame with information stored in ref.
98  *
99  * @param frame an already allocated AVFrame
100  * @param ref a video or audio buffer reference
101  * @return >= 0 in case of success, a negative AVERROR code in case of
102  * failure
103  * @deprecated Use avfilter_copy_buf_props() instead.
104  */
106  int avfilter_fill_frame_from_buffer_ref( AVFrame * frame,
107  const AVFilterBufferRef *ref);
108  #endif
109 
110  #endif /* AVFILTER_AVCODEC_H */
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值