upipe/upipe_helper_dvb_string.h header reference
Upipe helper functions writing DVB strings using iconv More
Header inclusion [link]
Members [link]
Macro [link]
Description [link]
Upipe helper functions writing DVB strings using iconv
Members detail [link]
#define UPIPE_HELPER_DVB_STRING(STRUCTURE, NATIVE_ENCODING, CURRENT_ENCODING, ICONV_HANDLE) [link]
This macro is declared in upipe/upipe_helper_dvb_string.h source file, line 78.
This macro declares three functions writing DVB strings using iconv.
You must add two members to your private pipe structure, for instance:
const char *current_encoding;
iconv_t iconv_handle;You must also declare UPIPE_HELPER_UPIPE prior to using this macro.
Supposing the name of your structure is upipe_foo, it declares:
Initializes the fields.
uint8_t *upipe_foo_alloc_dvb_string(struct upipe *upipe,
const char *string, const char *encoding, size_t *out_length_p)Allocates a buffer and stores a DVB string with the given encoding.
Releases the iconv handle.
Parameter list:
- STRUCTURE: name of your private upipe structure
- NATIVE_ENCODING: native encoding to convert to ("UTF-8")
- CURRENT_ENCODING: name of the const char * field of your private upipe structure
- ICONV_HANDLE: name of the iconv_t field of your private upipe structure
#define _UPIPE_UPIPE_HELPER_DVB_STRING_H_ [link]
This macro is declared in upipe/upipe_helper_dvb_string.h source file, line 31.