source: svn/trunk/newcon3bcm2_21bu/magnum/portinginterface/vdc/7552/bvdc_tnt.h

Last change on this file was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 5.6 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2003-2009, Broadcom Corporation
3 *     All Rights Reserved
4 *     Confidential Property of Broadcom Corporation
5 *
6 *  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: bvdc_tnt.h $
11 * $brcm_Revision: Hydra_Software_Devel/4 $
12 * $brcm_Date: 11/24/09 5:47p $
13 *
14 * Module Description:
15 *
16 * Revision History:
17 *
18 * $brcm_Log: /magnum/portinginterface/vdc/7038/bvdc_tnt.h $
19 *
20 * Hydra_Software_Devel/4   11/24/09 5:47p yuxiaz
21 * SW7420-462: Added new tuning functions for Tuning Database.
22 *
23 * Hydra_Software_Devel/3   9/29/08 4:03p jessem
24 * PR 46489: Added missing endif.
25 *
26 * Hydra_Software_Devel/2   9/29/08 3:41p jessem
27 * PR46489: Removed TN2T (B0) API and moved this to 3548 directory. Kept
28 * TNT API.
29 *
30 ***************************************************************************/
31#ifndef BVDC_TNT_H__
32#define BVDC_TNT_H__
33
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39/***************************************************************************
40Summary:
41        This structure describes the sharpness settings.
42
43Description:
44        BVDC_SharpnessSettings is a structure containing
45        custom luma and chroma settings used with TNT.
46
47        Warning: This may change in future chip revisions.
48
49        ulLumaCtrlCore         - Larger values prevent sharpening of low-level
50        textures and noise. Values greater than 32 (or less than -32) are not
51        commonly used. This is a signed number S7.0. Legal range: -128 ~ 127.
52
53        ulLumaCtrlGain         - Larger values increase luma sharpness (or
54        increase softness if "LUMA_CTRL_SOFTEN" is set). Zero disables luma
55        sharpness (or softness). Values greater than 32 are usually too harsh
56        for normal viewing. This is an unsigned number U6.0. Legal range: 0 ~ 63.
57
58        ulLumaCtrlBlur         - Large values reduce sharpness for very high
59        frequence texture and prevent sharpening of noise. Legal range: 0 ~ 2.
60
61        bLumaCtrlSoften        - If enable, TNT will soften luma data and we
62        recommend to set "LUMA_CTRL_CORE" to be 0. If disable, TNT will sharpen
63        luma data.
64
65        bLumaCtrlHOnly         - When enabled, TNT will only sharpen luma data
66        horizontally, when disabled, TNT will sharpen luma data in both
67        (horizontal and vertical) direction.
68
69        ulLumaPeakingHAvoid    - Luma vertical sharp edge avoidance control.
70        Larger values avoid luma sharpening of strong vertical edges. This is an
71        unsigned number U6.0. Legal range: 0 ~ 63.
72
73        ulLumaPeakingVAvoid    - Luma horizontal sharp edge avoidance. Larger
74        values avoid luma sharpening of strong horizontal edges. This is an
75        unsigned number U6.0. Legal range: 0 ~ 63.
76
77        ulLumaPeakingPeakLimit - This value sets a hard limit on luma overshoot.
78        This is an unsigned number U7.0. Legal range: 0 ~ 127.
79
80        ulLumaPeakingPeakValue - Larger values reduce luma overshoot. This is an
81        unsigned number U5.0. Legal range: 0 ~ 31.
82
83        ulChromaCtrlCore       - Larger values prevent sharpening of low-level
84        textures and noise. This is an unsigned number U8.0. Legal range: 0 ~ 255.
85
86        bChromaCtrlWideChroma  - When enabled, TNT will use wider range for
87        chroma peaking. When disabled, TNT will use normal range for chroma
88        peaking.
89
90        ulChromaCtrlFalseColor - This is to avoid false color when sharpening
91        sharp edges of chroma data. Larger values will reduce false colors, at
92        the cost of some chroma sharpness. This is an unsigned number U3.0.
93        Legal range: 0 ~ 7.
94
95        ulChromaCtrlGain       - Larger values increase chroma sharpness. Zero
96        disables chroma. sharpness. Values greater than 32 are usually too harsh
97        for normal viewing. This is an unsigned number U6.0. Legal range: 0 ~ 63.
98
99        bChromaCtrlHOnly       - When enabled, TNT will only sharpen chroma data
100        horizontally, when disabled, TNT will sharpen chroma data in both
101        (horizontal and vertical) direction.
102
103        ulWideLumaCtrlCore     - Larger values prevent sharpening of low-level
104        textures and noise. Values greater than 32 (or less than -32) are not
105        commonly used. This is a signed number S7.0. Legal range: -128 ~ 127.
106
107        ulWideLumaCtrlMode     - Wide luma mode control.
108        2'b00: luma peaking is kept narrow for tight, crisp peaking.
109        2'b01: luma peaking use a wider range for more dramatic, intense peaking.
110        2'b10: luma peaking use the widest range for dramatic, intense peaking.
111
112See Also:
113        BVDC_Window_SetSharpnessConfig, BVDC_Window_GetSharpnessConfig
114***************************************************************************/
115typedef struct
116{
117        uint32_t                           ulLumaCtrlCore;
118        uint32_t                           ulLumaCtrlGain;
119        uint32_t                           ulLumaCtrlBlur;
120        bool                               bLumaCtrlSoften;
121        bool                               bLumaCtrlHOnly;
122        uint32_t                           ulLumaPeakingHAvoid;
123        uint32_t                           ulLumaPeakingVAvoid;
124        uint32_t                           ulLumaPeakingPeakLimit;
125        uint32_t                           ulLumaPeakingPeakValue;
126        uint32_t                           ulChromaCtrlCore;
127        bool                               bChromaCtrlWideChroma;
128        uint32_t                           ulChromaCtrlFalseColor;
129        uint32_t                           ulChromaCtrlGain;
130        bool                               bChromaCtrlHOnly;
131        uint32_t                           ulWideLumaCtrlCore;
132        uint32_t                           ulWideLumaCtrlMode;
133        uint32_t                           ulSimpleLumaCtrlCore;
134        bool                               bSimpleLumaCtrlMode;
135} BVDC_SharpnessSettings;
136
137#ifdef __cplusplus
138}
139#endif
140
141#endif /* #ifndef BVDC_TNT_H__ */
142
143/* End of File */
144
Note: See TracBrowser for help on using the repository browser.