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
755ad01d
Commit
755ad01d
authored
Dec 28, 2019
by
Zhong Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/qsv: remove the unused funtion ff_qsv_profile_to_mfx()
Signed-off-by:
Zhong Li
<
zhongli_dev@126.com
>
parent
779951f7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
53 deletions
+0
-53
qsv.c
libavcodec/qsv.c
+0
-52
qsv_internal.h
libavcodec/qsv_internal.h
+0
-1
No files found.
libavcodec/qsv.c
View file @
755ad01d
...
...
@@ -72,58 +72,6 @@ int ff_qsv_codec_id_to_mfx(enum AVCodecID codec_id)
return
AVERROR
(
ENOSYS
);
}
static
const
struct
{
enum
AVCodecID
codec_id
;
int
codec_profile
;
int
mfx_profile
;
}
qsv_profile_map
[]
=
{
#define MAP(c, p, v) { AV_CODEC_ID_ ## c, FF_PROFILE_ ## p, MFX_PROFILE_ ## v }
MAP
(
MPEG2VIDEO
,
MPEG2_SIMPLE
,
MPEG2_SIMPLE
),
MAP
(
MPEG2VIDEO
,
MPEG2_MAIN
,
MPEG2_MAIN
),
MAP
(
MPEG2VIDEO
,
MPEG2_HIGH
,
MPEG2_HIGH
),
MAP
(
H264
,
H264_BASELINE
,
AVC_BASELINE
),
MAP
(
H264
,
H264_CONSTRAINED_BASELINE
,
AVC_BASELINE
),
#if QSV_VERSION_ATLEAST(1, 3)
MAP
(
H264
,
H264_EXTENDED
,
AVC_EXTENDED
),
#endif
MAP
(
H264
,
H264_MAIN
,
AVC_MAIN
),
MAP
(
H264
,
H264_HIGH
,
AVC_HIGH
),
MAP
(
H264
,
H264_HIGH_422
,
AVC_HIGH_422
),
#if QSV_VERSION_ATLEAST(1, 8)
MAP
(
HEVC
,
HEVC_MAIN
,
HEVC_MAIN
),
MAP
(
HEVC
,
HEVC_MAIN_10
,
HEVC_MAIN10
),
MAP
(
HEVC
,
HEVC_MAIN_STILL_PICTURE
,
HEVC_MAINSP
),
#endif
#if QSV_VERSION_ATLEAST(1, 16)
MAP
(
HEVC
,
HEVC_REXT
,
HEVC_REXT
),
#endif
MAP
(
VC1
,
VC1_SIMPLE
,
VC1_SIMPLE
),
MAP
(
VC1
,
VC1_MAIN
,
VC1_MAIN
),
MAP
(
VC1
,
VC1_COMPLEX
,
VC1_ADVANCED
),
MAP
(
VC1
,
VC1_ADVANCED
,
VC1_ADVANCED
),
#undef MAP
};
int
ff_qsv_profile_to_mfx
(
enum
AVCodecID
codec_id
,
int
profile
)
{
int
i
;
if
(
profile
==
FF_PROFILE_UNKNOWN
)
return
MFX_PROFILE_UNKNOWN
;
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
qsv_profile_map
);
i
++
)
{
if
(
qsv_profile_map
[
i
].
codec_id
!=
codec_id
)
continue
;
if
(
qsv_profile_map
[
i
].
codec_profile
==
profile
)
return
qsv_profile_map
[
i
].
mfx_profile
;
}
return
MFX_PROFILE_UNKNOWN
;
}
int
ff_qsv_level_to_mfx
(
enum
AVCodecID
codec_id
,
int
level
)
{
if
(
level
==
FF_LEVEL_UNKNOWN
)
...
...
libavcodec/qsv_internal.h
View file @
755ad01d
...
...
@@ -116,7 +116,6 @@ int ff_qsv_print_warning(void *log_ctx, mfxStatus err,
const
char
*
warning_string
);
int
ff_qsv_codec_id_to_mfx
(
enum
AVCodecID
codec_id
);
int
ff_qsv_profile_to_mfx
(
enum
AVCodecID
codec_id
,
int
profile
);
int
ff_qsv_level_to_mfx
(
enum
AVCodecID
codec_id
,
int
level
);
enum
AVPixelFormat
ff_qsv_map_fourcc
(
uint32_t
fourcc
);
...
...
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