CN100562918C - A kind of data display method and data presentation system and relevant device - Google Patents

A kind of data display method and data presentation system and relevant device Download PDF

Info

Publication number
CN100562918C
CN100562918C CNB200710166390XA CN200710166390A CN100562918C CN 100562918 C CN100562918 C CN 100562918C CN B200710166390X A CNB200710166390X A CN B200710166390XA CN 200710166390 A CN200710166390 A CN 200710166390A CN 100562918 C CN100562918 C CN 100562918C
Authority
CN
China
Prior art keywords
transparency
value
color
pixel
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CNB200710166390XA
Other languages
Chinese (zh)
Other versions
CN101145334A (en
Inventor
徐佳宏
程伯钦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ipanel TV Inc
Original Assignee
Shenzhen Ipanel TV Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ipanel TV Inc filed Critical Shenzhen Ipanel TV Inc
Priority to CNB200710166390XA priority Critical patent/CN100562918C/en
Publication of CN101145334A publication Critical patent/CN101145334A/en
Priority to HK08110310.4A priority patent/HK1114937A1/en
Application granted granted Critical
Publication of CN100562918C publication Critical patent/CN100562918C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of data display method and data presentation system and relevant device, be used to realize the controlled adjustment of browsing device net page transparency, and improve the compatibility of product.The inventive method comprises: browser is resolved the transparency parameter that receives and is obtained transparency value; Adjust the color of pixel value according to described transparency value; Send adjusted color of pixel value to transplanting unit; Transplanting unit is mixed with video pixel according to described adjusted color of pixel value, shows mixed corresponding data.The present invention also provides a kind of data presentation system and relevant device.The present invention can realize the controlled adjustment of browsing device net page transparency effectively, and improves the compatibility of product.

Description

A kind of data display method and data presentation system and relevant device
Technical field
The present invention relates to data processing field, relate in particular to a kind of data display method and data presentation system and relevant device.
Background technology
Along with combining of digital television techniques and network technology, the user is also more and more higher to the requirement of using the Digital Television online, for example, while considerable user wishes to see that TV surfs the Net, reach such purpose, the method for solution makes browsing device net page be shown on the video layer exactly.
A solution is the CSS (cascading style sheet) (CSS of use standard webpage in the prior art, CascadingStyle Sheets), in the CSS of standard webpage, stipulate, have only the transparent of page inside, be certain zone can only be transparent or partially transparent to its last layer, but in Digital Television, because the needs of the switching of webpage and TV programme, and browser is energy minimization not, if restart next time then and all close browser at every turn, speed will be very slow, so the implementation of prior art is to jump to a complete transparent page, can only see video layer, promptly be equivalent to switch to TV programme.
But prior art is only supported transparent fully, though can switch easily and fast, underaction, if the user wish in online, to know the content of TV programme then can't realize, so reduced user experience.
For solving the defective of above-mentioned prior art, another kind of prior art is:
Revise the definition of color among the CSS, the parameter that adds the sign transparency, for example the form of color value is #RGB in the CSS standard, increase a parameter Y thereafter, promptly be that form modifying with the color value of CSS is #RGBY, wherein Y represents transparency, the Y span is 0x00-0xFF, 00 expression is transparent fully, 0xFF represents opaque fully, color value dissection process to this CSS reaches corresponding transparent effect afterwards, thereby being shown on the video layer of realizing that browser can partially transparent satisfied the demand that the user surfs the Net simultaneously and watches TV programme.
But this technical scheme is owing to the definition of having revised the CSS standard, so the web data that can not compatible utilize the CSS of standard to be write as has influenced the popularization of product.
Summary of the invention
The embodiment of the invention provides a kind of data display method and data presentation system and relevant device, can realize the controlled adjustment of browsing device net page transparency, and improves the compatibility of product.
The data display method that the embodiment of the invention provides comprises: browser is resolved the transparency parameter that receives and is obtained transparency value; Adjust the color of pixel value according to described transparency value; Send adjusted color of pixel value to transplanting unit; Transplanting unit is mixed with video pixel according to described adjusted color of pixel value, shows mixed corresponding data.
Further, described browser comprises before the transparency parameter that receives is resolved the step that obtains transparency value: the parameter of increasing transparency in the CSS parameter.
Further, described browser is resolved the step that obtains transparency value to the transparency parameter that receives and is comprised: the transparency value that the attribute value of the transparency parameter that receives is converted to corresponding platform.
Further, described transparency parameter comprises: regional transparency parameter;
Described step according to transparency value adjustment color of pixel value comprises:
The color of pixel value that the transparency value that obtains is added the appointed area.
Further, described transplanting unit is mixed with video pixel according to described adjusted color of pixel value, shows that the step of mixed corresponding data comprises:
Transplanting unit carries out the adjusted pixel and the data of video layer overlapping the mixing to obtain mixed video data;
Mixed video data is shown.
Further, described transparency parameter also comprises: font transparency parameter;
Described step according to transparency value adjustment color of pixel value comprises:
According to text color information and background color information setting text color number of levels;
According to described text color number of levels, background color transparency parameter and literal transparency value are calculated the transparency of certain grade of text color;
Transparency according to this grade text color is adjusted corresponding color of pixel value.
Further, described according to the text color number of levels, the step of the transparency of background color transparency parameter and literal transparency calculation of parameter grade text color adopts following formula to calculate:
The transparency of N level text color=(((N/ text color number of levels) * background color transparency parameter)+(1-(N/16)) * literal transparency value).
The data presentation system that the embodiment of the invention provides comprises:
Browser is used for the transparency parameter that receives resolved and obtains transparency value, adjusts the color of pixel value according to described transparency value, sends adjusted color of pixel value to transplanting unit;
Transplanting unit is used for according to described adjusted color of pixel value pixel being mixed with video, shows mixed corresponding data.
The browser that the embodiment of the invention provides comprises:
Receiving element is used to receive the transparency parameter;
Resolution unit is used for the transparency parameter that receives resolved and obtains transparency value;
The pixel adjustment unit is used for adjusting the color of pixel value according to described transparency value;
Transmitting element is used for sending adjusted color of pixel value to transplanting unit.
The transplanting unit that the embodiment of the invention provides comprises:
The pixel receiving element is used to receive adjusted color of pixel value;
Mixed cell is used for according to described adjusted color of pixel value pixel being mixed with video;
Display unit is used to show mixed corresponding data.
As can be seen from the above technical solutions, the embodiment of the invention has the following advantages:
In the embodiment of the invention, because browser is adjusted the color of pixel value according to the transparency parameter that receives, and will adjust the result and be sent to transplanting unit, transplanting unit is mixed with video pixel according to adjusted color of pixel value, show mixed corresponding data, so the embodiment of the invention can reach the purpose of adjusting the browsing device net page transparency, has improved user experience;
In addition, the transparency parameter in the embodiment of the invention is to increase newly in the CSS parameter, and does not revise the form of color value in the CSS standard, thus the web data that can compatible utilize the CSS of standard to be write as, so improved the compatibility of product.
Description of drawings
Fig. 1 is a data display method embodiment process flow diagram in the embodiment of the invention;
Fig. 2 is a data presentation system embodiment process flow diagram in the embodiment of the invention;
Fig. 3 is a browser embodiment synoptic diagram in the embodiment of the invention;
Fig. 4 is a transplanting unit embodiment synoptic diagram in the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of data display method and data presentation system and relevant device, is used to realize the controlled adjustment of browsing device net page transparency, and improves the compatibility of product.
In the embodiment of the invention, because browser is adjusted the color of pixel value according to the transparency parameter that receives, and will adjust the result and be sent to transplanting unit, transplanting unit is mixed with video pixel according to adjusted color of pixel value, show mixed corresponding data, so the embodiment of the invention can reach the purpose of adjusting the browsing device net page transparency, has improved user experience; In addition, the transparency parameter in the embodiment of the invention is to increase newly in the CSS parameter, and does not revise the form of color value in the CSS standard, thus the web data that can compatible utilize the CSS of standard to be write as, so improved the compatibility of product.
See also Fig. 1, data display method embodiment comprises in the embodiment of the invention:
101, the transparency parameter is set;
In the present embodiment, concrete transparency parameter can comprise regional transparency parameter, can further include font transparency parameter.
Lifting an example below describes:
Transparent function among the CSS of the webpage of standard is the transparent and partially transparent of page area, added the CSS attribute in the present embodiment the transparent and partially transparent of page area to video layer has been set, with this attribute names is video-alpha, its span is 0-0xFF, also can use the number percent value, 100% expression value is 0xFF, the implication of value is: 0 representative is transparent in fully video layer, get and to be write as transparent at 0 o'clock, 0xFF represents opaque fully, and other represents partially transparent.
For example, the literary style in the page is as follows:
Style=" video-alpha:0 "; Transparent fully
Style=" video-alpha:30% "; Partially transparent
Style=" video-alpha:0xFF "; Opaque fully
Style=" video-alpha:transparent "; Be transparent fully equally
Video-alpha is meant similar style=" video-alpha:0x9B " represent the CSS attribute that the embodiment of the invention is expanded like this, indicate the transparency of certain zone of the page to video.Having in the document object of this attribute All Ranges (background and literal) can control and penetrate effect.
In addition, also consider the transparent effect of literal in the present embodiment, if promptly should literal be arranged the inside, zone, then literal can have influence on the effect of seeing video, because be not support literal transparent in the CSS of standard, so in addition self-defined CSS attribute in the present embodiment is used for realizing the transparent and partially transparent of literal, with this attribute names is font-alpha, and its span is the same substantially with video-alpha with definition.
Font-alpha is meant similar style=" font-alpha:10 " represent a CSS attribute of embodiment of the invention expansion like this, this attribute is used for indicating in the document object that is subjected to this style (pattern) control in each list element the transparency of all literal (character area that claims with the lower part in the document all refers to these literal) the literal, is similar to the effect of foreground in the general application program.Document object zone Chinese words with this attribute can be controlled transparent effect.
102, the browser resolves transparency parameter obtains transparency value;
Browser is resolved the transparency parameter that wherein comprises after receiving the CSS parameter that comprises the transparency parameter, obtains transparency value.
Concrete resolving is: convert transparency parameter attribute value on the corresponding platform transparency value, platform described herein is meant application platforms different in digital television software.
103, adjust pixel color value according to transparency value;
After browser obtains transparency value, according to this numerical value pixel color value is adjusted, detailed process is:
The color of pixel value that the transparency value that obtains is added the appointed area.
Accordingly, if include the literal transparency value in the transparency value, then also need to adjust accordingly, detailed process is:
According to text color information and background color information setting text color number of levels;
According to the text color number of levels, background color transparency parameter and literal transparency value are calculated the transparency of certain grade of text color;
Transparency according to this grade text color is adjusted corresponding color of pixel value.
In the present embodiment because the calculating of font color relates to and the mixing of background colour, so understand relatively more complicated some.In order to allow a kind level and smooth transition is arranged between text color and the background color, the color of literal for a moment with background colour in conjunction with calculating 16 grades of colors, each grade representative is near the degree of background colour, the high more representative root of progression is near background colour.
If so present embodiment needs also to consider that background colour also has transparency, finally the transparency of each grade text color also should be different, computing formula is as follows:
The transparency that is provided with in the * font-alpha of the transparency of n level text color=n/16* background colour transparency+(1-n/16).
Be understandable that the above-mentioned example that provides is provided the mode of specifically calculating the transparency of n level text color.
104, send pixel color value to transplanting unit;
After browser calculates pixel color value, send the pixel color value that calculates to transplanting unit.
105, according to pixel color value pixel is mixed with video;
After transplanting unit obtains pixel color value, the pixel and the video data of video layer of correspondence carried out overlapping the mixing obtaining mixed video data, concrete mixed process is prior art, does not limit herein.
106, show mixed corresponding data.
Transplanting unit shows mixed video data, and concrete procedure for displaying is a prior art, does not limit herein.
In the embodiment of the invention, because browser is adjusted the color of pixel value according to the transparency parameter that receives, and will adjust the result and be sent to transplanting unit, transplanting unit is mixed with video pixel according to adjusted color of pixel value, show mixed corresponding data, so the embodiment of the invention can reach the purpose of adjusting the browsing device net page transparency, has improved user experience; In addition, the transparency parameter in the embodiment of the invention is to increase newly in the CSS parameter, and does not revise the form of color value in the CSS standard, thus the web data that can compatible utilize the CSS of standard to be write as, so improved the compatibility of product.
Introduce the data presentation system in the embodiment of the invention below, see also Fig. 2, data presentation system embodiment comprises in the embodiment of the invention:
Browser 201 is used for the transparency parameter that receives resolved and obtains transparency value, adjusts the color of pixel value according to described transparency value, sends adjusted color of pixel value to transplanting unit;
Transplanting unit 202 is used for according to adjusted color of pixel value pixel being mixed with video, shows mixed corresponding data.
See also Fig. 3, browser embodiment comprises in the embodiment of the invention:
Receiving element 301 is used to receive the transparency parameter;
Resolution unit 302 is used for the transparency parameter that receives resolved and obtains transparency value;
Pixel adjustment unit 303 is used for adjusting the color of pixel value according to transparency value;
Transmitting element 304 is used for sending adjusted color of pixel value to transplanting unit.
See also Fig. 4, transplanting unit embodiment comprises in the embodiment of the invention:
Pixel receiving element 401 is used to receive adjusted color of pixel value;
Mixed cell 402 is used for according to described adjusted color of pixel value pixel being mixed with video;
Display unit 403 is used to show mixed corresponding data.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, this program comprises the steps: when carrying out
Browser is resolved the transparency parameter that receives and is obtained transparency value;
Adjust the color of pixel value according to described transparency value;
Send adjusted color of pixel value to transplanting unit;
Transplanting unit is mixed with video pixel according to described adjusted color of pixel value, shows mixed corresponding data.
The above-mentioned storage medium of mentioning can be a ROM (read-only memory), disk or CD etc.
More than a kind of data display method provided by the present invention and data presentation system and relevant device are described in detail, for one of ordinary skill in the art, thought according to the embodiment of the invention, part in specific embodiments and applications all can change, in sum, this description should not be construed as limitation of the present invention.

Claims (5)

1, a kind of data display method is characterized in that, comprising:
Browser is converted to the transparency value of corresponding platform with the attribute value of the transparency parameter that receives, and described transparency value comprises regional transparency value and literal transparency value;
With the color of pixel value of described regional transparency value adding appointed area,, calculate the transparency of certain grade of text color according to following formula according to text color information and background color information setting text color number of levels:
The transparency of N level text color=(((N/ text color number of levels) * background color transparency parameter)+(1-(N/16)) * literal transparency value);
Transparency according to this grade text color is adjusted corresponding color of pixel value;
Send adjusted color of pixel value to transplanting unit;
Transplanting unit is mixed with video pixel according to described adjusted color of pixel value, shows mixed corresponding data.
2, method according to claim 1 is characterized in that, described browser comprises before the attribute value of the transparency parameter that receives being converted to the step of transparency value of corresponding platform:
The parameter of in CSS (cascading style sheet) CSS parameter, increasing transparency.
3, method according to claim 1 is characterized in that, described transplanting unit is mixed with video pixel according to described adjusted color of pixel value, shows that the step of mixed corresponding data comprises:
Transplanting unit carries out the adjusted pixel and the data of video layer overlapping the mixing to obtain mixed video data;
Mixed video data is shown.
4, a kind of data presentation system is characterized in that, comprising:
Browser, the attribute value that is used for the transparency parameter that will receive is converted to the transparency value of corresponding platform, described transparency value comprises regional transparency value and literal transparency value, the color of pixel value that described regional transparency value is added the appointed area, according to text color information and background color information setting text color number of levels, calculate the transparency of certain grade of text color according to following formula:
The transparency of N level text color=(((N/ text color number of levels) * background color transparency parameter)+(1-(N/16)) * literal transparency value);
Transparency according to this grade text color is adjusted corresponding color of pixel value, sends adjusted color of pixel value to transplanting unit;
Transplanting unit is used for according to described adjusted color of pixel value pixel being mixed with video, shows mixed corresponding data.
5, a kind of browser is characterized in that, comprising:
Receiving element is used to receive the transparency parameter;
Resolution unit, the attribute value that is used for the transparency parameter that will receive is converted to the transparency value of corresponding platform, and described transparency value comprises regional transparency value and literal transparency value;
The pixel adjustment unit is used for the color of pixel value with described regional transparency value adding appointed area, according to text color information and background color information setting text color number of levels, calculates the transparency of certain grade of text color according to following formula:
The transparency of N level text color=(((N/ text color number of levels) * background color transparency parameter)+(1-(N/16)) * literal transparency value);
Transparency according to this grade text color is adjusted corresponding color of pixel value;
Transmitting element is used for sending adjusted color of pixel value to transplanting unit.
CNB200710166390XA 2007-11-08 2007-11-08 A kind of data display method and data presentation system and relevant device Active CN100562918C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNB200710166390XA CN100562918C (en) 2007-11-08 2007-11-08 A kind of data display method and data presentation system and relevant device
HK08110310.4A HK1114937A1 (en) 2007-11-08 2008-09-17 A method and system for displaying data, as well as related devices thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200710166390XA CN100562918C (en) 2007-11-08 2007-11-08 A kind of data display method and data presentation system and relevant device

Publications (2)

Publication Number Publication Date
CN101145334A CN101145334A (en) 2008-03-19
CN100562918C true CN100562918C (en) 2009-11-25

Family

ID=39207824

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200710166390XA Active CN100562918C (en) 2007-11-08 2007-11-08 A kind of data display method and data presentation system and relevant device

Country Status (2)

Country Link
CN (1) CN100562918C (en)
HK (1) HK1114937A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827233B (en) * 2009-12-31 2015-04-22 康佳集团股份有限公司 Method for converting display colors of television menu based on alpha value and television thereof
CN102186110B (en) * 2011-05-11 2012-08-22 深圳市茁壮网络股份有限公司 Method for processing pictures and STB (set top box)
CN103425466B (en) * 2012-05-17 2017-02-08 腾讯科技(深圳)有限公司 Color matching processing method and color matching processing device
CN104866570A (en) * 2015-05-22 2015-08-26 国云科技股份有限公司 Method for implementing CSS multi-browser compatibility

Also Published As

Publication number Publication date
CN101145334A (en) 2008-03-19
HK1114937A1 (en) 2008-11-14

Similar Documents

Publication Publication Date Title
CN100562918C (en) A kind of data display method and data presentation system and relevant device
CN103020237B (en) A kind of webpage update method and device
US20100010893A1 (en) Video overlay advertisement creator
CN102117290A (en) Method and system used for showing page elements in webpage
CN104063415A (en) Method and system for displaying webpage user-defined content
CN103631865B (en) Webpage generating method and equipment
CN106127837A (en) The multi-language support system of network caricature
KR20090006136A (en) Ambient lighting control from category of video data
CN105824874A (en) Mobile terminal as well as web page rendering method and device thereof
CN101778270A (en) Method for accelerating the image displaying speed, system and digital television receiving terminal
CN106201155A (en) Method for displaying user interface and system
CN102955642A (en) Widget display method and electronic equipment
CN109144652A (en) A kind of view display methods, device, electronic equipment and storage medium
CN105868418A (en) Video display method and video display device
CN103150150A (en) Method and device for displaying weather information
CN102082930B (en) A kind of method that captioned test is replaced and device
CN103051958A (en) Processing method and processing system for remotely changing wallpaper of smart television
US10747943B2 (en) Method, device, client apparatus, and electronic device for presenting webpages
JP2009053664A (en) Method for controlling video content display, display and storage medium
CN103744942A (en) Web browsing method, web browsing device and web browsing terminal device
CN105222275A (en) Changing method, the Apparatus and system of display data
CN102082925B (en) A kind of fill method of subtitle template and device
CN104915207A (en) Webpage icon making method and webpage icon making system
CN102087596B (en) Embedded browsing device and multi-page mixed display method thereof
JP5005782B2 (en) Image generation system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1114937

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1114937

Country of ref document: HK