diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-28 04:54:38 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-28 05:11:19 +0200 |
commit | 7ed9ec033f5f8da5c06ec5f53847dbdbbf8e9dbb (patch) | |
tree | fa7298f52d823bdcb8c81243c85ea18b7b947432 /libavcodec | |
parent | ac7d0c79c3f6b4ca5a9d1b333107684453191811 (diff) | |
parent | 4e5b7f31f7aa7a40ef6d255db2cd65ebab7b74db (diff) | |
download | ffmpeg-7ed9ec033f5f8da5c06ec5f53847dbdbbf8e9dbb.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
dwt: Drop unused functions spatial_compose{53|97}i()
nutdec: Remove unused and broken debug function stub
avcodec: Drop long-deprecated imgconvert.h header
Add Opus support to the Ogg muxer.
Add Opus codec id and codec description.
avformat: Identify anonymous AVIO typedef structs.
Conflicts:
libavcodec/avcodec.h
libavcodec/codec_desc.c
libavcodec/imgconvert.h
libavcodec/version.h
libavformat/oggenc.c
libavformat/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/avcodec.h | 1 | ||||
-rw-r--r-- | libavcodec/codec_desc.c | 3 | ||||
-rw-r--r-- | libavcodec/dwt.c | 18 | ||||
-rw-r--r-- | libavcodec/imgconvert.c | 1 | ||||
-rw-r--r-- | libavcodec/imgconvert.h | 44 | ||||
-rw-r--r-- | libavcodec/rawdec.c | 1 | ||||
-rw-r--r-- | libavcodec/utils.c | 2 | ||||
-rw-r--r-- | libavcodec/version.h | 2 |
8 files changed, 5 insertions, 67 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index f6522d1d1a..dc317dcf13 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -423,6 +423,7 @@ enum AVCodecID { AV_CODEC_ID_RALF, AV_CODEC_ID_IAC, AV_CODEC_ID_ILBC, + AV_CODEC_ID_OPUS_DEPRECATED, AV_CODEC_ID_FFWAVESYNTH = MKBETAG('F','F','W','S'), AV_CODEC_ID_8SVX_RAW = MKBETAG('8','S','V','X'), AV_CODEC_ID_SONIC = MKBETAG('S','O','N','C'), diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c index 607dd96f81..2f9e34885c 100644 --- a/libavcodec/codec_desc.c +++ b/libavcodec/codec_desc.c @@ -2242,7 +2242,8 @@ static const AVCodecDescriptor codec_descriptors[] = { .id = AV_CODEC_ID_OPUS, .type = AVMEDIA_TYPE_AUDIO, .name = "opus", - .long_name = NULL_IF_CONFIG_SMALL("Opus"), + .long_name = NULL_IF_CONFIG_SMALL("Opus (Opus Interactive Audio Codec)"), + .props = AV_CODEC_PROP_LOSSY, }, /* subtitle codecs */ diff --git a/libavcodec/dwt.c b/libavcodec/dwt.c index ec64857d98..d36d25d1a6 100644 --- a/libavcodec/dwt.c +++ b/libavcodec/dwt.c @@ -468,15 +468,6 @@ static void spatial_compose53i_dy(DWTCompose *cs, IDWTELEM *buffer, cs->y += 2; } -static void av_unused spatial_compose53i(IDWTELEM *buffer, IDWTELEM *temp, - int width, int height, int stride) -{ - DWTCompose cs; - spatial_compose53i_init(&cs, buffer, height, stride); - while (cs.y <= height) - spatial_compose53i_dy(&cs, buffer, temp, width, height, stride); -} - void ff_snow_horizontal_compose97i(IDWTELEM *b, IDWTELEM *temp, int width) { const int w2 = (width + 1) >> 1; @@ -651,15 +642,6 @@ static void spatial_compose97i_dy(DWTCompose *cs, IDWTELEM *buffer, cs->y += 2; } -static void av_unused spatial_compose97i(IDWTELEM *buffer, IDWTELEM *temp, - int width, int height, int stride) -{ - DWTCompose cs; - spatial_compose97i_init(&cs, buffer, height, stride); - while (cs.y <= height) - spatial_compose97i_dy(&cs, buffer, temp, width, height, stride); -} - void ff_spatial_idwt_buffered_init(DWTCompose *cs, slice_buffer *sb, int width, int height, int stride_line, int type, int decomposition_count) diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 27f179a943..61ca6a9292 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -33,7 +33,6 @@ #include "avcodec.h" #include "dsputil.h" #include "internal.h" -#include "imgconvert.h" #include "libavutil/colorspace.h" #include "libavutil/common.h" #include "libavutil/pixdesc.h" diff --git a/libavcodec/imgconvert.h b/libavcodec/imgconvert.h deleted file mode 100644 index 64da317d27..0000000000 --- a/libavcodec/imgconvert.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Misc image conversion routines - * most functionality is exported to the public API, see avcodec.h - * - * Copyright (c) 2008 Vitor Sessak - * - * 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 - */ - -#ifndef AVCODEC_IMGCONVERT_H -#define AVCODEC_IMGCONVERT_H - -#include <stdint.h> -#include "avcodec.h" - -#if LIBAVCODEC_VERSION_MAJOR < 53 -attribute_deprecated -int ff_fill_linesize(AVPicture *picture, enum PixelFormat pix_fmt, int width); - -attribute_deprecated -int ff_fill_pointer(AVPicture *picture, uint8_t *ptr, enum PixelFormat pix_fmt, int height); - -attribute_deprecated -int ff_get_plane_bytewidth(enum PixelFormat pix_fmt, int width, int plane); - -attribute_deprecated -int ff_set_systematic_pal(uint32_t pal[256], enum PixelFormat pix_fmt); -#endif - -#endif /* AVCODEC_IMGCONVERT_H */ diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c index 75b578359e..8eb0fae48d 100644 --- a/libavcodec/rawdec.c +++ b/libavcodec/rawdec.c @@ -25,7 +25,6 @@ */ #include "avcodec.h" -#include "imgconvert.h" #include "raw.h" #include "libavutil/avassert.h" #include "libavutil/common.h" diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 00434c9114..53b8b2bf1f 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -38,7 +38,6 @@ #include "avcodec.h" #include "dsputil.h" #include "libavutil/opt.h" -#include "imgconvert.h" #include "thread.h" #include "frame_thread_encoder.h" #include "audioconvert.h" @@ -1848,6 +1847,7 @@ static enum AVCodecID remap_deprecated_codec_id(enum AVCodecID id) //This is for future deprecatec codec ids, its empty since //last major bump but will fill up again over time, please don't remove it // case AV_CODEC_ID_UTVIDEO_DEPRECATED: return AV_CODEC_ID_UTVIDEO; + case AV_CODEC_ID_OPUS_DEPRECATED: return AV_CODEC_ID_OPUS; default : return id; } } diff --git a/libavcodec/version.h b/libavcodec/version.h index d96086a4a6..4d4bc5fd0f 100644 --- a/libavcodec/version.h +++ b/libavcodec/version.h @@ -27,7 +27,7 @@ */ #define LIBAVCODEC_VERSION_MAJOR 54 -#define LIBAVCODEC_VERSION_MINOR 59 +#define LIBAVCODEC_VERSION_MINOR 60 #define LIBAVCODEC_VERSION_MICRO 100 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ |