|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
38 #include "illegalArgumentException.hpp"
39 #include "videoDeviceConfig.hpp"
46 const char *_names[] = {
53 "Letterbox 2.21 on 4x3",
54 "Letterbox 2.21 on 16x9",
61 inline const bool isValid(
int id) {
98 return VideoDeviceConfig::getInstance().getDFC(
id);
118 for (
size_t i = 0; i <
dsUTL_DIM(_names); i++) {
119 if (name.compare(_names[i]) == 0) {
143 _name = std::string(_names[
id]);
int _id
Indicates the id of the instance inheriting this class.
virtual ~VideoDFC()
This function is the default destructor for VideoDFC.
static const int kLetterBox_221x1ON4x3
Indicates decoder format of type letter box 2:21:1 in a 4:3 video frame.
VideoDFC(int id)
This function is a parameterised constructor. It initializes the instance with the id provided and th...
Device Settings HAL types.
static const int kZoom_16x9
Indicates decoder format of type 16:9 zoom.
static const int kWideScreen_4x3
Indicates decoder format of type 4:3 wide.
static const int kPanScan
Indicates decoder format of type pan and scan.
static bool isValid(int min, int max, int val)
This function checks if the given value lies between min and max values provided.
Device Settings HAL utilities.
static const int kPlatform
Indicates decoding format conversion will be managed by the platform.
static const VideoDFC & getInstance(int id)
This function gets an instance of VideoDFC against the id specified, only if the id passed is valid.
This class extends DSConstant to manage the video Decoder Format Conversion.
std::string _name
Indicates the name string of the instance inheriting this class.
static const int kPillarBox_4x3
Indicates decoder format of type pillar box 4:3.
static const int kLetterBox_221x1ON16x9
Indicates decoder format of type letter box 2:21:1 in a 16:9 video frame.
@ dsVIDEO_ZOOM_LB_2_21_1_ON_16_9
static const int kUnknown
Indicates decoder format of type unknown.
@ dsVIDEO_ZOOM_LB_2_21_1_ON_4_3
static const int kLetterBox_16x9
Indicates decoder format of type letter box with 16:9 aspect ratio.
static const int kFull
Indicates decoder format of type full.
#define dsVideoPortDFC_isValid(t)
static const int kCCO
Indicates center cut out decoder format.
@ dsVIDEO_ZOOM_PILLARBOX_4_3
This class extends Exception class to manage the expections caused due to illegal arguments.
static const int kNone
Indicates decoder format of type none.
#define dsUTL_DIM(arr)
Device Settings general Array dimension calculation inline definition.
This file defines VideoDFC class for managing video decoder format conversion types.
static const int kLetterBox_14x9
Indicates decoder format of type letter box with 14:9 aspect ratio.