Low-complexity video data compression method and device

Through the compression mode of grouping and difference calculation or reordering high-definition video data, the problem of low bandwidth utilization in high-definition video transmission is solved, and efficient video data transmission is achieved.

CN120455701APending Publication Date: 2025-08-08SHENZHEN LIDING PHOTOELECTRIC TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510500412.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-21
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

The prior art fails to effectively optimize the correlation between pixels in high-definition video transmission, resulting in redundant data occupies additional bandwidth, and lossless extended encoding increases encoding complexity, which is not conducive to real-time transmission.

Method used

The video data in YcbCr or YCoCg-R format is grouped and compressed using the Delta compression mode or the self-sorting 422 mode, and compressed by segmenting the video data into a data group and calculating the difference value or reordering it using the reference pixels.

Benefits of technology

While maintaining video quality, the transmission bandwidth requirement is significantly reduced, providing an efficient solution for high-resolution video transmission in 10G~12G links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120455701A_ABST
    Figure CN120455701A_ABST
Patent Text Reader

Abstract

The invention relates to a low-complexity video data compression method and device, and the method comprises the steps: determining to-be-transmitted video data in a YcbCr format or a YCoCg-R format, or converting to-be-transmitted video data in an RGB format into the YcbCr format or the YCoCg-R format; each row of pixels of the to-be-transmitted video data are segmented into a plurality of data sets, each data set comprises N pixels, and each data set is composed of head coded data with a preset data length and pixel coded data comprising N pixels; and carrying out compression processing on the pixel coding data in the data group through a Delta compression mode or a self-sorting 422 mode to obtain compressed video data so as to transmit the high-resolution compressed video data under a limited bandwidth. On the premise that the video quality is maintained, the transmission bandwidth requirement is remarkably reduced, and an efficient solution is provided for high-resolution video transmission in a 10G-12G link.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission and processing, and in particular to a low-complexity video data compression method and device. Background Art

[0002] In the field of high-definition video transmission, an uncompressed 8-bit video signal (such as the 422 format) requires approximately 9.6G bandwidth, while a 10-bit video signal requires a whopping 11G bandwidth. Adding 2 bits per pixel increases the bandwidth by approximately 1.06G, significantly straining the transmission link. Existing technologies use extended encoding of 18 bits per pixel (which can be expanded to 20 bits for near-lossless performance), while 10-bit video uses 22 bits per pixel (which may introduce slight loss). However, these schemes still have room for improvement in bandwidth utilization. Traditional encoding methods do not optimize for inter-pixel correlation, resulting in redundant data occupying additional bandwidth. While data formats other than YCbCr 4:4:4 (such as 422 or 420) can be transmitted directly, the lack of a unified compression strategy limits flexibility. Lossless extended encoding (such as 20 bits per pixel) increases encoding complexity, hindering real-time transmission.

[0003] Therefore, people in this field are in urgent need of finding a new technical solution to solve the above problems. Summary of the Invention

[0004] In order to overcome the problems existing in the related art, the present invention discloses a low-complexity video data compression method and device.

[0005] According to a first aspect of the disclosed embodiments of the present invention, a low-complexity video data compression method is provided, the method comprising:

[0006] Determine the video data to be transmitted in the YCbCr format or the YCoCg-R format, or convert the video data to be transmitted in the RGB format into the YCbCr format or the YCoCg-R format;

[0007] Dividing each row of pixels of the video data to be transmitted into a plurality of data groups, each of the data groups containing N pixels, and the data groups consisting of header encoding data of a preset data length and pixel encoding data containing N pixels;

[0008] The pixel encoding data in the data group is compressed using a Delta compression mode or a self-sorting 422 mode to obtain compressed video data, so as to transmit the high-resolution compressed video data under a limited bandwidth.

[0009] Optionally, the method further includes:

[0010] If the video data to be transmitted is in YCbCr format but not 4:4:4, the video data to be transmitted is directly transmitted.

[0011] Optionally, dividing each row of pixels of the video data to be transmitted into a plurality of data groups includes:

