CN114415817B - Display control method, electronic device and storage medium - Google Patents

Display control method, electronic device and storage medium Download PDF

Info

Publication number
CN114415817B
CN114415817B CN202011176471.XA CN202011176471A CN114415817B CN 114415817 B CN114415817 B CN 114415817B CN 202011176471 A CN202011176471 A CN 202011176471A CN 114415817 B CN114415817 B CN 114415817B
Authority
CN
China
Prior art keywords
data
check value
current
module
rows
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011176471.XA
Other languages
Chinese (zh)
Other versions
CN114415817A (en
Inventor
卞青芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202011176471.XA priority Critical patent/CN114415817B/en
Publication of CN114415817A publication Critical patent/CN114415817A/en
Application granted granted Critical
Publication of CN114415817B publication Critical patent/CN114415817B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • 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/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1076Parity data used in redundant arrays of independent storages, e.g. in RAID systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The disclosure relates to a display control method, an electronic device and a storage medium, which are applied to the electronic device comprising a display screen, wherein the method comprises the following steps: traversing M lines of data coded in M lines of data of a picture to be displayed and a first check value of the M lines of data; wherein M is a positive integer greater than 1, and M is a positive integer less than or equal to 0.5 times M; determining whether the first check value of the m rows of data is the same as the second check value of the pre-stored previous m rows of data; if the first check value is the same as the second check value, determining the pre-stored decoding data of the first m rows of data corresponding to the second check value as the current decoding data of the m rows of data; and controlling the display screen to display based on the decoded data of the m lines of data. By the method, the calculated amount of the electronic equipment can be reduced, and the purpose of saving power consumption is achieved.

Description

Display control method, electronic device and storage medium
Technical Field
The disclosure relates to the field of display technologies, and in particular, to a display control method, an electronic device, and a storage medium.
Background
With the rapid development of electronic technology, display devices such as smartphones, tablet computers, etc. have become increasingly popular. Display devices also have increasingly high display demands on display screens, for example, high frame rates are required to promote display smoothness.
However, the development of high frame rate makes the power consumption of electronic devices larger and larger, and it is imperative how to effectively reduce the power consumption caused by display.
Disclosure of Invention
The disclosure provides a display control method, an electronic device and a storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided a display control method applied to an electronic device including a display screen, the method including:
traversing M lines of data coded in M lines of data of a picture to be displayed and a first check value of the M lines of data; wherein M is a positive integer greater than 1, and M is a positive integer less than or equal to 0.5 times M;
Determining whether the first check value of the m rows of data is the same as the second check value of the pre-stored previous m rows of data;
if the first check value is the same as the second check value, determining the pre-stored decoding data of the first m rows of data corresponding to the second check value as the current decoding data of the m rows of data;
and controlling the display screen to display based on the decoded data of the m lines of data.
Optionally, the electronic device further includes a processing module and a driving module for driving the display screen to display, and the traversing the M lines of data encoded in the M lines of display data of the picture to be displayed and the first check value of the M lines of data includes:
the processing module encodes the M data line by line and obtains a check value of the encoded data;
the processing module sends the data after current line coding and the check value to the driving module;
the driving module traverses the obtained encoded m rows of data and the first check value of the m rows of data.
Optionally, the first check value and the second check value are both cyclic redundancy check codes.
Optionally, the driving module includes a decoding module, and the method further includes:
If the current m-line data comprise the first-line data of the picture to be displayed, decoding the first-line data by the decoding module to obtain decoded data of the current m-line data; and/or the number of the groups of groups,
And if the first check value is different from the second check value, decoding the m rows of data by the decoding module to obtain the current decoded data of the m rows of data.
Optionally, the driving module further includes a storage module, and the method further includes:
If the current m-line data comprise the first-line data of the picture to be displayed, storing the decoded data of the current m-line data obtained by decoding by the decoding module and the first check value of the current m-line data into the storage module; and/or the number of the groups of groups,
If the first check value is different from the second check value, storing the decoded data of the current m rows of data obtained by decoding by the decoding module and the first check value of the current m rows of data into the storage module;
The first check value of the m rows of data stored currently is the second check value of the m rows of data before the next traversal.
Optionally, the driving module further includes a control module, and if the first check value is the same as the second check value, determining the pre-stored decoded data of the first m rows of data corresponding to the second check value as the current decoded data of the m rows of data includes:
if the first check value is the same as the second check value, the control module obtains the decoding data of the current m rows of data from the storage module;
The method further comprises the steps of:
And if the first check value is different from the second check value, or the current m-line data comprises first-line data of the picture to be displayed, the control module obtains decoding data of the current m-line data from the decoding module.
Optionally, the controlling the display screen to display based on the decoded data of the current m rows of data includes:
if m is greater than 1 and the decoded data of each row in the current m-row data are the same, the control module controls the display screen to simultaneously display m rows based on the decoded data of the current m-row data;
If m is greater than 1 and the decoded data of each row in the current m-row data are different, or m is equal to 1, the control module controls the display screen to display row by row based on the current m-row data.
Optionally, the driving module further includes a mobile industry processor interface MIPI, and the processing module sends the current line coded data and the check value to the driving module, including:
And the processing module sends the data after current line coding and the check value to the driving module through the MIPI interface.
According to a second aspect of embodiments of the present disclosure, there is provided an electronic device including a driving module and a display screen; wherein,
The driving module is used for traversing M lines of data coded in M lines of data of a picture to be displayed and a first check value of the M lines of data; wherein M is a positive integer greater than 1, and M is a positive integer less than or equal to 0.5 times M; determining whether the first check value of the m rows of data is the same as the second check value of the pre-stored previous m rows of data; if the first check value is the same as the second check value, determining the pre-stored decoding data of the first m rows of data corresponding to the second check value as the current decoding data of the m rows of data; and controlling the display screen to display based on the decoded data of the m lines of data.
Optionally, the electronic device further includes a processing module;
The processing module is used for encoding the M data row by row and obtaining a check value of the encoded data; and sending the data after the current line coding and the check value to the driving module.
Optionally, the first check value and the second check value are both cyclic redundancy check codes.
Optionally, the driving module comprises a decoding module;
The decoding module is used for decoding and obtaining the decoding data of the current m-line data if the current m-line data comprises the first-line data of the picture to be displayed; and/or if the first check value is different from the second check value, decoding to obtain the current decoded data of the m rows of data.
Optionally, the driving module further comprises a storage module;
The storage module is used for storing the decoded data of the current m-line data obtained by decoding the decoding module and the first check value of the current m-line data if the current m-line data comprises the first-line data of the picture to be displayed; and/or if the first check value is different from the second check value, storing the decoded data of the current m-line data obtained by decoding by the decoding module and the first check value of the current m-line data;
The first check value of the m rows of data stored currently is the second check value of the m rows of data before the next traversal.
Optionally, the driving module further comprises a control module;
the control module is used for obtaining the decoding data of the current m rows of data from the storage module if the first check value is the same as the second check value; and the decoding module is further configured to obtain decoded data of the current m-line data from the decoding module if the first check value and the second check value are different, or the current m-line data includes first-line data of the picture to be displayed.
Optionally, the control module is further configured to control the display screen to display m rows simultaneously based on the decoded data of the current m rows of data if m is greater than 1 and the decoded data of each row in the current m rows of data is the same; and if m is greater than 1 and the decoded data of each row in the current m-row data are different, or m is equal to 1, controlling the display screen to display row by row based on the current m-row data.
Optionally, the driving module further includes an MIPI module;
and the MIPI module is used for receiving the current line coded data and the check value sent by the processing module.
According to a third aspect of embodiments of the present disclosure, there is provided a storage medium comprising:
The instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the display control method as described in the first aspect above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
In the embodiment of the disclosure, when the electronic device performs display control, by comparing the first check value of the currently traversed encoded m-line data with the second check value of the previously stored m-line data, decoding of the currently traversed encoded m-line data is not needed, and the pre-stored decoded data of the first m-line data is directly used, so that time consumption of the electronic device caused by data decoding is reduced, calculation amount of the electronic device is reduced, and the purpose of saving power consumption is achieved. It will be appreciated that the smaller m, the finer the alignment, the more power consumption is saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart of a display control method shown in an embodiment of the present disclosure.
Fig. 2 is a diagram illustrating an example of a terminal structure suitable for the display control method in an embodiment of the present disclosure.
Fig. 3 is a diagram showing an example of a terminal structure of a display control method in one embodiment.
Fig. 4 is a schematic diagram illustrating a processing module sending image data to a driving chip according to an embodiment of the disclosure.
Fig. 5 is a flowchart illustrating a display control method according to an embodiment of the present disclosure.
Fig. 6 is a block diagram of an electronic device in an embodiment of the present disclosure.
Fig. 7 is a block diagram of an electronic device shown in an embodiment of the disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is a flowchart of a display control method according to an embodiment of the present disclosure, which is applied to an electronic device including a display screen, and as shown in fig. 1, the display control method includes the following steps:
S11, traversing M lines of data coded in M lines of data of a picture to be displayed, and a first check value of the M lines of data; wherein M is a positive integer greater than 1, and M is a positive integer less than or equal to 0.5 times M;
S12, determining whether the first check value of the m rows of data is the same as a second check value of the pre-stored previous m rows of data;
S13, if the first check value is the same as the second check value, determining the pre-stored decoding data of the first m rows of data corresponding to the second check value as the current decoding data of the m rows of data;
S14, controlling the display screen to display based on the decoded data of the m rows of data.
In an embodiment of the disclosure, the electronic device is, for example, a mobile phone, a tablet computer, or a smart speaker with a display screen.
In step S11, the electronic device traverses M lines of data encoded in M lines of data of the picture to be displayed, and the first check value of the M lines of data. The data of the frame to be displayed may be data including each pixel of the display frame, the data of one pixel may be a set of RGB values, and one line of data may include a plurality of pixels.
In an embodiment of the present disclosure, the encoded m rows of data may be obtained by encoding by a central processing unit (Central Processing Unit, CPU) of the electronic device, and the first check value may also be generated by the CPU. The first check value may be a value allocated by the CPU to m data, or may be a check value generated by the CPU according to the encoded data by using a check algorithm. Furthermore, the encoded m rows of data and the first check value may also be generated by an application processor (Application Processor, AP).
It should be noted that, in the embodiment of the present disclosure, each time the electronic device traverses M rows of data, M is less than or equal to 0.5 times M, so that the electronic device can compare with the previous M rows of data based on the currently traversed M rows of data. In step S12, the electronic device determines whether the first check value of the m-line data is the same as the second check value of the pre-stored m-line data, and in step S13, the first check value and the second check value are the same, and the decoding data of the pre-stored m-line data corresponding to the second check value is determined as the decoding data of the current m-line data.
That is, the present disclosure is based on the pre-stored decoded data of the previous m rows of data and the second check value, so that, for the currently traversed m rows of data, based on the comparison of the check values, whether the currently traversed m rows of data and the previous m rows of data are identical can be determined, so that the decoding operation on the current m rows of data is not required, and the pre-stored decoded data of the previous m rows of data is directly used, thereby reducing the time consumption of the electronic device caused by executing data decoding, reducing the calculation amount of the electronic device, and achieving the purpose of saving power consumption.
In the embodiment of the present disclosure, the pre-stored decoded data of the first m rows of data may be generated by the electronic device by decoding when traversing to the encoded first m rows of data, and stored in the electronic device. And the second check value may be generated and stored by the CPU according to the encoded previous m data.
In step S14, the electronic device may control the display screen to display based on the obtained decoded data of the current m lines of data. In an embodiment of the present disclosure, the display screen may be a Liquid crystal (Liquid CRYSTAL DISPLAY, LCD) display screen.
It should be noted that, in general, when displaying data, an electronic device displays the data line by line, and color display of each pixel point in a line is implemented by controlling the electrical signal value of each column pixel point in the line. In the embodiment of the disclosure, if m is equal to 1, the display screen can be controlled to display directly according to the decoded data (such as RGB data) of the current 1-line data; if m is greater than 1, each row of data in the current m rows of decoded data may be displayed row by row. In addition, it should be noted that, in the embodiment of the present disclosure, if m is greater than 1 and each row of data in the current m rows of decoded data is the same, the m rows of decoded data may be directly displayed, so as to improve the display speed of the electronic device.
In one embodiment, when the electronic device controls the display screen to display, the electronic device decodes the encoded data of the picture to be displayed row by row and outputs the decoded data according to the rows without considering the rule among the row data, so that the power consumption of the electronic device is higher when the picture is displayed.
In contrast, in the embodiment of the disclosure, when the electronic device performs display control, by comparing the first check value of the currently traversed encoded m-line data with the second check value of the previously stored m-line data, the decoded data of the pre-stored m-line data is directly used without decoding the currently traversed encoded m-line data under the condition that the check values are the same, so that the time consumption of the electronic device caused by executing data decoding can be reduced, the calculation amount of the electronic device is reduced, and the purpose of saving power consumption is achieved. It will be appreciated that the smaller m, the finer the alignment, the more power consumption is saved.
In one embodiment, the electronic device further includes a processing module and a driving module for driving the display screen to display, where the traversing the M lines of data encoded in the M lines of display data of the picture to be displayed and the first check value of the M lines of data includes:
the processing module encodes the M data line by line and obtains a check value of the encoded data;
the processing module sends the data after current line coding and the check value to the driving module;
the driving module traverses the obtained encoded m rows of data and the first check value of the m rows of data.
In an embodiment of the disclosure, an electronic device includes a processing module and a driving module for driving a display screen to display. For example, the processing module is an application processor AP, and the driving module is a driving chip.
After receiving a display requirement for displaying a picture to be displayed, the processing module encodes M lines of data of the picture to be displayed row by row and generates a check value of the encoded lines of data. After generating the encoded data and the check value of a line of data, the processing module AP sends the encoded data and the check value of the current line to the driving module. After receiving the encoded data and the check value of the current line, the driving module may execute the foregoing step S12 to determine whether to decode the encoded data acquired currently.
However, in the embodiment of the present disclosure, when m is greater than 1, that is, the driving module does not perform the determination of S12 in a row unit, the driving module continues to obtain the encoded m rows of data and the first check value of the m rows of data, and then performs step S12.
In one embodiment, the first check value and the second check value are both cyclic redundancy check codes.
The cyclic redundancy check code is a fixed bit number check code generated based on a cyclic redundancy check (Cyclic Redundancy Check, CRC). For example, assuming that a sequence formed by one line of encoded data is denoted as M (X) and a predetermined check sequence is G (X), the remainder of M (X) and G (X) may be used as the cyclic redundancy check code.
The processing module can add the cyclic redundancy check code to the tail of the coded downstream data and send the cyclic redundancy check code to the driving module, and can also send the coded downstream data and the cyclic redundancy check code to the driving module in pairs. That is, in the embodiments of the present disclosure, there is a mapping relationship between the encoded row data and the check value (cyclic redundancy check code). In the disclosure, the first check value of the current m rows received by the driving module and the second check value of the previous m rows are cyclic redundancy check codes.
In one embodiment, the driving module further includes a mobile industry processor interface MIPI, and the processing module sends the current line coded data and the check value to the driving module, including:
And the processing module sends the data after current line coding and the check value to the driving module through the MIPI interface.
In the embodiment of the disclosure, the driving module includes a mobile industry processor interface (Mobile Industry Processor Interface, MIPI), for example, the interface is a communication interface between the application chip and the driving chip, so that the processing module of the disclosure can send the current encoded data and the check value to the driving module through the MIPI interface.
In one embodiment, the driving module includes a decoding module, and the method further includes:
If the current m-line data comprise the first-line data of the picture to be displayed, decoding the first-line data by the decoding module to obtain decoded data of the current m-line data; and/or the number of the groups of groups,
And if the first check value is different from the second check value, decoding the m rows of data by the decoding module to obtain the current decoded data of the m rows of data.
In an embodiment of the present disclosure, a decoding (Decode) module is further included in the driving module. If the current m line data traversed by the driving module includes the first line data of the picture to be displayed, before the current m line data, the first m line data of the picture to be displayed is not existed, that is, the decoded data of the current m line data cannot be obtained through step S12 and step S13, so in this case, the decoded data of the current m line data needs to be obtained through decoding by the decoding module.
In another case, if the first check value is different from the second check value, the decoding module is required to decode and obtain the decoded data of the current m rows of data in order to facilitate the subsequent display of the decoded data.
In one embodiment, the driving module further includes a storage module, and the method further includes:
If the current m-line data comprise the first-line data of the picture to be displayed, storing the decoded data of the current m-line data obtained by decoding by the decoding module and the first check value of the current m-line data into the storage module; and/or the number of the groups of groups,
If the first check value is different from the second check value, storing the decoded data of the current m rows of data obtained by decoding by the decoding module and the first check value of the current m rows of data into the storage module;
The first check value of the m rows of data stored currently is the second check value of the m rows of data before the next traversal.
In an embodiment of the disclosure, the driving module further includes a storage module. The Memory module may be a high-speed Memory module (HIGH SPEED STATIC Random-Access Memory, HSRAM) within the driver chip. If the current m line data traversed by the driving module comprises the first line data of the picture to be displayed, the decoded data of the current m line data obtained through decoding by the decoding module and the first check value are required to be stored in the storage module so as to be used as a reference for the next traversal. If it is determined based on step S12 that the first check value and the second check value are different, the decoded data of the current m rows of data acquired by the decoding module and the first check value of the m rows of data need to be stored in the storage module, so as to be used as a reference for the next traversal.
It can be understood that the currently stored m rows of data are the first m rows of data of the next traversal, and the currently stored first check value of the m rows of data is the second check value of the m rows of data before the next traversal.
In one embodiment, the driving module further includes a control module, and if the first check value is the same as the second check value, determining the pre-stored decoded data of the first m rows of data corresponding to the second check value as the current decoded data of the m rows of data includes:
if the first check value is the same as the second check value, the control module obtains the decoding data of the current m rows of data from the storage module;
The method further comprises the steps of:
And if the first check value is different from the second check value, or the current m-line data comprises first-line data of the picture to be displayed, the control module obtains decoding data of the current m-line data from the decoding module.
The driving module also comprises a control module (Source) for controlling the display data. In an embodiment of the disclosure, when the first check value and the second check value are the same, the control module obtains decoded data of current m rows of data from the storage module, so as to facilitate subsequent control of display of the display screen. And when the first check value and the second check value are different, or the current m-line data comprise the first-line data of the picture to be displayed, namely, the storage module does not have information related to the current m-line data, the control module obtains decoding data of the current m-line data from the decoding module so as to facilitate the subsequent control of the display screen.
In one embodiment, the controlling the display screen to display based on the decoded data of the m rows of data includes:
if m is greater than 1 and the decoded data of each row in the current m-row data are the same, the control module controls the display screen to simultaneously display m rows based on the decoded data of the current m-row data;
If m is greater than 1 and the decoded data of each row in the current m-row data are different, or m is equal to 1, the control module controls the display screen to display row by row based on the current m-row data.
In the embodiment of the present disclosure, as described above, if m is equal to 1, the display screen display can be controlled directly according to the decoded data (e.g., RGB data) of the current 1-line data; and if m is greater than 1, each line of data in the current m lines of decoded data may be displayed line by line. In addition, if m is greater than 1 and each line of data in the current m lines of decoded data is the same, the m lines of decoded data may be directly displayed at the same time. In this embodiment, when m is greater than 1, the control module may further compare whether each row of decoded data of the current m rows of data is identical, and when the decoded data is identical, control the multi-row display; and when different, displayed row by row.
It can be appreciated that, the present disclosure further determines, by using the control module, whether decoded data of the current m rows of data is the same, and performs corresponding display control, so that the display speed can be further improved on the basis of improving the display speed without decoding by using the decoding module, thereby improving the user experience.
Fig. 2 is a diagram illustrating an example of a terminal structure suitable for the display control method in the embodiment of the disclosure, as shown in fig. 2, after the AP encodes the currently traversed data, the data is sent to the driver chip through the MIPI interface. After each row of data is received by the MIPI module, the driving chip compares the CRC value of each row of data with the data of the last row in HSRAM. If the CRC value of the current line data is the same as the CRC value of the last line data, the work of the decoding module is closed, and the last line data stored in HSRAM is directly read and output to the Source module to be sent to the LCD module for display. If the CRC value of the current line data is different from that of the previous line data, HSRAM the comparison fails, the decoding module is started to Decode the current line data and output the decoded data to the Source, and meanwhile, the CRC value of the current line data and the decoded data value are stored in HSRAM to be used as the basis for the comparison of the new line data. Based on the method, all subsequent data are circularly processed until the whole frame of picture data is transmitted.
Fig. 3 is a diagram illustrating an example of a terminal structure of a display control method in an embodiment, as shown in fig. 3, after the AP encodes the data currently traversed, the data is sent to the driver chip through the MIPI interface. After each line of data is received by the MIPI module, the driving chip directly decodes the data by the decoding module and outputs the decoded data to the Source. The scheme does not process the data transmitted to the driving chip by the AP, and cannot achieve the purpose of saving the power consumption of the LCD module.
Fig. 4 is a schematic diagram of a processing module sending image data to a driving chip in an embodiment of the disclosure, as shown in fig. 4, a total of 2400 lines of data are displayed on a screen to be displayed, and the processing module transmits one line of data to the driving chip each time, at least all 2400 lines of data are transmitted completely. Wherein an element in a row of data represents a set of RGB values for a pixel point. When the driving chip performs analysis and comparison on the data, the data can be compared on the basis of a plurality of lines of data, for example, the data is compared on the basis of 3 lines of data.
Fig. 5 is a flowchart illustrating a display control method according to an embodiment of the present disclosure, where, as shown in fig. 5, the display control method includes the following steps:
S101, inputting data of an N-th data.
In this embodiment, the nth row data, i.e., the encoded m rows of data currently traversed, m is 1.
S102, whether the CRC value of the data of the N line is equal to the CRC value of the data of the N-1 line; if yes, go to step S103A-S104A; if not, steps S103B-S104B are performed.
In this embodiment, the N-th row data CRC value is a first check value of m rows of data, and the N-1-th row data CRC value is a second check value of the first m rows of data, and it is compared whether the first check value and the second check value are the same.
S103A, closing the decoding module.
In this embodiment, if the same, a decoding module (decoder) is not required to Decode the nth row data.
S104A, reading the data in the storage module.
In this embodiment, after the decoding module is turned off, the decoded data of the first m rows of data is read directly from the storage module (HSRAM).
S103B, decoding the Nth data.
In this embodiment, if not identical, a decoding module (decoder) is required to Decode the nth row data.
S104B, storing the CRC value and the decoded data of the nth row data to a storage module.
In this embodiment, after the decoding module decodes, the nth row data CRC value and the decoded data need to be stored to HSRAM, that is, the decoded data of the current m row data obtained by decoding by the decoding module and the first check value of the current m row data are stored to the storage module, so as to be used as a basis for subsequent comparison.
S105, outputting by the control module.
In this embodiment, the control module (Source) outputs the decoded data of the current nth row data to the display screen, and if the display screen is an LCD display screen, the decoded data is output to the LCD display module.
S106, displaying on a display screen.
It can be appreciated that in the embodiment of the disclosure, when the electronic device performs display control, by comparing the CRC value of the currently traversed encoded 1 line data with the CRC value of the previously stored previous 1 line data, the decoded data of the previously stored previous 1 line data is directly used without decoding the currently traversed encoded 1 line data under the condition that the CRC values are the same, so that the time consumption of the electronic device caused by executing data decoding can be reduced, the calculation amount of the electronic device is reduced, and the purpose of saving power consumption is achieved. And the row-by-row refined comparison method disclosed by the invention saves more power consumption.
Fig. 6 is a block diagram of an electronic device in an embodiment of the present disclosure. Referring to fig. 6, the electronic device includes a driving module 201 and a display screen 202; wherein,
The driving module 201 is configured to traverse M lines of data encoded in M lines of data of a picture to be displayed and a first check value of the M lines of data; wherein M is a positive integer greater than 1, and M is a positive integer less than or equal to 0.5 times M; determining whether the first check value of the m rows of data is the same as the second check value of the pre-stored previous m rows of data; if the first check value is the same as the second check value, determining the pre-stored decoding data of the first m rows of data corresponding to the second check value as the current decoding data of the m rows of data; and controlling the display screen 202 to display based on the decoded data of the m rows of data.
Optionally, the electronic device further includes a processing module 203;
the processing module 203 is configured to encode the M data row by row and obtain a check value of the encoded data; and sending the data after the current line encoding and the check value to the driving module 201.
Optionally, the first check value and the second check value are both cyclic redundancy check codes.
Optionally, the driving module 201 includes a decoding module 201a;
The decoding module 201a is configured to decode and obtain decoded data of the current m-line data if the current m-line data includes first-line data of the picture to be displayed; and/or if the first check value is different from the second check value, decoding to obtain the current decoded data of the m rows of data.
Optionally, the driving module 201 further includes a storage module 201b;
The storage module 201b is configured to store the decoded data of the current m-line data obtained by decoding by the decoding module 201a and the first check value of the current m-line data if the current m-line data includes the first-line data of the picture to be displayed; and/or if the first check value and the second check value are different, storing the decoded data of the current m-line data obtained by decoding by the decoding module 201a and the first check value of the current m-line data;
The first check value of the m rows of data stored currently is the second check value of the m rows of data before the next traversal.
Optionally, the driving module 201 further includes a control module 201c;
The control module 201c is configured to obtain decoded data of the current m rows of data from the storage module 201b if the first check value is the same as the second check value; and further configured to obtain decoded data of the current m-line data from the decoding module 201a if the first check value and the second check value are different, or the current m-line data includes first-line data of the picture to be displayed.
Optionally, the control module 201c is further configured to control the display screen 202 to display m rows simultaneously based on the decoded data of the current m rows of data if m is greater than 1 and the decoded data of each row of the current m rows of data is the same; if m is greater than 1 and the decoded data of each line in the current m-line data is different, or m is equal to 1, the display screen 202 is controlled to display line by line based on the current m-line data.
Optionally, the driving module further includes an MIPI module 201d;
the MIPI module 201d is configured to receive the current line encoded data and the check value sent by the processing module 203.
The specific manner in which the various modules perform the operations in relation to the apparatus of the embodiment of fig. 6 has been described in detail in relation to the method embodiment and will not be described in detail herein.
Fig. 7 is a block diagram illustrating a configuration of an electronic device 800, according to an example embodiment. For example, the electronic device 800 may be a smart phone or the like.
Referring to fig. 7, an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen between the electronic device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the electronic device 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in position of the electronic device 800 or a component of the electronic device 800, the presence or absence of a user's contact with the electronic device 800, an orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices, either wired or wireless. The electronic device 800 may access a wireless network based on a communication standard, such as Wi-Fi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a near field communication (MFC) module to facilitate short range communications. For example, the MFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of electronic device 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform a display control method, the electronic device including a display screen, the method comprising:
traversing M lines of data coded in M lines of data of a picture to be displayed and a first check value of the M lines of data; wherein M is a positive integer greater than 1, and M is a positive integer less than or equal to 0.5 times M;
Determining whether the first check value of the m rows of data is the same as the second check value of the pre-stored previous m rows of data;
if the first check value is the same as the second check value, determining the pre-stored decoding data of the first m rows of data corresponding to the second check value as the current decoding data of the m rows of data;
and controlling the display screen to display based on the decoded data of the m lines of data.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. A display control method, characterized in that it is applied to an electronic device including a display screen, the method comprising:
traversing M lines of data coded in M lines of data of a picture to be displayed and a first check value of the M lines of data; wherein M is a positive integer greater than 1, and M is a positive integer less than or equal to 0.5 times M;
Determining whether the first check value of the m rows of data is the same as the second check value of the pre-stored previous m rows of data; wherein the first check value and the second check value are cyclic redundancy check codes;
if the first check value is the same as the second check value, determining the pre-stored decoding data of the first m rows of data corresponding to the second check value as the current decoding data of the m rows of data;
and controlling the display screen to display based on the decoded data of the m lines of data.
2. The method of claim 1, wherein the electronic device further comprises a processing module and a driving module for driving the display screen to display, and wherein traversing the M lines of data encoded in the M lines of display data of the picture to be displayed and the first check value of the M lines of data comprises:
the processing module encodes the M data line by line and obtains a check value of the encoded data;
the processing module sends the data after current line coding and the check value to the driving module;
the driving module traverses the obtained encoded m rows of data and the first check value of the m rows of data.
3. The method of claim 2, wherein the drive module includes a decoding module therein, the method further comprising:
If the current m-line data comprise the first-line data of the picture to be displayed, decoding the first-line data by the decoding module to obtain decoded data of the current m-line data; and/or the number of the groups of groups,
And if the first check value is different from the second check value, decoding the m rows of data by the decoding module to obtain the current decoded data of the m rows of data.
4. A method according to claim 3, wherein the drive module further comprises a memory module, the method further comprising:
If the current m-line data comprise the first-line data of the picture to be displayed, storing the decoded data of the current m-line data obtained by decoding by the decoding module and the first check value of the current m-line data into the storage module; and/or the number of the groups of groups,
If the first check value is different from the second check value, storing the decoded data of the current m rows of data obtained by decoding by the decoding module and the first check value of the current m rows of data into the storage module;
The first check value of the m rows of data stored currently is the second check value of the m rows of data before the next traversal.
5. The method according to claim 4, wherein the driving module further includes a control module, and the determining the decoded data of the pre-stored first m rows of data corresponding to the second check value as the decoded data of the current m rows of data if the first check value is the same as the second check value includes:
if the first check value is the same as the second check value, the control module obtains the decoding data of the current m rows of data from the storage module;
The method further comprises the steps of:
And if the first check value is different from the second check value, or the current m-line data comprises first-line data of the picture to be displayed, the control module obtains decoding data of the current m-line data from the decoding module.
6. The method of any of claims 1-5, wherein the controlling the display screen to display based on the decoded data of the current m rows of data comprises:
if m is greater than 1 and the decoded data of each row in the current m-row data are the same, the control module controls the display screen to simultaneously display m rows based on the decoded data of the current m-row data;
If m is greater than 1 and the decoded data of each row in the current m-row data are different, or m is equal to 1, the control module controls the display screen to display row by row based on the current m-row data.
7. The method of claim 2, wherein the driving module further includes a mobile industry processor interface MIPI, and wherein the processing module sends the current line encoded data and the check value to the driving module, comprising:
And the processing module sends the data after current line coding and the check value to the driving module through the MIPI interface.
8. An electronic device is characterized by comprising a driving module and a display screen; wherein,
The driving module is used for traversing M lines of data coded in M lines of data of a picture to be displayed and a first check value of the M lines of data; wherein M is a positive integer greater than 1, and M is a positive integer less than or equal to 0.5 times M; determining whether the first check value of the m rows of data is the same as the second check value of the pre-stored previous m rows of data; the first check value and the second check value are cyclic redundancy check codes; if the first check value is the same as the second check value, determining the pre-stored decoding data of the first m rows of data corresponding to the second check value as the current decoding data of the m rows of data; and controlling the display screen to display based on the decoded data of the m lines of data.
9. The electronic device of claim 8, further comprising a processing module;
The processing module is used for encoding the M data row by row and obtaining a check value of the encoded data; and sending the data after the current line coding and the check value to the driving module.
10. The electronic device of claim 9, wherein the drive module includes a decoding module;
The decoding module is used for decoding and obtaining the decoding data of the current m-line data if the current m-line data comprises the first-line data of the picture to be displayed; and/or if the first check value is different from the second check value, decoding to obtain the current decoded data of the m rows of data.
11. The electronic device of claim 10, wherein the drive module further comprises a memory module;
The storage module is used for storing the decoded data of the current m-line data obtained by decoding the decoding module and the first check value of the current m-line data if the current m-line data comprises the first-line data of the picture to be displayed; and/or if the first check value is different from the second check value, storing the decoded data of the current m-line data obtained by decoding by the decoding module and the first check value of the current m-line data;
The first check value of the m rows of data stored currently is the second check value of the m rows of data before the next traversal.
12. The electronic device of claim 11, wherein the drive module further comprises a control module;
the control module is used for obtaining the decoding data of the current m rows of data from the storage module if the first check value is the same as the second check value; and the decoding module is further configured to obtain decoded data of the current m-line data from the decoding module if the first check value and the second check value are different, or the current m-line data includes first-line data of the picture to be displayed.
13. The electronic device of any of claims 8-12, wherein the electronic device comprises a memory device,
The control module is further configured to control the display screen to simultaneously display m rows based on the decoded data of the current m rows of data if m is greater than 1 and the decoded data of each row of the current m rows of data is the same; and if m is greater than 1 and the decoded data of each row in the current m-row data are different, or m is equal to 1, controlling the display screen to display row by row based on the current m-row data.
14. The electronic device of claim 9, wherein the drive module further comprises a MIPI module;
and the MIPI module is used for receiving the current line coded data and the check value sent by the processing module.
15. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a first device, enable the first device to perform the display control method of any one of claims 1 to 7.
CN202011176471.XA 2020-10-28 2020-10-28 Display control method, electronic device and storage medium Active CN114415817B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011176471.XA CN114415817B (en) 2020-10-28 2020-10-28 Display control method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011176471.XA CN114415817B (en) 2020-10-28 2020-10-28 Display control method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN114415817A CN114415817A (en) 2022-04-29
CN114415817B true CN114415817B (en) 2024-05-07

Family

ID=81260580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011176471.XA Active CN114415817B (en) 2020-10-28 2020-10-28 Display control method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114415817B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009111647A (en) * 2007-10-29 2009-05-21 Panasonic Corp Apparatus for detecting motion vector and method for detecting motion vector
WO2013089960A1 (en) * 2011-12-14 2013-06-20 Qualcomm Incorporated Static image power management
CN103974080A (en) * 2014-05-13 2014-08-06 华中科技大学 Transmission error code correction method for image prediction compression coding
CN104035832A (en) * 2013-03-04 2014-09-10 联想(北京)有限公司 Electronic device and data verification method
EP3012750A1 (en) * 2014-10-21 2016-04-27 Xiaomi Inc. Method and device for identifying encoding of web page
CN106530671A (en) * 2016-12-30 2017-03-22 深圳Tcl数字技术有限公司 Infrared remote control, infrared receiving device and infrared coding check method and system
CN106571892A (en) * 2016-11-08 2017-04-19 北京小米移动软件有限公司 Data processing method and device
CN106656424A (en) * 2017-01-10 2017-05-10 西安蜂语信息科技有限公司 Verification method of data transmission
CN109032675A (en) * 2018-06-25 2018-12-18 北京集创北方科技股份有限公司 The unlocking screen method, apparatus and terminal device of terminal device
CN109478144A (en) * 2017-07-05 2019-03-15 上海寒武纪信息科技有限公司 A kind of data processing equipment and method
CN110149631A (en) * 2019-05-29 2019-08-20 飞天诚信科技股份有限公司 A kind of method and system for establishing connection suitable for cloud speaker
CN110383727A (en) * 2017-03-09 2019-10-25 Lg电子株式会社 Layered decoding approach and its device for LDPC code
CN111312149A (en) * 2020-03-10 2020-06-19 Tcl华星光电技术有限公司 Driving method and driving device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8438461B2 (en) * 2009-10-12 2013-05-07 Marvell World Trade Ltd. Power consumption in LDPC decoder for low-power applications

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009111647A (en) * 2007-10-29 2009-05-21 Panasonic Corp Apparatus for detecting motion vector and method for detecting motion vector
WO2013089960A1 (en) * 2011-12-14 2013-06-20 Qualcomm Incorporated Static image power management
CN104035832A (en) * 2013-03-04 2014-09-10 联想(北京)有限公司 Electronic device and data verification method
CN103974080A (en) * 2014-05-13 2014-08-06 华中科技大学 Transmission error code correction method for image prediction compression coding
EP3012750A1 (en) * 2014-10-21 2016-04-27 Xiaomi Inc. Method and device for identifying encoding of web page
CN106571892A (en) * 2016-11-08 2017-04-19 北京小米移动软件有限公司 Data processing method and device
CN106530671A (en) * 2016-12-30 2017-03-22 深圳Tcl数字技术有限公司 Infrared remote control, infrared receiving device and infrared coding check method and system
CN106656424A (en) * 2017-01-10 2017-05-10 西安蜂语信息科技有限公司 Verification method of data transmission
CN110383727A (en) * 2017-03-09 2019-10-25 Lg电子株式会社 Layered decoding approach and its device for LDPC code
CN109478144A (en) * 2017-07-05 2019-03-15 上海寒武纪信息科技有限公司 A kind of data processing equipment and method
CN109032675A (en) * 2018-06-25 2018-12-18 北京集创北方科技股份有限公司 The unlocking screen method, apparatus and terminal device of terminal device
CN110149631A (en) * 2019-05-29 2019-08-20 飞天诚信科技股份有限公司 A kind of method and system for establishing connection suitable for cloud speaker
CN111312149A (en) * 2020-03-10 2020-06-19 Tcl华星光电技术有限公司 Driving method and driving device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CRC校验码并行计算的FPGA实现;张树刚;张遂南;黄士坦;;计算机技术与发展(第02期);全文 *

Also Published As

Publication number Publication date
CN114415817A (en) 2022-04-29

Similar Documents

Publication Publication Date Title
US20210042474A1 (en) Method for text recognition, electronic device and storage medium
US11100872B2 (en) Method and apparatus for display mode switching based on ambient light
EP3173923A1 (en) Method and device for image display
US10269287B2 (en) Power saving method and device for displaying content in display screen
WO2018176297A1 (en) Multi-window displaying apparatus and method and mobile electronic equipment
US20170116908A1 (en) Display method and device
CN107395467B (en) Intelligent home initialization method and device
CN111985635A (en) Method, device and medium for accelerating neural network inference processing
CN110365806B (en) Website conversion method and device
CN109120929B (en) Video encoding method, video decoding method, video encoding device, video decoding device, electronic equipment and video encoding system
CN106782576B (en) Audio mixing method and device
CN111953980B (en) Video processing method and device
CN114415817B (en) Display control method, electronic device and storage medium
US20230386483A1 (en) Method and apparatus for audio processing, electronic device and storage medium
CN111860552A (en) Model training method and device based on nuclear self-encoder and storage medium
CN113257177B (en) Brightness control method and device and electronic equipment
CN112866612B (en) Frame insertion method, device, terminal and computer readable storage medium
CN114078432B (en) Driving method and device
CN114253385A (en) Power consumption management method and device of mobile terminal and computer readable storage medium
US20210360189A1 (en) Video processing method and apparatus, and storage medium
CN111124099A (en) State control method, device and storage medium
US20220291890A1 (en) Method for interaction between devices and medium
US20230252950A1 (en) Method and device for controlling screen of electronic device, related electronic device and storage medium
CN111833788B (en) Screen dimming method and device, terminal and storage medium
CN115033601A (en) Method and device for providing pixel picture

Legal Events

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