|
libheif
|
#include "heif_image_handle.h"#include "heif_library.h"#include "heif_error.h"
Go to the source code of this file.
Typedefs | |
| typedef struct heif_text_item | heif_text_item |
Functions | |
| int | heif_image_handle_get_number_of_text_items (const heif_image_handle *image_handle) |
| Get the number of text items that are attached to an image. | |
| int | heif_image_handle_get_list_of_text_item_ids (const heif_image_handle *image_handle, heif_item_id *text_item_ids_array, int max_count) |
| Get the text item identifiers for the text items attached to an image. | |
| heif_error | heif_context_get_text_item (const heif_context *context, heif_item_id text_item_id, heif_text_item **out) |
| Get the text item. | |
| heif_item_id | heif_text_item_get_id (heif_text_item *text_item) |
| Get the item identifier for a text item. | |
| const char * | heif_text_item_get_content (heif_text_item *text_item) |
| Get the item content for a text item. | |
| heif_error | heif_text_item_get_property_extended_language (const heif_text_item *text_item, char **out_language) |
| This function is similar to heif_item_get_property_extended_language(), but takes a heif_text_item as parameter. | |
| heif_error | heif_image_handle_add_text_item (heif_image_handle *image_handle, const char *content_type, const char *text, heif_text_item **out_text_item) |
| Add a text item to an image. | |
| void | heif_text_item_release (heif_text_item *text_item) |
| Release a text item. | |
| heif_error | heif_text_item_set_extended_language (heif_text_item *text_item, const char *language, heif_property_id *out_optional_propertyId) |
| Set the extended language property to the text item. | |
| typedef struct heif_text_item heif_text_item |
| heif_error heif_context_get_text_item | ( | const heif_context * | context, |
| heif_item_id | text_item_id, | ||
| heif_text_item ** | out ) |
Get the text item.
Caller is responsible for release of the output heif_text_item with heif_text_item_release().
| context | the context to get the text item from, usually from a file operation |
| text_item_id | the identifier for the text item |
| out | pointer to pointer to the resulting text item |
| heif_error heif_image_handle_add_text_item | ( | heif_image_handle * | image_handle, |
| const char * | content_type, | ||
| const char * | text, | ||
| heif_text_item ** | out_text_item ) |
Add a text item to an image.
| int heif_image_handle_get_list_of_text_item_ids | ( | const heif_image_handle * | image_handle, |
| heif_item_id * | text_item_ids_array, | ||
| int | max_count ) |
Get the text item identifiers for the text items attached to an image.
Possible usage (in C++):
| image_handle | the image handle for the parent image to query |
| text_item_ids_array | array to put the item identifiers into |
| max_count | the maximum number of text identifiers |
| int heif_image_handle_get_number_of_text_items | ( | const heif_image_handle * | image_handle | ) |
Get the number of text items that are attached to an image.
| image_handle | the image handle for the image to query. |
| const char * heif_text_item_get_content | ( | heif_text_item * | text_item | ) |
Get the item content for a text item.
This is the payload text, in the format given by the associated content_type.
| text_item | the text item to query |
| heif_item_id heif_text_item_get_id | ( | heif_text_item * | text_item | ) |
Get the item identifier for a text item.
| text_item | the text item to query |
| heif_error heif_text_item_get_property_extended_language | ( | const heif_text_item * | text_item, |
| char ** | out_language ) |
This function is similar to heif_item_get_property_extended_language(), but takes a heif_text_item as parameter.
| text_item | The text item for which we are requesting the language. |
| out_language | Output parameter for the text language. Free with heif_string_release(). |
| void heif_text_item_release | ( | heif_text_item * | text_item | ) |
Release a text item.
This should be called on items from heif_context_add_text_item().
| text_item | the item to release. |
| heif_error heif_text_item_set_extended_language | ( | heif_text_item * | text_item, |
| const char * | language, | ||
| heif_property_id * | out_optional_propertyId ) |
Set the extended language property to the text item.
This adds an RFC 5346 (IETF BCP 47) extended language tag, such as "en-AU".
| text_item | the text item to query |
| language | the language to set |
| out_optional_propertyId | Output parameter for the property ID of the language property. This parameter may be NULL if the info is not required. |