blob: fbe16dfc61af24a4e24c04ef70afdeacd3b6e14b [file] [log] [blame]
.TH "MP4" "3" "Version 0.9" "Cisco Systems Inc." "MP4 File Format Library"
.SH "NAME"
.LP
\fBMP4BinaryToBase16\fR \- Convert binary data to a base 16 string
.SH "SYNTAX"
.LP
#include <mp4.h>
.LP
char* \fBMP4BinaryToBase16\fR(
.br
const u_int8_t* \fIpData\fP,
.br
u_int32_t \fIdataSize\fP
.br
)
.SH "ARGUMENTS"
.LP
.TP
\fIpData\fP
Specifies the pointer to the binary data.
.TP
\fIdataSize\fP
Specifies the size in bytes of the binary data.
.SH "RETURN VALUES"
.LP
Upon success, a null terminated string representing the data in base 16. Upon error, NULL.
.SH "DESCRIPTION"
.LP
\fBMP4BinaryToBase16\fR converts binary data to a base 16 string. This encoding maps groups of 4 bits into the character set [0\-9a\-f]. The string is in malloc'd memory, so the caller is responsible for free'ing the memory.
.LP
This utility is useful for generating the SDP descriptions for some RTP payloads.
.LP
Example:
0x12, 0xAB \-> "12ab"
.SH "SEE ALSO"
.LP
MP4(3)