Video data processing method and device

By determining the video display resolution and frame resolution in the front-end processing unit and reorganizing the video data, the delay problem caused by the need for caching after video decoding is solved, and efficient video data processing and multiple resolution support are achieved.

CN118540432BActive Publication Date: 2024-09-27ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411012750.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-09-27
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

In the existing technology, the video needs to be cached by a DDR external storage unit after decoding, resulting in a large delay in video streaming operation, and it cannot support ultra-high and ultra-wide output resolutions and dynamic switching.

Method used

The video display resolution is determined through the front-end processing unit, the frame resolution and sampling duty cycle are determined based on the display resolution, and the video data is reorganized to avoid DDR caching processing in the back-end processing unit and directly process the video data in the front-end processing unit. Reorganization.

Benefits of technology

It saves the cost of memory unit components, simplifies circuit design, reduces output display delay, and supports dynamic switching and multiple output resolutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540432B
    Figure CN118540432B
Patent Text Reader

Abstract

The present application discloses a video data processing method and device. The video data processing method includes: a front-end processing unit determines the display resolution of the video; based on the display resolution, the frame resolution and the sampling duty cycle are determined, and the sampling duty cycle is calculated based on the frame resolution and the display resolution; based on the sampling duty cycle and the frame resolution, the source signal of the video is reorganized to obtain the front-end video data; the front-end video data, the display resolution and the sampling duty cycle are sent to the back-end processing unit, so that the back-end processing unit extracts the valid data in the front-end video data based on the sampling duty cycle to obtain the back-end video data of the display resolution. The present application can solve the problem that in the video data processing process, after the chip performs video decoding, the image processing can only be performed after being cached by an external storage unit such as DDR.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of video data processing, and in particular to a video data processing method and device. Background Art

[0002] Display screen systems usually need to process, store, and transmit captured images. Usually, in application scenarios, each channel of 4K resolution (or higher or lower resolution) HDMI (High Definition Multimedia Interface) signal or DP (DisplayPort) signal is decoded by the chip, and the video is written to storage units such as DDR. After data reorganization and other operations are performed on the video data through storage units such as DDR, the processed video data is sent to the FPGA for subsequent image processing. At the same time, the output resolution is controlled by clock reconfiguration, and the output is split according to the size of each output port. In this related technology, cache DDR resources are required to support image cache processing, and the cost requires additional expenditure; caching into DDR and reading from DDR requires a delay of at least 2 frames for video stream operations, and the delay loss is too large. Summary of the invention

[0003] The present application provides a video data processing method and device, which can solve the problem that in the video data processing process, after the chip performs video decoding, it needs to be cached in an external storage unit such as DDR before image processing can be performed.

[0004] To achieve the above object, the present application provides a video data processing method, the method comprising:

[0005] The front-end processing unit determines the display resolution of the video;

[0006] Determine the frame resolution and the sampling duty cycle based on the display resolution, the sampling duty cycle is calculated based on the frame resolution and the display resolution, the frame resolution is determined based on a preset output resolution supported by the backend processing unit, and the effective line length of the frame resolution is greater than or equal to the effective line length of the display resolution, and the effective field length of the frame resolution is greater than or equal to the effective field length of the display resolution;

[0007] Recombining video data of the source signal of the video based on the sampling duty cycle and the frame resolution to obtain front-end video data;

[0008] The front-end video data, display resolution and sampling duty cycle are sent to the back-end processing unit, so that the back-end processing unit extracts valid data from the front-end video data based on the sampling duty cycle to obtain the back-end video data of the display resolution.

[0009] In one embodiment, determining a frame resolution and a sampling duty cycle based on a display resolution includes:

[0010] Determining a frame resolution based on a plurality of preset output resolutions by display resolution;

[0011] The front-end video data, display resolution and sampling duty cycle are sent to the back-end processing unit, so that the back-end processing unit extracts valid data from the front-end video data based on the sampling duty cycle to obtain the back-end video data of the display resolution, including:

[0012] Sending the front-end video data, display resolution and sampling duty cycle to the back-end processing unit, so that the resolution reconstruction module of the back-end processing unit extracts valid data from the front-end video data based on the sampling duty cycle to obtain the back-end video data;

[0013] Among them, the product of the total line length and the total field length of each preset output resolution is equal to the product of the total line length and the total field length of the specified resolution; the product of the effective line length and the effective field length of each preset output resolution is less than or equal to the product of the effective line length and the effective field length of the specified resolution, and the specified resolution is the resolution of the input video of the resolution reconstruction module.

[0014] In one embodiment, the preset output resolution includes a basic output resolution and a fine-tuning output resolution, and the frame resolution and the sampling duty cycle are determined based on the display resolution, which includes:

[0015] Determine multiple basic output resolutions based on the specified resolution, the product of the effective line length and the effective field length of the basic preset output resolution is equal to the product of the effective line length and the effective field length of the specified resolution, and the product of the total line length and the effective field length of the basic output resolution is equal to the product of the total line length and the effective field length of the specified resolution;

[0016] Determine the frame resolution and sampling duty cycle based on the display resolution, including:

[0017] Determine the frame resolution based on the display resolution and a plurality of base output resolutions and / or fine-tuned output resolutions;

[0018] Among them, the fine-tuning output resolution is obtained by fine-tuning the basic output resolution based on the depth of the data buffer of the back-end processing unit, and the product of the absolute value of the difference between the effective line length of the fine-tuning output resolution and the basic output resolution before fine-tuning and the effective field length of the fine-tuning output resolution is less than the depth.

[0019] In one embodiment, the frame resolution is determined based on a plurality of basic output resolutions and / or fine-tuning output resolutions by displaying the resolution, including:

[0020] Confirm whether there is a preset output resolution that meets the preset requirement among the multiple preset output resolutions, where the preset requirement means that the effective line length of the preset output resolution is greater than or equal to the effective line length of the display resolution, and the effective field length of the preset output resolution is greater than or equal to the effective field length of the display resolution;

[0021] If it exists, the preset output resolution that meets the preset requirements will be used as the frame resolution.

[0022] In one embodiment, determining whether there is a preset output resolution that meets the preset requirement among a plurality of preset output resolutions comprises:

[0023] If it does not exist, select the basic output resolution closest to the display resolution from multiple basic output resolutions;

[0024] Determine whether the absolute value of the difference between the effective line length of the selected basic output resolution and the effective line length of the display resolution is less than or equal to the floating upper limit value of the effective line length of the selected basic output resolution;

[0025] If it is less than or equal to, and the product of the effective line length and the effective field length of the display resolution is less than or equal to the product of the effective line length and the effective field length of the specified resolution, the effective line length and the effective field length of the frame resolution are respectively set to the effective line length and the effective field length of the display resolution, or the effective line length of the frame resolution is set to the effective line length of the display resolution, and the effective field length of the frame resolution is set to the ratio of the product of the effective line length and the effective field length of the specified resolution to the effective line length of the display resolution, or the effective field length of the frame resolution is set to the effective field length of the display resolution, and the effective line length of the frame resolution is set to the ratio of the product of the effective line length and the effective field length of the specified resolution to the effective field length of the display resolution;

[0026] The floating upper limit of the effective line length of the basic output resolution is calculated based on the depth, the effective line length of the basic output resolution, and the effective field length of the basic output resolution.

[0027] In one embodiment, the sampling duty cycle is positively correlated with the effective line length of the frame resolution, and the sampling duty cycle is negatively correlated with the effective line length of the display resolution.

[0028] In one embodiment, video data of a source signal of a video is reorganized based on a sampling duty cycle and a frame resolution to obtain front-end video data, and the front-end video data, display resolution and sampling duty cycle are sent to a back-end processing unit so that the back-end processing unit extracts valid data from the front-end video data based on the sampling duty cycle to obtain back-end video data of display resolution, including:

[0029] Writing the sampling duty cycle and the display resolution into the register of the backend processing unit; preferably, the total line length and the total field length of the display resolution are respectively the total line length and the total field length of the frame resolution;

[0030] Recombining video data of the source signal of the video based on the sampling duty cycle and the frame resolution to obtain front-end video data;

[0031] The front-end video data is sent to the back-end processing unit so that the back-end processing unit decodes and rearranges the front-end video data to obtain video data of a specified resolution. The resolution reconstruction module of the back-end processing unit extracts and arranges the valid data in the video data of the specified resolution based on the sampling duty cycle to obtain the back-end video data.

[0032] To achieve the above object, the present application also provides a video data processing method, the method comprising:

[0033] The back-end processing unit obtains the sampling duty cycle, the display resolution and the front-end video data, where the front-end video data is obtained by the front-end processing unit reorganizing the video source signal based on the sampling duty cycle and the frame resolution;

[0034] Extracting effective data from the front-end video data based on the sampling duty cycle to obtain back-end video data of display resolution;

[0035] Among them, the sampling duty cycle is calculated based on the frame resolution and the display resolution, the frame resolution is determined based on the preset output resolution supported by the back-end processing unit, and the effective line length of the frame resolution is greater than or equal to the effective line length of the display resolution, and the effective field length of the frame resolution is greater than or equal to the effective field length of the display resolution.

[0036] In one embodiment, the front-end video data includes multiple channels of video data content.

[0037] The back-end processing unit obtains the sampling duty cycle and the front-end video data, including: the back-end processing unit obtains the sampling duty cycle and the display resolution of each channel of video data;

[0038] Extracting effective data from the front-end video data based on the sampling duty cycle to obtain back-end video data of display resolution, including: dividing each frame of the front-end video data according to the position of each of the multiple video data in the decoded video picture to obtain multiple video data of specified resolution;

[0039] Extracting effective data from the front-end video data based on the sampling duty cycle to obtain back-end video data of the display resolution includes: extracting effective data from each channel of video data of a specified resolution through a resolution reorganization module and arranging the data to obtain back-end video data of each channel of display resolution according to the display resolution and sampling duty cycle of each channel of video data;

[0040] Preferably, the clock frequencies of multiple channels of video data with specified resolutions are the same, and the clock frequency of each channel of video data with specified resolution is the same as the clock frequency of backend video data with display resolution.

[0041] To achieve the above objectives, the present application also provides an electronic device, which includes a processor; the processor is used to execute instructions to implement the above method.

[0042] To achieve the above objectives, the present application also provides a computer-readable storage medium, which is used to store instructions / program data, and the instructions / program data can be executed to implement the above method.

[0043] In the video data processing scheme of the present application, the front-end processing unit determines the display resolution of the video, determines the frame resolution and the sampling duty cycle based on the display resolution, and then reorganizes the video data of the source signal of the video based on the sampling duty cycle and the frame resolution to obtain the front-end video data; the front-end video data stream and the sampling duty cycle are sent to the back-end processing unit, so that the back-end processing unit extracts the valid data in the front-end video data into the frame of the display resolution based on the sampling duty cycle, and obtains the back-end video data for display. In the video data processing method, the front-end processing unit determines the frame resolution to be used based on the preset output resolution, and determines the sampling duty cycle based on the frame resolution and the display resolution. In this way, the front-end processing unit can reorganize the video data of the source signal of the video based on the confirmed frame resolution and the sampling duty cycle. Therefore, in this scheme, the video data reorganization and other processing performed in the DDR cache of the back-end processing unit are placed in the front-end processing unit, which makes full use of the processing resources of the front-end processing unit. In this way, there is no need to set up additional external storage resources such as DDR for the video data processing of the back-end processing unit, that is, there is no need to provide external storage resources for the back-end processing unit, which greatly saves the cost of storage unit components. At the same time, because the circuit design structure is simpler than the related technology, the cost of a large number of circuit boards is saved; and pipeline operation is realized, and there is no need to read and write video stream data from external storage resources such as DDR, which is conducive to reducing output display delay. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0045] Figure 1 It is a structural schematic diagram of an implementation scheme of the display screen system of the present application;

[0046] Figure 2 It is a flowchart of an implementation method of the video data processing method of the present application;

[0047] Figure 3 This is a schematic diagram of some preset output resolutions supported by the video data processing method of this application;

[0048] Figure 4 It is a schematic diagram of the video data split display in the video data processing method of the present application;

[0049] Figure 5 It is a schematic diagram of sampling point distribution when video data is displayed in a split channel in the video data processing method of the present application;

[0050] Figure 6 It is a schematic diagram of the processing flow of the back-end processing unit in the video data processing method of the present application;

[0051] Figure 7 It is a flowchart of an embodiment of a video data processing method of the present application;

[0052] Figure 8 It is a structural schematic diagram of an embodiment of the electronic device of the present application;

[0053] Fig. 9 It is a structural schematic diagram of an implementation method of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0054] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative work are within the scope of protection of the present application. In addition, unless otherwise specified (for example, "or in addition" or "or in an alternative"), the term "or" as used herein refers to a non-exclusive "or" (that is, "and / or"). Moreover, the various embodiments described herein are not necessarily mutually exclusive, because some embodiments can be combined with one or more other embodiments to form new embodiments.

[0055] Optionally, the solution of the present application may be applied to a display screen system.

[0056] like Figure 1As shown, the display system includes: front-end video stream acquisition part (HDMI direct acquisition source, network decoding signal), back-end video stream processing part (CPU processor, FPGA field programmable gate array), and video splicing screen display. The front-end video stream acquisition part includes two parts: direct acquisition of HDMI acquisition interface or network-side decoding signal. The direct acquisition source of HDMI acquisition interface can include video conferencing, personal computer, broadcast control host, etc., and the signal source of network-side decoding signal can include network camera / ball machine, network video recorder, portable electronic device, computer, etc. The back-end video stream processing part is mainly composed of CPU decoding and post-processing the video data stream collected by the front end, and outputting it to FPGA according to the video stream format required by the back-end. FPGA performs custom splitting and encoding of video data and outputs it to the receiving card according to the HDMI protocol; the receiving card lights up the splicing screen / LED (Light Emitting Diode) screen to splice and display the source image on the display end.

[0057] For ease of description, the CPU processor mentioned above may also be referred to as a front-end processing unit, and the FPGA may be referred to as a back-end processing unit.

[0058] In the related technology, the display screen system usually needs to process, store and transmit the captured images. Usually, in the application scenario, each channel of the captured 4K resolution (or higher or lower resolution) HDMI signal is decoded by the chip, and the video is written into the storage unit such as DDR. After the video data is reorganized by the storage unit such as DDR, the processed video data is sent to the FPGA for subsequent image processing. At the same time, the output resolution is controlled by clock reconfiguration, and the output is split according to the size of each output port. In this related technology, all output data ports can only output at the same resolution; there needs to be a cache DDR resource to support the cache processing of the image, and the cost requires additional expenditure; the video stream operation delay needs to start from 2 frames when caching in DDR and reading from DDR, and the delay loss is too large; it cannot support ultra-high and ultra-wide output resolution, or it cannot support dynamic switching; clock reconfiguration operation is required, and additional PLL or other clock resources are required for processing.

[0059] In order to solve the above-mentioned problem that after the chip performs video decoding, it needs to be cached in an external storage unit such as DDR before image processing can be performed, the present application proposes a video data processing method. In this video data processing scheme, the front-end processing unit determines the display resolution of the video, determines the frame resolution and sampling duty cycle based on the display resolution, and then reorganizes the video data of the source signal of the video based on the sampling duty cycle and the frame resolution to obtain the front-end video data; the front-end video data stream and the sampling duty cycle are sent to the back-end processing unit, so that the back-end processing unit extracts the valid data in the front-end video data into the frame of the display resolution based on the sampling duty cycle, and obtains the back-end video data for display. In the video data processing method, the front-end processing unit determines the frame resolution to be used based on the preset output resolution, and determines the sampling duty cycle based on the frame resolution and the display resolution. In this way, the front-end processing unit can reorganize the video data of the source signal of the video based on the confirmed frame resolution and the sampling duty cycle. Therefore, in this scheme, the video data reorganization and other processing performed in the DDR cache of the back-end processing unit are placed in the front-end processing unit, which makes full use of the processing resources of the front-end processing unit. In this way, there is no need to set up additional external storage resources such as DDR for the video data processing of the back-end processing unit, that is, there is no need to provide external storage resources for the back-end processing unit, which greatly saves the cost of storage unit components. At the same time, because the circuit design structure is simpler than the related technology, the cost of a large number of circuit boards is saved; and pipeline operation is realized, and there is no need to read and write video stream data from external storage resources such as DDR, which is conducive to reducing output display delay.

[0060] The present application provides a video data processing method, such as Figure 2 As shown, the video data processing method of this embodiment includes the following steps. It should be noted that the following step numbers are only used to simplify the description and are not intended to limit the execution order of the steps. The execution order of each step of this embodiment can be changed arbitrarily without violating the technical idea of ​​this application.

[0061] S101: The front-end processing unit determines the display resolution of the video.

[0062] The display resolution of the video can be confirmed first, so that the frame resolution and sampling duty cycle can be determined based on the display resolution, and then the source signal of the video can be reorganized based on the sampling duty cycle and frame resolution to obtain front-end video data.

[0063] It is understandable that the display resolution may be notified to the front-end processing unit by the client, or the display resolution may be obtained from the back-end processing unit, in which case the back-end processing unit confirms the display resolution from the client.

[0064] As described above, the display resolution of the video is confirmed on the client. When confirming on the client, the user can select the display resolution of the video from multiple pre-selected resolutions of the client, or the user can also customize the display resolution in the resolution input box in the client.

[0065] S102: Determine a frame resolution and a sampling duty cycle based on a display resolution.

[0066] After confirming the display resolution of the video, the frame resolution and sampling duty cycle can be determined based on the display resolution.

[0067] Optionally, multiple preset output resolutions supported by the back-end processing unit can be confirmed in advance, and then the display resolution and the multiple preset output resolutions can be compared to select a frame resolution from the multiple preset output resolutions, wherein the effective line length of the selected frame resolution is greater than or equal to the effective line length of the display resolution, and the effective field length of the frame resolution is greater than or equal to the effective field length of the display resolution.

[0068] More preferably, the clock frequency of each preset output resolution is the same as the clock frequency of the video data output by the back-end processing unit after decoding and rearrangement, wherein the video data output by the back-end processing unit after decoding and rearrangement will be reorganized through resolution to obtain back-end video data of the display resolution, and the total line length and total field length of the display resolution are related to the frame resolution, and the frame resolution is determined based on multiple preset output resolutions, so that the video data after resolution reorganization by the back-end processing unit can be consistent with the total clock frequency of the video data before resolution reorganization, so that the video data output by the back-end processing unit after decoding and rearrangement does not need to be cached, and can be directly processed by the resolution reorganization module to obtain the back-end video data through resolution reorganization, thereby realizing pipeline operation in the back-end processing unit, without the need to read and write video stream data from external storage resources such as DDR, which is beneficial to the output display delay effect.

[0069] In order to make the clock frequencies of multiple preset output resolutions the same as the clock frequency of the video data decoded and rearranged and output by the back-end processing unit, the parameters of the preset output resolutions satisfy formula (1), wherein the total line length and total field length of the preset output resolution are preferably integer values.

[0070] Formula (1)

[0071] in is the total length of the resolution lines, is the total field length of the resolution / pixels. The subscript "pre" refers to the preset output resolution, and the subscript "original" refers to the resolution of the video data output by the back-end processing unit after decoding and rearrangement. Assume that the resolution of the video data output by the back-end processing unit after decoding and rearrangement is 1080P, and the clock frequency of the 1080P video stream is 148.5M. The total line length and total field length of the 1080P video stream can be shown as formula (2) and formula (3) respectively; in this case, the product of the total line length and total field length of the preset output resolution should be equal to × .

[0072] Formula (2),

[0073] Formula (3).

[0074] To ensure that the total clock frequency of the video data after resolution reorganization by the back-end processing unit is consistent with that of the video data before resolution reorganization, the product of the total line length and the total field length of the display resolution should be equal to the product of the total line length and the total field length of the resolution of the video data output by the back-end processing unit after decoding and rearrangement.

[0075] In one implementation, when one of the plurality of preset output resolutions is selected as the frame resolution, the effective line length, field effective length, total line length and total field length of the frame resolution respectively use the parameter values ​​of the effective line length, field effective length, total line length and total field length of the selected preset output resolution, and the total line length and total field length of the display resolution also use the total line length and total field length of the frame resolution accordingly; when the frame resolution is obtained by dynamically fine-tuning one of the plurality of preset output resolutions, the total line length and total field length of the frame resolution can respectively use the total line length and total field length of the dynamically fine-tuned preset output resolution, and the total line length and total field length of the display resolution also use the total line length and total field length of the frame resolution accordingly. When the preset output resolution satisfies formula (1), the total clock frequency of the video data after the resolution reorganization of the back-end processing unit can be consistent with the total clock frequency of the video data before the resolution reorganization.

[0076] In another implementation, the back-end processing unit may determine the total line length and total field length of the display resolution based on the effective line length and field effective length of the display resolution, and the product of the total line length and total field length of the resolution of the video data decoded and rearranged and output by the back-end processing unit. In this implementation, the product of the total line length and total field length of the determined display resolution is equal to the product of the total line length and total field length of the resolution of the video data decoded and rearranged and output by the back-end processing unit, and the total line length of the display resolution is greater than the effective line length of the display resolution, and the total field length of the display resolution is greater than the effective field length of the display resolution. In implementation, the effective line length and the effective field length of the display resolution may be increased until the product of the two increased values ​​is equal to the product of the total line length and total field length of the resolution of the video data decoded and rearranged and output by the back-end processing unit, so that the two increased values ​​may be used as the total line length and total field length of the display resolution.

[0077] More preferably, the total amount of data for each preset output resolution is less than or equal to the total amount of data of one frame of video data decoded and rearranged and output by the back-end processing unit, thereby ensuring that there is enough valid output data and that the throughput rate of the valid data is consistent.

[0078] In order to make the total amount of data of each preset output resolution less than or equal to the total amount of data of one frame of the video data decoded and rearranged and output by the back-end processing unit, the parameters of the preset output resolution satisfy formula (4).

[0079] Formula (4)

[0080] in is the effective line length / pixels. In 1080P, .

[0081] More preferably, the clock rate of each valid line of the preset output resolution is the same as the line rate of the video data decoded and rearranged output by the back-end processing unit, that is, the time for writing the valid data of one frame of the video data decoded and rearranged output by the back-end processing unit into the data buffer (such as fifo) of the back-end processing unit plus the idle time of the blanking area (write data rate) can match the time for reading the valid data of the preset output resolution from the data buffer of the back-end processing unit plus the corresponding blanking area time (read data rate), thereby ensuring that the data reading and writing rates match, and further ensuring that the reading and writing of the video stream are not abnormally interrupted or discontinuous.

[0082] In order to make the clock rate of each valid line of the preset output resolution the same as the line rate of the video data decoded and rearranged and output by the backend processing unit, the parameters of the preset output resolution satisfy formula (5).

[0083] Formula (5)

[0084] in is the effective length of the field / lines. In 1080P, .

[0085] Formula (1), formula (4) and formula (5) can be used to screen out multiple preset output resolutions. In order to facilitate the confirmation of the frame resolution of the video, the screened multiple preset output resolutions can be stored in the form of a table, so that after the display resolution of the video is confirmed, the display resolution can be used to screen out a suitable frame resolution from the preset output resolution table, wherein the suitable frame resolution can refer to a preset output resolution whose effective line length is greater than or equal to the effective line length of the display resolution and whose effective field length is greater than or equal to the effective field length of the display resolution.

[0086] For example, assuming that the resolution of the video data output by the back-end processing unit after decoding and rearrangement is 1080P, Table 1 shows some preset output resolutions of ultra-high or ultra-wide not exceeding 8640, and some of its effective ranges can be as follows: Figure 3 As shown, Figure 3 The empty part (i.e., the unfilled area) in is the range area that the backend processing unit cannot support, where: Figure 3 Just as an example.

[0087] Table 1 Schematic diagram of preset output resolution parameters

[0088]

[0089] Table 1

[0090]

[0091] In addition, since a data buffer is provided inside the back-end processing unit, the depth of the data buffer inside the back-end processing unit can be used to dynamically fine-tune the preset output resolution calculated using formula (1), formula (4) and formula (5).

[0092] Optionally, the fine-tuning process can be: using the depth of the data buffer to calculate the floating upper limit value of the effective length of the line of the preset output resolution, for example, the floating upper limit value of the effective length of the line of the preset output resolution can be calculated using the depth of the data buffer, the effective length of the line of the preset output resolution, and the effective length of the field of the preset output resolution, wherein the depth of the data buffer is positively correlated to the floating upper limit value of the effective length of the line of the preset output resolution, and the effective length of the field of the preset output resolution is negatively correlated to the floating upper limit value of the effective length of the line of the preset output resolution; then based on the floating upper limit value of the effective length of the line, determine the fine-tuned preset output resolution, for example, select a positive number from a range less than or equal to the floating upper limit value as the adjustment value, add the effective length of the line of the preset output resolution and the adjustment value to obtain the fine-tuned effective length of the line, and then calculate The effective length of the field after fine-tuning can be obtained by dividing the effective length of the line of the preset output resolution by the adjustment value, and then calculating The ratio of the effective length of the line after fine-tuning is the effective length of the field after fine-tuning. In one embodiment, the floating upper limit of the effective length of the line of the preset output resolution can be calculated using formula (6).

[0093] Formula (6);

[0094] Among them, a is the floating upper limit value of the effective length of the row, It may be determined by the depth of the data buffer, for example, X may be equal to the depth of the data buffer, or X may be equal to the difference between the depth of the data buffer and the effective length of a line of a preset output resolution.

[0095] In another implementation, dynamic fine-tuning may be performed by rounding up or down the effective length of the row.

[0096] The valid data starting point of the video stream frame generated by the reconstructed parameters is located after the valid data starting point of the input video stream frame is delayed by a configurable time length T, so the data buffer (such as fifo) will be written within T time. The initial margin of each channel's fifo is ; Initial fifo inventory of each channel .

[0097] For example, in Table 2, the description of selecting a framework (i.e., preset output resolution) for dynamic fine-tuning is as follows:

[0098] Table 2 Schematic diagram of an embodiment of preset output resolution

[0099]

[0100] The above-mentioned preset output resolution boundary value is derived by formula (1), formula (4) and formula (5). and Dynamic fine-tuning under the condition of rate matching can be performed to adjust the preset output resolution.

[0101] Example 1:

[0102] when Select under Frame When , that is, when the pixels are aligned and rounded downward by 2, the formula (4) can be used to calculate ,therefore The maximum value is 3005.

[0103] At the same time, the value of 691.2-690=1.2 is rounded down, which means that the data output of each row will be 1.2 less than the output data under the preset output resolution. Reading from the fifo means that the write rate is 1.2 pixels faster than the read rate in each cycle. Therefore, it is necessary to ensure that the reservoir fifo That is, the reservoir fifo needs to ensure that each frame has a space greater than 3606 deep to cache the data that cannot be output in time for each line.

[0104] Then the fifo resources meet Under the condition of, for example, the preset output resolution can be dynamically adjusted once the value is as follows:

[0105]

[0106] Example 2:

[0107] when Select under Frame When , that is, when 2 pixels are aligned upward and rounded, the formula (4) can be used to calculate ,therefore The maximum value is 2996.

[0108] At the same time, the value of 692-691.2=0.8 is rounded up, which means that the data output of each row will have 0.8 more data written from the fifo than the output data under the preset output resolution. That is, the reading rate is 0.8 pixels faster than the writing rate in each reading cycle. Therefore, it is necessary to ensure that the reservoir fifo That is, the reservoir fifo needs to ensure that each frame can cache more than 2397 depths of valid data in advance to meet the condition that the subsequent reading rate is too fast and there is no valid data to read.

[0109] Then the fifo resources meet Under the condition of, for example, the preset output resolution can be dynamically adjusted once the value is as follows:

[0110]

[0111] From the above examples 1 and 2, it can be concluded that when The greater the difference between the downward and upward values, The more optional values ​​there are, the more you need and In summary, when the data buffer fifo resources of the back-end processing unit are opened larger, the dynamic parameter adjustment range of the actual effective output line field length corresponding to each preset output resolution derived from formula (1), formula (4) and formula (5) will be larger. and The value of can support dynamic fine-tuning, and its adjustable range depends on only two conditions: 1. The depth of the data buffer fifo and the initial and 2. Formula (4) must be satisfied: .

[0112] when and When the value of is infinite, and One end can be infinitely large and the other end can be infinitely small, until and Therefore, when the fifo resource is infinite, the theoretical support output pixel resolution is infinitely close to the resolution of the effective pixels of the input image, that is, Figure 3 The unsupported areas can be filled. Resources can be allocated according to actual conditions. It is not recommended to waste too many resources to expand special frameworks (i.e. expand more resolutions).

[0113] In one embodiment, the resolution parameters after fine-tuning the preset output resolution can be determined by the above-mentioned dynamic fine-tuning method, and the fine-tuned resolution parameters can be added to the preset output resolution table, so that the frame resolution of the video can be selected from multiple preset output resolutions (including the fine-tuned preset output resolution) based on the display resolution.

[0114] In another embodiment, a preset output resolution that is closest to the display resolution can be selected from the preset output resolutions that have not been fine-tuned, for example, a preset output resolution with the smallest difference between the effective line length and the effective line length of the display resolution, or a preset output resolution with the smallest difference between the effective field length and the effective field length of the display resolution; determine whether the absolute value of the difference between the effective line length of the selected preset output resolution and the effective line length of the display resolution is less than or equal to the floating upper limit value of the effective line length of the selected preset output resolution; if it is less than or equal, and the product of the effective line length and the effective field length of the display resolution is less than or equal to In this case, the display resolution can be used as the frame resolution of the video, or the effective line length of the frame resolution of the video can be set to the effective line length of the display resolution, and the effective field length of the frame resolution of the video can be equal to , or set the effective field length of the video frame resolution to the effective field length of the display resolution, and the effective line length equal to If it is greater than, select the preset output resolution closest to the display resolution from the remaining preset output resolutions, and then perform the above-mentioned operations of comparing with the floating upper limit value and confirming the frame resolution. It can be understood that the preset output resolution without fine-tuning in this application can also be called the basic output resolution, and the preset output resolution after fine-tuning can also be called the fine-tuned output resolution.

[0115] To facilitate the above-mentioned operation of comparing with the floating upper limit value, the floating upper limit value of each set of preset output resolutions may be filled in the preset output resolution table.

[0116] In another embodiment, the display resolution and multiple preset output resolutions (which may or may not include the fine-tuned preset output resolution) may be compared to determine whether there is a preset output resolution among the multiple preset output resolutions whose line effective length is greater than or equal to the line effective length of the display resolution and whose field effective length is greater than or equal to the field effective length of the display resolution; if so, the preset output resolution that meets the conditions is used as the frame resolution of the video; if not, the preset output resolution that is closest to the display resolution is selected from the unfine-tuned preset output resolutions to determine whether the absolute value of the difference between the line effective length of the selected preset output resolution and the line effective length of the display resolution is less than or equal to the floating upper limit value of the line effective length of the selected preset output resolution; if so, and the product of the line effective length and the field effective length of the display resolution is less than or equal to the floating upper limit value of the line effective length of the selected preset output resolution, In the case of , the display resolution can be used as the frame resolution of the video, or the effective line length of the frame resolution of the video can be set to the effective line length of the display resolution, and the effective field length is equal to , or set the effective field length of the video frame resolution to the effective field length of the display resolution, and the effective line length equal to ; If it is greater, select the preset output resolution that is closest to the display resolution from the remaining preset output resolutions, and then perform the above-mentioned operations of comparing with the floating upper limit value and confirming the frame resolution.

[0117] To facilitate determining the preset output resolution, the resolution of the video data decoded and rearranged and output by the back-end processing unit can be preset, for example, the resolution of the video data decoded and rearranged and output by the back-end processing unit can be set to a specified resolution. The resolution of the video data decoded and rearranged and output by the back-end processing unit can be the same as the resolution of the front-end video data, or it can be different from the resolution of the front-end video data.

[0118] In one embodiment, when the back-end processing unit has only one output, the resolution of the video data output by the back-end processing unit after decoding and rearrangement may be the same as the resolution of the front-end video data, for example, both are 4K or 1080P. In other embodiments, when the back-end processing unit has only one output, the resolution of the video data output by the back-end processing unit after decoding and rearrangement may be different from the resolution of the front-end video data, for example, the resolution of the front-end video data is 4K, and the resolution of the video data output by the back-end processing unit after decoding and rearrangement is 1080P.

[0119] In another embodiment, when the back-end processing unit has N outputs, the resolution of the video data output by the back-end processing unit after decoding and rearrangement is different from the resolution of the front-end video data. For example, the resolution of the video data output by the back-end processing unit after decoding and rearrangement may be 1 / N of the resolution of the front-end video data, that is, each channel of video data output by the back-end processing unit after decoding and rearrangement may correspond to 1 / N part of the actual data of the front-end video data.

[0120] In a specific example, Figure 4 and Figure 5 As shown, the front-end video data is 4K, and the back-end processing unit decodes the front-end video data stream and outputs video data of 4K. The back-end processing unit rearranges the video data and outputs 4 channels of video content, wherein the resolution of each channel of video content rearranged and output by the back-end processing unit is 1080P. In this way, the back-end processing unit can reorganize the resolution of each channel of 1080P video content through a resolution reorganization module to obtain back-end video data of each display resolution.

[0121] Optionally, the calculation of the preset output resolution and / or the dynamic fine-tuning of the preset output resolution by formulas (1), (4) and (5) can be performed by the front-end processing unit or the back-end processing unit, and no limitation is made here. Regardless of whether it is performed by the front-end processing unit or the back-end processing unit, the front-end processing unit needs to obtain the preset output resolution and / or dynamic fine-tuning data (such as the preset output resolution after fine-tuning or the floating upper limit value) and save it.

[0122] After the frame resolution of the video is determined through the above solution, the sampling duty cycle can be calculated based on the frame resolution and the display resolution.

[0123] Optionally, the sampling duty cycle is calculated based on the effective line length of the frame resolution and the effective line length of the display resolution, the effective line length of the frame resolution is positively correlated with the sampling duty cycle, and the effective line length of the display resolution is negatively correlated with the sampling duty cycle. In one example, as shown in formula (7), the sampling duty cycle can be equal to the ratio of the effective line length of the frame resolution to the effective line length of the display resolution.

[0124] Formula (7)

[0125] The subscript "display" refers to the parameter value of the actual video stream output, that is, the display resolution. and Can support any less than or equal to and , that is, the output resolution is backward compatible under the framework, and only invalid data needs to be processed in the back-end processing unit. The front-end processing unit (such as the front-end CPU) arranges the valid data according to the duty cycle, and the back-end processing unit (the back-end coprocessor FPGA) extracts the valid data according to the duty cycle, which not only reduces the workload of the central processor but also reduces the instantaneous bandwidth of reading and writing.

[0126] Since the duty cycle and the effective length under the frame support decimal parameters, increasing the precision range while ensuring the read and write rate matching can further increase the effective frame range. The sampling duty cycle can be calculated with decimal precision. For example, taking the decimal 16-bit precision as an example, the duty cycle parameter value sent to the FPGA can be calculated by formula (8): :

[0127] Formula (8).

[0128] Through the specific determination scheme of step S102, the rate matching of the input and output video streams can be guaranteed. Therefore, compared with the technology of mounting an additional storage unit to reconfigure the clock and reconstruct a new resolution architecture output from the cache, the huge video data stream can be dynamically reconstructed in the form of a pipeline to output the resolution, that is, the video can be processed and output normally in the form of a pipeline in the back-end processing unit. In this way, there is no need to set up an external cache unit for the back-end processing unit, saving the high cost of DDR storage units, etc., and it can ensure support for dynamic configuration of parameters. And through the above scheme, it can support the display resolution width or height exceeding 8K, and support the resolution display less than 2K, which can meet the different resolution display ranges of the output.

[0129] S103: reorganizing the video data of the source signal of the video based on the sampling duty cycle and the frame resolution to obtain the front-end video data.

[0130] After the sampling duty cycle and the frame resolution are determined through the above steps, the video data of the source signal of the video can be reorganized based on the sampling duty cycle and the frame resolution to obtain the front-end video data.

[0131] Optionally, valid data in the source signal of the video may be arranged to valid positions according to the sampling points and sampling duty cycle outputted by the frame resolution, and invalid positions may be filled with invalid data to obtain front-end video data.

[0132] Furthermore, the source signal of the video can be re-encoded and reorganized according to a specific format (such as a post-stage image video format) through a front-end processing unit (such as a CPU or a front-end encoding chip), and then the valid data can be arranged to corresponding positions according to the sampling points output by the frame resolution and the sampling points output by the sampling duty cycle, and invalid positions can be filled with invalid data to obtain front-end video data.

[0133] In addition, after arranging the sampling points according to the sampling points and sampling duty cycle output by the frame resolution, the video can also be pre-scaled according to the back-end configuration (such as the input video data requirements of the back-end processing unit) to obtain the desired video arrangement format, that is, to obtain the front-end video data.

[0134] S104: Send the front-end video data and the sampling duty cycle to the back-end processing unit, so that the back-end processing unit extracts valid data in the front-end video data into a frame of display resolution based on the sampling duty cycle to obtain the back-end video data.

[0135] After obtaining the front-end video data, the front-end video data and the sampling duty cycle can be sent to the back-end processing unit, so that the back-end processing unit can extract the valid data in the front-end video data into the framework of the display resolution based on the sampling duty cycle to obtain the back-end video data.

[0136] Optionally, the video data processing of the back-end processing unit (eg, coprocessor) may include operations such as decoding of the video stream, processing of the clock domain, rearrangement of the video data, and resolution reorganization.

[0137] like Figure 6 As shown, the back-end processing unit first decodes the front-end video data stream signal input by the front-end processing unit, and rearranges it according to the agreed data format. The video stream rearranged by the reorganization module is output to the resolution reconstruction module at a specified resolution; the resolution reconstruction module extracts the valid data in the front-end video data into the display resolution framework according to the sampling duty cycle and display resolution, and obtains the back-end video data. In this way, the back-end processing unit processes and outputs the video data in the form of a pipeline, so that the back-end processing part only uses the internal chip resources in the back-end processing unit, and does not require external storage resources. The storage resources inside the system front-end central processor and the chip resources inside the coprocessor can be reasonably used, which greatly saves the cost of storage unit components. At the same time, due to the relatively simple circuit design structure, the cost of large quantities of circuit boards is also saved.

[0138] During this process, the resolution reconstruction module will reconstruct the back-end video data with ultra-high or ultra-wide or resolution lower than 1080P in the form of a pipeline in accordance with the internal protocol and calculation formula, within the clock framework of the specified resolution, without the need for clock reconfiguration (switching to the clock frequency of the corresponding resolution) and without the need for external storage resources such as DDR.

[0139] In a specific example, the coprocessor (FPGA or processing module such as ASIC chip) performs secondary processing on the front-end video data stream. First, the decoding module implements the encoding and decoding of the video data, the generation of different clock domains, and the clock domain synchronization of the video data / flag signal to obtain the video data of the specified resolution. The data under the specified resolution framework is reorganized into a video stream according to the configurable output resolution. At the same time, the front-end video data stream is cached by the data buffer of the back-end processing unit, and then the sampling points are taken according to the duty cycle according to the image format agreed with the front-end processing unit, and the display resolution framework is still output according to the clock frequency of the specified resolution framework.

[0140] Among them, the above-mentioned clock domain processing, clock domain generation, etc. can refer to that when the front-end video data stream signal input by the front-end processing unit is decoded and processed, the video clock T1 can be parsed, and then the PLL frequency division and multiplication can be used to produce clocks T2 and T3 with a difference of 2 times from the same source clock, wherein the clock frequency of the video data before the video data is rearranged can be clock T2, and the clock frequency of the video data after the video data is rearranged can be clock T3.

