/alps/ufodecode

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/ufodecode

« back to all changes in this revision

Viewing changes to src/ufodecode.c

  • Committer: Matthias Vogelgesang
  • Date: 2011-12-02 09:36:11 UTC
  • Revision ID: matthias.vogelgesang@kit.edu-20111202093611-f1lx9jlt947p391a
Add documentation and split CMakeLists

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include <xmmintrin.h>
12
12
#endif
13
13
 
14
 
#define IPECAMERA_NUM_CHANNELS 16
15
 
#define IPECAMERA_PIXELS_PER_CHANNEL 128
16
 
#define IPECAMERA_WIDTH (IPECAMERA_NUM_CHANNELS * IPECAMERA_PIXELS_PER_CHANNEL)
17
 
 
18
 
 
 
14
#define IPECAMERA_NUM_CHANNELS 16 /**< Number of channels per row */
 
15
#define IPECAMERA_PIXELS_PER_CHANNEL 128 /**< Number of pixels per channel */
 
16
#define IPECAMERA_WIDTH (IPECAMERA_NUM_CHANNELS * IPECAMERA_PIXELS_PER_CHANNEL) /**< Total pixel width of row */
 
17
 
 
18
 
 
19
/**
 
20
 * Check if value matches expected input.
 
21
 */
19
22
#define CHECK_VALUE(value, expected) \
20
23
    if (value != expected) { \
21
24
        fprintf(stderr, "<%s:%i> 0x%x != 0x%x\n", __FILE__, __LINE__, value, expected); \
22
25
        err = 1; \
23
26
    }
24
27
 
 
28
/**
 
29
 * Check that flag evaluates to non-zero.
 
30
 */
25
31
#define CHECK_FLAG(flag, check, ...) \
26
32
    if (!(check)) { \
27
33
        fprintf(stderr, "<%s:%i> Unexpected value 0x%x of " flag "\n", __FILE__, __LINE__,  __VA_ARGS__); \
200
206
 * \param in Input frame
201
207
 * \param out Destination of interpolated frame
202
208
 * \param width Width of frame in pixels
203
 
 * \param heigh Height of frame in pixels
 
209
 * \param height Height of frame in pixels
204
210
 */
205
211
void ufo_deinterlace_interpolate(const uint16_t *in, uint16_t *out, int width, int height)
206
212
{
230
236
 * \param in2 Second frame
231
237
 * \param out Destination of weaved frame
232
238
 * \param width Width of frame in pixels
233
 
 * \param heigh Height of frame in pixels
 
239
 * \param height Height of frame in pixels
234
240
 */
235
241
void ufo_deinterlace_weave(const uint16_t *in1, const uint16_t *in2, uint16_t *out, int width, int height)
236
242
{