參數(shù)資料
型號: MAX4455
廠商: Maxim Integrated Products, Inc.
英文描述: Triple Differential Transceivers 20-SOIC -40 to 85
中文描述: 任意圖形隨屏顯示視頻發(fā)生器
文件頁數(shù): 26/30頁
文件大小: 663K
代理商: MAX4455
M
Arbitrary Graphics On-Screen Display
Video Generator
26
______________________________________________________________________________________
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// Example code: converting RGB values to 4-bit key+luma control value.
//---------------------------------------------------------------------------
// convert TColor (RGB) to a 4-bit color value for the MAX4455
//
// This 4-bit value controls OSDFILL and OSDKEY as follows:
//
// 0000 transparent
// 0001 black
// 0010 lighter black
// 0111 medium gray
// 1110 lightest gray
// 1111 white
//
// The RGB equations are based on Keith Jack's book,
// Video Demystified, chapter 3, "Color Spaces",
// which is copyright 2001 LLH Technology Publishing.
// ISBN: 1-878707-56-6
// URL: http://www.video-demystified.com/
//
unsigned
__int8 RGB_To_OSDFILL
(
TColor color
)
{
unsigned
__int8 osd_control_value
;
if
(
color
==
clTransparent
)
{
osd_control_value
=
0
;
// transparent
}
else
{
// convert TColor into red, green, blue values in the range 0..255
unsigned
__int8 red
=
(
color
>>
0
)
&
0xFF
;
unsigned
__int8 green
=
(
color
>>
8U
)
&
0xFFU
;
unsigned
__int8 blue
=
(
color
>>
16U
)
&
0xFFU
;
const
double
ar
=
0.299
,
ag
=
0.587
,
ab
=
0.114
,
offset
=
0
;
double
luma
=
ar
*
red
+
ag
*
green
+
ab
*
blue
+
offset
;
// maximum luma value is 255
unsigned
__int8 greyscale_nybble
=
((
luma
*
16.0
)
/
256
)
+
0.5
;
if
(
greyscale_nybble
>
15
+
1
)
{
greyscale_nybble
=
15
+
1
;
// white limit
}
if
(
greyscale_nybble
<
1
+
1
)
{
greyscale_nybble
=
1
+
1
;
// black limit
}
osd_control_value
=
greyscale_nybble
-
1
;
}
return
osd_control_value
;
}
Listing 5. Converting RGB to 4-Bit Gray Scale
相關(guān)PDF資料
PDF描述
MAX4455ECQ Triple Differential Transceivers 20-SOIC -40 to 85
MAX445CPG Triple Differential Transceivers 20-SSOP -40 to 85
MAX4504EPA Low-Voltage, Dual-Supply, SPST, CMOS Analog Switches
MAX4504ESA Low-Voltage, Dual-Supply, SPST, CMOS Analog Switches
MAX4504EUK Low-Voltage, Dual-Supply, SPST, CMOS Analog Switches
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MAX4455ECQ 功能描述:視頻開關(guān) IC RoHS:否 制造商:Texas Instruments 開關(guān)數(shù)量:4 開啟電阻(最大值):12 Ohms 傳播延遲時間: 開啟時間(最大值): 關(guān)閉時間(最大值): 最大工作溫度:+ 85 C 最小工作溫度:- 40 C 封裝 / 箱體:WQFN-42 封裝:Reel
MAX4455ECQ+D 功能描述:視頻開關(guān) IC RoHS:否 制造商:Texas Instruments 開關(guān)數(shù)量:4 開啟電阻(最大值):12 Ohms 傳播延遲時間: 開啟時間(最大值): 關(guān)閉時間(最大值): 最大工作溫度:+ 85 C 最小工作溫度:- 40 C 封裝 / 箱體:WQFN-42 封裝:Reel
MAX4455ECQ+TD 功能描述:視頻開關(guān) IC Integrated Circuits (ICs) RoHS:否 制造商:Texas Instruments 開關(guān)數(shù)量:4 開啟電阻(最大值):12 Ohms 傳播延遲時間: 開啟時間(最大值): 關(guān)閉時間(最大值): 最大工作溫度:+ 85 C 最小工作溫度:- 40 C 封裝 / 箱體:WQFN-42 封裝:Reel
MAX4455ECQ-T 功能描述:視頻開關(guān) IC RoHS:否 制造商:Texas Instruments 開關(guān)數(shù)量:4 開啟電阻(最大值):12 Ohms 傳播延遲時間: 開啟時間(最大值): 關(guān)閉時間(最大值): 最大工作溫度:+ 85 C 最小工作溫度:- 40 C 封裝 / 箱體:WQFN-42 封裝:Reel
MAX4455EVKIT 制造商:Maxim Integrated Products 功能描述:ARBITRARY GRAPHICS ON-SCREEN DISPLAY VIDEO GE - Bulk