RDK Documentation (Open Sourced RDK Components)
AampCCManager.cpp File Reference

Base class for ClosedCaption integration layer. More...

#include "priv_aamp.h"
#include "AampJsonObject.h"
#include "AampUtils.h"
#include <closedcaptions/AampCCManager.h>
Include dependency graph for AampCCManager.cpp:

Go to the source code of this file.

Macros

#define CHAR_CODE_1   49
 
#define CHAR_CODE_6   54
 

Functions

static int getColor (gsw_CcAttribType attributeIndex, gsw_CcType ccType, std::string input, gsw_CcColor *colorOut)
 Get color option from input string. More...
 
static int getTextStyle (std::string input, gsw_CcTextStyle *textStyleOut)
 Get text style value from input string. More...
 
static int getEdgeType (std::string input, gsw_CcEdgeType *edgeTypeOut)
 Get edge type value from input string. More...
 
static int getFontStyle (std::string input, gsw_CcFontStyle *fontStyleOut)
 Get font style value from input string. More...
 
static int getFontSize (std::string input, gsw_CcFontSize *fontSizeOut)
 Get font size value from input string. More...
 
static int getOpacity (std::string input, gsw_CcOpacity *opacityOut)
 Get opacity value from input string. More...
 

yes

Base class for ClosedCaption integration layer.

Definition in file AampCCManager.cpp.

Function Documentation

◆ getColor()

static int getColor ( gsw_CcAttribType  attributeIndex,
gsw_CcType  ccType,
std::string  input,
gsw_CcColor colorOut 
)
static

Get color option from input string.

Parameters
[in]attributeIndex- CC attribute
[in]ccType- CC type
[in]input- input color style
[out]colorOut- color option for the input value
Returns
int - 0 for success, -1 for failure

Definition at line 95 of file AampCCManager.cpp.

◆ getTextStyle()

static int getTextStyle ( std::string  input,
gsw_CcTextStyle textStyleOut 
)
static

Get text style value from input string.

Parameters
[in]input- input text style value
[out]fontSizeOut- text style option for the input value
Returns
int - 0 for success, -1 for failure

Definition at line 149 of file AampCCManager.cpp.

◆ getEdgeType()

static int getEdgeType ( std::string  input,
gsw_CcEdgeType edgeTypeOut 
)
static

Get edge type value from input string.

Parameters
[in]input- input edge type value
[out]fontSizeOut- edge type option for the input value
Returns
int - 0 for success, -1 for failure

Definition at line 187 of file AampCCManager.cpp.

◆ getFontStyle()

static int getFontStyle ( std::string  input,
gsw_CcFontStyle *  fontStyleOut 
)
static

Get font style value from input string.

Parameters
[in]input- input font style value
[out]fontSizeOut- font style option for the input value
Returns
int - 0 for success, -1 for failure

Definition at line 243 of file AampCCManager.cpp.

◆ getFontSize()

static int getFontSize ( std::string  input,
gsw_CcFontSize fontSizeOut 
)
static

Get font size value from input string.

Parameters
[in]input- input font size value
[out]fontSizeOut- font size option for the input value
Returns
int - 0 for success, -1 for failure

Definition at line 310 of file AampCCManager.cpp.

◆ getOpacity()

static int getOpacity ( std::string  input,
gsw_CcOpacity opacityOut 
)
static

Get opacity value from input string.

Parameters
[in]input- input opacity style
[out]opacityOut- opacity option for the input value
Returns
int - 0 for success, -1 for failure

Definition at line 357 of file AampCCManager.cpp.