CN102184070A - Method and device for displaying cursor of hardware support - Google Patents
Method and device for displaying cursor of hardware support Download PDFInfo
- Publication number
- CN102184070A CN102184070A CN201010206672XA CN201010206672A CN102184070A CN 102184070 A CN102184070 A CN 102184070A CN 201010206672X A CN201010206672X A CN 201010206672XA CN 201010206672 A CN201010206672 A CN 201010206672A CN 102184070 A CN102184070 A CN 102184070A
- Authority
- CN
- China
- Prior art keywords
- data
- bitmap
- cursor
- xor
- passage
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000002194 synthesizing effect Effects 0.000 claims abstract description 6
- 238000006243 chemical reaction Methods 0.000 claims abstract description 5
- 230000003139 buffering effect Effects 0.000 claims description 19
- 230000015572 biosynthetic process Effects 0.000 claims description 7
- 238000003786 synthesis reaction Methods 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims 1
- 230000004044 response Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 239000010410 layer Substances 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 239000002356 single layer Substances 0.000 description 1
Images
Landscapes
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention discloses a method and device for displaying a hardware support cursor. At least one background image channel DMA (Direct Memory Access) and data cache, one cursor AND bitmap DMA channel and data cache and one cursor image XOR (Exclusive OR) bitmap DMA channel and data cache are adopted in the method and the device, format conversion is carried out by using a color palette according to a bitmap format of the cursor, and finally, the cursor and a background image are synthesized in an image synthesizing unit by using a display principle of the cursor, and the synthesized image is output through a display interface.
Description
Technical field:
The present invention relates to the chip design field, more particularly, relate to method and device that a kind of hardware supported cursor shows.
Background technology:
Cursor is operation the most used in the operating system, the demonstration of cursor generally has operating system directly that cursor and background image is synthetic, promptly finish this part synthetic operation of image by processor, this can involve a large amount of calculating and internal memory operation.
In general, the cursor pattern all is made up of two independent bitmaps.If this icon is the shielding background colour, so, first bitmap is made up of black background (relevant colour bits are 0 entirely) and color map pattern, and this bitmap will show by xor operation (XOR) with current screen and combine, so be called the XOR bitmap; Second bitmap is made up of with black icon pattern (relevant colour bits are 0 entirely) white background (relevant colour bits are 1 entirely), and this bitmap will show by combining with operation (AND), so be called the AND bitmap with current screen.Therefore, the demonstration of icon is finished by two steps:
1, current background and AND bitmap combine by the AND operation;
2, current background and XOR bitmap combine by xor operation.
1 will keep former numerical value with the result of any numerical value AND operation, 0 with the result of any numerical value AND operation then be 0, therefore in step 1, the white in the AND bitmap (1) is shielded by original color through AND operation back with screen display, and black (0) then shields original color.After step 1 finishes, will stay the icon pattern of next black on the screen.In step 2 subsequently and since 0 with the result of any numerical value XOR all will be former numerical value, therefore, the XOR bitmap shows through behind the xor operation that with screen 0 the black part in bitmap and the screen all will be shielded by each self-corresponding chrominance section.After step 2 finished, an icon pattern in irregular shape had just appeared on the screen.
Therefore for the move operation of a cursor, as shown in Figure 1, cursor from coordinate (A, B) move to coordinate (C, D), need finish by step once:
(A, B) position removes from coordinate with cursor glyph.
1, background image is filled back origin coordinates (A, B) former cursor glyph affiliated area.
2, will be from origin coordinates from (C, regional background image D) and the AND bitmap operation of cursor.
3, again with the XOR bitmap operation of cursor, but as its image need palette, also need are operated after with color conversion by palette again.
4, the operating result data being filled can display buffer.
5, display unit reads synthetic good image and shows from internal memory.
From above-mentioned steps as can be seen, once the light operation of moving all has bigger load to the visit of internal memory and the computing of processor.Therefore we find in embedded OS, send out puckery through the mobile meeting of regular meeting's discovery cursor when moving cursor, and system response also can be slack-off.
Based on hardware cursor display packing of the present invention, can be from reducing access times largely to internal memory, and discharge the occupation rate of processor.
By method of the present invention, when moving cursor, processor only need dispose the position of cursor, and the demonstration that display module just can be finished image merges, and subsequent process no longer needs the participation of processor.
Summary of the invention:
The method that the object of the present invention is to provide the support hardware cursor to show.The concrete technical scheme that realizes the object of the invention is as follows:
The performing step of the display control unit that a kind of hardware supported cursor shows comprises:
First step, processor dispose relevant controlled variable according to demand, as parameters such as the start address of the start address of the start address of background image, cursor XOR bitmap, AND bitmap and picture format, sizes.
Second step, background image passage DMA reads background image data according to the start address of background image data from internal memory, write data buffering.
Third step, AND bitmap passage DMA reads the AND data bitmap from internal memory, write data buffering.
The 4th step, XOR bitmap passage DMA reads the XOR data bitmap from internal memory, write data buffering.
The 5th step, image synthesis unit are from background image passage reads pixel data, and elder generation and AND bitmap channel data are done and operated.
The 6th step, the image synthesis unit is debugged plate from XOR bitmap passage reading of data according to color form such as need, earlier by palette color conversion is become required display format, again and operating result before do xor operation, obtain composograph.
The 7th step, the pixel data of finishing after synthesizing is exported by display interface.
It is a kind of for realizing the device of said method that another object of the present invention is to provide.
The concrete scheme that realizes apparatus of the present invention purpose is as follows:
The display control unit that a kind of hardware supported cursor shows is characterized in that comprising with lower module:
At least one background image passage, each background image passage have a DMA and input data buffering;
The data DMA passage of an XOR bitmap and an input data buffering and an associated palette (existing) with register form;
The data DMA passage of an AND bitmap and input data buffering;
Synthetic the finishing synthesizing of image of image is exported from the display interface interface.
The described background image of said apparatus can be for a plurality of, and the data DMA passage of corresponding background image, input data buffering all correspond to a plurality of.After synthesizing, synthesize with cursor more a plurality of background images.
Beneficial effect of the present invention:
The display control unit of hardware supported cursor provided by the invention is synthetic by finish image in display device, so do not revise the data of background image in the internal memory display buffer at the moving process of cursor.
The display control unit of hardware supported cursor provided by the invention only needs processor configuration reference position by the mode at DMA, just can finish the demonstration of cursor.The palette of the display control unit of hardware supported cursor provided by the invention in addition realizes with the form of register, when the need palette directly by the realization color conversion of tabling look-up.Method provided by the invention has reduced the calculating and the data access process of processor, also helps reducing power consumption.
Method provided by the invention can be used with the laminated device that becomes of other figure, so background image can be the multi-layer image combination.
Description of drawings:
Further specify the present invention below in conjunction with the drawings and specific embodiments.
Fig. 1 cursor moves the demonstration example.
Fig. 2 is based on the structured flowchart of the support hardware cursor display device of the present invention's realization
The display process process flow diagram of Fig. 3 cursor
Embodiment:
Set forth the present invention with the mobile example that is shown as of the cursor of single-layer background image below.
As shown in Figure 1, the previous moment cursor be in coordinate (A, B), next need constantly with cursor move to origin coordinates (A, B).Concrete implementation procedure is as follows:
1, suppose that boxed area is the viewing area, background image passage DMA writes data buffering according to start address, picture size reading of data from internal memory of processor configuration.The image synthesis unit cushions reading of data from background image data, and begins to show by pixel line by line from (0,0) position.Simultaneously AND bitmap passage and XOR bitmap with DMA also according to start address, picture size reading of data from internal memory of the configuration of processor, and write data buffering and when data buffering is full, suspend data access.
2, (A, in the time of B), the image synthesis unit is reading of data from background image data buffering and AND data bitmap buffering, and carries out the AND operation to arrive coordinate at display position.After this operation, can in background image, sketch the contours of the profile of cursor.
3, in reading of data from the XOR data buffering, judge that its data layout is very coloured silk or palette form,, with the debugging plate data are sent into the debugging plate and found out corresponding color data as needs.
4, the pixel data that obtains in the data that obtain and the step 2 is carried out xor operation, cursor is implemented in the purpose on the background image like this.
5, the pixel after synthetic shows by display interface
6, when moving coordinate, the coordinate position control register that processor only need be initial with cursor from (A, B) be modified as (C, D).The image synthesis unit naturally can with cursor from following from (A, B).
Therefore when cursor moves, can accomplish quick response based on device of the invention process.
The embodiment that above-mentioned hardware supported cursor shows is a kind of typical embodiment of the method for the invention.For those skilled in the art, on the basis of above-mentioned implementation method, change a little and also can realize target of the present invention, but this obviously also should be in claims scope of the present invention.
Claims (5)
1. the method that shows of a hardware supported cursor is characterized in that may further comprise the steps:
First step, processor dispose relevant controlled variable according to demand, as parameters such as the start address of the start address of the start address of background image, cursor XOR bitmap, AND bitmap and picture format, sizes.
Second step, background image passage DMA reads background image data according to the start address of background image data from internal memory, write data buffering.
Third step, AND bitmap passage DMA reads the AND data bitmap from internal memory, write data buffering.
The 4th step, XOR bitmap passage DMA reads the XOR data bitmap from internal memory, write data buffering.
The 5th step, image synthesis unit are from background image passage reads pixel data, and elder generation and AND bitmap channel data are done and operated.
The 6th step, the image synthesis unit is debugged plate from XOR bitmap passage reading of data according to color form such as need, earlier by palette color conversion is become required display format, again and operating result before do xor operation, obtain composograph.
The 7th step, the pixel data of finishing after synthesizing is exported by display interface.
2. the method that a kind of hardware supported cursor as claimed in claim 1 shows is characterized in that:
In the described first step, the configuration of processor is the application according to system, the demonstration demand, and the user operates etc. that operation is configured.
3. the method that a kind of hardware supported cursor as claimed in claim 1 shows is characterized in that:
Described second and third, the DMA in four steps only does data transmission and uses, can be according to the resource requirement of different system, performance requirement is realized different mode of operations.
4. the method that a kind of hardware supported cursor as claimed in claim 1 shows is characterized in that:
In described the 6th step, can judge whether to call palette, when its data layout is never called palette when very color, when its data layout is according to the data layout that reads from the XOR data buffer.During the palette form, then data are imported palette and searched corresponding color data.
5. the display control unit that shows of a hardware supported cursor is characterized in that comprising with lower module:
At least one background image passage, each background image passage have a DMA and input data buffering;
The data DMA passage of an XOR bitmap and an input data buffering and an associated palette (existing) with register form;
The data DMA passage of an AND bitmap and input data buffering;
Synthetic the finishing synthesizing of image of image is exported from the display interface interface.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201010206672XA CN102184070A (en) | 2010-06-22 | 2010-06-22 | Method and device for displaying cursor of hardware support |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201010206672XA CN102184070A (en) | 2010-06-22 | 2010-06-22 | Method and device for displaying cursor of hardware support |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN102184070A true CN102184070A (en) | 2011-09-14 |
Family
ID=44570250
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201010206672XA Pending CN102184070A (en) | 2010-06-22 | 2010-06-22 | Method and device for displaying cursor of hardware support |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102184070A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107016950A (en) * | 2015-10-27 | 2017-08-04 | 三星电子株式会社 | Method for operating electronic device and electronic device supporting the method |
| CN111459359A (en) * | 2020-03-31 | 2020-07-28 | 烟台艾睿光电科技有限公司 | Cursor moving method, device and equipment and infrared thermal imaging system |
| CN114371878A (en) * | 2022-01-10 | 2022-04-19 | 深圳中微电科技有限公司 | Display IP module hardware mouse implementation method based on cursor-free layer |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH02179683A (en) * | 1988-12-29 | 1990-07-12 | Hitachi Ltd | graphic display device |
| CN1206165A (en) * | 1997-06-20 | 1999-01-27 | 日本电信电话株式会社 | Interactive Image Control and Display Scheme of Moving Objects on Background Image |
| US6337701B1 (en) * | 1999-01-29 | 2002-01-08 | International Business Machines Corp. | Apparatus for hardware support of software color cursors and method therefor |
| CN101004904A (en) * | 2006-01-20 | 2007-07-25 | 深圳迈瑞生物医疗电子股份有限公司 | Device for accelerative displaying cursor |
| CN101482445A (en) * | 2009-02-23 | 2009-07-15 | 福建星网锐捷网络有限公司 | Test method and apparatus for status indication lamp |
-
2010
- 2010-06-22 CN CN201010206672XA patent/CN102184070A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH02179683A (en) * | 1988-12-29 | 1990-07-12 | Hitachi Ltd | graphic display device |
| CN1206165A (en) * | 1997-06-20 | 1999-01-27 | 日本电信电话株式会社 | Interactive Image Control and Display Scheme of Moving Objects on Background Image |
| US6337701B1 (en) * | 1999-01-29 | 2002-01-08 | International Business Machines Corp. | Apparatus for hardware support of software color cursors and method therefor |
| CN101004904A (en) * | 2006-01-20 | 2007-07-25 | 深圳迈瑞生物医疗电子股份有限公司 | Device for accelerative displaying cursor |
| CN101482445A (en) * | 2009-02-23 | 2009-07-15 | 福建星网锐捷网络有限公司 | Test method and apparatus for status indication lamp |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107016950A (en) * | 2015-10-27 | 2017-08-04 | 三星电子株式会社 | Method for operating electronic device and electronic device supporting the method |
| US10643545B2 (en) | 2015-10-27 | 2020-05-05 | Samsung Electronics Co., Ltd. | Method and apparatus for merging images by electronic device |
| US11302258B2 (en) | 2015-10-27 | 2022-04-12 | Samsung Electronics Co., Ltd. | Method for operating electronic device and electronic device for supporting the same |
| CN111459359A (en) * | 2020-03-31 | 2020-07-28 | 烟台艾睿光电科技有限公司 | Cursor moving method, device and equipment and infrared thermal imaging system |
| CN111459359B (en) * | 2020-03-31 | 2021-06-11 | 烟台艾睿光电科技有限公司 | Cursor moving method, device and equipment and infrared thermal imaging system |
| CN114371878A (en) * | 2022-01-10 | 2022-04-19 | 深圳中微电科技有限公司 | Display IP module hardware mouse implementation method based on cursor-free layer |
| CN114371878B (en) * | 2022-01-10 | 2024-05-14 | 深圳中微电科技有限公司 | DISPLAY IP module hardware mouse implementation method based on non-cursor layer |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN100576893C (en) | A graphic OSD controller integrated in video processing chip | |
| US11164357B2 (en) | In-flight adaptive foveated rendering | |
| KR102048885B1 (en) | Graphic processing unit, graphic processing system comprising the same, rendering method using the same | |
| JP6652937B2 (en) | Multiple display pipelines driving split displays | |
| CN111737019B (en) | Method, device and computer storage medium for scheduling video memory resources | |
| JP6352546B2 (en) | Handling unaligned block transfer operations | |
| EP3259753B1 (en) | Systems and methods for reducing memory bandwidth using low quality tiles | |
| US20160125851A1 (en) | Rendering method, rendering apparatus, and electronic apparatus | |
| JP2018534607A (en) | Efficient display processing using prefetch | |
| KR20130132752A (en) | Displaying compressed supertile images | |
| KR102072145B1 (en) | Macro I / O Units to Image Processors | |
| KR20100104804A (en) | Display driver ic, method for providing the display driver ic, and data processing apparatus using the ddi | |
| CN114998087B (en) | Rendering method and device | |
| JP2016522474A (en) | Intraframe timestamp for tile-based rendering | |
| WO2023087827A1 (en) | Rendering method and apparatus | |
| CN102184070A (en) | Method and device for displaying cursor of hardware support | |
| CN120226071A (en) | Display Processing Unit (DPU) pixel rate based on display region of interest (ROI) geometry | |
| CN101127847A (en) | A screen display synthesis method and synthesis device | |
| US20060187239A1 (en) | System and method for improving visual appearance of efficient rotation algorithm | |
| WO2024044936A1 (en) | Composition for layer roi processing | |
| US20250391059A1 (en) | Composition for layer roi processing | |
| US20250210009A1 (en) | Dynamic configuration of display optimization | |
| WO2024087152A1 (en) | Image processing for partial frame updates | |
| KR100978814B1 (en) | Graphic acceleration system for displaying multi 3d graphic using single application processor and method thereof | |
| US20060184893A1 (en) | Graphics controller providing for enhanced control of window animation |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C53 | Correction of patent for invention or patent application | ||
| CB02 | Change of applicant information |
Address after: 201203, 11, Lane 572, Lane 115, blue wave road, Zhangjiang hi tech park, Shanghai Applicant after: Shanghai InfoTM Microelectronics Co., Ltd. Address before: 201203, 11, Lane 572, Lane 115, blue wave road, Zhangjiang hi tech park, Shanghai Applicant before: Shanghai InfoTM Microelectronics Co., Ltd. |
|
| COR | Change of bibliographic data |
Free format text: CORRECT: APPLICANT; FROM: SHANGHAI INFOT MICROELECTRONICS CO., LTD. TO: SHANGHAI INFOTM MICROELECTRONICS CO., LTD. |
|
| C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20110914 |