WO2013004169A1 - 一种参考帧压缩和解压方法及装置 - Google Patents
一种参考帧压缩和解压方法及装置 Download PDFInfo
- Publication number
- WO2013004169A1 WO2013004169A1 PCT/CN2012/078072 CN2012078072W WO2013004169A1 WO 2013004169 A1 WO2013004169 A1 WO 2013004169A1 CN 2012078072 W CN2012078072 W CN 2012078072W WO 2013004169 A1 WO2013004169 A1 WO 2013004169A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- pixel
- pixel value
- bits
- minimum
- value
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
- H04N19/51—Motion estimation or motion compensation
- H04N19/58—Motion compensation with long-term prediction, i.e. the reference frame for a current frame not being the temporally closest one
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
- H04N19/51—Motion estimation or motion compensation
- H04N19/573—Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction
Definitions
- the present invention relates to the field of video compression technologies, and in particular, to a reference frame compression and decompression method and apparatus. Background technique
- the transmission of video signals is large due to the large amount of information, especially when the video signal is expressed by more than 8 bits.
- the transmission bandwidth is high. If the video signal is directly transmitted, it is difficult to achieve the current transmission bandwidth.
- there is a video encoder/video decoder at the transmitting end and the receiving end of the video signal transmission and the video signal encoding and decoding technology is used to encode and decode the video signal.
- the sender or receiver here can be a mobile phone, a digital phone terminal, a wireless device, a personal data assistant (PDA), a handheld or portable computer, a GPS receiver/navigator, a camera, an audio/video player, a video camera, a video recorder.
- PDA personal data assistant
- a large number of statistics, such as monitoring equipment, indicate that there is a strong correlation between pixels in the same image. The smaller the difference between the two pixel values, the stronger the correlation between the two pixels.
- IBDI Internal Bit-Depth Increase
- a pixel block of 4x 4 is calculated as a minimum unit, and different processing is performed according to the difference d between the maximum value and the minimum value of the 4 x 4 pixel block.
- the 7-bit distortion is used to indicate the minimum value.
- the 7-bit distortion-free representation can be used between each pixel value and the minimum value. Difference between; when (1 ⁇ 128 and (1 ⁇ 256), each pixel value is expressed by a distortion representation method, and 1 shift compensation is used; when (1 ⁇ 256, each pixel value is performed Move 2 bit operations.
- the video coding standard in the prior art uses a 4 ⁇ 4 pixel block as a minimum unit, and the entire package needs to occupy 128 bits, and the unit memory access bandwidth is smaller. Large, random access redundancy is large; and 4x 4 pixel blocks include 16 pixels, and there is a greater possibility of large difference between pixels, and the precision loss is also large. Summary of the invention
- Embodiments of the present invention provide a reference frame compression and decompression method and apparatus to reduce a unit memory access bandwidth and reduce loss of random access redundancy and average accuracy.
- a reference frame compression method includes:
- the X 2 pixel block is used as a basic unit, and the reference frame is divided into a plurality of 2 ⁇ 2 pixel blocks;
- the 32-bit data packet including a fixed 10 bits for representing the minimum pixel value without distortion, for indicating the minimum pixel value 2 bits of position information, 18 bits representing a difference between a pixel value of three pixels other than the minimum pixel value in the 2 ⁇ 2 pixel block and the minimum pixel value, and 2 bits Related tag information;
- the 32-bit data packet is transmitted to the receiving end.
- a reference frame compression device includes:
- a first dividing module configured to divide the reference frame into multiple 2 ⁇ 2 pixel blocks by using a 2 ⁇ 2 pixel block as a basic unit
- a calculation module configured to calculate a difference between a maximum pixel value and a minimum pixel value of a pixel included in each 2 ⁇ 2 pixel block;
- a indicating module configured to remove the minimum pixel from the 2 ⁇ 2 pixel block when a difference between a maximum pixel value and a minimum pixel value of a pixel included in the 2 ⁇ 2 pixel block is smaller than a first preset threshold Value
- the difference between the pixel value of each pixel and the minimum pixel value of the pixel included in the 2 ⁇ 2 pixel block is represented by a fixed number of bits of less than 8 bits;
- a packaging module configured to encapsulate the 2 ⁇ 2 pixel block into a data packet of 32 bits in length, the 32-bit data packet including a fixed 10 bit for representing the minimum pixel value without distortion, for representing 2 bits of position information of a minimum pixel value, 18 for indicating a difference between a pixel value of three pixel points other than the minimum pixel value in the 2 x 2 pixel block and the minimum pixel value Bit, and 2-bit related tag information;
- a sending module configured to send the 32-bit data packet to the receiving end.
- a reference frame decompression method includes:
- mapping value corresponding to the 32-bit data packet is smaller than the first preset threshold, read the number of bits in the 32-bit data packet that is fixed by 10 bits, and the length of the 10-bit data bit is undistorted. Representing a minimum pixel value of a pixel point included in the 2 ⁇ 2 pixel block;
- a reference frame decompression device includes: a receiving module, configured to receive a compressed 2 ⁇ 2 pixel block included in the reference frame sent by the transmitting end
- a reading module configured to read related tag information of the 32-bit data packet
- a calculation module configured to calculate, according to the related tag information of the 32-bit data packet, a mapping value corresponding to the 32-bit data packet;
- the reading module is further configured to: when the mapping value corresponding to the 32-bit data packet is smaller than the first preset threshold, read the number of bits in the 32-bit data packet that is 10 bits in length, and the length a minimum pixel value of a pixel point included in the 2 ⁇ 2 pixel block without distortion for a 10-bit number of bits;
- the reading module is further configured to read a bit number of a bit length of 2 bits in the 32-bit data packet for indicating the minimum pixel value;
- Obtaining a module configured to obtain, according to the bit number of 2 bits having a length of position information for indicating the minimum pixel value, a position of each pixel point except the minimum pixel value in the 2 ⁇ 2 pixel block Information
- the reading module is further configured to read, according to a fixed number of bits of less than 8 bits, a pixel value for indicating three pixel points in the 2 ⁇ 2 pixel block except the minimum pixel value, and the 18 bits of the difference between the minimum pixel values;
- the obtaining module is further configured to obtain a number of bits for indicating a difference between a pixel value of each pixel except the minimum pixel value and the minimum pixel value in the 2 ⁇ 2 pixel block;
- the obtaining module is further configured to: according to the difference between the pixel value used to represent each pixel point except the minimum pixel value in the 2 ⁇ 2 pixel block and the most d, pixel value a number of bits, and position information of each pixel point other than the minimum pixel value in the 2 x 2 pixel block, obtaining each pixel of the 2 ⁇ 2 pixel block except the most d, pixel value The pixel value of the point.
- a method and device for compressing and decompressing a test frame according to an embodiment of the present invention wherein a 2 ⁇ 2 pixel block is used as a basic unit, and a 2 ⁇ 2 pixel block is encapsulated into a data packet having a length of 32 bits.
- the reference frame compression and decompression method and device provided by the embodiments of the present invention use a 2 ⁇ 2 pixel block as a basic unit, and the data packet length of the pixel block package is 32 bits, which can reduce the unit memory access bandwidth. Reduce the loss of random access redundancy and average accuracy.
- Embodiment 1 is a flowchart of a method according to Embodiment 1 of the present invention.
- Embodiment 3 is a flowchart of a method according to Embodiment 3 of the present invention.
- Embodiment 4 is a flowchart of a method according to Embodiment 4 of the present invention.
- FIG. 5 is a flowchart of a method according to Embodiment 5 of the present invention.
- FIG. 6 is a flowchart of a method according to Embodiment 6 of the present invention.
- FIG. 7 is a schematic structural diagram of a device according to Embodiment 7 of the present invention.
- FIG. 8 is a schematic structural diagram of a device according to Embodiment 7 of the present invention.
- Embodiment 8 of the present invention is a flowchart of a method according to Embodiment 8 of the present invention.
- Embodiment 10 is a flowchart of a method provided in Embodiment 9 of the present invention.
- FIG. 11 is a flowchart of a method according to Embodiment 10 of the present invention.
- Figure 12 is a structural diagram of a device according to Embodiment 11 of the present invention.
- FIG. 13 is a structural diagram of a device according to Embodiment 11 of the present invention. detailed description
- video codecs are widely used in various electronic devices, such as: mobile phones, wireless devices, personal data assistants (PDAs), handheld or portable computers, GPS receivers/navigators, cameras, audio/ Video player, video camera, video recorder, monitoring equipment, etc.
- PDAs personal data assistants
- video encoder or video decoder can be directly implemented by a digital circuit or a chip such as a DSP (digital signal processor), or the software code can be used to drive the processor to execute the software code. The process is implemented.
- DSP digital signal processor
- This embodiment provides a reference frame compression method. As shown in FIG. 1, the method includes:
- the reference frame is divided into a plurality of 2 ⁇ 2 pixel blocks by using a 2 ⁇ 2 pixel block as a basic unit.
- 102. Calculating a difference between a maximum pixel value and a minimum pixel value of the pixel points included in each 2 ⁇ 2 pixel block;
- the difference between the maximum pixel value and the minimum pixel value of the pixel included in the 2 ⁇ 2 pixel block is less than a first preset threshold, divide the 2 ⁇ 2 pixel block by the most d, pixel.
- the difference between the pixel value of each pixel other than the value and the minimum pixel value of the pixel included in the 2 ⁇ 2 pixel block is represented by a fixed number of bits less than 8 bits;
- the fixed bit number refers to a difference between the pixel value of the three pixel points except the minimum pixel value and the minimum pixel value in a 2 ⁇ 2 pixel block. In one embodiment, the fixed number of bits can be 6 bits.
- the first preset threshold is 128 (ie 2 7 ).
- the 32-bit data packet includes a fixed 10-bit for representing the minimum pixel value without distortion, and is used to represent the minimum 2 bits of position information of a pixel value, 18 bits for indicating a difference between a pixel value of three pixel points other than the minimum pixel value in the 2 x 2 pixel block and the minimum pixel value, And 2 bits of related tag information;
- the correlation flag information is used to represent a segment of the difference represented by 18 bits, and the correlation flag information can know which of the 18 bits represent the pixel value of each of the three pixels except the minimum pixel value. The difference between the minimum pixel values.
- the reference frame compression method divides the reference frame into a plurality of 2 x 2 pixel blocks by using a 2 x 2 pixel block as a basic unit, and the maximum pixel value and the minimum of the pixel points included in the 2 x 2 pixel block.
- the difference between the pixel values is less than the first preset threshold, the difference between the pixel value of each pixel except the minimum pixel value and the most d, the pixel value in the 2 ⁇ 2 pixel block
- Fixed bits with less than 8 bits The number of bits indicates that the 2x2 pixel block is encapsulated into a 32-bit packet.
- the reference frame compression method provided by the embodiment of the present invention uses a 2x2 pixel block as a basic unit, and the encapsulated data packet is 32 bits, which can reduce the unit memory access bandwidth and reduce random access redundancy and average. Loss of precision.
- Embodiment 2 uses a 2x2 pixel block as a basic unit, and the encapsulated data packet is 32 bits, which can reduce the unit memory access bandwidth and reduce random access redundancy and average. Loss of precision.
- This embodiment provides a reference frame compression method. As shown in FIG. 2, the method includes:
- the reference frame is divided into multiple 2 ⁇ 2 pixel blocks by using a 2 ⁇ 2 pixel block as a basic unit.
- the pixel value of the pixel included in the 2 ⁇ 2 pixel block is less than a second preset threshold
- directly insert the 2 ⁇ 2 pixel block into the a difference between a pixel value of each pixel point other than the pixel value and a minimum pixel value of the pixel point included in the 2 ⁇ 2 pixel block is represented by a fixed number of bits of less than 8 bits, wherein
- the second threshold is less than the first threshold; the second preset threshold may be 64 (ie, 2 6 )
- the 204 Encapsulate the 2 ⁇ 2 pixel block into a 32-bit data packet, where the 32-bit data packet includes a fixed 10-bit for representing the minimum pixel value without distortion, and is used to represent the minimum pixel value.
- 2 bits of position information 18 bits representing a difference between a pixel value of three pixels other than the minimum pixel value in the 2x2 pixel block and the minimum pixel value, and 2 bits Related tag information;
- the reference frame compression method provided by the embodiment of the present invention divides a reference frame into a plurality of 2 ⁇ 2 pixel blocks by using a 2 ⁇ 2 pixel block as a basic unit, and a maximum pixel value and a minimum pixel value of the pixel points included in the 2 ⁇ 2 pixel block.
- the difference between the two is less than the second predetermined threshold, the pixel value of each pixel except the most d, the pixel value in the 2 ⁇ 2 pixel block is directly compared with the pixel included in the 2 ⁇ 2 pixel block.
- a difference of 6 bits between the minimum pixel values of the points indicates that the 2 ⁇ 2 pixel block is encapsulated into a packet of 32 bits in length.
- the reference frame compression method provided by the embodiment of the present invention reduces the unit memory access bandwidth and reduces the loss of random access redundancy and average precision by using a 2 ⁇ 2 pixel block as a basic unit.
- This embodiment provides a reference frame compression method. As shown in FIG. 3, the method includes:
- this threshold is 64
- a first preset threshold 1228
- a difference between a pixel value of each pixel except the minimum pixel value in the 2 x 2 pixel block and a minimum pixel value of a pixel point included in the 2 x 2 pixel block The number of bits is shifted to the right and represented by a fixed number of bits of less than 8 bits;
- the 2 ⁇ 2 pixel block Encapsulating the 2 ⁇ 2 pixel block into a data packet having a length of 32 bits, where the 32-bit data packet includes a fixed 10 bits for representing the minimum pixel value without distortion, and is used to represent the minimum pixel. 2 bits of position information of the value, 18 bits for indicating a difference between the pixel value of the three pixel points other than the minimum pixel value in the 2 ⁇ 2 pixel block and the minimum pixel value, and 2 Bit related information;
- a 2x2 pixel block is used as a basic unit, and the reference frame is divided into a plurality of 2x2 pixel blocks, and the calculation is performed.
- the 2> ⁇ 2 pixel block is encapsulated into a packet having a length of 32 bits, wherein flag represents related flag information, min represents a minimum pixel value of a pixel point included in the 2 ⁇ 2 pixel block, and minldx represents position information of the minimum pixel value, difference And representing a difference between a maximum pixel value and a minimum pixel value of a pixel included in the 2 ⁇ 2 pixel block, and transmitting the 32-bit data packet to the receiving end.
- the reference frame compression method provided by the embodiment of the present invention when a difference between a maximum pixel value and a minimum pixel value of a pixel point included in the 2 ⁇ 2 pixel block is greater than or equal to a second preset threshold and less than a first preset threshold a number of bits to be used to represent a difference between a pixel value of each pixel except the minimum pixel value in the 2x2 pixel block and a minimum pixel value of a pixel point included in the 2x2 pixel block to the right After shifting, it is represented by a fixed number of bits of less than 8 bits, and the 2 ⁇ 2 pixel block is encapsulated into a packet having a length of 32 bits, and the 32-bit data packet is transmitted to the receiving end.
- the reference frame compression method provided by the embodiment of the present invention uses a 2x2 pixel block as a basic unit, which can reduce the unit memory access bandwidth and reduce the loss of random access redundancy and average precision.
- This embodiment provides a reference frame compression method. As shown in FIG. 4, the method includes:
- the reference frame is divided into multiple 2 ⁇ 2 pixel blocks by using a 2 ⁇ 2 pixel block as a basic unit.
- the difference between the maximum pixel value and the minimum pixel value of the pixel included in the 2 ⁇ 2 pixel block is greater than or equal to a first preset threshold (128), it will be used to represent the first three of the 2 ⁇ 2 pixel blocks.
- the number of bits of the pixel value of the pixel is shifted to the right by two bits, and the number of bits of the pixel value for indicating the last pixel of the 2x2 pixel block is shifted right by three bits; 404.
- a 2 ⁇ 2 pixel block as a basic unit, dividing the reference frame into a plurality of 2 ⁇ 2 pixel blocks, and calculating a difference d between a maximum pixel value and a maximum d and a pixel value of the pixel points included in each 2 ⁇ 2 pixel block, when When d ⁇ 2 7 , the number of bits used to represent the pixel values of the first three pixels of the 2 ⁇ 2 pixel block is shifted right by two bits, and the pixel value of the last pixel of the 2 ⁇ 2 pixel block is used to represent The number of bits is shifted to the right by three bits.
- the 2x2 pixel block is encapsulated into a packet of 32 bits in length, where flag The correlation flag information is indicated, and the pixel value represents the number of bits of the pixel value for indicating the pixel point included in the 2 ⁇ 2 pixel block after shifting to the right, and the 32-bit data packet is transmitted to the receiving end.
- the reference frame compression method provided by the embodiment of the present invention if the difference between the maximum pixel value and the minimum pixel value of the pixel included in the 2 ⁇ 2 pixel block is greater than or equal to a first preset threshold, is used to represent the 2 ⁇ 2
- the number of bits of the pixel value of the first three pixels of the pixel block is shifted to the right by two bits, and the number of bits of the pixel value for indicating the last pixel of the 2 ⁇ 2 pixel block is shifted right by three bits, and the 2 ⁇ 2 pixel block is Encapsulated as a 32-bit data packet, the 32-bit data packet including a bit number indicating a pixel value of each pixel of the 2 ⁇ 2 pixel block shifted to the right, and 1 bit Correlated tag information, the 32-bit data packet is sent to the receiving end.
- the reference frame compression method provided by the embodiment of the present invention uses a 2x2 pixel block as a basic unit, which can reduce the unit memory access bandwidth and reduce the loss of random access red
- This embodiment provides a reference frame compression method. As shown in FIG. 5, the method includes:
- the difference between the maximum pixel value and the minimum pixel value of the pixel included in the 2 ⁇ 2 pixel block is greater than or equal to a first preset threshold and less than a third preset threshold, it is used to represent the 2 ⁇ 2 image.
- the number of bits of the difference between the pixel value of each pixel except the minimum pixel value and the minimum pixel value of the pixel point included in the 2x2 pixel block is shifted to the right, and will be used to represent
- the difference between the pixel value of each pixel except the minimum pixel value in the 2 ⁇ 2 pixel block and the minimum pixel value of the pixel point included in the 2 ⁇ 2 pixel block is represented by a fixed number of bits less than 8 bits ;
- the third preset threshold may be 256 (ie, 2 8 ).
- 2 bits of position information 18 bits representing a difference between a pixel value of three pixels other than the minimum pixel value in the 2x2 pixel block and the minimum pixel value, and 2 bits Related tag information;
- the reference frame compression method when a difference between a maximum pixel value and a minimum pixel value of a pixel point included in the 2 ⁇ 2 pixel block is greater than or equal to a first preset threshold and less than a third preset threshold ( When the threshold is 256), it will be used to represent the difference between the pixel value of each pixel except the minimum pixel value in the 2x2 pixel block and the minimum pixel value of the pixel point included in the 2x2 pixel block. The number of bits of the value is shifted to the right, and is used to represent the pixel value of each pixel except the minimum pixel value in the 2x2 pixel block and the minimum pixel value of the pixel included in the 2 ⁇ 2 pixel block.
- the difference between the two is represented by a fixed number of bits less than 8 bits, and the 2 ⁇ 2 pixel block is encapsulated into a 32-bit data packet, the 32-bit data packet being included for distortionless representation a fixed 10 bits of a minimum pixel value, 2 bits for indicating position information of the minimum pixel value, a pixel value for indicating three pixel points other than the minimum pixel value in the 2 ⁇ 2 pixel block, and the Minimum image 18 bits of difference between the value and the associated 2-bit flag information, and sends the 32-bit data packet to the receiving end.
- the reference frame compression method provided by the embodiment of the present invention uses a 2x2 pixel block as a basic unit, which can reduce the unit memory access bandwidth and reduce the random access redundancy and the average 4 sine loss.
- Embodiment 6 uses a 2x2 pixel block as a basic unit, which can reduce the unit memory access bandwidth and reduce the random access redundancy and the average 4 sine loss.
- This embodiment provides a reference frame compression method. As shown in FIG. 6, the method includes:
- the reference frame is divided into multiple 2 ⁇ 2 pixel blocks by using a 2 ⁇ 2 pixel block as a basic unit.
- 602. Calculate a difference between a maximum pixel value and a minimum pixel value of a pixel included in each 2 ⁇ 2 pixel block.
- the pixel value of the pixel included in the 2 ⁇ 2 pixel block is greater than or equal to a third preset threshold, it is used to represent each of the 2 ⁇ 2 pixel blocks.
- the number of bits of the pixel value of the pixel is shifted to the right by three bits;
- the 2x2 pixel block is encapsulated into a data packet of 32 bits in length, wherein flag represents related flag information, and pixel value represents the number of bits of the pixel value for indicating the pixel point included in the 2x2 pixel block after being shifted to the right.
- offset represents compensation information, and the 32-bit data packet is transmitted to the receiving end.
- the reference frame compression method provided by the embodiment of the present invention when the difference between the maximum pixel value and the minimum pixel value of the pixel included in the 2 ⁇ 2 pixel block is greater than or equal to a third preset threshold, The number of bits of the pixel value of each pixel of the 2 ⁇ 2 pixel block is shifted right by three bits, and the 2 ⁇ 2 pixel block is encapsulated into a packet of 32 bits in length, and the 32-bit data packet is included for representation Transmitting the 32-bit data packet to the receiving end by the number of bits of the pixel value of each pixel of the 2x2 pixel block shifted to the right, the 2-bit correlation flag information, and the 2-bit compensation information .
- the reference frame compression method provided by the embodiment of the present invention uses a 2x2 pixel block as a basic unit, which can reduce the unit memory access bandwidth and reduce the loss of random access redundancy and average precision.
- the embodiment provides a reference frame compression device.
- the device includes: a first dividing module 701, configured to divide a reference frame into multiple 2x2 pixel blocks by using a 2 ⁇ 2 pixel block as a basic unit;
- the calculating module 702 is configured to calculate a difference between a maximum pixel value and a minimum pixel value of the pixel points included in each 2 ⁇ 2 pixel block;
- a indicating module 703 configured to: when the difference between the maximum pixel value and the minimum pixel value of the pixel included in the 2 ⁇ 2 pixel block is less than a first preset threshold, remove the minimum of the 2 ⁇ 2 pixel block a difference between a pixel value of each pixel other than the pixel value and a minimum pixel value of the pixel point included in the 2 ⁇ 2 pixel block is represented by a fixed number of bits of less than 8 bits;
- the encapsulating module 704 is configured to encapsulate the 2 ⁇ 2 pixel block into a data packet of 32 bits in length, where the 32-bit data packet includes a fixed 10-bit for representing the minimum pixel value without distortion, and is used to represent the 2 bits of position information of the minimum pixel value, 18 bits for indicating a difference between a pixel value of three pixel points other than the minimum pixel value in the 2 ⁇ 2 pixel block and the minimum pixel value, And 2 bits of related tag information;
- the sending module 705 is configured to send the 32-bit data packet to the receiving end.
- the representation module 703 includes:
- the first representation unit 7031 is configured to directly divide the 2 ⁇ 2 pixel block when the difference between the maximum pixel value and the minimum pixel value of the pixel point included in the 2 ⁇ 2 pixel block is less than a second preset threshold. a difference between a pixel value of each pixel other than the minimum pixel value and a minimum pixel value of the pixel point included in the 2 ⁇ 2 pixel block is represented by a fixed number of bits of less than 8 bits, wherein the The second threshold is less than the first threshold;
- the second representation unit 7032 is configured to: when the difference between the maximum pixel value and the minimum pixel value of the pixel point included in the 2 ⁇ 2 pixel block is greater than or equal to a second preset threshold and less than a first preset threshold, And shifting the number of bits indicating a difference between a pixel value of each pixel other than the minimum pixel value and a minimum pixel value of a pixel point included in the 2 ⁇ 2 pixel block in the 2 ⁇ 2 pixel block; Expressed in fixed bits of less than 8 bits.
- the apparatus may further include:
- the first shifting module 706 is configured to represent the 2 ⁇ 2 pixel when a difference between a maximum pixel value and a minimum pixel value of a pixel point included in the 2 ⁇ 2 pixel block is greater than or equal to a first preset threshold.
- the number of bits of the pixel value of the first three pixels of the block is shifted to the right by two bits, and the number of bits of the pixel value used to represent the last pixel of the 2x2 pixel block is shifted right by three bits;
- the encapsulating module 704 is further configured to encapsulate the 2 ⁇ 2 pixel block into data with a length of 32 bits.
- a packet the 32-bit data packet includes a bit number indicating a pixel value of each pixel of the 2 ⁇ 2 pixel block shifted to the right, and 1-bit related flag information;
- the sending module 705 is further configured to send the 32-bit data packet to the receiving end. Further, the device may further include:
- the first shifting module 706 is further configured to: when a difference between a maximum pixel value and a minimum pixel value of a pixel point included in the 2 ⁇ 2 pixel block is greater than or equal to a first preset threshold and less than a third preset threshold And a bit number indicating a difference between a pixel value of each pixel except the minimum pixel value in the 2 ⁇ 2 pixel block and a minimum pixel value of a pixel point included in the 2 ⁇ 2 pixel block.
- the representation module 703 is further configured to represent a pixel value of each pixel except the minimum pixel value in the 2 ⁇ 2 pixel block and a minimum pixel of a pixel point included in the 2 ⁇ 2 pixel block.
- the difference between the values is represented by a fixed number of bits of less than 8 bits;
- the encapsulating module 704 is further configured to encapsulate the 2x2 pixel block into a data packet of 32 bits in length, where the 32-bit data packet includes a fixed 10 bit for representing the minimum pixel value without distortion, 2 bits representing position information of the minimum pixel value, a difference between a pixel value indicating three pixel points other than the minimum pixel value in the 2 ⁇ 2 pixel block and the minimum pixel value 18-bit, and 2-bit related tag information;
- the sending module 705 is further configured to send the 32-bit data packet to the receiving end. Further, the device may further include:
- the first shifting module 706 is further configured to: when the difference between the maximum pixel value and the minimum pixel value of the pixel point included in the 2 ⁇ 2 pixel block is greater than or equal to a third preset threshold, The number of bits of the pixel value of each pixel of the 2 X 2 pixel block is shifted to the right by three bits;
- the encapsulating module 704 is further configured to encapsulate the 2 ⁇ 2 pixel block into a data packet of 32 bits in length, where the 32-bit data packet includes each of the 2 ⁇ 2 pixel blocks used to represent shifting to the right.
- the sending module 705 is further configured to send the 32-bit data packet to the receiving end.
- the reference frame compression apparatus provided by the embodiment of the present invention divides a reference frame into a plurality of 2 ⁇ 2 pixel blocks by using a 2 ⁇ 2 pixel block as a basic unit, and calculates a maximum pixel value and a minimum pixel value between the pixels included in each 2 ⁇ 2 pixel block.
- the reference frame compression apparatus uses a 2 ⁇ 2 pixel block as a basic unit, which can reduce the unit memory access bandwidth and reduce the loss of random access redundancy and average precision.
- This embodiment provides a reference frame decompression method. As shown in FIG. 9, the method includes:
- mapping value corresponding to the 32-bit data packet is smaller than the first preset threshold, read the number of bits in the 32-bit data packet that is fixed by 10 bits, and the number of bits having the length of 10 bits is not Distorically representing a minimum pixel value of a pixel point included in the 2 ⁇ 2 pixel block;
- position information indicating a minimum pixel value, a length of 2 bits, and a length of 2 according to the position information used to represent the minimum pixel value.
- Position number of bits obtaining position information of each pixel point except the minimum pixel value in the 2 x 2 pixel block;
- the reference frame decompression method provided by the embodiment of the present invention, if the 32-bit data packet corresponds to the mapping The value is smaller than the first preset threshold, and the number of bits of the 32-bit data packet having a fixed length of 10 bits is read as the minimum pixel value of the pixel points included in the 2 ⁇ 2 pixel block, and is fixed by less than 8 bits.
- the number of bits reads 18 bits representing a difference between a pixel value of three pixels other than the minimum pixel value and the minimum pixel value in the 2 x 2 pixel block, according to the use And a number of bits representing a difference between a pixel value of each pixel except the minimum pixel value and the minimum pixel value in the 2 ⁇ 2 pixel block, and the 2 ⁇ 2 pixel block A position value of each pixel other than the minimum pixel value, and a pixel value of each pixel other than the minimum pixel value in the 2 x 2 pixel block is obtained.
- the reference frame decompression method provided by the embodiment of the present invention uses a 2 x 2 pixel block as a basic unit, which can reduce the unit memory access bandwidth and reduce the loss of random access redundancy and average precision.
- This embodiment provides a reference frame decompression method. As shown in FIG. 10, the method includes:
- the related tag information of the 32-bit data packet is read, and the mapping value corresponding to the 32-bit data packet is calculated according to the related tag information of the 32-bit data packet.
- mapping value corresponding to the 32-bit data packet is greater than or equal to the second threshold and less than the first preset threshold, the mapping value corresponding to the 32-bit data packet is used to represent the 2 ⁇ 2 pixel.
- the 18 bits of the difference between the pixel value of the three pixel points other than the minimum pixel value and the minimum pixel value in the block are divided into three fixed length bits;
- the three fixed-length bit numbers are respectively shifted to the left to obtain a pixel value and the minimum pixel for indicating each pixel point except the minimum pixel value in the 2 ⁇ 2 pixel block.
- the reference frame decompression method provided by the embodiment of the present invention, if the mapping value corresponding to the 32-bit data packet is greater than or equal to the second threshold and less than the first preset threshold, according to the mapping value corresponding to the 32-bit data packet, Dividing 18 bits for indicating a difference between a pixel value of three pixels other than the minimum pixel value and the minimum pixel value in the 2 ⁇ 2 pixel block into three fixed length bits, And shifting the three fixed length bit numbers to the left respectively to obtain a pixel value for indicating each pixel point except the minimum pixel value in the 2 ⁇ 2 pixel block and the minimum pixel value.
- the reference frame decompression method uses a 2x2 pixel block as a basic unit, which can reduce the unit memory access bandwidth and reduce the loss of random access redundancy and average precision.
- This embodiment provides a reference frame decompression method. As shown in FIG. 11, the method includes:
- the related tag information of the 32-bit data packet is read, and the mapping value corresponding to the 32-bit data packet is calculated according to the related tag information of the 32-bit data packet.
- mapping value corresponding to the 32-bit data packet is greater than or equal to a first preset threshold, read the first 24 bits of the 32-bit data packet, and average the first 24 bits of the 32-bit data packet. Divided into three bits of length 8 bits;
- Pel[i] (p[i] «s)+minmum; where the parameter s represents the tag information mapping value of the 32-bit data packet, and p[i] represents the read from the 32-bit data packet The number of bits used to represent the pixel value of the i-th pixel point in the 32-bit data packet, and pel[i] represents the pixel value after decoding of the i-th pixel point in the 32-bit data packet.
- the reference frame decompression method provided by the embodiment of the present invention, if the mapping value corresponding to the 32-bit data packet is greater than or equal to the first preset threshold, reading the first 24 bits of the 32-bit data packet, the 32 The first 24 bits of the data packet of the bit are equally divided into three bit numbers each having a length of 8 bits, and the three bit numbers of the length of 8 bits are respectively shifted left by two bits to obtain the front of the 32-bit data packet. a pixel value of three pixels, reading a number of bits of 7 bits in the 32-bit data packet, and shifting the number of bits having a length of 7 bits to the left by three bits to obtain the 32-bit data packet. The pixel value of the last pixel.
- the reference frame decompression method provided by the embodiment of the present invention reduces the unit memory access bandwidth and reduces the loss of random access redundancy and average precision by using a 2 ⁇ 2 pixel block as a basic unit.
- the embodiment provides a reference frame decompression device.
- the device includes: a receiving module 1201, configured to receive a 32-bit data packet that is compressed by a transmitting end and that compresses a 2 ⁇ 2 pixel block included in a reference frame. ;
- the reading module 1202 is configured to read related tag information of the 32-bit data packet
- the calculating module 1203 is configured to calculate, according to the related tag information of the 32-bit data packet, a corresponding data packet of the 32-bit data packet.
- the reading module 1202 is further configured to: when the mapping value corresponding to the 32-bit data packet is smaller than the first preset threshold, read the number of bits in the 32-bit data packet that is fixed by 10 bits, The number of bits having a length of 10 bits represents the minimum pixel value of the pixel points included in the 2 ⁇ 2 pixel block without distortion;
- the reading module 1202 is further configured to read a bit number of 2 bits in length of the 32-bit data packet for indicating location information of the minimum pixel value;
- the obtaining module 1204 is configured to obtain, according to the bit number of the bit information indicating the minimum pixel value, a bit length of 2 bits, a position of each pixel point except the minimum pixel value in the 2 ⁇ 2 pixel block.
- the reading module 1202 is further configured to read, according to a fixed number of bits of less than 8 bits, a pixel value for indicating three pixel points in the 2 ⁇ 2 pixel block except the minimum pixel value, and the minimum 18 bits of the difference between pixel values;
- the obtaining module 1204 is further configured to obtain a bit number indicating a difference between a pixel value of each pixel except the minimum pixel value and the most d, pixel value in the 2 ⁇ 2 pixel block.
- the obtaining module 1204 is further configured to: according to the bit for indicating a difference between a pixel value of each pixel except the minimum pixel value and the minimum pixel value in the 2 ⁇ 2 pixel block; a number, and position information of each pixel point other than the most d and pixel values in the 2 ⁇ 2 pixel block, obtaining pixels of each pixel point except the minimum pixel value in the 2 ⁇ 2 pixel block value.
- the obtaining module 1204 includes:
- the calculating unit 12041 is configured to: according to the number of bits used to represent a difference between a pixel value of each pixel except the minimum pixel value in the 2 ⁇ 2 pixel block and the minimum pixel value, and the Calculating the position information of each pixel point other than the minimum pixel value in the 2 ⁇ 2 pixel block a difference between a pixel value of each pixel other than the minimum pixel value in the 2 x 2 pixel block and the minimum pixel value;
- the adding unit 12042 is configured to add a difference between a pixel value of each pixel except the minimum pixel value and the minimum pixel value in the 2 ⁇ 2 pixel block, and the minimum pixel value And obtaining a pixel value of each pixel point other than the minimum pixel value in the 2 ⁇ 2 pixel block.
- the obtaining module 1204 further includes:
- the dividing unit 12043 is configured to: when the mapping value corresponding to the 32-bit data packet is greater than or equal to the second threshold and less than the first preset threshold, according to the mapping value corresponding to the 32-bit data packet, The 18 bits of the difference between the pixel value of the three pixel points other than the minimum pixel value and the minimum pixel value in the 2 x 2 pixel block are divided into three fixed length bits;
- the obtaining module 1204 is further configured to obtain, in the second 2 pixel block, the minimum pixel value. The number of bits of the difference between the pixel value of each pixel other than the minimum pixel value.
- the apparatus may further include:
- the reading module 1202 is further configured to: when the mapping value corresponding to the 32-bit data packet is greater than or equal to the first preset threshold, read the first 24 bits of the 32-bit data packet;
- a second dividing module 1205, configured to divide the first 24 bits of the 32-bit data packet into three bit numbers having a length of 8 bits;
- the second shifting module 1206 is configured to shift the three bit numbers of the length of 8 bits to the left by two digits; the obtaining module 1204 is further configured to obtain the first three pixels of the 32-bit data packet. Pixel value;
- the reading module 1202 is further configured to read a bit length of 7 bits in the 32-bit data packet;
- the second shifting module 1206 is further configured to shift the number of bits of 7 bits to the left by three bits to obtain a pixel value of a last pixel of the 32-bit data packet.
- the obtaining module 1204 is further configured to obtain a pixel value of a last pixel of the 32-bit data packet.
- the reference frame decompression device reads the number of bits of the 32-bit data packet as 10 bits if the mapping value corresponding to the 32-bit data packet is smaller than the first preset threshold.
- a minimum pixel value of a pixel included in the 2 x 2 pixel block read in a fixed number of bits less than 8 bits for indicating three pixels in the 2 x 2 pixel block other than the minimum pixel value 18 bits of a difference between a pixel value of the point and the minimum pixel value, according to the pixel value used to represent each pixel point except the minimum pixel value in the 2 x 2 pixel block
- the number of bits of the difference between the minimum pixel values, and the position information of each pixel point other than the minimum pixel value in the 2 x 2 pixel block, obtained in the 2 x 2 pixel block The pixel value of each pixel except the minimum pixel value.
- the reference frame decompression device provided by the embodiment of the present invention reduces the unit memory access bandwidth and reduce
- the reference frame compression and decompression apparatus provided by the embodiment of the present invention may implement the foregoing method embodiment.
- the reference frame compression and decompression method and apparatus provided by the embodiments of the present invention may be applied to reference frame compression, but are not limited thereto.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
本发明实施例公开了一种参考帧压缩和解压方法及装置,该方法包括:以2x2像素块为基本单元,将参考帧划分为多个2x2像素块;计算各2x2像素块包括的像素点的最大像素值与最小像素值之间的差值;若所述2x2像素块包括的像素点的最大像素值与最小像素值之间的差值小于第一预设阈值,将所述2x2像素块中除所述最小像素值以外的每个像素点的像素值与所述2x2像素块包括的像素点的最小像素值之间的差值以少于8比特的固定比特位数表示;将所述2x2像素块封装为长度为32比特的数据包,将所述32比特的数据包发送到接收端。本发明适用于视频压缩技术领域中的参考帧压缩。
Description
一种参考帧压缩和解压方法及装置
本申请要求于 2011 年 07 月 01 日提交中国专利局、 申请号为 201110184522.8、 发明名称为 "一种参考帧压缩和解压方法及装置" 的中国专 利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及视频压缩技术领域,特别涉及一种参考帧压缩和解压方法及装 置。 背景技术
视频信号的传输由于信息量大, 特别是当视频信号以大于 8比特位数表示 时, 传输宽带要求高, 如果直接对视频信号进行传输, 以现在的传输宽带来看 4艮难达到, 所以就要求我们在视频信号传输前先进行压缩编码, 即进行视频源 压缩编码, 然后再传送以节省带宽和存储空间。通常在视频信号传输的发送端 和接收端会有视频编码器 /视频解码器, 应用视频编解码技术对视频信号进行 编解码处理。 这里的发送端或者接收端可以是移动电话, 数字电话终端, 无线 装置, 个人数据助理(PDA ), 手持式或便携式计算机, GPS接收机 /导航器, 照相机, 音频 /视频播放器, 摄像机, 录像机, 监控设备等大量统计表明, 同 一幅图像中的像素之间有很强的相关性, 两个像素值之间的差值越小, 则两个 像素之间的相关性越强。
在 HEVC ( High Efficiency Video Coding, 高效视频编码 )编码技术中, IBDI ( Internal Bit-Depth Increase, 编码过程内部比特深度提高 )技术带来了编 码效率的提高, 但是也造成了内存访问带宽的大幅增加。
现有技术中针对 4x 4的像素块为最小单位进行计算, 根据 4 x 4像素块的最 大值与最小值之间差值 d的大小, 进行不同的处理。先用 7比特有失真的表示最 小值, 当 4x 4像素块的最大值与最小值之间差值 d<128=27时, 可以使用 7bit无 失真地表示每个像素值与最小值之间的差值; 当(1≥128且(1<256时, 通过有失 真的表示方法对各像素值进行表达, 并使用 1个移位补偿; 当(1≥256时, 对每 个像素值进行移 2位的操作。
在实现本发明的过程中, 发明人发现现有技术中至少存在如下问题: 现有技术中的视频编码标准以 4x 4的像素块为最小单位, 整个封装包需要 占用 128bit, 单位内存访问带宽较大, 随机访问冗余较大; 而且 4x 4的像素块 包括 16个像素, 各像素间具有较大差值的可能性较大, 精度损失也较大。 发明内容
本发明的实施例提供一种参考帧压缩和解压方法及装置,以降低单位内存 访问带宽, 减少随机访问冗余和平均精度的损失。
本发明实施例采用的技术方案为:
一种参考帧压缩方法, 包括:
以 X 2像素块为基本单元, 将参考帧划分为多个 2 X 2像素块;
计算各 2x 2像素块包括的像素点的最大像素值与最小像素值之间的差值; 若所述 2χ 2像素块包括的像素点的最大像素值与最小像素值之间的差值 小于第一预设阈值, 将所述 2x 2像素块中除所述最小像素值以外的每个像素点 的像素值与所述 2x 2像素块包括的像素点的最小像素值之间的差值以少于 8比 特的固定比特位数表示;
将所述 2χ 2像素块封装为长度为 32比特的数据包, 所述 32比特的数据包包 括用于无失真地表示所述最小像素值的固定 10比特、用于表示所述最小像素值 的位置信息的 2比特、 用于表示所述 2x 2像素块中除所述最小像素值以外的三 个像素点的像素值与所述最小像素值之间的差值的 18比特、 以及 2比特的相关 标记信息;
将所述 32比特的数据包发送到接收端。
一种参考帧压缩装置, 包括:
第一划分模块, 用于以 2x 2像素块为基本单元, 将参考帧划分为多个 2x 2 像素块;
计算模块, 用于计算各 2x 2像素块包括的像素点的最大像素值与最小像素 值之间的差值;
表示模块, 用于当所述 2χ 2像素块包括的像素点的最大像素值与最小像素 值之间的差值小于第一预设阈值时, 将所述 2χ 2像素块中除所述最小像素值以
外的每个像素点的像素值与所述 2 X 2像素块包括的像素点的最小像素值之间 的差值以少于 8比特的固定比特位数表示;
封装模块, 用于将所述 2x 2像素块封装为长度为 32比特的数据包, 所述 32 比特的数据包包括用于无失真地表示所述最小像素值的固定 10比特、用于表示 所述最小像素值的位置信息的 2比特、 用于表示所述 2 x 2像素块中除所述最小 像素值以外的三个像素点的像素值与所述最小像素值之间的差值的 18比特、以 及 2比特的相关标记信息;
发送模块, 用于将所述 32比特的数据包发送到接收端。
一种参考帧解压方法, 包括:
接收发送端发送的将参考帧中包括的 2 x 2像素块压缩后的 32比特的数据 包;
读取所述 32比特的数据包的相关标记信息,并根据所述 32比特的数据包的 相关标记信息, 计算所述 32比特的数据包对应的映射值;
若所述 32比特的数据包对应的映射值小于第一预设阈值,读取所述 32比特 的数据包中长度为固定 10比特的比特数,所述长度为 10比特的比特数无失真地 表示所述 2x 2像素块包括的像素点的最小像素值;
读取所述 32比特的数据包中用于表示所述最小像素值的位置信息的长度 为 2比特的比特数, 根据所述用于表示所述最小像素值的位置信息的长度为 2 比特的比特数, 获得所述 2x 2像素块中除所述最小像素值以外的每个像素点的 位置信息;
按照少于 8比特的固定比特位数读取用于表示所述 2 X 2像素块中除所述最 Ί、像素值以外的三个像素点的像素值与所述最小像素值之间的差值的 18比特, 获得用于表示所述 2 x 2像素块中除所述最小像素值以外的每个像素点的像素 值与所述最 d、像素值之间的差值的比特数;
根据所述用于表示所述 2 x 2像素块中除所述最小像素值以外的每个像素 点的像素值与所述最小像素值之间的差值的比特数, 以及所述 2x 2像素块中除 所述最小像素值以外的每个像素点的位置信息, 获得所述 2x 2像素块中除所述 最 d、像素值以外的每个像素点的像素值。
一种参考帧解压装置, 包括:
接收模块, 用于接收发送端发送的将参考帧中包括的 2x 2像素块压缩后的
32比特的数据包;
读取模块, 用于读取所述 32比特的数据包的相关标记信息;
计算模块, 用于根据所述 32比特的数据包的相关标记信息, 计算所述 32 比特的数据包对应的映射值;
所述读取模块,还用于当所述 32比特的数据包对应的映射值小于第一预设 阈值时, 读取所述 32比特的数据包中长度为 10比特的比特数, 所述长度为 10 比特的比特数无失真地表示所述 2x 2像素块包括的像素点的最小像素值;
所述读取模块,还用于读取所述 32比特的数据包中用于表示所述最小像素 值的位置信息的长度为 2比特的比特数;
获得模块, 用于根据所述用于表示所述最小像素值的位置信息的长度为 2 比特的比特数, 获得所述 2x 2像素块中除所述最小像素值以外的每个像素点的 位置信息;
所述读取模块, 还用于按照少于 8比特的固定比特位数读取用于表示所述 2 x 2像素块中除所述最小像素值以外的三个像素点的像素值与所述最小像素 值之间的差值的 18比特;
所述获得模块, 还用于获得用于表示所述 2 x 2像素块中除所述最小像素值 以外的每个像素点的像素值与所述最小像素值之间的差值的比特数;
所述获得模块, 还用于根据所述用于表示所述 2x 2像素块中除所述最小像 素值以外的每个像素点的像素值与所述最 d、像素值之间的差值的比特数,以及 所述 2 x 2像素块中除所述最小像素值以外的每个像素点的位置信息, 获得所述 2 X 2像素块中除所述最 d、像素值以外的每个像素点的像素值。
本发明实施例提供的一种考帧压缩和解压方法及装置, 以 2 x 2像素块为基 本单元, 将 2x 2像素块封装为长度为 32比特的数据包。 和现有技术相比, 本发 明实施例提供的参考帧压缩和解压方法及装置, 以 2x 2的像素块为基本单位, 像素块封装的数据包长度为 32比特,可以降低单位内存访问带宽, 减少随机访 问冗余和平均精度的损失。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技 术描述中所需要使用的附图作筒单地介绍,显而易见地, 下面描述中的附图仅 仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳 动的前提下, 还可以根据这些附图获得其它的附图。
图 1为本发明实施例一提供的方法流程图;
图 2为本发明实施例二提供的方法流程图;
图 3为本发明实施例三提供的方法流程图;
图 4为本发明实施例四提供的方法流程图;
图 5为本发明实施例五提供的方法流程图;
图 6为本发明实施例六提供的方法流程图;
图 7为本发明实施例七提供的装置结构示意图;
图 8为本发明实施例七提供的装置结构示意图;
图 9为本发明实施例八提供的方法流程图;
图 10为本发明实施例九提供的方法流程图;
图 11为本发明实施例十提供的方法流程图;
图 12为本发明实施例十一提供的装置结构图;
图 13为本发明实施例十一提供的装置结构图。 具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有做出创造 性劳动前提下所获得的所有其它实施例, 都属于本发明保护的范围。
为使本发明技术方案的优点更加清楚,下面结合附图和实施例对本发明作 详细说明。
数字信号处理领域, 视频编解码器广泛应用于各种电子设备中, 例如: 移 动电话, 无线装置, 个人数据助理(PDA ), 手持式或便携式计算机, GPS接 收机 /导航器, 照相机, 音频 /视频播放器, 摄像机, 录像机, 监控设备等。 通
常, 这类电子设备中包括视频编码器或视频解码器,视频编码器或视频解码器 可以直接由数字电路或芯片例如 DSP ( digital signal processor )实现, 或者由软 件代码驱动处理器执行软件代码中的流程而实现。 实施例一
本实施例提供一种参考帧压缩方法, 如图 1所示, 所述方法包括:
101、 以 2x 2像素块为基本单元, 将参考帧划分为多个 2x 2像素块; 102、 计算各 2 X 2像素块包括的像素点的最大像素值与最小像素值之间的 差值;
103、 若所述 2 x 2像素块包括的像素点的最大像素值与最小像素值之间的 差值小于第一预设阈值, 将所述 2 X 2像素块中除所述最 d、像素值以外的每个像 素点的像素值与所述 2 χ 2像素块包括的像素点的最小像素值之间的差值以少 于 8比特的固定比特位数表示;
该固定比特位数指一个 2χ 2像素块中, 采用相同的比特数表示除最小像素 值以外的 3个像素点的像素值与最小像素值之前的差值。 在一个实施例中, 该 固定比特位数可以为 6比特。 第一预设阈值为 128 (即 27 )。
104、 将所述 2 x 2像素块封装为长度为 32比特的数据包, 所述 32比特的数 据包包括用于无失真地表示所述最小像素值的固定 10比特、用于表示所述最小 像素值的位置信息的 2比特、 用于表示所述 2 x 2像素块中除所述最小像素值以 外的三个像素点的像素值与所述最小像素值之间的差值的 18比特、 以及 2比特 的相关标记信息;
相关标记信息用于表示 18比特表示的差值的分段,通过相关标记信息可以 知道这 18比特中哪些比特分别表示除最小像素值以外的三个像素点中每一个 像素点的像素值与所述最小像素值之间的差值。
105、 将所述 32比特的数据包发送到接收端。
本发明实施例提供的参考帧压缩方法, 以 2 x 2像素块为基本单元, 将参考 帧划分为多个 2 x 2像素块, 在 2 x 2像素块包括的像素点的最大像素值与最小像 素值之间的差值小于第一预设阈值时, 将所述 2 X 2像素块中除所述最小像素值 以外的每个像素点的像素值与最 d、像素值之间的差值以少于 8比特的固定比特
位数表示,将所述 2x2像素块封装为长度为 32比特的数据包。和现有技术相比, 本发明实施例提供的参考帧压缩方法, 以 2x2的像素块为基本单位, 封装得到 的数据包为 32比特, 可以降低单位内存访问带宽, 减少随机访问冗余和平均精 度的损失。 实施例二
本实施例提供一种参考帧压缩方法, 如图 2所示, 所述方法包括:
201、 以 2x2像素块为基本单元, 将参考帧划分为多个 2x2像素块;
202、 计算各 2 X 2像素块包括的像素点的最大像素值与最小像素值之间的 差值;
203、 当所述 2 X 2像素块包括的像素点的最大像素值与最 d、像素值之间的 差值小于第二预设阈值时, 直接将所述 2 X 2像素块中除所述最 d、像素值以外的 每个像素点的像素值与所述 2χ 2像素块包括的像素点的最小像素值之间的差 值以少于 8比特的固定比特位数表示,其中, 所述第二阈值小于所述第一阈值; 第二预设阈值可以为 64 (即 26 )„
204、 将所述 2x2像素块封装为长度为 32比特的数据包, 所述 32比特的数 据包包括用于无失真地表示所述最小像素值的固定 10比特、用于表示所述最小 像素值的位置信息的 2比特、 用于表示所述 2x2像素块中除所述最小像素值以 外的三个像素点的像素值与所述最小像素值之间的差值的 18比特、 以及 2比特 的相关标记信息;
205、 将所述 32比特的数据包发送到所述接收端。
例如, 以 2x2像素块为基本单元, 将参考帧划分为多个 2x2像素块, 计算 各 2 X 2像素块包括的像素点的最大像素值与最小像素值之间的差值 d, 当所述 2x2像素块包括的像素点的最大像素值与最小像素值之间的差值小于 26时, 直 接将所述 2x2像素块中除所述最小像素值以外的每个像素点的像素值与所述 2 X 2像素块包括的像素点的最小像素值之间的差值以 6比特位数表示, 根据计 算结果: 2 ( flag ) +10 ( min ) +2 ( minldx ) +6><3 ( difference ) =32, 将所述 2χ2 像素块封装为长度为 32比特的数据包, 其中, flag表示相关标记信息, min表示 所述 2x2像素块包括的像素点的最小像素值, minldx表示所述最小像素值的位
置信息, difference表示所述 2x 2像素块包括的像素点的最大像素值与最小像素 值之间的差值, 将所述 32比特的数据包发送到所述接收端。
本发明实施例提供的参考帧压缩方法, 以 2x 2像素块为基本单元, 将参考 帧划分为多个 2x 2像素块, 当 2x 2像素块包括的像素点的最大像素值与最小像 素值之间的差值小于第二预设阈值时, 直接将所述 2 X 2像素块中除所述最 d、像 素值以外的每个像素点的像素值与所述 2 X 2像素块包括的像素点的最小像素 值之间的差值 6比特表示, 将所述 2χ 2像素块封装为长度为 32比特的数据包。 和现有技术相比, 本发明实施例提供的参考帧压缩方法, 以 2x 2的像素块为基 本单位, 可以降低单位内存访问带宽, 减少随机访问冗余和平均精度的损失。
当采用此方法是由于最小值是无失真的,同时每个差值使用 6个比特编码, 也无失真, 因此可以完全无失真的恢复此 2x 2像素块。 实施例三
本实施例提供一种参考帧压缩方法, 如图 3所示, 所述方法包括:
301、 以 2x 2像素块为基本单元, 将参考帧划分为多个 2x 2像素块;
302、 计算各 2x 2像素块包括的像素点的最大像素值与最小像素值之间的 差值;
303、 当所述 2χ 2像素块包括的像素点的最大像素值与最小像素值之间的 差值大于或等于第二预设阈值(此阈值是 64 )且小于第一预设阈值( 128 )时, 将用于表示所述 2 x 2像素块中除所述最小像素值以外的每个像素点的像素值 与所述 2 x 2像素块包括的像素点的最小像素值之间的差值的比特数向右移位 后以少于 8比特的固定比特位数表示;
304、 将所述 2x 2像素块封装为长度为 32比特的数据包, 所述 32比特的数 据包包括用于无失真地表示所述最小像素值的固定 10比特、用于表示所述最小 像素值的位置信息的 2比特、 用于表示所述 2x 2像素块中除所述最小像素值以 外的三个像素点的像素值与所述最小像素值之间的差值的 18比特、 以及 2比特 的相关标记信息;
305、 将所述 32比特的数据包发送到所述接收端。
例如, 以 2x 2像素块为基本单元, 将参考帧划分为多个 2x 2像素块, 计算
各 2 x 2像素块包括的像素点的最大像素值与最小像素值之间的差值 d, 当
26≤d<27时, 将用于表示所述 2x2像素块中除所述最小像素值以外的每个像素 点的像素值与所述 2x2像素块包括的像素点的最小像素值之间的差值的 7比特 右移 1位,以固定 6比特位数表示,根据计算结果: 2( flag )+10( min )+2( minldx ) +6x3 (difference) =32, 将所述 2><2像素块封装为长度为 32比特的数据包, 其 中, flag表示相关标记信息, min表示所述 2x2像素块包括的像素点的最小像素 值, minldx表示所述最小像素值的位置信息, difference表示所述 2 χ 2像素块包 括的像素点的最大像素值与最小像素值之间的差值,将所述 32比特的数据包发 送到所述接收端。
本发明实施例提供的参考帧压缩方法, 当所述 2x2像素块包括的像素点的 最大像素值与最小像素值之间的差值大于或等于第二预设阈值且小于第一预 设阈值时, 将用于表示所述 2x2像素块中除所述最小像素值以外的每个像素点 的像素值与所述 2x2像素块包括的像素点的最小像素值之间的差值的比特数 向右移位后以少于 8比特的固定比特位数表示, 将所述 2χ 2像素块封装为长度 为 32比特的数据包,将所述 32比特的数据包发送到所述接收端。和现有技术相 比, 本发明实施例提供的参考帧压缩方法, 以 2x2的像素块为基本单位, 可以 降低单位内存访问带宽, 减少随机访问冗余和平均精度的损失。
当采用此方法时由于最小值是无失真的,同时每个差值采用 6个比特编码, 带来部分失真, 因此可以较高精度的恢复此 2x2像素块。 实施例四
本实施例提供一种参考帧压缩方法, 如图 4所示, 所述方法包括:
401、 以 2x2像素块为基本单元, 将参考帧划分为多个 2x2像素块;
402、 计算各 2 X 2像素块包括的像素点的最大像素值与最小像素值之间的 差值;
403、 若所述 2x2像素块包括的像素点的最大像素值与最小像素值之间的 差值大于或等于第一预设阈值(128 ), 将用于表示所述 2x2像素块的前三个像 素点的像素值的比特数右移两位, 将用于表示所述 2x2像素块的最后一个像素 点的像素值的比特数右移三位;
404、 将所述 2x2像素块封装为长度为 32比特的数据包, 所述 32比特的数 据包包括用于表示向右移位后的所述 2x2像素块的每个像素点的像素值的比 特数、 以及 1比特的相关标记信息;
405、 将所述 32比特的数据包发送到所述接收端。
例如, 以 2x2像素块为基本单元, 将参考帧划分为多个 2x2像素块, 计算 各 2 X 2像素块包括的像素点的最大像素值与最 d、像素值之间的差值 d, 当 d≥ 27 时, 将用于表示所述 2χ 2像素块的前三个像素点的像素值的比特数右移两位, 将用于表示所述 2x2像素块的最后一个像素点的像素值的比特数右移三位, 根 据计算结果: 1 (flag) +8x3 ( pixel value ) +7 ( pixel value ) =32, 将所述 2x2 像素块封装为长度为 32比特的数据包,其中, flag表示相关标记信息, pixel value 表示向右移位后的用于表示所述 2χ2像素块包括的像素点的像素值的比特数, 将所述 32比特的数据包发送到所述接收端。
本发明实施例提供的参考帧压缩方法, 若所述 2x2像素块包括的像素点的 最大像素值与最小像素值之间的差值大于或等于第一预设阈值,将用于表示所 述 2x2像素块的前三个像素点的像素值的比特数右移两位, 将用于表示所述 2x2像素块的最后一个像素点的像素值的比特数右移三位, 将所述 2x2像素块 封装为长度为 32比特的数据包,所述 32比特的数据包包括用于表示向右移位后 的所述 2 X 2像素块的每个像素点的像素值的比特数、 以及 1比特的相关标记信 息, 将所述 32比特的数据包发送到所述接收端。 和现有技术相比, 本发明实施 例提供的参考帧压缩方法, 以 2x2的像素块为基本单位, 可以降低单位内存访 问带宽, 减少随机访问冗余和平均精度的损失。 实施例五
本实施例提供一种参考帧压缩方法, 如图 5所示, 所述方法包括:
501、 以 2x2像素块为基本单元, 将参考帧划分为多个 2x2像素块;
502、 计算各 2x2像素块包括的像素点的最大像素值与最小像素值之间的 差值;
503、 当所述 2x2像素块包括的像素点的最大像素值与最小像素值之间的 差值大于或等于第一预设阈值且小于第三预设阈值时, 将用于表示所述 2x2像
素块中除所述最小像素值以外的每个像素点的像素值与所述 2x2像素块包括 的像素点的最小像素值之间的差值的比特数向右移位, 将用于表示所述 2x2像 素块中除所述最小像素值以外的每个像素点的像素值与所述 2x2像素块包括 的像素点的最小像素值之间的差值以少于 8比特的固定比特位数表示;
第三预设阈值可以为 256 (即 28)。
504、 将所述 2x2像素块封装为长度为 32比特的数据包, 所述 32比特的数 据包包括用于无失真地表示所述最小像素值的固定 10比特、用于表示所述最小 像素值的位置信息的 2比特、 用于表示所述 2x2像素块中除所述最小像素值以 外的三个像素点的像素值与所述最小像素值之间的差值的 18比特、 以及 2比特 的相关标记信息;
505、 将所述 32比特的数据包发送到所述接收端。
本发明实施例提供的参考帧压缩方法, 当所述 2x2像素块包括的像素点的 最大像素值与最小像素值之间的差值大于或等于第一预设阈值且小于第三预 设阈值(此阈值是 256 ) 时, 将用于表示所述 2x2像素块中除所述最小像素值 以外的每个像素点的像素值与所述 2x2像素块包括的像素点的最小像素值之 间的差值的比特数向右移位, 将用于表示所述 2x2像素块中除所述最小像素值 以外的每个像素点的像素值与所述 2 X 2像素块包括的像素点的最小像素值之 间的差值以少于 8比特的固定比特位数表示, 将所述 2χ 2像素块封装为长度为 32比特的数据包,所述 32比特的数据包包括用于无失真地表示所述最小像素值 的固定 10比特、 用于表示所述最小像素值的位置信息的 2比特、 用于表示所述 2x2像素块中除所述最小像素值以外的三个像素点的像素值与所述最小像素 值之间的差值的 18比特、 以及 2比特的相关标记信息, 将所述 32比特的数据包 发送到所述接收端。 和现有技术相比, 本发明实施例提供的参考帧压缩方法, 以 2x2的像素块为基本单位, 可以降低单位内存访问带宽, 减少随机访问冗余 和平均 4青度的损失。 实施例六
本实施例提供一种参考帧压缩方法, 如图 6所示, 所述方法包括:
601、 以 2x2像素块为基本单元, 将参考帧划分为多个 2x2像素块;
602、 计算各 2 χ 2像素块包括的像素点的最大像素值与最小像素值之间的 差值;
603、 当所述 2 X 2像素块包括的像素点的最大像素值与最 d、像素值之间的 差值大于或等于第三预设阈值时, 将用于表示所述 2x2像素块的每个像素点的 像素值的比特数右移三位;
604、 将所述 2x2像素块封装为长度为 32比特的数据包, 所述 32比特的数 据包包括用于表示向右移位后的所述 2x2像素块的每个像素点的像素值的比 特数、 2比特的相关标记信息以及 2比特的补偿信息;
605、 将所述 32比特的数据包发送到所述接收端。
例如, 以 2x2像素块为基本单元, 将参考帧划分为多个 2x2像素块, 计算 各 2x2像素块包括的像素点的最大像素值与最小像素值之间的差值 d, 当 d≥2s 时, 将用于表示所述 2x2像素块的每个像素点的像素值的比特数右移三位, 根 据计算结果: 2 (flag) +7x4 ( pixel value ) +2 ( offset ) =32, 将所述 2x2像素 块封装为长度为 32比特的数据包, 其中, flag表示相关标记信息, pixel value 表示向右移位后的用于表示所述 2x2像素块包括的像素点的像素值的比特 数, offset表示补偿信息, 将所述 32比特的数据包发送到所述接收端。
本发明实施例提供的参考帧压缩方法, 当所述 2x2像素块包括的像素点的 最大像素值与最小像素值之间的差值大于或等于第三预设阈值时,将用于表示 所述 2 X 2像素块的每个像素点的像素值的比特数右移三位, 将所述 2 X 2像素块 封装为长度为 32比特的数据包,所述 32比特的数据包包括用于表示向右移位后 的所述 2x2像素块的每个像素点的像素值的比特数、 2比特的相关标记信息以 及 2比特的补偿信息, 将所述 32比特的数据包发送到所述接收端。 和现有技术 相比, 本发明实施例提供的参考帧压缩方法, 以 2x2的像素块为基本单位, 可 以降低单位内存访问带宽, 减少随机访问冗余和平均精度的损失。 实施例七
本实施例提供一种参考帧压缩装置, 如图 7所示, 所述装置包括: 第一划分模块 701, 用于以 2x2像素块为基本单元, 将参考帧划分为多个 2x2像素块;
计算模块 702, 用于计算各 2x2像素块包括的像素点的最大像素值与最小 像素值之间的差值;
表示模块 703, 用于当所述 2 X 2像素块包括的像素点的最大像素值与最小 像素值之间的差值小于第一预设阈值时, 将所述 2x2像素块中除所述最小像素 值以外的每个像素点的像素值与所述 2 X 2像素块包括的像素点的最小像素值 之间的差值以少于 8比特的固定比特位数表示;
封装模块 704, 用于将所述 2x2像素块封装为长度为 32比特的数据包, 所 述 32比特的数据包包括用于无失真地表示所述最小像素值的固定 10比特、用于 表示所述最小像素值的位置信息的 2比特、 用于表示所述 2x2像素块中除所述 最小像素值以外的三个像素点的像素值与所述最小像素值之间的差值的 18比 特、 以及 2比特的相关标记信息;
发送模块 705, 用于将所述 32比特的数据包发送到接收端。
进一步的, 如图 8所示, 所述表示模块 703包括:
第一表示单元 7031, 用于当所述 2x2像素块包括的像素点的最大像素值与 最小像素值之间的差值小于第二预设阈值时, 直接将所述 2x2像素块中除所述 最小像素值以外的每个像素点的像素值与所述 2 X 2像素块包括的像素点的最 小像素值之间的差值以少于 8比特的固定比特位数表示, 其中, 所述第二阈值 小于所述第一阈值;
第二表示单元 7032, 用于当所述 2x2像素块包括的像素点的最大像素值与 最小像素值之间的差值大于或等于第二预设阈值且小于第一预设阈值时,将用 于表示所述 2x2像素块中除所述最小像素值以外的每个像素点的像素值与所 述 2χ 2像素块包括的像素点的最小像素值之间的差值的比特数进行移位后以 少于 8比特的固定比特位数表示。
进一步的, 如图 8所示, 所述装置还可以包括:
第一移位模块 706, 用于当所述 2x2像素块包括的像素点的最大像素值与 最小像素值之间的差值大于或等于第一预设阈值时, 将用于表示所述 2x2像素 块的前三个像素点的像素值的比特数右移两位, 将用于表示所述 2x2像素块的 最后一个像素点的像素值的比特数右移三位;
所述封装模块 704, 还用于将所述 2x2像素块封装为长度为 32比特的数据
包, 所述 32比特的数据包包括用于表示向右移位后的所述 2x2像素块的每个像 素点的像素值的比特数、 以及 1比特的相关标记信息;
所述发送模块 705, 还用于将所述 32比特的数据包发送到所述接收端。 进一步的, 所述装置还可以包括:
所述第一移位模块 706, 还用于当所述 2x2像素块包括的像素点的最大像 素值与最小像素值之间的差值大于或等于第一预设阈值且小于第三预设阈值 时, 将用于表示所述 2x2像素块中除所述最小像素值以外的每个像素点的像素 值与所述 2x2像素块包括的像素点的最小像素值之间的差值的比特数向右移 位;
则所述表示模块 703, 还用于将用于表示所述 2x2像素块中除所述最小像 素值以外的每个像素点的像素值与所述 2 X 2像素块包括的像素点的最小像素 值之间的差值以少于 8比特的固定比特位数表示;
所述封装模块 704, 还用于将所述 2x2像素块封装为长度为 32比特的数据 包, 所述 32比特的数据包包括用于无失真地表示所述最小像素值的固定 10比 特、 用于表示所述最小像素值的位置信息的 2比特、 用于表示所述 2x2像素块 中除所述最小像素值以外的三个像素点的像素值与所述最小像素值之间的差 值的 18比特、 以及 2比特的相关标记信息;
所述发送模块 705, 还用于将所述 32比特的数据包发送到所述接收端。 进一步的, 所述装置还可以包括:
所述第一移位模块 706, 还用于当所述 2x2像素块包括的像素点的最大像 素值与最小像素值之间的差值大于或等于第三预设阈值时, 将用于表示所述 2 X 2像素块的每个像素点的像素值的比特数右移三位;
所述封装模块 704, 还用于将所述 2x2像素块封装为长度为 32比特的数据 包, 所述 32比特的数据包包括用于表示向右移位后的所述 2x2像素块的每个像 素点的像素值的比特数、 2比特的相关标记信息以及 2比特的补偿信息;
所述发送模块 705, 还用于将所述 32比特的数据包发送到所述接收端。 本发明实施例提供的参考帧压缩装置, 以 2x2像素块为基本单元, 将参考 帧划分为多个 2x2像素块, 计算各 2x2像素块包括的像素点的最大像素值与最 小像素值之间的差值, 若所述 2x2像素块包括的像素点的最大像素值与最小像
素值之间的差值小于第一预设阈值, 将所述 2 X 2像素块中除所述最 d、像素值以 外的每个像素点的像素值与所述 2 X 2像素块包括的像素点的最小像素值之间 的差值以少于 8比特的固定比特位数表示, 将所述 2 x 2像素块封装为长度为 32 比特的数据包。和现有技术相比,本发明实施例提供的参考帧压缩装置,以 2x 2 的像素块为基本单位, 可以降低单位内存访问带宽, 减少随机访问冗余和平均 精度的损失。 实施例八
本实施例提供一种参考帧解压方法, 如图 9所示, 所述方法包括:
901、 接收发送端发送的将参考帧中包括的 2 x 2像素块压缩后的 32比特的 数据包;
902、 读取所述 32比特的数据包的相关标记信息, 并根据所述 32比特的数 据包的相关标记信息, 计算所述 32比特的数据包对应的映射值;
903、 若所述 32比特的数据包对应的映射值小于第一预设阈值, 读取所述 32比特的数据包中长度为固定 10比特的比特数,所述长度为 10比特的比特数无 失真地表示所述 2x 2像素块包括的像素点的最小像素值;
904、 读取所述 32比特的数据包中用于表示所述最小像素值的位置信息的 长度为 2比特的比特数, 根据所述用于表示所述最小像素值的位置信息的长度 为 2比特的比特数, 获得所述 2 x 2像素块中除所述最小像素值以外的每个像素 点的位置信息;
905、 按照少于 8比特的固定比特位数读取用于表示所述 2x 2像素块中除所 述最小像素值以外的三个像素点的像素值与所述最小像素值之间的差值的 18 比特, 获得用于表示所述 2x 2像素块中除所述最小像素值以外的每个像素点的 像素值与所述最小像素值之间的差值的比特数;
906、 根据所述用于表示所述 2 x 2像素块中除所述最小像素值以外的每个 像素点的像素值与所述最小像素值之间的差值的比特数, 以及所述 2x 2像素块 中除所述最小像素值以外的每个像素点的位置信息, 获得所述 2 X 2像素块中除 所述最小像素值以外的每个像素点的像素值。
本发明实施例提供的参考帧解压方法,若所述 32比特的数据包对应的映射
值小于第一预设阈值,读取所述 32比特的数据包中长度为固定 10比特的比特数 作为所述 2 x 2像素块包括的像素点的最小像素值, 按照少于 8比特的固定比特 位数读取用于表示所述 2 x 2像素块中除所述最小像素值以外的三个像素点的 像素值与所述最小像素值之间的差值的 18比特, 根据所述用于表示所述 2x 2像 素块中除所述最小像素值以外的每个像素点的像素值与所述最小像素值之间 的差值的比特数, 以及所述 2x 2像素块中除所述最小像素值以外的每个像素点 的位置信息, 获得所述 2 x 2像素块中除所述最小像素值以外的每个像素点的像 素值。 和现有技术相比, 本发明实施例提供的参考帧解压方法, 以 2 x 2的像素 块为基本单位, 可以降低单位内存访问带宽, 减少随机访问冗余和平均精度的 损失。 实施例九
本实施例提供一种参考帧解压方法, 如图 10所示, 所述方法包括:
1001、 接收发送端发送的将参考帧中包括的 2x 2像素块压缩后的 32比特的 数据包;
1002、读取所述 32比特的数据包的相关标记信息, 并根据所述 32比特的数 据包的相关标记信息, 计算所述 32比特的数据包对应的映射值;
1003、若所述 32比特的数据包对应的映射值大于或等于第二阈值且小于第 一预设阈值, 根据所述 32比特的数据包对应的映射值, 将用于表示所述 2x 2像 素块中除所述最小像素值以外的三个像素点的像素值与所述最小像素值之间 的差值的 18比特划分为三个固定长度的比特数;
1004、 将所述三个固定长度的比特数分别向左移位, 获得用于表示所述 2 x 2像素块中除所述最小像素值以外的每个像素点的像素值与所述最小像素 值之间的差值的比特数;
1005、 根据所述用于表示所述 2 x 2像素块中除所述最小像素值以外的每个 像素点的像素值与所述最小像素值之间的差值的比特数以及所述 2 X 2像素块 中除所述最小像素值以外的每个像素点的位置信息, 计算所述 2x 2像素块中除 所述最小像素值以外的每个像素点的像素值与所述最小像素值之间的差值; 1006、 将所述 2χ 2像素块中除所述最小像素值以外的每个像素点的像素值
与所述最小像素值之间的差值与所述最小像素值相加, 得到所述 2x 2像素块中 除所述最小像素值以外的每个像素点的像素值。
本发明实施例提供的参考帧解压方法,若所述 32比特的数据包对应的映射 值大于或等于第二阈值且小于第一预设阈值,根据所述 32比特的数据包对应的 映射值, 将用于表示所述 2x 2像素块中除所述最小像素值以外的三个像素点的 像素值与所述最小像素值之间的差值的 18比特划分为三个固定长度的比特数, 将所述三个固定长度的比特数分别向左移位, 获得用于表示所述 2x 2像素块中 除所述最小像素值以外的每个像素点的像素值与所述最小像素值之间的差值 的比特数, 根据所述用于表示所述 2x 2像素块中除所述最小像素值以外的每个 像素点的像素值与所述最小像素值之间的差值的比特数, 以及所述 2χ 2像素块 中除所述最小像素值以外的每个像素点的位置信息, 获得所述 2 X 2像素块中除 所述最小像素值以外的每个像素点的像素值。和现有技术相比, 本发明实施例 提供的参考帧解压方法, 以 2x 2的像素块为基本单位, 可以降低单位内存访问 带宽, 减少随机访问冗余和平均精度的损失。 实施例十
本实施例提供一种参考帧解压方法, 如图 11所示, 所述方法包括:
1101、 接收发送端发送的将参考帧中包括的 2x 2像素块压缩后的 32比特的 数据包;
1102、读取所述 32比特的数据包的相关标记信息, 并根据所述 32比特的数 据包的相关标记信息, 计算所述 32比特的数据包对应的映射值;
1103、若所述 32比特的数据包对应的映射值大于或等于第一预设阈值,读 取所述 32比特的数据包的前 24比特,将所述 32比特的数据包的前 24比特平均划 分为长度均为 8比特的三个比特数;
1104、 将所述长度为 8比特的三个比特数分别左移两位, 获得所述 32比特 的数据包的前三个像素点的像素值;
1105、读取所述 32比特的数据包中长度为 7比特的比特数, 将所述长度为 7 比特的比特数左移三位, 获得所述 32比特的数据包的最后一个像素点的像素 值。
例如, 所述 32比特的数据包的解压流程为:
读取参数 S
If ( s==2 )
For(i=0;i<3;i++) Pd[i]=p[i]«2;
Pel[3]=p[3]«3;
Else
{ 依次读取所述 32比特的数据包中的
lObit, 表示所述最小像素值 minmum,2比特最
小像素值的位置信息 minldx,并且依次读取三
个 6bit p[i];
For(i=0;i<3;i++)
Pel[i]=(p[i]«s)+minmum; 其中参数 s表示所述 32比特的数据包的标记信息映射值, p[i]表示从所述 32 比特的数据包中读取的用于表示所述 32比特的数据包中第 i个像素点的像素值 的比特数, pel[i]表示所述 32比特的数据包中第 i个像素点解码后的像素值。
本发明实施例提供的参考帧解压方法,若所述 32比特的数据包对应的映射 值大于或等于第一预设阈值,读取所述 32比特的数据包的前 24比特,将所述 32 比特的数据包的前 24比特平均划分为长度均为 8比特的三个比特数, 将所述长 度为 8比特的三个比特数分别左移两位, 获得所述 32比特的数据包的前三个像 素点的像素值, 读取所述 32比特的数据包中长度为 7比特的比特数, 将所述长 度为 7比特的比特数左移三位, 获得所述 32比特的数据包的最后一个像素点的 像素值。 和现有技术相比, 本发明实施例提供的参考帧解压方法, 以 2x 2的像 素块为基本单位,可以降低单位内存访问带宽, 减少随机访问冗余和平均精度 的损失。
实施例十一
本实施例提供一种参考帧解压装置, 如图 12所示, 所述装置包括: 接收模块 1201, 用于接收发送端发送的将参考帧中包括的 2x2像素块压缩 后的 32比特的数据包;
读取模块 1202, 用于读取所述 32比特的数据包的相关标记信息; 计算模块 1203, 用于根据所述 32比特的数据包的相关标记信息,计算所述 32比特的数据包对应的映射值;
所述读取模块 1202,还用于当所述 32比特的数据包对应的映射值小于第一 预设阈值时,读取所述 32比特的数据包中长度为固定 10比特的比特数, 所述长 度为 10比特的比特数无失真地表示所述 2x2像素块包括的像素点的最小像素 值;
所述读取模块 1202,还用于读取所述 32比特的数据包中用于表示所述最小 像素值的位置信息的长度为 2比特的比特数;
获得模块 1204,用于根据所述用于表示所述最小像素值的位置信息的长度 为 2比特的比特数, 获得所述 2x2像素块中除所述最小像素值以外的每个像素 点的位置信息;
所述读取模块 1202, 还用于按照少于 8比特的固定比特位数读取用于表示 所述 2x2像素块中除所述最小像素值以外的三个像素点的像素值与所述最小 像素值之间的差值的 18比特;
所述获得模块 1204, 还用于获得用于表示所述 2x2像素块中除所述最小像 素值以外的每个像素点的像素值与所述最 d、像素值之间的差值的比特数; 所述获得模块 1204, 还用于根据所述用于表示所述 2x2像素块中除所述最 小像素值以外的每个像素点的像素值与所述最小像素值之间的差值的比特数, 以及所述 2 X 2像素块中除所述最 d、像素值以外的每个像素点的位置信息, 获得 所述 2x2像素块中除所述最小像素值以外的每个像素点的像素值。
进一步的, 如图 13所示, 所述获得模块 1204包括:
计算单元 12041, 用于根据所述用于表示所述 2x2像素块中除所述最小像 素值以外的每个像素点的像素值与所述最小像素值之间的差值的比特数以及 所述 2x2像素块中除所述最小像素值以外的每个像素点的位置信息, 计算所述
2 x 2像素块中除所述最小像素值以外的每个像素点的像素值与所述最小像素 值之间的差值;
相加单元 12042 , 用于将所述 2 χ 2像素块中除所述最小像素值以外的每个 像素点的像素值与所述最小像素值之间的差值与所述最小像素值相加,得到所 述 2x 2像素块中除所述最小像素值以外的每个像素点的像素值。
进一步的, 如图 13所示, 所述获得模块 1204还包括:
划分单元 12043 , 用于当所述 32比特的数据包对应的映射值大于或等于第 二阈值且小于第一预设阈值时,根据所述 32比特的数据包对应的映射值,将用 于表示所述 2 x 2像素块中除所述最小像素值以外的三个像素点的像素值与所 述最小像素值之间的差值的 18比特划分为三个固定长度的比特数;
移位单元 12044 , 用于将所述三个固定长度的比特数分别向左移位; 则所述获得模块 1204 , 还用于获得用于表示所述 2x 2像素块中除所述最小 像素值以外的每个像素点的像素值与所述最小像素值之间的差值的比特数。
进一步的, 如图 13所示, 所述装置还可以包括:
所述读取模块 1202 ,还用于当所述 32比特的数据包对应的映射值大于或等 于第一预设阈值时, 读取所述 32比特的数据包的前 24比特;
第二划分模块 1205 ,用于将所述 32比特的数据包的前 24比特平均划分为长 度均为 8比特的三个比特数;
第二移位模块 1206 ,用于将所述长度为 8比特的三个比特数分别左移两位; 所述获得模块 1204 ,还用于获得所述 32比特的数据包的前三个像素点的像 素值;
所述读取模块 1202 , 还用于读取所述 32比特的数据包中长度为 7比特的比 特数;
所述第二移位模块 1206 , 还用于将所述长度为 7比特的比特数左移三位, 获得所述 32比特的数据包的最后一个像素点的像素值;
所述获得模块 1204 ,还用于获得所述 32比特的数据包的最后一个像素点的 像素值。
本发明实施例提供的参考帧解压装置,若所述 32比特的数据包对应的映射 值小于第一预设阈值,读取所述 32比特的数据包中长度为 10比特的比特数作为
所述 2 x 2像素块包括的像素点的最小像素值, 按照少于 8比特的固定比特位数 读取用于表示所述 2 x 2像素块中除所述最小像素值以外的三个像素点的像素 值与所述最小像素值之间的差值的 18比特, 根据所述用于表示所述 2 x 2像素块 中除所述最小像素值以外的每个像素点的像素值与所述最小像素值之间的差 值的比特数, 以及所述 2 x 2像素块中除所述最小像素值以外的每个像素点的位 置信息, 获得所述 2 x 2像素块中除所述最小像素值以外的每个像素点的像素 值。 和现有技术相比, 本发明实施例提供的参考帧解压装置, 以 2x 2的像素块 为基本单位, 可以降低单位内存访问带宽, 减少随机访问冗余和平均精度的损 失。
本发明实施例提供的参考帧压缩和解压装置可以实现上述提供的方法实 施例, 具体功能实现请参见方法实施例中的说明, 在此不再赘述。 本发明实施 例提供的参考帧压缩和解压方法及装置可以适用于参考帧压缩, 但不仅限于 此。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算 机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM )或随机存储记忆体(Random Access Memory, RAM )等。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于 此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围 应该以权利要求的保护范围为准。
Claims
1、 一种参考帧压缩方法, 其特征在于, 包括:
以 2x2像素块为基本单元, 将参考帧划分为多个 2x2像素块;
计算各 2x2像素块包括的像素点的最大像素值与最小像素值之间的差值; 若所述 2x2像素块包括的像素点的最大像素值与最小像素值之间的差值 小于第一预设阈值, 将所述 2x2像素块中除所述最小像素值以外的每个像素 点的像素值与所述 2x2像素块包括的像素点的最小像素值之间的差值以少于 8 比特的固定比特位数表示;
将所述 2x2像素块封装为长度为 32比特的数据包, 所述 32比特的数据 包包括用于无失真地表示所述最小像素值的固定 10比特、 用于表示所述最小 像素值的位置信息的 2比特、 用于表示所述 2x2像素块中除所述最小像素值 以外的三个像素点的像素值与所述最小像素值之间的差值的 18比特、 以及 2 比特的相关标记信息;
将所述 32比特的数据包发送到接收端。
2、 根据权利要求 1所述的方法, 其特征在于, 所述将所述 2x2像素块中 除所述最小像素值以外的每个像素点的像素值与所述 2x2像素块包括的像素 点的最小像素值之间的差值以少于 8比特的固定比特位数表示包括:
当所述 2x2像素块包括的像素点的最大像素值与最小像素值之间的差值 小于第二预设阈值时, 直接将所述 2x2像素块中除所述最小像素值以外的每 个像素点的像素值与所述 2x2像素块包括的像素点的最小像素值之间的差值 以少于 8比特的固定比特位数表示, 其中, 所述第二阈值小于所述第一阈值; 当所述 2x2像素块包括的像素点的最大像素值与最小像素值之间的差值 大于或等于第二预设阈值且小于第一预设阈值时, 将用于表示所述 2x2像素 块中除所述最小像素值以外的每个像素点的像素值与所述 2x2像素块包括的 像素点的最小像素值之间的差值的比特数向右移位后以少于 8 比特的固定比 特位数表示。
3、 根据权利要求 1所述的方法, 其特征在于, 还包括:
若所述 2x2像素块包括的像素点的最大像素值与最小像素值之间的差值 大于或等于第一预设阈值, 将用于表示所述 2x2像素块的前三个像素点的像 素值的比特数右移两位, 将用于表示所述 2x2像素块的最后一个像素点的像 素值的比特数右移三位;
将所述 2x2像素块封装为长度为 32比特的数据包, 所述 32比特的数据 包包括用于表示向右移位后的所述 2x2像素块的每个像素点的像素值的比特 数、 以及 1比特的相关标记信息。
4、 根据权利要求 1所述的方法, 其特征在于, 还包括:
当所述 2x2像素块包括的像素点的最大像素值与最小像素值之间的差值 大于或等于第一预设阈值且小于第三预设阈值时, 将用于表示所述 2x2像素 块中除所述最小像素值以外的每个像素点的像素值与所述 2x2像素块包括的 像素点的最小像素值之间的差值的比特数向右移位, 将用于表示所述 2x2像 素块中除所述最小像素值以外的每个像素点的像素值与所述 2x2像素块包括 的像素点的最小像素值之间的差值以少于 8比特的固定比特位数表示;
将所述 2x2像素块封装为长度为 32比特的数据包, 所述 32比特的数据 包包括用于无失真地表示所述最小像素值的固定 10比特、 用于表示所述最小 像素值的位置信息的 2比特、 用于表示所述 2x2像素块中除所述最小像素值 以外的三个像素点的像素值与所述最小像素值之间的差值的 18比特、 以及 2 比特的相关标记信息。
5、 根据权利要求 4所述的方法, 其特征在于, 还包括:
当所述 2x2像素块包括的像素点的最大像素值与最小像素值之间的差值 大于或等于第三预设阈值时, 将用于表示所述 2x2像素块的每个像素点的像 素值的比特数右移三位;
将所述 2x2像素块封装为长度为 32比特的数据包, 所述 32比特的数据 包包括用于表示向右移位后的所述 2x2像素块的每个像素点的像素值的比特 数、 2比特的相关标记信息以及 2比特的补偿信息。
6、 一种参考帧压缩装置, 其特征在于, 包括:
第一划分模块,用于以 2x2像素块为基本单元,将参考帧划分为多个 2x2 像素块;
计算模块, 用于计算各 2x2像素块包括的像素点的最大像素值与最小像 素值之间的差值;
表示模块, 用于当所述 2x2像素块包括的像素点的最大像素值与最小像 素值之间的差值小于第一预设阈值时, 将所述 2x2像素块中除所述最小像素 值以外的每个像素点的像素值与所述 2x2像素块包括的像素点的最小像素值 之间的差值以少于 8比特的固定比特位数表示;
封装模块, 用于将所述 2x2像素块封装为长度为 32比特的数据包, 所述
32比特的数据包包括用于无失真地表示所述最小像素值的固定 10比特、 用于 表示所述最小像素值的位置信息的 2比特、 用于表示所述 2x2像素块中除所 述最小像素值以外的三个像素点的像素值与所述最小像素值之间的差值的 18 比特、 以及 2比特的相关标记信息;
发送模块, 用于将所述 32比特的数据包发送到所述接收端。
7、 根据权利要求 6所述的装置, 其特征在于, 所述表示模块包括: 第一表示单元, 用于当所述 2x2像素块包括的像素点的最大像素值与最 小像素值之间的差值小于第二预设阈值时, 直接将所述 2x2像素块中除所述 最小像素值以外的每个像素点的像素值与所述 2x2像素块包括的像素点的最 小像素值之间的差值以少于 8比特的固定比特位数表示, 其中, 所述第二阈值 小于所述第一阈值;
第二表示单元, 用于当所述 2x2像素块包括的像素点的最大像素值与最
Ί、像素值之间的差值大于或等于第二预设阈值且小于第一预设阈值时,将用于 表示所述 2x2像素块中除所述最小像素值以外的每个像素点的像素值与所述 2x2像素块包括的像素点的最小像素值之间的差值的比特数进行移位后以少 于 8比特的固定比特位数表示。
8、 根据权利要求 6所述的装置, 其特征在于, 还包括:
第一移位模块, 用于当所述 2x2像素块包括的像素点的最大像素值与最 小像素值之间的差值大于或等于第一预设阈值时, 将用于表示所述 2x2像素 块的前三个像素点的像素值的比特数右移两位, 将用于表示所述 2x2像素块 的最后一个像素点的像素值的比特数右移三位;
所述封装模块,还用于将所述 2x2像素块封装为长度为 32比特的数据包, 所述 32比特的数据包包括用于表示向右移位后的所述 2x2像素块的每个像素 点的像素值的比特数、 以及 1比特的相关标记信息。
9、 根据权利要求 6所述的装置, 其特征在于, 还包括:
所述第一移位模块, 还用于当所述 2x2像素块包括的像素点的最大像素 值与最小像素值之间的差值大于或等于第一预设阈值且小于第三预设阈值时, 将用于表示所述 2 x 2像素块中除所述最小像素值以外的每个像素点的像素值 与所述 2x 2像素块包括的像素点的最小像素值之间的差值的比特数向右移位; 则所述表示模块, 还用于将用于表示所述 2x 2像素块中除所述最小像素 值以外的每个像素点的像素值与所述 2x 2像素块包括的像素点的最小像素值 之间的差值以少于 8比特的固定比特位数表示;
所述封装模块,还用于将所述 2x 2像素块封装为长度为 32比特的数据包, 所述 32比特的数据包包括用于无失真地表示所述最小像素值的固定 10比特、 用于表示所述最小像素值的位置信息的 2比特、 用于表示所述 2x 2像素块中 除所述最小像素值以外的三个像素点的像素值与所述最小像素值之间的差值 的 18比特、 以及 2比特的相关标记信息。
10、 根据权利要求 9所述的装置, 其特征在于, 还包括:
所述第一移位模块, 还用于当所述 2 x 2像素块包括的像素点的最大像素 值与最小像素值之间的差值大于或等于第三预设阈值时,将用于表示所述 2x 2 像素块的每个像素点的像素值的比特数右移三位;
所述封装模块,还用于将所述 2x 2像素块封装为长度为 32比特的数据包, 所述 32比特的数据包包括用于表示向右移位后的所述 2x 2像素块的每个像素 点的像素值的比特数、 2比特的相关标记信息以及 2比特的补偿信息。
11、 一种参考帧解压方法, 其特征在于, 包括:
接收发送端发送的将参考帧中包括的 2x 2像素块压缩后的 32比特的数据 包;
读取所述 32比特的数据包的相关标记信息,并根据所述 32比特的数据包 的相关标记信息, 计算所述 32比特的数据包对应的映射值;
若所述 32 比特的数据包对应的映射值小于第一预设阈值, 读取所述 32 比特的数据包中长度为固定 10比特的比特数,所述长度为 10比特的比特数无 失真地表示所述 2x 2像素块包括的像素点的最小像素值;
读取所述 32比特的数据包中用于表示所述最小像素值的位置信息的长度 为 2比特的比特数, 根据所述用于表示所述最小像素值的位置信息的长度为 2 比特的比特数, 获得所述 2x 2像素块中除所述最小像素值以外的每个像素点 的位置信息;
按照少于 8比特的固定比特位数读取用于表示所述 2x 2像素块中除所述 最小像素值以外的三个像素点的像素值与所述最小像素值之间的差值的 18比 特, 获得用于表示所述 2x 2像素块中除所述最小像素值以外的每个像素点的 像素值与所述最小像素值之间的差值的比特数;
根据所述用于表示所述 2x 2像素块中除所述最小像素值以外的每个像素 点的像素值与所述最小像素值之间的差值的比特数, 以及所述 2x 2像素块中 除所述最小像素值以外的每个像素点的位置信息, 获得所述 2x 2像素块中除 所述最小像素值以外的每个像素点的像素值。
12、 根据权利要求 11所述的方法, 其特征在于, 所述根据所述用于表示 所述 2x 2像素块中除所述最小像素值以外的每个像素点的像素值与所述最小 像素值之间的差值的比特数, 以及所述 2 x 2像素块中除所述最小像素值以外 的每个像素点的位置信息, 获得所述 2x 2像素块中除所述最小像素值以外的 每个像素点的像素值, 包括:
根据所述用于表示所述 2x 2像素块中除所述最小像素值以外的每个像素 点的像素值与所述最小像素值之间的差值的比特数以及所述 2x 2像素块中除 所述最小像素值以外的每个像素点的位置信息, 计算所述 2x 2像素块中除所 述最小像素值以外的每个像素点的像素值与所述最小像素值之间的差值; 将所述 2χ 2像素块中除所述最小像素值以外的每个像素点的像素值与所 述最小像素值之间的差值与所述最小像素值相加, 得到所述 2x 2像素块中除 所述最小像素值以外的每个像素点的像素值。
13、 根据权利要求 11所述的方法, 其特征在于, 按照少于 8比特的固定 比特位数读取用于表示所述 2x 2像素块中除所述最小像素值以外的三个像素 点的像素值与所述最小像素值之间的差值的 18比特, 获得用于表示所述 2x 2 像素块中除所述最小像素值以外的每个像素点的像素值与所述最小像素值之 间的差值的比特数, 包括:
若所述 32比特的数据包对应的映射值大于或等于第二阈值且小于第一预 设阈值, 根据所述 32比特的数据包对应的映射值, 将用于表示所述 2x 2像素 块中除所述最小像素值以外的三个像素点的像素值与所述最小像素值之间的 差值的 18比特划分为三个固定长度的比特数;
将所述三个固定长度的比特数分别向左移位, 获得用于表示所述 2 x 2像 素块中除所述最小像素值以外的每个像素点的像素值与所述最小像素值之间 的差值的比特数。
14、 根据权利要求 11所述的方法, 其特征在于, 还包括:
若所述 32比特的数据包对应的映射值大于或等于第一预设阈值, 读取所 述 32比特的数据包的前 24比特,将所述 32比特的数据包的前 24比特平均划 分为长度均为 8比特的三个比特数;
将所述长度为 8比特的三个比特数分别左移两位, 获得所述 32比特的数 据包的前三个像素点的像素值;
读取所述 32比特的数据包中长度为 7比特的比特数, 将所述长度为 7比 特的比特数左移三位,获得所述 32比特的数据包的最后一个像素点的像素值。
15、 一种参考帧解压装置, 其特征在于, 包括:
接收模块, 用于接收发送端发送的将参考帧中包括的 2x 2像素块压缩后 的 32比特的数据包;
读取模块, 用于读取所述 32比特的数据包的相关标记信息;
计算模块, 用于根据所述 32比特的数据包的相关标记信息, 计算所述 32 比特的数据包对应的映射值;
所述读取模块, 还用于当所述 32比特的数据包对应的映射值小于第一预 设阈值时,读取所述 32比特的数据包中长度为固定 10比特的比特数, 所述长 度为 10比特的比特数无失真地表示所述 2 x 2像素块包括的像素点的最小像素 值;
所述读取模块, 还用于读取所述 32比特的数据包中用于表示所述最小像 素值的位置信息的长度为 2比特的比特数;
获得模块, 用于根据所述用于表示所述最小像素值的位置信息的长度为 2 比特的比特数, 获得所述 2x 2像素块中除所述最小像素值以外的每个像素点 的位置信息;
所述读取模块,还用于按照少于 8比特的固定比特位数读取用于表示所述
2 x 2像素块中除所述最小像素值以外的三个像素点的像素值与所述最小像素 值之间的差值的 18比特;
所述获得模块, 还用于获得用于表示所述 2x 2像素块中除所述最小像素 值以外的每个像素点的像素值与所述最小像素值之间的差值的比特数;
所述获得模块, 还用于根据所述用于表示所述 2x 2像素块中除所述最小 像素值以外的每个像素点的像素值与所述最小像素值之间的差值的比特数,以 及所述 2x 2像素块中除所述最小像素值以外的每个像素点的位置信息, 获得 所述 2 X 2像素块中除所述最小像素值以外的每个像素点的像素值。
16、 根据权利要求 15所述的装置, 所述获得模块, 包括:
计算单元, 用于根据所述用于表示所述 2x 2像素块中除所述最小像素值 以外的每个像素点的像素值与所述最小像素值之间的差值的比特数以及所述 2 x 2像素块中除所述最小像素值以外的每个像素点的位置信息, 计算所述 2x 2 像素块中除所述最小像素值以外的每个像素点的像素值与所述最小像素值之 间的差值;
相加单元, 用于将所述 2 X 2像素块中除所述最小像素值以外的每个像素 点的像素值与所述最小像素值之间的差值与所述最小像素值相加, 得到所述 2 X 2像素块中除所述最小像素值以外的每个像素点的像素值。
17、 根据权利要求 15所述的装置, 其特征在于, 所述获得模块, 还包括: 划分单元, 用于当所述 32比特的数据包对应的映射值大于或等于第二阈 值且小于第一预设阈值时, 根据所述 32比特的数据包对应的映射值, 将用于 表示所述 2 x 2像素块中除所述最小像素值以外的三个像素点的像素值与所述 最小像素值之间的差值的 18比特划分为三个固定长度的比特数;
移位单元, 用于将所述三个固定长度的比特数分别向左移位;
所述获得模块, 还用于获得所述 2x 2像素块中除所述最小像素值以外的 每个像素点的像素值与所述最小像素值之间的差值的比特数。
18、 根据权利要求 15所述的装置, 其特征在于, 还包括:
所述读取模块, 还用于当所述 32比特的数据包对应的映射值大于或等于 第一预设阈值时, 读取所述 32比特的数据包的前 24比特;
第二划分模块,用于将所述 32比特的数据包的前 24比特平均划分为长度 均为 8比特的三个比特数;
第二移位模块, 用于将所述长度为 8比特的三个比特数分别左移两位; 所述获得模块, 还用于获得所述 32比特的数据包的前三个像素点的像素 值;
所述读取模块, 还用于读取所述 32比特的数据包中长度为 7比特的比特 数; 所述第二移位模块,还用于将所述长度为 7比特的比特数左移三位, 获得 所述 32比特的数据包的最后一个像素点的像素值;
所述获得模块, 还用于获得所述 32比特的数据包的最后一个像素点的像 素值。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110184522.8A CN102857753B (zh) | 2011-07-01 | 2011-07-01 | 一种参考帧压缩和解压方法及装置 |
CN201110184522.8 | 2011-07-01 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013004169A1 true WO2013004169A1 (zh) | 2013-01-10 |
Family
ID=47403896
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2012/078072 WO2013004169A1 (zh) | 2011-07-01 | 2012-07-02 | 一种参考帧压缩和解压方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102857753B (zh) |
WO (1) | WO2013004169A1 (zh) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104333758B (zh) * | 2014-10-11 | 2019-07-19 | 华为技术有限公司 | 深度图的预测方法和检测像素点的方法及相关装置 |
CN106296754B (zh) * | 2015-05-20 | 2019-06-18 | 上海和辉光电有限公司 | 显示数据压缩方法及显示数据处理系统 |
EP3185556A1 (en) | 2015-12-21 | 2017-06-28 | Thomson Licensing | Method and apparatus for combined adaptive resolution and internal bit-depth increase coding |
CN105933708B (zh) * | 2016-04-15 | 2019-02-12 | 杨桦 | 一种数据压缩和解压缩的方法和装置 |
CN110933443A (zh) * | 2018-09-20 | 2020-03-27 | 北京君正集成电路股份有限公司 | 视频重建帧存储方法和装置 |
CN110933442B (zh) * | 2018-09-20 | 2022-05-13 | 北京君正集成电路股份有限公司 | 16*4级参考帧压缩方法和装置 |
CN110933413A (zh) * | 2018-09-20 | 2020-03-27 | 北京君正集成电路股份有限公司 | 视频帧处理方法和装置 |
CN109859700B (zh) * | 2018-12-21 | 2021-07-16 | 惠科股份有限公司 | 一种数据处理方法以及数据处理装置 |
CN110620922A (zh) * | 2019-09-27 | 2019-12-27 | 杭州雄迈集成电路技术有限公司 | 一种视频编码带宽的优化电路及其优化方法 |
CN111160544B (zh) * | 2019-12-31 | 2021-04-23 | 上海安路信息科技股份有限公司 | 数据激活方法及fpga数据激活系统 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101031021A (zh) * | 2006-02-27 | 2007-09-05 | 索尼株式会社 | 图像拍摄设备、成像电路、和图像拍摄方法 |
CN101193301A (zh) * | 2006-11-30 | 2008-06-04 | 三星电子株式会社 | 在视觉上压缩图像数据的方法、介质和系统 |
CN101547352A (zh) * | 2008-03-26 | 2009-09-30 | 中华映管股份有限公司 | 影像压缩方法和解压缩方法 |
US20100027617A1 (en) * | 2008-07-29 | 2010-02-04 | Samsung Electronics Co., Ltd. | Method and apparatus for compressing a reference frame in encoding/decoding moving images |
-
2011
- 2011-07-01 CN CN201110184522.8A patent/CN102857753B/zh active Active
-
2012
- 2012-07-02 WO PCT/CN2012/078072 patent/WO2013004169A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101031021A (zh) * | 2006-02-27 | 2007-09-05 | 索尼株式会社 | 图像拍摄设备、成像电路、和图像拍摄方法 |
CN101193301A (zh) * | 2006-11-30 | 2008-06-04 | 三星电子株式会社 | 在视觉上压缩图像数据的方法、介质和系统 |
CN101547352A (zh) * | 2008-03-26 | 2009-09-30 | 中华映管股份有限公司 | 影像压缩方法和解压缩方法 |
US20100027617A1 (en) * | 2008-07-29 | 2010-02-04 | Samsung Electronics Co., Ltd. | Method and apparatus for compressing a reference frame in encoding/decoding moving images |
Also Published As
Publication number | Publication date |
---|---|
CN102857753B (zh) | 2015-11-25 |
CN102857753A (zh) | 2013-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2013004169A1 (zh) | 一种参考帧压缩和解压方法及装置 | |
JP5860067B2 (ja) | 符号化方法及び装置並びに復号化方法及び装置 | |
US9699234B2 (en) | Electronic devices for sending a message and buffering a bitstream | |
US10165305B2 (en) | Encoding and decoding transform coefficient sub-blocks in same predetermine order | |
WO2013004166A1 (zh) | 帧内预测编解码处理方法、装置和系统 | |
US9462274B2 (en) | Transformation mode encoding and decoding method and apparatus | |
JP4985645B2 (ja) | 画像データ圧縮装置、圧縮方法及びプログラム並びに画像データ復元装置、復元方法及びプログラム | |
US20140006016A1 (en) | Voice signal encoding and decoding method, device, and codec system | |
WO2018141116A1 (zh) | 编解码方法及装置 | |
WO2012078281A1 (en) | Video processing architecture | |
JP2014027658A (ja) | 圧縮エンコーディング及びデコーディング方法並びに装置 | |
US20140092995A1 (en) | Electronic devices for signaling a random access point picture message | |
WO2013063958A1 (zh) | 一种视频处理方法及系统、相关设备 | |
JP5226875B2 (ja) | ビデオデコーダにおけるテクスチャ復号モジュールのバストラフィックを減少するための方法と装置 | |
WO2013007215A1 (zh) | 一种参考帧压缩存储和解压方法及装置 | |
JP6536841B2 (ja) | 符号化機構を備えた通信システム及びその動作方法 | |
US10715813B2 (en) | Method and apparatus for performing block prediction search based on restored sample values derived from stored sample values in data buffer | |
CN117676146A (zh) | 一种编解码方法及装置 | |
US20210076048A1 (en) | System, apparatus and method for data compaction and decompaction | |
CN118230743A (zh) | 音频处理方法、装置及设备 | |
EP1509046A1 (en) | Error resistant encoded image and video transmission using variable length codes (VLC) | |
US20200288154A1 (en) | Hybrid palette-dpcm coding for image compression | |
CN117176985A (zh) | 一种基于矩阵码传输视频元数据的设备及方法 | |
CN102231832B (zh) | 变长码编解码方法和系统 | |
WO2003036988A1 (en) | Media separating method, image decoding method and image decoding device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12807021 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12807021 Country of ref document: EP Kind code of ref document: A1 |