Browse code

license/copyright change

Originally committed as revision 599 to svn://svn.ffmpeg.org/ffmpeg/trunk

Fabrice Bellard authored on 2002/05/26 07:45:33
Showing 42 changed files
1 1
Binary files a/libavcodec/Makefile and b/libavcodec/Makefile differ
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * A52 decoder
3
- * Copyright (c) 2001 Gerard Lantau.
3
+ * Copyright (c) 2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 #include "avcodec.h"
20 20
 #include "liba52/a52.h"
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * AC3 decoder
3
- * Copyright (c) 2001 Gerard Lantau.
3
+ * Copyright (c) 2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 #include "avcodec.h"
20 20
 #include "libac3/ac3.h"
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * The simplest AC3 encoder
3
- * Copyright (c) 2000 Gerard Lantau.
3
+ * Copyright (c) 2000 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 //#define DEBUG
20 20
 //#define DEBUG_BITALLOC
... ...
@@ -2,19 +2,19 @@
2 2
  * Alpha optimized DSP utils
3 3
  * Copyright (c) 2002 Falk Hueffner <falk@debian.org>
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 
20 20
 #ifndef LIBAVCODEC_ALPHA_ASM_H
... ...
@@ -2,19 +2,19 @@
2 2
  * Alpha optimized DSP utils
3 3
  * Copyright (c) 2002 Falk Hueffner <falk@debian.org>
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 
20 20
 #include "asm.h"
... ...
@@ -2,19 +2,19 @@
2 2
  * Alpha optimized DSP utils
3 3
  * Copyright (c) 2002 Falk Hueffner <falk@debian.org>
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 
20 20
 #include "asm.h"
... ...
@@ -2,19 +2,19 @@
2 2
  * Alpha optimized DSP utils
3 3
  * Copyright (c) 2002 Falk Hueffner <falk@debian.org>
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 
20 20
 /* This file is intended to be #included with proper definitions of
... ...
@@ -2,19 +2,19 @@
2 2
  * ARMv4L optimized DSP utils
3 3
  * Copyright (c) 2001 Lionel Ulmer.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 
20 20
 #include "../dsputil.h"
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * Common bit i/o utils
3
- * Copyright (c) 2000, 2001 Gerard Lantau.
3
+ * Copyright (c) 2000, 2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  *
19 19
  * alternative bitstream reader & writer by Michael Niedermayer <michaelni@gmx.at>
20 20
  */
... ...
@@ -1,4 +1,4 @@
1
-/* DCT test. (c) 2001 Gerard Lantau. 
1
+/* DCT test. (c) 2001 Fabrice Bellard. 
2 2
    Started from sample code by Juan J. Sierralta P.
3 3
 */
4 4
 #include <stdlib.h>
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * DSP utils
3
- * Copyright (c) 2000, 2001 Gerard Lantau.
3
+ * Copyright (c) 2000, 2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  *
19 19
  * gmc & q-pel & 32/64 bit based MC by Michael Niedermayer <michaelni@gmx.at>
20 20
  */
... ...
@@ -1,3 +1,21 @@
1
+/*
2
+ * DSP utils
3
+ * Copyright (c) 2000, 2001, 2002 Fabrice Bellard.
4
+ *
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9
+ *
10
+ * This library is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
+ */
1 19
 #ifndef DSPUTIL_H
2 20
 #define DSPUTIL_H
3 21
 
... ...
@@ -1,22 +1,22 @@
1 1
 /*
2 2
  * H263/MPEG4 backend for ffmpeg encoder and decoder
3
- * Copyright (c) 2000,2001 Gerard Lantau.
3
+ * Copyright (c) 2000,2001 Fabrice Bellard.
4 4
  * H263+ support.
5 5
  * Copyright (c) 2001 Juan J. Sierralta P.
6 6
  *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
7
+ * This library 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 of the License, or (at your option) any later version.
11 11
  *
12
- * This program is distributed in the hope that it will be useful,
12
+ * This library is distributed in the hope that it will be useful,
13 13
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
- * GNU General Public License for more details.
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Lesser General Public License for more details.
16 16
  *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, write to the Free Software
19
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
+ * You should have received a copy of the GNU Lesser General Public
18
+ * License along with this library; if not, write to the Free Software
19
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20 20
  *
21 21
  * ac prediction encoding & b-frame support by Michael Niedermayer <michaelni@gmx.at>
22 22
  */
... ...
@@ -1124,7 +1124,7 @@ void ff_set_mpeg4_time(MpegEncContext * s, int picture_number){
1124 1124
         s->time_increment_bits = av_log2(s->time_increment_resolution - 1) + 1;
1125 1125
     }
1126 1126
 
1127
-    s->time= picture_number*(int64_t)FRAME_RATE_BASE*s->time_increment_resolution/s->frame_rate;
1127
+    s->time= picture_number*(INT64)FRAME_RATE_BASE*s->time_increment_resolution/s->frame_rate;
1128 1128
     time_div= s->time/s->time_increment_resolution;
1129 1129
     time_mod= s->time%s->time_increment_resolution;
1130 1130
 
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * H263 decoder
3
- * Copyright (c) 2001 Gerard Lantau.
3
+ * Copyright (c) 2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 #include "avcodec.h"
20 20
 #include "dsputil.h"
... ...
@@ -1,5 +1,5 @@
1 1
 /* Cpu detection code, extracted from mmx.h ((c)1997-99 by H. Dietz
2
-   and R. Fisher). Converted to C and improved by Gerard Lantau */
2
+   and R. Fisher). Converted to C and improved by Fabrice Bellard */
3 3
 
4 4
 #include <stdlib.h>
5 5
 #include "../dsputil.h"
... ...
@@ -1,27 +1,26 @@
1 1
 /*
2 2
  * MMX optimized DSP utils
3
- * Copyright (c) 2000, 2001 Gerard Lantau.
3
+ * Copyright (c) 2000, 2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  *
19 19
  * MMX optimization by Nick Kurshev <nickols_k@mail.ru>
20 20
  */
21 21
 
22 22
 #include "../dsputil.h"
23 23
 #include "../simple_idct.h"
24
-#include "../mangle.h"
25 24
 
26 25
 int mm_flags; /* multimedia extension flags */
27 26
 
... ...
@@ -1,21 +1,21 @@
1 1
 /*
2 2
  * DSP utils : average functions are compiled twice for 3dnow/mmx2
3
- * Copyright (c) 2000, 2001 Gerard Lantau.
3
+ * Copyright (c) 2000, 2001 Fabrice Bellard.
4 4
  * Copyright (c) 2002 Michael Niedermayer
5 5
  *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10 10
  *
11
- * This program is distributed in the hope that it will be useful,
11
+ * This library is distributed in the hope that it will be useful,
12 12
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
- * GNU General Public License for more details.
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
+ * Lesser General Public License for more details.
15 15
  *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 19
  *
20 20
  * MMX optimization by Nick Kurshev <nickols_k@mail.ru>
21 21
  * mostly rewritten by Michael Niedermayer <michaelni@gmx.at>
... ...
@@ -1,6 +1,6 @@
1 1
 /*
2 2
  * MMX optimized forward DCT
3
- * The gcc porting is Copyright (c) 2001 Gerard Lantau.
3
+ * The gcc porting is Copyright (c) 2001 Fabrice Bellard.
4 4
  *
5 5
  * from  fdctam32.c - AP922 MMX(3D-Now) forward-DCT
6 6
  * 
... ...
@@ -1,25 +1,24 @@
1 1
 /*
2 2
  * MMX optimized motion estimation
3
- * Copyright (c) 2001 Gerard Lantau.
3
+ * Copyright (c) 2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  *
19 19
  * mostly by Michael Niedermayer <michaelni@gmx.at>
20 20
  */
21 21
 #include "../dsputil.h"
22
-#include "../mangle.h"
23 22
 