[0012] If the video data to be transmitted is 8-bit video data, each row of pixels of the 8-bit video data is divided into several data groups, the data length of the header encoding data of the data group is 8 bits, 12 bits or 16 bits, and the data length of the pixel encoding data of the data group is N*16 bits;

[0013] If the video data to be transmitted is 10-bit video data, each row of pixels of the 10-bit video data is divided into several data groups, the data length of the data group header encoding data is 8 bits, and the data length of the data group pixel encoding data is N*20 bits.

[0014] Optionally, compressing the pixel encoding data in the data group using a Delta compression mode or a self-sorting 422 mode includes:

[0015] If the Delta compression mode is used, the first pixel or the middle pixel of the N pixels in the data group is used as the reference pixel, and the difference between other pixels and the reference pixel is calculated;

[0016] If the difference can be represented by a specific number of bits, Delta compression is performed on the other pixels to obtain compressed coded data of the other pixels;

[0017] If the difference cannot be represented by a specific number of bits, the other pixels are not compressed to obtain complete coded data of the other pixels.

[0018] Optionally, the method further includes:

[0019] If the video data to be transmitted is 8-bit video data, the color component of the reference pixel on the Y channel is stored using an 8-bit data length, and the color components of the other pixels on the Y channel are stored using difference data with a 7-bit data length. When the difference data of the other pixels exceeds the 7-bit data length, the color components of the other pixels on the Y channel are stored using an 8-bit data length;

[0020] If the video data to be transmitted is 10-bit video data, the color component of the reference pixel on the Y channel is stored using a 10-bit data length, and the color components of the other pixels on the Y channel are stored using difference data with an 8-bit data length. When the difference data of the other pixels exceeds the 8-bit data length, the color components of the other pixels on the Y channel are stored using a 10-bit data length.

[0021] Optionally, compressing the pixel coded data in the data group using a Delta compression mode or a self-sorting 422 mode to obtain compressed video data further includes:

[0022] If the self-sorting 422 mode is adopted, one of the N pixels in the data group is advanced, and the advanced pixel is adjacent to the first pixel in the data group and divided into one part, and the remaining pixels are divided into another part, and then 422 sampling is performed on each part. Alternatively, the N pixels in the data group are divided into two parts, front and back, according to the division point, and 422 sampling is performed on each part.

[0023] According to a second aspect of the disclosed embodiments of the present invention, there is provided a low-complexity video data compression apparatus, the apparatus comprising:

[0024] A video format determination module determines the video data to be transmitted in the YCbCr format or the YCoCg-R format, or converts the video data to be transmitted in the RGB format into the YCbCr format or the YCoCg-R format;

[0025] a video data grouping module, connected to the video format determination module, for dividing each row of pixels of the video data to be transmitted into a plurality of data groups, each of which contains N pixels, and each of which is composed of header coded data of a preset data length and pixel coded data containing N pixels;

[0026] The video data compression module is connected to the video data grouping module, and compresses the pixel encoding data in the data group through the Delta compression mode or the self-sorting 422 mode to obtain compressed video data, so as to transmit the high-resolution compressed video data under limited bandwidth.

[0027] Optionally, the video data grouping module includes:

[0028] 8-bit video data grouping unit, if the video data to be transmitted is 8-bit video data, divides each row of pixels of the 8-bit video data into several data groups, the data length of the header encoding data of the data group is 8 bits, 12 bits or 16 bits, and the data length of the pixel encoding data of the data group is N*16 bits;

[0029] 10-bit video data grouping unit, if the video data to be transmitted is 10-bit video data, each row of pixels of the 10-bit video data is divided into several data groups, the data length of the data group header encoding data is 8 bits, and the data length of the data group pixel encoding data is N*20 bits.

[0030] Optionally, the video data compression module includes:

[0031] If the Delta compression mode is used, the first pixel or the middle pixel of the N pixels in the data group is used as the reference pixel, and the difference between other pixels and the reference pixel is calculated;

[0032] If the difference can be represented by a specific number of bits, Delta compression is performed on the other pixels to obtain compressed coded data of the other pixels;

[0033] If the difference cannot be represented by a specific number of bits, the other pixels are not compressed to obtain complete coded data of the other pixels.

[0034] Optionally, the video data compression module further includes:

