diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-12-02 10:36:11 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-12-02 10:36:11 +0100 |
commit | 7098be23b924d1b96143aaaf42f7bc02cb60fe19 (patch) | |
tree | 9074e4bb746a42c495aaa700cd7151c4416356c1 /src | |
parent | 57f2f8976b37ba6f6ec188c77e38cd854d594233 (diff) | |
download | libufodecode-7098be23b924d1b96143aaaf42f7bc02cb60fe19.tar.gz libufodecode-7098be23b924d1b96143aaaf42f7bc02cb60fe19.tar.bz2 libufodecode-7098be23b924d1b96143aaaf42f7bc02cb60fe19.tar.xz libufodecode-7098be23b924d1b96143aaaf42f7bc02cb60fe19.zip |
Add documentation and split CMakeLists
Diffstat (limited to 'src')
-rw-r--r-- | src/ufodecode.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/ufodecode.c b/src/ufodecode.c index b2c496a..a6a89dc 100644 --- a/src/ufodecode.c +++ b/src/ufodecode.c @@ -11,17 +11,23 @@ #include <xmmintrin.h> #endif -#define IPECAMERA_NUM_CHANNELS 16 -#define IPECAMERA_PIXELS_PER_CHANNEL 128 -#define IPECAMERA_WIDTH (IPECAMERA_NUM_CHANNELS * IPECAMERA_PIXELS_PER_CHANNEL) +#define IPECAMERA_NUM_CHANNELS 16 /**< Number of channels per row */ +#define IPECAMERA_PIXELS_PER_CHANNEL 128 /**< Number of pixels per channel */ +#define IPECAMERA_WIDTH (IPECAMERA_NUM_CHANNELS * IPECAMERA_PIXELS_PER_CHANNEL) /**< Total pixel width of row */ +/** + * Check if value matches expected input. + */ #define CHECK_VALUE(value, expected) \ if (value != expected) { \ fprintf(stderr, "<%s:%i> 0x%x != 0x%x\n", __FILE__, __LINE__, value, expected); \ err = 1; \ } +/** + * Check that flag evaluates to non-zero. + */ #define CHECK_FLAG(flag, check, ...) \ if (!(check)) { \ fprintf(stderr, "<%s:%i> Unexpected value 0x%x of " flag "\n", __FILE__, __LINE__, __VA_ARGS__); \ @@ -200,7 +206,7 @@ static int ufo_decode_frame(uint16_t *pixel_buffer, uint32_t *raw, int num_rows, * \param in Input frame * \param out Destination of interpolated frame * \param width Width of frame in pixels - * \param heigh Height of frame in pixels + * \param height Height of frame in pixels */ void ufo_deinterlace_interpolate(const uint16_t *in, uint16_t *out, int width, int height) { @@ -230,7 +236,7 @@ void ufo_deinterlace_interpolate(const uint16_t *in, uint16_t *out, int width, i * \param in2 Second frame * \param out Destination of weaved frame * \param width Width of frame in pixels - * \param heigh Height of frame in pixels + * \param height Height of frame in pixels */ void ufo_deinterlace_weave(const uint16_t *in1, const uint16_t *in2, uint16_t *out, int width, int height) { |