Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
09b0499f
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,发现更多精彩内容 >>
提交
09b0499f
编写于
2月 06, 2005
作者:
M
Michael Niedermayer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
seperate bitstream encoding skip from PASS1 flag
Originally committed as revision 3938 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
36013037
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
3 deletion
+17
-3
ffmpeg.c
ffmpeg.c
+5
-0
libavcodec/avcodec.h
libavcodec/avcodec.h
+1
-0
libavcodec/huffyuv.c
libavcodec/huffyuv.c
+11
-3
未找到文件。
ffmpeg.c
浏览文件 @
09b0499f
...
...
@@ -170,6 +170,7 @@ static int do_normalize_aqp = 0;
static
int
qns
=
0
;
static
int
closed_gop
=
0
;
static
int
strict_gop
=
0
;
static
int
no_output
=
0
;
static
int
do_deinterlace
=
0
;
static
int
do_interlace_dct
=
0
;
static
int
do_interlace_me
=
0
;
...
...
@@ -3220,6 +3221,9 @@ static void opt_output_file(const char *filename)
if
(
do_interlace_me
)
{
video_enc
->
flags
|=
CODEC_FLAG_INTERLACED_ME
;
}
if
(
no_output
)
{
video_enc
->
flags2
|=
CODEC_FLAG2_NO_OUTPUT
;
}
video_enc
->
qmin
=
video_qmin
;
video_enc
->
qmax
=
video_qmax
;
video_enc
->
lmin
=
video_lmin
;
...
...
@@ -4025,6 +4029,7 @@ const OptionDef options[] = {
{
"naq"
,
OPT_BOOL
|
OPT_EXPERT
|
OPT_VIDEO
,
{(
void
*
)
&
do_normalize_aqp
},
"normalize adaptive quantization"
},
{
"cgop"
,
OPT_BOOL
|
OPT_EXPERT
|
OPT_VIDEO
,
{(
void
*
)
&
closed_gop
},
"closed gop"
},
{
"sgop"
,
OPT_BOOL
|
OPT_EXPERT
|
OPT_VIDEO
,
{(
void
*
)
&
strict_gop
},
"strict gop"
},
{
"noout"
,
OPT_BOOL
|
OPT_EXPERT
|
OPT_VIDEO
,
{(
void
*
)
&
no_output
},
"skip bitstream encoding"
},
{
"scan_offset"
,
OPT_BOOL
|
OPT_EXPERT
|
OPT_VIDEO
,
{(
void
*
)
&
use_scan_offset
},
"enable SVCD Scan Offset placeholder"
},
{
"qpel"
,
OPT_BOOL
|
OPT_EXPERT
|
OPT_VIDEO
,
{(
void
*
)
&
use_qpel
},
"enable 1/4-pel"
},
{
"intra_matrix"
,
HAS_ARG
|
OPT_EXPERT
|
OPT_VIDEO
,
{(
void
*
)
opt_intra_matrix
},
"specify intra matrix coeffs"
,
"matrix"
},
...
...
libavcodec/avcodec.h
浏览文件 @
09b0499f
...
...
@@ -321,6 +321,7 @@ extern int motion_estimation_method;
#define CODEC_FLAG_CLOSED_GOP 0x80000000
#define CODEC_FLAG2_FAST 0x00000001 ///< allow non spec compliant speedup tricks
#define CODEC_FLAG2_STRICT_GOP 0x00000002 ///< strictly enforce GOP size
#define CODEC_FLAG2_NO_OUTPUT 0x00000004 ///< skip bitstream encoding
/* Unsupported options :
* Syntax Arithmetic coding (SAC)
...
...
libavcodec/huffyuv.c
浏览文件 @
09b0499f
...
...
@@ -644,7 +644,10 @@ static int encode_422_bitstream(HYuvContext *s, int count){
s
->
stats
[
0
][
s
->
temp
[
0
][
2
*
i
+
1
]
]
++
;
s
->
stats
[
2
][
s
->
temp
[
2
][
i
]
]
++
;
}
}
else
if
(
s
->
context
){
}
if
(
s
->
avctx
->
flags2
&
CODEC_FLAG2_NO_OUTPUT
)
return
0
;
if
(
s
->
context
){
for
(
i
=
0
;
i
<
count
;
i
++
){
s
->
stats
[
0
][
s
->
temp
[
0
][
2
*
i
]
]
++
;
put_bits
(
&
s
->
pb
,
s
->
len
[
0
][
s
->
temp
[
0
][
2
*
i
]
],
s
->
bits
[
0
][
s
->
temp
[
0
][
2
*
i
]
]);
...
...
@@ -680,7 +683,11 @@ static int encode_gray_bitstream(HYuvContext *s, int count){
s
->
stats
[
0
][
s
->
temp
[
0
][
2
*
i
]
]
++
;
s
->
stats
[
0
][
s
->
temp
[
0
][
2
*
i
+
1
]
]
++
;
}
}
else
if
(
s
->
context
){
}
if
(
s
->
avctx
->
flags2
&
CODEC_FLAG2_NO_OUTPUT
)
return
0
;
if
(
s
->
context
){
for
(
i
=
0
;
i
<
count
;
i
++
){
s
->
stats
[
0
][
s
->
temp
[
0
][
2
*
i
]
]
++
;
put_bits
(
&
s
->
pb
,
s
->
len
[
0
][
s
->
temp
[
0
][
2
*
i
]
],
s
->
bits
[
0
][
s
->
temp
[
0
][
2
*
i
]
]);
...
...
@@ -1176,7 +1183,8 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
snprintf
(
p
,
end
-
p
,
"
\n
"
);
p
++
;
}
}
else
{
}
if
(
!
(
s
->
avctx
->
flags2
&
CODEC_FLAG2_NO_OUTPUT
)){
flush_put_bits
(
&
s
->
pb
);
s
->
dsp
.
bswap_buf
((
uint32_t
*
)
buf
,
(
uint32_t
*
)
buf
,
size
);
avctx
->
stats_out
[
0
]
=
'\0'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录