CN113031748A - Display method and device based on dynamic word stock, storage medium and electronic equipment - Google Patents

Display method and device based on dynamic word stock, storage medium and electronic equipment Download PDF

Info

Publication number
CN113031748A
CN113031748A CN201911253020.9A CN201911253020A CN113031748A CN 113031748 A CN113031748 A CN 113031748A CN 201911253020 A CN201911253020 A CN 201911253020A CN 113031748 A CN113031748 A CN 113031748A
Authority
CN
China
Prior art keywords
processing chip
display
main processing
word stock
displayed
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
Application number
CN201911253020.9A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911253020.9A priority Critical patent/CN113031748A/en
Priority to PCT/CN2020/134028 priority patent/WO2021115212A1/en
Publication of CN113031748A publication Critical patent/CN113031748A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the application provides a display method and device based on a dynamic word stock, a storage medium and electronic equipment. In the operation process of the electronic equipment, a main processing chip acquires data to be displayed and a display style and generates a dynamic word stock; the main processing chip transmits the dynamic word stock to the co-processing chip; and the co-processing chip generates display contents according to the data to be displayed and the dynamic word stock and displays the display contents on the display screen. Based on this, the original word stock containing all the word stocks does not need to be stored on the co-processing chip, so that the storage space of the co-processing chip can be saved; and the power consumption consumed by the electronic equipment for generating and displaying the display content can be reduced by operating the lower-power-consumption co-processing chip to generate and display the display content.

Description

Display method and device based on dynamic word stock, storage medium and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a display method and apparatus based on a dynamic word stock, a storage medium, and an electronic device.
Background
With the development of electronic device technology, various electronic devices have become indispensable tools in people's life and work, and more functions can be supported by electronic devices. For example, the user may implement a call function, an online shopping function, a navigation function, a game function, an electronic book function, and the like through the electronic device.
However, the electronic devices support more and more functions, and the power consumption of the electronic devices is higher and higher. How to reduce the power consumption of the electronic device and prolong the endurance time of the electronic device becomes a problem to be solved urgently at present.
Disclosure of Invention
The embodiment of the application provides a display method, a display device, a storage medium and electronic equipment based on a dynamic word stock, and the power consumption of the electronic equipment can be reduced.
In a first aspect, an embodiment of the present application provides a display method based on a dynamic word stock, which is applied to an electronic device, where the electronic device includes a main processing chip, a co-processing chip, and a display screen, and the operating power consumption of the co-processing chip is less than that of the main processing chip; the display method based on the dynamic word stock comprises the following steps:
the main processing chip acquires data to be displayed and a display style;
the main processing chip generates a dynamic word stock according to the data to be displayed and the display style, wherein the dynamic word stock comprises font images when each display unit in the data to be displayed is displayed in the display style;
the main processing chip transmits the dynamic word stock to the co-processing chip;
the co-processing chip generates display content according to the display style of each display unit in the data to be displayed when the display unit displays the font image in the dynamic font library;
and the co-processing chip displays the display content on the display screen.
In a second aspect, an embodiment of the present application further provides a display device based on a dynamic word stock, which is applied to an electronic device, where the electronic device includes a main processing chip, a co-processing chip and a display screen, an operation power consumption of the co-processing chip is lower than an operation power consumption of the main processing chip, the main processing chip includes an acquisition module and a dynamic word stock generation module, the co-processing chip includes a display content generation module and a display control module, where:
the acquisition module is configured to: acquiring data to be displayed and a display style;
the dynamic word stock generation module is used for: generating a dynamic word stock according to the display data and the display style, wherein the dynamic word stock comprises font images when each display unit in the data to be displayed is displayed in the display style;
the main processing chip is further configured to: transmitting the dynamic word stock to the co-processing chip;
the display content generation module is used for: generating display content according to the display style of each display unit in the data to be displayed when the display unit displays the font image in the dynamic font library;
the display control module is further configured to: and displaying the display content on the display screen.
In a third aspect, an embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program runs on a processor, the processor is caused to execute the dynamic word stock based display method as described above.
In a fourth aspect, an embodiment of the present application further provides an electronic device, including a main processing chip, a co-processing chip, and a display screen, where operation power consumption of the co-processing chip is lower than that of the main processing chip;
the main processing chip comprises a first processor and a first memory, wherein a first computer program is stored on the first memory, and the first processor is used for executing:
acquiring data to be displayed and a display style;
generating a dynamic word stock according to the data to be displayed and the display style, wherein the dynamic word stock comprises font images when each display unit in the data to be displayed is displayed in the display style;
transmitting the dynamic word stock to the co-processing chip;
the co-processing chip comprises a second processor and a second memory, wherein a second computer program is stored on the second memory, and the second processor is used for executing:
generating display content according to the display style of each display unit in the data to be displayed when the display unit displays the font image in the dynamic font library;
and displaying the display content on the display screen.
In a fifth aspect, an embodiment of the present application further provides an electronic device, where the electronic device is configured to execute the display method based on the dynamic word stock.
According to the display method and device based on the dynamic word stock, the storage medium and the electronic equipment, the electronic equipment comprises a main processing chip and a co-processing chip, and the operation power consumption of the co-processing chip is lower than that of the main processing chip. In the operation process of the electronic equipment, the main processing chip acquires data to be displayed and a display style; the main processing chip generates a dynamic word stock according to the display data and the display style; the main processing chip wakes up the co-processing chip and transmits the dynamic word library to the co-processing chip, and then the main processing chip enters a dormant state; the co-processing chip generates display contents according to the data to be displayed and the dynamic word stock; the co-processing chip displays the display content on the display screen. Based on this, according to the display method based on the dynamic word stock provided by the embodiment of the application, the main processing chip generates the dynamic word stock according to the data to be displayed and the display style, the co-processing chip generates the display content according to the data to be displayed and the dynamic word stock, and further, the original word stock containing all characters does not need to be stored on the co-processing chip, so that the storage space of the co-processing chip can be saved; and after the dynamic word stock is generated, the display content is generated and displayed through the lower-power-consumption co-processing chip, so that the power consumption consumed when the electronic equipment performs the operation of generating and displaying the display content can be reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a first structural schematic diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a schematic view of an electronic device according to an embodiment of the present disclosure when the electronic device operates in a first mode.
Fig. 3 is a schematic view of an electronic device according to an embodiment of the present disclosure when the electronic device operates in a second mode.
Fig. 4 is a second structural schematic diagram of an electronic device according to an embodiment of the present application.
Fig. 5 is a first flowchart of a display method based on a dynamic word stock according to an embodiment of the present application.
Fig. 6 is a second flowchart of a display method based on a dynamic word stock according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a display device based on a dynamic word stock according to an embodiment of the present application.
Fig. 8 is a third schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 9 is a fourth schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiment of the present application provides a display method based on a dynamic word stock, where an execution main body of the display method based on the dynamic word stock may be a display device based on the dynamic word stock provided in the embodiment of the present application, or an electronic device integrated with the display device based on the dynamic word stock, where the display device based on the dynamic word stock may be implemented in a hardware or software manner. The electronic device may be a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer.
An electronic device 100 is further provided in an embodiment of the present application, please refer to fig. 1, where fig. 1 is a first structural schematic diagram of the electronic device provided in the embodiment of the present application. The electronic device 100 provided by the embodiment of the application includes a main processing chip 110, a co-processing chip 120 and a display screen 130, and the operation power consumption of the co-processing chip 120 is lower than that of the main processing chip 110. Both the main processing chip 110 and the co-processing chip 120 may be connected to the display screen 130 through a communication bus. The main processing chip 110 and the co-processing chip 120 are electrically connected to the display screen 130. The communication bus may be an I2C (Inter-Integrated Circuit) bus or an SPI (Serial Peripheral Interface) bus. In other embodiments, other formats of communication buses may be used, and are not specifically limited herein.
The main processing Chip 110 may be a main control SOC (System on Chip) of the electronic device 100. In some embodiments, the primary processing chip 110 has a first processor integrated thereon. In some embodiments, the main processing chip 110 also has a first memory integrated thereon.
The co-processing chip 120 is a low power consumption SOC, the power consumption in the operating state is much smaller than the power consumption of the main processing chip 110 in the operating state, a second processor and a second memory are integrated on the co-processing chip, the frequency of the second processor is much smaller than that of the first processor, and the capacity of the memory of the co-processing chip 120 is also smaller than that of the main processing chip 110.
The main processing chip 110 may control the electronic device 100 to operate in the first mode based on the first operating system, and enter the sleep state when the electronic device 100 operates in the second mode. In the sleep state, the main processing chip 110 does not perform data processing, and some or all of the electronic devices of the main processing chip 110 may be powered off. The co-processing chip 120 may control the electronic device 100 to operate in the second mode based on the second operating system.
It will be appreciated that the first and second operating systems are different operating systems, and that the second operating system requires fewer resources to run than the first operating system. The resource may be a storage space, an operation frequency, a required power amount, and the like. For example, the first operating system may be an android operating system, a Linux operating system, a Windows operating system, or an ios operating system, and the second operating system may be a real-time operating system. The electronic device 100 may run both the first operating system and the second operating system. It should be noted that the first operating system and the second operating system are two independent operating systems.
Wherein the first mode and the second mode may be different operating modes of the electronic device 100. Referring to fig. 2 and fig. 3 at the same time, fig. 2 is a schematic view of the electronic device provided by the embodiment of the present application when operating in a first mode, and fig. 3 is a schematic view of the electronic device provided by the embodiment of the present application when operating in a second mode.
As shown in fig. 2, the first mode may be understood as a normal operation mode of the electronic device 100, or a standard power consumption mode. When the electronic device 100 operates in the first mode, the power consumption of the electronic device 100 is the standard power consumption, i.e., the normal power consumption. The first mode may include a bright screen operation mode or a bright screen display mode. In the bright screen mode of operation, the display 130 of the electronic device 100 is illuminated, and icons and names of a plurality of applications may be displayed on the display 130 of the electronic device 100. When the user clicks the application icon, the electronic device 100 may launch the corresponding application. In addition, information such as time, date, weather, temperature, etc. may also be displayed on the display screen 130 of the electronic device 100.
As shown in fig. 3, the second mode may be understood as a low power consumption mode of the electronic device 100. When the electronic device 100 operates in the second mode, the power consumption of the electronic device 100 is low, and at this time, the power consumption of the electronic device 100 is less than the standard power consumption, that is, less than the normal power consumption. That is, the power consumption of the electronic device 100 when operating in the second mode is less than the power consumption of the electronic device 100 when operating in the first mode. Wherein, the second mode can comprise a screen-off display mode or a simple operation mode. Among them, the off screen On Display (AOD) mode refers to a Display mode in which the electronic device 100 displays information On the Display screen 130 in the off screen Display mode. For example, after the electronic device 100 enters the screen-off display mode, the main processing chip 110 may enter a sleep state, and the auxiliary processing chip 120 enters an operating state, so as to implement dynamic display, refresh, touch screen processing of a screen and running of some application programs under extremely low power consumption. For example, when the electronic device 100 is in the off-screen display mode, the co-processing chip 120 may control updating and displaying of information such as time, date, weather, calendar, and the like, may also control displaying of an icon of a shortcut tool on the off-screen display interface, and may also support running of some lightweight applications such as an electronic book, a compass, a calculator, and the like.
Since the first mode is a standard power consumption mode and the second mode is a low power consumption mode, the first operating system can be understood as a standard power consumption operating system, and the second operating system can be understood as a low power consumption operating system. Therefore, in the electronic device 100, it can also be understood that the main processing chip 110 is used for controlling the electronic device 100 to operate in the standard power consumption mode under the standard power consumption operating system, and the co-processing chip 120 is used for controlling the electronic device 100 to operate in the low power consumption mode under the low power consumption operating system. Wherein, the main processing chip 110 controls the electronic device 100 to operate in the standard mode under the standard power consumption operating system, and the co-processing chip 120 may be in the sleep state. The main processing chip 110 may be in a sleep state when the co-processing chip 120 controls the electronic device 100 to operate in a low power mode under the low power operating system.
It should be noted that, in the second mode, some functions of the electronic device 100 are locked, and other functions are still available. For example, in the off-screen display mode, the display 130 of the electronic device 100 is locked and turned off, but the display 130 of the electronic device 100 may display part of information in the off-screen display mode, for example, information such as time, a lock screen identifier, e-book content, shortcut application icons, and the like may be displayed on the electronic device 100.
It can be understood that, in the first mode, the electronic device 100 can quickly start the application to meet all functional requirements of the user, for example, to perform an online shopping function, a game function, an audio/video function, and the like required by the user. In the second mode, the electronic device 100 can quickly start the shortcut application to meet some functional requirements of the user, such as performing an electronic book display function, a calculator function, a game console function, a note function, a camera function, a flashlight function, and the like, and on the premise of meeting some functional requirements of the user, the power consumption of the electronic device 100 can be effectively reduced, and the endurance time of the electronic device 100 can be prolonged.
It can be understood that, since the operation power consumption of the co-processing chip 120 is smaller than that of the main processing chip 110, the processing capability of the co-processing chip 120 is smaller than that of the main processing chip 110. That is, the main processing chip 110 has a relatively high processing capability, and the auxiliary processing chip 120 has a relatively low processing capability. When the electronic device 100 operates in the first mode, the main processing chip 110 may perform all data processing and control all functional components of the electronic device 100 based on the first operating system. When the electronic device 100 operates in the second mode, the co-processing chip 120 can only perform partial data processing and control partial functional components of the electronic device 100 based on the second operating system. For example, the co-processing chip 120 may perform simple data processing and control functional components with low data processing requirements based on the second operating system, and the co-processing chip 120 cannot perform complex data processing and cannot control functional components with high data processing requirements.
It can be understood that the main processing chip 110 controls the electronic device 100 to operate in the first mode based on the first operating system, the co-processing chip 120 controls the electronic device 100 to operate in the second mode based on the second operating system, and the main processing chip 110 enters the sleep state when the electronic device 100 operates in the second mode, so that the power consumption of the main processing chip 110 can be saved when the electronic device 100 operates in the second mode, and since the operating power consumption of the co-processing chip 120 is less than that of the main processing chip 110, and the resources required when the second operating system operates are less than those required when the first operating system operates, the power consumption when the electronic device 100 operates in the second mode is less than that when the electronic device 100 operates in the first mode, so that the continuous operation of the electronic device 100 can be ensured to meet the requirements of the user, and the power consumption of the electronic device 100 can be effectively reduced, the endurance of the electronic device 100 is extended.
In the description of the present application, it is to be understood that terms such as "first", "second", and the like are used merely to distinguish one similar element from another, and are not to be construed as indicating or implying relative importance or implying any indication of the number of technical features indicated.
It is understood that the electronic device 100 can operate in both the first mode and the second mode, and therefore the electronic device 100 can switch between the first mode and the second mode. Referring to fig. 4, fig. 4 is a schematic structural diagram of a second electronic device according to an embodiment of the present disclosure.
The electronic device 100 of the embodiment of the application may further include a switching module 140, where the switching module 140 includes at least two data input terminals 141 and 142, at least one output terminal 143, and at least one switching control terminal 144. One data input terminal 141 of the switching module 140 may be connected to the display data output terminal 111 of the main processing chip 110, another data input terminal 142 of the switching module 140 may be connected to the display data output terminal 121 of the co-processing chip 120, a switching control terminal 144 of the switching module 140 is connected to the switching control signal output terminal 122 of the co-processing chip 120, and a data output terminal 143 of the switching module 140 may be connected to the display screen 130.
It is understood that the switching module 140 is used for switching the display data conducting path of the display screen 130 between the main processing chip 110 and the co-processing chip 120. For example, case A: when the main processing chip 110 is in a working state and the co-processing chip 120 is in a dormant state, the display data of the main processing chip 110 is input to the display screen 130 through the switching module 140 for display control. Case B: when the main processing chip 110 detects that the display screen 130 enters the screen-off display mode, the co-processing chip 120 is woken up, and the main processing chip 110 enters a sleep state. After the co-processing chip 120 is awakened and the switching module 140 is controlled to perform the switching operation, the switching module 140 switches the input source of the display data of the display screen 130 from the main processing chip 110 to the co-processing chip 120, that is, the display data of the co-processing chip 120 is input to the display screen 130 through the switching module 140 for display control. Case C: when the main processing chip 110 is woken up to enter a working state, if the main processing chip 110 needs to display information on the display screen 130, the co-processing chip 120 controls the switching module 140 to execute a switching operation, and switches to conduct display data output by the main processing chip 110 to the display screen 130 for display control. After the switching, the co-processing chip 120 may go to the sleep state, i.e. go back to the situation a, and thus the switching control of the display screen 130 is implemented in a loop.
In the above manner, the co-processing chip 120 always controls the switching of the switching module 140, so that the interface occupation of the main processing chip 110 can be saved in the hardware design level. The main processing chip 110 is a main control SOC chip in the electronic device 100, such as an Application Processor (AP), and the main control SOC generally has more function control and its interface resources are more tense. The co-processing chip 120 outputs the switching control signal to control the switching of the switching module 140, so that an interface (e.g., a bus interface) of the main control SOC is not occupied, and the complexity of circuit design is reduced.
The electronic device 100 of the embodiment of the present application may further include a touch circuit, and the touch circuit may be electrically connected to the main processing chip 110 and the co-processing chip 120. The touch control circuit can be disposed at any position on the surface of the electronic device 100 as required. For example, the touch circuit may be disposed on a surface of a back panel of the electronic device 100, or the touch circuit may be in the form of a touch screen overlying the display screen 130. The co-processing chip 120 can communicate with the touch screen through I2C, and communicate with the display screen 130 through MIPI (Mobile Industry Processor Interface).
It is understood that the touch circuit may be used to receive a touch instruction from a user. The main processing chip 110 may receive a touch instruction of a screen-off event of a user based on the touch circuit, and the co-processing chip 120 may receive a touch instruction of a screen-on event of the user based on the touch circuit.
For example, when the electronic device 100 is in the first mode, if the main processing chip 110 receives a touch instruction of a screen-off event, a wake-up request may be sent to the co-processing chip 120, and after the co-processing chip 120 receives the wake-up request, the co-processing chip 120 enters a working state.
When the electronic device 100 is in the second mode, if the co-processing chip 120 receives the touch instruction of the bright screen event, the wake-up request may be sent to the main processing chip 110, and after the main processing chip 110 receives the wake-up request, the main processing chip 110 enters a working state.
Based on the structure of the electronic device 100, a display method based on a dynamic word stock provided in the embodiment of the present application is described. Referring to fig. 5, fig. 5 is a first flowchart illustrating a display method based on a dynamic word stock according to an embodiment of the present application. The specific process of the display method based on the dynamic word stock provided by the embodiment of the application can be as follows:
in 101, the main processing chip acquires data to be displayed and a display style.
The data to be displayed may be information that the user wishes the display screen 130 of the electronic device 100 to display. The data to be displayed may include a plurality of display units, the display units may be displayed in a computer language that may be transmitted by the electronic device, and the display units may also be displayed in the form of characters.
The data to be displayed may be obtained by the main processing chip 110 from the cloud service processor, for example, the main processing chip 110 obtains the e-book data to be displayed from a website of the e-book application. The data to be displayed may also be obtained by the main processing chip 110 from its own memory, for example, the main processing chip 110 obtains text data from its own memory. At this time, the co-processing chip 120 may be in a sleep state to save power consumption of the electronic device 100.
Of course, the data to be displayed may also be transmitted from the co-processing chip 120 to the main processing chip 110, for example, for a clock application installed on the co-processing chip 120, the co-processing chip 120 may transmit the time data to be displayed to the main processing chip 110; for another example, for a note application installed on the co-processing chip 120, the co-processing chip 120 may transmit note data to be displayed to the main processing chip 110. At this time, if the main processing chip 110 is in the sleep state, the co-processing chip 120 needs to wake up the main processing chip 110 first, and the specific co-processing chip 120 may send a wake-up instruction to the main processing chip 110, and the main processing chip 110 may be switched from the sleep state to the working state according to the wake-up instruction, and then the co-processing chip 120 may transmit data to be displayed to the main processing chip 110, and then the co-processing chip 120 may perform the sleep state to save the power consumption of the electronic device 100.
It can be understood that the size of the data to be displayed, which is obtained by the main processing chip 110, may be adjusted according to the storage space of the co-processing chip 120, so that the size of the dynamic word library, which is generated by the main processing chip 110 according to the content to be displayed in the subsequent steps, does not exceed the available storage space of the co-processing chip 120.
The display style refers to a mode in which the user wants the data to be displayed on the display 130. The display style may be a display font style requirement, a display font size requirement, and a display font form requirement of the data to be displayed by the user. The display font style may include, but is not limited to, font styles appearing in the market, such as sons, blackbodies, regular fonts, and the like; the display font size may include, but is not limited to, the font sizes already available on the market, such as first size font, fourth size font, fifth size font, etc.; the display font forms may include, but are not limited to, bold, underline, italic, color, and the like font forms that have appeared on the market.
The display pattern may be initially stored in the memory of the main processing chip 110, and the main processing chip 110 may retrieve the display pattern from its own memory. At this time, the co-processing chip 120 may be in a sleep state to save power consumption of the electronic device 100. Of course, the display style may also be that the co-processing chip 120 transmits to the main processing chip 110, at this time, if the main processing chip 110 is in the sleep state, the co-processing chip 120 needs to wake up the main processing chip 110 first, then the co-processing chip 120 transmits the data to be displayed to the main processing chip 110, and then the co-processing chip 120 performs the sleep state to save the power consumption of the electronic device 100.
At 102, the main processing chip generates a dynamic font library according to the data to be displayed and the display style, wherein the dynamic font library comprises font images when each display unit in the data to be displayed is displayed in the display style.
The word stock currently appearing on the market is usually several to several tens of megabytes, for example, the bold-face word stock in ttf format has 9.29 megabytes, and the co-processing chip 120 cannot store more different word stocks because the capacity of the memory of the co-processing chip 120 is smaller. Furthermore, when the electronic device 100 is in the second mode, the font style that can be displayed by the co-processing chip 120 is relatively single.
In this step, the main processing chip 110 generates a dynamic word stock according to the data to be displayed and the display style. For example, the data to be displayed that the user wants the display 130 of the electronic device 100 to display is "i love you in china 1314, i love you forever". The user desires the electronic apparatus 100 to display the above information in the form of a font of a song body. Based on the data to be displayed and the display style, the main processing chip 110 may search a song body font library stored in the original font library of the main processing chip 110 or a song body font library of another cloud server (e.g., a website specially storing the font library) for a target font library unit corresponding to the display unit- "i", "you", "in", "country", "1", "3", "4", "forever", "far", etc. in the data to be displayed, and generate font images, such as font images of "i", "you", "in", "country", "1", "3", "4", "forever", "far", etc., from the target font library unit according to the display style, where the font images may together form a dynamic font library.
Because the font images in the dynamic font library are generated according to the data to be displayed, the dynamic font library can only comprise the font images corresponding to the data to be displayed, and the size of the dynamic font library is far smaller than that of the font library containing all the font images.
It is understood that the original word stock may contain most or all of the word stocks known in the market, such as the Song style word stock, the bold type word stock, the regular style word stock, the Times New Roman word stock, and so forth. The main processing chip 110 may select a word stock or a plurality of word stocks from the original word stock to generate a dynamic word stock according to the display style.
At 103, the main processing chip transmits the dynamic word stock to the co-processing chip.
In the foregoing steps 101 and 102, the electronic device 100 may be in the first mode, and the co-processing chip 120 may be in a sleep state. At this time, if the user wishes to display the data to be displayed in the second mode, the main processing chip 110 needs to wake up the co-processing chip 120.
Specifically, the main processing chip 110 may send a first wake-up instruction to the co-processing chip 120, and the co-processing chip 120 may be switched from the sleep state to the working state according to the first wake-up instruction. After the co-processing chip 120 is woken up, the main processing chip 110 may transmit the dynamic word library to the co-processing chip 120, and since the storage space occupied by the dynamic word library is small, the co-processing chip 120 may receive the dynamic word library and may perform the subsequent steps. Subsequently, the main processing chip 110 enters the sleep state, so that the power consumption of the electronic device 100 can be saved.
At 104, the co-processing chip generates display content according to the display style of each display unit in the data to be displayed when displaying the font image in the dynamic font library.
The co-processing chip 120 may search the font image corresponding to each display unit in the data to be displayed from the dynamic font library according to the display unit, and then sort the font images according to the same arrangement order of the plurality of display units in the data to be displayed, thereby generating the display content.
For example, the user wants the display 130 of the electronic device 100 to display the data to be displayed in sonse style as "i love you in china 1314, i love you forever", at this time, the co-processing chip 120 may search the dynamic character library for the font images "i", "love", "you", "in", "country", "1", "3", "4", "forever" and "far" corresponding to the display units "i", "ai", "you", "in", "country", "1", "3", "4", "forever" and then sort the font images in the order of "i love you in china 1314, i forever love you", and the sorted display content is "i love you in china 1314, i love you forever".
At 105, the co-processing chip displays the display content on the display screen.
When the co-processing chip 120 generates the display content and displays the display content, the main processing chip 110 may enter a sleep state to save power consumption of the electronic device 100. After the main processing chip 110 enters the sleep state, the co-processing chip 120 may output a switching control signal to control the switching module 140 to perform a switching operation, so that the switching module 140 switches from conducting the display data output by the main processing chip 110 to the display screen 130 to conducting the display data output by the co-processing chip 120 to the display screen 130, so as to implement the display control of the co-processing chip 120 on the display screen 130.
It can be understood that, after the main processing chip 110 wakes up the co-processing chip 120, the co-processing chip 120 may output a switching control signal to control the switching module 140 to perform a switching operation, so that the switching module 140 switches from turning on the display data output by the main processing chip 110 to the display screen 130 to turn on the display data output by the co-processing chip 120 to the display screen 130, so as to implement the display control of the co-processing chip 120 on the display screen 130.
After the co-processing chip 120 generates the display content, the co-processing chip 120 may transmit the display content generated in the foregoing steps to the display screen 130, and control the display screen 130 to display the display content in the second mode.
It is understood that the main processing chip 110 may generate the dynamic word stock based on the first operating system, the co-processing chip 120 may generate the display content based on the second operating system, and the resources required by the second operating system in operation may be less than those required by the first operating system in operation. Accordingly, the main processing chip 110 may generate a dynamic word stock from the display data and the display style based on the first operating system. The co-processing chip 120 may generate the display content according to the display style of each display unit in the data to be displayed when displaying the font image in the dynamic font library based on the second operating system. The co-processing chip 120 may also display the display content on the display screen 130 based on the second operating system.
It will be understood that the present application is not limited by the order of execution of the various steps described, as some steps may occur in other orders or concurrently, without conflict between the present disclosure and the drawings.
As can be seen from the above, the method for displaying based on a dynamic word stock according to the embodiment of the present application is applied to the electronic device 100, where the electronic device 100 includes the main processing chip 110 and the co-processing chip 120, and power consumption of the co-processing chip 120 during operation is lower than power consumption of the main processing chip 110 during operation. In the operation process of the electronic device 100, the main processing chip 110 obtains data to be displayed and a display style; the main processing chip 110 generates a dynamic word stock according to the display data and the display style; the main processing chip 110 transmits the dynamic word stock to the co-processing chip 120; the co-processing chip 120 generates display contents according to the display style of each display unit in the data to be displayed when displaying with the font image in the dynamic font library; the co-processing chip 120 displays the display content on the display screen 130. Based on this, in the display method based on the dynamic word stock provided in the embodiment of the present application, the main processing chip 110 generates the dynamic word stock according to the data to be displayed and the display style, and the co-processing chip 120 generates the display content according to the display style when each display unit in the data to be displayed is displayed with the font image in the dynamic word stock. Furthermore, the original word stock containing all font images does not need to be stored on the co-processing chip 120, so that the storage space of the co-processing chip 120 can be saved; moreover, after the dynamic word stock is generated, the display content is generated and displayed by the lower power consumption co-processing chip 120, so that the power consumption consumed when the electronic device 100 performs the operation of generating and displaying the display content can be reduced.
The step of generating the dynamic word stock by the main processing chip 110 according to the data to be displayed and the display style includes: the main processing chip 110 establishes a display unit set according to the data to be displayed, wherein the display unit set comprises each display unit in the data to be displayed; the main processing chip 110 indexes a word stock unit corresponding to each display unit in the display unit set from the original word stock according to the display style; the main processing chip 110 converts each font library unit into a corresponding font image to generate a dynamic font library.
The step of the main processing chip 110 establishing the display unit set according to the data to be displayed may include: the main processing chip 110 traverses each display unit of the data to be displayed; the main processing chip 110 counts the type of each display unit of the data to be displayed and generates a display unit type list; the main processing chip 110 creates a display unit set according to the display unit types in the display unit type list.
It can be understood that after the main processing chip 110 traverses all the characters of the data to be displayed, the main processing chip 110 may also remove the repeated display units in the data to be displayed, and use the remaining display units as a display unit set.
The step of the main processing chip 110 retrieving the font library unit corresponding to each display unit in the display unit set from the original font library according to the display style includes: the main processing chip 110 encodes each display unit in the display unit set, so that each display unit has an encoding number; the main processing chip 110 retrieves a word stock unit corresponding to the code number from the original word stock according to the display style and the code number.
Of course, the main processing chip 110 may also retrieve the display unit set from the original word stock according to other characteristics, for example, when the font to be displayed is a chinese character, the main processing chip 110 may index according to the character components of the chinese character. Specifically, the main processing chip 110 performs radical recognition on each display unit in the display unit set, and then indexes a word stock unit corresponding to the radical feature from the original word stock according to the radical feature, the semantics and the pre-context.
The method according to the preceding embodiment is illustrated in further detail below by way of example. Referring to fig. 6, fig. 6 is a second flowchart illustrating a display method based on a dynamic word stock according to an embodiment of the present application.
In 201, the main processing chip acquires data to be displayed and a display style.
The main processing chip 110 may obtain data to be displayed from the cloud service processor or its own memory, and at this time, the co-processing chip 120 may be in a sleep state to save power consumption of the electronic device 100. Of course, the main processing chip 110 may also receive the data to be displayed transmitted by the co-processing chip 120, and if the main processing chip 110 is in the sleep state before receiving the data to be displayed, the co-processing chip 120 may first send a second wake-up instruction to the main processing chip 110, and the main processing chip 110 is switched from the sleep state to the working state according to the second wake-up instruction, so as to receive the data to be displayed transmitted by the co-processing chip 120. After waking up the main processing chip 110, the co-processing chip 120 may perform a sleep state to save power consumption of the electronic device 100.
The main processing chip 110 may retrieve the display style from its own memory. At this time, the co-processing chip 120 may be in a sleep state to save power consumption of the electronic device 100. Of course, the main processing chip 110 may also receive the display pattern transmitted by the co-processing chip 120, and if the main processing chip 110 is in the sleep state before receiving the display pattern, the co-processing chip 120 also needs to wake up the main processing chip 110 first, then the co-processing chip 120 transmits the data to be displayed to the main processing chip 110, and then the co-processing chip 120 performs the sleep state to save the power consumption of the electronic device 100.
At 202, the main processing chip traverses each display unit of the data to be displayed, and the main processing chip counts the type of each display unit of the data to be displayed and generates a display unit type list.
In 203, the main processing core establishes a display unit set according to the display unit types in the display unit type list.
The data to be displayed may include many display units, the probability of the repetition of the display units is high, and the main processing chip 110 will count the types of all the display units of the data to be displayed and generate a display unit type list. The display unit type list can comprise display unit types which are necessary to be contained in the data to be displayed, on one hand, the number of characters in the display unit set is far smaller than the number of all display units contained in the data to be displayed, and the memory occupied by the display unit set is smaller; on the other hand, the display unit set also comprises each display unit forming the data to be displayed, and the display of the data to be displayed in the subsequent steps cannot be influenced.
For example, when the data to be displayed is "i love you in china 1314, i love you forever", the display unit thereof includes "i", "love", "you", "center", "country", "1", "3", "4", "permanent", "far". Then, the main processing chip 110 traverses each display unit in the data to be displayed, the main processing chip 110 counts the types of all display units in the data to be displayed, and the generated display unit type list may be: i: 2; love: 2; you: 2; the method comprises the following steps: 1; the state: 1; 1: 2; 3: 1; 4: 1; permanently: 1; far: 1. after the display unit type list is created, the main processing chip 110 may combine and package all the display unit types "i", "ai", "you", "zhong", "country", "1", "3", "4", "eternal" and "far" appearing in the display unit type list to generate a display unit set.
At 204, the main processing chip encodes each display unit in the set of display units such that each display unit has an encoding number.
In 205, the main processing chip retrieves a word stock unit corresponding to the code number from the original word stock according to the display style and the code number.
The main processing chip 110 may encode each display unit in the display unit set according to a Unicode encoding table, and correspondingly, each font unit in the original font library may also be encoded according to the Unicode encoding table, and further, the main processing chip 110 may index a font unit identical to the encoding number from a certain sub-font in the original font library according to the display style and the encoding number.
Of course, the main processing chip 110 may also encode the characters in the display unit set and the characters in the original word stock according to other encoding rules, such as the UTF-8 encoding rule, the GB2312 encoding rule, and the like, and the specific encoding rule is not limited in the embodiment of the present application.
At 206, the main processing chip converts each of the word stock units into a corresponding font image to generate a dynamic word stock.
The content that the user sees from display screen 130 is the bitmap mostly, and the word stock unit that stores in original word stock is vector diagram mostly, and main processing chip 110 can convert every word stock unit into corresponding font image for need not set up the great bitmap of occupation memory space-vector diagram conversion module on the coprocessing chip 120, can save coprocessing chip 120's memory space.
After the main processing chip 110 converts the word library unit of each vector into a font image, the font images may be packaged to generate a dynamic word library, and the dynamic word library may be transmitted to the co-processing chip 120.
At 207, the main processing chip transmits the dynamic word library to the co-processing chip.
The main processing chip 110 performs the aforementioned steps to enable the co-processing chip 120 to be in a sleep state, so as to save power consumption of the electronic device. After the main processing chip 110 generates the dynamic word library, the main processing chip 110 may send a first wake-up instruction to the co-processing chip 120, and the co-processing chip 120 may switch from the sleep state to the working state according to the first wake-up instruction. After the co-processing chip 120 is woken up, the main processing chip 110 may transmit the dynamic word library to the co-processing chip 120, and the co-processing chip 120 may receive the dynamic word library due to the small size of the dynamic word library and may perform the subsequent steps. Subsequently, the main processing chip 110 enters a sleep state to save power consumption of the electronic device 100.
At 208, the co-processing chip retrieves a word stock unit corresponding to each display unit in the display unit set from the original word stock according to the display style;
at 209, the co-processing chip displays the display on the display screen.
The co-processing chip 120 may search the font image corresponding to each display unit in the data to be displayed from the dynamic font library according to the display unit, and then sort the font images according to the same arrangement order of the plurality of display units in the data to be displayed, thereby generating the display content. Subsequently, the co-processing chip 120 may transmit the display content to the display 130 and control the display 130 to display the display content in the second mode.
In addition, if the co-processing chip 120 receives the display style switching signal, the co-processing chip 120 may generate a new display style according to the display style switching signal; the co-processing chip 120 may then transmit the new display style to the main processing chip 110. Subsequently, the main processing chip 110 may regenerate a new dynamic word stock according to the new display style and the data to be displayed, and transmit the new dynamic word stock to the co-processing chip 120. That is, the main processing chip 110 and the co-processing chip 120 may re-execute the aforementioned steps 101 to 105 and 201 to 209, and the specific execution steps thereof are not described herein again.
As can be seen from the above, in the display method based on the dynamic word stock according to the embodiment of the application, the main processing chip 110 determines the display unit set according to the data to be displayed and the display style; the main processing chip 110 retrieves a font library unit corresponding to each display unit in the display unit set from the original font library according to the display style; the main processing chip 110 converts each font library unit into a corresponding font image to generate the dynamic font library; the main processing chip 110 transmits the dynamic word stock to the co-processing chip 120; the co-processing chip 120 generates display content according to the data to be displayed and the dynamic word stock. Furthermore, the original word stock including all the word stock units does not need to be stored on the co-processing chip 120, and a bitmap-vector diagram conversion module does not need to be stored, so that the storage space of the co-processing chip 120 can be saved; moreover, after the dynamic word stock is generated, the display content is generated and displayed by the lower power consumption co-processing chip 120, so that the power consumption consumed when the electronic device performs the operation of generating and displaying the display content can also be reduced.
The following takes the co-processing chip 120 as an example to start the electronic book application in the second mode, and details the display method based on the dynamic word stock according to the embodiment of the present application. In the following description, an electronic book application refers to an application program, and an electronic book refers to an electronic book that a user desires to browse. The display method based on the dynamic word stock comprises the following steps:
when receiving a start touch signal of the electronic book application, the co-processing chip 120 starts the electronic book application;
when receiving a touch signal for displaying the content of a certain electronic book, the co-processing chip 120 may send a second wake-up instruction to the main processing chip 110, and the main processing chip 110 may switch from the sleep state to the working state according to the second wake-up instruction;
the co-processing chip 120 transmits the already stored display style such as the display font style, the font size, the font form, etc., or transmits the received new display style of the user to the main processing chip 110, for example, the display style may be sons style-font No. 4-bold;
the co-processing chip 120 may enter a sleep state after sending the display pattern;
the main processing chip 110 receives the display style transmitted by the co-processing chip 120, and acquires data to be displayed from a website resource corresponding to the electronic book; the data to be displayed may be part or all of chapter contents of the electronic book, for example, contents of chapters 1 to 100 of the electronic book are acquired;
the main processing chip 110 traverses each display unit in the data to be displayed, for example, the contents of chapters 1 to 100 of the electronic book, and the main processing chip 110 counts the type of each display unit of the data to be displayed and generates a display unit type list;
the main processing chip 110 establishes a display unit set according to the type of each display unit in the display unit type list;
the main processing chip 110 encodes each display unit in the display unit set, so that each display unit has an encoding number;
the main processing chip 110 retrieves a word stock unit corresponding to the code number from the original word stock according to the display style and the code number;
the main processing chip 110 converts each retrieved font library unit into a corresponding font image according to, for example, a font No. 4 and a bolded display style, and packs all font images to generate a dynamic font library;
if the co-processing chip 120 is in the sleep state, the main processing chip 110 may wake up the co-processing chip 120, specifically, the main processing chip 110 may send a first wake-up instruction to the co-processing chip 120, and the co-processing chip 120 is switched from the sleep state to the working state according to the first wake-up instruction;
the main processing chip 110 may transmit the acquired content to be displayed, such as chapter 1 to chapter 100 content of an electronic book, and the generated dynamic word library to the co-processing chip 120;
then the main processing chip 110 enters a sleep state to save the power consumption of the electronic device 100;
the co-processing chip 120 generates display contents according to the display style of each display unit in the data to be displayed when displaying with the font image in the dynamic font library;
the co-processing chip 120 displays the display content on the display screen 130.
The above steps are executed by the main processing chip 110 and the co-processing chip 120 when the user reads the electronic book. It can be understood that, after the co-processing chip 120 displays all the contents of the data to be displayed, the co-processing chip 120 may continue to wake up the main processing chip 110, and at the same time, the co-processing chip 120 deletes all the previously received data to be displayed and the dynamic word library, so that the co-processing chip 120 has enough storage space to receive the new data to be displayed and the new dynamic word library generated by the main processing chip 110 by repeating the above steps. The display of the whole electronic book can be completed by the circulation.
It can be understood that, if a user needs to change a display style, for example, a regular font-5 font-italics, when reading a certain chapter, if the main processing chip 110 detects that the data to be displayed is already acquired data, the main processing chip 110 may omit the steps of establishing the display unit set and encoding the display unit set, retrieve a font unit corresponding to each display unit in the display unit set from the regular font library in the original font library directly according to the new display style, regenerate the dynamic font library according to the new display style of the 5 font and the italics, and continue the subsequent steps. Of course, if the main processing chip 110 detects that the data to be displayed is the data that is not acquired, the new data to be displayed is directly acquired again according to the foregoing steps, and the foregoing steps are continued.
It can be understood that, if the user changes the data to be displayed without changing the display style, the main processing chip 110 and the co-processing chip 120 need to repeat the above steps to continue to establish a new dynamic word library for the new data to be displayed. For example, the user selects chapter information, such as chapter 201, that is not obtained by the main processing chip 110 from the directory, or the display content of chapters that are turned over by the user is the content that is not obtained by the main processing chip 110 yet, or the display content of chapters that are turned over by the user before is the display content that has been deleted by the co-processing chip 120. At this time, the co-processing chip 120 and the main processing chip 110 may still repeat the above steps to obtain new data to be displayed, generate a new dynamic word stock, and continue to display.
The above embodiment is only one specific application scenario of the display method based on the dynamic word stock in the embodiment of the present application, and it can be understood that the display method based on the dynamic word stock in the present application can also be used in application scenarios such as dynamic refresh display of time application, display of memo application, and the like.
The embodiment of the present application further provides a display device 300 based on the dynamic word stock. The display device 300 based on the dynamic font library according to the embodiment of the present application will be described based on the structure of the electronic device 100. Referring to fig. 7, fig. 7 is a schematic structural diagram of a display device based on a dynamic word stock according to an embodiment of the present application. The display device 300 based on the dynamic word stock can be applied to an electronic device, the electronic device can include a main processing chip 310, a co-processing chip 320 and a display screen, and the operation power consumption of the co-processing chip 320 is lower than that of the main processing chip 310. The main processing chip 310 includes: the obtaining module 301, the dynamic word stock generating module 302, and the co-processing chip 320 include: a display content generation module 303 and a display control module 304. Wherein:
the acquisition module 301: the method comprises the steps of acquiring data to be displayed and a display style;
the dynamic word stock generation module 302: the dynamic word stock is used for generating a dynamic word stock according to the display data and the display style, and the dynamic word stock comprises font images when each display unit in the data to be displayed is displayed in the display style;
the main processing chip 310: and also for transmitting the dynamic word stock to the co-processing chip 320;
the display content generation module 303: the display unit is used for generating display content according to the display style when each display unit in the data to be displayed displays the font image in the dynamic font library;
the display control module 304: and is also used for displaying the display content on the display screen.
The main processing chip 310 may store an original word stock therein, and the dynamic word stock generating module 302 may further be configured to: establishing a display unit set according to the data to be displayed, wherein the display unit set comprises each display unit in the data to be displayed; searching out a word stock unit corresponding to each display unit in the display unit set from the original word stock according to the display style; and converting each word stock unit into a corresponding font image to generate the dynamic word stock.
The dynamic word stock generation module 302 may be further configured to: traversing each display unit of the data to be displayed; counting the type of each display unit of the data to be displayed and generating a display unit type list; and establishing a display unit set according to the display unit types in the display unit type list.
The dynamic word stock generation module 302 may be further configured to: encoding each display unit in the display unit set so that each display unit has an encoding number; and searching out a word stock unit corresponding to the code number from the original word stock according to the display style and the code number.
The co-processing chip 320 may further be configured to: when a display style switching signal is received, generating a new display style according to the display style switching signal; the new display style is transmitted to the main processing chip 310.
It is understood that the electronic device further includes a touch circuit electrically connected to the main processing chip 310 and the co-processing chip 320. The co-processing chip 320 can receive the display mode switching signal through the touch control circuit.
The electronic device may further include a switching module, two data input ends of the switching module are respectively connected to the display data output ends of the main processing chip 310 and the auxiliary processing chip 320, a switching control end of the switching module is connected to the switching control signal output end of the auxiliary processing chip 320, and a data output end of the switching module is connected to the display screen.
The switching module is used for executing: after the main processing chip 310 wakes up the co-processing chip 320, the co-processing chip 320 outputs a switching control signal to control the switching module to perform a switching operation, so that the switching module switches from conducting the display data output by the main processing chip 310 to the display screen to conducting the display data output by the co-processing chip 320 to the display screen, thereby realizing the display control of the co-processing chip 320 on the display screen. After the main processing chip 310 is awakened by the co-processing chip 320, the co-processing chip 320 outputs a switching control signal to control the switching module to perform a switching operation, so that the switching module switches from conducting the display data output by the co-processing chip 320 to the display screen to conducting the display data output by the main processing chip 310 to the display screen, thereby realizing the display control of the main processing chip 310 on the display screen.
Wherein, the main processing chip 310 is further configured to: sending a first wake-up instruction to the co-processing chip 320; the co-processing chip 320 is further configured to: and switching from the dormant state to the working state according to the first awakening instruction.
Wherein, the co-processing chip 320 is further configured to: sending a second wake-up instruction to the main processing chip 310; the main processing chip 310 is also used to: and switching from the dormant state to the working state according to the second awakening instruction.
It is to be understood that, in a specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as one or several entities, and the specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It should be noted that the display device 300 based on the dynamic word stock provided in the embodiment of the present application and the display method based on the dynamic word stock in the foregoing embodiment belong to the same concept, and any one of the methods provided in the embodiment of the display method based on the dynamic word stock may be run on the display device 300 based on the dynamic word stock, and a specific implementation process thereof is described in detail in the embodiment of the display method based on the dynamic word stock, and is not described herein again.
As can be seen from the above, the display apparatus 300 based on dynamic word stock according to the embodiment of the present application is applied to an electronic device, where the electronic device includes a main processing chip 310, a co-processing chip 320, and a display screen, and the operation power consumption of the co-processing chip 320 is lower than that of the main processing chip 310. The obtaining module 301 is configured to: acquiring data to be displayed and a display style; the dynamic word stock generation module 302 is configured to: generating a dynamic word stock according to the display data and the display style; the main processing chip 310 is also used to: transmitting the dynamic word stock to the co-processing chip 320; the display content generation module 303 is configured to: generating display content according to the display style of each display unit in the data to be displayed when the display unit displays the font image in the dynamic font library; the display control module 304 is further configured to: and displaying the display content on the display screen. Based on this, the dynamic word stock generation module 302 generates a dynamic word stock according to the data to be displayed and the display style, the display content generation module 303 generates display content according to the display style when each display unit in the data to be displayed is displayed by the font image in the dynamic word stock, and further, the original word stock including all the word stock units does not need to be stored on the co-processing chip 320, so that the storage space of the co-processing chip 320 can be saved; moreover, after the dynamic word stock is generated, the display content is generated and displayed by the low-power-consumption co-processing chip 320, so that the power consumption consumed by the electronic equipment when the electronic equipment executes the operation of generating and displaying the display content can be reduced.
The embodiment of the application also provides an electronic device 400. The electronic device 400 may be a smartphone, tablet computer, or the like. Referring to fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. Based on the structure of the electronic device described above, the main processing chip 401 includes a first processor 4011 and a first memory 4012. The co-processing chip 402 includes a second processor 4021 and a second memory 4022. The second processor 4021 is electrically connected to the second memory 4022. The first processor 4011 is electrically connected to the first memory 4012. In other embodiments, the first memory 4012 may be separately provided and not integrated in the main processing chip 401.
In some embodiments, the main processing chip 401 may act as a master SOC for the electronic device 400; the co-processing chip 402 is a low power SOC that consumes less power than the main processing chip 401.
The first processor 4011 is a control center of the electronic equipment 400, connects various parts of the whole electronic equipment 400 by using various interfaces and lines, and performs various functions and processes of the electronic equipment 400 by running or calling a first computer program stored in the first memory 4012 and calling data stored in the first memory 4012, thereby performing the overall monitoring of the electronic equipment 400.
The first memory 4012 can be used to store first computer programs and data. The first memory 4012 stores therein a first computer program containing instructions executable in the first processor 4011. The first computer program may constitute various functional modules. The first processor 4011 executes various functional applications and data processing by calling a first computer program stored in the first memory 4012.
The second processor 4021 may also serve as a control center of the electronic device 400, connect various parts of the entire electronic device 400 by using various interfaces and lines, and perform various functions and process data of the electronic device 400 by running or calling a second computer program stored in the second memory 4022 and calling data stored in the second memory 4022, thereby performing overall monitoring of the electronic device 400.
The second memory 4022 may be used to store second computer programs and data. The second memory 4022 stores a second computer program having instructions executable in the first processor 4011. The first computer program may constitute various functional modules. The second processor 4021 executes various functional applications and data processing by calling a second computer program stored in the second memory 4022.
In this embodiment, the first processor 4011 in the electronic device 400 loads instructions corresponding to processes of one or more first computer programs into the first memory 4012 according to the following steps, and the first processor 4011 runs the first computer program stored in the first memory 4012, so as to implement various functions:
acquiring data to be displayed and a display style; generating a dynamic word stock according to the data to be displayed and the display style, wherein the dynamic word stock comprises font images when each display unit in the data to be displayed is displayed in the display style; the dynamic word library is transmitted to the co-processing chip 402.
The second processor 4021 in the electronic device 400 loads instructions corresponding to one or more processes of the second computer program into the second memory 4022, and the second processor 4021 runs the second computer program stored in the second memory 4022, according to the following steps, so that various functions are realized:
generating display content according to the display style of each display unit in the data to be displayed when the display unit displays the font image in the dynamic font library; and displaying the display content on the display screen.
Referring to fig. 9, fig. 9 is a schematic view illustrating a fourth structure of an electronic device according to an embodiment of the present disclosure. The electronic device 400 further comprises: radio frequency circuit 403, display screen 404, control circuit 405, input unit 406, audio circuit 407, sensor 408, touch control circuit 410, and power supply 409. The main processing chip 401 and the co-processing chip 402 are electrically connected to the rf circuit 403, the display 404, the control circuit 405, the input unit 406, the audio circuit 407, the sensor 408, the touch circuit 410, and the power source 409, respectively.
The radio frequency circuit 403 is used for transceiving radio frequency signals to communicate with the network device or other electronic devices 400 through wireless communication.
The display screen 404 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the electronic device 400, which may be comprised of images, text, icons, video, and any combination thereof.
The control circuit 405 is electrically connected to the display screen 404, and is configured to control the display screen 404 to display information.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 406 may include a fingerprint recognition module.
The audio circuit 407 may provide an audio interface between the user and the electronic device 400 through a speaker, microphone. Wherein the audio circuit 407 comprises a microphone. The microphone is electrically connected to the processor 401. The microphone is used for receiving voice information input by a user.
The sensor 408 is used to collect external environmental information. The sensors 408 may include one or more of ambient light sensors, acceleration sensors, gyroscopes, etc.
The power supply 409 is used to power the various components of the electronic device 400. In some embodiments, the power source 409 may be logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system.
Although not shown in fig. 9, the electronic device 400 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
As can be seen from the above, in the electronic device 400 provided in this embodiment of the application, the electronic device 400 includes the main processing chip 401, the co-processing chip 402, and the display screen 404, and power consumption of the co-processing chip 402 during operation is lower than power consumption of the main processing chip 401 during operation. In the operation process of the electronic device 400, the first processor 4011 obtains data to be displayed and a display style; the first processor 4011 generates a dynamic word stock according to the data to be displayed and the display style; the first processor 4011 transmits the dynamic word stock to the co-processing chip 402; the second processor 4021 generates display content according to the display style of each display unit in the data to be displayed when displaying font images in the dynamic font library; the second processor 4021 displays the display content on the display screen 404. Based on this, the first processor 4011 generates a dynamic word stock according to the data to be displayed and the display style, the second processor 4021 generates display content according to the display style when each display unit in the data to be displayed displays the font image in the dynamic word stock, and furthermore, the co-processing chip 402 does not need to store an original word stock including all the word stock units, so that the storage space of the co-processing chip 402 can be saved; moreover, after the dynamic word stock is generated, the display content is generated and displayed by the lower power consumption co-processing chip 402, so that the power consumption consumed when the operation of generating and displaying the display content is performed can be reduced.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a processor, the processor executes the display method based on the dynamic word stock according to any of the above embodiments.
It is to be understood that the functions of the processors may refer to the first processor 4011 and the second processor 4021 in the above embodiments, which are not described herein again.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The display method, the display device, the storage medium and the electronic device based on the dynamic word stock provided by the embodiment of the application are described in detail above. The principles and implementations of the present application are described herein using specific examples, which are presented only to aid in understanding the present application. Meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A display method based on a dynamic word stock is characterized in that the display method is applied to electronic equipment, the electronic equipment comprises a main processing chip, a co-processing chip and a display screen, and the operation power consumption of the co-processing chip is smaller than that of the main processing chip; the display method based on the dynamic word stock comprises the following steps:
the main processing chip acquires data to be displayed and a display style;
the main processing chip generates a dynamic word stock according to the data to be displayed and the display style, wherein the dynamic word stock comprises font images when each display unit in the data to be displayed is displayed in the display style;
the main processing chip transmits the dynamic word stock to the co-processing chip;
the co-processing chip generates display content according to the display style of each display unit in the data to be displayed when the display unit displays the font image in the dynamic font library;
and the co-processing chip displays the display content on the display screen.
2. The dynamic word stock based display method of claim 1, wherein the primary processing chip stores an original word stock therein, and the step of generating the dynamic word stock by the primary processing chip according to the data to be displayed and the display style comprises:
the main processing chip establishes a display unit set according to the data to be displayed, wherein the display unit set comprises each display unit in the data to be displayed;
the main processing chip retrieves a word stock unit corresponding to each display unit in the display unit set from the original word stock according to the display style;
and the main processing chip converts each word stock unit into a corresponding font image so as to generate the dynamic word stock.
3. The dynamic word stock-based display method according to claim 2, wherein the step of the main processing chip establishing a display unit set according to the data to be displayed comprises:
the main processing chip traverses each display unit of the data to be displayed;
the main processing chip counts the type of each display unit of the data to be displayed and generates a display unit type list;
and the main processing core establishes the display unit set according to the display unit types in the display unit type list.
4. The method as claimed in claim 2, wherein the step of the main processing chip retrieving the word stock unit corresponding to each display unit in the display unit set from the original word stock according to the display style comprises:
the main processing chip encodes each display unit in the display unit set so that each display unit has a code number;
and the main processing chip retrieves a word stock unit corresponding to the code number from the original word stock according to the display style and the code number.
5. The dynamic word stock based display method of claim 1, further comprising:
when the co-processing chip receives a display style switching signal, generating a new display style according to the display style switching signal;
and the co-processing chip transmits the new display style to the main processing chip.
6. The dynamic word stock based display method of claim 1, further comprising:
the main processing chip sends a first awakening instruction to the co-processing chip;
the co-processing chip is switched from a dormant state to a working state according to the first awakening instruction so as to realize that the main processing chip awakens the co-processing chip;
the display method based on the dynamic word stock further comprises the following steps:
the co-processing chip sends a second awakening instruction to the main processing chip;
and the main processing chip is switched from a dormant state to a working state according to the second awakening instruction so as to awaken the main processing chip by the co-processing chip.
7. The dynamic word stock based display method of claim 6, wherein the electronic device further comprises a switching module, and the switching module is electrically connected to the main processing chip, the co-processing chip and the display screen respectively;
after the main processing chip wakes up the co-processing chip, the display method based on the dynamic word stock further comprises the following steps:
the co-processing chip outputs a switching control signal to control the switching module to execute switching operation, so that the switching module switches from conducting display data output by the main processing chip to the display screen to conducting display data output by the co-processing chip to the display screen, and display control of the co-processing chip on the display screen is realized;
after the main processing chip is awakened by the co-processing chip, the display method based on the dynamic word stock further comprises the following steps:
the display control method comprises the steps that a co-processing chip outputs a switching control signal to control a switching module to execute switching operation, so that the switching module is switched from the display data output by the co-processing chip to the display screen to the display data output by a main processing chip to the display screen, and the display control of the main processing chip on the display screen is realized.
8. The utility model provides a display device based on dynamic word stock, its characterized in that is applied to electronic equipment, electronic equipment includes main processing chip, coprocessing chip and display screen, the running power consumption of coprocessing chip is less than the running power consumption of main processing chip, main processing chip is including obtaining module, dynamic word stock and generating the module, coprocessing chip is including showing content and generating module and display control module, wherein:
the acquisition module is configured to: acquiring data to be displayed and a display style;
the dynamic word stock generation module is used for: generating a dynamic word stock according to the display data and the display style, wherein the dynamic word stock comprises font images when each display unit in the data to be displayed is displayed in the display style;
the main processing chip is further configured to: transmitting the dynamic word stock to the co-processing chip;
the display content generation module is used for: generating display content according to the display style of each display unit in the data to be displayed when the display unit displays the font image in the dynamic font library;
the display control module is further configured to: and displaying the display content on the display screen.
9. A storage medium having stored thereon a computer program, which, when run on a processor, causes the processor to execute a dynamic word stock based display method according to any one of claims 1 to 7.
10. An electronic device is characterized by comprising a main processing chip, a co-processing chip and a display screen, wherein the operation power consumption of the co-processing chip is lower than that of the main processing chip;
the main processing chip comprises a first processor and a first memory, wherein a first computer program is stored on the first memory, and the first processor is used for executing:
acquiring data to be displayed and a display style;
generating a dynamic word stock according to the data to be displayed and the display style, wherein the dynamic word stock comprises font images when each display unit in the data to be displayed is displayed in the display style;
transmitting the dynamic word stock to the co-processing chip;
the co-processing chip comprises a second processor and a second memory, wherein a second computer program is stored on the second memory, and the second processor is used for executing:
generating display content according to the display style of each display unit in the data to be displayed when the display unit displays the font image in the dynamic font library;
and displaying the display content on the display screen.
11. An electronic device, characterized in that the electronic device is configured to perform the dynamic word stock based display method according to any one of claims 1 to 7.
CN201911253020.9A 2019-12-09 2019-12-09 Display method and device based on dynamic word stock, storage medium and electronic equipment Pending CN113031748A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911253020.9A CN113031748A (en) 2019-12-09 2019-12-09 Display method and device based on dynamic word stock, storage medium and electronic equipment
PCT/CN2020/134028 WO2021115212A1 (en) 2019-12-09 2020-12-04 Dynamic font library-based display method and apparatus, and storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911253020.9A CN113031748A (en) 2019-12-09 2019-12-09 Display method and device based on dynamic word stock, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113031748A true CN113031748A (en) 2021-06-25

Family

ID=76328833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911253020.9A Pending CN113031748A (en) 2019-12-09 2019-12-09 Display method and device based on dynamic word stock, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN113031748A (en)
WO (1) WO2021115212A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116028000A (en) * 2023-02-22 2023-04-28 上海励驰半导体有限公司 Display characteristic processing method and unit across multiple operating systems and traffic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100088531A1 (en) * 2008-10-08 2010-04-08 Lenovo (Beijing) Limited Hybrid-system computer
CN101751114A (en) * 2008-12-22 2010-06-23 联想(北京)有限公司 Display switching method for mobile terminal and mobile terminal
CN102759983A (en) * 2011-05-10 2012-10-31 任少华 Computer provided with multiple work modes and operating system thereof
CN106648025A (en) * 2016-10-20 2017-05-10 深圳市万普拉斯科技有限公司 Always on display method and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917138A (en) * 2012-11-09 2013-02-06 中山爱科数字科技股份有限公司 Mobile communication terminal with dual-system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100088531A1 (en) * 2008-10-08 2010-04-08 Lenovo (Beijing) Limited Hybrid-system computer
CN101751114A (en) * 2008-12-22 2010-06-23 联想(北京)有限公司 Display switching method for mobile terminal and mobile terminal
CN102759983A (en) * 2011-05-10 2012-10-31 任少华 Computer provided with multiple work modes and operating system thereof
CN106648025A (en) * 2016-10-20 2017-05-10 深圳市万普拉斯科技有限公司 Always on display method and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116028000A (en) * 2023-02-22 2023-04-28 上海励驰半导体有限公司 Display characteristic processing method and unit across multiple operating systems and traffic equipment
CN116028000B (en) * 2023-02-22 2023-06-02 上海励驰半导体有限公司 Display characteristic processing method and unit across multiple operating systems and traffic equipment

