00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00045 #ifndef RAPP_PIXOP_H
00046 #define RAPP_PIXOP_H
00047
00048 #include <stdint.h>
00049 #include "rapp_export.h"
00050
00051 #ifdef __cplusplus
00052 extern "C" {
00053 #endif
00054
00055
00056
00057
00058
00059
00060
00072 RAPP_EXPORT int
00073 rapp_pixop_set_u8(uint8_t *buf, int dim,
00074 int width, int height, unsigned value);
00075
00086 RAPP_EXPORT int
00087 rapp_pixop_not_u8(uint8_t *buf, int dim, int width, int height);
00088
00100 RAPP_EXPORT int
00101 rapp_pixop_flip_u8(uint8_t *buf, int dim, int width, int height);
00102
00115 RAPP_EXPORT int
00116 rapp_pixop_lut_u8(uint8_t *restrict buf, int dim,
00117 int width, int height, const uint8_t *restrict lut);
00118
00129 RAPP_EXPORT int
00130 rapp_pixop_abs_u8(uint8_t *buf, int dim, int width, int height);
00131
00143 RAPP_EXPORT int
00144 rapp_pixop_addc_u8(uint8_t *buf, int dim, int width, int height, int value);
00145
00161 RAPP_EXPORT int
00162 rapp_pixop_lerpc_u8(uint8_t *buf, int dim, int width,
00163 int height, unsigned value, unsigned alpha8);
00164
00181 RAPP_EXPORT int
00182 rapp_pixop_lerpnc_u8(uint8_t *buf, int dim, int width,
00183 int height, unsigned value, unsigned alpha8);
00184
00197 RAPP_EXPORT int
00198 rapp_pixop_copy_u8(uint8_t *restrict dst, int dst_dim,
00199 const uint8_t *restrict src, int src_dim,
00200 int width, int height);
00201
00214 RAPP_EXPORT int
00215 rapp_pixop_add_u8(uint8_t *restrict dst, int dst_dim,
00216 const uint8_t *restrict src, int src_dim,
00217 int width, int height);
00218
00231 RAPP_EXPORT int
00232 rapp_pixop_avg_u8(uint8_t *restrict dst, int dst_dim,
00233 const uint8_t *restrict src, int src_dim,
00234 int width, int height);
00235
00248 RAPP_EXPORT int
00249 rapp_pixop_sub_u8(uint8_t *restrict dst, int dst_dim,
00250 const uint8_t *restrict src, int src_dim,
00251 int width, int height);
00252
00265 RAPP_EXPORT int
00266 rapp_pixop_subh_u8(uint8_t *restrict dst, int dst_dim,
00267 const uint8_t *restrict src, int src_dim,
00268 int width, int height);
00269
00282 RAPP_EXPORT int
00283 rapp_pixop_suba_u8(uint8_t *restrict dst, int dst_dim,
00284 const uint8_t *restrict src, int src_dim,
00285 int width, int height);
00286
00302 RAPP_EXPORT int
00303 rapp_pixop_lerp_u8(uint8_t *restrict dst, int dst_dim,
00304 const uint8_t *restrict src, int src_dim,
00305 int width, int height, unsigned alpha8);
00306
00323 RAPP_EXPORT int
00324 rapp_pixop_lerpn_u8(uint8_t *restrict dst, int dst_dim,
00325 const uint8_t *restrict src, int src_dim,
00326 int width, int height, unsigned alpha8);
00327
00344 RAPP_EXPORT int
00345 rapp_pixop_lerpi_u8(uint8_t *restrict dst, int dst_dim,
00346 const uint8_t *restrict src, int src_dim,
00347 int width, int height, unsigned alpha8);
00348
00361 RAPP_EXPORT int
00362 rapp_pixop_norm_u8(uint8_t *restrict dst, int dst_dim,
00363 const uint8_t *restrict src, int src_dim,
00364 int width, int height);
00365
00366 #ifdef __cplusplus
00367 };
00368 #endif
00369
00370 #endif
00371