Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: minor api documentation cleanups #1024

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions libheif/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ FULL_PATH_NAMES = YES
# will be relative from the directory where doxygen is started.
# This tag requires that the tag FULL_PATH_NAMES is set to YES.

STRIP_FROM_PATH =
STRIP_FROM_PATH = @CMAKE_CURRENT_SOURCE_DIR@

# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
# path mentioned in the documentation of a class, which tells the reader which
Expand Down Expand Up @@ -864,7 +864,8 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.

INPUT = @CMAKE_CURRENT_SOURCE_DIR@/libheif/heif.h
INPUT = @CMAKE_CURRENT_SOURCE_DIR@/libheif/heif.h \
@CMAKE_CURRENT_SOURCE_DIR@/libheif/heif_regions.h

# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
Expand Down
46 changes: 29 additions & 17 deletions libheif/heif.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ enum heif_compression_format
*/
heif_compression_EVC = 6,
/**
* JPEG 2000 compression. (Currently unused in libheif.)
* JPEG 2000 compression.
*
* The encapsulation of JPEG 2000 is specified in ISO/IEC 15444-16:2021.
* The core encoding is defined in ISO/IEC 15444-1, or ITU-T T.800.
Expand All @@ -401,7 +401,7 @@ enum heif_compression_format
/**
* Uncompressed encoding.
*
* This is defined in ISO/IEC 23001-17:2023 (Draft International Standard).
* This is defined in ISO/IEC 23001-17:2023 (Final Draft International Standard).
*/
heif_compression_uncompressed = 8,
/**
Expand Down Expand Up @@ -479,24 +479,36 @@ struct heif_init_params
};


// You should call heif_init() when you start using libheif and heif_deinit() when you are finished.
// These calls are reference counted. Each call to heif_init() should be matched by one call to heif_deinit().
//
// For backwards compatibility, it is not really necessary to call heif_init(), but some library memory objects
// will never be freed if you do not call heif_init()/heif_deinit().
//
// heif_init() will load the external modules installed in the default plugin path. Thus, you need it when you
// want to load external plugins from the default path.
// Codec plugins that are compiled into the library directly (selected by the compile-time parameters of libheif)
// will be available even without heif_init().
//
// Make sure that you don't have one part of your program use heif_init()/heif_deinit() and another part that doesn't
// use it as the latter may try to use an uninitialized library. If in doubt, enclose everything with init/deinit.

// You may pass nullptr to get default parameters. Currently, no parameters are supported.
/**
* Initialise library.
*
* You should call heif_init() when you start using libheif and heif_deinit() when you are finished.
* These calls are reference counted. Each call to heif_init() should be matched by one call to heif_deinit().
*
* For backwards compatibility, it is not really necessary to call heif_init(), but some library memory objects
* will never be freed if you do not call heif_init()/heif_deinit().
*
* heif_init() will load the external modules installed in the default plugin path. Thus, you need it when you
* want to load external plugins from the default path.
* Codec plugins that are compiled into the library directly (selected by the compile-time parameters of libheif)
* will be available even without heif_init().
*
* Make sure that you do not have one part of your program use heif_init()/heif_deinit() and another part that does
* not use it as the latter may try to use an uninitialized library. If in doubt, enclose everything with init/deinit.
*
* You may pass nullptr to get default parameters. Currently, no parameters are supported.
*/
LIBHEIF_API
struct heif_error heif_init(struct heif_init_params*);

/**
* Deinitialise and clean up library.
*
* You should call heif_init() when you start using libheif and heif_deinit() when you are finished.
* These calls are reference counted. Each call to heif_init() should be matched by one call to heif_deinit().
*
* \sa heif_init()
*/
LIBHEIF_API
void heif_deinit(void);

Expand Down
2 changes: 1 addition & 1 deletion libheif/heif_regions.h
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ struct heif_error heif_region_get_polyline_points(const struct heif_region* regi
* The points are provided as pairs of X,Y coordinates, in the order X<sub>1</sub>,
* Y<sub>1</sub>, X<sub>2</sub>, Y<sub>2</sub>, ..., X<sub>n</sub>, Y<sub>n</sub>.
*
* @param region the region to equery, which must be of type #heif_region_type_polyline
* @param region the region to query, which must be of type #heif_region_type_polyline
* @param image_id the identifier for the image to transform / scale the region to
* @param out_pts_array the array to return the points in, which must have twice as many entries as there are points
* in the polyline.
Expand Down
Loading