#include "cap.h"
#include "transcode.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
Go to the source code of this file.
|
| static int | deck_add_card (struct cap_deck *d) |
| |
| static int | card_add_col (struct cap_card *c, uint16_t val) |
| |
| static int | is_hex4 (const char *s) |
| |
| static int | parse_card_header (const char *line, int *card_num) |
| |
| struct cap_deck * | cap_load (const char *path) |
| |
| struct cap_deck * | cap_create (void) |
| |
| int | cap_num_cards (const struct cap_deck *d) |
| |
| int | cap_card_ncols (const struct cap_deck *d, int i) |
| |
| const uint16_t * | cap_card_columns (const struct cap_deck *d, int i) |
| |
| int | cap_append_card (struct cap_deck *d, const uint16_t *cols, int ncols) |
| |
| int | cap_save (const struct cap_deck *d, const char *path) |
| |
| void | cap_free (struct cap_deck *d) |
| |
| static int | scat_decode_card (const uint16_t *cols, int ncols, int mode, uint8_t out[80]) |
| |
| static char | isolation_ident_char (uint16_t col) |
| |
| static int | isolation_ident_value (char a, char b, char c) |
| |
| static int | scat_detect_prefix (const struct cap_deck *d, int mode, uint8_t out[8], int *eligible_cards) |
| |
| const char * | cap_family_name (enum cap_deck_family family) |
| |
| enum cap_deck_family | cap_detect_family (const struct cap_deck *d, int mode, struct cap_deck_info *info) |
| |
| int | cap_load_scattered (const char *path, int mode, unsigned char *image, unsigned *lo, unsigned *hi) |
| |
| int | cap_load_isolation_stream (const char *path, unsigned char *image, unsigned org, unsigned *lo, unsigned *hi) |
| |
◆ CAP_MIN_ISOLATION_CARDS
| #define CAP_MIN_ISOLATION_CARDS 8 |
Definition at line 23 of file cap.c.
◆ CAP_MIN_SCATTER_PREFIX_CARDS
| #define CAP_MIN_SCATTER_PREFIX_CARDS 4 |
Definition at line 22 of file cap.c.
◆ cap_append_card()
| int cap_append_card |
( |
struct cap_deck * |
d, |
|
|
const uint16_t * |
cols, |
|
|
int |
ncols |
|
) |
| |
◆ cap_card_columns()
| const uint16_t * cap_card_columns |
( |
const struct cap_deck * |
d, |
|
|
int |
i |
|
) |
| |
◆ cap_card_ncols()
| int cap_card_ncols |
( |
const struct cap_deck * |
d, |
|
|
int |
i |
|
) |
| |
◆ cap_create()
◆ cap_detect_family()
◆ cap_family_name()
◆ cap_free()
◆ cap_load()
| struct cap_deck * cap_load |
( |
const char * |
path | ) |
|
◆ cap_load_isolation_stream()
| int cap_load_isolation_stream |
( |
const char * |
path, |
|
|
unsigned char * |
image, |
|
|
unsigned |
org, |
|
|
unsigned * |
lo, |
|
|
unsigned * |
hi |
|
) |
| |
◆ cap_load_scattered()
| int cap_load_scattered |
( |
const char * |
path, |
|
|
int |
mode, |
|
|
unsigned char * |
image, |
|
|
unsigned * |
lo, |
|
|
unsigned * |
hi |
|
) |
| |
◆ cap_num_cards()
| int cap_num_cards |
( |
const struct cap_deck * |
d | ) |
|
◆ cap_save()
| int cap_save |
( |
const struct cap_deck * |
d, |
|
|
const char * |
path |
|
) |
| |
◆ card_add_col()
| static int card_add_col |
( |
struct cap_card * |
c, |
|
|
uint16_t |
val |
|
) |
| |
|
static |
Definition at line 65 of file cap.c.
◆ deck_add_card()
| static int deck_add_card |
( |
struct cap_deck * |
d | ) |
|
|
static |
Definition at line 46 of file cap.c.
◆ is_hex4()
| static int is_hex4 |
( |
const char * |
s | ) |
|
|
static |
Definition at line 83 of file cap.c.
◆ isolation_ident_char()
| static char isolation_ident_char |
( |
uint16_t |
col | ) |
|
|
static |
◆ isolation_ident_value()
| static int isolation_ident_value |
( |
char |
a, |
|
|
char |
b, |
|
|
char |
c |
|
) |
| |
|
static |
◆ parse_card_header()
| static int parse_card_header |
( |
const char * |
line, |
|
|
int * |
card_num |
|
) |
| |
|
static |
Definition at line 97 of file cap.c.
◆ scat_decode_card()
| static int scat_decode_card |
( |
const uint16_t * |
cols, |
|
|
int |
ncols, |
|
|
int |
mode, |
|
|
uint8_t |
out[80] |
|
) |
| |
|
static |
◆ scat_detect_prefix()
| static int scat_detect_prefix |
( |
const struct cap_deck * |
d, |
|
|
int |
mode, |
|
|
uint8_t |
out[8], |
|
|
int * |
eligible_cards |
|
) |
| |
|
static |