Mercurial > mplayer.hg
annotate liba52/resample.c @ 8514:a1ff87c254ff
I have rewritten the gif89a vo in order to solve some problems I had
with it. These are:
1) current code is messy
2) poor comments, if any
3) inaccurate frame dropping and delay code
4) output filename hardcoded
5) output framerate as integer
You may specify the output filename and framerate like so:
-vo gif89a:4.33 4.33 fps output
-vo gif89a:some.gif output to some.gif
-vo gif89a:5.02:new.gif output to new.gif at 5.02 fps
The filename defaults to out.gif, and the framerate defaults to 5 fps.
by Joey Parrish <joey@nicewarrior.org>
author | arpi |
---|---|
date | Sat, 21 Dec 2002 21:07:16 +0000 |
parents | 2dbd637ffe05 |
children | 459ba3f14302 |
rev | line source |
---|---|
3412
21d65a4ae3c9
resample.c added - float->int conversion and channel ordering
arpi
parents:
diff
changeset
|
1 |
21d65a4ae3c9
resample.c added - float->int conversion and channel ordering
arpi
parents:
diff
changeset
|
2 // a52_resample_init should find the requested converter (from type flags -> |
21d65a4ae3c9
resample.c added - float->int conversion and channel ordering
arpi
parents:
diff
changeset
|
3 // given number of channels) and set up some function pointers... |
21d65a4ae3c9
resample.c added - float->int conversion and channel ordering
arpi
parents:
diff
changeset
|
4 |
21d65a4ae3c9
resample.c added - float->int conversion and channel ordering
arpi
parents:
diff
changeset
|
5 // a52_resample() should do the conversion. |
21d65a4ae3c9
resample.c added - float->int conversion and channel ordering
arpi
parents:
diff
changeset
|
6 |
21d65a4ae3c9
resample.c added - float->int conversion and channel ordering
arpi
parents:
diff
changeset
|
7 #include <inttypes.h> |
3626 | 8 #include <stdio.h> |
3412
21d65a4ae3c9
resample.c added - float->int conversion and channel ordering
arpi
parents:
diff
changeset
|
9 #include "a52.h" |
3908 | 10 #include "mm_accel.h" |
3567 | 11 #include "../config.h" |
4247
2dbd637ffe05
mangle for win32 in liba52 (includes dummy mangle.h pointing to the one in main)
atmos4
parents:
3909
diff
changeset
|
12 #include "mangle.h" |
3567 | 13 |
3626 | 14 int (* a52_resample) (float * _f, int16_t * s16)=NULL; |
15 | |
3909 | 16 #include "resample_c.c" |
17 | |
3626 | 18 #ifdef ARCH_X86 |
3909 | 19 #include "resample_mmx.c" |
3567 | 20 #endif |
3412
21d65a4ae3c9
resample.c added - float->int conversion and channel ordering
arpi
parents:
diff
changeset
|
21 |
3909 | 22 void* a52_resample_init(uint32_t mm_accel,int flags,int chans){ |
23 void* tmp; | |
3626 | 24 |
25 #ifdef ARCH_X86 | |
3909 | 26 if(mm_accel&MM_ACCEL_X86_MMX){ |
27 tmp=a52_resample_MMX(flags,chans); | |
28 if(tmp){ | |
29 if(a52_resample==NULL) fprintf(stderr, "Using MMX optimized resampler\n"); | |
30 a52_resample=tmp; | |
31 return tmp; | |
32 } | |
33 } | |
34 #endif | |
3626 | 35 |
3909 | 36 tmp=a52_resample_C(flags,chans); |
37 if(tmp){ | |
38 if(a52_resample==NULL) fprintf(stderr, "No accelerated resampler found\n"); | |
39 a52_resample=tmp; | |
40 return tmp; | |
3626 | 41 } |
42 | |
3909 | 43 fprintf(stderr, "Unimplemented resampler for mode 0x%X -> %d channels conversion - Contact MPlayer developers!\n", flags, chans); |
44 return NULL; | |
3626 | 45 } |