00001 /* Copyright (C) 2005-2010, Axis Communications AB, LUND, SWEDEN 00002 * 00003 * This file is part of RAPP. 00004 * 00005 * RAPP is free software: you can redistribute it and/or modify 00006 * it under the terms of the GNU Lesser General Public License as published 00007 * by the Free Software Foundation, either version 3 of the License, or 00008 * (at your option) any later version. 00009 * You can use the comments under either the terms of the GNU Lesser General 00010 * Public License version 3 as published by the Free Software Foundation, 00011 * either version 3 of the License or (at your option) any later version, or 00012 * the GNU Free Documentation License version 1.3 or any later version 00013 * published by the Free Software Foundation; with no Invariant Sections, no 00014 * Front-Cover Texts, and no Back-Cover Texts. 00015 * A copy of the license is included in the documentation section entitled 00016 * "GNU Free Documentation License". 00017 * 00018 * RAPP is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 * GNU Lesser General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU Lesser General Public 00024 * License and a copy of the GNU Free Documentation License along 00025 * with RAPP. If not, see <http://www.gnu.org/licenses/>. 00026 */ 00027 00048 #ifndef RAPP_STAT_H 00049 #define RAPP_STAT_H 00050 00051 #include <stdint.h> 00052 #include "rapp_export.h" 00053 00054 #ifdef __cplusplus 00055 extern "C" { 00056 #endif 00057 00058 /* 00059 * ------------------------------------------------------------- 00060 * Exported functions 00061 * ------------------------------------------------------------- 00062 */ 00063 00076 RAPP_EXPORT int32_t 00077 rapp_stat_sum_bin(const uint8_t *buf, int dim, int width, int height); 00078 00093 RAPP_EXPORT int32_t 00094 rapp_stat_sum_u8(const uint8_t *buf, int dim, int width, int height); 00095 00111 RAPP_EXPORT int 00112 rapp_stat_sum2_u8(const uint8_t *buf, int dim, 00113 int width, int height, uintmax_t sum[2]); 00114 00137 RAPP_EXPORT int 00138 rapp_stat_xsum_u8(const uint8_t *restrict src1, int src1_dim, 00139 const uint8_t *restrict src2, int src2_dim, 00140 int width, int height, uintmax_t sum[5]); 00141 00154 RAPP_EXPORT int 00155 rapp_stat_min_bin(const uint8_t *buf, int dim, int width, int height); 00156 00169 RAPP_EXPORT int 00170 rapp_stat_max_bin(const uint8_t *buf, int dim, int width, int height); 00171 00184 RAPP_EXPORT int 00185 rapp_stat_min_u8(const uint8_t *buf, int dim, int width, int height); 00186 00199 RAPP_EXPORT int 00200 rapp_stat_max_u8(const uint8_t *buf, int dim, int width, int height); 00201 00202 #ifdef __cplusplus 00203 }; 00204 #endif 00205 00206 #endif /* RAPP_STAT_H */ 00207