WO2013007215A1 - 一种参考帧压缩存储和解压方法及装置 - Google Patents

一种参考帧压缩存储和解压方法及装置 Download PDF

Info

Publication number
WO2013007215A1
WO2013007215A1 PCT/CN2012/078625 CN2012078625W WO2013007215A1 WO 2013007215 A1 WO2013007215 A1 WO 2013007215A1 CN 2012078625 W CN2012078625 W CN 2012078625W WO 2013007215 A1 WO2013007215 A1 WO 2013007215A1
Authority
WO
WIPO (PCT)
Prior art keywords
bits
bit
data packet
fixed length
pixel value
Prior art date
Application number
PCT/CN2012/078625
Other languages
English (en)
French (fr)
Inventor
杨海涛
林四新
马彦卓
亢丽娟
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013007215A1 publication Critical patent/WO2013007215A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • H04N19/426Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements using memory downsizing methods

Definitions

  • the present invention relates to the field of video compression technologies, and in particular, to a reference frame compression storage 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 4 ⁇ 4 pixel block is used as a basic compression unit, and different compression methods are adopted according to the difference d between the maximum value and the minimum value of the 4 ⁇ 4 pixel block, and the 4 ⁇ 4 is used.
  • the pixel block is compressed into a plurality of 128-bit data packets, which can ensure the data access efficiency of the memory.
  • the 4 x 4 pixel block can be divided to ensure data storage precision and reduce data redundancy of random access.
  • a compressed storage method using a 4x4 pixel block as a basic compression unit can ensure data access efficiency of the memory, but cannot guarantee data storage precision. If the 4x4 pixel block is divided, the memory cannot be guaranteed. Data access efficiency, random access data redundancy will also become larger.
  • Embodiments of the present invention provide a reference frame compression storage and decompression method and apparatus, which can improve the data storage precision of the memory, reduce the random access redundancy, and ensure the data access efficiency of the memory.
  • a reference frame compression storage method includes:
  • a reference frame compression storage device includes:
  • a compression module configured to compress a reference frame by using a predetermined compression unit as a basic compression unit, to obtain compressed data packets of multiple fixed length bits;
  • a first determining module configured to determine whether a burst access bandwidth of the memory for storing the reference frame is smaller than a preset burst access bandwidth of the memory
  • a storage module configured to store the compressed data packet of the fixed length bit in the memory in a burst period when a burst access bandwidth of the memory is less than or equal to a preset burst access bandwidth of the memory in.
  • a reference frame decompression method includes:
  • the compressed data packet is decompressed as a basic decompression unit.
  • a reference frame decompression device includes:
  • a reading module configured to read, from a memory, a compressed data packet of a fixed length bit compressed by a reference frame in a burst period
  • a second determining module configured to determine whether a size of the compressed data packet of the fixed length bit is less than or equal to a second preset threshold
  • a decompression module configured to: when the size of the compressed data packet of the fixed length bit is less than or equal to the second threshold, decompress the reference frame by using the compressed data packet of the fixed length bit as a basic decompression unit.
  • the reference frame compression storage and decompression method and device compresses a reference frame by using a predetermined compression unit as a basic compression unit to obtain compressed data packets of a plurality of fixed length bits, when the memory has a burst access bandwidth.
  • a predetermined compression unit as a basic compression unit to obtain compressed data packets of a plurality of fixed length bits, when the memory has a burst access bandwidth.
  • the preset burst access bandwidth of the memory is less than or equal to, the compressed data packet of the fixed length bit is stored in the memory, which can improve the data storage precision of the memory, reduce the random access redundancy, and ensure the data access efficiency of the memory.
  • FIG. 1 is a flowchart of a reference frame compression storage method according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a reference frame compression storage method according to Embodiment 2 of the present invention.
  • FIG. 3 is a flowchart of a reference frame compression storage method according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic diagram of a storage structure of a reference frame in a memory according to Embodiment 3 of the present invention
  • FIG. 5 is a schematic diagram of a storage unit of fixed length bits according to Embodiment 3 of the present invention.
  • FIG. 6 is a schematic structural diagram of a reference frame compression storage device according to Embodiment 4 of the present invention.
  • FIG. 7 is a schematic structural diagram of a reference frame compression storage apparatus according to Embodiment 4 of the present invention.
  • FIG. 8 is a schematic structural diagram of a reference frame compression storage device according to Embodiment 5 of the present invention.
  • FIG. 9 is a flowchart of a method for decompressing a reference frame according to Embodiment 6 of the present invention.
  • FIG. 10 is a flowchart of a reference frame decompression method according to Embodiment 7 of the present invention.
  • FIG. 11 is a schematic structural diagram of a reference frame decompression apparatus according to Embodiment 8 of the present invention.
  • FIG. 12 is a schematic structural diagram of a reference frame decompression apparatus according to Embodiment 8 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 can be executed by a software code to execute the software in the processor. The process is implemented.
  • DSP digital signal processor
  • the embodiment provides a reference frame compression storage method. As shown in FIG. 1, the method includes: 101. Compress a reference frame by using a predetermined compression unit as a basic compression unit to obtain compressed data packets of multiple fixed length bits. ;
  • Step 102 Determine whether a burst access bandwidth of a memory for storing the reference frame is smaller than a preset burst access bandwidth of the memory, if a burst access bandwidth of the memory is less than or equal to a preset burst of the memory The bandwidth is accessed, and the compressed data packet of the fixed length bits is stored in the memory in one burst period.
  • the compressed data packet of the fixed length bit is stored in the memory in one burst period, the compressed data packet of the fixed length bit is transmitted to the receiving end.
  • the reference frame compression storage method compresses a reference frame by using a predetermined compression unit as a basic compression unit to obtain compressed data packets of a plurality of fixed length bits, and determines to store the reference data packet. - whether the burst access bandwidth of the memory of the reference frame is less than the preset burst access bandwidth of the memory, if the burst access bandwidth of the memory is less than or equal to the preset burst access bandwidth of the memory, the fixed length bit The compressed data packet is stored in the memory in a burst period.
  • the reference frame compression storage method stores the compressed data packet of the fixed length bit when the burst access bandwidth of the memory is less than or equal to the preset burst access bandwidth of the memory. In this memory. It can improve the data storage accuracy of the memory and reduce the random access redundancy.
  • the embodiment provides a reference frame compression storage method. As shown in FIG. 2, the method includes: 201: dividing a reference frame into a plurality of 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 less than a first preset threshold, remove the most d, pixel from the 2 ⁇ 2 pixel block.
  • 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 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 the pixel point included in the 2 ⁇ 2 pixel block is less than 8 bits.
  • the 205 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 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;
  • a 2 ⁇ 2 pixel block is used as a basic compression unit, and the reference frame is divided into a plurality of 2 ⁇ 2 pixel blocks, and a difference between a maximum pixel value and a minimum pixel value of the pixel points included in each 2 ⁇ 2 pixel block is calculated.
  • the reference frame compression storage method divides a reference frame into a plurality of 2 x 2 pixel blocks by using a 2 ⁇ 2 pixel block as a basic compression unit, and a maximum pixel value of a pixel point included in the 2 ⁇ 2 pixel block.
  • the pixel value of each pixel except the minimum pixel value in the 2 ⁇ 2 pixel block is directly included with the 2 ⁇ 2 pixel block a difference of 6 bits between the minimum pixel values of the pixels, the 2 x 2 pixel block being encapsulated into a 32-bit data packet, and the burst access bandwidth of the memory for storing the reference frame is less than Or equal to the preset burst access bandwidth of the memory, the 32-bit compressed data packet is stored in the memory in one burst period.
  • the reference frame compression storage method provided by the embodiment of the present invention can improve the data storage precision of the memory and reduce the random access redundancy.
  • the embodiment provides a reference frame compression storage method. As shown in FIG. 3, the method includes: 301. Compress a reference frame by using a predetermined compression unit as a basic compression unit to obtain compressed data packets of multiple fixed length bits. ;
  • 302. Determine whether a burst access bandwidth of the memory for storing the reference frame is smaller than a preset burst access bandwidth of the memory, if a burst access bandwidth of the memory is greater than a preset burst access bandwidth of the memory. And combining the compressed data packets of the four fixed length bits in the memory into a fixed length storage unit having a length of four times the number of bits of the compressed data packet of the fixed length bit according to a predetermined scanning rule. ; 303. Store the fixed length storage unit in the memory in one burst period.
  • a 2 ⁇ 2 pixel block is used as a basic compression unit, the reference frame is divided into a plurality of 2 ⁇ 2 pixel blocks, and the 2 ⁇ 2 pixel block is encapsulated into a data packet having a length of 32 bits, and a memory for storing the reference frame is determined.
  • the locations in the memory are: i X width+j , i ⁇ width+(j+ 1 ), (i+ 1 ) x width+j , (i+l)x width+(j+ 1 )
  • the four 32-bit compressed data packets are combined into one memory unit of length 128 bits, wherein , width represents l/log 2 N of the width of the reference frame, N represents the number of pixels included in the compression unit, i can be divisible by 2, and j can be divisible by 2. Specifically, as shown in FIG. 4, the data packets 1, 2, 3, 4, .
  • the reference frame is stored in the memory as a basic compression unit with a 2 ⁇ 2 pixel block, when used for storing the reference.
  • the burst access bandwidth of the memory of the frame is greater than the preset burst access bandwidth of the memory, since the data is discontinuously stored, the access efficiency of the memory is lowered, and if the packet is to be read at this time, 1, 2, 9, 10, in the first burst access process can only read the data packet 1, 2, 8, and then read the data packet 9, 10, 11, where 3, 4, ..., 8 are redundant data,
  • the memory access is not efficient.
  • the width is set to 8, the value of i is 0, and the value of j is 1.
  • the data packets 1, 2, 9, 10 are combined into a 128-bit memory unit, and the 128-bit memory unit is used to place the 128-bit fixed-length memory unit. It is stored in the memory in one burst period.
  • a 4 ⁇ 4 pixel block as a basic compression unit as an example, dividing the reference frame into a plurality of 4 ⁇ 4 pixel blocks, and packing the 4 ⁇ 4 pixel block into a data packet having a length of 128 bits, and determining a memory for storing the reference frame. Whether the burst access bandwidth is smaller than the preset burst access bandwidth of the memory, and if the burst access bandwidth of the memory is greater than the preset burst access bandwidth of the memory, the four 128 bits are according to a preset scan rule.
  • the compressed data packets are combined into one 512-bit memory unit, and the 512-bit memory cells are stored in the memory in one burst period.
  • the reference frame compression storage method provided by the embodiment of the present invention when the burst access bandwidth of the memory is greater than the preset burst access bandwidth of the memory, the four fixed length bits in the memory are according to a predetermined scanning rule.
  • the compressed data packet is combined into a fixed length storage unit having a length of four times the number of bits of the compressed data packet of the fixed length bit, and the fixed length storage unit is stored in the memory in one burst period .
  • the reference frame compression storage method provided by the embodiment of the present invention - - It can improve the data storage accuracy of the memory, reduce the random access redundancy, and ensure the data access efficiency of the memory.
  • the embodiment provides a reference frame compression storage device.
  • the reference frame compression storage device includes:
  • a compression module 601 configured to compress a reference frame by using a predetermined compression unit as a basic compression unit, to obtain compressed data packets of multiple fixed length bits;
  • the first determining module 602 is configured to determine whether a burst access bandwidth of the memory for storing the reference frame is smaller than a preset burst access bandwidth of the memory;
  • a storage module 603 configured to: when the burst access bandwidth of the memory is less than or equal to a preset burst access bandwidth of the memory, storing the compressed data packet of the fixed length bit in a burst period In memory.
  • the compression module 401 includes:
  • a dividing unit 6011 configured to divide the reference frame into multiple 2x2 pixel blocks by using a 2 ⁇ 2 pixel block as a basic unit;
  • the calculating unit 6012 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;
  • the indicating unit 6013 is configured to: after the difference between the maximum pixel value and the minimum pixel value of the pixel point included in the 2 ⁇ 2 pixel block is smaller than the first preset threshold, divide the minimum pixel value from the 2 ⁇ 2 pixel block a difference between a pixel value of each pixel other than the pixel value of the pixel point included in the 2 ⁇ 2 pixel block and a fixed pixel number of less than 8 bits;
  • the indicating unit 6013 is further configured to use 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 the pixel point included in the 2 ⁇ 2 pixel block. Expressed in fixed bits of less than 8 bits;
  • the encapsulating unit 6014 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 reference frame compression storage device further includes:
  • the combining module 604 is configured to: when the burst access bandwidth of the memory is greater than a preset burst access bandwidth of the memory, compress the data packets of the four fixed length bits in the memory according to a predetermined scanning rule. Combining into a fixed length memory cell having a length of four times the number of bits of the compressed data packet of the fixed length bit;
  • the storage module 603 is further configured to store the fixed length storage unit in the memory in one burst period.
  • the combining module 604 is specifically configured to: position the memory in the following: i X width+j , i ⁇ width+(j+ 1 ) , (i+ 1 ) x width+j , (i+ 1 ) x width+
  • the compressed data packets of four fixed length bits of (j + 1 ) are combined into one fixed length storage unit having a length of four times the number of bits of the compressed data packet of the fixed length bit, wherein width represents the reference l/log 2 N of the width of the frame, N represents the number of pixels included in the compression unit, i can be divisible by 2, and j can be divisible by 2.
  • the reference frame compression storage device compresses a reference frame by using a predetermined compression unit as a basic compression unit by the compression module to obtain compressed data packets of a plurality of fixed length bits, and is determined by the first determination module to be used for storage. Whether the burst access bandwidth of the memory of the reference frame is smaller than a preset burst access bandwidth of the memory, and if the burst access bandwidth of the memory is less than or equal to a preset burst access bandwidth of the memory, the fixed length is determined by the storage module The compressed packets of bits are stored in the memory in one burst period.
  • the reference frame compression storage device compresses the fixed length bit when the burst access bandwidth of the memory is less than or equal to the preset burst access bandwidth of the memory.
  • the package is stored in this memory. It can improve the data storage precision of the memory, reduce the random access redundancy, and ensure the data access efficiency of the memory. .
  • This embodiment provides a reference frame decompression method. As shown in FIG. 8, the method includes:
  • the bit compressed packet is decompressed as a basic decompression unit.
  • the reference frame decompression method stores from a memory in a burst period - reading, in the unit, a compressed data packet of a fixed length bit compressed by the reference frame, determining whether the size of the compressed data packet of the fixed length bit is less than or equal to a second preset threshold, if the compression of the fixed length bit The size of the data packet is less than or equal to the second threshold, and the reference frame is decompressed with the compressed data packet of the fixed length bit as a basic decompression unit.
  • the reference frame decompression method provided by the embodiment of the present invention, when the size of the compressed data packet of the fixed length bit is less than or equal to the second threshold, the compressed data packet with the fixed length bit Decompressing the reference frame as a basic decompression unit can improve the data storage precision of the memory, reduce the random access redundancy, and ensure the data access efficiency of the memory.
  • This embodiment provides a reference frame decompression method. As shown in FIG. 9, the method includes:
  • mapping value corresponding to the 32-bit compressed data packet is smaller than a first preset threshold, read a length of a fixed 10-bit length in the 32-bit compressed data packet, where the length is 10 bits.
  • the number represents the minimum pixel value of the pixel included in the 2 X 2 pixel block without distortion;
  • the decompression process of the 32-bit data packet is:
  • 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 reads a 32-bit compressed data packet compressed by a reference frame from a storage unit of the memory in a burst period, and the size of the 32-bit data packet is smaller than the second
  • the threshold is decompressed by using the 32-bit data packet as a basic decompression unit.
  • the reference frame decompression method provided by the embodiment of the present invention when the size of the compressed data packet of the fixed length bit is less than or equal to the second threshold, the compressed data packet with the fixed length bit Decompressing the reference frame as a basic decompression unit can improve the data storage precision of the memory, reduce the random access redundancy, and ensure the data access efficiency of the memory.
  • Example 7 - The embodiment provides a reference frame decompression method. As shown in FIG. 10, the method includes:
  • width_4 is 1/4 of the width of the reference frame
  • height_4 is 1/4 of the height of the reference frame
  • m and n are integer values.
  • the positions of the four 32-bit data packets included in the 4 ⁇ 4 compression unit that need to be restored are calculated in the 4 ⁇ 4 compression unit that needs to be restored: i X width+j , ix Width+(j + 1 ), (i+ 1 ) ⁇ width+j , (i+l)x width+(j+l), where width represents l/log 2 N of the width of the reference frame, N is a compression unit
  • the number of pixels included, i can be divisible by 2
  • j can be divisible by 2.
  • the width is set to 8, the value of i is 0, and the value of j is 1.
  • the reference frame decompression method provided by the embodiment of the present invention, if the size of the compressed data packet of the fixed length bit is greater than the second threshold, the compressed data packet of the fixed length bit is equally divided into 4 fixed length bits a data packet, according to the starting point position of the 4x4 storage unit that needs to be restored in the reference frame, obtaining the data packets of the 4 fixed length bits included in the 4 ⁇ 4 storage unit that needs to be restored.
  • the reference frame decompression method when the size of the compressed data packet of the fixed length bit is greater than the second threshold, divides the compressed data packet of the fixed length bit into an average It is a packet of 4 fixed length bits. It can improve the data storage precision of the memory, reduce the random access redundancy, and ensure the data access efficiency of the memory.
  • the embodiment provides a reference frame decompression device.
  • the reference frame decompression device includes:
  • a reading module 1101 configured to read, from a memory, a compressed data packet of a fixed length bit compressed by a reference frame in a burst period;
  • a second determining module 1102 configured to determine whether a size of the compressed data packet of the fixed length bit is less than or equal to a second preset threshold
  • the decompression module 1103 is configured to: when the size of the compressed data packet of the fixed length bit is less than or equal to the second threshold, decompress the reference frame by using the compressed data packet of the fixed length bit as a basic decompression unit.
  • the decompression module 1103 includes:
  • the reading unit 11031 is configured to: when the size of the compressed data packet of the fixed length bit is 32 bits, read related tag information of the 32-bit compressed data packet;
  • the calculating unit 11032 is configured to calculate, according to the related tag information of the 32-bit compressed data packet, a mapping value corresponding to the 32-bit compressed data packet;
  • the reading unit 11031 is further configured to: when the mapping value corresponding to the 32-bit compressed data packet is smaller than the first preset threshold, read the number of bits in the 32-bit compressed data packet that is fixed by 10 bits.
  • the number of bits of 10 bits in length represents the minimum of pixels included in the 2x 2 pixel block without distortion - - Pixel values;
  • the reading unit 11031 is further configured to read a bit number of 2 bits having a length of position information for indicating the minimum pixel value in the 32-bit compressed data packet;
  • the obtaining unit 11033 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 unit 11031 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 unit 11033 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 unit 11033 is further configured to: according to the difference between the pixel value used to represent each pixel point except the last pixel value in the 2 ⁇ 2 pixel block, and the minimum pixel value Number of bits, and position information of each pixel point other than the most d, pixel value in the 2 ⁇ 2 pixel block, obtaining each pixel point except the minimum pixel value in the 2 ⁇ 2 pixel block The pixel value.
  • the reference frame decompression device may further include:
  • the dividing module 1104 is configured to, when the size of the compressed data packet of the fixed length bit is greater than the second threshold, divide the compressed data packet of the fixed length bit into four data packets of fixed length bits;
  • the obtaining module 1105 is configured to obtain a starting point position of the 4x4 storage unit that needs to be restored in the reference frame;
  • the obtaining module 1105 is further configured to obtain, according to the starting point position of the 4 ⁇ 4 storage unit that needs to be restored in the reference frame, the data packets of the four fixed length bits included in the 4 ⁇ 4 storage unit that needs to be restored. a position in the reference frame;
  • the calculating module 1106 is configured to calculate, according to a predetermined anti-scan rule, a position of the data packet of the four fixed length bits in the 4 ⁇ 4 storage unit that needs to be restored;
  • a storage module 1107 configured to store the data packets of the four fixed length bits in the 4x4 storage that needs to be restored according to the location of the data packets of the four fixed length bits in the 4x4 storage unit that needs to be restored. In the unit.
  • segmentation module 1104 is specifically configured to: if the fixed length bit of the compressed data packet When the size of - is 128 bits, the 128-bit compressed data packet is equally divided into four 32-bit data packets.
  • the obtaining module 1105 includes:
  • the obtaining unit 11051 is configured to obtain a starting point coordinate of the 4 ⁇ 4 compression unit that needs to be restored in the reference frame;
  • the calculating unit 11052 is configured to calculate, according to the starting point coordinates of the 4 ⁇ 4 compression unit that needs to be restored in the reference frame, four 32-bit data packets included in the 4 ⁇ 4 compression unit that need to be restored. The coordinates in the frame.
  • the calculating module 1106 is specifically configured to calculate, according to a predetermined inverse scanning rule, four 32-bit data packets included in the 4 ⁇ 4 storage unit that need to be restored, where the positions of the 4 ⁇ 4 storage units are respectively : i x width+j,ix width+ j+l), (i+l)x width+j, (i+l)x width+(j+l), where width represents the width of the reference frame l/ Log 2 N, N represents the number of pixels included in the compression unit, i can be divisible by 2, and j can be divisible by 2.
  • the reference frame decompression device reads, by the reading module, a compressed data packet of a fixed length bit compressed by a reference frame from a storage unit of the memory in a burst period, and determines the setting by the determining module. Whether the size of the compressed data packet of the long bit is less than or equal to a second preset threshold, and if the size of the compressed data packet of the fixed length bit is less than or equal to the second threshold, the compression of the fixed length bit by the compression module The data packet is decompressed as a basic decompression unit.
  • the reference frame decompression device compresses a data packet with the fixed length bit when the size of the compressed data packet of the fixed length bit is less than or equal to the second threshold value.
  • Decompressing the reference frame as a basic decompression unit can improve the data storage precision of the memory, reduce the random access redundancy, and ensure the data access efficiency of the memory.
  • the reference frame compression storage device and the decompression device provided in the embodiments of the present invention may implement the foregoing method embodiments.
  • the reference frame compression storage 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

