summaryrefslogtreecommitdiff
path: root/libavcodec/pnm.h
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-07-01 10:06:15 +0200
committerPaul B Mahol <onemda@gmail.com>2022-07-03 15:16:31 +0200
commitff1450e449f848ad4b37b3cf448315ba4581364e (patch)
tree4c6e245afa51c3ec58bb0865ed27f2940acf4f4a /libavcodec/pnm.h
parent33fe3b73c2d4dec674509de5dc48698895f0806b (diff)
avcodec: add PHM decoder and encoder
Diffstat (limited to 'libavcodec/pnm.h')
-rw-r--r--libavcodec/pnm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/pnm.h b/libavcodec/pnm.h
index 89c3b5a2da..f109d16239 100644
--- a/libavcodec/pnm.h
+++ b/libavcodec/pnm.h
@@ -31,7 +31,12 @@ typedef struct PNMContext {
int maxval; ///< maximum value of a pixel
int type;
int endian;
+ int half;
float scale;
+
+ uint32_t mantissatable[2048];
+ uint32_t exponenttable[64];
+ uint16_t offsettable[64];
} PNMContext;
int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s);