[0141] In order to ensure that the back-end processing unit can output the display resolution frame according to the clock frequency of the specified resolution frame, thereby ensuring that no clock reconfiguration is required when the resolution is reconstructed, the back-end processing unit can determine the total line length and the total field length of the display resolution before the resolution is reorganized, wherein the product of the total line length and the total field length of the display resolution is the same as the product of the total line length and the total field length of the specified resolution.

[0142] In one example, the total line length and total field length of the display resolution may be determined by the back-end processing unit itself, or the total line length and total field length of the display resolution may be the total line length and total field length of the frame resolution, respectively. In the case where the total line length and total field length of the display resolution are the total line length and total field length of the frame resolution, respectively, in order to facilitate the video data processing of the back-end processing unit, the front-end processing unit may inform the back-end processing unit of the total line length and total field length of the frame resolution. If the frame resolution is the preset output resolution after dynamic fine-tuning, the total line length of the frame resolution may be the total line length of the preset output resolution before dynamic fine-tuning, and the total field length of the frame resolution may be the total field length of the preset output resolution before dynamic fine-tuning.

[0143] As shown in the related art, the solution of the present application can also be applied to multi-channel video data output scenarios.

[0144] In the multi-channel video data output scenario, the back-end processing unit can reorganize the decoded video according to the respective positions of the multi-channel video data, that is, according to the respective positions of the multi-channel video data in the decoded video screen, each frame of the video is segmented to obtain multiple channels of video data with specified resolutions, ensuring that the content output by each window is the video data content of the corresponding channel; then, according to the display resolution of each channel of video data, each group of video data with specified resolutions is converted into video data with display resolutions through the resolution reorganization module, that is, each channel of back-end video data is obtained. It can be understood that the clock frequency of each channel of video data output at the display resolution can be the same as the clock frequency of the video data before the resolution reorganization of the channel through the above-mentioned video data processing method, and in the multi-channel video data output scenario, according to the respective positions of the multi-channel video data in the decoded video screen, the clock frequencies of the multi-channel video data with specified resolutions obtained by segmenting each frame of the video can also be the same, so that the clock frequencies of the multi-channel video data output at their respective display resolutions are the same, that is, the multi-channel video data are output synchronously, which solves the problem of the output of the multi-channel video in the related art being out of sync when the sources are different.

[0145] The specified resolutions of video data from different channels may be the same or different, and there is no limitation here.

[0146] The display resolutions of video data from different channels can be the same or different, and there is no limitation here. In this way, multiple channels of video data can be output at different display resolutions. When the display resolutions of video data from different channels are the same, combined with the synchronous output of multiple channels of video data, the synchronously output multiple channels of video data can be output one by one to multiple areas of the splicing screen / fused screen, so that the multiple channels of video data can be fused and synchronously displayed through the splicing screen / fused screen. In this way, when multiple channels of video are output at the same resolution, the multiple channels of video can be combined into a larger resolution display.

[0147] In a specific example, Figure 4 As shown, taking 4K video stream as an example, the 4K video stream can be evenly split into 4 data frames of 1080P size; the processed video streams can all be in the clock domain of 148.5M and 1080P resolution; the data in each 1080P frame is reorganized according to the respective display resolutions, and after the previous stage video data stream is cached, sampling is performed according to the duty cycle in the image format agreed with the front-end processing unit, and the back-end video data of the display resolution is still output according to the clock domain frame of 148.5M.

[0148] In this example, if Figure 5 and Figure 6 As shown, the above four 1080P size data frames can support four different display resolutions in the output diagram: ①3840x524@60 frames, ②524x3840@60 frames, ③1920x1080@60 frames, ④1280x720@60 frames. In this example, Figure 5 The data at the position of "√" in the table is valid data. Figure 5 The data at the position of “×” in the table indicates invalid data.

[0149] In the actual application process of the video data processing method of the present application, the specific steps can be as follows: Figure 7 shown.

[0150] The upper layer configures the display resolution parameters step by step on the client side. The front-end processing unit determines the frame resolution based on the preset output resolution calculated according to the formula, and dynamically calculates the actual output video stream parameter value, duty cycle and other parameters based on the frame resolution and the actual resource situation, and fills the actual display resolution and sampling duty cycle of each output port into the register of each channel of the back-end processing unit respectively. The back-end processing unit decodes the video stream, reconstructs the frame, and rearranges the data point sampling according to the register parameters and sampling points sent down, and outputs the back-end video data of the integrated display resolution. The client can support different resolution output options. When the client switches the display resolution, the front-end processing unit and the back-end processing unit can dynamically switch the resolution according to the client's instructions after the current complete frame is output. In this way, when the client switches the display resolution, the back-end processing unit can dynamically switch to output a new resolution according to the new parameters after processing the current resolution frame output.

[0151] See also Figure 8 , Figure 8 The electronic device 20 of the present application includes a processor 22, which is used to execute instructions to implement the method of any of the above embodiments of the present application and any non-conflicting combination thereof.

[0152] The processor 22 may also be referred to as a CPU (Central Processing Unit). The processor 22 may be an integrated circuit chip having signal processing capabilities. The processor 22 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor, or the processor 22 may also be any conventional processor, etc.

[0153] The electronic device 20 may further include a memory 21 for storing instructions and data required for the processor 22 to run.

[0154] See also Fig. 9 , Fig. 9It is a schematic diagram of the structure of the computer-readable storage medium in the implementation mode of the present application. The computer-readable storage medium 30 of the embodiment of the present application stores instructions / program data 31, and when the instructions / program data 31 are executed, the method provided by any embodiment of the above-mentioned method of the present application and any non-conflicting combination is implemented. Among them, the instructions / program data 31 can form a program file and be stored in the above-mentioned storage medium 30 in the form of a software product, so that a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) executes all or part of the steps of the various implementation methods of the present application. The aforementioned storage medium 30 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, or a computer, a server, a mobile phone, a tablet and other devices.

[0155] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0156] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0157] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0158] The above are only implementation methods of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A video data processing method, characterized in that: The method comprises: The front-end processing unit determines the display resolution of the video; Determining a frame resolution and a sampling duty cycle based on the display resolution, the sampling duty cycle being calculated based on the frame resolution and the display resolution, the frame resolution being determined based on a preset output resolution supported by a backend processing unit, and a line effective length of the frame resolution being greater than or equal to a line effective length of the display resolution, and a field effective length of the frame resolution being greater than or equal to a field effective length of the display resolution; Recombining video data of the source signal of the video based on the sampling duty cycle and the frame resolution to obtain front-end video data; The front-end video data, the display resolution and the sampling duty cycle are sent to a back-end processing unit, so that the back-end processing unit extracts valid data from the front-end video data based on the sampling duty cycle to obtain back-end video data of the display resolution.

