| OLD | NEW |
| 1 /* | 1 /* |
| 2 * copyright (c) 2006 Oded Shimon <ods15@ods15.dyndns.org> | 2 * copyright (c) 2006 Oded Shimon <ods15@ods15.dyndns.org> |
| 3 * | 3 * |
| 4 * This file is part of FFmpeg. | 4 * This file is part of FFmpeg. |
| 5 * | 5 * |
| 6 * FFmpeg is free software; you can redistribute it and/or | 6 * FFmpeg is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2.1 of the License, or (at your option) any later version. | 9 * version 2.1 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| 11 * FFmpeg is distributed in the hope that it will be useful, | 11 * FFmpeg is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Lesser General Public License for more details. | 14 * Lesser General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Lesser General Public | 16 * You should have received a copy of the GNU Lesser General Public |
| 17 * License along with FFmpeg; if not, write to the Free Software | 17 * License along with FFmpeg; if not, write to the Free Software |
| 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * @file libavcodec/vorbis_enc.c | 22 * @file libavcodec/vorbis_enc.c |
| 23 * Native Vorbis encoder. | 23 * Native Vorbis encoder. |
| 24 * @author Oded Shimon <ods15@ods15.dyndns.org> | 24 * @author Oded Shimon <ods15@ods15.dyndns.org> |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include <float.h> | 27 #include <float.h> |
| 28 #include "avcodec.h" | 28 #include "avcodec.h" |
| 29 #include "dsputil.h" | 29 #include "dsputil.h" |
| 30 #include "fft.h" |
| 30 #include "vorbis.h" | 31 #include "vorbis.h" |
| 31 #include "vorbis_enc_data.h" | 32 #include "vorbis_enc_data.h" |
| 32 | 33 |
| 33 #define BITSTREAM_WRITER_LE | 34 #define BITSTREAM_WRITER_LE |
| 34 #include "put_bits.h" | 35 #include "put_bits.h" |
| 35 | 36 |
| 36 #undef NDEBUG | 37 #undef NDEBUG |
| 37 #include <assert.h> | 38 #include <assert.h> |
| 38 | 39 |
| 39 typedef struct { | 40 typedef struct { |
| (...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 CODEC_TYPE_AUDIO, | 1096 CODEC_TYPE_AUDIO, |
| 1096 CODEC_ID_VORBIS, | 1097 CODEC_ID_VORBIS, |
| 1097 sizeof(vorbis_enc_context), | 1098 sizeof(vorbis_enc_context), |
| 1098 vorbis_encode_init, | 1099 vorbis_encode_init, |
| 1099 vorbis_encode_frame, | 1100 vorbis_encode_frame, |
| 1100 vorbis_encode_close, | 1101 vorbis_encode_close, |
| 1101 .capabilities= CODEC_CAP_DELAY, | 1102 .capabilities= CODEC_CAP_DELAY, |
| 1102 .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, | 1103 .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, |
| 1103 .long_name = NULL_IF_CONFIG_SMALL("Vorbis"), | 1104 .long_name = NULL_IF_CONFIG_SMALL("Vorbis"), |
| 1104 }; | 1105 }; |
| OLD | NEW |