Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
0d3d172f
Commit
0d3d172f
authored
Jan 17, 2009
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove CODEC_ID_H264_VDPAU.
Originally committed as revision 16649 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
78471234
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
11 deletions
+7
-11
avcodec.h
libavcodec/avcodec.h
+0
-3
h264.c
libavcodec/h264.c
+6
-6
h264_parser.c
libavcodec/h264_parser.c
+1
-2
No files found.
libavcodec/avcodec.h
View file @
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
View file @
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
View file @
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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment