summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/float_array_to_uchar.h
blob: 27af0f01453801234b2ca157a58c6ed9b5855722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* -*- c++ -*- */
/*
 * Copyright 2002,2012 Free Software Foundation, Inc.
 *
 * This file is part of GNU Radio
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 *
 */

#ifndef INCLUDED_FLOAT_ARRAY_TO_UCHAR_H
#define INCLUDED_FLOAT_ARRAY_TO_UCHAR_H

#include <gnuradio/blocks/api.h>

/*!
 * convert array of floats to unsigned chars with rounding and saturation.
 */
BLOCKS_API void float_array_to_uchar(const float* in, unsigned char* out, int nsamples);

#endif /* INCLUDED_FLOAT_ARRAY_TO_UCHAR_H */