本发明实施例公开了一种参考帧压缩存储和解压方法及装置,该方法包括:以预定的压缩单元为基本压缩单元将参考帧进行压缩,得到多个定长比特的压缩数据包;判断用于存储所述参考帧的存储器的突发访问带宽是否小于所述存储器的预设突发访问带宽,如果所述存储器的突发访问带宽小于或等于所述存储器的预设突发访问带宽,将所述定长比特的压缩数据包在一个突发周期内存储在所述存储器中;当所述存储器的突发访问带宽大于所述预设突发访问带宽时,将多个定长比特的压缩数据包按照预定扫描方式扫描后在一个突发周期内存储到所述存储器中。本发明适用于视频压缩技术领域中的参考帧压缩存储。

Description

一 一
一种参考帧压缩存储和解压方法及装置
本申请要求于 2011 年 07 月 14 日提交中国专利局、 申请号为 201110197621.X, 发明名称为 "一种参考帧压缩存储和解压方法及装置" 的中 国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及视频压缩技术领域,特别涉及一种参考帧压缩存储和解压方法 及装置。 背景技术
视频信号的传输由于信息量大, 特别是当视频信号以大于 8比特位数表示 时, 传输宽带要求高, 如果直接对视频信号进行传输, 以现在的传输宽带来看 4艮难达到, 所以就要求我们在视频信号传输前先进行压缩编码, 即进行视频源 压缩编码, 然后再传送以节省带宽和存储空间。通常在视频信号传输的发送端 和接收端会有视频编码器 /视频解码器, 应用视频编解码技术对视频信号进行 编解码处理。 这里的发送端或者接收端可以是移动电话, 数字电话终端, 无线 装置, 个人数据助理(PDA ), 手持式或便携式计算机, GPS接收机 /导航器, 照相机, 音频 /视频播放器, 摄像机, 录像机, 监控设备等大量统计表明, 同 一幅图像中的像素之间有很强的相关性, 两个像素值之间的差值越小, 则两个 像素之间的相关性越强。
在 HEVC ( High Efficiency Video Coding, 高效视频编码 )编码技术中, IBDI ( Internal Bit-Depth Increase, 编码过程内部比特深度提高 )技术带来了编 码效率的提高, 但是也造成了内存访问带宽的大幅增加。
现有技术中以 4 x 4像素块为基本压缩单元进行计算, 根据所述 4 x 4像素块 的最大值与最小值之间差值 d的大小采用不同的压缩方法, 将所述 4 x 4像素块 压缩为多个 128比特的数据包, 可以保证存储器的数据访问效率。 考虑到降低 存储器的额外带宽开销和随机访问的数据冗余, 可以将所述 4 x 4像素块进行分 割, 以保证数据的存储精度, 减少随机访问的数据冗余。
在实现本发明的过程中, 发明人发现现有技术中至少存在如下问题: - - 现有技术中以 4x 4像素块为基本压缩单元的压缩存储方法, 可以保证存储 器的数据访问效率, 但是无法保证数据的存储精度, 如果将所述 4x 4像素块进 行分割, 无法保证存储器的数据访问效率, 随机访问的数据冗余也会变大。 发明内容
本发明的实施例提供一种参考帧压缩存储和解压方法及装置,既可以提高 存储器的数据存储精度, 减少随机访问冗余, 又能够保证存储器的数据访问效 率。
本发明实施例采用的技术方案为:
一种参考帧压缩存储方法, 包括:
以预定的压缩单元为基本压缩单元将参考帧进行压缩,得到多个定长比特 的压缩数据包;
判断用于存储所述参考帧的存储器的突发访问带宽是否小于所述存储器 的预设突发访问带宽,如果所述存储器的突发访问带宽小于或等于所述存储器 的预设突发访问带宽,将所述定长比特的压缩数据包在一个突发周期内存储在 所述存储器中。
一种参考帧压缩存储装置, 包括:
压缩模块, 用于以预定的压缩单元为基本压缩单元将参考帧进行压缩,得 到多个定长比特的压缩数据包;
第一判断模块,用于判断用于存储所述参考帧的存储器的突发访问带宽是 否小于所述存储器的预设突发访问带宽;
存储模块,用于当所述存储器的突发访问带宽小于或等于所述存储器的预 设突发访问带宽时,将所述定长比特的压缩数据包在一个突发周期内存储在所 述存储器中。
一种参考帧解压方法, 包括:
在一个突发周期内从存储器中读取将参考帧压缩后的定长比特的压缩数 据包;
判断所述定长比特的压缩数据包的大小是否小于或等于第二预设阈值,若 所述定长比特的压缩数据包的大小小于或等于所述第二阈值,以所述定长比特 - - 的压缩数据包作为基本解压单元将所述参考帧进行解压。
一种参考帧解压装置, 包括:
读取模块,用于在一个突发周期内从存储器中读取将参考帧压缩后的定长 比特的压缩数据包;
第二判断模块,用于判断所述定长比特的压缩数据包的大小是否小于或等 于第二预设阈值;
解压模块,用于当所述定长比特的压缩数据包的大小小于或等于所述第二 阈值时,以所述定长比特的压缩数据包作为基本解压单元将所述参考帧进行解 压。
本发明实施例提供的参考帧压缩存储和解压方法及装置,以预定的压缩单 元为基本压缩单元将参考帧进行压缩,得到多个定长比特的压缩数据包, 当该 存储器的突发访问带宽小于或等于存储器的预设突发访问带宽时,将该定长比 特的压缩数据包存储在该存储器, 既可以提高存储器的数据存储精度, 减少随 机访问冗余, 又能够保证存储器的数据访问效率。 附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技 术描述中所需要使用的附图作筒单地介绍,显而易见地, 下面描述中的附图仅 仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳 动的前提下, 还可以根据这些附图获得其它的附图。
图 1为本发明实施例一提供的参考帧压缩存储方法流程图;
图 2为本发明实施例二提供的参考帧压缩存储方法流程图;
图 3为本发明实施例三提供的参考帧压缩存储方法流程图;
图 4为本发明实施例三提供的参考帧在存储器中的存储结构示意图; 图 5为本发明实施例三提供的定长比特的存储单元示意图;
图 6为本发明实施例四提供的参考帧压缩存储装置结构示意图;
图 7为本发明实施例四提供的参考帧压缩存储装置结构示意图;
图 8为本发明实施例五提供的参考帧压缩存储装置结构示意图;
图 9为本发明实施例六提供的参考帧解压方法流程图; - - 图 10为本发明实施例七提供的参考帧解压方法流程图;
图 11为本发明实施例八提供的参考帧解压装置结构示意图;
图 12为本发明实施例八提供的参考帧解压装置结构示意图。 具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有做出创造 性劳动前提下所获得的所有其它实施例, 都属于本发明保护的范围。
为使本发明技术方案的优点更加清楚,下面结合附图和实施例对本发明作 详细说明。
数字信号处理领域, 视频编解码器广泛应用于各种电子设备中, 例如: 移 动电话, 无线装置, 个人数据助理(PDA ), 手持式或便携式计算机, GPS接 收机 /导航器, 照相机, 音频 /视频播放器, 摄像机, 录像机, 监控设备等。 通 常, 这类电子设备中包括视频编码器或视频解码器,视频编码器或视频解码器 可以直接由数字电路或芯片例如 DSP ( digital signal processor )实现, 或者由软 件代码驱动处理器执行软件代码中的流程而实现。
实施例一
本实施例提供一种参考帧压缩存储方法, 如图 1所示, 所述方法包括: 101、 以预定的压缩单元为基本压缩单元将参考帧进行压缩, 得到多个定 长比特的压缩数据包;
102、 判断用于存储所述参考帧的存储器的突发访问带宽是否小于所述存 储器的预设突发访问带宽,如果所述存储器的突发访问带宽小于或等于所述存 储器的预设突发访问带宽,将所述定长比特的压缩数据包在一个突发周期内存 储在所述存储器中。
进一步地,在将所述定长比特的压缩数据包在一个突发周期内存储到所述 存储器中之后, 将所述定长比特的压缩数据包发送到接收端。
本发明实施例提供的参考帧压缩存储方法,以预定的压缩单元为基本压缩 单元将参考帧进行压缩,得到多个定长比特的压缩数据包, 判断用于存储所述 - - 参考帧的存储器的突发访问带宽是否小于所述存储器的预设突发访问带宽,如 果该存储器的突发访问带宽小于或等于存储器的预设突发访问带宽,将所述定 长比特的压缩数据包在一个突发周期内存储在该存储器中。 和现有技术相比, 本发明实施例提供的参考帧压缩存储方法,当该存储器的突发访问带宽小于或 等于存储器的预设突发访问带宽,将所述定长比特的压缩数据包存储在该存储 器中。 可以提高存储器的数据存储精度, 减少随机访问冗余。
实施例二
本实施例提供一种参考帧压缩存储方法, 如图 2所示, 所述方法包括: 201、 以 2x 2像素块为基本单元, 将参考帧划分为多个 2x 2像素块;
202、 计算各 2 x 2像素块包括的像素点的最大像素值与最小像素值之间的 差值;
203、 若所述 2 x 2像素块包括的像素点的最大像素值与最小像素值之间的 差值小于第一预设阈值, 将所述 2 X 2像素块中除所述最 d、像素值以外的每个像 素点的像素值与所述 2 χ 2像素块包括的像素点的最小像素值之间的差值以少 于 8比特的固定比特位数表示;
204、 将所述 2 X 2像素块中除最小像素值以外的每个像素点的像素值与所 述 2 x 2像素块包括的像素点的最小像素值之间的差值以少于 8比特的固定比特 位数表示;
205、 将所述 2 x 2像素块封装为长度为 32比特的数据包, 所述 32比特的数 据包包括用于无失真地表示所述最小像素值的固定 10比特、用于表示所述最小 像素值的位置信息的 2比特、 用于表示所述 2 x 2像素块中除所述最小像素值以 外的三个像素点的像素值与所述最小像素值之间的差值的 18比特、 以及 2比特 的相关标记信息;
206、 判断用于存储所述参考帧的存储器的突发访问带宽是否小于所述存 储器的预设突发访问带宽,如果所述存储器的突发访问带宽小于或等于所述存 储器的预设突发访问带宽,将所述 32比特的数据包在一个突发周期内存储在所 述存储器中。
例如, 以 2 x 2像素块为基本压缩单元, 将参考帧划分为多个 2 x 2像素块, 计算各 2 x 2像素块包括的像素点的最大像素值与最小像素值之间的差值 d, 当 - - 所述 2 x 2像素块包括的像素点的最大像素值与最小像素值之间的差值小于 26 时, 直接将所述 2 χ 2像素块中除所述最小像素值以外的每个像素点的像素值与 所述 2 X 2像素块包括的像素点的最小像素值之间的差值以 6比特位数表示, 根 据计算结果: 2 ( flag ) +10 ( min ) +2 ( minldx ) +6>< 3 ( difference ) =32, 将所 述 2 x 2像素块封装为长度为 32比特的压缩数据包, 其中, flag表示相关标记信 息, min表示所述 2x 2像素块包括的像素点的最小像素值, minldx表示所述最小 像素值的位置信息, difference表示所述 2 x 2像素块包括的像素点的最大像素值 与最小像素值之间的差值,判断用于存储所述参考帧的存储器的突发访问带宽 是否小于所述存储器的预设突发访问带宽,如果所述存储器的突发访问带宽小 于或等于所述存储器的预设突发访问带宽,将所述 32比特的压缩数据包在一个 突发周期内存储在所述存储器中。
本发明实施例提供的参考帧压缩存储方法, 以 2 X 2像素块为基本压缩单 元, 将参考帧划分为多个 2 x 2像素块, 当 2 x 2像素块包括的像素点的最大像素 值与最小像素值之间的差值小于第一预设阈值时, 直接将所述 2χ 2像素块中除 所述最小像素值以外的每个像素点的像素值与所述 2 x 2像素块包括的像素点 的最小像素值之间的差值 6比特表示, 将所述 2 x 2像素块封装为长度为 32比特 的数据包,当用于存储所述参考帧的存储器的突发访问带宽小于或等于存储器 的预设突发访问带宽时,将所述 32比特的压缩数据包在一个突发周期内存储在 该存储器中。 和现有技术相比, 本发明实施例提供的参考帧压缩存储方法, 可 以提高存储器的数据存储精度, 减少随机访问冗余。
实施例三
本实施例提供一种参考帧压缩存储方法, 如图 3所示, 所述方法包括: 301、 以预定的压缩单元为基本压缩单元将参考帧进行压缩, 得到多个定 长比特的压缩数据包;
302、 判断用于存储所述参考帧的存储器的突发访问带宽是否小于所述存 储器的预设突发访问带宽,如果所述存储器的突发访问带宽大于所述存储器的 预设突发访问带宽, 按照预定的扫描规则将所述存储器中的 4个所述定长比特 的压缩数据包组合成为 1个长度为所述定长比特的压缩数据包的比特位数的 4 倍的定长存储单元; 303、 将所述定长存储单元在一个突发周期内存储在所述存储器中。
例如, 以 2x2像素块为基本压缩单元, 将参考帧划分为多个 2x2像素块, 将所述 2x2像素块封装为长度为 32比特的数据包, 判断用于存储所述参考帧的 存储器的突发访问带宽是否小于所述存储器的预设突发访问带宽,如果存储器 的突发访问带宽大于所述存储器的预设突发访问带宽,将所述存储器中位置分 别为: i X width+j ,i χ width+(j+ 1 ), (i+ 1 ) x width+j , (i+l)x width+(j+ 1 )的 4个 32比特的 压缩数据包组合成为 1个长度为 128比特的存储单元, 其中, width表示所述参 考帧的宽度的 l/log2N, N表示所述压缩单元包括的像素数, i能够被 2整除, j 能够被 2整除。 具体地, 如图 4所示, 图中数据包 1, 2, 3, 4...表示所述参考帧 以 2x2像素块为基本压缩单元存储在所述存储器中, 当用于存储所述参考帧的 存储器的突发访问带宽大于所述存储器的预设突发访问带宽时,由于数据是不 连续存储的, 导致存储器的访问效率降低, 如果此时要读取数据包 1, 2, 9, 10, 在第一个突发访问过程中只能先读取数据包 1, 2, 8,再读取数据包 9, 10, 11, 其中 3, 4, ...,8为冗余数据, 造成存储器的访问效率不高。 例如, 将 width取值为 8, i取值为 0, j取值为 1, 根据上述公式计算得到 0>< 8+1=1 , 0x8+2=2, 1x8+1=9, 1>< 8+2=10, 如图 5所示, 将数据包 1, 2, 9, 10组合成为 一个 128比特的存储单元, 将所述 128比特的存储单元, 将所述 128比特的定长 存储单元在一个突发周期内存储在所述存储器中。
或者, 以 4x4像素块为基本压缩单元为例, 将参考帧划分为多个 4x4像素 块, 将所述 4x4像素块封装为长度为 128比特的数据包, 判断用于存储所述参 考帧的存储器的突发访问带宽是否小于所述存储器的预设突发访问带宽,如果 存储器的突发访问带宽大于所述存储器的预设突发访问带宽,按照预设的扫描 规则将所述 4个 128比特的压缩数据包组合成为 1个 512比特的存储单元,将所述 512比特的存储单元在一个突发周期内存储在所述存储器中。
本发明实施例提供的参考帧压缩存储方法,当存储器的突发访问带宽大于 所述存储器的预设突发访问带宽时, 按照预定的扫描规则将所述存储器中的 4 个所述定长比特的压缩数据包组合成为 1个长度为所述定长比特的压缩数据包 的比特位数的 4倍的定长存储单元, 将所述定长存储单元在一个突发周期内存 储在该存储器中。和现有技术相比,本发明实施例提供的参考帧压缩存储方法, - - 既可以提高存储器的数据存储精度, 减少随机访问冗余, 又能够保证存储器的 数据访问效率。
实施例四
本实施例提供一种参考帧压缩存储装置, 如图 6所示, 所述参考帧压缩存 储装置包括:
压缩模块 601,用于以预定的压缩单元为基本压缩单元将参考帧进行压缩, 得到多个定长比特的压缩数据包;
第一判断模块 602, 用于判断用于存储所述参考帧的存储器的突发访问带 宽是否小于所述存储器的预设突发访问带宽;
存储模块 603, 用于当所述存储器的突发访问带宽小于或等于所述存储器 的预设突发访问带宽时,将所述定长比特的压缩数据包在一个突发周期内存储 在所述存储器中。
进一步的, 如图 7所示, 所述压缩模块 401包括:
划分单元 6011, 用于以 2x2像素块为基本单元, 将参考帧划分为多个 2x2 像素块;
计算单元 6012, 用于计算各 2x2像素块包括的像素点的最大像素值与最小 像素值之间的差值;
表示单元 6013, 用于当所述 2x2像素块包括的像素点的最大像素值与最小 像素值之间的差值小于第一预设阈值时, 将所述 2x2像素块中除所述最小像素 值以外的每个像素点的像素值与所述 2 X 2像素块包括的像素点的最小像素值 之间的差值以少于 8比特的固定比特位数表示;
所述表示单元 6013, 还用于将所述 2x2像素块中除最小像素值以外的每个 像素点的像素值与所述 2 X 2像素块包括的像素点的最小像素值之间的差值以 少于 8比特的固定比特位数表示;
封装单元 6014, 用于将所述 2x2像素块封装为长度为 32比特的数据包, 所 述 32比特的数据包包括用于无失真地表示所述最小像素值的固定 10比特、用于 表示所述最小像素值的位置信息的 2比特、 用于表示所述 2x2像素块中除所述 最小像素值以外的三个像素点的像素值与所述最小像素值之间的差值的 18比 特、 以及 2比特的相关标记信息。 - - 进一步的, 如图 7所示, 所述参考帧压缩存储装置还包括:
组合模块 604, 用于当所述存储器的突发访问带宽大于所述存储器的预设 突发访问带宽时, 按照预定的扫描规则将所述存储器中的 4个所述定长比特的 压缩数据包组合成为 1个长度为所述定长比特的压缩数据包的比特位数的 4倍 的定长存储单元;
所述存储模块 603 , 还用于将所述定长存储单元在一个突发周期内存储在 所述存储器中。
进一步的, 所述组合模块 604, 具体用于将所述存储器中位置分别为: i X width+j ,i χ width+(j+ 1 ) , (i+ 1 ) x width+j , (i+ 1 ) x width+(j + 1 )的 4个定长比特的压缩 数据包组合成为 1个长度为所述定长比特的压缩数据包的比特位数的 4倍的定 长存储单元, 其中, width表示所述参考帧的宽度的 l/log2N, N表示所述压缩单 元包括的像素数, i能够被 2整除, j能够被 2整除。
本发明实施例提供的参考帧压缩存储装置,通过压缩模块以预定的压缩单 元为基本压缩单元将参考帧进行压缩,得到多个定长比特的压缩数据包,通过 第一判断模块判断用于存储所述参考帧的存储器的突发访问带宽是否小于存 储器的预设突发访问带宽,如果该存储器的突发访问带宽小于或等于存储器的 预设突发访问带宽,通过存储模块将所述定长比特的压缩数据包在一个突发周 期内存储在该存储器中。和现有技术相比, 本发明实施例提供的参考帧压缩存 储装置,当所述存储器的突发访问带宽小于或等于存储器的预设突发访问带宽 时,将所述定长比特的压缩数据包存储在该存储器中。既可以提高存储器的数 据存储精度, 减少随机访问冗余, 又能够保证存储器的数据访问效率。。
实施例五
本实施例提供一种参考帧解压方法, 如图 8所示, 所述方法包括:
801、 在一个突发周期内从存储器中读取将参考帧压缩后的定长比特的压 缩数据包;
802、 判断所述定长比特的压缩数据包的大小是否小于或等于第二预设阈 值, 若所述定长比特的压缩数据包的大小小于或等于所述第二阈值, 以所述定 长比特的压缩数据包作为基本解压单元将所述参考帧进行解压。
本发明实施例提供的参考帧解压方法,在一个突发周期内从存储器的存储 - - 单元中读取将参考帧压缩后的定长比特的压缩数据包,判断所述定长比特的压 缩数据包的大小是否小于或等于第二预设阈值,若所述定长比特的压缩数据包 的大小小于或等于所述第二阈值,以所述定长比特的压缩数据包作为基本解压 单元将所述参考帧进行解压。和现有技术相比, 本发明实施例提供的参考帧解 压方法, 当所述定长比特的压缩数据包的大小小于或等于所述第二阈值时, 以 所述定长比特的压缩数据包作为基本解压单元将所述参考帧进行解压,既可以 提高存储器的数据存储精度, 减少随机访问冗余, 又能够保证存储器的数据访 问效率。
实施例六
本实施例提供一种参考帧解压方法, 如图 9所示, 所述方法包括:
901、 在一个突发周期内从存储器中读取将参考帧压缩后的的 32比特的压 缩数据包;
902、 判断所述 32比特的数据包的大小是否小于第二阈值, 若所述 32比特 的数据包的大小小于所述第二阈值,读取所述 32比特的压缩数据包的相关标记 信息, 并根据所述 32比特的压缩数据包的相关标记信息,计算所述 32比特的压 缩数据包对应的映射值;
903、 若所述 32比特的压缩数据包对应的映射值小于第一预设阈值, 读取 所述 32比特的压缩数据包中长度为固定 10比特的比特数,所述长度为 10比特的 比特数无失真地表示 2 X 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比特的数据包的解压流程为:
读取参数 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比特的数据包的大 小小于第二阈值,以所述 32比特的数据包为基本解压单元将所述参考帧进行解 压。 和现有技术相比, 本发明实施例提供的参考帧解压方法, 当所述定长比特 的压缩数据包的大小小于或等于所述第二阈值时,以所述定长比特的压缩数据 包作为基本解压单元将所述参考帧进行解压,既可以提高存储器的数据存储精 度, 减少随机访问冗余, 又能够保证存储器的数据访问效率。
实施例七 - - 本实施例提供一种参考帧解压方法, 如图 10所示, 所述方法包括:
1001、在一个突发周期内从存储器中读取将参考帧压缩后的定长比特的压 缩数据包;
1002、判断所述定长比特的压缩数据包的大小是否小于或等于第二预设阈 值, 若所述定长比特的压缩数据包的大小大于所述第二阈值,将所述定长比特 的压缩数据包平均分割为 4个定长比特的数据包;
1003、 获得需要恢复的 4x4存储单元在所述参考帧中的起始点位置;
1004、 根据所述需要恢复的 4x4存储单元在所述参考帧中的起始点位置, 获得所述需要恢复的 4x4存储单元中包括的 4个定长比特的数据包在所述参考 帧中的位置;
1005、 根据预定的反扫描规则, 计算所述 4个定长比特的数据包在所述需 要恢复的 4 X 4存储单元中的位置;
1006、 根据所述 4个定长比特的数据包在所述需要恢复的 4x4存储单元中 的位置, 将所述 4个定长比特的数据包存放在所述需要恢复的 4x4存储单元中。
例如, 获得所述需要恢复的 4x4存储单元在所述参考帧中的起始点坐标
( startX, startY ), 根据如下公式:
IX-startXI<4, IY-startYI<4;
X = m><width_4;
Y = nxheight_4;
其中, width_4是所述参考帧宽度的 1/4, height_4是所述参考帧高度的 1/4, m, n均取整数值。 计算所述需要恢复的 4x4压缩单元包括的 4个 32比特的数据 包在所述参考帧中的坐标。
根据预定的反扫描规则, 计算得到所述需要恢复的 4x4压缩单元中包括的 4个 32比特的数据包在所述需要恢复的 4x 4压缩单元中的位置分别为: i X width+j ,i x width+(j + 1 ), (i+ 1 ) χ width+j , (i+l)x width+(j+l), 其中, width表示所 述参考帧的宽度的 l/log2N, N是压缩单元包含的像素数, i能够被 2整除, j能够 被 2整除。 例如, 将 width取值为 8, i取值为 0, j取值为 1, 根据公式计算得到所 述 4个 32比特的数据包在所述参考帧中的位置分别为: 0x8+1=1, 0x8+2=2, 1x8+1=9, 2x8+2=10。 - - 本发明实施例提供的参考帧解压方法,若所述定长比特的压缩数据包的大 小大于所述第二阈值, 将所述定长比特的压缩数据包平均分割为 4个定长比特 的数据包, 根据所述需要恢复的 4x 4存储单元在所述参考帧中的起始点位置, 获得所述需要恢复的 4 x 4存储单元中包括的 4个定长比特的数据包在所述参考 帧中的位置, 根据预定的反扫描规则, 计算所述 4个定长比特的数据包在所述 需要恢复的 4 x 4存储单元中的位置, 根据所述 4个定长比特的数据包在所述需 要恢复的 4 x 4存储单元中的位置, 将所述 4个定长比特的数据包存放在所述需 要恢复的 4x 4存储单元中。 和现有技术相比, 本发明实施例提供的参考帧解压 方法, 当所述定长比特的压缩数据包的大小大于所述第二阈值时,将所述定长 比特的压缩数据包平均分割为 4个定长比特的数据包。 既可以提高存储器的数 据存储精度, 减少随机访问冗余, 又能够保证存储器的数据访问效率。
实施例八
本实施例提供一种参考帧解压装置, 如图 11所示, 所述参考帧解压装置包 括:
读取模块 1101 ,用于在一个突发周期内从存储器中读取将参考帧压缩后的 定长比特的压缩数据包;
第二判断模块 1102 ,用于判断所述定长比特的压缩数据包的大小是否小于 或等于第二预设阈值;
解压模块 1103,用于当所述定长比特的压缩数据包的大小小于或等于所述 第二阈值时,以所述定长比特的压缩数据包作为基本解压单元将所述参考帧进 行解压。
进一步的, 如图 12所示, 所述解压模块 1103包括:
读取单元 11031 , 用于当所述定长比特的压缩数据包的大小为 32比特时, 读取所述 32比特的压缩数据包的相关标记信息;
计算单元 11032 , 用于并根据所述 32比特的压缩数据包的相关标记信息, 计算所述 32比特的压缩数据包对应的映射值;
所述读取单元 11031 , 还用于当所述 32比特的压缩数据包对应的映射值小 于第一预设阈值时,读取所述 32比特的压缩数据包中长度为固定 10比特的比特 数, 所述长度为 10比特的比特数无失真地表示 2x 2像素块包括的像素点的最小 - - 像素值;
所述读取单元 11031, 还用于读取所述 32比特的压缩数据包中用于表示所 述最小像素值的位置信息的长度为 2比特的比特数;
获得单元 11033, 用于根据所述用于表示所述最小像素值的位置信息的长 度为 2比特的比特数, 获得所述 2x2像素块中除所述最小像素值以外的每个像 素点的位置信息;
所述读取单元 11031,还用于按照少于 8比特的固定比特位数读取用于表示 所述 2x2像素块中除所述最小像素值以外的三个像素点的像素值与所述最小 像素值之间的差值的 18比特;
所述获得单元 11033,还用于获得用于表示所述 2x2像素块中除所述最小像 素值以外的每个像素点的像素值与所述最 d、像素值之间的差值的比特数; 所述获得单元 11033,还用于根据所述用于表示所述 2x2像素块中除所述最 Ί、像素值以外的每个像素点的像素值与所述最小像素值之间的差值的比特数, 以及所述 2 X 2像素块中除所述最 d、像素值以外的每个像素点的位置信息, 获得 所述 2x2像素块中除所述最小像素值以外的每个像素点的像素值。
进一步的, 如图 12所示, 所述参考帧解压装置还可以包括:
分割模块 1104,用于当所述定长比特的压缩数据包的大小大于所述第二阈 值时, 将所述定长比特的压缩数据包平均分割为 4个定长比特的数据包;
获得模块 1105, 用于获得需要恢复的 4x4存储单元在所述参考帧中的起始 点位置;
所述获得模块 1105, 还用于根据所述需要恢复的 4x4存储单元在所述参考 帧中的起始点位置, 获得所述需要恢复的 4x4存储单元中包括的 4个定长比特 的数据包在所述参考帧中的位置;
计算模块 1106, 用于根据预定的反扫描规则, 计算所述 4个定长比特的数 据包在所述需要恢复的 4x4存储单元中的位置;
存放模块 1107,用于根据所述 4个定长比特的数据包在所述需要恢复的 4x4 存储单元中的位置, 将所述 4个定长比特的数据包存放在所述需要恢复的 4x4 存储单元中。
进一步的, 所述分割模块 1104, 具体用于当若所述定长比特的压缩数据包 - - 的大小为 128比特时, 将所述 128比特的压缩数据包平均分割为 4个 32比特的数 据包。
进一步的, 如图 12所示, 所述获得模块 1105包括:
获得单元 11051 ,用于获得所述需要恢复的 4x 4压缩单元在所述参考帧中的 起始点坐标;
计算单元 11052,用于根据所述需要恢复的 4x 4压缩单元在所述参考帧中的 起始点坐标, 计算所述需要恢复的 4x 4压缩单元包括的 4个 32比特的数据包在 所述参考帧中的坐标。
进一步的, 所述计算模块 1106, 具体用于根据预定的反扫描规则, 计算所 述需要恢复的 4x 4存储单元中包括的 4个 32比特的数据包在所述 4x 4存储单元 的位置分别为: ix width+j,ix width+ j+l),(i+l)x width+j, (i+l)x width+(j+l),其中, width表示所述参考帧的宽度的 l/log2N, N表示所述压缩单元包括的像素数, i 能够被 2整除, j能够被 2整除。
本发明实施例提供的参考帧解压装置,通过读取模块在一个突发周期内从 存储器的存储单元中读取将参考帧压缩后的定长比特的压缩数据包,通过判断 模块判断所述定长比特的压缩数据包的大小是否小于或等于第二预设阈值,若 所述定长比特的压缩数据包的大小小于或等于所述第二阈值,通过压缩模块以 所述定长比特的压缩数据包作为基本解压单元将所述参考帧进行解压。和现有 技术相比, 本发明实施例提供的参考帧解压装置, 当所述定长比特的压缩数据 包的大小小于或等于所述第二阈值时,以所述定长比特的压缩数据包作为基本 解压单元将所述参考帧进行解压, 既可以提高存储器的数据存储精度, 减少随 机访问冗余, 又能够保证存储器的数据访问效率。
本发明实施例提供的参考帧压缩存储装置和解压装置可以实现上述提供 的方法实施例, 具体功能实现请参见方法实施例中的说明, 在此不再赘述。 本 发明实施例提供的参考帧压缩存储和解压方法及装置可以适用于参考帧压缩, 但不仅限于此。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算 机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 - - 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM )或随机存储记忆体(Random Access Memory, RAM )等。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于 此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围 应该以权利要求的保护范围为准。
+

Claims

权 利 要 求
1、 一种参考帧压缩存储方法, 其特征在于, 包括:
以预定的压缩单元为基本压缩单元将参考帧进行压缩,得到多个定长比特 的压缩数据包;
判断用于存储所述参考帧的存储器的突发访问带宽是否小于所述存储器 的预设突发访问带宽,如果所述存储器的突发访问带宽小于或等于所述存储器 的预设突发访问带宽,将所述定长比特的压缩数据包在一个突发周期内存储在 所述存储器中。
2、 根据权利要求 1所述的方法, 其特征在于, 所述以预定的压缩单元为 基本压缩单元将参考帧进行压缩, 得到多个定长比特的压缩数据包, 包括: 以 2x 2像素块为基本压缩单元, 将参考帧划分为多个 2x 2像素块; 计算各 2x 2像素块包括的像素点的最大像素值与最小像素值之间的差值; 若所述 2x 2像素块包括的像素点的最大像素值与最小像素值之间的差值 小于第一预设阈值, 将所述 2x 2像素块中除所述最小像素值以外的每个像素 点的像素值与所述 2x 2像素块包括的像素点的最小像素值之间的差值以少于 8 比特的固定比特位数表示;
将所述 2 x 2像素块中除最小像素值以外的每个像素点的像素值与所述
2 x 2像素块包括的像素点的最小像素值之间的差值以少于 8比特的固定比特位 数表示;
将所述 2 x 2像素块封装为长度为 32比特的数据包, 所述 32比特的数据 包包括用于无失真地表示所述最小像素值的固定 10比特、 用于表示所述最小 像素值的位置信息的 2比特、 用于表示所述 2x 2像素块中除所述最小像素值 以外的三个像素点的像素值与所述最小像素值之间的差值的 18比特、 以及 2 比特的相关标记信息。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 还包括:
如果所述存储器的突发访问带宽大于所述存储器的预设突发访问带宽,按 照预定的扫描规则将所述存储器中的 4 个所述定长比特的压缩数据包组合成 为 1个长度为所述定长比特的压缩数据包的比特位数的 4倍的定长存储单元; 将所述定长存储单元在一个突发周期内存储在所述存储器中。
4、 根据权利要求 3所述的方法, 其特征在于, 所述按照预定的扫描规则 将所述存储器中的 4个所述定长比特的压缩数据包组合成为 1个长度为所述定 长比特的压缩数据包的比特位数的 4倍的定长存储单元, 包括:
将所述存储器中位置分别为: i X width+j,i χ width+G+l),(i+l) x width+j, (i+l) x width+(j+l)的 4个定长比特的压缩数据包组合成为 1个长度为所述定长 比特的压缩数据包的比特位数的 4倍的定长存储单元, 其中, width表示所述 参考帧的宽度的 l/log2N, N表示所述压缩单元包括的像素数, i能够被 2整除, j能够被 2整除。
5、 一种参考帧压缩存储装置, 其特征在于, 包括:
压缩模块, 用于以预定的压缩单元为基本压缩单元将参考帧进行压缩,得 到多个定长比特的压缩数据包;
第一判断模块,用于判断用于存储所述参考帧的存储器的突发访问带宽是 否小于所述存储器的预设突发访问带宽;
存储模块,用于当所述存储器的突发访问带宽小于或等于所述存储器的预 设突发访问带宽时,将所述定长比特的压缩数据包在一个突发周期内存储在所 述存储器中。
6、 根据权利要求 5所述的装置, 其特征在于, 所述压缩模块包括 划分单元, 用于以 2x 2像素块为基本单元, 将参考帧划分为多个 2x 2像 素块;
计算单元, 用于计算各 2x 2像素块包括的像素点的最大像素值与最小像 素值之间的差值;
表示单元, 用于当所述 2x 2像素块包括的像素点的最大像素值与最小像 素值之间的差值小于第一预设阈值时, 将所述 2x 2像素块中除所述最小像素 值以外的每个像素点的像素值与所述 2x 2像素块包括的像素点的最小像素值 之间的差值以少于 8比特的固定比特位数表示;
所述表示单元, 还用于将所述 2x 2像素块中除最小像素值以外的每个像 素点的像素值与所述 2x 2像素块包括的像素点的最小像素值之间的差值以少 于 8比特的固定比特位数表示;
封装单元, 用于将所述 2x 2像素块封装为长度为 32比特的数据包, 所述 32比特的数据包包括用于无失真地表示所述最小像素值的固定 10比特、 用于 表示所述最小像素值的位置信息的 2比特、 用于表示所述 2x 2像素块中除所 述最小像素值以外的三个像素点的像素值与所述最小像素值之间的差值的 18 比特、 以及 2比特的相关标记信息。
7、 根据权利要求 5或 6所述的装置, 其特征在于, 还包括:
组合模块,用于当所述存储器的突发访问带宽大于所述存储器的预设突发 访问带宽时,按照预定的扫描规则将所述存储器中的 4个所述定长比特的压缩 数据包组合成为 1个长度为所述定长比特的压缩数据包的比特位数的 4倍的定 长存储单元;
所述存储模块,还用于将所述定长存储单元在一个突发周期内存储在所述 存储器中。
8、 根据权利要求 7所述的装置, 其特征在于, 所述组合模块, 具体用于 将所述存储器中位置分别为: i X width+j,i χ width+G+l),(i+l) x width+j, (i+l)x width+(j+l)的 4个定长比特的压缩数据包组合成为 1个长度为所述定长 比特的压缩数据包的比特位数的 4倍的定长存储单元, 其中, width表示所述 参考帧的宽度的 l/log2N, N表示所述压缩单元包括的像素数, i能够被 2整除, j能够被 2整除。
9、 一种参考帧解压方法, 其特征在于, 包括:
在一个突发周期内从存储器中读取将参考帧压缩后的定长比特的压缩数 据包;
判断所述定长比特的压缩数据包的大小是否小于或等于第二预设阈值,若 所述定长比特的压缩数据包的大小小于或等于所述第二阈值,以所述定长比特 的压缩数据包作为基本解压单元将所述参考帧进行解压。
10、 根据权利要求 9所述的方法, 其特征在于, 所述若所述定长比特的压 缩数据包的大小小于或等于所述第二阈值,以所述定长比特的压缩数据包作为 基本解压单元将所述参考帧进行解压, 包括:
若所述定长比特的压缩数据包的大小为 32比特,读取所述 32比特的压缩 数据包的相关标记信息, 并 4艮据所述 32比特的压缩数据包的相关标记信息, 计算所述 32比特的压缩数据包对应的映射值;
若所述 32比特的压缩数据包对应的映射值小于第一预设阈值, 读取所述 32比特的压缩数据包中长度为固定 10比特的比特数, 所述长度为 10比特的 比特数无失真地表示 2x 2像素块包括的像素点的最小像素值; 读取所述 32比特的压缩数据包中用于表示所述最小像素值的位置信息的 长度为 2比特的比特数,根据所述用于表示所述最小像素值的位置信息的长度 为 2比特的比特数, 获得所述 2 x 2像素块中除所述最小像素值以外的每个像 素点的位置信息;
按照少于 8比特的固定比特位数读取用于表示所述 2x 2像素块中除所述 最小像素值以外的三个像素点的像素值与所述最小像素值之间的差值的 18比 特, 获得用于表示所述 2x 2像素块中除所述最小像素值以外的每个像素点的 像素值与所述最小像素值之间的差值的比特数;
根据所述用于表示所述 2x 2像素块中除所述最小像素值以外的每个像素 点的像素值与所述最小像素值之间的差值的比特数, 以及所述 2x 2像素块中 除所述最小像素值以外的每个像素点的位置信息, 获得所述 2x 2像素块中除 所述最小像素值以外的每个像素点的像素值。
11、 根据权利要求 9或 10所述的方法, 其特征在于, 还包括:
若所述定长比特的压缩数据包的大小大于所述第二阈值,将所述定长比特 的压缩数据包平均分割为 4个定长比特的数据包;
获得需要恢复的 4x 4存储单元在所述参考帧中的起始点位置;
根据所述需要恢复的 4 x 4存储单元在所述参考帧中的起始点位置, 获得 所述需要恢复的 4x 4存储单元中包括的 4个定长比特的数据包在所述参考帧 中的位置;
根据预定的反扫描规则,计算所述 4个定长比特的数据包在所述需要恢复 的 4 x 4存储单元中的位置;
根据所述 4个定长比特的数据包在所述需要恢复的 4x 4存储单元中的位 置, 将所述 4个定长比特的数据包存放在所述需要恢复的 4x 4存储单元中。
12、 根据权利要求 11所述的方法, 其特征在于, 所述若所述定长比特的 压缩数据包的大小大于所述第二阈值,将所述定长比特的压缩数据包平均分割 为 4个定长比特的数据包, 包括:
若所述定长比特的压缩数据包的大小为 128比特,将所述 128比特的压缩 数据包平均分割为 4个 32比特的数据包。
13、根据权利要求 12所述的方法,其特征在于,所述获得需要恢复的 4x 4 存储单元在所述参考帧中的起始点位置, 根据所述需要恢复的 4x 4存储单元 在所述参考帧中的起始点位置,获得所述需要恢复的 4x 4存储单元中包括的 4 个定长比特的数据包在所述参考帧中的位置, 包括:
获得所述需要恢复的 4 x 4压缩单元在所述参考帧中的起始点坐标; 根据所述需要恢复的 4 x 4压缩单元在所述参考帧中的起始点坐标, 计算 所述需要恢复的 4 x 4压缩单元包括的 4个 32比特的数据包在所述参考帧中的 坐标。
14、 根据权利要求 12所述的方法, 其特征在于, 所述根据预定的反扫描 规则, 计算所述 4个定长比特的数据包在所述需要恢复的 4x 4存储单元中的 位置, 包括:
根据预定的反扫描规则, 计算所述需要恢复的 4x 4存储单元中包括的 4 个 32 比特的数据包在所述 4 x 4 存储单元的位置分别 为 : i X width+j ,i χ width+(j + 1 ), (i+ 1 ) x width+j , (i+l) x width+(j+l), 其中, width表示所 述参考帧的宽度的 l/log2N, N表示所述压缩单元包括的像素数, i能够被 2整 除, j能够被 2整除。
15、 一种参考帧解压装置, 其特征在于, 包括:
读取模块,用于在一个突发周期内从存储器中读取将参考帧压缩后的定长 比特的压缩数据包;
第二判断模块,用于判断所述定长比特的压缩数据包的大小是否小于或等 于第二预设阈值;
解压模块,用于当所述定长比特的压缩数据包的大小小于或等于所述第二 阈值时,以所述定长比特的压缩数据包作为基本解压单元将所述参考帧进行解 压。
16、 根据权利要求 15所述的装置, 其特征在于, 所述解压模块包括: 读取单元, 用于当所述定长比特的压缩数据包的大小为 32比特时, 读取 所述 32比特的压缩数据包的相关标记信息;
计算单元, 用于并根据所述 32比特的压缩数据包的相关标记信息, 计算 所述 32比特的压缩数据包对应的映射值;
所述读取单元, 还用于当所述 32比特的压缩数据包对应的映射值小于第 一预设阈值时,读取所述 32比特的压缩数据包中长度为固定 10比特的比特数, 所述长度为 10比特的比特数无失真地表示 2x 2像素块包括的像素点的最小像 素值;
所述读取单元, 还用于读取所述 32比特的压缩数据包中用于表示所述最 小像素值的位置信息的长度为 2比特的比特数;
获得单元, 用于根据所述用于表示所述最小像素值的位置信息的长度为 2 比特的比特数, 获得所述 2x 2像素块中除所述最小像素值以外的每个像素点 的位置信息;
所述读取单元,还用于按照少于 8比特的固定比特位数读取用于表示所述 2 x 2像素块中除所述最小像素值以外的三个像素点的像素值与所述最小像素 值之间的差值的 18比特;
所述获得单元, 还用于获得用于表示所述 2x 2像素块中除所述最小像素 值以外的每个像素点的像素值与所述最小像素值之间的差值的比特数;
所述获得单元, 还用于根据所述用于表示所述 2x 2像素块中除所述最小 像素值以外的每个像素点的像素值与所述最小像素值之间的差值的比特数,以 及所述 2x 2像素块中除所述最小像素值以外的每个像素点的位置信息, 获得 所述 2x 2像素块中除所述最小像素值以外的每个像素点的像素值。
17、 根据权利要求 15或 16所述的装置, 其特征在于, 还包括: 分割模块, 用于当所述定长比特的压缩数据包的大小大于所述第二阈值 时, 将所述定长比特的压缩数据包平均分割为 4个定长比特的数据包;
获得模块, 用于获得需要恢复的 4x 4存储单元在所述参考帧中的起始点 位置;
所述获得模块, 还用于根据所述需要恢复的 4x 4存储单元在所述参考帧 中的起始点位置, 获得所述需要恢复的 4 x 4存储单元中包括的 4个定长比特 的数据包在所述参考帧中的位置;
计算模块, 用于根据预定的反扫描规则,计算所述 4个定长比特的数据包 在所述需要恢复的 4x 4存储单元中的位置;
存放模块, 用于根据所述 4 个定长比特的数据包在所述需要恢复的 4x 4 存储单元中的位置,将所述 4个定长比特的数据包存放在所述需要恢复的 4x 4 存储单元中。
18、 根据权利要求 17所述的装置, 其特征在于, 所述分割模块, 具体用 于当若所述定长比特的压缩数据包的大小为 128比特时,将所述 128比特的压 缩数据包平均分割为 4个 32比特的数据包。
19、 根据权利要求 18所述的装置, 其特征在于, 所述获得模块, 包括: 获得单元, 用于获得所述需要恢复的 4x4压缩单元在所述参考帧中的起 始点坐标;
计算单元, 用于根据所述需要恢复的 4x4压缩单元在所述参考帧中的起 始点坐标, 计算所述需要恢复的 4x4压缩单元包括的 4个 32比特的数据包在 所述参考帧中的坐标。
20、 根据权利要求 18所述的装置, 其特征在于, 所述计算模块, 具体用 于根据预定的反扫描规则, 计算所述需要恢复的 4x4存储单元中包括的 4个 32 比特的数据 包在所述 4 x 4 存储单元的位置分别 为 : i X width+j ,i χ width+(j + 1 ), (i+ 1 ) x width+j , (i+l)x width+(j+l), 其中, width表示所 述参考帧的宽度的 l/log2N, N表示所述压缩单元包括的像素数, i能够被 2整 除, j能够被 2整除。
PCT/CN2012/078625 2011-07-14 2012-07-13 一种参考帧压缩存储和解压方法及装置 WO2013007215A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110197621.XA CN102883158B (zh) 2011-07-14 2011-07-14 一种参考帧压缩存储和解压方法及装置
CN201110197621.X 2011-07-14

Publications (1)

Publication Number Publication Date
WO2013007215A1 true WO2013007215A1 (zh) 2013-01-17

Family

ID=47484276

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/078625 WO2013007215A1 (zh) 2011-07-14 2012-07-13 一种参考帧压缩存储和解压方法及装置

Country Status (2)

Country Link
CN (1) CN102883158B (zh)
WO (1) WO2013007215A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991951B (zh) * 2015-01-27 2019-03-08 炬芯(珠海)科技有限公司 一种视频参考帧数据存储的方法和设备
CN117609402B (zh) * 2024-01-22 2024-03-26 天津市品茗科技有限公司 一种物联网系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1784007A (zh) * 2004-10-29 2006-06-07 英特尔公司 将视频帧从存储器传送到片内缓冲器供视频处理
CN101576865A (zh) * 2009-06-03 2009-11-11 福建星网锐捷网络有限公司 保证存储器读交易带宽的方法、装置和中央处理单元
CN101594535A (zh) * 2008-05-28 2009-12-02 株式会社日立制作所 图像处理装置
CN101895676A (zh) * 2010-07-07 2010-11-24 上海富瀚微电子有限公司 一种适用于bm3d实时处理的集合方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101208954B (zh) * 2004-03-08 2010-09-08 Nxp股份有限公司 具有可变压缩比和用于存储及检索参考帧数据的缓冲器的视频解码器以及视频解码方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1784007A (zh) * 2004-10-29 2006-06-07 英特尔公司 将视频帧从存储器传送到片内缓冲器供视频处理
CN101594535A (zh) * 2008-05-28 2009-12-02 株式会社日立制作所 图像处理装置
CN101576865A (zh) * 2009-06-03 2009-11-11 福建星网锐捷网络有限公司 保证存储器读交易带宽的方法、装置和中央处理单元
CN101895676A (zh) * 2010-07-07 2010-11-24 上海富瀚微电子有限公司 一种适用于bm3d实时处理的集合方法

Also Published As

Publication number Publication date
CN102883158B (zh) 2015-09-09
CN102883158A (zh) 2013-01-16

Similar Documents

Publication Publication Date Title
US10165305B2 (en) Encoding and decoding transform coefficient sub-blocks in same predetermine order
WO2013004169A1 (zh) 一种参考帧压缩和解压方法及装置
US9462274B2 (en) Transformation mode encoding and decoding method and apparatus
JP5860067B2 (ja) 符号化方法及び装置並びに復号化方法及び装置
US8989275B2 (en) Video processing architecture
WO2013004166A1 (zh) 帧内预测编解码处理方法、装置和系统
TW202002632A (zh) 應用於視訊內容編碼之多重參考鄰邊之畫面內預測之自適應性濾波方法、使用上述方法的視訊編碼裝置及視訊解碼裝置
WO2018141116A1 (zh) 编解码方法及装置
US9674529B2 (en) Intra-frame decoding method and apparatus for signal component sampling point of image block
WO2013007215A1 (zh) 一种参考帧压缩存储和解压方法及装置
US8576916B2 (en) Method and apparatus for reducing bus traffic of a texture decoding module in a video decoder
KR101230856B1 (ko) 화면내 부호화 모드의 결정 방법 및 이를 활용한 분산 비디오 부호화 기법 코덱
CN116634159A (zh) 视频编码方法及装置、视频解码方法及装置
CN116708800A (zh) 图像编码与解码方法、装置及系统

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: 12811608

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: 12811608

Country of ref document: EP

Kind code of ref document: A1