CN102724582B - Method for displaying color key based on user interface - Google Patents

Method for displaying color key based on user interface Download PDF

Info

Publication number
CN102724582B
CN102724582B CN201210178367.3A CN201210178367A CN102724582B CN 102724582 B CN102724582 B CN 102724582B CN 201210178367 A CN201210178367 A CN 201210178367A CN 102724582 B CN102724582 B CN 102724582B
Authority
CN
China
Prior art keywords
user interface
video
value
black region
pixel
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
CN201210178367.3A
Other languages
Chinese (zh)
Other versions
CN102724582A (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.)
Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics Co Ltd
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 Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201210178367.3A priority Critical patent/CN102724582B/en
Publication of CN102724582A publication Critical patent/CN102724582A/en
Application granted granted Critical
Publication of CN102724582B publication Critical patent/CN102724582B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention provides a method for displaying color key based on a user interface, which comprises the following specific steps: 1, setting ARGB (Alpha Red-Green-Blue) values and Alpha values of pixels according to whether a black area in the user interface is required to be displayed; 2, traversing the pixels of an image of the user interface point by point through a CPU (Central Processing Unit) of a television box, finding out the pixels of which the Alpha values are not equal to 0 in ARGB of the pixels; and 3, processing B components of the pixels of the image according to a format supported by a frame buffer layer to finish the display of the black area of the user interface on a video broadcast interface. The method has the advantage that during video play, a black area appearing on the user interface can not be filtered but displayed.

Description

