Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2022-03-19 03:22:23 +0300
committerMarton Balint <cus@passwd.hu>2022-04-10 21:12:23 +0300
commit013d774e225c685cf2a9674f4c5dc9bb13941cb4 (patch)
tree25f14d51dbbcc4b30a9a71db020c0fcb882cb6a0 /libavcodec/vbn.h
parenta4570d7a66da772d2f530980a60ef5057750f8e6 (diff)
avcodec/vbndec: add VBN decoder
Add support for decoding Vizrt Binary Image (VBN) files. LZW-compressed data is not supported yet. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavcodec/vbn.h')
-rw-r--r--libavcodec/vbn.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/libavcodec/vbn.h b/libavcodec/vbn.h
new file mode 100644
index 0000000000..8660786de8
--- /dev/null
+++ b/libavcodec/vbn.h
@@ -0,0 +1,50 @@
+/*
+ * VBN format definitions
+ *
+ * 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
+ */
+
+/**
+ * @file
+ * VBN format definitions.
+ */
+
+#ifndef AVCODEC_VBN_H
+#define AVCODEC_VBN_H
+
+#define VBN_MAGIC 0x900df11e
+#define VBN_MAJOR 3
+#define VBN_MINOR 4
+
+#define VBN_HEADER_SIZE 192
+
+#define VBN_FORMAT_RAW 0
+#define VBN_FORMAT_LZ 1
+#define VBN_FORMAT_DXT1 2
+#define VBN_FORMAT_DXT5 3
+
+#define VBN_COMPRESSION_NONE 0
+#define VBN_COMPRESSION_LZW 0x100
+
+#define VBN_PIX_ALPHA 0
+#define VBN_PIX_LUMINANCE 1
+#define VBN_PIX_LUMINANCE_ALPHA 2
+#define VBN_PIX_RGB 3
+#define VBN_PIX_RGBA 5
+#define VBN_PIX_INDEX 6
+
+#endif /* AVCODEC_VBN_H */