[FFmpeg-cvslog] r24158 - in trunk: Changelog doc/general.texi libavcodec/Makefile libavcodec/allcodecs.c libavcodec/avcodec.h libavcodec/gsmdec.c
Vitor Sessak
vitor1001
Tue Jul 27 18:30:35 CEST 2010
On 07/10/2010 09:55 AM, reimar wrote:
> Author: reimar
> Date: Sat Jul 10 09:55:06 2010
> New Revision: 24158
>
> Log:
> Add native GSM 06.10 audio decoder.
> Added: trunk/libavcodec/gsmdec.c
> ==============================================================================
> --- /dev/null 00:00:00 1970 (empty, because file is newly added)
> +++ trunk/libavcodec/gsmdec.c Sat Jul 10 09:55:06 2010 (r24158)
> @@ -0,0 +1,316 @@
> +/*
> + * gsm 06.10 decoder
> + * Copyright (c) 2010 Reimar D?ffinger<Reimar.Doeffinger at gmx.de>
> + *
> + * 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
> + * GSM decoder
> + */
> +
> +#define ALT_BITSTREAM_READER_LE
> +#include "avcodec.h"
> +#include "get_bits.h"
> +
> +// input and output sizes in byte
> +#define GSM_BLOCK_SIZE 33
> +#define GSM_MS_BLOCK_SIZE 65
> +#define GSM_FRAME_SIZE 160
> +
> +typedef struct {
> + int16_t ref_buf[280];
Are the first 120 elements of ref_buf write-only?
-Vitor
More information about the ffmpeg-cvslog
mailing list