summaryrefslogtreecommitdiff
path: root/libavcodec/jpeg2000htdec.h
diff options
context:
space:
mode:
authorcaleb <etemesicaleb@gmail.com>2023-04-14 12:14:42 -0700
committerPierre-Anthony Lemieux <pal@palemieux.com>2023-04-22 15:57:40 -0700
commitb9c42cdf8d9c38c9975c7fe5616a7f984a789de8 (patch)
tree138203d1ddeb12037adf36e086b546c51cffc1f4 /libavcodec/jpeg2000htdec.h
parent4a466aab306b47b07c13d14a077abd207bc10ad1 (diff)
downloadffmpeg-b9c42cdf8d9c38c9975c7fe5616a7f984a789de8.tar.gz
avcodec/jpeg2000dec: add support for HTJ2K block decoding
Signed-off-by: Pierre-Anthony Lemieux <pal@palemieux.com>
Diffstat (limited to 'libavcodec/jpeg2000htdec.h')
-rw-r--r--libavcodec/jpeg2000htdec.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/libavcodec/jpeg2000htdec.h b/libavcodec/jpeg2000htdec.h
new file mode 100644
index 0000000000..572d095c92
--- /dev/null
+++ b/libavcodec/jpeg2000htdec.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2022 Caleb Etemesi <etemesicaleb@gmail.com>
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef AVCODEC_JPEG2000HTDEC_H
+#define AVCODEC_JPEG2000HTDEC_H
+
+#include "jpeg2000dec.h"
+
+/**
+ * HT Block decoder as specified in Rec. ITU-T T.814 | ISO/IEC 15444-15
+ */
+
+int ff_jpeg2000_decode_htj2k(const Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *codsty,
+ Jpeg2000T1Context *t1, Jpeg2000Cblk *cblk, int width,
+ int height, int magp, uint8_t roi_shift);
+
+#endif /* AVCODEC_JPEG2000HTDEC_H */