summaryrefslogtreecommitdiff
path: root/libavcodec/elbg.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-16 20:10:56 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-24 00:01:27 +0200
commit6b2c1d10185592442988ec5332ac57eb48dea4b6 (patch)
tree694ae66b9b68ab829a6be2a2c7b6b4b405188b21 /libavcodec/elbg.h
parent6afad4c7e9b9abd785d2b769cbcba3eee4714d48 (diff)
downloadffmpeg-6b2c1d10185592442988ec5332ac57eb48dea4b6.tar.gz
avcodec/elbg: Add flags to avpriv_elbg_do()
This is currently unused and it is only added to enable changes while maintaining ABI compatibility. The type is uintptr_t in order to potentially accept a pointer argument. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/elbg.h')
-rw-r--r--libavcodec/elbg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/elbg.h b/libavcodec/elbg.h
index abeeb4ff44..34d96846b1 100644
--- a/libavcodec/elbg.h
+++ b/libavcodec/elbg.h
@@ -21,6 +21,7 @@
#ifndef AVCODEC_ELBG_H
#define AVCODEC_ELBG_H
+#include <stdint.h>
#include "libavutil/lfg.h"
struct ELBGContext;
@@ -41,11 +42,12 @@ struct ELBGContext;
* @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 initialized by av_lfg_init().
+ * @param flags Currently unused; must be set to 0.
* @return < 0 in case of error, 0 otherwise
*/
int avpriv_elbg_do(struct ELBGContext **ctx, int *points, int dim,
int numpoints, int *codebook, int num_cb, int num_steps,
- int *closest_cb, AVLFG *rand_state);
+ int *closest_cb, AVLFG *rand_state, uintptr_t flags);
/**
* Free an ELBGContext and reset the pointer to it.