CN108196789B - Skin updating method and device of display - Google Patents

Skin updating method and device of display Download PDF

Info

Publication number
CN108196789B
CN108196789B CN201711466593.0A CN201711466593A CN108196789B CN 108196789 B CN108196789 B CN 108196789B CN 201711466593 A CN201711466593 A CN 201711466593A CN 108196789 B CN108196789 B CN 108196789B
Authority
CN
China
Prior art keywords
preset
storage
stored
palette
palettes
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
CN201711466593.0A
Other languages
Chinese (zh)
Other versions
CN108196789A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201711466593.0A priority Critical patent/CN108196789B/en
Publication of CN108196789A publication Critical patent/CN108196789A/en
Application granted granted Critical
Publication of CN108196789B publication Critical patent/CN108196789B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems

Abstract

The invention provides a skin display method and a skin display device for a display menu, which comprise the following steps: acquiring a preset palette to be stored; the number of the groups of the preset palettes is at least two; acquiring a storage address of a display storage chip; if the storage space of the storage address is larger than or equal to the space occupied by each group of preset palettes, sequentially storing each group of preset palettes into the storage address according to the time sequence, then updating the preset palettes stored into the storage address first; and acquiring the selected color from the preset color palette stored in the storage address, and displaying the color as the skin of the display menu.

Description

Skin updating method and device of display
Technical Field
The present invention relates to the field of display, and in particular, to a method and an apparatus for updating skin of a display, a computer-readable storage medium, and a computer device.
Background
The display is used for displaying the digital image and comprises a storage chip used for storing the palette of the display menu.
The current display memory chip has too small capacity, only the colors in a group of color palettes in the memory chip can be selected as the skin of the display menu, for example, a group of color palettes has 16 colors, and the skin of the display menu has only 16 selections, resulting in a single display effect of the display menu.
Disclosure of Invention
Therefore, it is necessary to provide a skin display method for a display menu, which aims at the problem that the display effect on the menu of the display is single due to the small capacity of the memory chip of the display.
A skin display method of a display menu, comprising the steps of:
acquiring a preset palette to be stored; the number of the groups of the preset palettes is at least two;
acquiring a storage address of a display storage chip;
if the storage space of the storage address is larger than or equal to the space occupied by each group of preset palettes, sequentially storing each group of preset palettes into the storage address according to the time sequence, then updating the preset palettes stored into the storage address first;
and acquiring the selected color from the preset color palette stored in the storage address, and displaying the color as the skin of the display menu.
A skin display device displaying a menu, comprising:
the preset palette obtaining module is used for obtaining a preset palette to be stored; the number of the groups of the preset palettes is at least two;
the storage address acquisition module is used for acquiring the storage address of the display storage chip;
the preset palette storing module is used for sequentially storing the groups of preset palettes into the storage addresses according to a time sequence if the storage space of the storage addresses is larger than or equal to the space occupied by the groups of preset palettes, and then updating the preset palettes stored in the storage addresses first;
and the skin display module is used for acquiring the selected color from the preset color palette stored in the storage address, and displaying the selected color as the skin of the display menu.
According to the skin display method and device for the display menu, different preset color palettes are respectively stored in the same storage address at different time, the color palettes of the same storage address are dynamically changed, the number of the selectable skins of the display menu is increased, the defect that the display effect on the menu of the display is single due to insufficient capacity of a storage chip of the display is overcome, and different display effects of the display menu can be achieved without increasing the storage space of the storage chip of the display.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as set forth above.
A computer device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method as described above when executing the program.
Drawings
FIG. 1 is a flowchart illustrating a method for displaying a skin menu on a display according to the present invention;
FIG. 2 is a diagram illustrating the storage of preset palettes at different times in one embodiment;
fig. 3 is a schematic structural diagram of a skin display device for displaying a menu according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a skin display method of a display menu according to the present invention.
The skin display method of the display menu according to the present embodiment may include the steps of:
s11: acquiring a preset palette to be stored; the number of groups of the preset color palettes is at least two;
wherein, the color types of each group of preset color palettes can be different. The number of colors in each set of preset color palettes may be the same. For example, the number of colors in each set of color palettes may be 16, but the types of colors in each set of color palettes are different.
S12: acquiring a storage address of a display storage chip;
the memory address of the memory chip of the display is used for storing the color palette. The display may be that of a computer, smartphone, MP4, MP3, or the like.
S13: if the storage space of the storage address is larger than or equal to the space occupied by each group of preset palettes, sequentially storing each group of preset palettes into the storage address according to the time sequence, and then updating the preset palettes stored into the storage address first;
a set of preset palettes may be set to be stored at preset time intervals.
In consideration of increasing the storage space of the storage chip of the display, the hardware cost can be increased, so that each group of preset palettes are sequentially stored in the same storage address, and the stored preset palettes are used for replacing the palettes stored firstly, and the storage diversity can be improved without increasing the hardware cost. As shown in FIG. 2, the Reddish yellow and blue palette is stored at 3:30 to 00xxff address, and at 3:50 to 00xxff address, the Reddish yellow and blue palette is replaced.
In one embodiment, the step of sequentially storing the sets of preset palettes into the storage addresses in time sequence, and then updating the preset palettes stored into the storage addresses first comprises: after the last group of preset palettes is stored in the storage address, the steps of sequentially storing the groups of preset palettes in the storage address according to the time sequence and then updating the preset palettes stored in advance can be executed again. That is, each set of preset palettes may be stored cyclically in the same memory address.
In the process of sequentially storing each group of preset palettes into the storage addresses according to the time sequence, the space occupied by each group of preset palettes is calculated firstly, if the space occupied by each group of preset palettes is less than or equal to the storage space of the storage addresses, the preset palettes can be directly stored into the storage addresses, if the space occupied by a certain group of preset palettes to be stored is calculated to be more than the storage space of the storage addresses, the preset palettes can be stored into the storage addresses after being compressed, and the preset palettes can also be stored into the storage addresses after being decomposed into more than two groups.
In one embodiment, the step of sequentially storing each set of preset palettes into the storage address in time sequence, and then updating the preset palettes stored into the storage address first comprises: if the space occupied by the preset palette to be stored is larger than the storage space of the storage address, the capacity of the preset palette to be stored is compressed, so that the space occupied by the preset palette to be stored is smaller than or equal to the storage space of the storage address; and storing the compressed preset palette into a storage address, and updating the preset palette stored in the storage address firstly. In the subsequent steps, if the color is selected from the compressed preset palette to be used as the skin of the display, the selected skin is decompressed and then displayed.
In another embodiment, the step of sequentially storing each set of preset palettes into the storage addresses in time sequence, and then updating the preset palettes stored in the storage addresses first comprises: if the space occupied by the preset palette to be stored is larger than the storage space of the storage address, dividing the preset palette to be stored into more than two groups of sub-palettes; selecting one sub-palette from the sub-palettes to replace a preset palette stored in a storage address; and respectively sequentially storing the rest sub-palettes into storage addresses according to the time sequence.
In one embodiment, the step of sequentially storing the sets of preset palettes into the storage addresses in time sequence, and then updating the preset palettes stored into the storage addresses first comprises: obtaining the starting storage time of a preset palette stored in a storage address firstly and the current storage time; and if the time difference value between the current storage time and the starting storage time is greater than a preset time threshold value, selecting a group of preset palettes from each group of preset palettes to be stored, replacing the preset palettes stored in the storage address first, and storing the preset palettes in the storage address.
S14: and acquiring the selected color from the preset color palette stored in the storage address, and displaying the color as the skin of the display menu.
The selected color may be a user selected color. In order to facilitate the user to select the skin of the display menu, a color corresponding to the option of one menu item may be set, and the user may select the corresponding color as the skin of the display menu by clicking the option in the menu item. In one embodiment, step S14 includes:
acquiring the number of colors of a preset color palette stored in a storage address, and binding a corresponding skin identifier for each color;
adding the corresponding skin identification generation skin option to the menu item;
and acquiring the selected skin option from the menu item, searching corresponding colors in a preset color palette according to the skin identification corresponding to the selected skin option, and displaying the colors as the skin of the display menu.
According to the skin display method of the display menu, different preset palettes are respectively stored in the same storage address at different time, the palettes of the same storage address are dynamically changed, the number of the selectable skins of the display menu is increased, the defect that the display effect on the menu of the display is single due to the fact that the capacity of a storage chip of the display is insufficient is overcome, and different display effects of the display menu can be achieved without increasing the storage space of the storage chip of the display.
For step S13, when the corresponding time is reached, the next set of preset palettes is triggered to be stored in the storage address, and the preset palettes stored in the storage address are replaced. The next set of preset palettes can also be triggered to be stored at the storage address in the following way. In one embodiment, each color stored in the preset palette of the storage address is displayed as the skin of the display menu, and after the last color stored in the preset palette of the storage address is displayed as the skin of the display menu, a trigger instruction is generated; and triggering the next group of preset palettes to be stored in the storage address according to the trigger instruction so as to update the preset palettes stored in the storage address firstly.
The present invention further provides a skin display device for displaying a menu, referring to fig. 3, the skin display device for displaying a menu may include:
a preset palette obtaining module 10, configured to obtain a preset palette to be stored; the number of groups of the preset color palettes is at least two;
a storage address obtaining module 20, configured to obtain a storage address of a display memory chip;
a preset palette storing module 30, configured to store the groups of preset palettes into the storage addresses in sequence according to a time sequence if the storage space of the storage address is greater than or equal to the space occupied by each group of preset palettes, and then update the preset palettes stored in the storage addresses first;
and the skin display module 40 is used for acquiring the selected color from the preset color palette stored in the storage address, and displaying the color as the skin of the display menu.
The skin display device of the display menu is characterized in that different preset palettes are respectively stored in the same storage address at different times, the palettes of the same storage address are dynamically changed, the number of the selectable skins of the display menu is increased, the defect that the display effect on the menu of the display is single due to insufficient capacity of the storage chip of the display is overcome, and different display effects of the display menu can be realized without increasing the storage space of the storage chip of the display.
The technical features and the advantageous effects described in the embodiments of the skin display method of the display menu are applicable to the embodiments of the skin display device of the display menu, and thus the present invention is claimed.
The invention also proposes a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, realizes the steps of the skin display method of the display menu as in any of the embodiments above.
A computer device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing the steps of the skin display method of the display menu as in any of the embodiments above.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express a few embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A skin display method for displaying a menu on a display, comprising the steps of:
acquiring a preset palette to be stored; the number of the groups of the preset palettes is at least two;
acquiring a storage address of a display storage chip;
if the storage space of the storage address is larger than or equal to the space occupied by each group of preset palettes, sequentially storing each group of preset palettes into the storage address according to the time sequence, then updating the preset palettes stored into the storage address first;
if the space occupied by the preset palette to be stored is larger than the storage space of the storage address, the capacity of the preset palette to be stored is compressed, so that the space occupied by the preset palette to be stored is smaller than or equal to the storage space of the storage address;
storing the compressed preset palette into the storage address to update the preset palette stored in the storage address;
and acquiring the selected color from the preset color palette stored in the storage address, and displaying the color as the skin of the display menu.
2. The method of claim 1, wherein the step of updating the preset palette stored in the storage address first by storing the respective sets of preset palettes in the storage address sequentially in time order and then storing the preset palette in the storage address comprises:
and after the last group of preset palettes are stored in the storage addresses, the step of sequentially storing the groups of preset palettes into the storage addresses according to the time sequence and updating the preset palettes stored firstly by the stored preset palettes is executed again.
3. The method of claim 1, wherein the step of updating the preset palette stored in the storage address first by storing the respective sets of preset palettes in the storage address sequentially in time order and then storing the preset palette in the storage address comprises:
if the space occupied by the preset palette to be stored is larger than the storage space of the storage address, dividing the preset palette to be stored into more than two groups of sub-palettes;
selecting one sub-palette from the sub-palettes to replace a preset palette stored in the storage address;
and respectively sequentially storing the rest sub-palettes into the storage addresses according to the time sequence.
4. A method for displaying a skin on a display menu according to any one of claims 1 to 3, wherein the step of retrieving the selected color from the preset color palette stored in the storage address as the skin of the display menu and displaying the skin comprises:
acquiring the number of colors of a preset color palette stored in the storage address, and binding a corresponding skin identifier for each color;
adding the corresponding skin identification generation skin option to the menu item;
and acquiring the selected skin option from the menu item, searching the corresponding color in the preset palette according to the skin identifier corresponding to the selected skin option, and displaying the color as the skin of the display menu.
5. A method for skin display of a menu on a display device according to any one of claims 1 to 3, wherein said step of updating the preset palettes stored in said storage locations prior to storing the preset palettes stored in said storage locations after sequentially storing the respective sets of preset palettes in said storage locations in chronological order comprises:
acquiring the starting storage time of a preset palette stored in the storage address firstly and the current storage time;
and if the time difference value between the current storage time and the storage starting time is greater than a preset time threshold value, selecting a group of preset palettes from each group of preset palettes to be stored, replacing the preset palettes stored in the storage address in advance, and storing the preset palettes in the storage address.
6. A method of skin presentation from a display menu according to any one of claims 1 to 3, wherein the set of pre-set color palettes differ in color type and the set of pre-set color palettes differ in number of colors.
7. A skin-rejuvenating apparatus for a display, comprising:
the storage address acquisition module is used for acquiring the storage address of the current palette;
a storage time obtaining module, configured to obtain starting storage time of the current palette at the storage address and current storage time;
the palette replacing module is used for replacing the current palette with a preset palette and storing the current palette into the storage address if the time difference value between the current storage time and the storage starting time is greater than a preset time threshold; the device is also used for compressing the capacity of the preset palette to be stored when the space occupied by the preset palette to be stored is larger than the storage space of the storage address, so that the space occupied by the preset palette to be stored is smaller than or equal to the storage space of the storage address; storing the compressed preset palette into the storage address to update the preset palette stored in the storage address;
and the skin display module is used for acquiring the selected color from the preset color palette as the skin of the display and displaying the skin on the display.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
9. A computer device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1-6 are implemented when the program is executed by the processor.
CN201711466593.0A 2017-12-28 2017-12-28 Skin updating method and device of display Active CN108196789B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711466593.0A CN108196789B (en) 2017-12-28 2017-12-28 Skin updating method and device of display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711466593.0A CN108196789B (en) 2017-12-28 2017-12-28 Skin updating method and device of display

