[FFmpeg-soc] [soc]: r4305 - in als: README alsdec.c ffmpeg-patches ffmpeg-patches/addALSdecoder.rev2.patch

thilo.borgmann subversion at mplayerhq.hu
Sun May 24 03:22:14 CEST 2009


Author: thilo.borgmann
Date: Sun May 24 03:22:14 2009
New Revision: 4305

Log:
Initial commit.

Added:
   als/README
   als/alsdec.c
   als/ffmpeg-patches/
   als/ffmpeg-patches/addALSdecoder.rev2.patch

Added: als/README
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ als/README	Sun May 24 03:22:14 2009	(r4305)
@@ -0,0 +1,11 @@
+MPEG-4 ALS DECODER
+==================
+
+Author: Thilo Borgmann <thilo.borgmann at googlemail.com>
+Mentor: Justin Ruggles <justin.ruggles at gmail.com>
+
+This decoder is a project of the Google Summer of Code program 2009.
+
+Abstract: The MPEG-4 ALS codec exists quite a while. As FFmpeg lacks support for that, this project aims to include basic decoding functionality to the FFmpeg libraries.
+
+

Added: als/alsdec.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ als/alsdec.c	Sun May 24 03:22:14 2009	(r4305)
@@ -0,0 +1,70 @@
+/*
+ * ALS decoder
+ * Copyright (c) 2009 Thilo Borgmann <thilo.borgmann _at_ googlemail.com>
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/**
+ * @file libavcodec/alsdec.c
+ * MPEG-4 ALS decoder
+ * @author Thilo Borgmann <thilo.borgmann _at_ googlemail.com>
+ */
+
+
+#include "avcodec.h"
+
+
+typedef struct {
+} ALSDecContext;
+
+
+/** Decode an ALS frame.
+ */
+static int als_decode_frame(AVCodecContext *avctx,
+                            void *data, int *data_size,
+                            AVPacket *avpkt) {
+    return 0;
+}
+
+
+/** Initialize the ALS decoder.
+ */
+static int als_decode_init(AVCodecContext *avctx) {
+    return 0;
+}
+
+
+/** Uninitialize the ALS decoder.
+ */
+static int als_decode_end(AVCodecContext *avctx) {
+    return 0;
+}
+
+
+AVCodec als_decoder = {
+    "als",
+    CODEC_TYPE_AUDIO,
+    CODEC_ID_MP4ALS,
+    sizeof(ALSDecContext),
+    als_decode_init,
+    NULL,
+    als_decode_end,
+    als_decode_frame,
+    .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 Audio Lossless Coding"),
+};
+

Added: als/ffmpeg-patches/addALSdecoder.rev2.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ als/ffmpeg-patches/addALSdecoder.rev2.patch	Sun May 24 03:22:14 2009	(r4305)
@@ -0,0 +1,24 @@
+Index: libavcodec/Makefile
+===================================================================
+--- libavcodec/Makefile	(Revision 18912)
++++ libavcodec/Makefile	(Arbeitskopie)
+@@ -39,6 +39,7 @@
+ OBJS-$(CONFIG_AC3_ENCODER)             += ac3enc.o ac3tab.o ac3.o
+ OBJS-$(CONFIG_ALAC_DECODER)            += alac.o
+ OBJS-$(CONFIG_ALAC_ENCODER)            += alacenc.o lpc.o
++OBJS-$(CONFIG_ALS_DECODER)             += alsdec.o
+ OBJS-$(CONFIG_AMV_DECODER)             += sp5xdec.o mjpegdec.o mjpeg.o
+ OBJS-$(CONFIG_APE_DECODER)             += apedec.o
+ OBJS-$(CONFIG_ASV1_DECODER)            += asv1.o mpeg12data.o
+Index: libavcodec/allcodecs.c
+===================================================================
+--- libavcodec/allcodecs.c	(Revision 18912)
++++ libavcodec/allcodecs.c	(Arbeitskopie)
+@@ -196,6 +196,7 @@
+     REGISTER_DECODER (AAC, aac);
+     REGISTER_ENCDEC  (AC3, ac3);
+     REGISTER_ENCDEC  (ALAC, alac);
++    REGISTER_DECODER (ALS, als);
+     REGISTER_DECODER (APE, ape);
+     REGISTER_DECODER (ATRAC3, atrac3);
+     REGISTER_DECODER (COOK, cook);


More information about the FFmpeg-soc mailing list