[0035] If the self-sorting 422 mode is adopted, one of the N pixels in the data group is advanced, and the advanced pixel is adjacent to the first pixel in the data group and divided into one part, and the remaining pixels are divided into another part, and then 422 sampling is performed on each part. Alternatively, the N pixels in the data group are divided into two parts, front and back, according to the division point, and 422 sampling is performed on each part.

[0036] In summary, the present invention discloses a low-complexity video data compression method and device, which includes: determining video data to be transmitted in YCbCr format or YCoCg-R format, or converting video data to be transmitted in RGB format into YCbCr format or YCoCg-R format; dividing each row of pixels of the video data to be transmitted into a plurality of data groups, each data group containing N pixels, and the data group consisting of header encoding data of a preset data length and pixel encoding data containing N pixels; compressing the pixel encoding data in the data group through Delta compression mode or self-sorting 422 mode to obtain compressed video data, so as to transmit high-resolution compressed video data under limited bandwidth. It can significantly reduce the transmission bandwidth requirement while maintaining video quality, and provide an efficient solution for high-resolution video transmission in 10G~12G links.

[0037] Other features and advantages disclosed in the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following detailed description, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:

[0039] Figure 1 is a schematic flow chart of a low-complexity video data compression method according to an exemplary embodiment;

[0040] Figure 2 It is a basis Figure 1 A schematic flow chart of a method for grouping video data is shown;

[0041] Figure 3 is a structural block diagram of a low-complexity video data compression device according to an exemplary embodiment;

[0042] Figure 4 is based on Figure 3 A structural block diagram of a video data grouping module is shown. DETAILED DESCRIPTION

[0043] The following is a detailed description of the specific embodiments disclosed in the present invention in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present invention and are not intended to limit the present invention.

[0044] The technical solutions in the public embodiments of this invention are intended to transmit high-resolution (4096*2160@60Hz) 8-bit or 10-bit video signals over 10G-12G links. 8-bit video (422 format) has a bandwidth of approximately 9.6G, while 10-bit video has a bandwidth of approximately 11G. Increasing the bandwidth by 2 bits per pixel increases the bandwidth by approximately 1.06G. In 8-bit video data, each pixel is transmitted using 18 bits (expandable to 20 bits for near-lossless transmission). In 10-bit video data, each pixel is transmitted using 22 bits (possibly with slight loss).

[0045] Figure 1 FIG. 1 is a flow chart showing a low-complexity video data compression method according to an exemplary embodiment. Figure 1 As shown, the method includes:

[0046] In step 101, video data to be transmitted in the YCbCr format or the YCoCg-R format is determined, or video data to be transmitted in the RGB format is converted into the YCbCr format or the YCoCg-R format.

[0047] For example, for video data to be transmitted in RGB format, it is necessary to convert it into YCbCr format or YCoCg-R format, and then perform compression processing on the video data to be transmitted according to the following steps 102-103. For video data to be transmitted in YCbCr format or YCoCg-R format, the video data to be transmitted can be directly compressed according to the following steps 102-103.

[0048] It should be noted that if the video data to be transmitted is in YCbCr format but not 4:4:4, the video data to be transmitted is directly transmitted.

[0049] For example, if the video data to be transmitted is not 4:4:4, such as 422 or 420, no compression processing is required, and the bandwidth is sufficient. Among them, the first 4 in YCbcr 4:4:4 represents the number of samples in a row, the second 4 represents the number of samples in the first row, and the third 4 represents the number of samples in the second row. YCbcr 4:4:4 means that all 8 pixels in the first and second rows record the original color information, that is, they are not compressed.

[0050] In step 102, each row of pixels of the video data to be transmitted is divided into a number of data groups.

[0051] Each data group contains N pixels, and the data group is composed of header encoding data of a preset data length and pixel encoding data containing N pixels.

[0052] For example, each row of pixels is divided into several fixed-size data groups (Groups), each containing N pixels (N can be a preset value, such as 4, 6, 8, etc., and in the following embodiments, N=4 is used as an example). The data structure of each Group includes a Group header (i.e., header encoding data) of a fixed length (e.g., 8 bits, 12 bits, or 16 bits) and N fixed-length Group data (i.e., pixel encoding data).

[0053] Specifically, Figure 2 It is a basis Figure 1 A flow chart of a video data grouping method is shown in FIG. Figure 2 As shown, step 102 includes: step 1021 and step 1022, which are in parallel relationship.

[0054] In step 1021, if the video data to be transmitted is 8-bit video data, each row of pixels of the 8-bit video data is divided into several data groups, the data length of the data group header encoding data is 8 bits, 12 bits or 16 bits, and the data length of the data group pixel encoding data is N*16 bits.

[0055] For example, for 8-bit video data, the Group header size can be fixed at 8, 12, or 16 bits, and the Group data length is N*16 bits. When N is 4, the total length of a data group is 64 bits + 8 bits (when the Group header size is 8 bits), 64 bits + 12 bits (when the Group header size is 12 bits), and 64 bits + 16 bits (when the Group header size is 16 bits).

[0056] In step 1022, if the video data to be transmitted is 10-bit video data, each row of pixels of the 10-bit video data is divided into several data groups, the data length of the data group header encoding data is 8 bits, and the data length of the data group pixel encoding data is N*20 bits.

[0057] For example, for 10-bit video data, the group header size can be fixed at 8 bits, and the group data length is N*20 bits. When N is equal to 4, the total length of a data group is equal to 80 bits + 8 bits.

[0058] In step 103, the pixel encoding data in the data group is compressed using a Delta compression mode or a self-sorting 422 mode to obtain compressed video data, so as to transmit the high-resolution compressed video data under a limited bandwidth.

[0059] For example, after dividing each line of video data to be transmitted into several data groups, the disclosed embodiments of the present invention provide two compression encoding modes for each data group: Delta compression mode and self-ordering 422 mode. The compression encoding mode of each data group is identified by the most significant 3 bits of the Group header of the data group. When using Delta compression mode, the Group header bit is set to 0, and when using self-ordering 422 mode, the Group header bit is set to 1.

[0060] Specifically, if the Delta compression mode is adopted, the first pixel or the middle pixel among the N pixels in the data group is taken as the reference pixel, and the difference between the other pixels and the reference pixel is calculated; if the difference can be represented by a specific number of bits, Delta compression is applied to the other pixels to obtain compressed coded data of the other pixels; if the difference cannot be represented by a specific number of bits, the other pixels are not compressed, and the complete coded data of the other pixels is obtained.

[0061] For example, if delta compression is used, the first or middle pixel among N pixels is selected as the reference pixel. For example, if N = 4 and the middle pixel is selected as the reference pixel, the middle pixel is the second pixel, that is, the pixel closest to the center. After selecting the reference pixel, the difference between the reference pixel and the other pixels is calculated for each color channel's corresponding pixel component (e.g., Y, Co, Cg). If the difference between all pixels can be represented by a specific bit, delta compression is used for that component; otherwise, no compression is performed.

[0062] It should be noted that when compressing the pixel components corresponding to each pixel channel, the processing methods on the three color channels Y, Co, and Cg are different. The following explains the color component compression processing method on the Y channel using 8-bit and 10-bit as examples.

[0063] For 8-bit video data: If the video data to be transmitted is 8-bit video data, the color component of the reference pixel on the Y channel is stored with an 8-bit data length, and the color components of other pixels on the Y channel are stored with difference data of a 7-bit data length. When the difference data of other pixels exceeds the 7-bit data length, the color components of other pixels on the Y channel are stored with an 8-bit data length.

[0064] For example, in 8-bit video data, each color channel is represented by 8 bits. After selecting a reference pixel, the Y channel color component of the reference pixel is represented using a full 8-bit representation, while the delta values of the Y channels of the other pixels are assigned 7 bits. This means that the difference between the Y channel color components of the other pixels and the reference pixel is stored using 7 bits. If the Y channels of the other pixels cannot be delta-encoded (at least one pixel is outside the delta range), or if the Y channel difference of any of the other pixels exceeds the 7-bit representation range (i.e., the difference is too large), the entire set of Y components is encoded using the full 8 bits. For example, in a data set with N=4, the Y channel of the reference pixel occupies 8 bits, and the other three pixels occupy 7 bits * 3 (an average of 7.25 bits per pixel, with the remaining bits allocated to chrominance CoCg).

[0065] For 10-bit video data: If the video data to be transmitted is 10-bit video data, the color component of the reference pixel on the Y channel is stored with a data length of 10 bits, and the color components of other pixels on the Y channel are stored with difference data of 8 bits. When the difference data of other pixels exceeds the data length of 8 bits, the color components of other pixels on the Y channel are stored with a data length of 10 bits.

[0066] For example, in 10-bit video data, each color channel is represented by 10 bits. After selecting a reference pixel, the Y channel color component of the reference pixel is represented using a full 10-bit representation, while the delta values of the Y channels of the other pixels are assigned 8 bits. This means that the difference between the Y channel color components of the other pixels and the reference pixel is stored using 8 bits. If the Y channels of the other pixels cannot be delta-encoded (at least one pixel is outside the delta range), or if the Y channel difference of any of the other pixels exceeds the 8-bit representation range (i.e., the difference is too large), the entire set of Y components is encoded using the full 10 bits. For example, in a data set with N=4, the Y channel of the reference pixel occupies 10 bits, and the other three pixels occupy 8 bits * 3 (the remaining bits are allocated to the chrominance CoCg).

[0067] In addition, for the video data to be transmitted in the YCbCr format or YCoCg-R format, the delta compression mode can also be used for the CbCr / CoCg color channel. However, the number of bits occupied by CbCr / CoCg through Delta compression is less. The specific allocation depends on whether the Y channel uses the Delta compression mode and the size of the Group header.

[0068] If the Y channel uses delta compression, the 8-bit video data Co / Cg each occupies 6 bits (to be determined, depending on the size of the group header). Taking a 16-bit header as an example, this translates to 20 bits per pixel. Specifically, if N = 4 and each data group contains 4 pixels, the total number of bits occupied by a data group is 4 × 20 = 80 bits. The Y channel already occupies 8 + 7 × 3 = 29 bits, and the group header occupies 16 bits. The remaining number of bits allocated for Co / Cg is 80 - 29 - 16 = 35 bits. Co: 6 bits × 4 = 24 bits (base + 3 deltas), Cg: 6 bits × 4 = 24 bits (compression required, so actual allocation may be uneven). The number of bits reserved for Co or Cg in each group is 1 bit * 4 (Y) + 6 bits (header) + 8 bits (one Co position) = 18 bits. The delta of Co or Cg for each pixel can be encoded with 6 bits.

[0069] If the Y channel uses delta compression, the Co / Cg bits for 10-bit video data are 6 / 7 / 7 bits (dynamically allocated, with Co and Cg each occupying the remaining bits). Taking an 8-bit header as an example, this translates to 22 bits per pixel. Specifically, N=4, each data group contains 4 pixels, and the total number of bits occupied by a data group is 4×22 = 88 bits. The Y channel already occupies 10 + 8×3 = 34 bits, and the Group header occupies 8 bits. The remaining number of bits allocated for Co / Cg is 88 - 34 - 8 = 46 bits. Co occupies 6 bits, and Cg occupies 7 bits (this needs to be adjusted based on actual needs). Each group has 2 bits * 4 + 2 bits + 10 bits = 20 bits, allocated 6 / 7 / 7 bits.

[0070] If delta compression isn't used for the Y channel, then for 8-bit video data (a 16-bit group header, 20 bits per pixel), the delta of the CogCg is 4 bit / 5 bit / 5 bit (to be determined, related to the group header size; fewer bits are needed because Y takes up more space). Using a 16-bit header as an example, this translates to 20 bits per pixel. For 10-bit video, the CogCg is 4 bit / 4 bit / 4 bit (to be determined, using an 8-bit header as an example). For 8-bit video, with a 16-bit header, 6 bits + 8 bits = 14 bits, which can be allocated as 4 bit / 5 bit / 5 bit. For 10-bit video, with an 8-bit header, 2 bits + 10 bits = 12 bits, which can be allocated as 4 bit / 4 bit / 4 bit.

[0071] In addition, if Co or Cg cannot be delta-encoded, they are each encoded using the self-sorting 422 mode (delta compression has a high priority because delta compression is completely lossless. Self-sorting encoding is only performed when delta compression cannot be expressed).

[0072] The highest 3 bits of the Group header indicate whether the Y channel uses delta compression mode, whether the Cb channel uses delta compression mode, and whether the Cr channel uses delta compression mode.

[0073] MSB: Y_delta_flag

[0074] MSB-1: Co_delta_flag

[0075] MSB-2: Cg_delta_flag

[0076] If the self-sorting 422 mode is used, one of the N pixels in the data group is advanced, and the advanced pixel is adjacent to the first pixel in the data group and divided into one part, and the remaining pixels are divided into another part, and then 422 sampling is performed on each part. Alternatively, the N pixels in the data group are divided into two parts, front and back, according to the division point, and 422 sampling is performed on each part.

[0077] For example, the self-sorting 422 mode is a compression technique that optimizes chroma sampling (422) by rearranging pixels. The core idea is to dynamically adjust the pixel grouping order to make chroma sampling (Cb / Cr or Co / Cg) more efficient, and control the specific sorting and sampling method through the flag bits in the Group header. The highest bit of the Group header = 0: Indicates that the current group (Group) uses the self-sorting 422 mode (not the Delta mode). Co / Cg flag = 0: The chroma component uses this mode (the Y component may still use Delta or full encoding).

[0078] The sorting mode is controlled by the MSB-3, MSB-4, and MSB-5 bits of the Group header. There are seven possible sorting modes, divided into two categories:

[0079] Category 1: MSB-3: Sorting mode = 0, advance one pixel to be adjacent to the first pixel (a group), and the other pixels are grouped together, and then sampled according to 422

[0080] MSB-4 = 0: the third pixel is advanced

[0081] MSB-4=1: the 4th pixel is advanced

[0082] MSB-5 = 0: The first 2 pixels are grouped together after sorting

[0083] MSB-5=1: The first 3 pixels after sorting are grouped together

[0084] The second category: MSB-3: sorting mode = 1, the pixels are divided into two parts according to the split point, and 422 samples are taken for each part.

[0085] MSB-4 = 0, the first pixel is in one group, and the other pixels are in one group

[0086] MSB-4 = 1, the first and second pixels are grouped together, and the other pixels are grouped together (default 422 mode)

[0087] MSB-5=2, the 1st, 2nd, and 3rd pixels are grouped together, and the other pixels are grouped together.

[0088] In summary, the seven modes defined above require 3 bits to represent. For 8-bit video data, the Group header is longer (e.g., 16 bits), which can fully represent the seven modes (requiring 3 bits). For 10-bit video data, the Group header is shorter (8 bits) and needs to be dynamically adjusted based on the encoding mode of Y: If Y uses Delta encoding, all seven modes are retained (there are enough bits in the header); if Y does not use Delta encoding, some modes may be discarded, and each component is represented with only 2 bits.

[0089] For 8-bit video data, the total size of a 4-pixel group is: 64 bits (data) + 16 bits (header) = 80 bits (same as the 422 format).

[0090] For 10-bit video data, the total data size of 4 pixels is: 80 bits (data) + 8 bits (header) = 88 bits. This makes DDR reading and parsing complex and requires optimization. In this optimization, a 422 format is used, with a fixed 80-bit size for each 4-pixel group (aligned to 8 bits).

[0091] Figure 3 is a structural block diagram of a low-complexity video data compression device according to an exemplary embodiment. Figure 3 As shown, the device 300 includes:

[0092] The video format determination module 310 determines the video data to be transmitted in the YCbCr format or the YCoCg-R format, or converts the video data to be transmitted in the RGB format into the YCbCr format or the YCoCg-R format;

[0093] The video data grouping module 320 is connected to the video format determination module 310 and divides each row of pixels of the video data to be transmitted into a plurality of data groups, each data group containing N pixels, and the data group is composed of header code data of a preset data length and pixel code data containing N pixels;

[0094] The video data compression module 330 is connected to the video data grouping module 320, and compresses the pixel encoding data in the data group through the Delta compression mode or the self-sorting 422 mode to obtain compressed video data for transmitting high-resolution compressed video data under limited bandwidth.

[0095] Figure 4 is based on Figure 3 A structural block diagram of a video data grouping module is shown, as shown in FIG. Figure 4 As shown, the video data grouping module 320 includes:

[0096] 8-bit video data grouping unit 321, if the video data to be transmitted is 8-bit video data, divides each row of pixels of the 8-bit video data into several data groups, the data length of the data group header encoding data is 8 bits, 12 bits or 16 bits, and the data length of the data group pixel encoding data is N*16 bits;

[0097] The 10-bit video data grouping unit 322 divides each row of pixels of the 10-bit video data into several data groups if the video data to be transmitted is 10-bit video data. The data length of the data group header encoding data is 8 bits, and the data length of the data group pixel encoding data is N*20 bits.

[0098] Optionally, the video data compression module 330 includes:

[0099] If the Delta compression mode is used, the first pixel or the middle pixel among the N pixels in the data group is used as the reference pixel, and the difference between other pixels and the reference pixel is calculated;

[0100] If the difference can be represented by a specific number of bits, Delta compression is applied to the other pixels to obtain compressed coded data of the other pixels;

[0101] If the difference cannot be represented by a specific number of bits, the other pixels are not compressed, and the complete encoded data of the other pixels is obtained.

[0102] Optionally, the video data compression module 330 further includes:

[0103] If the self-sorting 422 mode is used, one of the N pixels in the data group is advanced, and the advanced pixel is adjacent to the first pixel in the data group and divided into one part, and the remaining pixels are divided into another part, and then 422 sampling is performed on each part. Alternatively, the N pixels in the data group are divided into two parts, front and back, according to the division point, and 422 sampling is performed on each part.

[0104] In summary, the present invention discloses a low-complexity video data compression method and device, which includes: determining video data to be transmitted in YCbCr format or YCoCg-R format, or converting video data to be transmitted in RGB format into YCbCr format or YCoCg-R format; dividing each row of pixels of the video data to be transmitted into a plurality of data groups, each data group containing N pixels, and the data group consisting of header encoding data of a preset data length and pixel encoding data containing N pixels; compressing the pixel encoding data in the data group through Delta compression mode or self-sorting 422 mode to obtain compressed video data, so as to transmit high-resolution compressed video data under limited bandwidth. It can significantly reduce the transmission bandwidth requirement while maintaining video quality, and provide an efficient solution for high-resolution video transmission in 10G~12G links.

[0105] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings. However, the present disclosure is not limited to the specific details of the above embodiments. Within the technical concept of the present disclosure, various simple modifications can be made to the technical solutions of the present disclosure, and these simple modifications all fall within the scope of protection of the present disclosure.

[0106] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any appropriate manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.

[0107] In addition, the various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.

Claims

1. A low-complexity video data compression method, characterized in that: The method comprises: Determine the video data to be transmitted in the YCbCr format or the YCoCg-R format, or convert the video data to be transmitted in the RGB format into the YCbCr format or the YCoCg-R format; Dividing each row of pixels of the video data to be transmitted into a plurality of data groups, each of the data groups containing N pixels, and the data groups consisting of header encoding data of a preset data length and pixel encoding data containing N pixels; The pixel encoding data in the data group is compressed using a Delta compression mode or a self-sorting 422 mode to obtain compressed video data, so as to transmit the high-resolution compressed video data under a limited bandwidth.

2. The low-complexity video data compression method according to claim 1, wherein: The method further comprises: If the video data to be transmitted is in YCbCr format but not 4:4:4, the video data to be transmitted is directly transmitted.

3. The low-complexity video data compression method according to claim 1, wherein: The step of dividing each row of pixels of the video data to be transmitted into a plurality of data groups includes: If the video data to be transmitted is 8-bit video data, each row of pixels of the 8-bit video data is divided into several data groups, the data length of the header encoding data of the data group is 8 bits, 12 bits or 16 bits, and the data length of the pixel encoding data of the data group is N*16 bits; If the video data to be transmitted is 10-bit video data, each row of pixels of the 10-bit video data is divided into several data groups, the data length of the data group header encoding data is 8 bits, and the data length of the data group pixel encoding data is N*20 bits.

