+++ /dev/null
-/*\r
- * GPAC - Multimedia Framework C SDK\r
- *\r
- * Copyright (c) Jean Le Feuvre 2000-2005 \r
- * All rights reserved\r
- *\r
- * This file is part of GPAC / common tools sub-project\r
- *\r
- * GPAC is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU Lesser General Public License as published by\r
- * the Free Software Foundation; either version 2, or (at your option)\r
- * any later version.\r
- * \r
- * GPAC is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU Lesser General Public License for more details.\r
- * \r
- * You should have received a copy of the GNU Lesser General Public\r
- * License along with this library; see the file COPYING. If not, write to\r
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. \r
- *\r
- */\r
-\r
-#ifndef _GF_BASE_CODING_H_\r
-#define _GF_BASE_CODING_H_\r
-\r
-#ifdef __cplusplus\r
-extern "C" {\r
-#endif\r
-\r
-/*!\r
- * \file <gpac/base_coding.h>\r
- * \brief Base coding functions.\r
- */\r
-\r
-/*!\r
- * \addtogroup bascod_grp base coding\r
- * \ingroup utils_grp\r
- * \brief Base Coding functions\r
- *\r
- * This section documents the base encoding and decoding functions of the GPAC framework.\r
- * @{\r
- */\r
-\r
-#include <gpac/tools.h>\r
-\r
-/*!\r
- *\brief base64 encoder\r
- *\r
- *Encodes a data buffer to Base64\r
- *\param in_buffer input data buffer\r
- *\param in_buffer_size input data buffer size\r
- *\param out_buffer output Base64 buffer location\r
- *\param out_buffer_size output Base64 buffer allocated size\r
- *\return size of the encoded Base64 buffer\r
- *\note the encoded data buffer is not NULL-terminated.\r
- */\r
-u32 gf_base64_encode(char *in_buffer, u32 in_buffer_size, char *out_buffer, u32 out_buffer_size);\r
-/*!\r
- *\brief base64 decoder\r
- *\r
- *Decodes a Base64 buffer to data\r
- *\param in_buffer input Base64 buffer\r
- *\param in_buffer_size input Base64 buffer size\r
- *\param out_buffer output data buffer location\r
- *\param out_buffer_size output data buffer allocated size\r
- *\return size of the decoded buffer\r
- */\r
-u32 gf_base64_decode(char *in_buffer, u32 in_buffer_size, char *out_buffer, u32 out_buffer_size);\r
-\r
-/*!\r
- *\brief base16 encoder\r
- *\r
- *Encodes a data buffer to Base16\r
- *\param in_buffer input data buffer\r
- *\param in_buffer_size input data buffer size\r
- *\param out_buffer output Base16 buffer location\r
- *\param out_buffer_size output Base16 buffer allocated size\r
- *\return size of the encoded Base16 buffer\r
- *\note the encoded data buffer is not NULL-terminated.\r
- */\r
-u32 gf_base16_encode(char *in_buffer, u32 in_buffer_size, char *out_buffer, u32 out_buffer_size);\r
-\r
-/*!\r
- *\brief base16 decoder\r
- *\r
- *Decodes a Base16 buffer to data\r
- *\param in_buffer input Base16 buffer\r
- *\param in_buffer_size input Base16 buffer size\r
- *\param out_buffer output data buffer location\r
- *\param out_buffer_size output data buffer allocated size\r
- *\return size of the decoded buffer\r
- */\r
-u32 gf_base16_decode(char *in_buffer, u32 in_buffer_size, char *out_buffer, u32 out_buffer_size);\r
-\r
-/*! @} */\r
-\r
-#ifdef __cplusplus\r
-}\r
-#endif\r
-\r
-\r
-#endif /*_GF_BASE_CODING_H_*/\r
-\r