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

#include <mythframe.h>

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 82 of file mythframe.h.

Constructor & Destructor Documentation

◆ MythUSWCCopy()

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

Definition at line 563 of file mythframe.cpp.

◆ ~MythUSWCCopy()

MythUSWCCopy::~MythUSWCCopy ( )
virtual

Definition at line 576 of file mythframe.cpp.

Member Function Documentation

◆ copy()

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

Definition at line 594 of file mythframe.cpp.

Referenced by MythAVCopy::Copy(), and VAAPIContext::CopySurfaceToFrame().

◆ reset()

void MythUSWCCopy::reset ( int  width)

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

Definition at line 763 of file mythframe.cpp.

Referenced by VAAPIContext::CreateDisplay().

◆ resetUSWCDetection()

void MythUSWCCopy::resetUSWCDetection ( void  )

reset USWC detection.

USWC detection will be made during the next copy

Definition at line 739 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 755 of file mythframe.cpp.

◆ allocateCache()

void MythUSWCCopy::allocateCache ( int  width)
private

Definition at line 744 of file mythframe.cpp.

Referenced by MythUSWCCopy(), and reset().

Member Data Documentation

◆ m_cache

uint8_t* MythUSWCCopy::m_cache {nullptr}
private

Definition at line 96 of file mythframe.h.

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

◆ m_size

int MythUSWCCopy::m_size {0}
private

Definition at line 97 of file mythframe.h.

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

◆ m_uswc

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

Definition at line 98 of file mythframe.h.

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


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