24 23
 static const __attribute__ ((aligned(8))) UINT64 round_tab[3]={
25 24
 0x0000000000000000,
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * The simplest mpeg encoder (well, it was the simplest!)
3
- * Copyright (c) 2000,2001 Gerard Lantau.
3
+ * Copyright (c) 2000,2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  *
19 19
  * Optimized for ia32 cpus by Nick Kurshev <nickols_k@mail.ru>
20 20
  * h263, mpeg1, mpeg2 dequantizer & draw_edges by Michael Niedermayer <michaelni@gmx.at>
... ...
@@ -23,7 +23,6 @@
23 23
 #include "../dsputil.h"
24 24
 #include "../mpegvideo.h"
25 25
 #include "../avcodec.h"
26
-#include "../mangle.h"
27 26
 
28 27
 extern UINT8 zigzag_end[64];
29 28
 
... ...
@@ -1,21 +1,22 @@
1 1
 /*
2
-    Copyright (C) 2002 Michael Niedermayer <michaelni@gmx.at>
3
-
4
-    This program is free software; you can redistribute it and/or modify
5
-    it under the terms of the GNU General Public License as published by
6
-    the Free Software Foundation; either version 2 of the License, or
7
-    (at your option) any later version.
8
-
9
-    This program is distributed in the hope that it will be useful,
10
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
-    GNU General Public License for more details.
13
-
14
-    You should have received a copy of the GNU General Public License
15
-    along with this program; if not, write to the Free Software
16
-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
-*/
18
-
2
+ * MPEG video MMX templates
3
+ *
4
+ * Copyright (c) 2002 Michael Niedermayer <michaelni@gmx.at>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
+ */
19 20
 #undef SPREADW
20 21
 #undef PMAXW
21 22
 #ifdef HAVE_MMX2
... ...
@@ -1,24 +1,24 @@
1 1
 /*
2
-    Copyright (C) 2001-2002 Michael Niedermayer (michaelni@gmx.at)
3
-
4
-    This program is free software; you can redistribute it and/or modify
5
-    it under the terms of the GNU General Public License as published by
6
-    the Free Software Foundation; either version 2 of the License, or
7
-    (at your option) any later version.
8
-
9
-    This program is distributed in the hope that it will be useful,
10
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
-    GNU General Public License for more details.
13
-
14
-    You should have received a copy of the GNU General Public License
15
-    along with this program; if not, write to the Free Software
16
-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
-*/
18
-
19
-#include <inttypes.h>
2
+ * Simple IDCT MMX
3
+ *
4
+ * Copyright (c) 2001, 2002 Michael Niedermayer <michaelni@gmx.at>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
+ */
20 20
 #include "../dsputil.h"
21
-#include "../mangle.h"
21
+
22 22
 /*
23 23
 23170.475006
24 24
 22725.260826
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * Misc image convertion routines
3
- * Copyright (c) 2001 Gerard Lantau.
3
+ * Copyright (c) 2001, 2002 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 #include "avcodec.h"
20 20
 #include "dsputil.h"
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * High quality image resampling with polyphase filters 
3
- * Copyright (c) 2001 Gerard Lantau.
3
+ * Copyright (c) 2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 #include "avcodec.h"
20 20
 #include "dsputil.h"
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * Sun mediaLib optimized DSP utils
3
- * Copyright (c) 2001 Gerard Lantau.
3
+ * Copyright (c) 2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 
20 20
 #include "../dsputil.h"
... ...
@@ -1,21 +1,21 @@
1 1
 /*
2 2
  * Motion estimation 
3
- * Copyright (c) 2000,2001 Gerard Lantau.
3
+ * Copyright (c) 2000,2001 Fabrice Bellard.
4 4
  * 
5 5
  *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10 10
  *
11
- * This program is distributed in the hope that it will be useful,
11
+ * This library is distributed in the hope that it will be useful,
12 12
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
- * GNU General Public License for more details.
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
+ * Lesser General Public License for more details.
15 15
  *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 19
  *
20 20
  * new Motion Estimation (X1/EPZS) by Michael Niedermayer <michaelni@gmx.at>
21 21
  */
... ...
@@ -1,4 +1,4 @@
1
-/* motion test. (c) 2001 Gerard Lantau. */
1
+/* motion test. (c) 2001 Fabrice Bellard. */
2 2
 #include <stdlib.h>
3 3
 #include <stdio.h>
4 4
 #include <string.h>
... ...
@@ -2,19 +2,19 @@
2 2
  * Interface to libmp3lame for mp3 encoding
3 3
  * Copyright (c) 2002 Lennert Buytenhek <buytenh@gnu.org>
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 
20 20
 #include "avcodec.h"
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * MPEG1 encoder / MPEG2 decoder
3
- * Copyright (c) 2000,2001 Gerard Lantau.
3
+ * Copyright (c) 2000,2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 //#define DEBUG
20 20
 #include "avcodec.h"
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * The simplest mpeg audio layer 2 encoder
3
- * Copyright (c) 2000, 2001 Gerard Lantau.
3
+ * Copyright (c) 2000, 2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 #include "avcodec.h"
20 20
 #include "mpegaudio.h"
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * MPEG Audio decoder
3
- * Copyright (c) 2001, 2002 Gerard Lantau.
3
+ * Copyright (c) 2001, 2002 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 //#define DEBUG
20 20
 #include "avcodec.h"
... ...
@@ -2,7 +2,7 @@
2 2
  * mpeg audio layer 2 tables. Most of them come from the mpeg audio
3 3
  * specification.
4 4
  * 
5
- * Copyright (c) 2000, 2001 Gerard Lantau.
5
+ * Copyright (c) 2000, 2001 Fabrice Bellard.
6 6
  *
7 7
  * The licence of this code is contained in file LICENCE found in the
8 8
  * same archive 
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * The simplest mpeg encoder (well, it was the simplest!)
3
- * Copyright (c) 2000,2001 Gerard Lantau.
3
+ * Copyright (c) 2000,2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  *
19 19
  * 4MV & hq & b-frame encoding stuff by Michael Niedermayer <michaelni@gmx.at>
20 20
  */
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * Generic DCT based hybrid video encoder
3
- * Copyright (c) 2000,2001 Gerard Lantau.
3
+ * Copyright (c) 2000, 2001, 2002 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 
20 20
 #define FRAME_SKIPED 100 // return value for header parsers if frame is not coded
... ...
@@ -47,7 +47,7 @@ typedef struct RateControlEntry{
47 47
     int i_tex_bits;
48 48
     int p_tex_bits;
49 49
     int misc_bits;
50
-    uint64_t expected_bits;
50
+    UINT64 expected_bits;
51 51
     int new_pict_type;
52 52
     float new_qscale;
53 53
 }RateControlEntry;
... ...
@@ -278,10 +278,10 @@ typedef struct MpegEncContext {
278 278
     int time_increment_bits;        /* number of bits to represent the fractional part of time */
279 279
     int last_time_base;
280 280
     int time_base;                  /* time in seconds of last I,P,S Frame */
281
-    int64_t time;                   /* time of current frame */ 
282
-    int64_t last_non_b_time;
283
-    uint16_t pp_time;               /* time distance between the last 2 p,s,i frames */
284
-    uint16_t bp_time;               /* time distance between the last b and p,s,i frame */
281
+    INT64 time;                   /* time of current frame */ 
282
+    INT64 last_non_b_time;
283
+    UINT16 pp_time;               /* time distance between the last 2 p,s,i frames */
284
+    UINT16 bp_time;               /* time distance between the last b and p,s,i frame */
285 285
     int shape;
286 286
     int vol_sprite_usage;
287 287
     int sprite_width;
... ...
@@ -314,7 +314,7 @@ typedef struct MpegEncContext {
314 314
     int divx_version;
315 315
     int divx_build;
316 316
 #define BITSTREAM_BUFFER_SIZE 1024*256
317
-    uint8_t *bitstream_buffer; //Divx 5.01 puts several frames in a single one, this is used to reorder them
317
+    UINT8 *bitstream_buffer; //Divx 5.01 puts several frames in a single one, this is used to reorder them
318 318
     int bitstream_buffer_size;
319 319
     
320 320
     /* RV10 specific */
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * MSMPEG4 backend for ffmpeg encoder and decoder
3
- * Copyright (c) 2001 Gerard Lantau.
3
+ * Copyright (c) 2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  *
19 19
  * msmpeg4v2 stuff by Michael Niedermayer <michaelni@gmx.at>
20 20
  */
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * PCM codecs
3
- * Copyright (c) 2001 Gerard Lantau.
3
+ * Copyright (c) 2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 #include "avcodec.h"
20 20
 
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * Sample rate convertion for both audio and video
3
- * Copyright (c) 2000 Gerard Lantau.
3
+ * Copyright (c) 2000 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 #include "avcodec.h"
20 20
 
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * RV10 codec
3
- * Copyright (c) 2000,2001 Gerard Lantau.
3
+ * Copyright (c) 2000,2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 #include "avcodec.h"
20 20
 #include "dsputil.h"
... ...
@@ -1,25 +1,26 @@
1 1
 /*
2
-    Copyright (C) 2001 Michael Niedermayer (michaelni@gmx.at)
3
-
4
-    This program is free software; you can redistribute it and/or modify
5
-    it under the terms of the GNU General Public License as published by
6
-    the Free Software Foundation; either version 2 of the License, or
7
-    (at your option) any later version.
8
-
9
-    This program is distributed in the hope that it will be useful,
10
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
-    GNU General Public License for more details.
13
-
14
-    You should have received a copy of the GNU General Public License
15
-    along with this program; if not, write to the Free Software
16
-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
-*/
18
-
2
+ * Simple IDCT
3
+ *
4
+ * Copyright (c) 2001 Michael Niedermayer <michaelni@gmx.at>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
+ */
19 20
 /*
20
-  based upon some outcommented c code from mpeg2dec (idct_mmx.c written by Aaron Holtzman <aholtzma@ess.engr.uvic.ca>)
21
-*/
22
-
21
+  based upon some outcommented c code from mpeg2dec (idct_mmx.c
22
+  written by Aaron Holtzman <aholtzma@ess.engr.uvic.ca>) 
23
+ */
23 24
 #include "avcodec.h"
24 25
 
25 26
 #include "simple_idct.h"
... ...
@@ -1,20 +1,22 @@
1 1
 /*
2
-    Copyright (C) 2001 Michael Niedermayer (michaelni@gmx.at)
3
-
4
-    This program is free software; you can redistribute it and/or modify
5
-    it under the terms of the GNU General Public License as published by
6
-    the Free Software Foundation; either version 2 of the License, or
7
-    (at your option) any later version.
8
-
9
-    This program is distributed in the hope that it will be useful,
10
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
-    GNU General Public License for more details.
13
-
14
-    You should have received a copy of the GNU General Public License
15
-    along with this program; if not, write to the Free Software
16
-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
-*/
2
+ * Simple IDCT
3
+ *
4
+ * Copyright (c) 2001 Michael Niedermayer <michaelni@gmx.at>
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
+ */
18 20
 
19 21
 void simple_idct(short *block);
20 22
 void simple_idct_mmx(short *block);
... ...
@@ -1,20 +1,20 @@
1 1
 /*
2 2
  * utils for libavcodec
3
- * Copyright (c) 2001 Gerard Lantau.
3
+ * Copyright (c) 2001 Fabrice Bellard.
4 4
  *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2 of the License, or (at your option) any later version.
9 9
  *
10
- * This program is distributed in the hope that it will be useful,
10
+ * This library is distributed in the hope that it will be useful,
11 11
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14 14
  *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
  */
19 19
 #include "avcodec.h"
20 20
 #include "dsputil.h"