Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
ff4ec49e
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ff4ec49e
编写于
5月 25, 2002
作者:
F
Fabrice Bellard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
license/copyright change
Originally committed as revision 599 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
2ef0f2b2
变更
42
隐藏空白更改
内联
并排
Showing
42 changed file
with
441 addition
and
422 deletion
+441
-422
libavcodec/Makefile
libavcodec/Makefile
+0
-0
libavcodec/a52dec.c
libavcodec/a52dec.c
+11
-11
libavcodec/ac3dec.c
libavcodec/ac3dec.c
+11
-11
libavcodec/ac3enc.c
libavcodec/ac3enc.c
+11
-11
libavcodec/alpha/asm.h
libavcodec/alpha/asm.h
+10
-10
libavcodec/alpha/dsputil_alpha.c
libavcodec/alpha/dsputil_alpha.c
+10
-10
libavcodec/alpha/mpegvideo_alpha.c
libavcodec/alpha/mpegvideo_alpha.c
+10
-10
libavcodec/alpha/pixops.h
libavcodec/alpha/pixops.h
+10
-10
libavcodec/armv4l/dsputil_arm.c
libavcodec/armv4l/dsputil_arm.c
+10
-10
libavcodec/common.c
libavcodec/common.c
+11
-11
libavcodec/dct-test.c
libavcodec/dct-test.c
+1
-1
libavcodec/dsputil.c
libavcodec/dsputil.c
+11
-11
libavcodec/dsputil.h
libavcodec/dsputil.h
+18
-0
libavcodec/h263.c
libavcodec/h263.c
+12
-12
libavcodec/h263dec.c
libavcodec/h263dec.c
+11
-11
libavcodec/i386/cputest.c
libavcodec/i386/cputest.c
+1
-1
libavcodec/i386/dsputil_mmx.c
libavcodec/i386/dsputil_mmx.c
+11
-12
libavcodec/i386/dsputil_mmx_avg.h
libavcodec/i386/dsputil_mmx_avg.h
+11
-11
libavcodec/i386/fdct_mmx.c
libavcodec/i386/fdct_mmx.c
+1
-1
libavcodec/i386/motion_est_mmx.c
libavcodec/i386/motion_est_mmx.c
+11
-12
libavcodec/i386/mpegvideo_mmx.c
libavcodec/i386/mpegvideo_mmx.c
+11
-12
libavcodec/i386/mpegvideo_mmx_template.c
libavcodec/i386/mpegvideo_mmx_template.c
+18
-17
libavcodec/i386/simple_idct_mmx.c
libavcodec/i386/simple_idct_mmx.c
+19
-19
libavcodec/imgconvert.c
libavcodec/imgconvert.c
+11
-11
libavcodec/imgresample.c
libavcodec/imgresample.c
+11
-11
libavcodec/mlib/dsputil_mlib.c
libavcodec/mlib/dsputil_mlib.c
+11
-11
libavcodec/motion_est.c
libavcodec/motion_est.c
+11
-11
libavcodec/motion_test.c
libavcodec/motion_test.c
+1
-1
libavcodec/mp3lameaudio.c
libavcodec/mp3lameaudio.c
+10
-10
libavcodec/mpeg12.c
libavcodec/mpeg12.c
+11
-11
libavcodec/mpegaudio.c
libavcodec/mpegaudio.c
+11
-11
libavcodec/mpegaudiodec.c
libavcodec/mpegaudiodec.c
+11
-11
libavcodec/mpegaudiotab.h
libavcodec/mpegaudiotab.h
+1
-1
libavcodec/mpegvideo.c
libavcodec/mpegvideo.c
+11
-11
libavcodec/mpegvideo.h
libavcodec/mpegvideo.h
+17
-17
libavcodec/msmpeg4.c
libavcodec/msmpeg4.c
+11
-11
libavcodec/pcm.c
libavcodec/pcm.c
+11
-11
libavcodec/resample.c
libavcodec/resample.c
+11
-11
libavcodec/rv10.c
libavcodec/rv10.c
+11
-11
libavcodec/simple_idct.c
libavcodec/simple_idct.c
+21
-20
libavcodec/simple_idct.h
libavcodec/simple_idct.h
+18
-16
libavcodec/utils.c
libavcodec/utils.c
+11
-11
未找到文件。
libavcodec/Makefile
浏览文件 @
ff4ec49e
无法预览此类型文件
libavcodec/a52dec.c
浏览文件 @
ff4ec49e
/*
* A52 decoder
* Copyright (c) 2001
Gerard Lantau
.
* Copyright (c) 2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "avcodec.h"
#include "liba52/a52.h"
...
...
libavcodec/ac3dec.c
浏览文件 @
ff4ec49e
/*
* AC3 decoder
* Copyright (c) 2001
Gerard Lantau
.
* Copyright (c) 2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "avcodec.h"
#include "libac3/ac3.h"
...
...
libavcodec/ac3enc.c
浏览文件 @
ff4ec49e
/*
* The simplest AC3 encoder
* Copyright (c) 2000
Gerard Lantau
.
* Copyright (c) 2000
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
//#define DEBUG
//#define DEBUG_BITALLOC
...
...
libavcodec/alpha/asm.h
浏览文件 @
ff4ec49e
...
...
@@ -2,19 +2,19 @@
* Alpha optimized DSP utils
* Copyright (c) 2002 Falk Hueffner <falk@debian.org>
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef LIBAVCODEC_ALPHA_ASM_H
...
...
libavcodec/alpha/dsputil_alpha.c
浏览文件 @
ff4ec49e
...
...
@@ -2,19 +2,19 @@
* Alpha optimized DSP utils
* Copyright (c) 2002 Falk Hueffner <falk@debian.org>
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "asm.h"
...
...
libavcodec/alpha/mpegvideo_alpha.c
浏览文件 @
ff4ec49e
...
...
@@ -2,19 +2,19 @@
* Alpha optimized DSP utils
* Copyright (c) 2002 Falk Hueffner <falk@debian.org>
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "asm.h"
...
...
libavcodec/alpha/pixops.h
浏览文件 @
ff4ec49e
...
...
@@ -2,19 +2,19 @@
* Alpha optimized DSP utils
* Copyright (c) 2002 Falk Hueffner <falk@debian.org>
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* This file is intended to be #included with proper definitions of
...
...
libavcodec/armv4l/dsputil_arm.c
浏览文件 @
ff4ec49e
...
...
@@ -2,19 +2,19 @@
* ARMv4L optimized DSP utils
* Copyright (c) 2001 Lionel Ulmer.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "../dsputil.h"
...
...
libavcodec/common.c
浏览文件 @
ff4ec49e
/*
* Common bit i/o utils
* Copyright (c) 2000, 2001
Gerard Lantau
.
* Copyright (c) 2000, 2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* alternative bitstream reader & writer by Michael Niedermayer <michaelni@gmx.at>
*/
...
...
libavcodec/dct-test.c
浏览文件 @
ff4ec49e
/* DCT test. (c) 2001
Gerard Lantau
.
/* DCT test. (c) 2001
Fabrice Bellard
.
Started from sample code by Juan J. Sierralta P.
*/
#include <stdlib.h>
...
...
libavcodec/dsputil.c
浏览文件 @
ff4ec49e
/*
* DSP utils
* Copyright (c) 2000, 2001
Gerard Lantau
.
* Copyright (c) 2000, 2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* gmc & q-pel & 32/64 bit based MC by Michael Niedermayer <michaelni@gmx.at>
*/
...
...
libavcodec/dsputil.h
浏览文件 @
ff4ec49e
/*
* DSP utils
* Copyright (c) 2000, 2001, 2002 Fabrice Bellard.
*
* This library 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 of the License, or (at your option) any later version.
*
* This library 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 this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef DSPUTIL_H
#define DSPUTIL_H
...
...
libavcodec/h263.c
浏览文件 @
ff4ec49e
/*
* H263/MPEG4 backend for ffmpeg encoder and decoder
* Copyright (c) 2000,2001
Gerard Lantau
.
* Copyright (c) 2000,2001
Fabrice Bellard
.
* H263+ support.
* Copyright (c) 2001 Juan J. Sierralta P.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* ac prediction encoding & b-frame support by Michael Niedermayer <michaelni@gmx.at>
*/
...
...
@@ -1124,7 +1124,7 @@ void ff_set_mpeg4_time(MpegEncContext * s, int picture_number){
s
->
time_increment_bits
=
av_log2
(
s
->
time_increment_resolution
-
1
)
+
1
;
}
s
->
time
=
picture_number
*
(
int64_t
)
FRAME_RATE_BASE
*
s
->
time_increment_resolution
/
s
->
frame_rate
;
s
->
time
=
picture_number
*
(
INT64
)
FRAME_RATE_BASE
*
s
->
time_increment_resolution
/
s
->
frame_rate
;
time_div
=
s
->
time
/
s
->
time_increment_resolution
;
time_mod
=
s
->
time
%
s
->
time_increment_resolution
;
...
...
libavcodec/h263dec.c
浏览文件 @
ff4ec49e
/*
* H263 decoder
* Copyright (c) 2001
Gerard Lantau
.
* Copyright (c) 2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "avcodec.h"
#include "dsputil.h"
...
...
libavcodec/i386/cputest.c
浏览文件 @
ff4ec49e
/* Cpu detection code, extracted from mmx.h ((c)1997-99 by H. Dietz
and R. Fisher). Converted to C and improved by
Gerard Lantau
*/
and R. Fisher). Converted to C and improved by
Fabrice Bellard
*/
#include <stdlib.h>
#include "../dsputil.h"
...
...
libavcodec/i386/dsputil_mmx.c
浏览文件 @
ff4ec49e
/*
* MMX optimized DSP utils
* Copyright (c) 2000, 2001
Gerard Lantau
.
* Copyright (c) 2000, 2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* MMX optimization by Nick Kurshev <nickols_k@mail.ru>
*/
#include "../dsputil.h"
#include "../simple_idct.h"
#include "../mangle.h"
int
mm_flags
;
/* multimedia extension flags */
...
...
libavcodec/i386/dsputil_mmx_avg.h
浏览文件 @
ff4ec49e
/*
* DSP utils : average functions are compiled twice for 3dnow/mmx2
* Copyright (c) 2000, 2001
Gerard Lantau
.
* Copyright (c) 2000, 2001
Fabrice Bellard
.
* Copyright (c) 2002 Michael Niedermayer
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* MMX optimization by Nick Kurshev <nickols_k@mail.ru>
* mostly rewritten by Michael Niedermayer <michaelni@gmx.at>
...
...
libavcodec/i386/fdct_mmx.c
浏览文件 @
ff4ec49e
/*
* MMX optimized forward DCT
* The gcc porting is Copyright (c) 2001
Gerard Lantau
.
* The gcc porting is Copyright (c) 2001
Fabrice Bellard
.
*
* from fdctam32.c - AP922 MMX(3D-Now) forward-DCT
*
...
...
libavcodec/i386/motion_est_mmx.c
浏览文件 @
ff4ec49e
/*
* MMX optimized motion estimation
* Copyright (c) 2001
Gerard Lantau
.
* Copyright (c) 2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* mostly by Michael Niedermayer <michaelni@gmx.at>
*/
#include "../dsputil.h"
#include "../mangle.h"
static
const
__attribute__
((
aligned
(
8
)))
UINT64
round_tab
[
3
]
=
{
0x0000000000000000
,
...
...
libavcodec/i386/mpegvideo_mmx.c
浏览文件 @
ff4ec49e
/*
* The simplest mpeg encoder (well, it was the simplest!)
* Copyright (c) 2000,2001
Gerard Lantau
.
* Copyright (c) 2000,2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Optimized for ia32 cpus by Nick Kurshev <nickols_k@mail.ru>
* h263, mpeg1, mpeg2 dequantizer & draw_edges by Michael Niedermayer <michaelni@gmx.at>
...
...
@@ -23,7 +23,6 @@
#include "../dsputil.h"
#include "../mpegvideo.h"
#include "../avcodec.h"
#include "../mangle.h"
extern
UINT8
zigzag_end
[
64
];
...
...
libavcodec/i386/mpegvideo_mmx_template.c
浏览文件 @
ff4ec49e
/*
Copyright (C) 2002 Michael Niedermayer <michaelni@gmx.at>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* MPEG video MMX templates
*
* Copyright (c) 2002 Michael Niedermayer <michaelni@gmx.at>
*
* This library 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 of the License, or (at your option) any later version.
*
* This library 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 this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#undef SPREADW
#undef PMAXW
#ifdef HAVE_MMX2
...
...
libavcodec/i386/simple_idct_mmx.c
浏览文件 @
ff4ec49e
/*
Copyright (C) 2001-2002 Michael Niedermayer (michaelni@gmx.at)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <inttypes.h>
* Simple IDCT MMX
*
* Copyright (c) 2001, 2002 Michael Niedermayer <michaelni@gmx.at>
*
* This library 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 of the License, or (at your option) any later version.
*
* This library 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 this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "../dsputil.h"
#include "../mangle.h"
/*
23170.475006
22725.260826
...
...
libavcodec/imgconvert.c
浏览文件 @
ff4ec49e
/*
* Misc image convertion routines
* Copyright (c) 2001
Gerard Lantau
.
* Copyright (c) 2001
, 2002 Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "avcodec.h"
#include "dsputil.h"
...
...
libavcodec/imgresample.c
浏览文件 @
ff4ec49e
/*
* High quality image resampling with polyphase filters
* Copyright (c) 2001
Gerard Lantau
.
* Copyright (c) 2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "avcodec.h"
#include "dsputil.h"
...
...
libavcodec/mlib/dsputil_mlib.c
浏览文件 @
ff4ec49e
/*
* Sun mediaLib optimized DSP utils
* Copyright (c) 2001
Gerard Lantau
.
* Copyright (c) 2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "../dsputil.h"
...
...
libavcodec/motion_est.c
浏览文件 @
ff4ec49e
/*
* Motion estimation
* Copyright (c) 2000,2001
Gerard Lantau
.
* Copyright (c) 2000,2001
Fabrice Bellard
.
*
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* new Motion Estimation (X1/EPZS) by Michael Niedermayer <michaelni@gmx.at>
*/
...
...
libavcodec/motion_test.c
浏览文件 @
ff4ec49e
/* motion test. (c) 2001
Gerard Lantau
. */
/* motion test. (c) 2001
Fabrice Bellard
. */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
...
...
libavcodec/mp3lameaudio.c
浏览文件 @
ff4ec49e
...
...
@@ -2,19 +2,19 @@
* Interface to libmp3lame for mp3 encoding
* Copyright (c) 2002 Lennert Buytenhek <buytenh@gnu.org>
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "avcodec.h"
...
...
libavcodec/mpeg12.c
浏览文件 @
ff4ec49e
/*
* MPEG1 encoder / MPEG2 decoder
* Copyright (c) 2000,2001
Gerard Lantau
.
* Copyright (c) 2000,2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
//#define DEBUG
#include "avcodec.h"
...
...
libavcodec/mpegaudio.c
浏览文件 @
ff4ec49e
/*
* The simplest mpeg audio layer 2 encoder
* Copyright (c) 2000, 2001
Gerard Lantau
.
* Copyright (c) 2000, 2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "avcodec.h"
#include "mpegaudio.h"
...
...
libavcodec/mpegaudiodec.c
浏览文件 @
ff4ec49e
/*
* MPEG Audio decoder
* Copyright (c) 2001, 2002
Gerard Lantau
.
* Copyright (c) 2001, 2002
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
//#define DEBUG
#include "avcodec.h"
...
...
libavcodec/mpegaudiotab.h
浏览文件 @
ff4ec49e
...
...
@@ -2,7 +2,7 @@
* mpeg audio layer 2 tables. Most of them come from the mpeg audio
* specification.
*
* Copyright (c) 2000, 2001
Gerard Lantau
.
* Copyright (c) 2000, 2001
Fabrice Bellard
.
*
* The licence of this code is contained in file LICENCE found in the
* same archive
...
...
libavcodec/mpegvideo.c
浏览文件 @
ff4ec49e
/*
* The simplest mpeg encoder (well, it was the simplest!)
* Copyright (c) 2000,2001
Gerard Lantau
.
* Copyright (c) 2000,2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* 4MV & hq & b-frame encoding stuff by Michael Niedermayer <michaelni@gmx.at>
*/
...
...
libavcodec/mpegvideo.h
浏览文件 @
ff4ec49e
/*
* Generic DCT based hybrid video encoder
* Copyright (c) 2000,
2001 Gerard Lantau
.
* Copyright (c) 2000,
2001, 2002 Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define FRAME_SKIPED 100 // return value for header parsers if frame is not coded
...
...
@@ -47,7 +47,7 @@ typedef struct RateControlEntry{
int
i_tex_bits
;
int
p_tex_bits
;
int
misc_bits
;
uint64_t
expected_bits
;
UINT64
expected_bits
;
int
new_pict_type
;
float
new_qscale
;
}
RateControlEntry
;
...
...
@@ -278,10 +278,10 @@ typedef struct MpegEncContext {
int
time_increment_bits
;
/* number of bits to represent the fractional part of time */
int
last_time_base
;
int
time_base
;
/* time in seconds of last I,P,S Frame */
int64_t
time
;
/* time of current frame */
int64_t
last_non_b_time
;
uint16_t
pp_time
;
/* time distance between the last 2 p,s,i frames */
uint16_t
bp_time
;
/* time distance between the last b and p,s,i frame */
INT64
time
;
/* time of current frame */
INT64
last_non_b_time
;
UINT16
pp_time
;
/* time distance between the last 2 p,s,i frames */
UINT16
bp_time
;
/* time distance between the last b and p,s,i frame */
int
shape
;
int
vol_sprite_usage
;
int
sprite_width
;
...
...
@@ -314,7 +314,7 @@ typedef struct MpegEncContext {
int
divx_version
;
int
divx_build
;
#define BITSTREAM_BUFFER_SIZE 1024*256
uint8_t
*
bitstream_buffer
;
//Divx 5.01 puts several frames in a single one, this is used to reorder them
UINT8
*
bitstream_buffer
;
//Divx 5.01 puts several frames in a single one, this is used to reorder them
int
bitstream_buffer_size
;
/* RV10 specific */
...
...
libavcodec/msmpeg4.c
浏览文件 @
ff4ec49e
/*
* MSMPEG4 backend for ffmpeg encoder and decoder
* Copyright (c) 2001
Gerard Lantau
.
* Copyright (c) 2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* msmpeg4v2 stuff by Michael Niedermayer <michaelni@gmx.at>
*/
...
...
libavcodec/pcm.c
浏览文件 @
ff4ec49e
/*
* PCM codecs
* Copyright (c) 2001
Gerard Lantau
.
* Copyright (c) 2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "avcodec.h"
...
...
libavcodec/resample.c
浏览文件 @
ff4ec49e
/*
* Sample rate convertion for both audio and video
* Copyright (c) 2000
Gerard Lantau
.
* Copyright (c) 2000
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "avcodec.h"
...
...
libavcodec/rv10.c
浏览文件 @
ff4ec49e
/*
* RV10 codec
* Copyright (c) 2000,2001
Gerard Lantau
.
* Copyright (c) 2000,2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "avcodec.h"
#include "dsputil.h"
...
...
libavcodec/simple_idct.c
浏览文件 @
ff4ec49e
/*
Copyright (C) 2001 Michael Niedermayer (michaelni@gmx.at)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Simple IDCT
*
* Copyright (c) 2001 Michael Niedermayer <michaelni@gmx.at>
*
* This library 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 of the License, or (at your option) any later version.
*
* This library 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 this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
based upon some outcommented c code from mpeg2dec (idct_mmx.c
written by Aaron Holtzman <aholtzma@ess.engr.uvic.ca>)
*/
based upon some outcommented c code from mpeg2dec (idct_mmx.c
written by Aaron Holtzman <aholtzma@ess.engr.uvic.ca>)
*/
#include "avcodec.h"
#include "simple_idct.h"
...
...
libavcodec/simple_idct.h
浏览文件 @
ff4ec49e
/*
Copyright (C) 2001 Michael Niedermayer (michaelni@gmx.at)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Simple IDCT
*
* Copyright (c) 2001 Michael Niedermayer <michaelni@gmx.at>
*
* This library 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 of the License, or (at your option) any later version.
*
* This library 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 this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
void
simple_idct
(
short
*
block
);
void
simple_idct_mmx
(
short
*
block
);
libavcodec/utils.c
浏览文件 @
ff4ec49e
/*
* utils for libavcodec
* Copyright (c) 2001
Gerard Lantau
.
* Copyright (c) 2001
Fabrice Bellard
.
*
* This
program is free software; you can redistribute it and/or modify
*
it under the terms of the GNU General Public License as published by
*
the Free Software Foundation; either version 2 of the License, o
r
* (at your option) any later version.
* This
library 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; eithe
r
*
version 2 of the License, or
(at your option) any later version.
*
* This
program
is distributed in the hope that it will be useful,
* This
library
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
General Public License for more details.
* 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
General Public License
*
along with this program
; if not, write to the Free Software
* Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU
Lesser General Public
*
License along with this library
; if not, write to the Free Software
* Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "avcodec.h"
#include "dsputil.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录