source: svn/trunk/zas_dstar/hal/include/dsthalpic.h @ 2

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

1.phkim

  1. revision copy newcon3sk r27
File size: 4.9 KB
Line 
1/******************************************************************************
2 *_Copyright (c) 2009 Digital Stream Technology Inc. All Rights Reserved.
3 *
4 * Module: dsthalpic.h
5 *
6 * Description
7 *      Picture Tuning or Quality APIs
8 *
9 * @author
10 * @version $Revision: 1.1 $
11 *
12 ******************************************************************************/
13
14#ifndef __DSTHAL_PIC_H__
15#define __DSTHAL_PIC_H__
16
17/******************************************************************************
18 * MEMC Mode
19 ******************************************************************************/
20typedef enum 
21{
22        DHL_PIC_MEMC_OFF = 0,
23        DHL_PIC_MEMC_WEAK,
24        DHL_PIC_MEMC_MIDIUM,
25        DHL_PIC_MEMC_STRONG
26} DHL_PIC_MEMC_MODE;
27
28/******************************************************************************
29 * DHL Rectangle Definition
30 ******************************************************************************/
31typedef struct tag_DHL_RECT
32{
33    DS_U16  Top;
34    DS_U16  Left;
35    DS_U16  Height;
36    DS_U16  Width;
37} DHL_RECT, *P_DHL_RECT;
38
39/******************************************************************************
40 * DHL RGB Component Definition
41 ******************************************************************************/
42typedef struct tag_DHL_RGB_TRIPLET
43{
44    DS_U8 RComponent;
45    DS_U8 GComponent;
46    DS_U8 BComponent;
47} DHL_RGB_TRIPLET, *P_DHL_RGB_TRIPLET;
48
49typedef struct tag_PIC_PARAM
50{
51        DS_U32 Brightness;
52        DS_U32 Contrast;
53        DS_U32 Saturation;
54        int Hue;
55        DS_U32 vSharpness, hSharpness;
56} PIC_PARAM_t, *P_PIC_PARAM_t;
57
58typedef struct tag_PIC_EXT_PARAM
59{
60        int ColorTemp;
61        int NR;
62        int ColorSystem;
63        int BlackExtension;
64        int WhiteExtension;
65        int BlueStretch;
66        int APL, DCI, ACR, ColorMgmt, MpegNR;
67       
68        int FleshTone;
69        int Red, Blue, Green;
70       
71        int RCont, GCont, BCont;        // RGB Contrast
72        int BlackExtVal, WhiteExtVal;   // MPPROC 1E
73        int BlackLevel;                                 // MPPROC 28
74        int SubContrast;                                // MPPROC 25
75        int MEMC;
76        DS_U16 RedGamma, BlueGamma, GreenGamma;
77        DS_BOOL Movie;
78} PIC_EXT_PARAM_t;
79
80typedef struct tag_PIC_CONFIG_t
81{
82        PIC_PARAM_t        Param;
83        PIC_EXT_PARAM_t    ExtParam;
84        DS_BOOL             SharpnessOn;
85        DS_BOOL             BrightnessOn;
86        DS_BOOL             HueSaturationOn;
87        DS_BOOL             ColorManagementOn;
88} PIC_CONFIG_t, *P_PIC_CONFIG_t;
89
90
91#if defined __cplusplus
92extern "C" {
93#endif
94
95DHL_RESULT DHL_PIC_PresetParams(P_PIC_CONFIG_t pPicConfig);
96DHL_RESULT DHL_PIC_PresetDefaultParams(void);
97DHL_RESULT DHL_PIC_PresetParamsPIP(P_PIC_CONFIG_t pPicConfig);
98DHL_RESULT DHL_PIC_PresetDefaultParamsPIP(void);
99
100void DHL_PIC_UpdateNextParam(void);
101void DHL_PIC_UpdateNextParamPIP(void);
102
103//
104// Picture Parameter Functions
105//
106DHL_RESULT DHL_PIC_EnableSharpness(DS_BOOL ON);
107DHL_RESULT DHL_PIC_EnableHueSaturation(DS_BOOL ON);
108DHL_RESULT DHL_PIC_EnableBrightness(DS_BOOL ON);
109DHL_RESULT DHL_PIC_SetSharpness(DS_U32 uHorzSharpness, DS_U32 uVertSharpness);
110DHL_RESULT DHL_PIC_GetSharpness(DS_U32 *puHorzSharpness, DS_U32 *puVertSharpness);
111DHL_RESULT DHL_PIC_SetContrast(DS_U32 uContrast);
112DHL_RESULT DHL_PIC_GetContrast(DS_U32 *puContrast);
113DHL_RESULT DHL_PIC_SetBrightness(DS_U32 uBrightness);
114DHL_RESULT DHL_PIC_GetBrightness(DS_U32 *puBrightness);
115DHL_RESULT DHL_PIC_SetSaturation(DS_U32 uSaturation);
116DHL_RESULT DHL_PIC_GetSaturation(DS_U32 *puSaturation);
117DHL_RESULT DHL_PIC_SetHue(int uHue);
118DHL_RESULT DHL_PIC_GetHue(int *puHue);
119DHL_RESULT DHL_PIC_SetMEMCMode(DHL_PIC_MEMC_MODE mode);
120
121//
122// Extended Picture Parameter Functions
123//
124DHL_RESULT DHL_PIC_SetDCISpeed(int Speed);
125DHL_RESULT DHL_PIC_SetColorTemperature(int ColorTemp);
126DHL_RESULT DHL_PIC_SetNR(int NR);
127DHL_RESULT DHL_PIC_SetColorSystem(int ColorSystem);
128DHL_RESULT DHL_PIC_SetBlackExtension(int BlackExtension);
129DHL_RESULT DHL_PIC_SetWhiteExtension(int WhiteExtension);
130DHL_RESULT DHL_PIC_SetBlueStretch(int BlueStretch);
131DHL_RESULT DHL_PIC_SetAPL(int APL);
132DHL_RESULT DHL_PIC_SetDCI(int DCI);
133DHL_RESULT DHL_PIC_SetACR(int ACR);
134DHL_RESULT DHL_PIC_SetColorMgmt(int ColorMgmt);
135DHL_RESULT DHL_PIC_SetMpegNR(int MpegNR);
136
137DHL_RESULT DHL_PIC_SetFleshTone(int FleshTone);
138DHL_RESULT DHL_PIC_SetRGBOffset(int Red, int Green, int Blue);
139DHL_RESULT DHL_PIC_SetRGBContrast( DS_U16 R, DS_U16 G, DS_U16 B );
140DHL_RESULT DHL_PIC_SetBlackWhiteStretch( DS_U8 B, DS_U8 W );
141DHL_RESULT DHL_PIC_SetBlackLevel( DS_U8 BlackLevel );
142DHL_RESULT DHL_PIC_SetSubContrast( DS_U8 SubContrast );
143DHL_RESULT DHL_PIC_SetAutoMovieMode( DS_BOOL enable );
144DHL_RESULT DHL_PIC_GetHistogram( DS_U8 *pHistogram);
145
146DHL_RESULT DHL_PIC_SetParams(int bFull);
147
148int DHL_PIC_GetColorTemperature(void);
149int DHL_PIC_GetNR(void);
150int DHL_PIC_GetColorSystem(void);
151int DHL_PIC_GetBlackExtension(void);
152int DHL_PIC_GetWhiteExtension(void);
153int DHL_PIC_GetBlueStretch(void);
154int DHL_PIC_GetAPL(void);
155int DHL_PIC_GetDCI(void);
156int DHL_PIC_GetACR(void);
157int DHL_PIC_GetColorMgmt(void);
158int DHL_PIC_GetFleshTone(void);
159void DHL_PIC_GetRedOffset(int *pRed, int *pGreen, int *pBlue);
160int DHL_PIC_GetMpegNR(void);
161DS_BOOL DHL_PIC_GetAutoMovieMode(void);;
162
163#if defined __cplusplus
164}
165#endif
166
167#endif  /*__DSTHAL_PIC_H__*/
Note: See TracBrowser for help on using the repository browser.