aboutsummaryrefslogtreecommitdiffhomepage
path: root/common
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2018-04-19 19:49:55 +0200
committerGravatar wm4 <wm4@nowhere>2018-04-20 12:37:34 +0200
commitc490b3f8ea88c028e8f23e412ec015c34e591e9c (patch)
treee8aa2c2cf8b06abf63246a29782eb838b128e529 /common
parentf2b026f941eb3d88b823245668783d90c979d874 (diff)
encode: remove some unused functions
Diffstat (limited to 'common')
-rw-r--r--common/encode_lavc.c16
-rw-r--r--common/encode_lavc.h4
2 files changed, 0 insertions, 20 deletions
diff --git a/common/encode_lavc.c b/common/encode_lavc.c
index bb7b6464e4..bed4a3b980 100644
--- a/common/encode_lavc.c
+++ b/common/encode_lavc.c
@@ -1211,20 +1211,4 @@ bool encode_lavc_set_csp_levels(struct encode_lavc_context *ctx,
return true;
}
-enum mp_csp encode_lavc_get_csp(struct encode_lavc_context *ctx,
- AVCodecContext *codec)
-{
- CHECK_FAIL(ctx, 0);
-
- return avcol_spc_to_mp_csp(codec->colorspace);
-}
-
-enum mp_csp_levels encode_lavc_get_csp_levels(struct encode_lavc_context *ctx,
- AVCodecContext *codec)
-{
- CHECK_FAIL(ctx, 0);
-
- return avcol_range_to_mp_csp_levels(codec->color_range);
-}
-
// vim: ts=4 sw=4 et
diff --git a/common/encode_lavc.h b/common/encode_lavc.h
index b18238128b..8955f07ae3 100644
--- a/common/encode_lavc.h
+++ b/common/encode_lavc.h
@@ -117,9 +117,5 @@ bool encode_lavc_set_csp(struct encode_lavc_context *ctx,
AVCodecContext *codec, enum mp_csp csp);
bool encode_lavc_set_csp_levels(struct encode_lavc_context *ctx,
AVCodecContext *codec, enum mp_csp_levels lev);
-enum mp_csp encode_lavc_get_csp(struct encode_lavc_context *ctx,
- AVCodecContext *codec);
-enum mp_csp_levels encode_lavc_get_csp_levels(struct encode_lavc_context *ctx,
- AVCodecContext *codec);
#endif