areaDetector
3-14
EPICS areaDetector framework
|
#include <stdio.h>
#include <stddef.h>
#include <math.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "types.h"
#include "mar3xx_pck.h"
Macros | |
#define | PACKIDENTIFIER "\nCCP4 packed image, X: %04d, Y: %04d\n" |
#define | PACKBUFSIZ BUFSIZ |
#define | DIFFBUFSIZ 16384 |
#define | max(x, y) (((x) > (y)) ? (x) : (y)) |
#define | min(x, y) (((x) < (y)) ? (x) : (y)) |
#define | abs(x) (((x) < 0) ? (-(x)) : (x)) |
#define | shift_left(x, n) (((x) & setbits[32 - (n)]) << (n)) |
#define | shift_right(x, n) (((x) >> (n)) & setbits[32 - (n)]) |
Functions | |
int | put_pck (INT16 *img, int x, int y, int fdesc) |
void | get_pck (FILE *fp, INT16 *img) |
Variables | |
const INT32 | setbits [33] |
#define abs | ( | x | ) | (((x) < 0) ? (-(x)) : (x)) |
#define DIFFBUFSIZ 16384 |
#define max | ( | x, | |
y | |||
) | (((x) > (y)) ? (x) : (y)) |
#define min | ( | x, | |
y | |||
) | (((x) < (y)) ? (x) : (y)) |
#define PACKBUFSIZ BUFSIZ |
#define PACKIDENTIFIER "\nCCP4 packed image, X: %04d, Y: %04d\n" |
#define shift_left | ( | x, | |
n | |||
) | (((x) & setbits[32 - (n)]) << (n)) |
#define shift_right | ( | x, | |
n | |||
) | (((x) >> (n)) & setbits[32 - (n)]) |
void get_pck | ( | FILE * | fp, |
INT16 * | img | ||
) |
int put_pck | ( | INT16 * | img, |
int | x, | ||
int | y, | ||
int | fdesc | ||
) |
const INT32 setbits[33] |