The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: OSD SCHEMA - COLOUR


  • Subject: RE: OSD SCHEMA - COLOUR
  • From: Keith Doxey
  • Date: Sat, 07 Jun 2003 13:20:00 +0000

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<DIV><SPAN class="509021712-07062003"><FONT
face="Arial" color="#0000ff" size="2">Get
yerself PicBasicPro :-)</FONT></SPAN></DIV>
<DIV><SPAN class="509021712-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="509021712-07062003"><FONT
face="Arial" color="#0000ff" size="2">You
just tell it to treat the value as Hex, BIN
etc</FONT></SPAN></DIV>
<DIV><SPAN class="509021712-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="509021712-07062003"><FONT
face="Arial" color="#0000ff"
size="2">Anyway..... for values of 0-9 Decimal and Hex have
the same bit pattern !!!</FONT></SPAN></DIV>
<DIV><SPAN class="509021712-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="509021712-07062003"><FONT
face="Arial" color="#0000ff" size="2">Its
only above 9 that the BCD difference creaps in
eg</FONT></SPAN></DIV>
<DIV><SPAN class="509021712-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="509021712-07062003"><FONT
face="Arial" color="#0000ff" size="2">DEC
9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BCD
0000
1001&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
HEX&nbsp;&nbsp;&nbsp;
0000&nbsp;1001</FONT></SPAN></DIV>
<DIV><SPAN class="509021712-07062003"><FONT
face="Arial" color="#0000ff" size="2">DEC
10&nbsp;&nbsp;&nbsp;&nbsp; BCD 0001
0000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
HEX&nbsp;&nbsp;&nbsp; 0000
1010</FONT></SPAN></DIV>
<DIV><FONT face="Arial" color="#0000ff"
size="2"></FONT>&nbsp;</DIV>
<DIV><FONT face="Arial" color="#0000ff"
size="2">Keith</FONT> </DIV>
<P><FONT face="Arial" color="#0000ff"
size="2">www.diyha.co.uk</FONT> <FONT
face="Arial" color="#0000ff"
size="2">www.kat5.tv</FONT> </P>
<BLOCKQUOTE>
<DIV class="OutlookMessageHeader" dir="ltr"
align="left"><FONT face="Tahoma"
size="2">-----Original Message-----<B>From:</B>
Frank Mc Alinden [mailto:fmcalind@xxxxxxx]<B>Sent:</B>
07 June 2003 12:47<B>To:</B>
ukha_xpl@xxxxxxx<B>Subject:</B> Re: [ukha_xpl] OSD SCHEMA -
COLOUR</FONT></DIV>
<DIV><FONT face="Arial" size="2">Hi
Keith</FONT></DIV>
<DIV><FONT face="Arial"
size="2"></FONT>&nbsp;</DIV>
<DIV><FONT face="Arial" size="2">
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff" size="2">I
suggest we should implement 2 sets of COLOUR
attributes.</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff" size="2">Set
1</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">FORELOCOL&nbsp;&nbsp;&nbsp;
0-7</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">BACKLOCOL&nbsp;&nbsp;&nbsp;
0-7</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">Where the three bits of 0-7 represent the presence or
absence of RGB (in that order).</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">000&nbsp;&nbsp;&nbsp;
Black</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">001&nbsp;&nbsp;&nbsp;
Blue</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">010&nbsp;&nbsp;&nbsp;
Green</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">011&nbsp;&nbsp;&nbsp;
Cyan</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">100&nbsp;&nbsp;&nbsp;
Red</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">101&nbsp;&nbsp;&nbsp;
Magenta</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">110&nbsp;&nbsp;&nbsp;
Yellow</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">111&nbsp;&nbsp;&nbsp;
White</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
color="#0000ff">Works in nicely with the STV5730A
;-))...........Any ideas Keith how to convert a decimal value into hex
using&nbsp; ASM ???</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
color="#0000ff"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
color="#0000ff">Frank</FONT></SPAN></DIV></FONT></DIV>
<DIV><FONT face="Arial"
size="2"></FONT>&nbsp;</DIV>
<BLOCKQUOTE>
<DIV>----- Original Message ----- </DIV>
<DIV><B>From:</B> <A title="ukha@xxxxxxx"
href="mailto:ukha@xxxxxxx";>Keith
Doxey</A> </DIV>
<DIV><B>To:</B> <A title="ukha_xpl@xxxxxxx"
href="mailto:ukha_xpl@xxxxxxx";>ukha_xpl@xxxxxxx</A>
</DIV>
<DIV><B>Sent:</B> Saturday, June 07, 2003 9:36
PM</DIV>
<DIV><B>Subject:</B> RE: [ukha_xpl] OSD SCHEMA -
COLOUR</DIV>
<DIV></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff" size="2">Hi
Guys,</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff" size="2">Just
to add my input.</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">Different devices handle colour in different ways,
for example.</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff" size="2">Most
LCD's are monochrome with no invert
function.</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff" size="2">Many
of the graphic VFD, whilst being monochrome, allow for inverted text and
graphics eg Dark on light.</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff" size="2">OSD
chips such as the STV5730A have 8 colours where each bit basically
specifies wether the R or G or B colour should be
present.</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff" size="2">The
BBC Micro has 16 colours, 8 of which are the basic R,G,B permutations and
8-15 are flashing complimentary colours eg Solid RED, or Flashing RED/CYAN
etc.</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff" size="2">EGA
supported 16 colours but it was really just Light and Dark versions of the
basic 8</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff" size="2">Then
you move to higher end PC type devices where you have 12,15,16,24,32 bit
colour.</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff" size="2">I
suggest we should implement 2 sets of COLOUR
attributes.</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff" size="2">Set
1</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">FORELOCOL&nbsp;&nbsp;&nbsp;
0-7</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">BACKLOCOL&nbsp;&nbsp;&nbsp;
0-7</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">Where the three bits of 0-7 represent the presence or
absence of RGB (in that order).</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">000&nbsp;&nbsp;&nbsp;
Black</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">001&nbsp;&nbsp;&nbsp;
Blue</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">010&nbsp;&nbsp;&nbsp;
Green</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">011&nbsp;&nbsp;&nbsp;
Cyan</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">100&nbsp;&nbsp;&nbsp;
Red</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">101&nbsp;&nbsp;&nbsp;
Magenta</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">110&nbsp;&nbsp;&nbsp;
Yellow</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">111&nbsp;&nbsp;&nbsp;
White</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">Devices that do not support any form of colour
attribute can ignore it totally</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">Devices that support limited attributes eg Invert can
take just the FORE value and if greater than Zero it is light text on dark
background, else if Zero then dark text on light
background.</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">Devices with a limited set of colours such as OSD
chip and old BBC micros etc would be responsible for mapping the schema 0-7
RGB values to match their own internal
palette.</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff" size="2">Set
2</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">FOREHICOL&nbsp;&nbsp;&nbsp;
(R,G,B)</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">BACKHICOL&nbsp;&nbsp;&nbsp;
(R,G,B)</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2">Where R,G,B = 0-255 as per standard HTML style colour
attributes.</FONT></SPAN></DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff"
size="2"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class="343032111-07062003"><FONT
face="Arial" color="#0000ff" size="2">As I
said, it would be upto the device to interpret the values to suit its own
need. The LO set could even be done away with if the HI set was interpreted
as R>0 = Red On etc.</FONT></SPAN></DIV>
<P><FONT face="Arial" color="#0000ff"
size="2">Keith</FONT> </P>
<P><FONT face="Arial" color="#0000ff"
size="2">www.diyha.co.uk</FONT> <FONT
face="Arial" color="#0000ff"
size="2">www.kat5.tv</FONT> </P>
<BLOCKQUOTE><FONT face="Arial"
size="2"></FONT>&nbsp;</BLOCKQUOTE></BLOCKQUOTE><TT>xPL
Links: <A href="http://www.xplproject.org.uk";>http://www.xplproject.org.uk</A>
<A href="http://www.xplhal.com";>http://www.xplhal.com</A> <A
href="http://www.xpl.myby.co.uk";>http://www.xpl.myby.co.uk</A>To
Post a Message: ukha_xpl@xxxxxxx Subscribe:&nbsp;
ukha_xpl-subscribe@xxxxxxx To Unsubscribe:&nbsp;
ukha_xpl-unsubscribe@xxxxxxx</TT> <TT>Your use of Yahoo! Groups
is subject to the <A href="http://docs.yahoo.com/info/terms/";>Yahoo!
Terms of Service</A&g
t;.</TT> </BLOCKQUOTE>




xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.