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

Display control method, electronic device, and storage medium Download PDF

Info

Publication number
CN114415817A
CN114415817A CN202011176471.XA CN202011176471A CN114415817A CN 114415817 A CN114415817 A CN 114415817A CN 202011176471 A CN202011176471 A CN 202011176471A CN 114415817 A CN114415817 A CN 114415817A
Authority
CN
China
Prior art keywords
data
check value
current
decoding
module
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.)
Granted
Application number
CN202011176471.XA
Other languages
Chinese (zh)
Other versions
CN114415817B (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

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/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 present disclosure relates to a display control method, an electronic device, and a storage medium, applied to an electronic device including a display screen, the method including: traversing the coded M rows of data in the M rows of data of the picture to be displayed and a first check value of the M rows 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 a first check value of the m-line data is the same as a second check value of a pre-stored previous m-line data; if the first check value is the same as the second check value, determining the pre-stored decoding data of the previous m rows of data corresponding to the second check value as the decoding data of the current m rows of data; and controlling the display screen to display based on the current decoded data of the m lines of data. By the method, the calculation amount of the electronic equipment can be reduced, so that the aim of saving power consumption is fulfilled.

Description

Display control method, electronic device, and storage medium
Technical Field
The present 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 smart phones, tablet computers, and the like have become more and more popular. Display requirements of display devices on display screens are also increasing, for example, a high frame rate is required to improve display fluency.
However, the development of high frame rate makes the power consumption of electronic devices larger and larger, and how to effectively reduce the power consumption caused by display is imperative.
Disclosure of Invention
The disclosure provides a display control method, an electronic device, and a storage medium.
According to a first aspect of the 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 the coded M rows of data in the M rows of data of the picture to be displayed and a first check value of the M rows 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 a first check value of the m-line data is the same as a second check value of a pre-stored previous m-line data;
if the first check value is the same as the second check value, determining the pre-stored decoding data of the previous m rows of data corresponding to the second check value as the decoding data of the current m rows of data;
and controlling the display screen to display based on the current 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 of the M rows of data encoded in the M rows of display data of the picture to be displayed and the first check value of the M rows of data includes:
the processing module encodes the M rows of data line by line and acquires a check value of the encoded row of data;
the processing module sends the data after the current line coding and the check value to the driving module;
and the driving module traverses the 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-row data comprises the first-row data of the picture to be displayed, decoding the current m-row data through the decoding module to obtain decoding data of the current m-row data; and/or the presence of a gas in the gas,
and if the first check value is different from the second check value, decoding and acquiring current decoding data of the m rows of data through the decoding module.
Optionally, the driving module further includes a storage module, and the method further includes:
if the current m-row data comprises the first-row data of the picture to be displayed, storing the decoding data of the current m-row data obtained by decoding by the decoding module and a first check value of the current m-row data to the storage module; and/or the presence of a gas in the gas,
if the first check value is different from the second check value, storing the decoding 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 to the storage module;
and the currently stored first check value of the m rows of data is a second check value of the previous m rows of data in 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 previous m rows of data corresponding to the second check value as the decoded data of the current m rows of data includes:
if the first check value is the same as the second check value, the control module obtains the current decoding data of the m rows of data from the storage module;
the method further comprises the following steps:
if the first check value is different from the second check value, or the current m-line data includes the first-line data of the picture to be displayed, the control module obtains the decoding data of the current m-line data from the decoding module.
Optionally, the controlling the display screen to display based on the current decoded data of the m lines of data includes:
if m is larger than 1 and the decoding data of each line in the current m-line data are the same, the control module controls the display screen to display m lines simultaneously based on the decoding data of the current m-line data;
and if m is larger than 1 and the decoding data of each line in the m lines of data are different currently, or m is equal to 1, the control module controls the display screen to display line by line based on the m lines of data currently.
Optionally, the driving module further includes a mobile industry processor interface MIPI, and the processing module sends the data after the current line coding and the check value to the driving module, including:
and the processing module sends the data after the current line coding and the check value to the driving module through the MIPI.
According to a second aspect of the 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 the M rows of data of the picture to be displayed after being coded and a first check value of the M rows 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 a first check value of the m-line data is the same as a second check value of a pre-stored previous m-line data; if the first check value is the same as the second check value, determining the pre-stored decoding data of the previous m rows of data corresponding to the second check value as the decoding data of the current m rows of data; and controlling the display screen to display based on the current decoded data of the m lines of data.
Optionally, the electronic device further includes a processing module;
the processing module is used for coding the M rows of data line by line and obtaining a check value of the coded row of 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 includes a decoding module;
the decoding module is used for decoding and acquiring the current m-line data if the current m-line data comprises the first-line data of the picture to be displayed; and/or decoding to obtain the current decoding data of the m rows of data if the first check value is different from the second check value.
Optionally, the driving module further includes a storage module;
the storage module is used for storing the decoding data of the current m-line data obtained by decoding by the decoding module and a 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 decoding 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;
and the currently stored first check value of the m rows of data is a second check value of the previous m rows of data in the next traversal.
Optionally, the driving module further includes a control module;
the control module is configured to obtain, from the storage module, decoded data of the current m rows of data if the first check value is the same as the second check value; and the decoding module is further configured to obtain decoding data of the current m lines of data from the decoding module if the first check value and the second check value are different, or the current m lines of data include first line data of the picture to be displayed.
Optionally, the control module is further configured to control the display screen to display m lines simultaneously based on the decoded data of the current m-line data if m is greater than 1 and the decoded data of each line in the current m-line data is the same; and if m is larger than 1 and the decoding data of each line in the m lines of data are different or m is equal to 1, controlling the display screen to display line by line based on the current m lines of data.
Optionally, the driving module further includes an MIPI module;
the MIPI module is used for receiving the data which are sent by the processing module and are coded by the current line and the check value.
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 have 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-row data with the second check value of the previously stored previous m-row data, under the condition that the check values are the same, the pre-stored decoded data of the previous m-row data is directly used without decoding the currently traversed encoded m-row data, so that time consumption of the electronic device caused by data decoding can be reduced, the calculation amount of the electronic device is reduced, and the purpose of saving power consumption is achieved. It can be appreciated that the smaller m, the finer the ratio, 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 present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a display control method according to an embodiment of the present disclosure.
Fig. 2 is an exemplary diagram of a terminal structure suitable for the display control method in the embodiment of the present disclosure.
Fig. 3 is a diagram illustrating an exemplary terminal structure of a display control method according to an embodiment.
Fig. 4 is a schematic diagram illustrating a processing module sending picture 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 disclosure.
Fig. 6 is a block diagram of an electronic device in an embodiment of the present disclosure.
Fig. 7 is a block diagram illustrating a structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart of a display control method shown in 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 the M rows of data after coding in the M rows of data of the picture to be displayed and a first check value of the M rows 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-line data is the same as the second check value of the pre-stored previous m-line data;
s13, if the first check value is the same as the second check value, determining the pre-stored decoded data of the previous m rows of data corresponding to the second check value as the decoded data of the current m rows of data;
and S14, controlling the display screen to display based on the current decoded data of the m lines of data.
In the embodiment of the present disclosure, the electronic device is, for example, a mobile phone, a tablet computer, or a smart sound box with a display screen.
In step S11, the electronic device traverses the M rows of data encoded in the M rows of data of the picture to be displayed and the first check value of the M rows of data. The data of the picture to be displayed may include data of each pixel point of the display picture, the data of one pixel point may be a set of RGB values, and one line of data may include a plurality of pixel points.
In the embodiment of the present disclosure, the encoded m rows of data may be encoded by a 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 for the m-line data, or may be a check value generated by the CPU according to the encoded data by using a check algorithm. The encoded m-line data and the first check value may be generated by an Application Processor (AP).
It should be noted that, in the embodiment of the present disclosure, the electronic device traverses M rows of data each time, where 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 parity value of the m-line data is the same as the second parity value of the pre-stored previous m-line data, and in step S13, if the first parity value is the same as the second parity value, determines the decoded data of the pre-stored previous m-line data corresponding to the second parity value as the decoded data of the current m-line data.
That is, according to the present disclosure, based on the pre-stored decoded data of the previous m rows of data and the second check value, it can be determined whether the currently traversed m rows of data are the same as the previous m rows of data based on the comparison of the check values with respect to the currently traversed m rows of data, so that the pre-stored decoded data of the previous m rows of data can be directly used without performing a decoding operation on the current m rows of data, and thus, time consumed by the electronic device due to the execution of data decoding can be reduced, and the amount of computation of the electronic device is reduced, thereby achieving the purpose of saving power consumption.
It should be noted that, in the embodiment of the present disclosure, the pre-stored decoded data of the previous m rows of data may be generated by decoding and stored in the electronic device when the electronic device traverses to the encoded previous m rows of data at a certain time. And the second check value can be generated and stored by the CPU according to the encoded previous m rows of data.
In step S14, the electronic device may control the display screen to display based on the decoded data of the obtained current m-line data. In an embodiment of the present disclosure, the Display screen may be a Liquid Crystal Display (LCD) Display screen.
It should be noted that, in general, electronic devices display data line by line, and color display of each pixel in a row is realized by controlling an electrical signal value of each column of pixels in the row. In the embodiment of the present disclosure, if m is equal to 1, the display screen may be controlled to display directly according to the decoded data (e.g., RGB data) of the current 1 line of data; and if m is larger than 1, displaying each row of data in the current m rows of decoded data 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 increase the display speed of the electronic device.
In one embodiment, when the electronic device controls the display of the display screen, the data of the coded picture to be displayed is decoded line by line and then output line by line without considering the rule between line data, so that the power consumption of the electronic device is high when the picture is displayed.
In contrast, in the embodiment of the present disclosure, when the electronic device performs the 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 previous m-line data, under the condition that the check values are the same, the electronic device directly uses the pre-stored decoded data of the previous m-line data without decoding the currently traversed encoded m-line data, so that time consumption of the electronic device due to execution of data decoding can be reduced, and the calculation amount of the electronic device is reduced, thereby achieving the purpose of saving power consumption. It can be appreciated that the smaller m, the finer the ratio, the more power consumption is saved.
In an embodiment, the electronic device further includes a processing module and a driving module for driving the display screen to display, where traversing the M rows of data encoded in the M rows of display data of the picture to be displayed and the first check value of the M rows of data includes:
the processing module encodes the M rows of data line by line and acquires a check value of the encoded row of data;
the processing module sends the data after the current line coding and the check value to the driving module;
and the driving module traverses the encoded m rows of data and the first check value of the m rows of data.
In the embodiment of the disclosure, the electronic device comprises a processing module and a driving module for driving the display screen to display. For example, the processing module is an application processor AP, and the driving module is a driving chip.
The processing module encodes M row data of the picture to be displayed line by line after receiving a display requirement for displaying the picture to be displayed, and generates a check value of the encoded row 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 of the current line and the check value, the driving module may perform the step S12 to determine whether to decode the encoded line data obtained currently.
However, in the embodiment of the 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 Check code generated based on Cyclic Redundancy Check (CRC). For example, if a sequence formed by a row of encoded data is denoted as m (x), and the predetermined check sequence is g (x), the remainder of m (x) and g (x) can be used as the crc.
The processing module can add the cyclic redundancy check code to the tail of the coded row data and send the cyclic redundancy check code to the driving module, and can also send the coded row data and the cyclic redundancy check code to the driving module in pairs. That is, in the embodiment of the present disclosure, there is a mapping relationship between the encoded row data and the check value (cyclic redundancy check code). In this 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 both cyclic redundancy check codes.
In an embodiment, the driving module further includes a MIPI, and the sending, by the processing module, the data after the current line coding and the check value to the driving module includes:
and the processing module sends the data after the current line coding and the check value to the driving module through the MIPI.
In the embodiment of the disclosure, the driving module includes a 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 encoded data of the current line 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-row data comprises the first-row data of the picture to be displayed, decoding the current m-row data through the decoding module to obtain decoding data of the current m-row data; and/or the presence of a gas in the gas,
and if the first check value is different from the second check value, decoding and acquiring current decoding data of the m rows of data through the decoding module.
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, the previous m-line data of the picture to be displayed does not exist before the current m-line data, that is, the decoding data of the current m-line data cannot be obtained through the steps S12 and S13, and therefore, in this case, the decoding module needs to decode and obtain the decoding data of the current m-line data.
In another case, if the first check value is different from the second check value, the decoding module is also required to decode and acquire the decoded data of the current m rows of data in order to facilitate displaying the decoded data after subsequent decoding.
In one embodiment, the driving module further includes a storage module, and the method further includes:
if the current m-row data comprises the first-row data of the picture to be displayed, storing the decoding data of the current m-row data obtained by decoding by the decoding module and a first check value of the current m-row data to the storage module; and/or the presence of a gas in the gas,
if the first check value is different from the second check value, storing the decoding 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 to the storage module;
and the currently stored first check value of the m rows of data is a second check value of the previous m rows of data in the next traversal.
In the embodiment of the disclosure, the driving module further includes a storage module. The Memory module may be a High Speed Random-Access Memory (HSRAM) within a driving chip. If the current m-row data traversed by the driving module comprises the first-row data of the picture to be displayed, the decoding data of the current m-row data obtained by decoding through the decoding module and the first check value need to be stored in the storage module so as to be used as the reference for 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 also 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 previous m rows of data of the next traversal, and the currently stored first check value of the m rows of data is a second check value of the previous m rows of data of the next traversal.
In an embodiment, the determining, by the control module, the data to be decoded of the m previous rows of data that is prestored and corresponds to the second check value as the data to be decoded of the m current 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 current decoding data of the m rows of data from the storage module;
the method further comprises the following steps:
if the first check value is different from the second check value, or the current m-line data includes the first-line data of the picture to be displayed, the control module obtains the decoding data of the current m-line data from the decoding module.
The driving module further includes a control module (Source) for controlling the display data. In the embodiment of the disclosure, when the first check value is the same as the second check value, the control module obtains the decoded data of the current m rows of data from the storage module so as to subsequently control the display of the display screen. And when the first check value is different from the second check value, or the current m-line data includes the first-line data of the picture to be displayed, that is, the storage module does not have information associated with the current m-line data, the control module obtains the decoded data of the current m-line data from the decoding module, so as to control the display of the display screen subsequently.
In one embodiment, the controlling the display screen to display based on the decoded data of the current m lines of data includes:
if m is larger than 1 and the decoding data of each line in the current m-line data are the same, the control module controls the display screen to display m lines simultaneously based on the decoding data of the current m-line data;
and if m is larger than 1 and the decoding data of each line in the m lines of data are different currently, or m is equal to 1, the control module controls the display screen to display line by line based on the m lines of data currently.
In the embodiment of the present disclosure, as described above, if m is equal to 1, the display screen may be directly controlled to display according to the decoded data (e.g., RGB data) of the current 1 line of data; and if m is larger than 1, displaying each row of data in the current m rows of decoded data row by row. In addition, 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 can be directly and simultaneously displayed. 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 the same, and control multi-row display when the decoded data is the same; and at different times, displayed line by line.
It can be understood that, the present disclosure further determines whether the decoded data of the current m rows of data is the same through the control module, and executes the corresponding display control, so that the display speed can be further increased on the basis of increasing the display speed without decoding by the decoding module, thereby improving the user experience.
Fig. 2 is an exemplary diagram of a terminal structure suitable for the display control method in the embodiment of the present disclosure, and as shown in fig. 2, after the AP encodes the currently traversed line data, the encoded line data is sent to the driver chip through the MIPI interface. After receiving each row of data through the MIPI module, the interior of the driving chip compares the CRC value of each row of data with the data of the upper row in the HSRAM. If the CRC value of the current row data is the same as that of the previous row data, the work of the Decode module is closed, and the previous row data stored in the 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 row data is different from the CRC value of the previous row data and the HSRAM comparison fails, a Decode module is started to Decode the current row data and output the data to the Source, and meanwhile, the CRC value of the current row data and the decoded data value are stored in the HSRAM to serve as the basis for comparison of the next new row data. Based on the method, all the subsequent data of the line are circularly processed until the data of the whole frame of picture is completely transmitted.
Fig. 3 is a diagram illustrating a terminal structure of a display control method in an embodiment, and as shown in fig. 3, after the AP encodes the currently traversed line data, the encoded data is sent to a driver chip through an MIPI interface. After receiving each row of data through the MIPI module, the driving chip directly decodes through the Decode module and outputs the decoded data to the Source. According to the scheme, data transmitted to the driving chip by the AP are not processed at all, and the purpose of saving the power consumption of the LCD module cannot be achieved.
Fig. 4 is a schematic diagram illustrating that a processing module sends picture data to a driving chip in an embodiment of the disclosure, as shown in fig. 4, a picture to be displayed has 2400 rows of data, the processing module transmits one row of data to the driving chip each time, and at least all 2400 rows of data are transmitted. Wherein, an element in a line of data represents a set of RGB values of a pixel. When the driving chip analyzes and compares the data, the comparison can be performed on the basis of a plurality of lines of data, for example, the comparison is performed in a unit of 3 lines of data.
Fig. 5 is a flowchart illustrating a display control method according to an embodiment of the disclosure, and as shown in fig. 5, the display control method includes the following steps:
and S101, inputting the Nth row of data.
In this embodiment, the nth row of data, i.e., the encoded m rows of data traversed currently, m is 1.
S102, whether the CRC value of the Nth row of data is equal to the CRC value of the (N-1) th row of data or not; if yes, go to steps S103A-S104A; if not, go to steps S103B-S104B.
In this embodiment, the CRC values of the N-th row of data, i.e., the first check value of the m-th row of data, and the CRC values of the N-1 th row of data, i.e., the second check value of the previous m-th row of data, are compared to determine whether the first check value and the second check value are the same.
S103, 103A, closing the decoding module.
In this embodiment, if the data is the same, the decoding module (Decode) is not needed to Decode the nth data.
And S104, 104A, 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 are directly read from the memory module (HSRAM).
And S103B, decoding the Nth data.
In this embodiment, if the data is not the same, a decoding module (Decode) is required to Decode the nth data.
S104B, storing the CRC value of the Nth row of data and decoding the data to a storage module.
In this embodiment, after the decoding module decodes the data, the CRC value and the decoded data of the nth row of data need to be stored in the HSRAM, that is, 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 are stored in the storage module to be used as a basis for subsequent comparison.
And S105, outputting by a control module.
In this embodiment, the control module (Source) outputs the obtained current decoding data of the nth data to the display screen, and if the display screen is an LCD display screen, the current decoding data of the nth data is output to the LCD display module.
And S106, displaying on a display screen.
It can be understood that, in the embodiment of the present 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, in a case that the CRC values are the same, the currently traversed encoded 1-line data does not need to be decoded, but the pre-stored decoded data of the previous 1-line data is directly used, so that time consumed by the electronic device for performing data decoding can be reduced, and the amount of computation of the electronic device is reduced, thereby achieving the purpose of saving power consumption. And the method saves more power consumption by a refined comparison mode line by line.
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 rows of data of a picture to be displayed after being encoded and a first check value of the M rows 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 a first check value of the m-line data is the same as a second check value of a pre-stored previous m-line data; if the first check value is the same as the second check value, determining the pre-stored decoding data of the previous m rows of data corresponding to the second check value as the decoding data of the current m rows of data; and controlling the display screen 202 to display based on the decoded data of the current m rows of data.
Optionally, the electronic device further includes a processing module 203;
the processing module 203 is configured to encode the M rows of data line by line and obtain a check value of the encoded row of data; and sending the data coded in the current line 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 201 a;
the decoding module 201a is configured to decode and acquire current decoding data of the m lines of data if the current m lines of data include first line data of the picture to be displayed; and/or decoding to obtain the current decoding data of the m rows of data if the first check value is different from the second check value.
Optionally, the driving module 201 further includes a storage module 201 b;
the storage module 201b is configured to store, if the current m rows of data include the first row of data of the to-be-displayed picture, the decoded data of the current m rows of data obtained by decoding by the decoding module 201a and the first check value of the current m rows of data; and/or, if the first check value is different from the second check value, storing the decoding data of the current m-row data obtained by decoding by the decoding module 201a and the first check value of the current m-row data;
and the currently stored first check value of the m rows of data is a second check value of the previous m rows of data in the next traversal.
Optionally, the driving module 201 further includes a control module 201 c;
the control module 201c is configured to obtain, from the storage module 201b, decoded data of the current m rows of data if the first check value is the same as the second check value; and is further configured to obtain, from the decoding module 201a, decoding data of the current m-line data if the first check value is different from the second check value, or the current m-line data includes the first-line data of the to-be-displayed picture.
Optionally, the control module 201c is further configured to control the display screen 202 to display m lines simultaneously based on the current decoded data of the m lines of data if m is greater than 1 and the current decoded data of each line in the m lines of data is the same; and if m is larger than 1 and the decoding data of each line in the m lines of data are different, or m is equal to 1, controlling the display screen 202 to display line by line based on the m lines of data.
Optionally, the driving module further includes an MIPI module 201 d;
the MIPI module 201d is configured to receive the data after the current line coding and the check value, which are sent by the processing module 203.
The specific manner in which the respective modules perform operations has been described in detail in relation to the embodiment of the method with respect to the apparatus in the embodiment shown in fig. 6, and will not be elaborated upon here.
Fig. 7 is a block diagram illustrating a structure of an electronic device 800 according to an example embodiment. For example, the electronic device 800 may be a smartphone or the like.
Referring to fig. 7, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and 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 components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction 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 operation 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 non-volatile 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 disks.
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 supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating 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 a focal length and optical zoom capability.
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 further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also 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 keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object 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 gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. 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 an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a display control method, the electronic device including a display screen, the method comprising:
traversing the coded M rows of data in the M rows of data of the picture to be displayed and a first check value of the M rows 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 a first check value of the m-line data is the same as a second check value of a pre-stored previous m-line data;
if the first check value is the same as the second check value, determining the pre-stored decoding data of the previous m rows of data corresponding to the second check value as the decoding data of the current m rows of data;
and controlling the display screen to display based on the current 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 variations, uses, or adaptations of the disclosure following, in general, the 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (17)

1. A display control method is applied to an electronic device comprising a display screen, and comprises the following steps:
traversing the coded M rows of data in the M rows of data of the picture to be displayed and a first check value of the M rows 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 a first check value of the m-line data is the same as a second check value of a pre-stored previous m-line data;
if the first check value is the same as the second check value, determining the pre-stored decoding data of the previous m rows of data corresponding to the second check value as the decoding data of the current m rows of data;
and controlling the display screen to display based on the current decoded data of the m lines of data.
2. The method according to claim 1, wherein the electronic device further includes a processing module and a driving module for driving the display screen to display, and the traversing M rows of data encoded in M rows of display data of the picture to be displayed and the first check value of the M rows of data includes:
the processing module encodes the M rows of data line by line and acquires a check value of the encoded row of data;
the processing module sends the data after the current line coding and the check value to the driving module;
and the driving module traverses the encoded m rows of data and the first check value of the m rows of data.
3. The method of claim 1, wherein the first check value and the second check value are both cyclic redundancy check codes.
4. The method of claim 2, wherein the driver module comprises a decoding module, and the method further comprises:
if the current m-row data comprises the first-row data of the picture to be displayed, decoding the current m-row data through the decoding module to obtain decoding data of the current m-row data; and/or the presence of a gas in the gas,
and if the first check value is different from the second check value, decoding and acquiring current decoding data of the m rows of data through the decoding module.
5. The method of claim 4, wherein the drive module further comprises a memory module, the method further comprising:
if the current m-row data comprises the first-row data of the picture to be displayed, storing the decoding data of the current m-row data obtained by decoding by the decoding module and a first check value of the current m-row data to the storage module; and/or the presence of a gas in the gas,
if the first check value is different from the second check value, storing the decoding 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 to the storage module;
and the currently stored first check value of the m rows of data is a second check value of the previous m rows of data in the next traversal.
6. The method according to claim 5, wherein the driving module further comprises a control module, and the determining, if the first check value is the same as the second check value, the decoding data of the m previous rows of data that is pre-stored and corresponds to the second check value as the decoding data of the m current rows of data includes:
if the first check value is the same as the second check value, the control module obtains the current decoding data of the m rows of data from the storage module;
the method further comprises the following steps:
if the first check value is different from the second check value, or the current m-line data includes the first-line data of the picture to be displayed, the control module obtains the decoding data of the current m-line data from the decoding module.
7. The method according to any one of claims 1-6, wherein said controlling said display screen display based on said currently decoded data of said m lines of data comprises:
if m is larger than 1 and the decoding data of each line in the current m-line data are the same, the control module controls the display screen to display m lines simultaneously based on the decoding data of the current m-line data;
and if m is larger than 1 and the decoding data of each line in the m lines of data are different currently, or m is equal to 1, the control module controls the display screen to display line by line based on the m lines of data currently.
8. The method of claim 2, wherein the driver module further comprises a Mobile Industry Processor Interface (MIPI), and the processing module sends the encoded data of the current line and the check value to the driver module, including:
and the processing module sends the data after the current line coding and the check value to the driving module through the MIPI.
9. The electronic equipment is characterized by comprising a driving module and a display screen; wherein,
the driving module is used for traversing the M rows of data of the picture to be displayed after being coded and a first check value of the M rows 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 a first check value of the m-line data is the same as a second check value of a pre-stored previous m-line data; if the first check value is the same as the second check value, determining the pre-stored decoding data of the previous m rows of data corresponding to the second check value as the decoding data of the current m rows of data; and controlling the display screen to display based on the current decoded data of the m lines of data.
10. The electronic device of claim 9, further comprising a processing module;
the processing module is used for coding the M rows of data line by line and obtaining a check value of the coded row of data; and sending the data after the current line coding and the check value to the driving module.
11. The electronic device of claim 9, wherein the first check value and the second check value are both cyclic redundancy check codes.
12. The electronic device of claim 10, wherein the driving module comprises a decoding module;
the decoding module is used for decoding and acquiring the current m-line data if the current m-line data comprises the first-line data of the picture to be displayed; and/or decoding to obtain the current decoding data of the m rows of data if the first check value is different from the second check value.
13. The electronic device of claim 12, wherein the driving module further comprises a storage module;
the storage module is used for storing the decoding data of the current m-line data obtained by decoding by the decoding module and a 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 decoding 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;
and the currently stored first check value of the m rows of data is a second check value of the previous m rows of data in the next traversal.
14. The electronic device of claim 13, wherein the driving module further comprises a control module;
the control module is configured to obtain, from the storage module, decoded data of the current m rows of data if the first check value is the same as the second check value; and the decoding module is further configured to obtain decoding data of the current m lines of data from the decoding module if the first check value and the second check value are different, or the current m lines of data include first line data of the picture to be displayed.
15. The electronic device of any of claims 9-14,
the control module is further configured to control the display screen to display m lines simultaneously based on the current decoded data of the m lines of data if m is greater than 1 and the decoded data of each line in the current m lines of data are the same; and if m is larger than 1 and the decoding data of each line in the m lines of data are different or m is equal to 1, controlling the display screen to display line by line based on the current m lines of data.
16. The electronic device of claim 10, wherein the driving module further comprises an MIPI module;
the MIPI module is used for receiving the data which are sent by the processing module and are coded by the current line and the check value.
17. A non-transitory computer readable storage medium, instructions in which, 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 8.
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 true CN114415817A (en) 2022-04-29
CN114415817B 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 (14)

* 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
US20110087933A1 (en) * 2009-10-12 2011-04-14 Nedeljko Varnica Power consumption in ldpc decoder for low-power applications
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

Patent Citations (14)

* 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
US20110087933A1 (en) * 2009-10-12 2011-04-14 Nedeljko Varnica Power consumption in ldpc decoder for low-power applications
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实现", 计算机技术与发展, no. 02 *

Also Published As

Publication number Publication date
CN114415817B (en) 2024-05-07

Similar Documents

Publication Publication Date Title
US20200401286A1 (en) Method, apparatus and medium for switching application interfaces
CN105489194B (en) A kind of method and apparatus of display image
US11100872B2 (en) Method and apparatus for display mode switching based on ambient light
US10269287B2 (en) Power saving method and device for displaying content in display screen
CN106710539B (en) Liquid crystal display method and device
EP3379524A1 (en) View angle switching method and apparatus
US10134326B2 (en) Device for and method of saving power when refreshing a display screen when displayed content does not change
CN107395467B (en) Intelligent home initialization method and device
CN109120929B (en) Video encoding method, video decoding method, video encoding device, video decoding device, electronic equipment and video encoding system
CN111953980B (en) Video processing method and device
CN108877697B (en) Method and device for displaying image
CN114415817B (en) Display control method, electronic device 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
CN111722919B (en) Method and device for running background application program, storage medium and electronic equipment
CN114078432A (en) Driving method and device
CN109389547B (en) Image display method and device
CN106375744B (en) Information projecting method and device
US11961488B2 (en) Method and device for controlling screen of electronic device, related electronic device and storage medium
US20220291890A1 (en) Method for interaction between devices and medium
CN111124099A (en) State control method, device and storage medium
US20210360189A1 (en) Video processing method and apparatus, and storage medium
CN113869426B (en) Formula identification method and device
CN111833788B (en) Screen dimming method and device, terminal and storage medium
CN116634532A (en) Terminal power consumption control method, device and storage 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
GR01 Patent grant
GR01 Patent grant