summaryrefslogtreecommitdiff
path: root/libavcodec/dolby_e.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-01-26 16:33:01 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-01-30 05:14:45 +0100
commit7c27513d0458c7e80925e27529acee4473baedf6 (patch)
tree773cf01219127a0a6524da6ade66d58eb6a5d16c /libavcodec/dolby_e.h
parent8cbff41583409210abef0f57a1afbf8bb1f1f351 (diff)
avcodec/dolby_e: Avoid code duplication when converting input
convert_input, a nontrivial auxiliary function used by both the general parsing code as well as the decoder itself, has been duplicated in c7016e35a624a75bb5b82bee932ddfe28d013b3f; this commit removes said duplication. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/dolby_e.h')
-rw-r--r--libavcodec/dolby_e.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/dolby_e.h b/libavcodec/dolby_e.h
index 0838a1d3ea..32471bce80 100644
--- a/libavcodec/dolby_e.h
+++ b/libavcodec/dolby_e.h
@@ -84,6 +84,13 @@ typedef struct DBEContext {
static const uint16_t sample_rate_tab[16] = {
0, 42965, 43008, 44800, 53706, 53760
};
+
+/**
+ * Use the provided key to transform the input into data (put into s->buffer)
+ * suitable for further processing and initialize s->gb to read said data.
+ */
+int ff_dolby_e_convert_input(DBEContext *s, int nb_words, int key);
+
/**
* Initialize DBEContext and parse Dolby E metadata.
* Set word_bits/word_bytes, input, input_size, key_present