Image Magnification Method, Device, Equipment, Medium and Display of Liquid Crystal Screen
By comparing and converting the timing reference parameters of the image with the LCD screen display resolution, the timing reconstruction and data conversion of the image are realized, and the problem of excessive FPGA resources occupied by the image amplification process in the prior art is solved, and resource saving and image amplification are achieved.
Patent Information
- Application Number
- CN202210448092.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-26
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2042-04-26
AI Technical Summary
The prior art occupies too many processing threads of FPGA chips during image amplification, resulting in waste of resources.
By comparing and converting the timing reference parameters of the image to be enlarged with the display resolution of the liquid crystal screen, the timing conversion parameters are obtained. Based on this parameter, the row signals and field signals of the image are reconstructed and data converted to realize image amplification.
The image amplification process is simplified, effectively saves the resources of the FPGA chip and avoids waste of resources.
Smart Images

Figure CN115037885B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing, and particularly to an image magnification method, device, equipment, medium and display for a liquid crystal display screen. Background Art
[0002] Field Programmable Gate Array (FPGA) chips have the flexibility of software and the high performance of hardware because they can achieve different functions by loading different configuration files. Therefore, FPGA chips are becoming increasingly popular in high-end applications. For example, in the field of image processing, when an FPGA drives a liquid crystal display screen with a resolution of 3840*2160, if the resolution of the input video image is also 3840*2160, video playback can be performed by driving the liquid crystal display screen through the FPGA without magnification. However, when the resolution of the input video image is not 3840*2160, the video image needs to be magnified so that its resolution is magnified to 3840*2160 before it can be used to drive the liquid crystal display screen for video playback.
[0003] Currently, traditional methods all perform image magnification operations by adding a new magnification module. Although the pixel quality of the processed image is very good in this way, due to the cumbersome process and the excessive processing threads occupied by the FPGA chip during the processing, the burden on the FPGA chip is increased, which will lead to waste of FPGA chip resources. Summary of the Invention
[0004] The present invention provides an image magnification method, device, equipment, medium and display for a liquid crystal display screen, which is used to solve the problem that too many processing threads of the FPGA chip are occupied during the image magnification process in the prior art, and further lead to waste of FPGA chip resources, so as to simplify the image magnification process and effectively save the waste of FPGA chip resources.
[0005] The present invention provides an image magnification method for a liquid crystal display screen, including:
[0006] Comparing and converting the first timing reference parameter of the image to be magnified with the second timing reference parameter of the display resolution of the liquid crystal display screen to obtain a timing conversion parameter;
[0007] Performing timing reconstruction on the row signal timing data and field signal timing data of the image to be magnified based on the timing conversion parameter, and performing data conversion on the row signal valid data and field signal valid data of the image to be magnified based on the timing conversion parameter to obtain target row signal valid data and target field signal valid data;
[0008] Based on the timing synchronization, synthesize the reconstructed row signal timing data, the reconstructed field signal timing data, the target row signal valid data, and the target field signal valid data, and transmit the synthesized data to the FPGA (Field Programmable Gate Array) port, so as to transmit the target format image data corresponding to the image to be amplified to the display through the FPGA port for display.
[0009] According to an image amplification method for a liquid crystal display provided by the present invention, the row signal timing data of the image to be amplified includes a row synchronization signal, an enable signal of the row signal valid data, and a row signal clock signal, and the field signal timing data includes a field synchronization signal, an enable signal of the field signal valid data, and a field signal clock signal;
[0010] The timing reconstruction of the row signal timing data and the field signal timing data of the image to be amplified based on the timing conversion parameters specifically includes:
[0011] When the timing conversion parameter is that the row signal is reduced to half of the original, reduce the pulse signal width in the enable signal of the row signal valid data to half of the original, so that the data volume of the data packet corresponding to the enable signal of the row signal valid data is reduced to half of the original;
[0012] When the timing conversion parameter is that the field signal is expanded to twice the original, expand the pulse signal width in the enable signal of the field signal valid data to twice the original, so that the data volume of the data packet corresponding to the enable signal of the field signal valid data is expanded to twice the original.
[0013] According to an image amplification method for a liquid crystal display provided by the present invention, the timing reconstruction of the row signal timing and the field signal timing of the image to be amplified based on the timing conversion parameters further includes:
[0014] Control the row signal clock signal and the field signal clock signal to remain unchanged.
[0015] According to an image amplification method for a liquid crystal display provided by the present invention, the data conversion of the row signal valid data and the field signal valid data of the image to be amplified based on the timing conversion parameters specifically includes:
[0016] When the timing conversion parameter is that the row signal is reduced to half of the original, read and store the row signal valid data in the k-th data valid stage into the first dual-port random access memory, where k is a positive odd number;
[0017] After the valid data of the row signal in the k-th data valid phase is completely stored, read and store the valid data of the row signal in the (k + 1)-th data valid phase into the second dual-port random access memory, take out the valid data of the row signal in the k-th data valid phase and put it into the first row, and stretch the valid data of the row signal in the k-th data valid phase to the second row in sequence;
[0018] After the valid data of the row signal in the (k + 1)-th data valid phase is read and stored completely, return to execute the step of reading and storing the valid data of the row signal in the k-th data valid phase into the first dual-port random access memory, take out the valid data of the row signal in the (k + 1)-th data valid phase and put it into the third row, and stretch the valid data of the row signal in the (k + 1)-th data valid phase to the fourth row in sequence until the valid data of the row signal is completely stored.
[0019] According to an image magnification method for a liquid crystal display screen provided by the present invention, the data conversion of the valid data of the row signal and the valid data of the field signal of the image to be magnified based on the timing conversion parameter further includes:
[0020] When the timing conversion parameter is that the field signal is expanded to twice the original, read the valid data of the field signal in the k-th data valid phase, and stretch the valid data of the field signal in the k-th data valid phase after the valid data of the field signal in the k-th data valid phase is read completely;
[0021] Read the valid data of the field signal in the (k + 1)-th data valid phase, and stretch the valid data of the field signal in the (k + 1)-th data valid phase after the valid data of the field signal in the (k + 1)-th data valid phase is read completely until the valid data of the field signal is read completely.
[0022] According to an image magnification method for a liquid crystal display screen provided by the present invention, before comparing and converting the first timing reference parameter of the image to be magnified with the second timing reference parameter of the display resolution of the liquid crystal display screen, it further includes:
[0023] Decode the DVI digital video interface signal of the image to be magnified input to the FPGA;
[0024] Perform timing sampling on the decoded DVI digital video interface signal to obtain the first timing reference parameter;
[0025] Perform data sampling on the decoded DVI digital video interface signal to obtain the valid data of the row signal and the valid data of the field signal.
[0026] The present invention also provides an image magnification device for a liquid crystal display screen, including:
[0027] A conversion unit for comparing and converting a first timing reference parameter of an image to be enlarged with a second timing reference parameter of the display resolution of the liquid crystal display screen to obtain a timing conversion parameter;
[0028] A reconstruction unit for performing timing reconstruction on the row signal timing data and the field signal timing data of the image to be enlarged based on the timing conversion parameter, and performing data conversion on the row signal valid data and the field signal valid data of the image to be enlarged based on the timing conversion parameter to obtain target row signal valid data and target field signal valid data;
[0029] A display unit for synthesizing the reconstructed row signal timing data, the reconstructed field signal timing data, the target row signal valid data and the target field signal valid data based on timing synchronization, and transmitting the synthesized data to the FPGA (Field Programmable Gate Array) port, so as to transmit the target format image data corresponding to the image to be enlarged to the display for display through the FPGA port.
[0030] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the image magnification method of the liquid crystal display screen as described in any one of the above is implemented.
[0031] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the image magnification method of the liquid crystal display screen as described in any one of the above is implemented.
[0032] The present invention also provides a display, including a display screen and a display control board. The display control board includes a computer program. When the computer program is executed by a processor, the image magnification method of the liquid crystal display screen as described in any one of the above is implemented.
[0033] An image magnification method, device, equipment, medium and display for a liquid crystal display screen provided by the present invention first compares and converts the first timing reference parameter of the image to be magnified with the second timing reference parameter of the display resolution of the liquid crystal display screen to obtain a timing conversion parameter. Then, based on the timing conversion parameter, timing reconstruction is performed on the row signal timing data and field signal timing data of the image to be magnified, and data conversion is performed on the row signal valid data and field signal valid data of the image to be magnified based on the timing conversion parameter to obtain target row signal valid data and target field signal valid data. Then, based on timing synchronization, the reconstructed row signal timing data, reconstructed field signal timing data, target row signal timing data, target field signal timing data, target row signal valid data and target field signal valid data are synthesized, and the synthesized data is transmitted to the FPGA (Field Programmable Gate Array) port, so as to transmit the target format image data corresponding to the image to be magnified to the display for display through the FPGA port. Thus, only by performing timing reconstruction and data conversion, the image magnification can be completed, the image magnification process is simplified, and the waste of FPGA chip resources is effectively saved. Description of the Drawings
[0034] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0035] Figure 1 It is one of the flow diagrams of the image magnification method for the liquid crystal display screen provided by the present invention;
[0036] Figure 2 It is another flow diagram of the image magnification method for the liquid crystal display screen provided by the present invention;
[0037] Figure 3 It is yet another flow diagram of the image magnification method for the liquid crystal display screen provided by the present invention;
[0038] Figure 4 It is the timing diagram of the row signal of the 3840*2160 video image converted from the 1920*1080 video image provided by the present invention;
[0039] Figure 5 It is the timing diagram of the field signal of the 3840*2160 video image converted from the 1920*1080 video image provided by the present invention;
[0040] Figure 6 It is the structural diagram of the image magnification device for the liquid crystal display screen provided by the present invention;
[0041] Figure 7 It is a schematic structural diagram of the electronic device provided by the present invention. Specific embodiments
[0042] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without making creative efforts shall fall within the protection scope of the present invention.
[0043] The following will be combined with Figures 1-3 Describe the image magnification method of the liquid crystal screen of the present invention.
[0044] Figure 1 It is one of the schematic flowcharts of the image magnification method of the liquid crystal screen provided by the present invention. As Figure 1 shown, the method includes:
[0045] Step 100: Compare and convert the first timing reference parameter of the image to be magnified with the second timing reference parameter of the display resolution of the liquid crystal screen to obtain a timing conversion parameter;
[0046] Specifically, the timing reference parameter refers to the pulse signal period and pulse signal width of the horizontal synchronization signal, the pulse signal period and pulse signal width of the vertical synchronization signal, the pulse signal period and pulse signal width of the enable signal of the effective data of the horizontal signal, the number of rows and length of the effective data, the data valid stage parameter of the effective data, and the clock signals of the horizontal signal and the vertical signal.
[0047] Therefore, before comparing and converting the first timing reference parameter of the image to be magnified with the second timing reference parameter of the display resolution of the liquid crystal screen in the present invention, it further includes: decoding the DVI digital video interface signal of the image to be magnified input to the FPGA; performing timing sampling on the decoded DVI digital video interface signal to obtain the first timing reference parameter; and performing data sampling on the decoded DVI digital video interface signal to obtain the effective data of the horizontal signal and the effective data of the vertical signal.
[0048] In this step, a decoding chip can be used to decode the DVI digital video interface signal, such as the tpf401 chip. In addition, decoding can also be performed according to the decoding IP module. The present invention does not limit this.
[0049] The timing conversion parameter refers to the change values of each timing parameter required to transform the first timing reference parameter of the image to be magnified into the second timing reference parameter of the display resolution of the liquid crystal screen.
[0050] For ease of understanding, the present invention is illustrated by way of example. For example, when the resolution of the input video image is 1920*1080, and the resolution of the liquid crystal display (LCD) image that the display module of the LCD screen can normally display is 3840*2160, at this time, since the resolution of the video image is inconsistent with that of the LCD screen image, in order to enable the input video image to be normally displayed, in the present invention, it is necessary to first compare the video image and the LCD screen image, and the comparison result shows that the clock signal of the row signal and the clock signal of the field signal between the video image and the LCD screen image are the same, both being 148.5 MHZ. The row signal of the video image is single-line data, and the row signal of the LCD screen image is four-line data. Moreover, the number of pixel data of the row signal of the video image is 1920, and the number of pixel data of the row signal of each LCD screen image is 960. From this, it is calculated that to convert the video image into an LCD screen image, it is necessary to convert the single-line row signal of the video image into a four-line row signal. Additionally, for the field signal, the comparison result shows that both the field signal of the video image and the field signal of the LCD screen image are single-line data, but the number of pixel data of the field signal of the video image is 1080, while the number of pixel data of the field signal of the LCD screen image is 2160. Therefore, it is necessary to stretch the number of pixel data of the field signal of the video image by a factor of two to become 2160.
[0051] Step 200: Based on the timing conversion parameters, perform timing reconstruction on the row signal timing data and the field signal timing data of the image to be enlarged, and perform data conversion on the row signal valid data and the field signal valid data of the image to be enlarged based on the timing conversion parameters to obtain target row signal valid data and target field signal valid data;
[0052] Specifically, in the present invention, the pulse signal width and the number of pulse signals of each timing data are regulated according to the timing conversion parameters.
[0053] It should be noted that timing data refers to time series data. Time series data is a data column recorded in chronological order of the same unified index. The timing data in the present invention refers to time points, that is, the time series data of pixel points. During the process of image scaling, what changes is the number and arrangement of pixel points in the image, while the filling speed and filling time points of pixel points remain unchanged, that is, the pulse signal period remains unchanged. Therefore, in the present invention, it is only necessary to regulate the pulse signal width and the number of pulse signals of each timing data to complete the timing reconstruction.
[0054] Timing data is used to control the transmission logic of valid data. For example, the clock signal is the basis of timing logic and acts as a timer. If there are 800 pixels in a row, then after 800 clocks, the filling of 800 pixels can be completed. In the present invention, the transmission logic of valid data is also converted according to the timing conversion parameters to make the reconstructed timing data and the converted valid data timing synchronous, so that the content between the output magnified image and the image to be magnified is consistent.
[0055] Step 300, synthesize the reconstructed row signal timing data, the reconstructed field signal timing data, the target row signal valid data, and the target field signal valid data based on timing synchronization, and transmit the synthesized data to the FPGA (Field Programmable Gate Array) port, so as to transmit the target format image data corresponding to the image to be magnified to the display through the FPGA port for display.
[0056] Specifically, the reconstructed row signal timing data in the present invention includes the reconstructed row synchronization signal, the enable signal of the reconstructed row signal, the reconstructed row signal timing data includes the reconstructed row synchronization signal, the clock signal of the reconstructed row signal, the reconstructed field signal timing data includes the reconstructed field synchronization signal, the enable signal of the reconstructed field signal, the reconstructed field signal timing data includes the reconstructed field synchronization signal, the clock signal of the reconstructed field signal, the target row signal timing data includes the row signal valid data of the target number of rows, and the target field signal timing data includes the field signal valid data of the target number of rows.
[0057] Specifically, when performing timing synchronization on each data of the reconstructed row signal, it is necessary to perform timing synchronization on the high level of the reconstructed row synchronization signal, the high level of the enable signal of the reconstructed row signal, and the data valid stage of the row signal valid data of each row based on the clock signal of the reconstructed row signal. Similarly, when performing timing synchronization on each data of the reconstructed field signal, it is necessary to perform timing synchronization on the high level of the reconstructed field synchronization signal, the high level of the enable signal of the reconstructed field signal, and the data valid stage of the field signal valid data of each row based on the clock signal of the reconstructed field signal.
[0058] In the present invention, taking the reconstructed field signal as an example, the vertical synchronization signal includes a low level and a high level. Among them, the low level represents the blanking period, and the high level represents the valid period. Understandably, during the scanning process of converting the optical signal into an electrical signal, the scanning always starts from the upper left corner of the image, travels horizontally forward, and at the same time, the scanning point also moves downward at a slower rate. When the scanning point reaches the right edge of the image, the scanning point quickly returns to the left side and starts the second line scanning below the starting point of the first line again. The return process between lines is called horizontal blanking. A complete image scanning signal, composed of a sequence of line signals separated by horizontal blanking intervals, is called a frame. After the scanning point scans a frame, it needs to return from the lower right corner of the image to the upper left corner of the image to start a new frame of scanning. This time interval is called vertical blanking, also known as field blanking.
[0059] In other words, when scanning to the high level in the vertical synchronization signal based on the clock signal, it indicates that the field signal needs to be sent currently. When scanning to the low level in the vertical synchronization signal, it indicates that the field signal does not need to be sent currently.
[0060] Similarly, the enable signal of the field signal is also divided into a high level and a low level. Among them, the high level represents the data valid stage. When the vertical synchronization signal scans to the high level, it indicates that the transmission of a new line of data will start immediately. When the enable signal of the field signal scans to the high level, it indicates that the valid data needs to be transmitted currently. Thus, based on the clock signal of the field signal, the high level of the vertical synchronization signal, the high level of the enable signal of the field signal, and the data valid stages of the valid data of each line of the field signal are synchronized in timing, so that a new line of data can be transmitted and completed.
[0061] The image magnification method of the liquid crystal display screen proposed by the present invention first compares and converts the first timing reference parameter of the image to be magnified with the second timing reference parameter of the display resolution of the liquid crystal display screen to obtain a timing conversion parameter. Then, based on the timing conversion parameter, the timing of the line signal timing data and the field signal timing data of the image to be magnified is reconstructed, and the line signal valid data and the field signal valid data of the image to be magnified are data-converted based on the timing conversion parameter to obtain the target line signal valid data and the target field signal valid data. Then, based on timing synchronization, the reconstructed line signal timing data, the reconstructed field signal timing data, the target line signal timing data, the target field signal timing data, the target line signal valid data, and the target field signal valid data are synthesized, and the synthesized data is transmitted to the FPGA (Field Programmable Gate Array) port. The synthesized data is the target format image data corresponding to the image to be magnified.
[0062] The FPGA (Field Programmable Gate Array) port then transfers the synthesized data to the display, and then the display can display the target format image data corresponding to the image to be enlarged on the display screen in the display. Thus, only by performing timing reconstruction and data conversion, the image enlargement can be completed, simplifying the image enlargement process, and effectively saving the waste of FPGA chip resources.
[0063] Optionally, in another embodiment disclosed in the present invention, refer to Figure 2 , Figure 2 which is the second flowchart of the image enlargement method for the liquid crystal screen provided by the present invention. As Figure 2 shown: The timing reconstruction of the row signal timing data and the field signal timing data of the image to be enlarged based on the timing conversion parameter specifically includes:
[0064] Step 20011, when the timing conversion parameter is that the row signal is reduced to half of the original, reduce the pulse signal width in the enable signal of the row signal valid data to half of the original, so that the data volume of the data packet corresponding to the enable signal of the row signal valid data is reduced to half of the original;
[0065] Specifically, the row signal timing data of the image to be enlarged includes the enable signal of the row signal valid data and the row signal clock signal, and the field signal timing data includes the enable signal of the field signal valid data and the field signal clock signal.
[0066] When the resolution of the input video image is 1920*1080, and the resolution of the liquid crystal screen image that the display module of the liquid crystal screen can normally display is 3840*2160, the row signal of the video image is single-line data, the row signal of the liquid crystal screen image is four-line data, and the number of pixel points of the row signal of the video image is 1920, and the number of pixel points of the row signal of each liquid crystal screen image is 960. Thus, it is calculated that converting the video image into a liquid crystal screen image requires converting the single-line row signal of the video image into four-line row signals, and also requires reducing the pulse signal width in the enable signal of the row signal valid data to half of the original, so that the data volume of the data packet corresponding to the enable signal of the row signal valid data is reduced to half of the original.
[0067] In another application scenario, when there is other conversion relationship between the resolution of the input video image and the resolution of the liquid crystal screen image, for example, when the timing conversion parameter is that the row signal is reduced to the original and the field signal is enlarged to n times the original, reduce the pulse signal widths of both the horizontal synchronization signal and the enable signal of the row signal valid data to the original The number of pulse signals of both the horizontal synchronization signal and the enable signal of the horizontal signal valid data is expanded to n times the original. Further, when the values of m and n are not integers, m and n can be rounded based on the rounding principle, which will not be elaborated here. Here, both m and n are positive numbers.
[0068] Step 20012, when the timing conversion parameter is that the field signal is expanded to twice the original, expand the pulse signal width in the enable signal of the field signal valid data to twice the original, so that the data volume of the data packet corresponding to the enable signal of the field signal valid data is expanded to twice the original.
[0069] Specifically, for the field signal, the comparison result shows that the field signals of the video image and the liquid crystal screen image are both single-line data. However, the number of pixel data of the field signal of the video image is 1080, while the number of pixel data of the field signal of the liquid crystal screen image is 2160. Therefore, it is necessary to expand the pulse signal width in the enable signal of the field signal valid data to twice the original, so that the data volume of the data packet corresponding to the enable signal of the field signal valid data is expanded to twice the original.
[0070] In another application scenario, when there is other conversion relationship between the resolution of the input video image and the resolution of the liquid crystal screen image. For example, when the timing conversion parameter is that the horizontal signal is reduced to the original When the field signal is expanded to n times the original, expand the length of the field signal valid data to n times the original. Further, when the values of m and n are not integers, m and n can be rounded based on the rounding principle, which will not be elaborated here. Here, both m and n are positive numbers.
[0071] In addition, it should be noted that during the process of image scaling, what changes is the number and arrangement of pixels in the image, while the filling speed and filling time point of the pixels remain unchanged, that is, the pulse signal period remains unchanged. Therefore, when the present invention performs timing reconstruction on the horizontal signal timing and field signal timing of the image to be enlarged based on the timing conversion parameter, it further includes:
[0072] Keep the horizontal signal clock signal and the field signal clock signal unchanged.
[0073] The image magnification method for the liquid crystal screen proposed by the present invention, when the timing conversion parameter is that the row signal is reduced to half of the original, reduces the pulse signal width in the enable signal of the valid data of the row signal to half of the original, so that the data volume of the data packet corresponding to the enable signal of the valid data of the row signal is reduced to half of the original. When the timing conversion parameter is that the field signal is expanded to twice the original, expands the pulse signal width in the enable signal of the valid data of the field signal to twice the original, so that the data volume of the data packet corresponding to the enable signal of the valid data of the field signal is expanded to twice the original. Thus, by performing timing reconstruction, the image magnification process is simplified, and further, the waste of FPGA chip resources is effectively saved.
[0074] Optionally, in another embodiment disclosed by the present invention, referring to Figure 3 , Figure 3 is the third flowchart of the image magnification method for the liquid crystal screen provided by the present invention. As Figure 3 shown: The data conversion of the valid data of the row signal and the valid data of the field signal of the image to be magnified based on the timing conversion parameter specifically includes:
[0075] Step 20021, when the timing conversion parameter is that the row signal is reduced to half of the original, read and store the valid data of the row signal in the k-th data valid stage into the first dual-port random access memory, where k is a positive odd number;
[0076] Specifically, in the present invention, a dual-port random access memory DPRAM (Dual Port Random Access Memory) is used to access the valid data, thereby realizing data conversion.
[0077] In this step, during the data access process, based on the clock signal, first read and store the valid data of the row signal in the first data valid stage into the first dual-port random access memory, and then read and store the valid data of the row signal in the third data valid stage into the first dual-port random access memory, and so on, until the valid data of the row signal is read out.
[0078] Step 20022, after the valid data of the row signal in the k-th data valid stage is stored, read and store the valid data of the row signal in the (k + 1)-th data valid stage into the second dual-port random access memory, take out the valid data of the row signal in the k-th data valid stage and put it into the first row, and stretch the valid data of the row signal in the k-th data valid stage to the second row in sequence;
[0079] It should be noted that in the present invention, the first and the second are only used to distinguish the dual-port random access memory that stores the valid data of the row signal in the k-th data valid stage and the dual-port random access memory that stores the valid data of the row signal in the (k + 1)-th data valid stage. Both the first dual-port random access memory and the second dual-port random access memory are DPRAM (Dual Port Random Access Memory).
[0080] In this step, it is easy to understand that the row signal of the video image is single-line data, and the row signal of the liquid crystal display image is four-line data. Therefore, in the present invention, after taking out the valid data of the row signal in the k-th data valid stage and putting it into the first row, it is also necessary to stretch the valid data of the row signal in the k-th data valid stage to the second row in sequence. Moreover, the number of pixel points of the row signal of the video image is 1920, and the number of pixel points of the row signal of each row of the liquid crystal display image is 960, so that the number of pixel points changes from 1920 to 3840.
[0081] Step 20023, after the valid data of the row signal in the (k + 1)-th data valid stage is read and stored, return to execute the step of reading and storing the valid data of the row signal in the k-th data valid stage into the first dual-port random access memory, take out the valid data of the row signal in the (k + 1)-th data valid stage and put it into the third row, and stretch the valid data of the row signal in the (k + 1)-th data valid stage to the fourth row in sequence until the valid data of the row signal is stored completely.
[0082] In practical applications, referring to Figure 4 , since there are more than one data valid stage for the valid data of the row signal, when performing data conversion, first read and store the valid data of the row signal in the first data valid stage into the first dual-port random access memory, then read and store the valid data of the row signal in the second data valid stage into the second dual-port random access memory, and when storing the valid data of the row signal in the second data valid stage, take out the valid data of the row signal in the first data valid stage and stretch it by one time. After the valid data of the row signal in the second data valid stage is full, then read and store the valid data of the row signal in the third data valid stage into the first dual-port random access memory, take out the valid data of the row signal in the second data valid stage and stretch it by one time... and so on until the valid data of the row signal is read completely. Referring to Figure 4 , Figure 4 The four lines of valid data in Figure 4 are the timing diagrams of the valid data of the stretched row signal. Among them, 1 in represents the valid data of the row signal in the first data valid stage in the 1920 * 1080 video image, 2 represents the valid data of the row signal in the second data valid stage in the 1920 * 1080 video image... and so on, which will not be elaborated here.
[0083] Since the clock signal frequencies are the same, the operations in the next data valid phase of the output can exactly repeat those in the previous data valid phase, and the data will neither overflow nor be emptied. Thus, a video image with a resolution of 1920*1080 can be converted into an LCD screen image with a resolution of 3840*2160.
[0084] For the field signal, the comparison result shows that the field signals of both the video image and the LCD screen image are single-line data. However, the number of pixel data in the field signal of the video image is 1080, while that in the field signal of the LCD screen image is 2160. Therefore, data conversion of the valid data of the row signal and the valid data of the field signal for the image to be magnified based on the timing conversion parameters further includes:
[0085] When the timing conversion parameter is that the field signal is expanded to twice its original size, read the valid data of the field signal in the k-th data valid phase, and stretch the valid data of the field signal in the k-th data valid phase after the reading of the valid data of the field signal in the k-th data valid phase is completed;
[0086] Read the valid data of the field signal in the (k + 1)-th data valid phase, and stretch the valid data of the field signal in the (k + 1)-th data valid phase after the reading of the valid data of the field signal in the (k + 1)-th data valid phase is completed until the reading of the valid data of the field signal is completed.
[0087] Specifically, first read the valid data of the row signal in the first data valid phase, and stretch the valid data of the row signal in the first data valid phase after the reading of the valid data of the row signal in the first data valid phase is completed. Then read the valid data of the row signal in the second data valid phase, and stretch the valid data of the row signal in the second data valid phase after the reading of the valid data of the row signal in the second data valid phase is completed, and so on until the reading of the valid data of the row signal is completed. Refer to Figure 5 , Figure 5 for the timing diagram where the single-line valid data is the valid data of the stretched field signal. Among them, Figure 5 the first of the 1080 valid data in represents the valid data of the field signal in the first data valid phase of the 1920*1080 video image, the second of the 1080 valid data represents the valid data of the field signal in the second data valid phase of the 1920*1080 video image, and so on. Details are not elaborated here.
[0088] In addition, in another application scenario, when there is other conversion relationship between the resolution of the input video image and the resolution of the LCD screen image. For example, when the timing conversion parameter is that the row signal is reduced to When the field signal is expanded to n times the original, the valid row signal data in the k-th data valid stage is read and stored in the first dual-port random access memory, where k is a positive odd number. Then, after the valid row signal data in the k-th data valid stage is stored, the valid row signal data in the (k + 1)-th data valid stage is read and stored in the second dual-port random access memory. The valid row signal data in the k-th data valid stage is taken out and placed in the i-th row, and the valid row signal data in the k-th data valid stage is stretched to the (i + l)-th row in sequence, where i + l = m, and m takes values as positive integers in sequence.
[0089] After the valid row signal data in the (k + 1)-th data valid stage is read and stored, the step of reading and storing the valid row signal data in the k-th data valid stage into the first dual-port random access memory is returned for execution. The valid row signal data in the (k + 1)-th data valid stage is taken out and placed in the (i + l + 1)-th row, and the valid row signal data in the (k + 1)-th data valid stage is stretched to the (i + 2l + 1)-th row in sequence until the valid row signal data is stored completely, where i + 2l + 1 = 2m.
[0090] In the image magnification method of the liquid crystal screen proposed in the present invention, by simply alternately and cyclically accessing the valid row signal data, the image magnification process can be simplified, thereby effectively saving the waste of FPGA chip resources.
[0091] Next, the image magnification device of the liquid crystal screen provided by the present invention will be described. The image magnification device of the liquid crystal screen described below can be mutually referred to with the image magnification method of the liquid crystal screen described above.
[0092] Reference Figure 6 , Figure 6 is a schematic structural diagram of the image magnification device of the liquid crystal screen provided by the present invention. As Figure 6As shown, the image magnification device of the liquid crystal display screen includes: a conversion unit 610, a reconstruction unit 620, and a display unit 630. Among them, the conversion unit 610 is used to compare and convert the first timing reference parameter of the image to be magnified with the second timing reference parameter of the display resolution of the liquid crystal display screen to obtain a timing conversion parameter; the reconstruction unit 620 is used to perform timing reconstruction on the row signal timing data and the field signal timing data of the image to be magnified based on the timing conversion parameter, and perform data conversion on the row signal valid data and the field signal valid data of the image to be magnified based on the timing conversion parameter to obtain target row signal valid data and target field signal valid data; the display unit 630 is used to synthesize the reconstructed row signal timing data, the reconstructed field signal timing data, the target row signal valid data, and the target field signal valid data based on timing synchronization, and transmit the synthesized data to the FPGA (Field Programmable Gate Array) port, so as to transmit the target format image corresponding to the image to be magnified to the display for display through the FPGA port.
[0093] According to an image magnification device of a liquid crystal display screen provided by the present invention, the reconstruction unit 620 is further used to, when the timing conversion parameter is that the row signal is reduced to half of the original, reduce the pulse signal width in the enable signal of the row signal valid data to half of the original, so that the data volume of the data packet corresponding to the enable signal of the row signal valid data is reduced to half of the original; when the timing conversion parameter is that the field signal is expanded to twice the original, expand the pulse signal width in the enable signal of the field signal valid data to twice the original, so that the data volume of the data packet corresponding to the enable signal of the field signal valid data is expanded to twice the original. The reconstruction unit 620 is further used to control the row signal clock signal and the field signal clock signal to remain unchanged.
[0094] An image magnification device for a liquid crystal display according to the present invention, the reconstruction unit 620 is further configured to, when the timing conversion parameter is that the row signal is reduced to half of the original, read and store the valid row signal data in the k-th data valid stage into the first dual-port random access memory, where k is a positive odd number; after the valid row signal data in the k-th data valid stage is stored, read and store the valid row signal data in the (k + 1)-th data valid stage into the second dual-port random access memory, take out the valid row signal data in the k-th data valid stage and put it into the first row, and stretch the valid row signal data in the k-th data valid stage to the second row in sequence; after the valid row signal data in the (k + 1)-th data valid stage is read and stored, return to execute the step of reading and storing the valid row signal data in the k-th data valid stage into the first dual-port random access memory, take out the valid row signal data in the (k + 1)-th data valid stage and put it into the third row, and stretch the valid row signal data in the (k + 1)-th data valid stage to the fourth row in sequence until the valid row signal data is stored completely. The reconstruction unit 620 is further configured to, when the timing conversion parameter is that the field signal is expanded to twice the original, read the valid field signal data in the k-th data valid stage, and stretch the valid field signal data in the k-th data valid stage after the valid field signal data in the k-th data valid stage is read completely; read the valid field signal data in the (k + 1)-th data valid stage, and stretch the valid field signal data in the (k + 1)-th data valid stage after the valid field signal data in the (k + 1)-th data valid stage is read completely until the valid field signal data is read completely.
[0095] An image magnification device for a liquid crystal display according to the present invention, the conversion unit 610 is further configured to decode the DVI digital video interface signal of the image to be magnified input by the FPGA; perform timing sampling on the decoded DVI digital video interface signal to obtain a first timing reference parameter; perform data sampling on the decoded DVI digital video interface signal to obtain valid row signal data and valid field signal data.
[0096] The image magnification device for a liquid crystal display proposed by the present invention first compares and converts the first timing reference parameter of the image to be magnified with the second timing reference parameter of the display resolution of the liquid crystal display to obtain a timing conversion parameter. Then, based on the timing conversion parameter, the timing reconstruction of the row signal timing data and the field signal timing data of the image to be magnified is performed, and the data conversion of the row signal valid data and the field signal valid data of the image to be magnified is performed based on the timing conversion parameter to obtain the target row signal valid data and the target field signal valid data. Then, based on timing synchronization, the reconstructed row signal timing data, the reconstructed field signal timing data, the target row signal timing data, the target field signal timing data, the target row signal valid data, and the target field signal valid data are synthesized, and the synthesized data is transmitted to the FPGA (Field Programmable Gate Array) port to display the target format image corresponding to the image to be magnified. Thus, only by performing timing reconstruction and data conversion, the image magnification can be completed, the image magnification process is simplified, and the waste of FPGA chip resources is effectively saved.
[0097] Figure 7 An example of the physical structure diagram of an electronic device is shown as Figure 7 shown. The electronic device may include: a processor 710, a communication interface 720, a memory 730, and a communication bus 740. Among them, the processor 710, the communication interface 720, and the memory 730 communicate with each other through the communication bus 740. The processor 710 can call the logical instructions in the memory 730 to execute the image magnification method for the liquid crystal display. The method includes: comparing and converting the first timing reference parameter of the image to be magnified with the second timing reference parameter of the display resolution of the liquid crystal display to obtain a timing conversion parameter; performing timing reconstruction on the row signal timing data and the field signal timing data of the image to be magnified based on the timing conversion parameter, and performing data conversion on the row signal valid data and the field signal valid data of the image to be magnified based on the timing conversion parameter to obtain the target row signal valid data and the target field signal valid data; synthesizing the reconstructed row signal timing data, the reconstructed field signal timing data, the target row signal valid data, and the target field signal valid data based on timing synchronization, and transmitting the synthesized data to the FPGA (Field Programmable Gate Array) port to transmit the target format image data corresponding to the image to be magnified to the display through the FPGA (Field Programmable Gate Array) port for display.
[0098] In addition, when the logical instructions in the above-mentioned memory 730 can be implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.
[0099] On the other hand, the present invention also provides a display, which includes a display screen and a display control board. The display control board includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the image magnification method of the liquid crystal screen provided by the above-mentioned various methods.
[0100] On yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is implemented to execute the image magnification method of the liquid crystal screen provided by the above-mentioned various methods. The method includes: comparing and converting the first timing reference parameter of the image to be magnified with the second timing reference parameter of the display resolution of the liquid crystal screen to obtain a timing conversion parameter; based on the timing conversion parameter, performing timing reconstruction on the row signal timing data and the field signal timing data of the image to be magnified, and performing data conversion on the row signal valid data and the field signal valid data of the image to be magnified based on the timing conversion parameter to obtain target row signal valid data and target field signal valid data; based on timing synchronization, synthesizing the reconstructed row signal timing data, the reconstructed field signal timing data, the target row signal valid data, and the target field signal valid data, and transmitting the synthesized data to the FPGA (Field Programmable Gate Array) port, so as to transmit the target format image data corresponding to the image to be magnified to the display for display through the FPGA port.
[0101] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0102] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments or equivalently replace some of the technical features. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An image magnification method for a liquid crystal display screen, characterized in that, it includes: Comparing and converting the first timing reference parameter of the image to be magnified with the second timing reference parameter of the display resolution of the liquid crystal display screen to obtain a timing conversion parameter; Based on the timing conversion parameter, performing timing reconstruction on the row signal timing data and field signal timing data of the image to be magnified, and performing data conversion on the row signal valid data and field signal valid data of the image to be magnified based on the timing conversion parameter to obtain target row signal valid data and target field signal valid data; Based on timing synchronization, synthesizing the reconstructed row signal timing data, the reconstructed field signal timing data, the target row signal valid data, and the target field signal valid data, and transmitting the synthesized data to the FPGA (Field Programmable Gate Array) port, so as to transmit the target format image data corresponding to the image to be magnified to the display for display through the FPGA port.
2. The image magnification method for a liquid crystal display screen according to claim 1, characterized in that, The row signal timing data of the image to be magnified includes the enable signal and row signal clock signal of the row signal valid data, and the field signal timing data includes the enable signal and field signal clock signal of the field signal valid data; The performing timing reconstruction on the row signal timing data and field signal timing data of the image to be magnified based on the timing conversion parameter specifically includes: When the timing conversion parameter is that the row signal is reduced to half of the original, reducing the pulse signal width in the enable signal of the row signal valid data to half of the original, so that the data volume of the data packet corresponding to the enable signal of the row signal valid data is reduced to half of the original; When the timing conversion parameter is that the field signal is expanded to twice the original, expanding the pulse signal width in the enable signal of the field signal valid data to twice the original, so that the data volume of the data packet corresponding to the enable signal of the field signal valid data is expanded to twice the original.
3. The image magnification method for a liquid crystal display screen according to claim 2, characterized in that, The performing timing reconstruction on the row signal timing and field signal timing of the image to be magnified based on the timing conversion parameter further includes: Controlling the row signal clock signal and the field signal clock signal to remain unchanged.
4. The image magnification method for a liquid crystal display screen according to claim 1, characterized in that, The performing data conversion on the row signal valid data and field signal valid data of the image to be magnified based on the timing conversion parameter specifically includes: When the timing conversion parameter is that the row signal is reduced to half of the original, reading and storing the row signal valid data in the kth data valid stage into the first dual-port random access memory, where k is a positive odd number; After the row signal valid data in the kth data valid stage is stored, reading and storing the row signal valid data in the (k + 1)th data valid stage into the second dual-port random access memory, taking out the row signal valid data in the kth data valid stage and putting it into the first row, and stretching the row signal valid data in the kth data valid stage to the second row in sequence; After the valid data of the row signal in the (k + 1)-th data valid phase is read and stored, return to execute the step of reading and storing the valid data of the row signal in the k-th data valid phase into the first dual-port random access memory, take out the valid data of the row signal in the (k + 1)-th data valid phase and put it into the third row, and stretch the valid data of the row signal in the (k + 1)-th data valid phase to the fourth row in sequence until the valid data of the row signal is stored completely.
5. The method for magnifying an image of a liquid crystal display screen according to claim 1, characterized in that the data conversion of the valid data of the row signal and the valid data of the field signal of the image to be magnified based on the timing conversion parameter further includes: when the timing conversion parameter is that the field signal is enlarged to twice the original, read the valid data of the field signal in the k-th data valid phase, and stretch the valid data of the field signal in the k-th data valid phase after the valid data of the field signal in the k-th data valid phase is read completely; read the valid data of the field signal in the (k + 1)-th data valid phase, and stretch the valid data of the field signal in the (k + 1)-th data valid phase after the valid data of the field signal in the (k + 1)-th data valid phase is read completely until the valid data of the field signal is read completely.
6. The method for magnifying an image of a liquid crystal display screen according to any one of claims 1 to 5, characterized in that before comparing and converting the first timing reference parameter of the image to be magnified with the second timing reference parameter of the display resolution of the liquid crystal display screen, further includes: decoding the DVI digital video interface signal of the image to be magnified input to the FPGA; performing timing sampling on the decoded DVI digital video interface signal to obtain the first timing reference parameter; performing data sampling on the decoded DVI digital video interface signal to obtain the valid data of the row signal and the valid data of the field signal.
7. An image magnifying device for a liquid crystal display screen, characterized in that comprises: a conversion unit for comparing and converting the first timing reference parameter of the image to be magnified with the second timing reference parameter of the display resolution of the liquid crystal display screen to obtain a timing conversion parameter; a reconstruction unit for performing timing reconstruction on the row signal timing data and the field signal timing data of the image to be magnified based on the timing conversion parameter, and performing data conversion on the valid data of the row signal and the valid data of the field signal of the image to be magnified based on the timing conversion parameter to obtain target valid data of the row signal and target valid data of the field signal; a display unit for synthesizing the reconstructed row signal timing data, the reconstructed field signal timing data, the target valid data of the row signal and the target valid data of the field signal based on timing synchronization, and transmitting the synthesized data to the FPGA field programmable gate array port, so as to transmit the target format image corresponding to the image to be magnified to the display for display through the FPGA field programmable gate array port.
8. An electronic device, including a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that When the processor executes the program, it implements the image magnification method for the liquid crystal display screen according to any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium, on which a computer program is stored, characterized in that, when the computer program is executed by a processor, it implements the image magnification method for the liquid crystal display screen according to any one of claims 1 to 6.
10. A display, comprising a display screen and a display control board, characterized in that, the display control board includes a computer program, and when the computer program is executed by a processor, it implements the image magnification method for the liquid crystal display screen according to any one of claims 1 to 6.
Citation Information
Patent Citations
Self-reconstruction assembly line A / D converter capable of dynamic configuration
CN101247125A
Method and device for realizing digital video single-pixel input-output multi-pixel processing
CN108495070A