Also Published As

Publication number Publication date
WO2021115212A1 (en) 2021-06-17

Similar Documents

Publication Publication Date Title
EP3567479B1 (en) Method for establishing application prediction model, storage medium, and terminal
US10230791B2 (en) Electronic device and method for controlling execution of application in electronic device
CN112988256B (en) Application starting method and device, storage medium and electronic equipment
CN111831099B (en) Electronic device
CN106775637B (en) Page display method and device for application program
CN112987986B (en) Method, device, storage medium and electronic equipment for realizing game application
CN112996089B (en) Data transmission method, device, storage medium and electronic equipment
CN109857486B (en) Method, device, equipment and medium for processing program page data
KR20160031357A (en) Memory Allocating Method and Electronic device supporting the same
US10198057B2 (en) Electronic device and method for measuring position change
CN113031751A (en) Electronic device
WO2022089594A1 (en) Information display method and apparatus, and electronic device
CN113742366B (en) Data processing method, device, computer equipment and storage medium
EP2835717A2 (en) User device and method to process sensor output using a plurality of processors
CN112817424A (en) Method, device, storage medium and electronic equipment for realizing compass application
CN113031742A (en) Electronic device
CN105847446B (en) Method, device and system for acquiring network data
CN112883036A (en) Index creation method, device, storage server and storage medium
CN109389977B (en) Voice interaction method and device
WO2021115212A1 (en) Dynamic font library-based display method and apparatus, and storage medium and electronic device
CN114237743B (en) Interface loading method and device, electronic equipment and storage medium
CN112882561B (en) Display control method, storage medium, and electronic device
WO2021115229A1 (en) Method and apparatus for displaying electronic book, storage medium and electronic device
CN106681845B (en) Method and device for managing communication messages
CN114816031B (en) Power saving method for terminal equipment, terminal equipment and medium

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