OSDN Git Service

Move base64.[ch] to libavutil.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 13 Feb 2007 08:21:47 +0000 (08:21 +0000)
committerDiego Biurrun <diego@biurrun.de>
Tue, 13 Feb 2007 08:21:47 +0000 (08:21 +0000)
patch by Carl Eugen Hoyos, cehoyos ag.or at

Originally committed as revision 7963 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/Makefile
libavutil/Makefile
libavutil/base64.c [moved from libavformat/base64.c with 100% similarity]
libavutil/base64.h [moved from libavformat/base64.h with 84% similarity]

index a57f797..1fbfd38 100644 (file)
@@ -166,7 +166,7 @@ OBJS+= avio.o aviobuf.o
 ifeq ($(CONFIG_PROTOCOLS),yes)
 OBJS+= file.o
 ifeq ($(CONFIG_NETWORK),yes)
-OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o mpegts.o base64.o rtp_h264.o
+OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o mpegts.o rtp_h264.o
 endif
 endif
 
index f4b1766..a2e35e7 100644 (file)
@@ -19,6 +19,7 @@ OBJS= mathematics.o \
       lzo.o \
       random.o \
       aes.o \
+      base64.o \
 
 HEADERS = avutil.h common.h mathematics.h integer.h rational.h \
           intfloat_readwrite.h md5.h adler32.h log.h fifo.h lzo.h \
similarity index 100%
rename from libavformat/base64.c
rename to libavutil/base64.c
similarity index 84%
rename from libavformat/base64.h
rename to libavutil/base64.h
index 03d43af..5658ee8 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-int av_base64_decode(uint8_t * out, const char *in, int out_length);  // param order as strncpy()
-char *av_base64_encode(uint8_t * src, int len);       // src is not a string, it's data.
+/**
+ * decodes base64
+ * param order as strncpy()
+ */
+int av_base64_decode(uint8_t * out, const char *in, int out_length);
+
+/**
+ * encodes base64
+ * @param src data, not a string
+ */
+char *av_base64_encode(uint8_t * src, int len);