comparison src/libSAD/dither.h @ 4234:b293ce14a01a

partially works...
author Eugene Zagidullin <e.asphyx@gmail.com>
date Thu, 31 Jan 2008 12:04:13 +0300
parents 74c6f3d3cf1d
children 9a55e8237988
comparison
equal deleted inserted replaced
4233:74c6f3d3cf1d 4234:b293ce14a01a
18 */ 18 */
19 19
20 #ifndef DITHER_H 20 #ifndef DITHER_H
21 #define DITHER_H 21 #define DITHER_H
22 22
23 #include "libSAD.h" 23 #include "common.h"
24 24
25 #define SAD_ERROR_INCORRECT_INPUT_SAMPLEFORMAT -2 25 #define SAD_ERROR_INCORRECT_INPUT_SAMPLEFORMAT -2
26 #define SAD_ERROR_INCORRECT_OUTPUT_SAMPLEFORMAT -3 26 #define SAD_ERROR_INCORRECT_OUTPUT_SAMPLEFORMAT -3
27 #define SAD_ERROR_CORRUPTED_PRIVATE_DATA -4 27 #define SAD_ERROR_CORRUPTED_PRIVATE_DATA -4
28 28
35 } SAD_buffer_ops; 35 } SAD_buffer_ops;
36 36
37 /* private data */ 37 /* private data */
38 typedef struct {} SAD_dither_t; 38 typedef struct {} SAD_dither_t;
39 39
40 void SAD_dither_init_rand(uint32_t seed);
41
40 SAD_dither_t* SAD_dither_init(SAD_buffer_format *inbuf_format, SAD_buffer_format *outbuf_format, int *error); 42 SAD_dither_t* SAD_dither_init(SAD_buffer_format *inbuf_format, SAD_buffer_format *outbuf_format, int *error);
41 int SAD_dither_free(SAD_dither_t* state); 43 int SAD_dither_free(SAD_dither_t* state);
42 int SAD_dither_process_buffer (SAD_dither_t *state, void *inbuf, void *outbuf, int frames); 44 int SAD_dither_process_buffer (SAD_dither_t *state, void *inbuf, void *outbuf, int frames);
43 int SAD_dither_apply_replaygain (SAD_dither_t *state, SAD_replaygain_info *rg_info, SAD_replaygain_mode *mode); 45 int SAD_dither_apply_replaygain (SAD_dither_t *state, SAD_replaygain_info *rg_info, SAD_replaygain_mode *mode);
44 int SAD_dither_set_scale (SAD_dither_t *state, float scale); 46 int SAD_dither_set_scale (SAD_dither_t *state, float scale);