4. The low-complexity video data compression method according to claim 1, wherein: The compressing the pixel encoding data in the data group by using the Delta compression mode or the self-sorting 422 mode includes: If the Delta compression mode is used, the first pixel or the middle pixel of the N pixels in the data group is used as the reference pixel, and the difference between other pixels and the reference pixel is calculated; If the difference can be represented by a specific number of bits, Delta compression is performed on the other pixels to obtain compressed coded data of the other pixels; If the difference cannot be represented by a specific number of bits, the other pixels are not compressed to obtain complete coded data of the other pixels.

5. The low-complexity video data compression method according to claim 4, characterized in that: The method further comprises: If the video data to be transmitted is 8-bit video data, the color component of the reference pixel on the Y channel is stored using an 8-bit data length, and the color components of the other pixels on the Y channel are stored using difference data with a 7-bit data length. When the difference data of the other pixels exceeds the 7-bit data length, the color components of the other pixels on the Y channel are stored using an 8-bit data length; If the video data to be transmitted is 10-bit video data, the color component of the reference pixel on the Y channel is stored using a 10-bit data length, and the color components of the other pixels on the Y channel are stored using difference data with an 8-bit data length. When the difference data of the other pixels exceeds the 8-bit data length, the color components of the other pixels on the Y channel are stored using a 10-bit data length.

6. The low-complexity video data compression method according to claim 1, wherein: The step of compressing the pixel coded data in the data group by using the Delta compression mode or the self-sorting 422 mode to obtain compressed video data further includes: If the self-sorting 422 mode is adopted, one of the N pixels in the data group is advanced, and the advanced pixel is adjacent to the first pixel in the data group and divided into one part, and the remaining pixels are divided into another part, and then 422 sampling is performed on each part. Alternatively, the N pixels in the data group are divided into two parts, front and back, according to the division point, and 422 sampling is performed on each part.

7. A low-complexity video data compression device, characterized in that: The device comprises: A video format determination module determines the video data to be transmitted in the YCbCr format or the YCoCg-R format, or converts the video data to be transmitted in the RGB format into the YCbCr format or the YCoCg-R format; a video data grouping module, connected to the video format determination module, for dividing each row of pixels of the video data to be transmitted into a plurality of data groups, each of which contains N pixels, and each of which is composed of header coded data of a preset data length and pixel coded data containing N pixels; The video data compression module is connected to the video data grouping module, and compresses the pixel encoding data in the data group through the Delta compression mode or the self-sorting 422 mode to obtain compressed video data, so as to transmit the high-resolution compressed video data under limited bandwidth.

8. The low-complexity video data compression device according to claim 7, characterized in that: The video data grouping module includes: 8-bit video data grouping unit, if the video data to be transmitted is 8-bit video data, divides each row of pixels of the 8-bit video data into several data groups, the data length of the header encoding data of the data group is 8 bits, 12 bits or 16 bits, and the data length of the pixel encoding data of the data group is N*16 bits; 10-bit video data grouping unit, if the video data to be transmitted is 10-bit video data, each row of pixels of the 10-bit video data is divided into several data groups, the data length of the data group header encoding data is 8 bits, and the data length of the data group pixel encoding data is N*20 bits.

9. The low-complexity video data compression device according to claim 7, characterized in that: The video data compression module includes: If the Delta compression mode is used, the first pixel or the middle pixel of the N pixels in the data group is used as the reference pixel, and the difference between other pixels and the reference pixel is calculated; If the difference can be represented by a specific number of bits, Delta compression is performed on the other pixels to obtain compressed coded data of the other pixels; If the difference cannot be represented by a specific number of bits, the other pixels are not compressed to obtain complete coded data of the other pixels.

10. The low-complexity video data compression device according to claim 7, characterized in that: The video data compression module further includes: If the self-sorting 422 mode is adopted, one of the N pixels in the data group is advanced, and the advanced pixel is adjacent to the first pixel in the data group and divided into one part, and the remaining pixels are divided into another part, and then 422 sampling is performed on each part. Alternatively, the N pixels in the data group are divided into two parts, front and back, according to the division point, and 422 sampling is performed on each part.