From 84a3971982ddd04f3e8cab8be69ae07ef201010d Mon Sep 17 00:00:00 2001 From: rimio Date: Mon, 11 Feb 2019 00:00:26 +0200 Subject: Sub-sample accuracy --- src/sstv.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sstv.c') diff --git a/src/sstv.c b/src/sstv.c index 3365bee..9a6055e 100644 --- a/src/sstv.c +++ b/src/sstv.c @@ -21,9 +21,13 @@ #define CYCbCr2G(Y, Cb, Cr) CLIP( Y - (( 22544 * Cb + 46793 * Cr ) >> 16) + 135) #define CYCbCr2B(Y, Cb, Cr) CLIP( Y + (116129 * Cb >> 16 ) - 226 ) +/* + * User-defined memory allocation functions + */ sstv_malloc_t sstv_malloc_user = NULL; sstv_free_t sstv_free_user = NULL; + sstv_error_t sstv_init(sstv_malloc_t alloc_func, sstv_free_t dealloc_func) { -- cgit v1.2.3