重显率是电视机图像测试的一项重要指标,它是指电视机屏幕重现的图像节目与电视台发送图像节目的图像之比. 其实重显率可以认为是为了带宽等考虑, 对原始画面做裁剪。所以一般有上下左右4个方向的裁剪参数。
重显率的配置目前是放在/tvdatabase/Database分区的factory.db文件中.
根据不同的信源输入, 有不同的表。如下, 分别存储了不同的信源的重显率.
表结构都是一样的, 如下
CREATE TABLE [tbl_ATVOverscanSetting] (
[ ResolutionTypeNum] INTEGER NOT NULL, --分辨率或者制式
[_id] INTEGER NOT NULL, --画面比例模式, 比如16x9
[u16H_CapStart] INTEGER NULL,
[u16V_CapStart] INTEGER NULL,
[u8HCrop_Left] INTEGER NULL, --左边裁剪H_POSTION
[u8HCrop_Right] INTEGER NULL, --右边裁剪H_SIZE
[u8VCrop_Up] INTEGER NULL, --上边裁剪V_SIZE
[u8VCrop_Down] INTEGER NULL, --下边裁剪V_POSTION
PRIMARY KEY ([ResolutionTypeNum],[_id])
);
后面4个列是裁剪的参数,形象的说, 电视机的坐标系的原点在左下角. 向上向右增大.
其中_id列是画面比例MAPI_VIDEO_ARC_Type, 数据如下
/// Default
0 E_AR_DEFAULT = 0,
/// 16x9
1 E_AR_16x9,
/// 4x3
2 E_AR_4x3,
/// Auto
3 E_AR_AUTO,
/// Panorama
4 E_AR_Panorama,
/// Just Scan
5 E_AR_JustScan,
/// Zoom 1
6 E_AR_Zoom1,
/// Zoom 2
7 E_AR_Zoom2,
8 E_AR_14x9,
/// point to point
9 E_AR_DotByDot,
/// Subtitle
10 E_AR_Subtitle,
/// movie
11 E_AR_Movie,
/// Personal
12 E_AR_Personal,
------------------------------------------------------------------------------------------
/// 4x3 Panorama
13 E_AR_4x3_PanScan,
/// 4x3 Letter Box
14 E_AR_4x3_LetterBox,
/// 16x9 PillarBox
15 E_AR_16x9_PillarBox,
/// 16x9 PanScan
16 E_AR_16x9_PanScan,
/// 4x3 Combind
17 E_AR_4x3_Combind,
/// 16x9 Combind
18 E_AR_16x9_Combind,
/// Zoom 2X
19 E_AR_Zoom_2x,
/// Zoom 3X
20 E_AR_Zoom_3x,
/// Zoom 4X
21 E_AR_Zoom_4x,
/// In front of E_AR_CUS is Supernova area and the customization area at the back of E_AR_CUS.
32 E_AR_CUS =0x20,
/// Maximum value of this enum
E_AR_MAX=0x40
ResolutionTypeNum列在不同的表中代表不同的含义, 在hdmi, ypbpr中代表分辨率, 在tv中代表制式。
hdmi的分辨率如下
///480i_60
0 E_HDMI480i_60,
///480p_60
1 E_HDMI480p_60,
///576i_50
2 E_HDMI576i_50,
///576p_50
3 E_HDMI576p_50,
///720p_60
4 E_HDMI720p_60,
///720p_50
5 E_HDMI720p_50,
///1080i_60
6 E_HDMI1080i_60,
///1080i_50
7 E_HDMI1080i_50,
///1080p_60
8 E_HDMI1080p_60,
///1080p_50
9 E_HDMI1080p_50,
///1080p_30
10 E_HDMI1080p_30,
///1080p_24
11 E_HDMI1080p_24,
///1440x480i_60
12 E_HDMI1440x480i_60,
///1440x480p_60
13 E_HDMI1440x480p_60,
///1440x576i_50
14 E_HDMI1440x576i_50,
///1440x576p_50
15 E_HDMI1440x576p_50,
///PC timing 640x480_60
16 E_HDMI_PC_640_480_60,
///PC timing 640x480_72
17 E_HDMI_PC_640_480_72,
///PC timing 640x480_75
18 E_HDMI_PC_640_480_75,
///PC timing 640x480_85
19 E_HDMI_PC_640_480_85,
///PC timing 720x400_60
20 E_HDMI_PC_720_400_60,
///PC timing 800x600_56
21 E_HDMI_PC_800_600_56,
///PC timing 800x600_60
22 E_HDMI_PC_800_600_60,
///PC timing 800x600_72
23 E_HDMI_PC_800_600_72,
///PC timing 800x600_75
24 E_HDMI_PC_800_600_75,
///PC timing 800x600_85
25 E_HDMI_PC_800_600_85,
///PC timing 1024x768_50
26 E_HDMI_PC_1024_768_50,
///PC timing 1024x768_60
27 E_HDMI_PC_1024_768_60,
///PC timing 1024x768_70
28 E_HDMI_PC_1024_768_70,
///PC timing 1024x768_75
29 E_HDMI_PC_1024_768_75,
///PC timing 1024x768_85
30 E_HDMI_PC_1024_768_85,
///PC timing 1152x864_70
31 E_HDMI_PC_1152_864_70,
///PC timing 1152x864_75
32 E_HDMI_PC_1152_864_75,
///PC timing 1152x864_85
33 E_HDMI_PC_1152_864_85,
///PC timing 1280x960_60
34 E_HDMI_PC_1280_960_60,
///PC timing 1280x960_75
35 E_HDMI_PC_1280_960_75,
///PC timing 1280x960_85
36 E_HDMI_PC_1280_960_85,
///PC timing 1280x800_60
37 E_HDMI_PC_1280_800_60,
///PC timing 1280x768_60
38 E_HDMI_PC_1280_768_60,
///PC timing 1280x1024_60
39 E_HDMI_PC_1280_1024_60,
///PC timing 1280x1024_75
40 E_HDMI_PC_1280_1024_75,
///PC timing 1280x1024_85
41 E_HDMI_PC_1280_1024_85,
///PC timing 1360x768_60
42 E_HDMI_PC_1360_768_60,
///PC timing 1360x768_60
43 E_HDMI_PC_1366_768_60,
//2160p_24
44 E_HDMI2160p_24,
//2160p_25
45 E_HDMI2160p_25,
//2160p_30
46 E_HDMI2160p_30,
// 2160p_50
47 E_HDMI2160p_50,
// 2160p_60
48 E_HDMI2160P_60,
// 480P 3D frame packing
49 E_HDMI480P_3D_FRAME_PACKING,
// 576P 3D frame packing
50 E_HDMI576P_3D_FRAME_PACKING,
// 720P 3D frame packing
51 E_HDMI720P_3D_FRAME_PACKING,
// 1080P 3D frame packing
52 E_HDMI1080P_3D_FRAME_PACKING,
///MAX
E_HDMI_MAX,
ypbpr的分辨率如下
///240p_60
0 E_YPbPr240p_60,
///288p_50
1 E_YPbPr288p_50,
///480i_60
2 E_YPbPr480i_60,
///480p_60
3 E_YPbPr480p_60,
///576i_50
4 E_YPbPr576i_50,
///576p_50
5 E_YPbPr576p_50,
///720p_60
6 E_YPbPr720p_60,
///720p_50
7 E_YPbPr720p_50,
///1080i_60
8 E_YPbPr1080i_60,
///1080i_50
9 E_YPbPr1080i_50,
///1080p_60
10 E_YPbPr1080p_60,
///1080p_50
11 E_YPbPr1080p_50,
///1080p_30
12 E_YPbPr1080p_30,
///1080p_24
13 E_YPbPr1080p_24,
///1080p_25
14 E_YPbPr1080p_25,
///Max
15 E_YpbPr_MAX,
DTV的分辨率列表
0 E_DTV480i_60,
///480p_60
1 E_DTV480p_60,
///576i_50
2 E_DTV576i_50,
///576p_50
3 E_DTV576p_50,
///720p_60
4 E_DTV720p_60,
///720p_50
5 E_DTV720p_50,
///1080i_60
6 E_DTV1080i_60,
///1080i_50
7 E_DTV1080i_50,
///1080p_60 8
9 E_DTV1080p_60,
///1080p_50
10 E_DTV1080p_50,
///1080p_30
11 E_DTV1080p_30,
///1080p_24
12 E_DTV1080p_24,
///resolution number
13 E_DTV_MAX,
ATV, 视频, VGA的制式列表
0 SIG_NTSC, ///< NTSC
1 SIG_PAL, ///< PAL
2 SIG_SECAM, ///< SECAM
3 SIG_NTSC_443, ///< NTSC 443
4 SIG_PAL_M, ///< PAL M
5 SIG_PAL_NC, ///< PAL NC
6 SIG_NUMS, ///< signal numbers
7 SIG_NONE = -1
typedef enum
{
/// volume
0 EN_NLA_VOLUME,
/// picture brightness
1 EN_NLA_BRIGHTNESS,
/// picture contrast
2 EN_NLA_CONTRAST,
/// picture saturation
3 EN_NLA_SATURATION,
/// picture sharpness
4 EN_NLA_SHARPNESS,
/// picture hue
5 EN_NLA_HUE,
/// picture back light
6 EN_NLA_BACKLIGHT,
/// the number of the index
7 EN_NLA_NUMS
}MS_NLA_SET_INDEX;
public static final int SOUND_MODE_STANDARD = 0;
public static final int SOUND_MODE_MUSIC = 1;
public static final int SOUND_MODE_MOVIE = 2;
public static final int SOUND_MODE_SPORTS = 3;
public static final int SOUND_MODE_USER = 4;
public static final int PICTURE_MODE_DYNAMIC = 0;
/** picture mode normal */
public static final int PICTURE_MODE_NORMAL = 1;
/** picture mode mild */
public static final int PICTURE_MODE_SOFT = 2;
/** picture mode user */
public static final int PICTURE_MODE_USER = 3;
/** picture game mode */
public static final int PICTURE_MODE_GAME = 4;
/** picture auto mode */
public static final int PICTURE_MODE_AUTO = 5;
/** picture pc mode */
public static final int PICTURE_MODE_PC = 6;
/** picture mode vivid */
public static final int PICTURE_MODE_VIVID = 7;
/** picture mode natural */
public static final int PICTURE_MODE_NATURAL = 8;
/** picture mode sports */
public static final int PICTURE_MODE_SPORTS = 9;
public static final int SOUND_MODE_STANDARD = 0;
public static final int SOUND_MODE_MUSIC = 1;
public static final int SOUND_MODE_MOVIE = 2;
public static final int SOUND_MODE_SPORTS = 3;
public static final int SOUND_MODE_USER = 4;