diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-02 00:24:54 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-05 19:59:00 +0200 |
commit | 2b6e008577fa444fc8d1b3a7b985c600633f4ee4 (patch) | |
tree | 3a30556ed3a67dfee908eee1a3d2e4210fccf895 /libavfilter/internal.h | |
parent | b75dc8bd70ae479452da36e2dcaad6ef007a553f (diff) | |
download | ffmpeg-2b6e008577fa444fc8d1b3a7b985c600633f4ee4.tar.gz |
avfilter/internal: Move ff_norm_qscale() to qp_table.h
It is the natural header for it.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r-- | libavfilter/internal.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h index a1adb8a8fe..742e8e27cb 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -342,22 +342,6 @@ void ff_filter_graph_remove_filter(AVFilterGraph *graph, AVFilterContext *filter int ff_filter_graph_run_once(AVFilterGraph *graph); /** - * Normalize the qscale factor - * FIXME the H264 qscale is a log based scale, mpeg1/2 is not, the code below - * cannot be optimal - */ -static inline int ff_norm_qscale(int qscale, int type) -{ - switch (type) { - case FF_QSCALE_TYPE_MPEG1: return qscale; - case FF_QSCALE_TYPE_MPEG2: return qscale >> 1; - case FF_QSCALE_TYPE_H264: return qscale >> 2; - case FF_QSCALE_TYPE_VP56: return (63 - qscale + 2) >> 2; - } - return qscale; -} - -/** * Get number of threads for current filter instance. * This number is always same or less than graph->nb_threads. */ |