MythTV  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MythUSWCCopy Class Reference

#include <mythframe.h>

Collaboration diagram for MythUSWCCopy:
Collaboration graph
[legend]

Public Member Functions

 MythUSWCCopy (int width, bool nocache=false)
 
virtual ~MythUSWCCopy ()
 
void copy (VideoFrame *dst, const VideoFrame *src)
 
void reset (int width)
 Will reset the cache for a frame with "width" and reset USWC detection. More...
 
void resetUSWCDetection (void)
 reset USWC detection. More...
 
void setUSWC (bool uswc)
 disable USWC detection. More...
 

Private Member Functions

void allocateCache (int width)
 

Private Attributes

uint8_t * m_cache {nullptr}
 
int m_size {0}
 
uswcState m_uswc {uswcState::Detect}
 

Detailed Description

Definition at line 197 of file mythframe.h.

Constructor & Destructor Documentation

◆ MythUSWCCopy()

MythUSWCCopy::MythUSWCCopy ( int  width,
bool  nocache = false 
)
explicit

Definition at line 598 of file mythframe.cpp.

◆ ~MythUSWCCopy()

MythUSWCCopy::~MythUSWCCopy ( )
virtual

Definition at line 611 of file mythframe.cpp.

Member Function Documentation

◆ copy()

void MythUSWCCopy::copy ( VideoFrame dst,
const VideoFrame src 
)

Definition at line 629 of file mythframe.cpp.

Referenced by MythAVCopy::Copy().

◆ reset()

void MythUSWCCopy::reset ( int  width)

Will reset the cache for a frame with "width" and reset USWC detection.

Definition at line 804 of file mythframe.cpp.

◆ resetUSWCDetection()

void MythUSWCCopy::resetUSWCDetection ( void  )

reset USWC detection.

USWC detection will be made during the next copy

Definition at line 780 of file mythframe.cpp.

Referenced by reset().

◆ setUSWC()

void MythUSWCCopy::setUSWC ( bool  uswc)

disable USWC detection.

If true: USWC code will always be used, otherwise will use generic SSE code (faster with non-USWC memory

Definition at line 796 of file mythframe.cpp.

◆ allocateCache()

void MythUSWCCopy::allocateCache ( int  width)
private

Definition at line 785 of file mythframe.cpp.

Referenced by MythUSWCCopy(), and reset().

Member Data Documentation

◆ m_cache

uint8_t* MythUSWCCopy::m_cache {nullptr}
private

Definition at line 211 of file mythframe.h.

Referenced by allocateCache(), copy(), and ~MythUSWCCopy().

◆ m_size

int MythUSWCCopy::m_size {0}
private

Definition at line 212 of file mythframe.h.

Referenced by allocateCache(), copy(), and ~MythUSWCCopy().

◆ m_uswc

uswcState MythUSWCCopy::m_uswc {uswcState::Detect}
private

Definition at line 213 of file mythframe.h.

Referenced by copy(), resetUSWCDetection(), and setUSWC().


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