Publications (2)

Publication Number Publication Date
CN108196789A CN108196789A (en) 2018-06-22
CN108196789B true CN108196789B (en) 2020-11-24

Family

ID=62586118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711466593.0A Active CN108196789B (en) 2017-12-28 2017-12-28 Skin updating method and device of display

Country Status (1)

Country Link
CN (1) CN108196789B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489882B (en) * 2021-12-16 2023-05-19 成都鲁易科技有限公司 Method and device for realizing dynamic skin of browser and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1258059A (en) * 1998-12-18 2000-06-28 索尼公司 Image processing apparatus and image processing method
CN2730050Y (en) * 2004-10-15 2005-09-28 天津三星电子有限公司 DVD player with menu having changed pattern
CN101193231A (en) * 2006-11-28 2008-06-04 康佳集团股份有限公司 OSD control module and its OSD menu color setting method
CN101552887A (en) * 2008-04-02 2009-10-07 青岛海信电器股份有限公司 Television display method and corresponding television equipment
CN102054467A (en) * 2009-11-09 2011-05-11 三洋电机株式会社 Display driving circuit and display driving system
CN102103742A (en) * 2009-12-16 2011-06-22 鸿富锦精密工业(深圳)有限公司 Image file processing device and method
CN102473398A (en) * 2009-07-17 2012-05-23 三菱电机株式会社 Facility operation display device, air-conditioning system, and program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9311890B2 (en) * 2013-09-03 2016-04-12 Hewlett-Packard Development Company, L.P. Assigning display colors to achieve apparent desired colors
JP6662123B2 (en) * 2016-03-14 2020-03-11 富士通株式会社 Image encoding apparatus, image encoding method, and image encoding program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1258059A (en) * 1998-12-18 2000-06-28 索尼公司 Image processing apparatus and image processing method
CN2730050Y (en) * 2004-10-15 2005-09-28 天津三星电子有限公司 DVD player with menu having changed pattern
CN101193231A (en) * 2006-11-28 2008-06-04 康佳集团股份有限公司 OSD control module and its OSD menu color setting method
CN101552887A (en) * 2008-04-02 2009-10-07 青岛海信电器股份有限公司 Television display method and corresponding television equipment
CN102473398A (en) * 2009-07-17 2012-05-23 三菱电机株式会社 Facility operation display device, air-conditioning system, and program
CN102054467A (en) * 2009-11-09 2011-05-11 三洋电机株式会社 Display driving circuit and display driving system
CN102103742A (en) * 2009-12-16 2011-06-22 鸿富锦精密工业(深圳)有限公司 Image file processing device and method

