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