[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114253700A - Background image data reading method and device - Google Patents

Background image data reading method and device Download PDF

Info

Publication number
CN114253700A
CN114253700A CN202011024497.2A CN202011024497A CN114253700A CN 114253700 A CN114253700 A CN 114253700A CN 202011024497 A CN202011024497 A CN 202011024497A CN 114253700 A CN114253700 A CN 114253700A
Authority
CN
China
Prior art keywords
reading
image data
background image
preset
duration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011024497.2A
Other languages
Chinese (zh)
Inventor
刘恒
宗靖国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Pixelhue Technology Ltd
Original Assignee
Pixelhue Technology 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 Pixelhue Technology Ltd filed Critical Pixelhue Technology Ltd
Priority to CN202011024497.2A priority Critical patent/CN114253700A/en
Publication of CN114253700A publication Critical patent/CN114253700A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the invention relates to a background image data reading method, which comprises the following steps: receiving a reading instruction for reading an image data frame of a background image; acquiring the total reading time of the image data frame of the background image according to the reading instruction, wherein the total reading time is greater than the image output frame period of the image processor; and reading the image data of the background image according to the total reading duration. The invention also relates to a background image data reading device and a system, and solves the problem that the system is abnormal when the occupied bandwidth of the equipment is too high by prolonging the reading time of the background image data.

Description

Background image data reading method and device
Technical Field
The present invention relates to the field of image technologies, and in particular, to a background image data reading method and a background image data reading apparatus.
Background
In the video display industry, a background image needs to be superimposed on the layer at the lowest layer of a display picture, and most of the superimposed background image is a static image.
At present, background images stored in a memory are obtained according to a predetermined output time sequence, and then are output to a display device according to an output requirement after being processed, and are output and displayed after being superimposed.
However, since the background image needs to be acquired from the memory, the bandwidth of the memory is occupied at this time, and when other instructions in the system already occupy a large total bandwidth of the memory, the data instruction for acquiring the background image is initiated for the memory, and the system cannot complete the acquisition process of the background image data within one frame period, which causes the system to be abnormal, and affects user experience.
Disclosure of Invention
Therefore, to overcome the defects and shortcomings of the prior art, embodiments of the present invention provide a background image data reading method and a background image data reading apparatus.
On one hand, a background image data reading method provided by an embodiment of the present invention includes: receiving a reading instruction for reading an image data frame of a background image; acquiring the total reading time of the image data frame of the background image according to the instruction, wherein the total reading time is greater than the image output frame period of the image processor; and reading the image data of the background image according to the total reading duration.
In the prior art, because other instructions occupy a large bandwidth in the system, when acquiring image data of a background image, the system cannot complete the acquisition process of the image data of the background image within one frame period of the image data output of the background image, which causes the system to be abnormal and affects user experience. According to the method and the device, the total reading time of the image data frame is firstly obtained by prolonging the obtaining time of the background image data, and the total time is longer than the frame period time of the image output of the image processor, so that the problem that when the occupied bandwidth is too high, a system cannot timely respond to the obtaining of the image data of the background image in one frame period of the image output is solved, and the experience of a user is improved.
In an embodiment of the present invention, an image data frame of the background image includes at least one data block of a preset length, and the total reading duration of the image data frame is equal to the sum of the respective reading durations of the at least one data block of the preset length and the total duration of the reading interval of the at least one data block of the preset length; the total duration of the reading interval of the at least one data block with preset length is equal to a plurality of image output frame periods; or the total duration of the read intervals of the at least one preset length data block is equal to a multiple of the system clock period.
In an embodiment of the present invention, the reading of the image data of the background image according to the total reading time includes: acquiring the total number of preset length data blocks of the at least one preset length data block of the image data frame of the background image; determining the reading interval duration for reading two adjacent data blocks with preset length according to the total number of the data blocks with preset length and the total duration of the reading interval of the at least one data block with preset length; and reading each preset length data block of the image data frame of the background image according to the reading interval duration.
In an embodiment of the present invention, the reading, according to the reading interval duration, each of the preset-length data blocks of the image data frame of the background image includes: reading the at least one data block with the preset length one by one according to the reading interval duration; judging whether the image data frame is completely read or not after reading one data block with the preset length; and responding to the situation that the image data frame is not completely read, and continuing to read the next data block with the preset length after waiting for one reading interval duration.
In an embodiment of the present invention, the duration of the reading interval is equal to a quotient of a total duration of the reading interval of each data block with a preset length and a total number of the data blocks with the preset length, and the data blocks with the preset length are equal to data blocks of one or more display lines.
In another aspect, an embodiment of the present invention provides a background image data reading apparatus, configured to perform any one of the background image data reading methods described above, including: the instruction receiving module is used for receiving a reading instruction for reading an image data frame of a background image; a total duration obtaining module, configured to obtain a total duration of reading the image data frame of the background image according to the reading instruction, where the total duration of reading is greater than an image output frame period of the image processor; and the data reading module is used for reading the image data of the background image according to the total reading duration.
In an embodiment of the present invention, an image data frame of the background image includes at least one data block of a preset length, and the total reading duration of the image data frame is equal to the sum of the respective reading durations of the at least one data block of the preset length and the total duration of the reading interval of the at least one data block of the preset length; the total duration of the reading interval of the at least one data block with preset length is equal to a plurality of image output frame periods; or the total duration of the read intervals of the at least one preset length data block is equal to a multiple of the system clock period.
In one embodiment of the present invention, the data reading module includes: a total number obtaining unit, configured to obtain a total number of preset-length data blocks of the at least one preset-length data block of the image data frame of the background image; a reading interval duration determining unit, configured to determine, according to the total number of the preset-length data blocks and the total duration of the reading interval of the at least one preset-length data block, a reading interval duration for reading two adjacent preset-length data blocks; and the data block reading unit is used for reading each preset length data block of the image data frame of the background image according to the reading interval duration.
In an embodiment of the present invention, the data block reading unit is further specifically configured to: reading the at least one data block with the preset length one by one according to the reading interval duration; judging whether the image data frame is completely read or not after reading one data block with the preset length; and responding to the situation that the image data frame is not completely read, and continuing to read the next data block with the preset length after waiting for one reading interval duration.
In an embodiment of the present invention, the duration of the reading interval is equal to a quotient of a total duration of the reading interval of each data block with a preset length and a total number of the data blocks with the preset length, and the data blocks with the preset length are equal to data blocks of one or more display lines.
In another aspect, a background image data reading processing system provided by an embodiment of the present invention includes: a processor and a memory coupled to the processor; the memory stores instructions executed by the processor, and the instructions cause the processor to execute any one of the background image data reading methods.
In still another aspect, an embodiment of the present invention provides a computer-readable storage medium, which is a non-volatile memory and stores computer-readable instructions, and when the computer-readable instructions are executed by a computer, the computer-readable storage medium implements any one of the foregoing background image data reading methods.
As can be seen from the above, the above technical features of the embodiments of the present application may have the following beneficial effects: according to the method and the device, the total reading time of the image data frame is firstly obtained by prolonging the time for obtaining the background image data, and the total reading time is longer than the frame period time of image output, so that the problem that when the occupied bandwidth is too high, a system cannot timely respond to the image data obtaining of the background image in one frame period of image output is solved, and the experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a background image data reading method according to a first embodiment of the present invention.
Fig. 2 is a flowchart illustrating a detailed step of step S103 in the background image data reading method shown in fig. 1 according to the first embodiment of the present invention.
Fig. 3 is a flowchart illustrating a detailed step of step S203 in the background image data reading method shown in fig. 2 according to the first embodiment of the present invention.
Fig. 4 is a flowchart illustrating steps of a background image data reading method according to an embodiment of the present invention.
Fig. 5 is a flowchart illustrating steps of another background image data reading method according to an embodiment of the present invention.
Fig. 6 is a diagram illustrating a total duration of a read interval according to an embodiment of the present invention.
Fig. 7A is a block diagram of a background image data reading apparatus according to a second embodiment of the present invention.
FIG. 7B is a block diagram of a data reading module shown in FIG. 7A.
Fig. 8 is a schematic structural diagram of an image processor according to a third embodiment of the present invention.
Fig. 9 is a schematic structural diagram of a background image data reading system according to a fourth embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a computer-readable storage medium according to a fifth embodiment of the present invention.
[ brief description of the drawings ]
S101-S103, S201-S203, S301-S303, S401-S405, S501-S505: background image data reading method steps;
700: a background image data reading device; 701: an instruction receiving module; 702: a total duration obtaining module; 703: a data reading module; 7031: a total number obtaining unit; 7032: a reading interval duration determining unit; 7033: a data block reading unit;
800: an image processor; 801: a memory; 802: a programmable logic device;
900: a background image data reading system; 901: a processor; 903: a memory;
1000: a computer readable storage medium.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiment of the present invention, the applicable scenarios are as follows: acquiring a background image from the outside, storing the background image into a memory, reading image data of the background image from the memory after receiving a background image reading instruction input from the outside by a programmable logic device, and closing reading operation after reading is finished; then the programmable logic device carries out scaling and other processing on the read image data of the background image according to the requirement of the resolution ratio output to the display screen, then stores the processed image data of the background image into a memory, and then closes the operation of writing the processed image data of the background image into the memory; and finally, reading the processed image data of the background image from the memory according to the image output time sequence generated by the programmable logic device, and outputting the image data of the background image according to the image output time sequence generated by the programmable logic device.
The background image data reading method in the embodiment of the invention is applicable to a scene that the programmable logic device reads the image data of the background image from the memory after receiving the externally input background image reading instruction, and the reading operation is closed after the reading is finished.
[ first embodiment ] A method for manufacturing a semiconductor device
In the embodiment of the present invention, all the steps are implemented in an image processor, for example, a Programmable logic device (FPGA), where the FPGA may be disposed in a display controller (i.e., a sending card) or a display control card (i.e., a receiving card) in a display control system, for example. Of course, the image processor here may be other processors.
As shown in fig. 1, a background image data reading method according to a first embodiment of the present invention includes:
s101, receiving a reading instruction for reading an image data frame of a background image;
s102, acquiring the total reading time of the image data frame of the background image according to the reading instruction, wherein the total reading time is greater than the image output frame period of the image processor;
and S103, reading the image data of the background image according to the total reading time.
In the prior art, because other operations in the system occupy a large memory bandwidth, when image data of a background image is acquired, the system cannot complete the acquisition process of the image data of the background image within one frame period of image data output of the background image, so that the system is abnormal, and user experience is affected. According to the method and the device, the total reading time of the image data frame is obtained firstly by prolonging the time for obtaining the background image data, and the total reading time is longer than the frame period time of image output, so that the problem that when the occupied bandwidth is too high, a system cannot timely respond to the image data obtaining of the background image in one frame period of image output is solved, and the experience of a user is improved.
The image data frame of the background image comprises at least one data block with a preset length, and the total reading time of the image data frame of the background image is equal to the sum of the respective reading time of the at least one data block with the preset length and the total reading interval of the at least one data block with the preset length. For example, as shown in fig. 6, the reading duration of the first row preset length data block is K1, the reading interval duration of the first row preset length data block and the second row preset length data block is T1, the reading duration of the second row preset length data block is K2, the reading interval duration of the second row preset length data block and the third row preset length data block is T2, the reading duration of the third row preset length data block is K3, and the reading interval duration of the third row preset length data block and the fourth row preset length data block is T3, then the total reading duration S of the image data frame of the background image is K1+ K2+ K3+ T, where T is the sum of the reading intervals between two adjacent rows of preset length data blocks in the four rows preset length data blocks, that is T1+ T2+ T3.
Wherein a total duration of a read interval of the at least one preset-length data block is equal to a plurality of the image output frame periods; or the total duration of the read intervals of the at least one preset length data block is equal to a multiple of the system clock period. The preset length data blocks are equal to the data blocks of one or more display lines in the image data frame of the background image.
In another specific embodiment, as shown in fig. 2, step S103 specifically includes:
s201, acquiring the total number of preset length data blocks of the at least one preset length data block of the image data frame of the background image;
s202, determining the reading interval duration for reading two adjacent data blocks with the preset length according to the total number of the data blocks with the preset length and the total duration of the reading interval of the at least one data block with the preset length;
s203, reading each preset length data block of the image data frame of the background image according to the reading interval duration.
In step S202, the duration of the reading interval is equal to the quotient of the total duration of the reading interval of each data block with the preset length and the total number of the data blocks with the preset length.
In another specific embodiment, as shown in fig. 3, step S203 specifically includes:
s301, reading the at least one data block with the preset length one by one according to the reading interval duration;
s302, judging whether the image data frame is completely read or not after each preset length data block is completely read;
s303, responding to the situation that the image data frame is not completely read, and continuing to read the next data block with the preset length after waiting for one reading interval duration.
Wherein the image data frame in step S302 includes at least one of the preset-length data blocks.
In order to more clearly understand the present embodiment, a detailed description will be given below of a specific implementation of the background image data reading method of the present embodiment with reference to fig. 1 to 6.
[ detailed description of the invention ] A
As shown in fig. 4, a background image data reading method includes, for example:
s401, receiving a reading instruction for reading an image data frame of a background image;
the method includes that a programmable logic device (FPGA) receives background image data reading instruction information, the source of the reading instruction can be sent by an upper computer (called a PC (personal computer) or software in the upper computer or a micro processing chip (called an MCU), corresponding setting can be carried out according to actual needs, and specific parts are not limited here. And the reading instruction is used for reading the background image data by the programmable logic device after the programmable logic device receives the information. The reading instruction may further include an image data frame switching reading operation of the background image, for example, after the FPGA is reading the image data frame of the first background image and receiving the reading instruction, the FPGA switches to read the image data frame of the second background image or the image data frame of the third background image, that is, the reading instruction may further include other operation instructions, which is not limited herein. In this embodiment, the FPGA may receive the background image data switching instruction information.
The image data frame of the background image includes output image data of a frame of background image, that is, image data output by a background image.
S402, acquiring a plurality of image output frame periods;
after receiving the reading instruction, the FPGA acquires a total length of a reading interval of each preset length data block in the image data frame of the background image, where the preset length data block may be determined according to an image data reading rule of the FPGA for the background image, for example, the FPGA reads the image data of the background image according to a progressive scanning rule, and the preset length data block may be a data block of one line of image data in the background image, or a data block of first and second lines of image data in the background image, or a data block of first, second, and third lines of image data in the background image, and then the FPGA reads the data block of one line of image data line by line according to the progressive scanning rule, or sets a data block of two lines of adjacent image data to a data block of a preset length, or sets a data block of three lines of adjacent image data to a data block of a preset length for reading the line by line If the FPGA reads the image data of the background image according to the interlaced scanning rule, the data block of the preset length can set the data block of the two lines of image data of the data block of the first line of image data and the data block of the third line of image data in the background image as one data block of the preset length, then the data block of the second line image data and the data block of the fourth line image data in the background image are set as a data block with a preset length, or the data blocks of the first line image data, the third line image data and the fifth line image data in the background image are set as a data block with a preset length, that is, the preset length in the data block with the preset length may be set as a data block of progressive image data or a data block of interlaced image data according to actual requirements, and is not limited herein.
In this embodiment, the reading rule of the FPGA is reading line by line, and then the data blocks with the preset length may be set as the data blocks of one line of image data or the data blocks of the first and second lines of image data, and a plurality of frame periods of the output image are obtained, for example, the image output timing of the FPGA is 60 frames per second, that is, the reading time of one frame of image is 16ms, that is, the frame period of the output image is 16ms, that is, a plurality of frame periods of 16ms are obtained. In this embodiment, the 8 frame periods are the maximum bandwidth consumed by the FPGA when reading the image data of the background image again when the bandwidth occupied by other instructions is large, and then 8 frame output image frame periods are obtained, for example, one frame output image period is 16ms, the 8 frame output image period is 8 × 16 — 128ms, and 128ms is the total duration of the reading interval of each preset-length data block.
As shown in fig. 6, fig. 6 is a schematic diagram of a total duration of a reading interval according to an embodiment of the present invention, where the total duration T of the reading interval of each preset-length data block is equal to a sum of durations of reading intervals of adjacent preset-length data blocks, for example, as shown in fig. 6, the total duration T of the reading interval of each preset-length data block is a sum of a reading interval duration T1 of a first row of preset-length data blocks and a second row of preset-length data blocks, a reading interval duration T2 of the second row of preset-length data blocks and a reading interval duration T3 of a third row of preset-length data blocks and a fourth row of preset-length data blocks, that is, T is T1+ T2+ T3.
S403, determining the reading interval duration for reading the image data lines of two adjacent background images according to the total number of the image data lines of the background images and a plurality of image output frame periods;
after the FPGA acquires a plurality of image output frame periods, then acquires a total number of preset length data blocks of the image data frame of the background image, in this embodiment, for example, if the image data frame of the background image is 4096 × 2160 pixels, then the total number of preset length data blocks of the image data frame of the background image is 2160, then acquires a read interval duration of two adjacent preset length data blocks according to the acquired total duration 128ms and the total number 2160, that is, 128/2160 is approximately equal to 0.059ms, and then 0.059ms is the read interval duration of two adjacent preset length data blocks, that is, the read interval duration of two adjacent image data lines in the background image. And then reading each preset length data block of the image data frame of the background image according to the reading interval duration, namely reading the image data of each line in the image data frame of the background image. Wherein, the interval duration is that after the image data of the first row is read, the next row of image data is started to be read after a time interval of 0.059ms is waited.
S404, judging whether all lines of the background image data are read;
the image data frame comprises at least one data block of the preset length, namely a data block of background image data comprising at least one image data line length.
Assuming that the FPGA reads a line of image data each time, the FPGA reads the at least one preset length data block one by one according to the reading interval duration, after reading the preset length data block each time, it determines whether the image data frame has been read, when it is determined that the image data frame has not been read, it continues to read the next preset length data block after waiting for one reading interval duration, for example, the image data frame has 2160 preset length data blocks, after reading the preset length data block, it determines whether the read preset length data block is 2160 line, if not, it waits for one reading interval duration, and reads the next preset length data block. Or after reading a data block with a preset length, counting by the counter, and then judging whether the counter reaches the 2160 line, if not, continuing to read the next data block with the preset length.
S405, stops reading the image data of the background image.
When all the lines are judged to be read completely, for example, when the counter reaches 2160 lines, the FPGA stops the reading operation and turns off the reading operation of the background image from the memory.
In summary, because other instructions in the system occupy a large bandwidth, when acquiring the image data of the background image, the system cannot complete the acquisition process of the image data of the background image within one frame period of the image data output of the background image, which causes the system to be abnormal and affects user experience. According to the method and the device, the total time of the reading intervals of the data blocks with the preset lengths of the plurality of image data frames is firstly obtained by prolonging the time for obtaining the background image data, namely the image data of the background image is read in a plurality of frame periods, so that the problem that when the occupied bandwidth is too high, the system cannot timely respond to the image data obtaining of the background image in one frame period of image output is solved, and the experience of a user is improved.
[ second embodiment ] A
In another specific embodiment, as shown in fig. 5, a background image data reading method includes, for example:
s501, receiving a reading instruction for reading an image data frame of a background image;
the operation of step S501 is similar to that of step S401, and detailed description thereof is omitted here.
S502, acquiring multiple system clock cycles and reading background image data;
acquiring a system clock period, in this embodiment, the system clock period may be multiple times of a clock period of a timing sequence of the FPGA itself outputting an image, for example, a clock period of the timing sequence of the FPGA for generating an image output is 1ms or 2ms, the multiple times of the acquired clock period, that is, 2ms or 3ms or 4ms, and the like, the multiple times of the acquired clock period may be set according to actual needs, and is not limited herein. Wherein the clock cycle may be used by the FPGA to generate the image output timing. And taking the multiple of the acquired clock period as the total duration of the reading interval of each preset length data block in the image data frame. In other embodiments, the system clock cycle may also refer to a maximum frequency at which an SDRAM (synchronous dynamic random-access memory; chinese) such as a ram can operate.
Then, the total number of the preset-length data blocks of the image data frame of the background image is obtained, in this embodiment, for example, the obtained total time length is 128ms, the image data frame of the background image is 4096 × 2160 pixels, assuming that the programmable logic device reads one line of image data each time, the total number of the preset-length data blocks of the image data frame of the background image is 2160, then the read interval duration of two adjacent preset-length data blocks is obtained according to the obtained total time length of 128ms and the total number of 2160, that is, 128/2160 is approximately equal to 0.059ms, and 0.059ms is the read interval duration of two adjacent preset-length data blocks, that is, the read interval duration of two adjacent image data lines in the background image. And then reading each preset length data block of the image data frame of the background image according to the reading interval duration, namely reading the image data of each line in the image data frame of the background image. Wherein, the interval duration is that after the image data of the first row is read, the next row of image data is started to be read after a time interval of 0.059ms is waited.
S503, counting the image data lines of the background image;
reading the data blocks with preset length line by line according to the obtained reading interval duration, then counting the read data blocks with preset length through a counter after reading one data block with preset length, namely reading each image data line of the background image, and counting after reading, for example, after reading the data blocks with preset length in the first line, the counter is +1, then the data blocks with preset length in the second line are read, and when reading the data blocks with preset length in the second line, the counter is +1 again, wherein the value of the counter is 2.
S504, judging whether all lines of the image data of the background image are read;
then, whether all lines of the image data of the background image are read is judged according to the numerical value of the counter, for example, 2160 lines exist in the image data lines of the background image, whether the 2160 lines are reached is judged according to the numerical value of the counter, if the 2160 lines are not reached, the next line of image data is continuously read, if the 2160 lines are reached, the image data of all lines are read, then the counter is reset to zero, a stop identifier is generated, for example, a done _ flag is generated, and the numerical value of the stop identifier is set to be 1, namely, the image data of the current background image is completely read.
And S505, stopping reading the image data of the background image.
The FPGA then receives the stop identifier and stops reading the image data of the background image.
When the FPGA receives the reading instruction again, the number of the stop identifier is set to 0, and then the operations of steps S502 to S505 are started.
In summary, because other instructions in the system occupy a large bandwidth, when acquiring the image data of the background image, the system cannot complete the acquisition process of the image data of the background image within one frame period of the image data output of the background image, which causes the system to be abnormal and affects user experience. According to the method and the device, the total time of the reading intervals of the data blocks with the preset lengths of the plurality of image data frames is firstly obtained by prolonging the time for obtaining the background image data, namely, the image data of the background image is read by the multiple times of the clock period of the image output time sequence generated by the FPGA, so that the problem that when the occupied bandwidth is too high, the system cannot timely respond to the image data obtaining of the background image in one frame period of the image output is solved, and the experience feeling of a user is improved simultaneously
[ second embodiment ]
As shown in fig. 7A, a background image data reading and processing apparatus 700 according to a second embodiment of the present invention includes: intelligence receiving module 701, total duration obtaining module 702 and data reading module 703.
The instruction receiving module 701 is configured to receive a reading instruction for reading an image data frame of a background image;
a total duration obtaining module 702, configured to obtain a total duration of reading the image data frame of the background image according to the reading instruction, where the total duration of reading is greater than an image output frame period of the image processor; and
a data reading module 703, configured to read image data of the background image according to the total reading duration.
Further, the image data frame of the background image includes at least one data block of a preset length, and the total reading duration of the image data frame is equal to the sum of the respective reading durations of the at least one data block of the preset length and the total duration of the reading interval of the at least one data block of the preset length; the total duration of the reading interval of the at least one data block with preset length is equal to a plurality of image output frame periods; or the total duration of the reading intervals of the at least one preset-length data block is equal to a multiple of the clock period used by the image processor to generate the image output timing sequence.
Further, as shown in fig. 7B, the data reading module 703 provided in this embodiment further includes, for example:
a total number obtaining unit 7031, configured to obtain a total number of preset-length data blocks of the at least one preset-length data block of the image data frame of the background image; a reading interval duration determining unit 7032, configured to determine, according to the total number of the preset-length data blocks and the total duration of the reading interval of the at least one preset-length data block, a reading interval duration for reading two adjacent preset-length data blocks; a data block reading unit 7033, configured to read each data block with the preset length in the image data frame of the background image according to the reading interval duration.
Further, the reading interval duration determining unit 7032 is further specifically configured to: reading the at least one data block with the preset length one by one according to the reading interval duration; judging whether the image data frame is completely read or not after reading one data block with the preset length; responding to the image data frame not being read completely, and continuing to read the next data block with the preset length after waiting for one reading interval duration
Further, the time interval obtaining unit 7031 provided in this embodiment is further specifically configured to: acquiring output time sequence time of the background image data; obtaining line output time based on the output time sequence time and the line numerical value of the background image data; and calculating the data acquisition time interval based on the row output time and the clock period.
Further, the duration of the reading interval is equal to the quotient of the total duration of the reading interval of each preset-length data block and the total number of the preset-length data blocks, and the preset-length data blocks are equal to the data blocks of one or more display lines.
The background image data reading method implemented by the background image data reading apparatus disclosed in this embodiment is as described in the first embodiment, and therefore, a detailed description thereof is omitted. Optionally, each module and the other operations or functions in the second embodiment are respectively for implementing the method in the first embodiment of the present invention, and the beneficial effects of this embodiment are the same as those of the first embodiment, and are not described herein again for brevity.
[ third embodiment ]
As shown in fig. 8, a third embodiment of the present invention provides an image processing apparatus 800 including: a memory 801 and a programmable logic device 802; the memory 801 may be, for example, a volatile memory, and is used for storing a background image; the programmable logic device 802 may be, for example, an image processor such as an FPGA, and is configured to receive an externally input reading instruction for reading an image data frame of a background image, then read image data of the background image from the memory 801 according to the reading instruction, and perform the operation of the background image data reading method according to the foregoing first embodiment.
The beneficial effects of this embodiment are the same as those of the first embodiment, and for brevity, no further description is provided herein.
[ fourth example ] A
As shown in fig. 9, a background image data reading system 900 according to a fourth embodiment of the present invention includes: a processor 901 and a memory 903 connected to the processor 901; the memory 903 stores instructions executed by the processor 901, and the instructions cause the processor 901 to perform operations to perform the background image data reading method described in the foregoing first embodiment, for example.
It should be noted that the background image data reading system 900 disclosed in this embodiment has instructions for causing the processor 901 to execute operations to perform a background image data reading method as described in the foregoing first embodiment, and therefore, the detailed description is not repeated here. Optionally, in order to implement the background image data reading method in the first embodiment of the present invention, the processors and the memories in this embodiment respectively have the same technical effect as that of the background image data reading method in the first embodiment of the present invention, and thus no further description is given here.
[ fifth embodiment ]
As shown in fig. 10, a fifth embodiment of the present invention provides a computer-readable storage medium 1000, which is a non-volatile memory and stores computer-readable instructions, and the computer-readable instructions include instructions for executing the background image data reading method according to the first embodiment, and therefore, the description thereof is not repeated here. The computer-readable storage medium 1000 is, for example, a non-volatile memory, and includes: magnetic media (e.g., hard disks, floppy disks, and magnetic tape), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices specially constructed for storing and executing computer-executable instructions (e.g., Read Only Memories (ROMs), Random Access Memories (RAMs), flash memories, etc.). The computer-readable storage medium 1000 may execute computer-readable instructions by one or more processors or processing devices.
In addition, the technical effect of the computer-readable storage medium 1000 disclosed in this embodiment is the same as that of the background image data reading method in the first embodiment, and is not described herein again.
In addition, it should be understood that the foregoing embodiments are merely exemplary illustrations of the present invention, and technical solutions of the embodiments can be arbitrarily combined and used without conflict between technical features and structures, and without departing from the purpose of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and/or method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units/modules is only one logical division, and there may be other divisions in actual implementation, for example, multiple units or modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units/modules described as separate parts may or may not be physically separate, and parts displayed as units/modules may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units/modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, each functional unit/module in the embodiments of the present invention may be integrated into one processing unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated into one unit/module. The integrated units/modules may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units/modules.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A background image data reading method is suitable for an image processor, and is characterized by comprising the following steps:
receiving a reading instruction for reading an image data frame of a background image;
acquiring the total reading time of the image data frame of the background image according to the reading instruction, wherein the total reading time is greater than the image output frame period of the image processor; and
and reading the image data of the background image according to the total reading duration.
2. The background image data reading method according to claim 1, wherein an image data frame of the background image includes at least one preset-length data block, and the total reading duration of the image data frame is equal to a sum of a respective reading duration of the at least one preset-length data block and a total duration of a reading interval of the at least one preset-length data block; the total duration of the reading interval of the at least one data block with preset length is equal to a plurality of image output frame periods; or the total duration of the read intervals of the at least one preset length data block is equal to a multiple of the system clock period.
3. The background image data reading method according to claim 2, wherein the reading of the image data of the background image according to the total reading time period includes:
acquiring the total number of preset length data blocks of the at least one preset length data block of the image data frame of the background image;
determining the reading interval duration for reading two adjacent data blocks with preset length according to the total number of the data blocks with preset length and the total duration of the reading interval of the at least one data block with preset length;
and reading each preset length data block of the image data frame of the background image according to the reading interval duration.
4. The method according to claim 3, wherein the reading of each of the preset-length data blocks of the image data frame of the background image according to the reading interval duration includes:
reading the at least one data block with the preset length one by one according to the reading interval duration;
judging whether the image data frame is completely read or not after reading one data block with the preset length;
and responding to the situation that the image data frame is not completely read, and continuing to read the next data block with the preset length after waiting for one reading interval duration.
5. The background image data reading method according to claim 3, wherein the reading interval duration is equal to a quotient of a total duration of the reading intervals of the respective data blocks of the preset length and a total number of the data blocks of the preset length, and the data blocks of the preset length are equal to data blocks of one or more display lines.
6. A background image data reading apparatus adapted to an image processor, the apparatus comprising:
the instruction receiving module is used for receiving a reading instruction for reading an image data frame of a background image;
a total duration obtaining module, configured to obtain a total duration of reading the image data frame of the background image according to the reading instruction, where the total duration of reading is greater than an image output frame period of the image processor; and
and the data reading module is used for reading the image data of the background image according to the total reading duration.
7. The background image data reading apparatus according to claim 6, wherein an image data frame of the background image includes at least one preset-length data block, and the total reading duration of the image data frame is equal to a sum of a respective reading duration of the at least one preset-length data block and a total duration of a reading interval of the at least one preset-length data block; the total duration of the reading interval of the at least one data block with preset length is equal to a plurality of image output frame periods; or the total duration of the reading intervals of the at least one preset-length data block is equal to a multiple of the clock period used by the image processor to generate the image output timing sequence.
8. The background image data reading apparatus according to claim 6, wherein the data reading module includes:
a total number obtaining unit, configured to obtain a total number of preset-length data blocks of the at least one preset-length data block of the image data frame of the background image;
a reading interval duration determining unit, configured to determine, according to the total number of the preset-length data blocks and the total duration of the reading interval of the at least one preset-length data block, a reading interval duration for reading two adjacent preset-length data blocks;
and the data block reading unit is used for reading each preset length data block of the image data frame of the background image according to the reading interval duration.
9. The background image data reading apparatus according to claim 8, wherein the data block reading unit is further specifically configured to:
reading the at least one data block with the preset length one by one according to the reading interval duration;
judging whether the image data frame is completely read or not after reading one data block with the preset length;
and responding to the situation that the image data frame is not completely read, and continuing to read the next data block with the preset length after waiting for one reading interval duration.
10. The background image data reading apparatus according to claim 6, wherein the reading interval duration is equal to a quotient of a total duration of the reading intervals of the respective data blocks of the preset length and a total number of the data blocks of the preset length, the data blocks of the preset length being equal to data blocks of one or more display lines.
CN202011024497.2A 2020-09-25 2020-09-25 Background image data reading method and device Pending CN114253700A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011024497.2A CN114253700A (en) 2020-09-25 2020-09-25 Background image data reading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011024497.2A CN114253700A (en) 2020-09-25 2020-09-25 Background image data reading method and device

Publications (1)

Publication Number Publication Date
CN114253700A true CN114253700A (en) 2022-03-29

Family

ID=80789170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011024497.2A Pending CN114253700A (en) 2020-09-25 2020-09-25 Background image data reading method and device

Country Status (1)

Country Link
CN (1) CN114253700A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924942A (en) * 2010-09-03 2010-12-22 北京中星微电子有限公司 Image processing method and device
CN106973188A (en) * 2017-04-11 2017-07-21 北京图森未来科技有限公司 A kind of image transmission and method
CN109672819A (en) * 2018-12-10 2019-04-23 Oppo广东移动通信有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111221652A (en) * 2020-01-03 2020-06-02 北京百度网讯科技有限公司 Data processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924942A (en) * 2010-09-03 2010-12-22 北京中星微电子有限公司 Image processing method and device
CN106973188A (en) * 2017-04-11 2017-07-21 北京图森未来科技有限公司 A kind of image transmission and method
US20180295311A1 (en) * 2017-04-11 2018-10-11 TuSimple Image transmission device and method
CN109672819A (en) * 2018-12-10 2019-04-23 Oppo广东移动通信有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111221652A (en) * 2020-01-03 2020-06-02 北京百度网讯科技有限公司 Data processing method and device

Similar Documents

Publication Publication Date Title
CN105049834B (en) Real-time auto-stereoscopic playing system based on FPGA (Field Programmable Gate Array)
CN104268113B (en) The lcd controller of DPI interfaces and the method for its adaptive bandwidth
CN114051145B (en) A video compression processing method, device and medium
CN105871916A (en) Video stream transmission and display processing method, device and system
EP4160583A1 (en) Pulse signal-based display method and apparatus, electronic device, and medium
CN112422888B (en) Video splicing method and device, electronic equipment and computer readable storage medium
CN112929672B (en) Video compression method, device, equipment and computer readable storage medium
CN113286174B (en) Video frame extraction method and device, electronic equipment and computer readable storage medium
CN111464757A (en) Video processing method, device and system
CN110569008A (en) Screen data processing method, device and electronic device
CN114253700A (en) Background image data reading method and device
CN111477191B (en) Display brightness improving method, time sequence controller and storage medium
CN109345887B (en) Task execution duration obtaining method and device and electronic equipment
WO2021035643A1 (en) Monitoring image generation method, apparatus, device, system, and image processing device
CN116894906A (en) Graphics rendering method and processor hardware architecture
JPH0229691A (en) liquid crystal display device
CN112995559A (en) Video processing method, device and system, display controller and display control system
CN114554116A (en) Background image switching method and device, video output card and video processing equipment
CN101556789B (en) Image scaling control system and method
CN106027925B (en) display control method and device of OSD menu
CN112565738A (en) Video source state detection method and device
CN114339139A (en) Preview video processing method, preview video processing card and plug-in video processor
CN100370803C (en) Digital line delay using a single port memory
CN103680402A (en) An asynchronous full color LED display control system based on an LEON3 soft core CPU
CN113870164B (en) Image processing device, method, electronic device and readable 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