]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/elbg.h
Merge remote branch 'qatar/master'
[ffmpeg] / libavcodec / elbg.h
index ab711b5b7cedc474d00e57be60dc4bc4f5a9a7f7..e6f577e3e5bc13c61477228b22d9de9742a4f4bf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007 Vitor <vitor1001@gmail.com>
+ * Copyright (C) 2007 Vitor Sessak <vitor1001@gmail.com>
  *
  * This file is part of FFmpeg.
  *
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "random.h"
+#ifndef AVCODEC_ELBG_H
+#define AVCODEC_ELBG_H
+
+#include "libavutil/lfg.h"
 
 /**
  * Implementation of the Enhanced LBG Algorithm
  * @param numCB Number of points in the codebook.
  * @param num_steps The maximum number of steps. One step is already a good compromise between time and quality.
  * @param closest_cb Return the closest codebook to each point. Must be allocated.
- * @param rand_state A random number generator state. Should be already initialised by av_init_random.
+ * @param rand_state A random number generator state. Should be already initialized by av_lfg_init().
  */
 void ff_do_elbg(int *points, int dim, int numpoints, int *codebook,
                 int numCB, int num_steps, int *closest_cb,
-                AVRandomState *rand_state);
+                AVLFG *rand_state);
 
 /**
  * Initialize the **codebook vector for the elbg algorithm. If you have already
@@ -47,4 +50,6 @@ void ff_do_elbg(int *points, int dim, int numpoints, int *codebook,
  */
 void ff_init_elbg(int *points, int dim, int numpoints, int *codebook,
                   int numCB, int num_steps, int *closest_cb,
-                  AVRandomState *rand_state);
+                  AVLFG *rand_state);
+
+#endif /* AVCODEC_ELBG_H */