| .TH "MP4" "3" "Version 0.9" "Cisco Systems Inc." "MP4 File Format Library" |
| .SH "NAME" |
| .LP |
| \fBMP4BinaryToBase64\fR \- Convert binary data to a base 64 string |
| .SH "SYNTAX" |
| .LP |
| #include <mp4.h> |
| .LP |
| char* \fBMP4BinaryToBase64\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 64. Upon error, NULL. |
| .SH "DESCRIPTION" |
| .LP |
| \fBMP4BinaryToBase64\fR converts binary data to a base 64 string. This encoding maps groups of 6 bits into the character set [A\-Za\-z0\-9+/=]. 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 \-> "Eqs=" |
| .SH "SEE ALSO" |
| .LP |
| MP4(3) |