Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
0d3d172f
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,发现更多精彩内容 >>
提交
0d3d172f
编写于
1月 17, 2009
作者:
C
Carl Eugen Hoyos
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove CODEC_ID_H264_VDPAU.
Originally committed as revision 16649 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
78471234
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
11 deletion
+7
-11
libavcodec/avcodec.h
libavcodec/avcodec.h
+0
-3
libavcodec/h264.c
libavcodec/h264.c
+6
-6
libavcodec/h264_parser.c
libavcodec/h264_parser.c
+1
-2
未找到文件。
libavcodec/avcodec.h
浏览文件 @
0d3d172f
...
...
@@ -191,9 +191,6 @@ enum CodecID {
CODEC_ID_TGV
,
CODEC_ID_TGQ
,
/* "codecs" for HW decoding with VDPAU */
CODEC_ID_H264_VDPAU
=
0x9000
,
/* various PCM "codecs" */
CODEC_ID_PCM_S16LE
=
0x10000
,
CODEC_ID_PCM_S16BE
,
...
...
libavcodec/h264.c
浏览文件 @
0d3d172f
...
...
@@ -2189,7 +2189,7 @@ static av_cold int decode_init(AVCodecContext *avctx){
if
(
avctx
->
codec_id
==
CODEC_ID_SVQ3
)
avctx
->
pix_fmt
=
PIX_FMT_YUVJ420P
;
else
if
(
avctx
->
codec_id
==
CODEC_ID_H264
_VDPAU
)
else
if
(
s
->
avctx
->
codec
->
capabilities
&
CODEC_CAP_HWACCEL
_VDPAU
)
avctx
->
pix_fmt
=
PIX_FMT_VDPAU_H264
;
else
avctx
->
pix_fmt
=
PIX_FMT_YUV420P
;
...
...
@@ -7293,7 +7293,7 @@ static void execute_decode_slices(H264Context *h, int context_count){
H264Context
*
hx
;
int
i
;
if
(
avctx
->
codec_id
==
CODEC_ID_H264
_VDPAU
)
if
(
s
->
avctx
->
codec
->
capabilities
&
CODEC_CAP_HWACCEL
_VDPAU
)
return
;
if
(
context_count
==
1
)
{
decode_slice
(
avctx
,
&
h
);
...
...
@@ -7423,7 +7423,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size){
&&
(
avctx
->
skip_frame
<
AVDISCARD_BIDIR
||
hx
->
slice_type_nos
!=
FF_B_TYPE
)
&&
(
avctx
->
skip_frame
<
AVDISCARD_NONKEY
||
hx
->
slice_type_nos
==
FF_I_TYPE
)
&&
avctx
->
skip_frame
<
AVDISCARD_ALL
){
if
(
CONFIG_H264_VDPAU_DECODER
&&
avctx
->
codec_id
==
CODEC_ID_H264
_VDPAU
){
if
(
CONFIG_H264_VDPAU_DECODER
&&
s
->
avctx
->
codec
->
capabilities
&
CODEC_CAP_HWACCEL
_VDPAU
){
static
const
uint8_t
start_code
[]
=
{
0x00
,
0x00
,
0x01
};
ff_vdpau_add_data_chunk
(
s
,
start_code
,
sizeof
(
start_code
));
ff_vdpau_add_data_chunk
(
s
,
&
buf
[
buf_index
-
consumed
],
consumed
);
...
...
@@ -7624,7 +7624,7 @@ static int decode_frame(AVCodecContext *avctx,
s
->
current_picture_ptr
->
qscale_type
=
FF_QSCALE_TYPE_H264
;
s
->
current_picture_ptr
->
pict_type
=
s
->
pict_type
;
if
(
CONFIG_H264_VDPAU_DECODER
&&
avctx
->
codec_id
==
CODEC_ID_H264
_VDPAU
)
if
(
CONFIG_H264_VDPAU_DECODER
&&
s
->
avctx
->
codec
->
capabilities
&
CODEC_CAP_HWACCEL
_VDPAU
)
ff_vdpau_h264_set_reference_frames
(
s
);
if
(
!
s
->
dropable
)
{
...
...
@@ -7635,7 +7635,7 @@ static int decode_frame(AVCodecContext *avctx,
h
->
prev_frame_num_offset
=
h
->
frame_num_offset
;
h
->
prev_frame_num
=
h
->
frame_num
;
if
(
CONFIG_H264_VDPAU_DECODER
&&
avctx
->
codec_id
==
CODEC_ID_H264
_VDPAU
)
if
(
CONFIG_H264_VDPAU_DECODER
&&
s
->
avctx
->
codec
->
capabilities
&
CODEC_CAP_HWACCEL
_VDPAU
)
ff_vdpau_h264_picture_complete
(
s
);
/*
...
...
@@ -8027,7 +8027,7 @@ AVCodec h264_decoder = {
AVCodec
h264_vdpau_decoder
=
{
"h264_vdpau"
,
CODEC_TYPE_VIDEO
,
CODEC_ID_H264
_VDPAU
,
CODEC_ID_H264
,
sizeof
(
H264Context
),
decode_init
,
NULL
,
...
...
libavcodec/h264_parser.c
浏览文件 @
0d3d172f
...
...
@@ -161,8 +161,7 @@ static void close(AVCodecParserContext *s)
AVCodecParser
h264_parser
=
{
{
CODEC_ID_H264
,
CODEC_ID_H264_VDPAU
},
{
CODEC_ID_H264
},
sizeof
(
H264Context
),
NULL
,
h264_parse
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录