CN106604088B - Method, device and equipment for processing data in buffer area - Google Patents
Method, device and equipment for processing data in buffer area Download PDFInfo
- Publication number
- CN106604088B CN106604088B CN201611161733.9A CN201611161733A CN106604088B CN 106604088 B CN106604088 B CN 106604088B CN 201611161733 A CN201611161733 A CN 201611161733A CN 106604088 B CN106604088 B CN 106604088B
- Authority
- CN
- China
- Prior art keywords
- buffer
- data
- scanning
- buffer block
- determining
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44004—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/414—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
- H04N21/41407—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44012—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
The disclosure relates to a method, a device and equipment for processing data in a buffer area, wherein the method comprises the following steps: dividing the buffer into N buffer blocks, wherein N is a positive integer greater than 1; and if the data in the t-th buffer block is in a scanning state, writing the data into other buffer blocks except the t-th buffer block in the buffer area, wherein t is a positive integer which is greater than or equal to 1 and less than or equal to N. The present disclosure can avoid the tearing problem in image display.
Description
Technical Field
The present disclosure relates to the field of communications, and in particular, to a method, an apparatus, and a device for processing data in a buffer.
Background
With the development of science and technology, Virtual Reality (VR) systems are increasingly widely used in people's daily lives.
In the related art, when rendering a screen in a VR system, in order to reduce the delay of data display, a buffer is usually used, that is, data is written in the same buffer and data scanning is performed.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method, an apparatus, and a device for processing data in a buffer.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for processing data in a buffer, including:
dividing the buffer into N buffer blocks, wherein N is a positive integer greater than 1;
and if the data in the t-th buffer block is in a scanning state, writing the data into other buffer blocks except the t-th buffer block in the buffer area, wherein t is a positive integer which is greater than or equal to 1 and less than or equal to N.
After the buffer area is divided, if the data in the t-th buffer block is in a scanning state, the data can be written into other buffer blocks, so that the phenomenon that the same buffer block is used for both writing the data and scanning and displaying by a display can be avoided, the tearing problem in image display can be solved, and the image display quality is improved.
Optionally, the method further comprises:
determining a first scanning time period for scanning the buffer area;
dividing the first scanning time period into N second scanning time periods;
and when the scanning time is determined to be within the tth second scanning time period, determining that the data in the tth buffer block is in a scanning state.
The first scanning time period for scanning the buffer area is divided, and whether the data in the t-th buffer block is in the scanning state is determined according to the divided second scanning time period, so that the mode for determining whether the data in the t-th buffer block is in the scanning state is simpler and is easy to realize.
Optionally, the method further comprises:
when the data in the t-th buffer block is determined to be in a read state, determining that the data in the t-th buffer block is in a scanning state.
The data in the tth buffer block is determined to be in the scanning state by determining whether the data in the tth buffer block is in the reading state, so that the mode of determining whether the data in the tth buffer block is in the scanning state is simpler and is easy to implement.
Optionally, the method further comprises:
and if the data in the t buffer block is not in a scanning state, writing the data into the t buffer block.
Because the data can be written into the t-th buffer block when the data in the t-th buffer block is determined not to be in a scanning state, the phenomenon that the same buffer block is used for data writing and is scanned and displayed by a display can be avoided, and the tearing problem in image display can be solved.
Optionally, the determining a first scanning time period for scanning the buffer includes:
determining the refresh rate of a display screen of the terminal equipment;
determining the first scanning time period according to the refresh rate.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for processing data in a buffer, including:
a first partitioning module configured to partition the buffer into N buffer blocks, N being a positive integer greater than 1;
the first processing module is configured to write data into buffer blocks except the t-th buffer block in the buffer when data in the t-th buffer block divided by the first dividing module is in a scanning state, wherein t is a positive integer which is greater than or equal to 1 and less than or equal to N.
Optionally, the apparatus further comprises:
a first determination module configured to determine a first scan period for scanning the buffer;
a second dividing module configured to divide the first scanning time period determined by the first determining module into N second scanning time periods;
a second determining module configured to determine that the data in the t-th buffer block is in a scanning state when it is determined that the scanning time is within a t-th second scanning period divided by the second dividing module.
Optionally, the apparatus further comprises:
a third determining module configured to determine that the data in the t-th buffer block is in a scanning state when the data in the t-th buffer block is determined to be in a reading state.
Optionally, the apparatus further comprises:
the second processing module is configured to write data into the t-th buffer block when the data in the t-th buffer block is not in a scanning state.
Optionally, the first determining module includes:
a first determination submodule configured to determine a refresh rate of a display screen of a terminal device;
a second determination submodule configured to determine the first scanning period in accordance with the refresh rate determined by the first determination submodule.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal device, including:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
dividing the buffer into N buffer blocks, wherein N is a positive integer greater than 1;
and if the data in the t-th buffer block is in a scanning state, writing the data into other buffer blocks except the t-th buffer block in the buffer area, wherein t is a positive integer which is greater than or equal to 1 and less than or equal to N.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
by dividing the buffer into N buffer blocks, if the data in the t-th buffer block is in a scanning state, data is written into the other buffer blocks except the t-th buffer block in the buffer. After the buffer area is divided, if the data in the t-th buffer block is in a scanning state, the data can be written into other buffer blocks, so that the phenomenon that the same buffer block is used for both writing the data and scanning and displaying by a display can be avoided, the tearing problem in image display can be solved, and the image display quality is improved.
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 invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a method of processing data in a buffer in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of processing data in a buffer in accordance with another exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of processing data in a buffer according to yet another exemplary embodiment;
FIG. 4 is a block diagram illustrating a processing device for data in a buffer according to an example embodiment;
FIG. 5 is a block diagram illustrating an apparatus for processing data in a buffer according to another exemplary embodiment;
FIG. 6 is a block diagram illustrating a processing device for data in a buffer according to yet another exemplary embodiment;
FIG. 7 is a block diagram illustrating a processing device for data in a buffer according to yet another exemplary embodiment;
FIG. 8 is a block diagram illustrating a processing device for data in a buffer according to yet another exemplary embodiment;
FIG. 9 is a block diagram illustrating an entity of a terminal device in accordance with an example embodiment;
FIG. 10 is a block diagram illustrating a processing device for data in a buffer in accordance with an example embodiment.
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 embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method for processing data in a buffer according to an exemplary embodiment, and as shown in fig. 1, the method for processing data in a buffer according to this embodiment is mainly used in a terminal device, such as a mobile phone, a computer, or a tablet, and is particularly applied to a VR device having a high requirement on data display delay when rendering a screen. The method for processing the data in the buffer area comprises the following steps.
In step S11, the buffer is divided into N buffer blocks.
Wherein N is a positive integer greater than 1.
In step S12, if the data in the t-th buffer block is in a scanning state, data is written into the buffer blocks except the t-th buffer block.
Wherein t is a positive integer greater than or equal to 1 and less than or equal to N.
In the related art, when rendering a screen in a VR system, in order to reduce the delay of data display, a buffer is usually used, that is, data is written in the same buffer and data scanning is performed. However, if the data is written into the buffer area and the display is scanned to display the data, tearing will occur. In order to solve this problem, in the embodiment of the present disclosure, the buffer may be divided into N buffer blocks, where N is a positive integer greater than 1, the terminal device determines whether data in the t-th buffer block is in a scanning state, and if the data in the t-th buffer block is in the scanning state, the terminal device does not write data in the t-th buffer block, that is, writes data in buffer blocks other than the t-th buffer block, where t is a positive integer greater than or equal to 1 and less than or equal to N.
For example, if the buffer area is divided into 2 buffer blocks, and the 1 st buffer block is found to be in a scanning state at this time through judgment, data can be written into the 2 nd buffer block, so that the phenomenon that the same buffer block is used for both data writing and scanning display by a display can be avoided, the tearing problem in image display can be solved, and the image display quality can be improved.
In addition, it should be noted that, in order to reduce implementation difficulty, the buffer area may be preferably divided into an even number of buffer blocks, for example, into 2, 4, or 6, and so on.
In the method for processing data in the buffer area according to this embodiment, the buffer area is divided into N buffer blocks, and if the data in the t-th buffer block is in a scanning state, data is written into the other buffer blocks except the t-th buffer block in the buffer area. After the buffer area is divided, if the data in the t-th buffer block is in a scanning state, the data can be written into other buffer blocks, so that the phenomenon that the same buffer block is used for both writing the data and scanning and displaying by a display can be avoided, the tearing problem in image display can be solved, and the image display quality is improved.
Fig. 2 is a flowchart illustrating a method for processing data in a buffer according to another exemplary embodiment, where the method is used in a terminal device, and the present embodiment describes in detail how to determine whether data in a t-th buffer block is in a scanning state based on the embodiment illustrated in fig. 1, and as illustrated in fig. 2, the method for processing data in a buffer includes the following steps.
In step S21, the buffer is divided into N buffer blocks.
Wherein N is a positive integer greater than 1.
In step S22, a first scanning period for scanning the buffer is determined.
In the embodiment of the present disclosure, when determining the first scanning time period for scanning the buffer, the first scanning time period may be determined by determining a refresh rate of a display screen of the terminal device and then determining the first scanning time period according to the refresh rate. Those skilled in the art will appreciate that the first scanning period for scanning the buffer by the terminal device is inversely proportional to the refresh rate of the display screen of the terminal device, and therefore, after determining the refresh rate of the display screen of the terminal device, the first scanning period is calculated. For example: if the refresh rate of the display screen of the terminal device is 60Hz, the first scanning time period for the terminal device to scan the buffer area is 16.67 ms.
In step S23, the first scanning period is divided into N second scanning periods.
In the embodiment of the present disclosure, after determining the first scanning time period for scanning the buffer area, the first scanning time period may be divided into N second scanning time periods, and it should be noted that the number of the second scanning time periods is the same as the number of the buffer blocks, for example: if the buffer is divided into 2 buffer blocks, the first scanning period is also divided into 2 second scanning periods.
In step S24, when it is determined that the scanning time is within the tth second scanning period, it is determined that the data in the tth buffer sector is in the scanning state.
In this embodiment of the disclosure, since the number of the second scanning time periods is the same as the number of the buffer blocks, the terminal device will scan the data in the first buffer block in the first second scanning time period, will scan the data in the second buffer block in the second scanning time period, and so on, and therefore, if the terminal device determines that the current scanning time is in the tth second scanning time period, it determines that the data in the tth buffer block is in the scanning state. For example, if the buffer is divided into 2 buffer blocks and the first scanning period is 16.67ms, the first scanning period is divided into 2 second scanning periods, each of which is 8.33ms, so that the terminal device will scan the first buffer block within the first 8.33ms and scan the second buffer block within the second 8.33ms, and if the scanning time is 3ms, the scanning time is determined to be the first 8.33ms, and therefore, it is determined that the data in the first buffer block is in the scanning state, and if the scanning time is 9ms, the scanning time is determined to be the second 8.33ms, and therefore, it is determined that the data in the second buffer block is in the scanning state.
In step S25, data is written into the buffer blocks except the t-th buffer block.
Wherein t is a positive integer greater than or equal to 1 and less than or equal to N.
In the embodiment of the present disclosure, when it is determined that the data in the t-th buffer block is in the scanning state, data is written into the other buffer blocks except the t-th buffer block, for example: and if the data in the first buffer block is in the scanning state, writing the data into the second buffer block.
In the method for processing data in the buffer area according to this embodiment, the buffer area is divided into N buffer blocks, and if the data in the t-th buffer block is in a scanning state, data is written into the other buffer blocks except the t-th buffer block in the buffer area. After the buffer area is divided, if the data in the t-th buffer block is in a scanning state, the data can be written into other buffer blocks, so that the phenomenon that the same buffer block is used for both writing the data and scanning and displaying by a display can be avoided, the tearing problem in image display can be solved, and the image display quality is improved. In addition, the first scanning time period for scanning the buffer area is divided, and whether the data in the t-th buffer block is in the scanning state is determined according to the divided second scanning time period, so that the mode for determining whether the data in the t-th buffer block is in the scanning state is simpler and is easy to realize.
Fig. 3 is a flowchart illustrating a method for processing data in a buffer according to yet another exemplary embodiment, where the method is used in a terminal device, and the present embodiment describes in detail an embodiment of how to determine whether data in a t-th buffer block is in a scanning state based on the embodiment illustrated in fig. 1. The difference between this embodiment and the embodiment shown in fig. 2 is that in this embodiment, whether the data in the t-th buffer block is in the scanning state is determined by determining whether the data is in the reading state, as shown in fig. 3, the method for processing the data in the buffer block includes the following steps.
In step S31, the buffer is divided into N buffer blocks.
N is a positive integer greater than 1.
In step S32, when it is determined that the data in the t-th buffer block is in the read state, it is determined that the data in the t-th buffer block is in the scan state.
In the embodiment of the present disclosure, when the terminal device scans the data in the buffer block, the terminal device reads the data in the buffer block, and then displays the read data on the display screen in a column. Therefore, when determining whether the data in the t-th buffer block is in the scanning state, it may be determined that the data in the t-th buffer block is in the scanning state by determining whether the data in the t-th buffer block is in the reading state, and if the data in the t-th buffer block is in the reading state.
In step S33, data is written into the buffer blocks except the t-th buffer block.
Wherein t is a positive integer greater than or equal to 1 and less than or equal to N.
Step S33 is similar to step S25 and will not be described here.
In the method for processing data in the buffer area according to this embodiment, the buffer area is divided into N buffer blocks, and if the data in the t-th buffer block is in a scanning state, data is written into the other buffer blocks except the t-th buffer block in the buffer area. After the buffer area is divided, if the data in the t-th buffer block is in a scanning state, the data can be written into other buffer blocks, so that the phenomenon that the same buffer block is used for both writing the data and scanning and displaying by a display can be avoided, the tearing problem in image display can be solved, and the image display quality is improved. In addition, the data in the t-th buffer block is determined to be in the scanning state by determining whether the data in the t-th buffer block is in the reading state, so that the mode of determining whether the data in the t-th buffer block is in the scanning state is simpler and is easy to implement.
Optionally, on the basis of the foregoing embodiments, if the data in the t-th buffer block is not in the scanning state, the data is written into the t-th buffer block.
Specifically, if it is determined that the data in the t-th buffer block is not in the scanning state, the data can be written into the t-th buffer block, so that the phenomenon that the same buffer block is used for both data writing and scanning display of a display can be avoided, and the tearing problem in image display can be solved.
For example, if the buffer is divided into 2 buffer blocks, and the data in the first buffer block is in a scanning state and the data in the second buffer block is not in a scanning state, the data is written into the second buffer block, and when the terminal device finishes scanning the first buffer block and starts scanning the second buffer block, the data is written into the first buffer block.
The implementation process of the processing method of the data in the buffer is described above, and the process can be implemented by a processing device of the data in the buffer, and the internal function and structure of the device will be explained below.
FIG. 4 is a block diagram illustrating a processing device for data in a buffer according to an example embodiment. As shown in fig. 4, the processing device of the data in the buffer area comprises a first division module 11 and a first processing module 12.
The first partitioning module 11 is configured to partition the buffer into N buffer blocks, N being a positive integer greater than 1;
the first processing module 12 is configured to write data into the buffer blocks except the t-th buffer block divided by the first dividing module 11 when the data in the t-th buffer block is in a scanning state, where t is a positive integer greater than or equal to 1 and less than or equal to N.
In the data processing apparatus in the buffer according to this embodiment, the buffer is divided into N buffer blocks, and when the data in the t-th buffer block is in the scanning state, the data is written into the buffer blocks other than the t-th buffer block. After the buffer area is divided, if the data in the t-th buffer block is in a scanning state, the data can be written into other buffer blocks, so that the phenomenon that the same buffer block is used for both writing the data and scanning and displaying by a display can be avoided, the tearing problem in image display can be solved, and the image display quality is improved.
As shown in fig. 5, fig. 5 is a block diagram of an apparatus for processing data in a buffer according to another exemplary embodiment, and based on the embodiment shown in fig. 4, the apparatus further includes: a first determination module 13, a second division module 14 and a second determination module 15.
The first determining module 13 is configured to determine a first scanning period for scanning the buffer;
the second dividing module 14 is configured to divide the first scanning time period determined by the first determining module 13 into N second scanning time periods;
the second determining module 15 is configured to determine that the data in the t-th buffer block is in a scanning state when it is determined that the scanning time is within the t-th second scanning period divided by the second dividing module 14.
As shown in fig. 6, fig. 6 is a block diagram of an apparatus for processing data in a buffer according to another exemplary embodiment, and based on the embodiment shown in fig. 4, the apparatus further includes: a third determination module 16.
The third determining module 16 is configured to determine that the data in the t-th buffer block is in the scan state when determining that the data in the t-th buffer block is in the read state.
As shown in fig. 7, fig. 7 is a block diagram of an apparatus for processing data in a buffer according to still another exemplary embodiment, and based on the embodiment shown in fig. 4, the apparatus further includes: a second processing module 17.
The second processing module 17 is configured to write data into the t-th buffer block when the data in the t-th buffer block is not in a scanning state.
As shown in fig. 8, fig. 8 is a block diagram of a device for processing data in a buffer according to yet another exemplary embodiment, and based on the embodiment shown in fig. 5, the first determining module 13 includes: a first determination submodule 131 and a second determination submodule 132.
The first determining submodule 131 is configured to determine a refresh rate of a display screen of the terminal device;
the second determination submodule 132 is configured to determine the first scanning period in dependence on the refresh rate determined by the first determination submodule 131.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Having described the internal functional modules and structural schematic of the terminal device, fig. 9 is a block diagram of an entity of the terminal device shown according to an exemplary embodiment, and referring to fig. 9, the terminal device may be specifically implemented as:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
dividing the buffer into N buffer blocks, wherein N is a positive integer greater than 1;
and if the data in the t-th buffer block is in a scanning state, writing the data into other buffer blocks except the t-th buffer block in the buffer area, wherein t is a positive integer which is greater than or equal to 1 and less than or equal to N.
FIG. 10 is a block diagram illustrating a processing device for data in a buffer in accordance with an example embodiment. The apparatus 1000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
Referring to fig. 10, the apparatus 1000 may include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communications component 1016.
The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1002 may include one or more processors 1020 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operations at the apparatus 1000. Examples of such data include instructions for any application or method operating on device 1000, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1004 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 1006 provides power to the various components of the device 1000. The power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
The multimedia component 1008 includes a touch-sensitive display screen that provides an output interface between the device 1000 and a user. In some embodiments, the touch display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). 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 1008 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1000 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 1010 is configured to output and/or input audio signals. For example, audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1000 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 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 1014 includes one or more sensors for providing various aspects of status assessment for the device 1000. For example, sensor assembly 1014 may detect an open/closed state of device 1000, the relative positioning of components, such as a display and keypad of device 1000, the change in position of device 1000 or a component of device 1000, the presence or absence of user contact with device 1000, the orientation or acceleration/deceleration of device 1000, and the change in temperature of device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 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 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communications between the apparatus 1000 and other devices in a wired or wireless manner. The device 1000 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1016 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC 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 apparatus 1000 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 document display methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1004 comprising instructions, executable by the processor 1020 of the device 1000 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, instructions in which, when executed by a processor of an apparatus 1000, enable the apparatus 1000 to perform a method of:
dividing the buffer into N buffer blocks, wherein N is a positive integer greater than 1;
and if the data in the t-th buffer block is in a scanning state, writing the data into other buffer blocks except the t-th buffer block in the buffer area, wherein t is a positive integer which is greater than or equal to 1 and less than or equal to N.
Wherein the method further comprises:
determining a first scanning time period for scanning the buffer area;
dividing the first scanning time period into N second scanning time periods;
and when the scanning time is determined to be within the tth second scanning time period, determining that the data in the tth buffer block is in a scanning state.
Wherein the method further comprises:
when the data in the t-th buffer block is determined to be in a read state, determining that the data in the t-th buffer block is in a scanning state.
Wherein the method further comprises:
and if the data in the t buffer block is not in a scanning state, writing the data into the t buffer block.
Wherein the determining a first scanning time period for scanning the buffer comprises:
determining the refresh rate of a display screen of the terminal equipment;
determining the first scanning time period according to the refresh rate.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention 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 invention is limited only by the appended claims.
Claims (7)
1. A method for processing data in a buffer, comprising:
dividing the buffer into N buffer blocks, wherein N is a positive integer greater than 1;
if the data in the t-th buffer block is in a scanning state, writing the data into other buffer blocks except the t-th buffer block in the buffer area, wherein t is a positive integer which is greater than or equal to 1 and less than or equal to N;
the method further comprises the following steps:
determining a first scanning time period for scanning the buffer area;
dividing the first scanning time period into N second scanning time periods, wherein the number of the second scanning time periods is the same as that of the buffer blocks;
when the scanning time is determined to be within the tth second scanning time period, determining that the data in the tth buffer block is in a scanning state;
the determining a first scan period for scanning the buffer comprises:
determining the refresh rate of a display screen of the terminal equipment;
determining the first scanning time period according to the refresh rate.
2. The method of claim 1, further comprising:
when the data in the t-th buffer block is determined to be in a read state, determining that the data in the t-th buffer block is in a scanning state.
3. The method of claim 1, further comprising:
and if the data in the t buffer block is not in a scanning state, writing the data into the t buffer block.
4. An apparatus for processing data in a buffer, comprising:
a first partitioning module configured to partition the buffer into N buffer blocks, N being a positive integer greater than 1;
a first processing module, configured to write data into buffer blocks except a t-th buffer block divided by the first dividing module when the data in the t-th buffer block is in a scanning state, where t is a positive integer greater than or equal to 1 and less than or equal to N; the device further comprises:
a first determination module configured to determine a first scan period for scanning the buffer;
a second dividing module configured to divide the first scanning time period determined by the first determining module into N second scanning time periods, where the number of the second scanning time periods is the same as the number of the buffer blocks;
a second determining module configured to determine that the data in the t-th buffer block is in a scanning state when it is determined that the scanning time is within a t-th second scanning period divided by the second dividing module;
the first determining module includes:
a first determination submodule configured to determine a refresh rate of a display screen of a terminal device;
a second determination submodule configured to determine the first scanning period in accordance with the refresh rate determined by the first determination submodule.
5. The apparatus of claim 4, further comprising:
a third determining module configured to determine that the data in the t-th buffer block is in a scanning state when the data in the t-th buffer block is determined to be in a reading state.
6. The apparatus of claim 4, further comprising:
the second processing module is configured to write data into the t-th buffer block when the data in the t-th buffer block is not in a scanning state.
7. A terminal device, comprising:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
dividing the buffer into N buffer blocks, wherein N is a positive integer greater than 1;
if the data in the t-th buffer block is in a scanning state, writing the data into other buffer blocks except the t-th buffer block in the buffer area, wherein t is a positive integer which is greater than or equal to 1 and less than or equal to N;
determining a first scanning time period for scanning the buffer area;
dividing the first scanning time period into N second scanning time periods, wherein the number of the second scanning time periods is the same as that of the buffer blocks;
when the scanning time is determined to be within the tth second scanning time period, determining that the data in the tth buffer block is in a scanning state;
the determining a first scan period for scanning the buffer comprises:
determining the refresh rate of a display screen of the terminal equipment;
determining the first scanning time period according to the refresh rate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611161733.9A CN106604088B (en) | 2016-12-15 | 2016-12-15 | Method, device and equipment for processing data in buffer area |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611161733.9A CN106604088B (en) | 2016-12-15 | 2016-12-15 | Method, device and equipment for processing data in buffer area |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106604088A CN106604088A (en) | 2017-04-26 |
CN106604088B true CN106604088B (en) | 2020-09-11 |
Family
ID=58802779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611161733.9A Active CN106604088B (en) | 2016-12-15 | 2016-12-15 | Method, device and equipment for processing data in buffer area |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106604088B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109358830B (en) * | 2018-09-20 | 2022-04-22 | 京东方科技集团股份有限公司 | Double-screen display method for eliminating AR/VR picture tearing and AR/VR display equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102377972A (en) * | 2010-08-23 | 2012-03-14 | 联想(北京)有限公司 | Image processing equipment and method |
CN102521149A (en) * | 2011-11-28 | 2012-06-27 | 曙光信息产业(北京)有限公司 | Optimizing polling system and optimizing polling method for collecting data from plurality of buffer zones |
CN105871916A (en) * | 2016-06-08 | 2016-08-17 | 浙江宇视科技有限公司 | Video stream transmission and display processing method, device and system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5712470A (en) * | 1980-06-25 | 1982-01-22 | Nec Corp | Information processor having buffer memory |
JP2006301105A (en) * | 2005-04-18 | 2006-11-02 | Sony Corp | Image processor, image processing method and program |
US8355587B2 (en) * | 2010-04-11 | 2013-01-15 | Mediatek Inc. | Image processing apparatus capable of writing compressed data into frame buffer and reading buffered data from frame buffer alternately and related image processing method thereof |
CN103455201B (en) * | 2013-08-27 | 2017-03-29 | 北京京东方光电科技有限公司 | A kind of touch control display apparatus and its driving method |
CN104375731A (en) * | 2014-11-26 | 2015-02-25 | 深圳市华星光电技术有限公司 | Embedded touch screen and driving method thereof |
-
2016
- 2016-12-15 CN CN201611161733.9A patent/CN106604088B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102377972A (en) * | 2010-08-23 | 2012-03-14 | 联想(北京)有限公司 | Image processing equipment and method |
CN102521149A (en) * | 2011-11-28 | 2012-06-27 | 曙光信息产业(北京)有限公司 | Optimizing polling system and optimizing polling method for collecting data from plurality of buffer zones |
CN105871916A (en) * | 2016-06-08 | 2016-08-17 | 浙江宇视科技有限公司 | Video stream transmission and display processing method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN106604088A (en) | 2017-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11086482B2 (en) | Method and device for displaying history pages in application program and computer-readable medium | |
EP3182716A1 (en) | Method and device for video display | |
CN106657780B (en) | Image preview method and device | |
US9661132B2 (en) | Method, apparatus, and storage medium for displaying a conversation interface | |
CN103945275B (en) | Picture recording control method and device and mobile terminal | |
CN105786507B (en) | Display interface switching method and device | |
WO2017193526A1 (en) | Application interface display method and apparatus | |
US11024264B2 (en) | Controlling field of view | |
US20180144546A1 (en) | Method, device and terminal for processing live shows | |
CN105242893A (en) | Refresh rate adjusting method and apparatus | |
CN106354504B (en) | Message display method and device | |
CN106775235B (en) | Screen wallpaper display method and device | |
CN105094539B (en) | Reference information display methods and device | |
CN106504295B (en) | Method and device for rendering picture | |
CN108829475B (en) | UI drawing method, device and storage medium | |
CN108881634A (en) | Terminal control method, device and computer readable storage medium | |
CN110085066B (en) | Method and device for displaying reading information and electronic equipment | |
CN109783171B (en) | Desktop plug-in switching method and device and storage medium | |
CN115719586A (en) | Screen refresh rate adjusting method and device, electronic equipment and storage medium | |
CN111610899A (en) | Interface display method, interface display device and storage medium | |
CN106919302B (en) | Operation control method and device of mobile terminal | |
CN106604088B (en) | Method, device and equipment for processing data in buffer area | |
CN107967233B (en) | Electronic work display method and device | |
CN106354657B (en) | Register access method, device and system | |
CN105975188B (en) | Picture position adjusting method and device |
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 |