mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/qsv: Remove unused ff_qsv_level_to_mfx()
Unused since 00d0a4aa9e
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
7fbf1f21ab
commit
c0d7d5f595
|
@ -76,19 +76,6 @@ int ff_qsv_codec_id_to_mfx(enum AVCodecID codec_id)
|
||||||
return AVERROR(ENOSYS);
|
return AVERROR(ENOSYS);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ff_qsv_level_to_mfx(enum AVCodecID codec_id, int level)
|
|
||||||
{
|
|
||||||
if (level == FF_LEVEL_UNKNOWN)
|
|
||||||
return MFX_LEVEL_UNKNOWN;
|
|
||||||
|
|
||||||
switch (codec_id) {
|
|
||||||
case AV_CODEC_ID_HEVC:
|
|
||||||
return level / 3;
|
|
||||||
default:
|
|
||||||
return level;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static const struct {
|
static const struct {
|
||||||
int mfx_iopattern;
|
int mfx_iopattern;
|
||||||
const char *desc;
|
const char *desc;
|
||||||
|
|
|
@ -118,7 +118,6 @@ int ff_qsv_print_warning(void *log_ctx, mfxStatus err,
|
||||||
const char *warning_string);
|
const char *warning_string);
|
||||||
|
|
||||||
int ff_qsv_codec_id_to_mfx(enum AVCodecID codec_id);
|
int ff_qsv_codec_id_to_mfx(enum AVCodecID codec_id);
|
||||||
int ff_qsv_level_to_mfx(enum AVCodecID codec_id, int level);
|
|
||||||
|
|
||||||
enum AVPixelFormat ff_qsv_map_fourcc(uint32_t fourcc);
|
enum AVPixelFormat ff_qsv_map_fourcc(uint32_t fourcc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue