RDK Documentation (Open Sourced RDK Components)
AampOutputProtection Class Reference

Class to enforce HDCP authentication. More...

#include <aampoutputprotection.h>

Inheritance diagram for AampOutputProtection:
Inheritance graph
Collaboration diagram for AampOutputProtection:
Collaboration graph

Public Member Functions

 AampOutputProtection ()
 AampOutputProtection Constructor.
 
virtual ~AampOutputProtection ()
 AampOutputProtection Destructor.
 
 AampOutputProtection (const AampOutputProtection &)=delete
 Copy constructor disabled. More...
 
AampOutputProtectionoperator= (const AampOutputProtection &)=delete
 assignment operator disabled More...
 
bool isHDCPConnection2_2 ()
 Get PlayRedy OP levels. More...
 
bool IsSourceUHD ()
 Check if source is UHD using video decoder dimensions. More...
 
void GetDisplayResolution (int &width, int &height)
 gets display resolution More...
 
void setGstElement (GstElement *element)
 Set GstElement. More...
 
- Public Member Functions inherited from ReferenceCount
uint32_t AddRef () const
 
void Release () const
 

Static Public Member Functions

static AampOutputProtectionGetAampOutputProcectionInstance ()
 Singleton for object creation. More...
 
static bool IsAampOutputProcectionInstanceActive ()
 Check if AampOutputProcectionInstance active. More...
 

Private Member Functions

void SetHDMIStatus ()
 Set the HDCP status using data from DeviceSettings.
 
void SetResolution (int width, int height)
 Set values of resolution member variable. More...
 

Private Attributes

pthread_mutex_t m_opProtectMutex
 
int m_sourceWidth
 
int m_sourceHeight
 
int m_displayWidth
 
int m_displayHeight
 
bool m_isHDCPEnabled
 
dsHdcpProtocolVersion_t m_hdcpCurrentProtocol
 
GstElement * m_gstElement
 

yes

Class to enforce HDCP authentication.

Definition at line 119 of file aampoutputprotection.h.

Constructor & Destructor Documentation

◆ AampOutputProtection()

AampOutputProtection::AampOutputProtection ( const AampOutputProtection )
delete

Copy constructor disabled.

Member Function Documentation

◆ SetResolution()

AampOutputProtection::SetResolution ( int  width,
int  height 
)
private

Set values of resolution member variable.

Parameters
widthdisplay width
heightdisplay height

Definition at line 250 of file aampoutputprotection.cpp.

◆ operator=()

AampOutputProtection& AampOutputProtection::operator= ( const AampOutputProtection )
delete

assignment operator disabled

◆ isHDCPConnection2_2()

bool AampOutputProtection::isHDCPConnection2_2 ( )
inline

Get PlayRedy OP levels.

Return values
m_minOPLevelsCheck if HDCP is 2.2
trueif 2.2 false otherwise

Definition at line 230 of file aampoutputprotection.h.

◆ IsSourceUHD()

AampOutputProtection::IsSourceUHD ( )

Check if source is UHD using video decoder dimensions.

Return values
true,ifsource is UHD, otherwise false

Definition at line 102 of file aampoutputprotection.cpp.

◆ GetDisplayResolution()

AampOutputProtection::GetDisplayResolution ( int &  width,
int &  height 
)

gets display resolution

Parameters
[out]width: Display Width
[out]height: Display height

Definition at line 261 of file aampoutputprotection.cpp.

◆ setGstElement()

void AampOutputProtection::setGstElement ( GstElement *  element)
inline

Set GstElement.

Parameters
elementGst element to set

Definition at line 248 of file aampoutputprotection.h.

◆ GetAampOutputProcectionInstance()

AampOutputProtection::GetAampOutputProcectionInstance ( )
static

Singleton for object creation.

Return values
AampOutputProtectionobject

Definition at line 441 of file aampoutputprotection.cpp.

◆ IsAampOutputProcectionInstanceActive()

AampOutputProtection::IsAampOutputProcectionInstanceActive ( )
static

Check if AampOutputProcectionInstance active.

Return values
trueor false

Definition at line 428 of file aampoutputprotection.cpp.


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