Commit d8b2b3a6 authored by michael's avatar michael

Improve AVFilterFormats doxy.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12672 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6a320892
...@@ -188,22 +188,32 @@ AVFilterFormats *avfilter_all_colorspaces(void); ...@@ -188,22 +188,32 @@ AVFilterFormats *avfilter_all_colorspaces(void);
AVFilterFormats *avfilter_merge_formats(AVFilterFormats *a, AVFilterFormats *b); AVFilterFormats *avfilter_merge_formats(AVFilterFormats *a, AVFilterFormats *b);
/** /**
* Adds *ref as a new reference to f. * Adds *ref as a new reference to formats.
* That is the pointers will point like in the ascii art below: * That is the pointers will point like in the ascii art below:
* ________ * ________
* | f |<--------. * |formats |<--------.
* | ____ | | * | ____ | ____|___________________
* | |refs| | __|_ * | |refs| | | __|_
* | |* * | | | | | * | |* * | | | | | | AVFilterLink
* | |* *--------->|*ref| * | |* *--------->|*ref|
* | |____| | |____| * | |____| | | |____|
* |________| * |________| |________________________
*/ */
void avfilter_formats_ref(AVFilterFormats *f, AVFilterFormats **ref); void avfilter_formats_ref(AVFilterFormats *formats, AVFilterFormats **ref);
/** /**
* Remove *ref as a reference to the format list it currently points to, * Remove *ref as a reference to the format list it currently points to,
* deallocate that list if this was the last reference, and set *ref to NULL. * deallocate that list if this was the last reference, and set *ref to NULL.
*
* Before After
* ________ ________ NULL
* |formats |<--------. |formats | ^
* | ____ | ____|________________ | ____ | ____|________________
* | |refs| | | __|_ | |refs| | | __|_
* | |* * | | | | | | AVFilterLink | |* * | | | | | | AVFilterLink
* | |* *--------->|*ref| | |* | | | |*ref|
* | |____| | | |____| | |____| | | |____|
* |________| |_____________________ |________| |_____________________
*/ */
void avfilter_formats_unref(AVFilterFormats **ref); void avfilter_formats_unref(AVFilterFormats **ref);
...@@ -211,7 +221,7 @@ void avfilter_formats_unref(AVFilterFormats **ref); ...@@ -211,7 +221,7 @@ void avfilter_formats_unref(AVFilterFormats **ref);
* *
* Before After * Before After
* ________ ________ * ________ ________
* | f |<---------. | f |<---------. * |formats |<---------. |formats |<---------.
* | ____ | ___|___ | ____ | ___|___ * | ____ | ___|___ | ____ | ___|___
* | |refs| | | | | | |refs| | | | | NULL * | |refs| | | | | | |refs| | | | | NULL
* | |* *--------->|*oldref| | |* *--------->|*newref| ^ * | |* *--------->|*oldref| | |* *--------->|*newref| ^
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment