Misc stuff
[Utilities]

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 char *info, const char *language)
 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.

Function Documentation

void bg_hexdump ( uint8_t *  data,
int  len,
int  linebreak 
)

Do a hexdump of binary data.

Parameters:
data Data
Parameters:
len Length
Parameters:
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.

Parameters:
format An audio format
Parameters:
use_tabs 1 to use tabs for separating field names and values
Returns:
A newly allocated string
char* bg_video_format_to_string ( gavl_video_format_t format,
int  use_tabs 
)

Convert a video format to a string.

Parameters:
format A video format
Parameters:
use_tabs 1 to use tabs for separating field names and values
Returns:
A newly allocated string
char* bg_get_stream_label ( int  index,
const char *  info,
const char *  language 
)

Create a stream label.

Parameters:
index Index of the stream (starting with 0)
Parameters:
info Information (or NULL)
Parameters:
language Language (or NULL)
Returns:
A newly allocated string
void bg_dprintf ( const char *  format,
  ... 
)

Dump to stderr.

Parameters:
format Format (printf compatible)
void void bg_diprintf ( int  indent,
const char *  format,
  ... 
)

Dump to stderr with intendation.

Parameters:
indent How many spaces to prepend
Parameters:
format Format (printf compatible)
Generated on Sat Jan 28 06:53:19 2012 for gmerlin by  doxygen 1.6.3