[FFmpeg-cvslog] avcodec/qsv: Remove unused ff_qsv_level_to_mfx()

Andreas Rheinhardt git at videolan.org
Sun Aug 8 19:48:40 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Aug  7 03:23:33 2021 +0200| [c0d7d5f595ea1985c3e7a6bbe759de3ba6767e41] | committer: Andreas Rheinhardt

avcodec/qsv: Remove unused ff_qsv_level_to_mfx()

Unused since 00d0a4aa9eda8553113e51556123c46648a5f31b.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c0d7d5f595ea1985c3e7a6bbe759de3ba6767e41
---

 libavcodec/qsv.c          | 13 -------------
 libavcodec/qsv_internal.h |  1 -
 2 files changed, 14 deletions(-)

diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
index 6e3154e1a3..c53e2e3b07 100644
--- a/libavcodec/qsv.c
+++ b/libavcodec/qsv.c
@@ -76,19 +76,6 @@ int ff_qsv_codec_id_to_mfx(enum AVCodecID codec_id)
     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 {
     int mfx_iopattern;
     const char *desc;
diff --git a/libavcodec/qsv_internal.h b/libavcodec/qsv_internal.h
index 6b2fbbe252..327a8d3385 100644
--- a/libavcodec/qsv_internal.h
+++ b/libavcodec/qsv_internal.h
@@ -118,7 +118,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_level_to_mfx(enum AVCodecID codec_id, int level);
 
 enum AVPixelFormat ff_qsv_map_fourcc(uint32_t fourcc);
 



More information about the ffmpeg-cvslog mailing list