2. The video data processing method according to claim 1, characterized in that: The determining of the frame resolution and the sampling duty cycle based on the display resolution comprises: Determining the frame resolution by the display resolution and based on a plurality of the preset output resolutions; The sending of the front-end video data, the display resolution and the sampling duty cycle to a back-end processing unit so that the back-end processing unit extracts valid data from the front-end video data based on the sampling duty cycle to obtain back-end video data of the display resolution includes: Sending the front-end video data, the display resolution and the sampling duty cycle to a back-end processing unit, so that a resolution reconstruction module of the back-end processing unit extracts valid data from the front-end video data based on the sampling duty cycle to obtain back-end video data; Among them, the product of the total line length and the total field length of each of the preset output resolutions is equal to the product of the total line length and the total field length of the specified resolution; the product of the effective line length and the effective field length of each of the preset output resolutions is less than or equal to the product of the effective line length and the effective field length of the specified resolution, and the specified resolution is the resolution of the input video of the resolution reconstruction module.

3. The video data processing method according to claim 2, characterized in that: The preset output resolution includes a basic output resolution and a fine-tuning output resolution, and the frame resolution and the sampling duty cycle are determined based on the display resolution, which includes: Determine a plurality of basic output resolutions based on the specified resolution, wherein the product of the effective line length and the effective field length of the basic output resolution is equal to the product of the effective line length and the effective field length of the specified resolution, and the product of the total line length and the effective field length of the basic output resolution is equal to the product of the total line length and the effective field length of the specified resolution; The determining of the frame resolution and the sampling duty cycle based on the display resolution comprises: Determine the frame resolution based on the display resolution and a plurality of basic output resolutions and / or fine-tuning output resolutions; Among them, the fine-tuning output resolution is obtained by fine-tuning the basic output resolution based on the depth of the data buffer of the back-end processing unit, and the product of the absolute value of the difference between the effective line length of the fine-tuning output resolution and the basic output resolution before fine-tuning and the effective field length of the fine-tuning output resolution is less than the depth.

4. The video data processing method according to claim 3, characterized in that: The determining the frame resolution based on the display resolution and a plurality of basic output resolutions and / or fine-tuning output resolutions includes: Confirm whether there is a preset output resolution that meets the preset requirement among the multiple preset output resolutions, wherein the preset requirement is that the effective length of a line of the preset output resolution is greater than or equal to the effective length of a line of the display resolution, and the effective length of a field of the preset output resolution is greater than or equal to the effective length of a field of the display resolution; If it exists, the preset output resolution that meets the preset requirements is used as the framework resolution.

5. The video data processing method according to claim 4, characterized in that: The step of confirming whether there is a preset output resolution that meets the preset requirement among the plurality of preset output resolutions comprises: If not, selecting a basic output resolution closest to the display resolution from the multiple basic output resolutions; Determine whether the absolute value of the difference between the effective line length of the selected basic output resolution and the effective line length of the display resolution is less than or equal to the floating upper limit value of the effective line length of the selected basic output resolution; If it is less than or equal to, and the product of the effective line length and the effective field length of the display resolution is less than or equal to the product of the effective line length and the effective field length of the specified resolution, the effective line length and the effective field length of the frame resolution are respectively set to the effective line length and the effective field length of the display resolution, or the effective line length of the frame resolution is set to the effective line length of the display resolution, and the effective field length of the frame resolution is set to the ratio of the product of the effective line length and the effective field length of the specified resolution to the effective line length of the display resolution, or the effective field length of the frame resolution is set to the effective field length of the display resolution, and the effective line length of the frame resolution is set to the ratio of the product of the effective line length and the effective field length of the specified resolution to the effective field length of the display resolution; The floating upper limit value of the effective line length of the basic output resolution is calculated based on the depth, the effective line length of the basic output resolution, and the effective field length of the basic output resolution.

6. The video data processing method according to claim 1, characterized in that: The sampling duty cycle is positively correlated with the effective line length of the frame resolution, and the sampling duty cycle is negatively correlated with the effective line length of the display resolution.

7. The video data processing method according to claim 1, characterized in that: The step of reorganizing the source signal of the video based on the sampling duty cycle and the frame resolution to obtain front-end video data, and sending the front-end video data, the display resolution and the sampling duty cycle to a back-end processing unit so that the back-end processing unit extracts valid data from the front-end video data based on the sampling duty cycle to obtain back-end video data of the display resolution, comprises: The sampling duty cycle and the display resolution are written into the register of the backend processing unit; the total line length and the total field length of the display resolution are respectively the total line length and the total field length of the frame resolution; Recombining video data of the source signal of the video based on the sampling duty cycle and the frame resolution to obtain front-end video data; The front-end video data is sent to the back-end processing unit so that the back-end processing unit decodes and rearranges the front-end video data to obtain video data of a specified resolution. The resolution reconstruction module of the back-end processing unit extracts and arranges valid data from the video data of the specified resolution based on the sampling duty cycle to obtain the back-end video data.

8. A video data processing method, characterized in that: The method comprises: The back-end processing unit acquires a sampling duty cycle, a display resolution, and front-end video data, wherein the front-end video data is obtained by the front-end processing unit reorganizing the source signal of the video based on the sampling duty cycle and the frame resolution; Extracting valid data from the front-end video data based on the sampling duty cycle to obtain back-end video data of the display resolution; Wherein, the sampling duty cycle is calculated based on the frame resolution and the display resolution, the frame resolution is determined based on a preset output resolution supported by a back-end processing unit, and the effective line length of the frame resolution is greater than or equal to the effective line length of the display resolution, and the effective field length of the frame resolution is greater than or equal to the effective field length of the display resolution.

9. The video data processing method according to claim 8, characterized in that: The front-end video data includes multiple channels of video data content. The back-end processing unit acquires the sampling duty cycle and the front-end video data, including: the back-end processing unit acquires the sampling duty cycle and the display resolution of each channel of video data; The extracting of valid data from the front-end video data based on the sampling duty cycle to obtain the back-end video data of the display resolution comprises: dividing each frame of the front-end video data according to the position of each of the multiple video data in the decoded video picture to obtain multiple video data of the specified resolution; The extracting effective data from the front-end video data based on the sampling duty cycle to obtain the back-end video data of the display resolution comprises: extracting effective data from each channel of video data of a specified resolution through a resolution reorganization module and arranging the data to obtain the back-end video data of each channel of display resolution according to the display resolution and sampling duty cycle of each channel of video data; The clock frequencies of the multiple channels of video data with the specified resolution are the same, and the clock frequency of each channel of video data with the specified resolution is the same as the clock frequency of the back-end video data with the display resolution.

10. An electronic device, characterized in that: The electronic device comprises a processor, and the processor is used to execute instructions to implement the method according to any one of claims 1-9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions / program data, and the instructions / program data are used to be executed to implement the method of any one of claims 1-9.