Method key color being shown based on user interface
[technical field]
The present invention relates to video processing technique, relate in particular to a kind of method key color being shown based on user interface.
[background technology]
TV BOX(intelligent television box) built-in android(Android) operating system, video playback adopts Overlay(to cover) pattern shows, video data shows on Overlay layer; Data cached frame buffer layer (the Frame Buffer that be finally presented at that user interface UI is corresponding, be called for short FB) on, FB layer covers Overlay layer top, and user interface data is in (above the data of the dialog box user interface with advancing, retreat with Pause key at video) above video data.The key color (Color Key) of the display screen LCD pixel of general intelligence TV box is to be set to black, be that black (0x0000) is as crossing colour filter, when intelligent television box displaying video, FB is set to black, and the user interface UI of simultaneous display is designed to non-black, by the mechanism of Overlay pattern, user can see video and be superimposed upon the user interface UI data on video.The overhead of simultaneous display user interface in video display process has been simplified in this design greatly, but the problem of thereupon bringing is user interface UI can not there is black region, because black region can be considered to key color region, thereby by video playback interface, extremely seen through, the data that are filtered such user interface just show not out.For example: in video display process, when user operates video, TV box can eject the dialog box (as shown in Figure 1) with user interactions, and it is black that dialog box has subregion, and now this black is when not also being set to key color; As shown in Figure 2, when black being set being key color, the user interface data of black region just cannot normally show so, is used as colour filter; Can only see video data, user just cannot operate in user interface like this.
A kind of " carrying out processing method and the processing unit of image blend " is provided in prior art, and publication number is: CN102281381A; Within open day, be: the Chinese patent of 2011.12.14, its processing method comprises: by user interface, select the colour of predetermined color of the first picture format as key color colour; By described key color colour, calculate the colour of described predetermined color in the second picture format, as key color conversion value; According to described key color conversion value, obtain key color region and non-key look region in the figure layer of the second picture format, default image blend computing is carried out in described key color region, obtain the result in described key color region, and described result and described non-key look region are superimposed upon on the figure layer of the first picture format, obtain image blend result.When this invention is processed in the same color to different-format, the trouble of the colour of can avoiding converting, improves treatment effeciency.But this invention can show the key color of its user interface after the color in the key color region of user interface being processed yet, but can not block the video data of bottom.
[summary of the invention]
The technical problem to be solved in the present invention, is to provide a kind of method key color being shown based on user interface.
The present invention is achieved in that a kind of method key color being shown based on user interface, comprises the steps:
Step 10, TV box are when video broadcasting condition, and the video data in the user interface data in media player and Overlay pattern need mix; When the black region in user interface need to be seen through by the video data in Overlay pattern, each pixel ARGB value of this black region is set to black level value, and the Alpha value in each pixel ARGB of black region is also set to 0 simultaneously; When the black region in user interface sees through without the video data by Overlay pattern, each pixel ARGB value of this black region is set to black level value, and the Alpha value in each pixel ARGB of black region is set to non-zero simultaneously;
Each pixel of the image of the CPU pointwise traversal user interface of step 20, TV box, judges whether the Alpha value in each pixel ARGB equals 0; Be, do not operate, flow process finishes; No, enter step 30;
The image data format that the frame buffer layer of step 30, judgement TV box is supported is RGB888 or RGB565, is RGB888 form, and the B component value of the point that is 0 by the B component of all image slices vegetarian refreshments of the user interface in frame buffer layer is all set to 1; Be RGB565 form, the B component value that the B component of all image slices vegetarian refreshments of the user interface in frame buffer layer is less than to 8 point is all set to 8, thereby the black region at completing user interface also can show on video playback interface.
Further, between step 10 and step 20, further comprising: the video of step 11, TV box is when broadcast state, the view data of user interface is stored in a buffer area, when user carries out vision operation, on video, eject user interface, now by the image data transmission of user interface to frame buffer this layer.
Tool of the present invention has the following advantages: whether the present invention needs to show according to the black region in user interface, each pixel ARGB value and the Alpha value of black region is set; Each pixel of the image of the CPU pointwise traversal user interface of TV box, the Alpha value of finding out in each pixel ARGB is not equal to 0 point; The form of supporting according to frame buffer layer, the B component of image slices vegetarian refreshments is processed, thereby the black region at completing user interface also can show on video image simultaneously.When the present invention has realized video playback, when the black region of part appears in user interface, can not be filtered, can show, improve user's experience.
[accompanying drawing explanation]
Fig. 1 be when in prior art, black is not set to key color in TV box Overlay layer and FB layer show the schematic diagram of data.
Fig. 2 be when in prior art, black is set to key color in TV box Overlay layer and FB layer show the schematic diagram of data.
Fig. 3 is schematic flow sheet of the present invention.
[embodiment]
Refer to shown in Fig. 1, method key color being shown based on user interface, comprises the steps:
Step 10, TV box are when video broadcasting condition, and the video data in the user interface data in media player and Overlay pattern need mix; When the black region in user interface need to be seen through by the video data in Overlay pattern, it is RGB=0 that each pixel ARGB value of this black region is set to black level value, and the Alpha value in each pixel ARGB of black region is also set to 0 simultaneously; When the black region in user interface sees through without the video data by Overlay pattern, each pixel ARGB value of this black region is set to black level value, and the Alpha value in each pixel ARGB of black region is set to non-zero simultaneously;
The video of step 11, TV box is when broadcast state, and the view data of user interface is stored in a buffer area, when user carries out vision operation, ejects user interface on video, now by the image data transmission of user interface to frame buffer this layer;
Each pixel of the image of the CPU pointwise traversal user interface of step 20, TV box, judges whether the Alpha value in each pixel ARGB equals 0; Be, do not operate, flow process finishes; No, enter step 30;
The image data format that the frame buffer layer of step 30, judgement TV box is supported is RGB888 or RGB565, is RGB888 form, and the B component value of the point that is 0 by the B component of all image slices vegetarian refreshments of the user interface in frame buffer layer is all set to 1; It is RGB565 form, the B component value that the B component of all image slices vegetarian refreshments of the user interface in frame buffer layer is less than to 8 point is all set to 8, being set to 8 way can avoid being converted in RGB565 process because of ARGB, low 3 of B component is truncated and causes pixel value to revise invalid problem, guarantees that the black region of UI normally shows.Thereby the black region at completing user interface also can show on video playback interface.
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
For example: the video of TV box is when broadcast state, when user carries out vision operation, on video, eject user interface, now to process and make its each pixel point value become (ARGB is 0x00000008) the black region of the user interface of FB layer (ARGB is 0xff000000), and then carry out ARGB(32bits) to RGB565(16bits) conversion, low three of the B component of each pixel RGB are cut out like this, the color value of each pixel that finally the FB layer (RGB565) of output is corresponding is 0x01, close to black, human eye is difficult for differentiating.So the data of user interface can not exist the problem of black region to solve.
The foregoing is only preferred embodiment of the present invention, all equalizations of doing according to the present patent application the scope of the claims change and modify, and all should belong to covering scope of the present invention.

Claims (2)

1. the method based on user interface, key color being shown, is characterized in that: comprise the steps:
Step 10, TV box are when video broadcasting condition, and the video data in the user interface data in media player and Overlay pattern need mix; When the black region in user interface need to be seen through by the video data in Overlay pattern, each pixel ARGB value of this black region is set to black level value, and the Alpha value in each pixel ARGB of black region is also set to 0 simultaneously; When the black region in user interface sees through without the video data by Overlay pattern, each pixel ARGB value of this black region is set to black level value, and the Alpha value in each pixel ARGB of black region is set to non-zero simultaneously;
Each pixel of the image of the CPU pointwise traversal user interface of step 20, TV box, judges whether the Alpha value in each pixel ARGB equals 0; Be, do not operate, flow process finishes; No, enter step 30;
The image data format that the frame buffer layer of step 30, judgement TV box is supported is RGB888 or RGB565, is RGB888 form, and the B component value of the point that is 0 by the B component of all image slices vegetarian refreshments of the user interface in frame buffer layer is all set to 1; Be RGB565 form, the B component value that the B component of all image slices vegetarian refreshments of the user interface in frame buffer layer is less than to 8 point is all set to 8, thereby the black region at completing user interface also can show on video playback interface.
2. method key color being shown based on user interface according to claim 1, it is characterized in that: between step 10 and step 20, further comprising: the video of step 11, TV box is when broadcast state, the view data of user interface is stored in a buffer area, when user carries out vision operation, on video, eject user interface, now by the image data transmission of user interface to frame buffer this layer.
CN201210178367.3A 2012-05-31 2012-05-31 Method for displaying color key based on user interface Active CN102724582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210178367.3A CN102724582B (en) 2012-05-31 2012-05-31 Method for displaying color key based on user interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210178367.3A CN102724582B (en) 2012-05-31 2012-05-31 Method for displaying color key based on user interface

