History

Improve AVFilterFormats doxy.

Originally committed as revision 12672 to svn://svn.ffmpeg.org/ffmpeg/trunk

Michael Niedermayer committed 18 years ago

Commit a27c8d51 parent 7bfacd41 file · +19 −9Browse files

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

Unified · Split

libavfilter/avfilter.h+19−9
@@ -188,22 +188,32 @@ AVFilterFormats *avfilter_all_colorspaces(void); · 187 unmodified lines
188188 AVFilterFormats *avfilter_merge_formats(AVFilterFormats *a, AVFilterFormats *b);
189189
190190 /**
191− * Adds *ref as a new reference to f.
191+ * Adds *ref as a new reference to formats.
192192 * That is the pointers will point like in the ascii art below:
193193 * ________
194− * | f |<--------.
195− * | ____ | |
196− * | |refs| | __|_
197− * | |* * | | | | |
194+ * |formats |<--------.
195+ * | ____ | ____|___________________
196+ * | |refs| | | __|_
197+ * | |* * | | | | | | AVFilterLink
198198 * | |* *--------->|*ref|
199− * | |____| | |____|
200− * |________|
199+ * | |____| | | |____|
200+ * |________| |________________________
201201 */
202−void avfilter_formats_ref(AVFilterFormats *f, AVFilterFormats **ref);
202+void avfilter_formats_ref(AVFilterFormats *formats, AVFilterFormats **ref);
203203
204204 /**
205205 * Remove *ref as a reference to the format list it currently points to,
206206 * deallocate that list if this was the last reference, and set *ref to NULL.
207+ *
208+ * Before After
209+ * ________ ________ NULL
210+ * |formats |<--------. |formats | ^
211+ * | ____ | ____|________________ | ____ | ____|________________
212+ * | |refs| | | __|_ | |refs| | | __|_
213+ * | |* * | | | | | | AVFilterLink | |* * | | | | | | AVFilterLink
214+ * | |* *--------->|*ref| | |* | | | |*ref|
215+ * | |____| | | |____| | |____| | | |____|
216+ * |________| |_____________________ |________| |_____________________
207217 */
208218 void avfilter_formats_unref(AVFilterFormats **ref);
209219
@@ -211,7 +221,7 @@ void avfilter_formats_unref(AVFilterFormats **ref); · 1 unmodified line
211221 *
212222 * Before After
213223 * ________ ________
214− * | f |<---------. | f |<---------.
224+ * |formats |<---------. |formats |<---------.
215225 * | ____ | ___|___ | ____ | ___|___
216226 * | |refs| | | | | | |refs| | | | | NULL
217227 * | |* *--------->|*oldref| | |* *--------->|*newref| ^

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