|
gmerlin
|
Functions | |
| void | bg_hexdump (uint8_t *data, int len, int linebreak) |
| Do a hexdump of binary data. | |
| char * | bg_audio_format_to_string (gavl_audio_format_t *format, int use_tabs) |
| Convert an audio format to a string. | |
| char * | bg_video_format_to_string (gavl_video_format_t *format, int use_tabs) |
| Convert a video format to a string. | |
| char * | bg_get_stream_label (int index, const gavl_metadata_t *m) |
| Create a stream label. | |
| void | bg_dprintf (const char *format,...) __attribute__((format(printf |
| Dump to stderr. | |
| void void | bg_diprintf (int indent, const char *format,...) __attribute__((format(printf |
| Dump to stderr with intendation. | |
| void void void * | bg_read_file (const char *filename, int *len) |
| Read an entire file into a buffer. | |
| int | bg_write_file (const char *filename, void *data, int len) |
| Write an entire file into a buffer. | |
| const char * | bg_iso639_b_to_t (const char *code) |
| Convert a ISO 639-2/B language code to a ISO 639-2/T code. | |
| void bg_hexdump | ( | uint8_t * | data, |
| int | len, | ||
| int | linebreak | ||
| ) |
Do a hexdump of binary data.
| data | Data |
| len | Length |
| linebreak | How many bytes to print in each line before a linebreak |
This is mostly for debugging
| char* bg_audio_format_to_string | ( | gavl_audio_format_t * | format, |
| int | use_tabs | ||
| ) |
Convert an audio format to a string.
| format | An audio format |
| use_tabs | 1 to use tabs for separating field names and values |
| char* bg_video_format_to_string | ( | gavl_video_format_t * | format, |
| int | use_tabs | ||
| ) |
Convert a video format to a string.
| format | A video format |
| use_tabs | 1 to use tabs for separating field names and values |
| char* bg_get_stream_label | ( | int | index, |
| const gavl_metadata_t * | m | ||
| ) |
Create a stream label.
| index | Index of the stream (starting with 0) |
| m | Metadata |
| void bg_dprintf | ( | const char * | format, |
| ... | |||
| ) |
Dump to stderr.
| format | Format (printf compatible) |
| void void bg_diprintf | ( | int | indent, |
| const char * | format, | ||
| ... | |||
| ) |
Dump to stderr with intendation.
| indent | How many spaces to prepend |
| format | Format (printf compatible) |
| void void void* bg_read_file | ( | const char * | filename, |
| int * | len | ||
| ) |
Read an entire file into a buffer.
| filename | Name of the file |
| len | Returns the length in bytes |
| int bg_write_file | ( | const char * | filename, |
| void * | data, | ||
| int | len | ||
| ) |
Write an entire file into a buffer.
| filename | Name of the file |
| data | Data to write |
| len | Length in bytes |
| const char* bg_iso639_b_to_t | ( | const char * | code | ) |
Convert a ISO 639-2/B language code to a ISO 639-2/T code.
| code | ISO 639-2/B |
1.7.6.1