]> git.sesse.net Git - ffmpeg/commitdiff
hap: Name enums, remove unused struct member
authorTom Butterworth <bangnoise@gmail.com>
Tue, 21 Jul 2015 00:21:39 +0000 (01:21 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Thu, 23 Jul 2015 12:35:16 +0000 (13:35 +0100)
libavcodec/hap.h

index e06f933ba83e3bee23edefe0ea51312109973df9..a0fc2e0bf38d1215703e09d44b1a7cadb5049883 100644 (file)
 #include "bytestream.h"
 #include "texturedsp.h"
 
+enum HapTextureFormat {
+    HAP_FMT_RGBDXT1   = 0x0B,
+    HAP_FMT_RGBADXT5  = 0x0E,
+    HAP_FMT_YCOCGDXT5 = 0x0F,
+};
+
+enum HapCompressor {
+    HAP_COMP_NONE    = 0xA0,
+    HAP_COMP_SNAPPY  = 0xB0,
+    HAP_COMP_COMPLEX = 0xC0,
+};
+
 typedef struct HapContext {
     AVClass *class;
 
     TextureDSPContext dxtc;
     GetByteContext gbc;
-    PutByteContext pbc;
 
     int section_type;        /* Header type */
 
@@ -52,16 +63,4 @@ typedef struct HapContext {
     int (*tex_fun)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block);
 } HapContext;
 
-enum {
-    HAP_FMT_RGBDXT1   = 0x0B,
-    HAP_FMT_RGBADXT5  = 0x0E,
-    HAP_FMT_YCOCGDXT5 = 0x0F,
-};
-
-enum {
-    HAP_COMP_NONE    = 0xA0,
-    HAP_COMP_SNAPPY  = 0xB0,
-    HAP_COMP_COMPLEX = 0xC0,
-};
-
 #endif /* AVCODEC_HAP_H */