SharpenEngine Class Reference

#include <sharpen.h>

Inherits Thread.

Collaboration diagram for SharpenEngine:

Collaboration graph
[legend]

Public Member Functions

 SharpenEngine (SharpenMain *plugin)
 ~SharpenEngine ()
int start_process_frame (VFrame *output, VFrame *input, int field)
int wait_process_frame ()
void run ()
void filter (int components, int vmax, int w, unsigned char *src, unsigned char *dst, int *neg0, int *neg1, int *neg2)
void filter (int components, int vmax, int w, u_int16_t *src, u_int16_t *dst, int *neg0, int *neg1, int *neg2)
void filter (int components, int vmax, int w, float *src, float *dst, float *neg0, float *neg1, float *neg2)
void filter_888 (int w, unsigned char *src, unsigned char *dst, int *neg0, int *neg1, int *neg2)
void filter_8888 (int w, unsigned char *src, unsigned char *dst, int *neg0, int *neg1, int *neg2)
void filter_161616 (int w, u_int16_t *src, u_int16_t *dst, int *neg0, int *neg1, int *neg2)
void filter_16161616 (int w, u_int16_t *src, u_int16_t *dst, int *neg0, int *neg1, int *neg2)
int filter (int w, unsigned char *src, unsigned char *dst, int *neg0, int *neg1, int *neg2)
float calculate_pos (float value)
float calculate_neg (float value)

Data Fields

SharpenMainplugin
int field
VFrameoutput
VFrameinput
int last_frame
Conditioninput_lock
Conditionoutput_lock
unsigned char * src_rows [4]
unsigned char * dst_row
unsigned char * neg_rows [4]
float sharpness_coef

Detailed Description

Definition at line 78 of file sharpen.h.


Constructor & Destructor Documentation

SharpenEngine::SharpenEngine ( SharpenMain plugin  ) 

Definition at line 284 of file quark.C.

References input_lock, last_frame, Condition::lock(), neg_rows, output_lock, and Thread::set_synchronous().

Here is the call graph for this function:

SharpenEngine::~SharpenEngine (  ) 

Definition at line 298 of file quark.C.

References input_lock, Thread::join(), last_frame, neg_rows, and Condition::unlock().

Here is the call graph for this function:


Member Function Documentation

int SharpenEngine::start_process_frame ( VFrame output,
VFrame input,
int  field 
)

Definition at line 310 of file quark.C.

References input_lock, and Condition::unlock().

Referenced by SharpenMain::process_realtime().

Here is the call graph for this function:

int SharpenEngine::wait_process_frame (  ) 

Definition at line 319 of file quark.C.

References Condition::lock(), and output_lock.

Referenced by SharpenMain::process_realtime().

Here is the call graph for this function:

void SharpenEngine::run (  )  [virtual]

void SharpenEngine::filter ( int  components,
int  vmax,
int  w,
unsigned char *  src,
unsigned char *  dst,
int *  neg0,
int *  neg1,
int *  neg2 
)

Definition at line 456 of file sharpen.C.

References FILTER.

void SharpenEngine::filter ( int  components,
int  vmax,
int  w,
u_int16_t *  src,
u_int16_t *  dst,
int *  neg0,
int *  neg1,
int *  neg2 
)

Definition at line 444 of file sharpen.C.

References FILTER.

void SharpenEngine::filter ( int  components,
int  vmax,
int  w,
float *  src,
float *  dst,
float *  neg0,
float *  neg1,
float *  neg2 
)

Definition at line 468 of file sharpen.C.

References calculate_pos(), and memcpy.

Here is the call graph for this function:

void SharpenEngine::filter_888 ( int  w,
unsigned char *  src,
unsigned char *  dst,
int *  neg0,
int *  neg1,
int *  neg2 
)

void SharpenEngine::filter_8888 ( int  w,
unsigned char *  src,
unsigned char *  dst,
int *  neg0,
int *  neg1,
int *  neg2 
)

void SharpenEngine::filter_161616 ( int  w,
u_int16_t *  src,
u_int16_t *  dst,
int *  neg0,
int *  neg1,
int *  neg2 
)

void SharpenEngine::filter_16161616 ( int  w,
u_int16_t *  src,
u_int16_t *  dst,
int *  neg0,
int *  neg1,
int *  neg2 
)

int SharpenEngine::filter ( int  w,
unsigned char *  src,
unsigned char *  dst,
int *  neg0,
int *  neg1,
int *  neg2 
)

float SharpenEngine::calculate_pos ( float  value  ) 

Definition at line 358 of file sharpen.C.

References sharpness_coef.

Referenced by calculate_neg(), and filter().

float SharpenEngine::calculate_neg ( float  value  ) 

Definition at line 363 of file sharpen.C.

References calculate_pos().

Here is the call graph for this function:


Field Documentation

Definition at line 150 of file sharpen.h.

Definition at line 151 of file sharpen.h.

Definition at line 152 of file sharpen.h.

Definition at line 152 of file sharpen.h.

Referenced by run().

Definition at line 153 of file sharpen.h.

Referenced by run(), SharpenEngine(), and ~SharpenEngine().

Definition at line 154 of file sharpen.h.

Referenced by run(), SharpenEngine(), start_process_frame(), and ~SharpenEngine().

Definition at line 154 of file sharpen.h.

Referenced by run(), SharpenEngine(), and wait_process_frame().

unsigned char* SharpenEngine::src_rows[4]

Definition at line 155 of file sharpen.h.

unsigned char * SharpenEngine::dst_row

Definition at line 155 of file sharpen.h.

unsigned char* SharpenEngine::neg_rows[4]

Definition at line 156 of file sharpen.h.

Referenced by SharpenEngine(), and ~SharpenEngine().

Definition at line 157 of file sharpen.h.

Referenced by calculate_pos().


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:43:13 2008 for Cinelerra by  doxygen 1.5.5