#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include "pullup.h"
#include "cpudetect.h"
Go to the source code of this file.
Defines | |
#define | ABS(a) (((a)^((a)>>31))-((a)>>31)) |
#define | F_HAVE_BREAKS 1 |
#define | F_HAVE_AFFINITY 2 |
#define | BREAK_LEFT 1 |
#define | BREAK_RIGHT 2 |
Functions | |
static int | diff_y (unsigned char *a, unsigned char *b, int s) |
static int | licomb_y (unsigned char *a, unsigned char *b, int s) |
static int | var_y (unsigned char *a, unsigned char *b, int s) |
static void | alloc_buffer (struct pullup_context *c, struct pullup_buffer *b) |
struct pullup_buffer * | pullup_lock_buffer (struct pullup_buffer *b, int parity) |
void | pullup_release_buffer (struct pullup_buffer *b, int parity) |
struct pullup_buffer * | pullup_get_buffer (struct pullup_context *c, int parity) |
static void | compute_metric (struct pullup_context *c, struct pullup_field *fa, int pa, struct pullup_field *fb, int pb, int(*func)(unsigned char *, unsigned char *, int), int *dest) |
static void | alloc_metrics (struct pullup_context *c, struct pullup_field *f) |
static struct pullup_field * | make_field_queue (struct pullup_context *c, int len) |
static void | check_field_queue (struct pullup_context *c) |
void | pullup_submit_field (struct pullup_context *c, struct pullup_buffer *b, int parity) |
void | pullup_flush_fields (struct pullup_context *c) |
static int | queue_length (struct pullup_field *begin, struct pullup_field *end) |
static int | find_first_break (struct pullup_field *f, int max) |
static void | compute_breaks (struct pullup_context *c, struct pullup_field *f0) |
static void | compute_affinity (struct pullup_context *c, struct pullup_field *f) |
static void | foo (struct pullup_context *c) |
static int | decide_frame_length (struct pullup_context *c) |
static void | print_aff_and_breaks (struct pullup_context *c, struct pullup_field *f) |
struct pullup_frame * | pullup_get_frame (struct pullup_context *c) |
static void | copy_field (struct pullup_context *c, struct pullup_buffer *dest, struct pullup_buffer *src, int parity) |
void | pullup_pack_frame (struct pullup_context *c, struct pullup_frame *fr) |
void | pullup_release_frame (struct pullup_frame *fr) |
struct pullup_context * | pullup_alloc_context (void) |
void | pullup_preinit_context (struct pullup_context *c) |
void | pullup_init_context (struct pullup_context *c) |
void | pullup_free_context (struct pullup_context *c) |
#define ABS | ( | a | ) | (((a)^((a)>>31))-((a)>>31)) |
Definition at line 214 of file pullup.c.
Referenced by compute_affinity(), diff_y(), filter(), licomb_y(), PrecalcCoefs(), and var_y().
#define BREAK_LEFT 1 |
Definition at line 464 of file pullup.c.
Referenced by compute_breaks(), decide_frame_length(), find_first_break(), and print_aff_and_breaks().
#define BREAK_RIGHT 2 |
Definition at line 465 of file pullup.c.
Referenced by compute_breaks(), decide_frame_length(), find_first_break(), and print_aff_and_breaks().
#define F_HAVE_AFFINITY 2 |
#define F_HAVE_BREAKS 1 |
static void alloc_buffer | ( | struct pullup_context * | c, | |
struct pullup_buffer * | b | |||
) | [static] |
static void alloc_metrics | ( | struct pullup_context * | c, | |
struct pullup_field * | f | |||
) | [static] |
static void check_field_queue | ( | struct pullup_context * | c | ) | [static] |
static void compute_affinity | ( | struct pullup_context * | c, | |
struct pullup_field * | f | |||
) | [static] |
static void compute_breaks | ( | struct pullup_context * | c, | |
struct pullup_field * | f0 | |||
) | [static] |
static void compute_metric | ( | struct pullup_context * | c, | |
struct pullup_field * | fa, | |||
int | pa, | |||
struct pullup_field * | fb, | |||
int | pb, | |||
int(*)(unsigned char *, unsigned char *, int) | func, | |||
int * | dest | |||
) | [static] |
static void copy_field | ( | struct pullup_context * | c, | |
struct pullup_buffer * | dest, | |||
struct pullup_buffer * | src, | |||
int | parity | |||
) | [static] |
static int decide_frame_length | ( | struct pullup_context * | c | ) | [static] |
static int diff_y | ( | unsigned char * | a, | |
unsigned char * | b, | |||
int | s | |||
) | [static] |
static int find_first_break | ( | struct pullup_field * | f, | |
int | max | |||
) | [static] |
static void foo | ( | struct pullup_context * | c | ) | [static] |
static int licomb_y | ( | unsigned char * | a, | |
unsigned char * | b, | |||
int | s | |||
) | [static] |
static struct pullup_field* make_field_queue | ( | struct pullup_context * | c, | |
int | len | |||
) | [static, read] |
static void print_aff_and_breaks | ( | struct pullup_context * | c, | |
struct pullup_field * | f | |||
) | [static] |
struct pullup_context* pullup_alloc_context | ( | void | ) | [read] |
void pullup_flush_fields | ( | struct pullup_context * | c | ) |
void pullup_free_context | ( | struct pullup_context * | c | ) |
struct pullup_buffer* pullup_get_buffer | ( | struct pullup_context * | c, | |
int | parity | |||
) | [read] |
struct pullup_frame* pullup_get_frame | ( | struct pullup_context * | c | ) | [read] |
void pullup_init_context | ( | struct pullup_context * | c | ) |
struct pullup_buffer* pullup_lock_buffer | ( | struct pullup_buffer * | b, | |
int | parity | |||
) | [read] |
Definition at line 291 of file pullup.c.
Referenced by pullup_get_buffer(), pullup_get_frame(), pullup_pack_frame(), and pullup_submit_field().
void pullup_pack_frame | ( | struct pullup_context * | c, | |
struct pullup_frame * | fr | |||
) |
void pullup_preinit_context | ( | struct pullup_context * | c | ) |
void pullup_release_buffer | ( | struct pullup_buffer * | b, | |
int | parity | |||
) |
Definition at line 299 of file pullup.c.
Referenced by pullup_flush_fields(), pullup_release_frame(), and put_image().
void pullup_release_frame | ( | struct pullup_frame * | fr | ) |
void pullup_submit_field | ( | struct pullup_context * | c, | |
struct pullup_buffer * | b, | |||
int | parity | |||
) |
static int queue_length | ( | struct pullup_field * | begin, | |
struct pullup_field * | end | |||
) | [static] |
static int var_y | ( | unsigned char * | a, | |
unsigned char * | b, | |||
int | s | |||
) | [static] |