[FFmpeg-cvslog] avcodec/h264_levels, h265_profile_level: Remove ff_h26[45]_get_level
Andreas Rheinhardt
git at videolan.org
Wed Feb 3 01:06:39 EET 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Fri Jan 29 03:08:54 2021 +0100| [455d3a768477bf1578ae85d8e6322bec898590f5] | committer: Andreas Rheinhardt
avcodec/h264_levels, h265_profile_level: Remove ff_h26[45]_get_level
Unused.
Reviewed-by: Mark Thompson <sw at jkqxz.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=455d3a768477bf1578ae85d8e6322bec898590f5
---
libavcodec/h264_levels.c | 12 ------------
libavcodec/h264_levels.h | 3 ---
libavcodec/h265_profile_level.c | 12 ------------
libavcodec/h265_profile_level.h | 2 --
4 files changed, 29 deletions(-)
diff --git a/libavcodec/h264_levels.c b/libavcodec/h264_levels.c
index dd517f1005..801b27fdd9 100644
--- a/libavcodec/h264_levels.c
+++ b/libavcodec/h264_levels.c
@@ -75,18 +75,6 @@ static int h264_get_br_factor(int profile_idc)
return 1200;
}
-const H264LevelDescriptor *ff_h264_get_level(int level_idc,
- int constraint_set3_flag)
-{
- int i;
- for (i = 0; i < FF_ARRAY_ELEMS(h264_levels); i++) {
- if (h264_levels[i].level_idc == level_idc &&
- h264_levels[i].constraint_set3_flag == constraint_set3_flag)
- return &h264_levels[i];
- }
- return NULL;
-}
-
const H264LevelDescriptor *ff_h264_guess_level(int profile_idc,
int64_t bitrate,
int framerate,
diff --git a/libavcodec/h264_levels.h b/libavcodec/h264_levels.h
index 0a0f410329..6bba2e8624 100644
--- a/libavcodec/h264_levels.h
+++ b/libavcodec/h264_levels.h
@@ -36,9 +36,6 @@ typedef struct H264LevelDescriptor {
uint8_t max_mvs_per_2mb;
} H264LevelDescriptor;
-const H264LevelDescriptor *ff_h264_get_level(int level_idc,
- int constraint_set3_flag);
-
/**
* Guess the level of a stream from some parameters.
*
diff --git a/libavcodec/h265_profile_level.c b/libavcodec/h265_profile_level.c
index d79c1ab204..7ff9681f65 100644
--- a/libavcodec/h265_profile_level.c
+++ b/libavcodec/h265_profile_level.c
@@ -120,18 +120,6 @@ static const H265ProfileDescriptor h265_profiles[] = {
};
-const H265LevelDescriptor *ff_h265_get_level(int level_idc)
-{
- int i;
-
- for (i = 0; i < FF_ARRAY_ELEMS(h265_levels); i++) {
- if (h265_levels[i].level_idc == level_idc)
- return &h265_levels[i];
- }
-
- return NULL;
-}
-
const H265ProfileDescriptor *ff_h265_get_profile(const H265RawProfileTierLevel *ptl)
{
int i;
diff --git a/libavcodec/h265_profile_level.h b/libavcodec/h265_profile_level.h
index 2d5bebaecd..f1a11f51dc 100644
--- a/libavcodec/h265_profile_level.h
+++ b/libavcodec/h265_profile_level.h
@@ -70,8 +70,6 @@ typedef struct H265ProfileDescriptor {
} H265ProfileDescriptor;
-const H265LevelDescriptor *ff_h265_get_level(int level_idc);
-
const H265ProfileDescriptor *ff_h265_get_profile(const H265RawProfileTierLevel *ptl);
More information about the ffmpeg-cvslog
mailing list