]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dirac.h
lavc: add JNI support
[ffmpeg] / libavcodec / dirac.h
index cb80fdc1bffb29497e92ff2b188cedeb506155f9..e6d9d346d9cc13c23092f5e1f4501d20157e1def 100644 (file)
 
 #include "avcodec.h"
 
+/**
+ * The spec limits the number of wavelet decompositions to 4 for both
+ * level 1 (VC-2) and 128 (long-gop default).
+ * 5 decompositions is the maximum before >16-bit buffers are needed.
+ * Schroedinger allows this for DD 9,7 and 13,7 wavelets only, limiting
+ * the others to 4 decompositions (or 3 for the fidelity filter).
+ *
+ * We use this instead of MAX_DECOMPOSITIONS to save some memory.
+ */
+#define MAX_DWT_LEVELS 5
+
 /**
  * Parse code values:
  *