History

Rename functions and fields:

avfilter_(un)ref_pic -> avfilter_(un)ref_buffer avfilter_copy_picref_props -> avfilter_copy_buffer_ref_props AVFilterBufferRef.pic -> AVFilterBufferRef.buffer They have been renamed to allow sharing with audio. Patch by S.N. Hemanth Meenakshisundaram $smeenaks$ucsd$edu$. Originally committed as revision 24731 to svn://svn.ffmpeg.org/ffmpeg/trunk

S.N. Hemanth Meenakshisundaram committed 16 years ago

Commit 7fce4811 parent ecc8dad11 files · +49 −49Browse files

Showing the changes to libavfilter/avfilter.h (1 of 11 files). Show all

Unified · Split

libavfilter/avfilter.h+18−18
@@ -25,7 +25,7 @@ · 24 unmodified lines
2525 #include "libavutil/avutil.h"
2626
2727 #define LIBAVFILTER_VERSION_MAJOR 1
28−#define LIBAVFILTER_VERSION_MINOR 29
28+#define LIBAVFILTER_VERSION_MINOR 30
2929 #define LIBAVFILTER_VERSION_MICRO 0
3030
3131 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
@@ -90,7 +90,7 @@ typedef struct AVFilterBuffer · 58 unmodified lines
9090
9191 /**
9292 * A reference to an AVFilterBuffer. Since filters can manipulate the origin of
93− * a picture to, for example, crop image without any memcpy, the picture origin
93+ * a buffer to, for example, crop image without any memcpy, the buffer origin
9494 * and dimensions are per-reference properties. Linesize is also useful for
9595 * image flipping, frame to field filters, etc, and so is also per-reference.
9696 *
@@ -98,7 +98,7 @@ typedef struct AVFilterBuffer · 1 unmodified line
9898 */
9999 typedef struct AVFilterBufferRef
100100 {
101− AVFilterBuffer *pic; ///< the picture that this is a reference to
101+ AVFilterBuffer *buf; ///< the buffer that this is a reference to
102102 uint8_t *data[4]; ///< picture data for each plane
103103 int linesize[4]; ///< number of bytes per line
104104 int w; ///< image width
@@ -120,7 +120,7 @@ typedef struct AVFilterBufferRef · 15 unmodified lines
120120 * Copy properties of src to dst, without copying the actual video
121121 * data.
122122 */
123−static inline void avfilter_copy_picref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src)
123+static inline void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src)
124124 {
125125 dst->pts = src->pts;
126126 dst->pos = src->pos;
@@ -132,21 +132,21 @@ static inline void avfilter_copy_picref_props(AVFilterBufferRef *dst, AVFilterBu · 5 unmodified lines
132132 }
133133
134134 /**
135− * Add a new reference to a picture.
136− * @param ref an existing reference to the picture
135+ * Add a new reference to a buffer.
136+ * @param ref an existing reference to the buffer
137137 * @param pmask a bitmask containing the allowable permissions in the new
138138 * reference
139− * @return a new reference to the picture with the same properties as the
139+ * @return a new reference to the buffer with the same properties as the
140140 * old, excluding any permissions denied by pmask
141141 */
142−AVFilterBufferRef *avfilter_ref_pic(AVFilterBufferRef *ref, int pmask);
142+AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask);
143143
144144 /**
145− * Remove a reference to a picture. If this is the last reference to the
146− * picture, the picture itself is also automatically freed.
147− * @param ref reference to the picture
145+ * Remove a reference to a buffer. If this is the last reference to the
146+ * buffer, the buffer itself is also automatically freed.
147+ * @param ref reference to the buffer
148148 */
149−void avfilter_unref_pic(AVFilterBufferRef *ref);
149+void avfilter_unref_buffer(AVFilterBufferRef *ref);
150150
151151 /**
152152 * A list of supported formats for one end of a filter link. This is used
@@ -442,7 +442,7 @@ typedef struct AVFilter · 289 unmodified lines
442442
443443 /**
444444 * Filter uninitialization function. Should deallocate any memory held
445− * by the filter, release any picture references, etc. This does not need
445+ * by the filter, release any buffer references, etc. This does not need
446446 * to deallocate the AVFilterContext->priv memory itself.
447447 */
448448 void (*uninit)(AVFilterContext *ctx);
@@ -524,9 +524,9 @@ struct AVFilterLink · 75 unmodified lines
524524 AVFilterFormats *out_formats;
525525
526526 /**
527− * The picture reference currently being sent across the link by the source
527+ * The buffer reference currently being sent across the link by the source
528528 * filter. This is used internally by the filter system to allow
529− * automatic copying of pictures which do not have sufficient permissions
529+ * automatic copying of buffers which do not have sufficient permissions
530530 * for the destination. This should not be accessed directly by the
531531 * filters.
532532 */
@@ -556,13 +556,13 @@ int avfilter_config_links(AVFilterContext *filter); · 23 unmodified lines
556556
557557 /**
558558 * Request a picture buffer with a specific set of permissions.
559− * @param link the output link to the filter from which the picture will
559+ * @param link the output link to the filter from which the buffer will
560560 * be requested
561561 * @param perms the required access permissions
562562 * @param w the minimum width of the buffer to allocate
563563 * @param h the minimum height of the buffer to allocate
564− * @return A reference to the picture. This must be unreferenced with
565− * avfilter_unref_pic when you are finished with it.
564+ * @return A reference to the buffer. This must be unreferenced with
565+ * avfilter_unref_buffer when you are finished with it.
566566 */
567567 AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms,
568568 int w, int h);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t