History

Merge remote-tracking branch 'qatar/master'

This early morning merge should fix --disable-yasm * qatar/master: Clean up #includes in cmdutils.h. g729: Merge g729.h into g729dec.c. 10l: wrap float_interleave functions in HAVE_YASM. Conflicts: libavcodec/g729.h

Michael Niedermayer committed 15 years ago

Commit 3c7650a2 parents 75a37b5 ea91e774 files · +15 −36Browse files

Unified · Split

4 files
  1. cmdutils.h +3 −6
  2. libavcodec/g729.h +0 −29
  3. libavcodec/g729dec.c +6 −1
  4. libavcodec/x86/fmtconvert_mmx.c +6 −0
cmdutils.h+3−6
@@ -22,8 +22,10 @@ · 21 unmodified lines
2222 #ifndef FFMPEG_CMDUTILS_H
2323 #define FFMPEG_CMDUTILS_H
2424
25−#include <inttypes.h>
25+#include <stdint.h>
26+
2627 #include "libavcodec/avcodec.h"
28+#include "libavfilter/avfilter.h"
2729 #include "libavformat/avformat.h"
2830 #include "libswscale/swscale.h"
2931
@@ -255,9 +257,6 @@ int read_file(const char *filename, char **bufptr, size_t *size); · 225 unmodified lines
255257 FILE *get_preset_file(char *filename, size_t filename_size,
256258 const char *preset_name, int is_path, const char *codec_name);
257259
258−#if CONFIG_AVFILTER
259−#include "libavfilter/avfilter.h"
260−
261260 typedef struct {
262261 enum PixelFormat pix_fmt;
263262 } FFSinkContext;
@@ -273,6 +272,4 @@ extern AVFilter ffsink; · 9 unmodified lines
273272 int get_filtered_video_frame(AVFilterContext *sink, AVFrame *frame,
274273 AVFilterBufferRef **picref, AVRational *pts_tb);
275274
276−#endif /* CONFIG_AVFILTER */
277−
278275 #endif /* FFMPEG_CMDUTILS_H */
libavcodec/g729.h+0−29
@@ -1,29 +0,0 @@
1−/*
2− * G.729 decoder
3− * Copyright (c) 2008 Vladimir Voroshilov
4− *
5− * This file is part of FFmpeg.
6− *
7− * FFmpeg is free software; you can redistribute it and/or
8− * modify it under the terms of the GNU Lesser General Public
9− * License as published by the Free Software Foundation; either
10− * version 2.1 of the License, or (at your option) any later version.
11− *
12− * FFmpeg is distributed in the hope that it will be useful,
13− * but WITHOUT ANY WARRANTY; without even the implied warranty of
14− * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15− * Lesser General Public License for more details.
16− *
17− * You should have received a copy of the GNU Lesser General Public
18− * License along with FFmpeg; if not, write to the Free Software
19− * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20− */
21−#ifndef AVCODEC_G729_H
22−#define AVCODEC_G729_H
23−
24−/**
25− * subframe size
26− */
27−#define SUBFRAME_SIZE 40
28−
29−#endif // AVCODEC_G729_H
libavcodec/g729dec.c+6−1
@@ -30,7 +30,6 @@ · 29 unmodified lines
3030 #include "libavutil/avutil.h"
3131 #include "get_bits.h"
3232
33−#include "g729.h"
3433 #include "lsp.h"
3534 #include "celp_math.h"
3635 #include "acelp_filters.h"
@@ -71,6 +70,12 @@ · 34 unmodified lines
7170 */
7271 #define SHARP_MAX 13017
7372
73+/**
74+ * subframe size
75+ */
76+#define SUBFRAME_SIZE 40
77+
78+
7479 typedef struct {
7580 uint8_t ac_index_bits[2]; ///< adaptive codebook index for second subframe (size in bits)
7681 uint8_t parity_bit; ///< parity bit for pitch delay
libavcodec/x86/fmtconvert_mmx.c+6−0
@@ -235,6 +235,7 @@ static void float_to_int16_interleave_3dn2(int16_t *dst, const float **src, long · 234 unmodified lines
235235 float_to_int16_interleave_3dnow(dst, src, len, channels);
236236 }
237237
238+#if HAVE_YASM
238239 void ff_float_interleave2_mmx(float *dst, const float **src, unsigned int len);
239240 void ff_float_interleave2_sse(float *dst, const float **src, unsigned int len);
240241
@@ -262,13 +263,16 @@ static void float_interleave_sse(float *dst, const float **src, · 21 unmodified lines
262263 else
263264 ff_float_interleave_c(dst, src, len, channels);
264265 }
266+#endif
265267
266268 void ff_fmt_convert_init_x86(FmtConvertContext *c, AVCodecContext *avctx)
267269 {
268270 int mm_flags = av_get_cpu_flags();
269271
270272 if (mm_flags & AV_CPU_FLAG_MMX) {
273+#if HAVE_YASM
271274 c->float_interleave = float_interleave_mmx;
275+#endif
272276
273277 if(mm_flags & AV_CPU_FLAG_3DNOW){
274278 if(!(avctx->flags & CODEC_FLAG_BITEXACT)){
@@ -285,7 +289,9 @@ void ff_fmt_convert_init_x86(FmtConvertContext *c, AVCodecContext *avctx) · 10 unmodified lines
285289 c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_sse;
286290 c->float_to_int16 = float_to_int16_sse;
287291 c->float_to_int16_interleave = float_to_int16_interleave_sse;
292+#if HAVE_YASM
288293 c->float_interleave = float_interleave_sse;
294+#endif
289295 }
290296 if(mm_flags & AV_CPU_FLAG_SSE2){
291297 c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_sse2;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t