Publications (2)

Publication Number Publication Date
CN102724582A CN102724582A (en) 2012-10-10
CN102724582B true CN102724582B (en) 2014-09-24

Family

ID=46950220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210178367.3A Active CN102724582B (en) 2012-05-31 2012-05-31 Method for displaying color key based on user interface

Country Status (1)

Country Link
CN (1) CN102724582B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108781218A (en) * 2017-11-07 2018-11-09 深圳市大疆创新科技有限公司 Data processing method, data sending terminal, receiving terminal and communication system

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373285A (en) * 2014-08-26 2016-03-02 中兴通讯股份有限公司 Method and device for changing application icons of terminal
CN108572807A (en) 2017-03-14 2018-09-25 深圳市中兴微电子技术有限公司 A kind of method and device reducing display controller bandwidth consumption
CN107071516B (en) * 2017-04-08 2018-12-21 腾讯科技(深圳)有限公司 A kind of photograph document handling method
CN106937132B (en) * 2017-04-08 2018-12-07 腾讯科技(深圳)有限公司 A kind of photograph document handling method
CN113963659B (en) * 2020-07-21 2023-06-27 华为技术有限公司 Display device and adjustment method thereof
CN115270164B (en) * 2022-09-28 2022-12-13 佳卓智能科技(南通)有限责任公司 Method for monitoring transmission data safety based on micro-service architecture

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060017747A1 (en) * 2004-07-26 2006-01-26 Dawson Thomas P Copy protection arrangement
CN102281381A (en) * 2010-06-12 2011-12-14 无锡中星微电子有限公司 Processing method and processing device for image mixing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060017747A1 (en) * 2004-07-26 2006-01-26 Dawson Thomas P Copy protection arrangement
CN102281381A (en) * 2010-06-12 2011-12-14 无锡中星微电子有限公司 Processing method and processing device for image mixing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108781218A (en) * 2017-11-07 2018-11-09 深圳市大疆创新科技有限公司 Data processing method, data sending terminal, receiving terminal and communication system

Also Published As

Publication number Publication date
CN102724582A (en) 2012-10-10

Similar Documents

Publication Publication Date Title
CN102724582B (en) Method for displaying color key based on user interface
US6678009B2 (en) Adjustable video display window
US10964069B2 (en) Method and graphic processor for managing colors of a user interface
WO2012090952A1 (en) Display device, television receiver, and control method for display device
CN101848346A (en) Television and image display method thereof
CN103702054A (en) Visualization method and visualization device for multi-channel signal source and television
EP3152910B1 (en) Minimizing input lag in a remote gui tv application
WO2014210357A1 (en) Methods, systems, and media for presenting media content using integrated content sources
KR102070322B1 (en) Display apparatus and display panel driving method thereof
CN106550261A (en) Lift the exhibiting method and system of video image clarity
CN101212600B (en) Display device capable of adjusting color tone of function interface and adjusting method
CN107846588B (en) Method and device for acquiring serial port record information in television
CN111541924B (en) Display apparatus and display method
CN102724581B (en) Method for realizing pixel superposition based on 2D (two-dimensional) image accelerator
CN112201191B (en) Display screen control method and device, electronic equipment and readable storage medium
CN103034405A (en) Display method for screen display frames
US20140300638A1 (en) Image processing device, image processing method, display, and electronic apparatus
JP2014041455A (en) Image processing device, image processing method, and program
JP5189810B2 (en) Image quality control apparatus and image quality control method
DE112018007246T5 (en) Display apparatus and image processing methods therefor
CN105163002B (en) The joint eye care method and system of intelligent television and teaching electronic brain
CN103259963A (en) High-resolution output mode
CN102625181A (en) Set top box with caption recognition and definition display functions
JP2015019197A (en) Information transmission apparatus and information transmission method
WO2023000484A1 (en) Frame rate stable output method and system and intelligent terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 350000 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Patentee after: FUZHOU ROCKCHIP ELECTRONICS CO., LTD.

Address before: 350000 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Patentee before: Fuzhou Rockchip Semiconductor Co., Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 350000 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee after: Ruixin Microelectronics Co., Ltd

Address before: 350000 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee before: Fuzhou Rockchips Electronics Co.,Ltd.