MythTV  master
Functions
quickselect.cpp File Reference
#include "quickselect.h"
Include dependency graph for quickselect.cpp:

Go to the source code of this file.

Functions

template<typename T >
void ELEM_SWAP (T &a, T &b)
 
unsigned char quick_select (unsigned char *arr, int nelems, int select)
 
unsigned char quick_select_median (unsigned char *arr, int nelems)
 
unsigned short quick_select_ushort (unsigned short *arr, int nelems, int select)
 
unsigned short quick_select_median_ushort (unsigned short *arr, int nelems)
 
float quick_select_float (float *arr, int nelems, int select)
 
float quick_select_median_float (float *arr, int nelems)
 

Function Documentation

◆ ELEM_SWAP()

template<typename T >
void ELEM_SWAP ( T &  a,
T &  b 
)

Definition at line 13 of file quickselect.cpp.

Referenced by quick_select(), quick_select_float(), and quick_select_ushort().

◆ quick_select()

unsigned char quick_select ( unsigned char *  arr,
int  nelems,
int  select 
)

Definition at line 21 of file quickselect.cpp.

Referenced by quick_select_median().

◆ quick_select_median()

unsigned char quick_select_median ( unsigned char *  arr,
int  nelems 
)

Definition at line 70 of file quickselect.cpp.

Referenced by HistogramAnalyzer::analyzeFrame().

◆ quick_select_ushort()

unsigned short quick_select_ushort ( unsigned short *  arr,
int  nelems,
int  select 
)

Definition at line 76 of file quickselect.cpp.

Referenced by SceneChangeDetector::finished(), and quick_select_median_ushort().

◆ quick_select_median_ushort()

unsigned short quick_select_median_ushort ( unsigned short *  arr,
int  nelems 
)

Definition at line 125 of file quickselect.cpp.

◆ quick_select_float()

float quick_select_float ( float *  arr,
int  nelems,
int  select 
)

Definition at line 131 of file quickselect.cpp.

Referenced by quick_select_median_float().

◆ quick_select_median_float()

float quick_select_median_float ( float *  arr,
int  nelems 
)

Definition at line 180 of file quickselect.cpp.