Also Published As

Publication number Publication date
CN108196789A (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN111176976B (en) Test data generation method and device, storage medium and electronic device
CN105278799B (en) Interface switching method and device
US10311115B2 (en) Object search method and apparatus
CN107301007B (en) Function menu display method and system
WO2014197115A4 (en) Harvesting addresses
US11462002B2 (en) Wallpaper management method, apparatus, mobile terminal, and storage medium
CN104219561B (en) The method for cleaning and user equipment of a kind of offline video
CN105279161A (en) Filter sequencing method and filter sequencing device for picture processing application
CN108196789B (en) Skin updating method and device of display
CN103246428A (en) Method and user terminal for displaying applications in desktop groups
CN105930191A (en) System service reloading method and apparatus
CN105988803B (en) Application program display method and terminal
US20120053883A1 (en) Electronic device tester and testing method
CN106251382B (en) Method and system for realizing picture style switching, camera rendering and theme updating
CN107526636B (en) Resource identification method and device
US10923072B2 (en) Method and device for displaying non-standard resolution data
CN106648568A (en) Method and device for adding check box into table
JP2012203652A (en) Terminal, application management method and application management program
CN105589691A (en) Method and device for entering set application program
CN106610920A (en) Method and device for displaying data chart
CN106713637A (en) Method and device for establishing call item
US20140114938A1 (en) Data compression apparatus and method
CN104536820A (en) Method and device for operating multiple systems and terminal
CN104504107B (en) The methods of exhibiting and device of search pictures
CN105282206A (en) Method, device and system for processing website resource files

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant