aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pnm.h
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2022-08-10 01:00:56 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2022-08-19 22:09:36 +0200
commitf3fb528cd5bfecec6835a3951c75903a194ae1ad (patch)
treea2d67c75082a009f1c299dfb319fd54a9357e4a4 /libavcodec/pnm.h
parentcb8ad005bb73b1adf0d36eeb794c4c375fd3ee12 (diff)
downloadffmpeg-f3fb528cd5bfecec6835a3951c75903a194ae1ad.tar.gz
avutil/half2float: move tables to header-internal structs
Having to put the knowledge of the size of those arrays into a multitude of places is rather smelly.
Diffstat (limited to 'libavcodec/pnm.h')
-rw-r--r--libavcodec/pnm.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/pnm.h b/libavcodec/pnm.h
index 7e5445f529..4906eeb2b9 100644
--- a/libavcodec/pnm.h
+++ b/libavcodec/pnm.h
@@ -22,6 +22,7 @@
#ifndef AVCODEC_PNM_H
#define AVCODEC_PNM_H
+#include "libavutil/half2float.h"
#include "avcodec.h"
typedef struct PNMContext {
@@ -34,9 +35,7 @@ typedef struct PNMContext {
int half;
float scale;
- uint32_t mantissatable[3072];
- uint32_t exponenttable[64];
- uint16_t offsettable[64];
+ Half2FloatTables h2f_tables;
} PNMContext;
int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s);