rc_stat.h

Go to the documentation of this file.
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 
00033 #ifndef RC_STAT_H
00034 #define RC_STAT_H
00035 
00036 #include <stdint.h>
00037 #include "rc_export.h"
00038 
00039 #ifdef __cplusplus
00040 extern "C" {
00041 #endif
00042 
00043 
00044 /*
00045  * -------------------------------------------------------------
00046  *  Exported functions
00047  * -------------------------------------------------------------
00048  */
00049 
00059 RC_EXPORT uint32_t
00060 rc_stat_sum_bin(const uint8_t *buf, int dim, int width, int height);
00061 
00071 RC_EXPORT uint32_t
00072 rc_stat_sum_u8(const uint8_t *buf, int dim, int width, int height);
00073 
00083 RC_EXPORT void
00084 rc_stat_sum2_u8(const uint8_t *buf, int dim,
00085                 int width, int height, uintmax_t sum[2]);
00086 
00099 RC_EXPORT void
00100 rc_stat_xsum_u8(const uint8_t *restrict src1, int src1_dim,
00101                 const uint8_t *restrict src2, int src2_dim,
00102                 int width, int height, uintmax_t sum[5]);
00103 
00113 RC_EXPORT int
00114 rc_stat_min_bin(const uint8_t *buf, int dim, int width, int height);
00115 
00125 RC_EXPORT int
00126 rc_stat_max_bin(const uint8_t *buf, int dim, int width, int height);
00127 /* @cond */
00128 #ifdef RAPP_FORCE_EXPORT
00129 /* Used for internal references when tuning. */
00130 int
00131 rc_stat_max_bin__internal(const uint8_t *buf, int dim, int width, int height);
00132 #else
00133 #define rc_stat_max_bin__internal rc_stat_max_bin
00134 #endif
00135 /* @endcond */
00136 
00146 RC_EXPORT int
00147 rc_stat_min_u8(const uint8_t *buf, int dim, int width, int height);
00148 
00158 RC_EXPORT int
00159 rc_stat_max_u8(const uint8_t *buf, int dim, int width, int height);
00160 
00161 #ifdef __cplusplus
00162 };
00163 #endif
00164 
00165 #endif /* RC_STAT_H */

Generated on 1 Jun 2016 for RAPP Compute by  doxygen 1.6.1