diff src/libSAD/dither.c @ 4234:b293ce14a01a

partially works...
author Eugene Zagidullin <e.asphyx@gmail.com>
date Thu, 31 Jan 2008 12:04:13 +0300
parents 74c6f3d3cf1d
children 2d4b4f13d10d
line wrap: on
line diff
--- a/src/libSAD/dither.c	Wed Jan 30 03:36:22 2008 +0300
+++ b/src/libSAD/dither.c	Thu Jan 31 12:04:13 2008 +0300
@@ -18,7 +18,7 @@
  */
 
 
-#include "libSAD.h"
+#include "common.h"
 #include "dither_ops.h"
 #include "noicegen.h"
 
@@ -303,6 +303,7 @@
     case SAD_SAMPLE_S8:
     case SAD_SAMPLE_U8: priv->output_bits = 8; break;
     case SAD_SAMPLE_S16:
+    case SAD_SAMPLE_S16_LE:
     case SAD_SAMPLE_U16: priv->output_bits = 16; break;
     case SAD_SAMPLE_S24:
     case SAD_SAMPLE_U24: priv->output_bits = 24; break;
@@ -319,6 +320,7 @@
     case SAD_SAMPLE_S8:
     case SAD_SAMPLE_U8: priv->input_bits = 8; break;
     case SAD_SAMPLE_S16:
+    case SAD_SAMPLE_S16_LE:
     case SAD_SAMPLE_U16: priv->input_bits = 16; break;
     case SAD_SAMPLE_S24:
     case SAD_SAMPLE_U24: priv->input_bits = 24; break;
@@ -490,3 +492,7 @@
   priv->dither = dither;
   return SAD_ERROR_OK;
 }
+
+void SAD_dither_init_rand(uint32_t seed) {
+  noicegen_init_rand(seed);
+}