WO2012097746A1 - Coding-decoding method and device - Google Patents
Coding-decoding method and device Download PDFInfo
- Publication number
- WO2012097746A1 WO2012097746A1 PCT/CN2012/070606 CN2012070606W WO2012097746A1 WO 2012097746 A1 WO2012097746 A1 WO 2012097746A1 CN 2012070606 W CN2012070606 W CN 2012070606W WO 2012097746 A1 WO2012097746 A1 WO 2012097746A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- sub
- reference pixel
- block
- image block
- obtaining
- 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/60—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
- H04N19/61—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
Definitions
- the present invention relates to video codec technology. Background technique
- the basic principle of video coding compression is to remove redundancy as much as possible by using the correlation between airspace, time domain and codewords.
- the current popular practice is to use a block-based hybrid video coding framework to implement video coding compression through steps such as prediction, transform, quantization, and entropy coding.
- This coding framework shows a resilience, from the earliest MPEG-1 to the latest video coding standard H.264/AVC, and even the JCTVC working group (the joint working group established by MPEG and VECG) is developing the next generation.
- the video coding compression standard HEVC still uses this block-based hybrid video coding framework.
- Block-based spatial domain predictive coding techniques are generally used in video coding and decoding.
- the basic principle is to divide the block to be coded into multiple sub-blocks, and then remove the spatial redundancy by using the correlation between the image block to be encoded and the adjacent block. That is, the sub-image block is predicted by using the adjacent block as a reference block.
- image block division there is a division method in the industry in which a current coded image block is divided into sub-image blocks arranged in a horizontal direction and a vertical direction by parallel division lines, and then prediction is performed in units of these sub-image blocks.
- prediction reference can be made to the newly introduced UDI prediction technology in the industry, and the 34 prediction modes are traversed from 45 sub-image blocks for prediction, and finally the prediction direction with the lowest rate distortion cost for the sub-image block is selected as The prediction direction of all the pixels in the current sub-image block, and the residual data of the corresponding generated sub-image block is obtained.
- the process of prediction it is necessary to obtain a reference pixel value of the reference pixel according to the prediction mode, obtain a predicted pixel value of the sub-image block according to the reference pixel value, and further determine a code rate distortion cost under the current prediction mode.
- the inventor found a problem in the implementation, that is, when using this method for prediction, since the sub-image blocks are sequentially arranged, the reference pixel points corresponding to each sub-image block are due to the difference in position.
- the pixel values of the reference pixel points that can be used in prediction of all the sub-image blocks of the current coded image block are read into the reference pixel buffer, but some sub-image blocks are used.
- the prediction only needs to refer to some reference pixels in the pixel buffer, which is easy to be messed up in the process of extracting these reference pixels. Order or error. Summary of the invention
- the present invention provides an encoding method, including: dividing a current encoding object to obtain sub-image blocks arranged in a horizontal or vertical direction; obtaining an index value of the sub-image block, wherein the index value is used to represent Determining the ordering information of the sub-image block; obtaining, according to the index value, the size specification of the sub-image block, and the preset prediction mode, a reference pixel point required for the sub-image block to perform prediction, and obtaining the reference a reference pixel value of the pixel; predicting the sub-image block according to the reference pixel value and a preset prediction mode to obtain residual data; transforming, quantizing, and entropy encoding the residual data to obtain an encoding The remaining residual data; the division mode information of the current coding target, the coded residual data, and the prediction mode information of the sub-picture block are written into the code stream.
- the present invention further provides a corresponding decoding method, including: parsing residual data from a code stream, a division mode of a current decoding object, and prediction mode information of a current decoding object; and the current decoding object according to the division mode information Dividing into sub-image blocks arranged in a horizontal direction or a vertical direction; obtaining an index value of the sub-image block, wherein the index value is used to represent ranking information of the sub-image block; according to the index value, Determining a size specification of the sub-image block, and the prediction mode, obtaining a reference pixel point required for prediction by the sub-image block, and obtaining a reference pixel value of the reference pixel point; according to the reference pixel value and the Residual data, obtaining reconstructed pixel values of the sub-image block.
- the present invention also provides a codec device to which the codec method is applied.
- FIG. 1 is a schematic diagram of an encoding method according to an embodiment of the present invention.
- FIG. 2 is a schematic diagram of a decoding method according to an embodiment of the present invention.
- FIG. 3 is a schematic diagram of an encoding apparatus according to an embodiment of the present invention.
- FIG. 4 is a schematic diagram of a decoding apparatus according to an embodiment of the present invention. detailed description
- an embodiment of the present invention provides an encoding method, including:
- Step 101 Divide the current coding object to obtain sub-image blocks arranged in a horizontal or vertical direction.
- the current encoding object is divided into a plurality of sub-image blocks arranged in the horizontal direction by a plurality of vertical dividing lines, or the current encoding object is divided into a plurality of horizontal dividing lines and arranged in a plurality of vertical dividing lines.
- Sub-image block In the embodiment of the present invention, the size specifications of the sequentially arranged sub-image blocks are the same.
- Step 102 Obtain an index value of the sub-image block, where the index value is used to indicate ranking information of the sub-image block;
- the current encoding object is divided into four sub-image blocks 0, 1, 2, 3, which are sequentially arranged, wherein "0, 1, 2, 3" are the index values of the sub-image blocks, and according to these index values
- the sorting sequence of the sub-image block can also obtain the position information of the sub-image block according to the sorting sequence, for example, when the current encoding object is divided into four sub-image blocks 0, 1, 2, 3 arranged in the horizontal direction, the index A sub-image block with a value of 0 is on the left border of the current encoding object, and a sub-image block with an index value of 1 is adjacent to the sub-image block with an index value of 0, and the sub-image block with an index value of 3 is currently encoded.
- the sub-image block with index value 2 is between sub-image blocks with index values of 1 and 3. From another perspective, the index value can also be used to represent the location information of the sub-image block.
- Step 103 Obtain, according to the index value, a size specification of the sub-image block, and a preset prediction mode, a reference pixel that is needed when the sub-image block is predicted, and obtain a reference pixel of the reference pixel.
- Determining, according to the index value, the size specification of the sub-image block, and the preset prediction mode, the reference pixel points required for the sub-image block to perform prediction include: according to a preset prediction mode and the sub a size specification of the image block, obtaining number information of the required reference pixel points; determining start position information of the reference pixel point according to the index value and the size specification of the sub image block; according to the reference pixel point The start position information and the number information obtain reference pixel points from the upper adjacent block, the upper right adjacent block, the left adjacent block, and the lower left adjacent block of the encoding object.
- the angle of the prediction direction of the measurement mode is 225 degrees, and the angle of the prediction direction of the rightmost prediction mode is 45 degrees, and then the 34 prediction modes of the UDI prediction can be obtained according to the length and width of the sub-image block.
- the adjacent block for reference of the current coding object is half of its upper adjacent block, upper right adjacent block, left adjacent block, and lower left adjacent block.
- the reference pixel points of the sub-picture block include upper reference pixel points (sets;) from the upper adjacent block and the upper right adjacent block, and from the left adjacent block and the lower left adjacent block. Left reference pixel point (set).
- the pixel points on the right boundary of the left adjacent block and the lower left adjacent block of the current encoding object according to the UDI prediction technology All of them need to be reference pixel points, and the pixel points within the predicted angle coverage of the prediction mode in the upper adjacent block and the upper right adjacent block of the current encoding object can be used as reference pixel points of the sub-image block.
- the determining, according to the index value, the size specification of the sub-image block, and the preset prediction mode, the reference pixel points required for the sub-image block to perform prediction include: according to a preset prediction mode and a Determining a size specification of the sub-image block, obtaining number information of reference points in the upper adjacent block and the upper right adjacent block of the current encoding object; determining, according to the index value and the size specification of the sub-image block The starting position information of the reference pixel points of the upper adjacent block and the upper right adjacent block of the current encoding object; and the number information of the reference pixel points of the upper adjacent block and the upper right adjacent block of the current encoding object Starting position information, obtaining an upper reference pixel point of the sub-image block in an upper neighboring block and an upper right neighboring block of the current encoding object; according to a preset prediction mode, a left neighboring edge of the current encoding object Obtaining a left reference pixel of the sub-image block in the block and the lower left
- the pixel points on the lower boundary of the upper adjacent block and the upper right adjacent block of the current encoding object according to the UDI prediction specification All of them need to be reference pixel points, and the pixel points within the prediction angle coverage of the prediction mode in the left adjacent block and the lower left adjacent block of the current encoding object can be used as reference pixel points of the sub-image block.
- the determining, according to the index value, the size specification of the sub-image block, and the preset prediction mode, the reference pixel points required for the sub-image block to perform prediction include: according to a preset prediction mode and a Determining the size specification of the sub-image block, obtaining the left adjacent block and the lower left adjacent block of the current encoding object And determining, according to the index value and the size specification of the sub-image block, starting position information of reference pixel points of the left adjacent block and the lower left adjacent block of the current encoding object; Obtaining the number in the left neighboring block and the lower left neighboring block of the current encoding object according to the number information and the starting position information of the reference pixel points of the left neighboring block and the lower left neighboring block of the current encoding object a left reference pixel of the sub-image block; obtaining an upper reference pixel of the sub-image block in an upper adjacent block and an upper right adjacent block of the current encoding object according to a preset prediction mode, where Deriving the
- the pixel value of the reference pixel point may be stored in the reference pixel buffer, in the process of prediction. Extract in order.
- all the pixels adjacent to the current encoding object in the upper adjacent block, the upper right adjacent block, the left adjacent block, or the lower left adjacent block of the current encoding object may also be written. Into the cache, and then read according to the ordering relationship of the determined reference pixels in all the pixels.
- Step 104 Perform prediction on the sub-image block according to the reference pixel value and a preset prediction mode, to obtain residual data.
- Step 105 Perform transform, quantization, and entropy encoding on the residual data to obtain encoded residual data.
- Step 106 Write the division mode information of the current coding target, the coded residual data, and the prediction mode information of the sub-image block into the code stream.
- the dividing mode information is used to indicate a direction in which the current encoding object is divided. Specifically, whether the current encoding object is divided into sub-image blocks arranged in the horizontal direction or sub-parameters arranged in the vertical direction. Image block. As for the number of sub-picture blocks, a default value, such as four, may be set at the codec side, or the division direction information of the current coding object and the number of the sub-picture blocks may be simultaneously indicated by the division mode information.
- the prediction mode information written in the code stream in step 106 mainly means that in the process of predicting the sub-image block, it is finally required to select a reference pixel value and a predicted pixel value obtained in a prediction mode with the lowest rate distortion cost.
- the information of the prediction mode needs to be also written into the code stream, so that the decoding end can adopt the same prediction mode as the encoding end. Line decoding.
- the reference pixel points required for prediction are explicitly predicted according to the preset prediction mode, the position and size specifications of the sub-image block in the prediction. In the prediction, only the reference pixel values need to be obtained according to the determined reference pixel points, thereby avoiding out-of-order or error occurrence.
- an embodiment of the present invention further provides a decoding method corresponding to the foregoing encoding method, including:
- Step 201 parsing the residual data, the division manner of the current decoding object, and the prediction mode information of the current decoding object from the code stream;
- Step 202 Divide the current decoding object into sub-image blocks arranged in a horizontal direction or a vertical direction according to the division manner information;
- Step 203 Obtain an index value of the sub-image block, where the index value is used to indicate ranking information of the sub-image block;
- Step 204 Obtain, according to the index value, the size specification of the sub-image block, and the prediction mode, a reference pixel point required for prediction by the sub-image block, and obtain a reference pixel value of the reference pixel point. ;
- Step 205 Obtain a reconstructed pixel value of the sub-image block according to the reference pixel value and the residual data.
- the obtaining, according to the index value, the size specification of the sub-image block, and the prediction mode information, the reference pixel points required for the sub-image block to perform prediction include: a prediction mode and a size specification of the sub-image block, obtaining number information of required reference pixel points; determining start position information of the reference pixel point according to position information of the sub image block; according to the reference pixel
- the start position information and the number information of the point, the reference pixel points are obtained from the upper adjacent block, the upper right adjacent block, the left adjacent block, and the lower left adjacent block of the decoding object.
- the sub-image is confirmed according to the index value, the size specification of the sub-image block, and the prediction mode.
- the reference pixel points required for the prediction of the block include: obtaining, according to the prediction mode and the size specification of the sub-image block, the number of reference points in the upper adjacent block and the upper right adjacent block of the current decoding object.
- the reconstructed pixel value of the sub-image block includes: a reference pixel value according to the upper reference pixel point and the left reference pixel point, and the residual data Obtaining a reconstructed pixel value of the sub-image block.
- the reference pixel required for the prediction includes: obtaining, according to the prediction mode and the size specification of the sub-image block, the number information of the reference points in the left adjacent block and the lower left adjacent block of the current decoding object; Determining, by the index value and the size specification of the sub-image block, determining start position information of reference pixel points of the left adjacent block and the lower left adjacent block of the current decoding object; according to the left adjacent block of the current decoding object Obtaining the number of reference pixel points and the start position information of the lower left adjacent block, obtaining the left reference pixel point of the sub image block in the left adjacent block and the lower left adjacent block of the current decoding object; The prediction mode is obtained by obtaining an upper reference pixel of the sub-image block in an upper adjacent block and an upper right adjacent block of the current decoding object.
- the reconstructed pixel value of the sub-image block includes: a reference pixel value according to the upper reference pixel point and the left reference pixel point, and the residual data Obtaining a reconstructed pixel value of the sub-image block.
- a dividing module 301 configured to divide the current encoding object to obtain sub-image blocks arranged in a horizontal or vertical direction;
- the index value obtaining module 302 is configured to obtain an index value of the sub image block, where the index value is used to represent the sorting information of the sub image block;
- a reference pixel value obtaining module 303 configured to obtain, according to the index value, a size specification of the sub image block, and a preset prediction mode, a reference pixel point required for the sub image block to perform prediction, and obtain the The reference pixel value of the reference pixel;
- the residual data obtaining module 304 is configured to perform prediction on the sub-image block according to the reference pixel value and a preset prediction mode, obtain residual data, and transform, quantize, and entropy encode the residual data. To obtain the encoded residual data;
- a code stream module 305 configured to divide mode information of the current coding object, and the coded residual The data, and prediction mode information of the sub-image block are written to the code stream.
- the reference pixel value obtaining module 303 further includes:
- a number obtaining sub-module configured to obtain, according to a preset prediction mode and a size specification of the sub-image block, quantity information of a required reference pixel point;
- a location obtaining submodule configured to determine start position information of the reference pixel according to the index value and a size specification of the sub image block
- a reference pixel obtaining submodule configured to use an upper neighboring block, an upper right adjacent block, a left adjacent block, and a lower left adjacent to the encoding object according to the starting position information and the number information of the reference pixel
- the reference pixel is obtained in the block.
- the number obtaining sub-module obtains the current according to a preset prediction mode and a size specification of the sub-image block.
- the position obtaining submodule determining the upper of the current encoding object according to the index value and the size specification of the sub image block Start position information of reference pixels of the adjacent block and the upper right adjacent block; the reference pixel point obtaining sub-module according to the number of reference pixel points of the upper adjacent block and the upper right adjacent block of the current encoding object Information and starting position information, obtaining an upper reference pixel point of the sub-image block in an upper adjacent block and an upper right adjacent block of the current encoding object, and according to a preset prediction mode, in the current encoding object
- the left reference pixel of the sub-image block is obtained in the left adjacent block and the lower left adjacent block.
- the number obtaining sub-module obtains the left of the current encoding object according to a preset prediction mode and a size specification of the sub-image block.
- the number information of the reference points in the adjacent block and the lower left adjacent block; the position obtaining submodule determines the left neighboring block and the lower left phase of the current encoding object according to the index value and the size specification of the sub image block
- the upper reference pixel of the sub-image block is obtained in
- an embodiment of the present invention further provides a decoding apparatus that uses the foregoing decoding method, and includes:
- a parameter obtaining module 401 configured to parse the residual data from the code stream, a division manner of the current decoding object, and prediction mode information of the currently decoded object;
- a dividing module 402 configured to divide the current decoding object into sub-image blocks arranged in a horizontal direction or a vertical direction according to the dividing mode information
- An index value obtaining module 403, configured to obtain an index value of the sub-image block, where the index value is used to represent the sorting information of the sub-image block;
- a reference pixel obtaining module 404 configured to obtain, according to the index value, a size specification of the sub-image block, and the prediction mode, a reference pixel point required for prediction by the sub-image block, and obtain the reference The reference pixel value of the pixel;
- the reconstruction module 405 is configured to obtain, according to the reference pixel value and the residual data, a reconstructed pixel value of the sub-image block.
- the reference pixel value obtaining module 404 further includes:
- a number obtaining submodule configured to obtain, according to the prediction mode and a size specification of the sub image block, quantity information of a required reference pixel point
- a location obtaining submodule configured to determine start position information of the reference pixel according to the index value and a size specification of the sub image block
- a reference pixel obtaining submodule configured to use an upper neighboring block, an upper right adjacent block, a left neighboring block, and a lower left phase of the current decoding object according to the starting position information and the number information of the reference pixel point
- the reference pixel is obtained in the neighboring block.
- the number obtaining sub-module obtains the current decoding object according to the prediction mode and the size specification of the sub-image block.
- the number information of the reference points in the upper adjacent block and the upper right adjacent block; the position obtaining submodule determines the upper adjacent block of the current decoding object according to the index value and the size specification of the sub image block And starting position information of the reference pixel of the upper right adjacent block; the reference pixel obtaining sub-module according to the number information of the reference pixel of the upper adjacent block and the upper right adjacent block of the current decoding object
- Starting position information obtaining the sub-picture in an upper adjacent block and an upper right adjacent block of the current decoding object
- a reference pixel point above the block, and a left reference pixel of the sub-image block are obtained in a left neighboring block and a lower left neighboring block of the current decoding object according to a prediction mode.
- the reconstruction module 405 obtains
- the number obtaining sub-module obtains the left neighboring block of the current decoding object according to the prediction mode and the size specification of the sub-image block. And the number information of the reference points in the lower left adjacent block; the location obtaining submodule determines, according to the index value and the size specification of the sub image block, the left adjacent block and the lower left adjacent block of the current decoding object Reference position information of the reference pixel; the reference pixel obtaining sub-module according to the number information and the starting position information of the reference pixel of the left adjacent block and the lower left adjacent block of the current decoding object, at the current Obtaining a left reference pixel point of the sub-image block in a left neighboring block and a lower left neighboring block of the decoding object, and obtaining an upper neighboring block and an upper right neighboring block of the current decoding object according to a prediction mode The reference pixel point above the sub-image block. Correspondingly, at this time, the
- the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is a better implementation. the way.
- the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
Provided in the present invention is a coding method comprising: dividing a current coding object, and acquiring sub-image blocks arranged sequentially along the horizontal or vertical direction; acquiring an index value of the sub-image blocks; on the basis of the index value, the dimensions of the sub-image blocks, and a preset prediction model, acquiring a reference pixel required during prediction of the sub-image blocks, and acquiring a reference pixel value of the reference pixel; predicting the sub-image blocks on the basis of the reference pixel value and the preset prediction model, and acquiring residual data; transforming, quantifying, and entropy coding the residual data to acquire coded residual data; and writing into a code stream the information of the division scheme for the current coding object, the coded residual data, and the information of the prediction model for the sub-image blocks. Employment of the coding-decoding method provided in the present invention allows, during prediction, for the reference pixel value to be acquired simply on the basis of a confirmed reference pixel, thus preventing derangement and error.
Description
一种编解码方法和装置 Codec method and device
技术领域 Technical field
本发明涉及视频编解码技术。 背景技术 The present invention relates to video codec technology. Background technique
视频编码压缩的基本原理是, 利用空域、 时域和码字之间的相关性, 尽可 能去除冗余。 目前流行的做法是采用基于块的混合视频编码框架, 通过预测、 变换、 量化、 熵编码等步骤来实现视频编码压缩。 这一编码框架, 显示了 艮强 的生命力, 从最早的 MPEG-1 到现在最新的视频编码标准 H.264/AVC, 甚至 JCTVC工作组( MPEG和 VECG成立的联合工作组)正在制定的下一代视频编 码压缩标准 HEVC, 仍然沿用这种基于块的混合视频编码框架。 The basic principle of video coding compression is to remove redundancy as much as possible by using the correlation between airspace, time domain and codewords. The current popular practice is to use a block-based hybrid video coding framework to implement video coding compression through steps such as prediction, transform, quantization, and entropy coding. This coding framework shows a resilience, from the earliest MPEG-1 to the latest video coding standard H.264/AVC, and even the JCTVC working group (the joint working group established by MPEG and VECG) is developing the next generation. The video coding compression standard HEVC still uses this block-based hybrid video coding framework.
在视频编解码中一般都采用基于块的空域预测编码技术, 基本原理是将待 编码图像块划分成多个子块, 然后利用待编码图像块与相邻块之间的相关性去 除空域冗余。 即利用相邻块作为参考块, 对子图像块进行预测。 Block-based spatial domain predictive coding techniques are generally used in video coding and decoding. The basic principle is to divide the block to be coded into multiple sub-blocks, and then remove the spatial redundancy by using the correlation between the image block to be encoded and the adjacent block. That is, the sub-image block is predicted by using the adjacent block as a reference block.
在图像块划分中, 业界有一种划分方法, 即通过平行的划分线将当前编码 图像块划分成沿水平方向和垂直方向依次排列的子图像块, 然后以这些子图像 块为单位进行预测。在预测的过程中可以参照业界新推出的 UDI预测技术,从 45 个子图像块中都要遍历这 34个预测模式进行预测, 最后选择对于子图像块来说 码率失真代价最小的预测方向, 作为当前子图像块中的所有像素点的预测方向, 并获得相应生成的子图像块的残差数据。 在预测的过程中, 需要根据预测模式 来获得参考像素点的参考像素值, 根据这参考像素值来获得子图像块的预测像 素值, 并进而判断当前预测模下的码率失真代价。 但是, 发明人在实施的时候 发现了一个问题, 那就是在采用这种方法进行预测时, 由于子图像块是依序排 列的, 由于位置上的差异, 每个子图像块对应的参考像素点都不相同, 而按照 现有技术的做法, 则是将当前编码图像块的所有子图像块预测时能用到的参考 象素点的像素值都读取到参考像素緩存中, 但是有些子图像块的预测又仅需要 参考像素緩存中的部分参考像素, 在提取这些参考像素的过程中就容易产生乱
序或错误。 发明内容 In image block division, there is a division method in the industry in which a current coded image block is divided into sub-image blocks arranged in a horizontal direction and a vertical direction by parallel division lines, and then prediction is performed in units of these sub-image blocks. In the process of prediction, reference can be made to the newly introduced UDI prediction technology in the industry, and the 34 prediction modes are traversed from 45 sub-image blocks for prediction, and finally the prediction direction with the lowest rate distortion cost for the sub-image block is selected as The prediction direction of all the pixels in the current sub-image block, and the residual data of the corresponding generated sub-image block is obtained. In the process of prediction, it is necessary to obtain a reference pixel value of the reference pixel according to the prediction mode, obtain a predicted pixel value of the sub-image block according to the reference pixel value, and further determine a code rate distortion cost under the current prediction mode. However, the inventor found a problem in the implementation, that is, when using this method for prediction, since the sub-image blocks are sequentially arranged, the reference pixel points corresponding to each sub-image block are due to the difference in position. Different from the prior art, the pixel values of the reference pixel points that can be used in prediction of all the sub-image blocks of the current coded image block are read into the reference pixel buffer, but some sub-image blocks are used. The prediction only needs to refer to some reference pixels in the pixel buffer, which is easy to be messed up in the process of extracting these reference pixels. Order or error. Summary of the invention
本发明提供一种编码方法, 包括: 对当前编码对象进行划分, 得到沿水平 或垂直方向依次排列的子图像块; 获得所述子图像块的索引值, 其中, 所述索 引值用于表示所述子图像块的排序信息; 根据所述索引值、 所述子图像块的尺 寸规格、 以及预设的预测模式, 获得所述子图像块进行预测时需要的参考像素 点, 并获得所述参考像素点的参考像素值; 根据所述参考像素值和预设的预测 模式对所述子图像块进行预测, 得到残差数据; 对所述残差数据进行变换、 量 化和熵编码, 以得到编码后的残差数据; 将当前编码对象的划分方式信息、 所 述编码后的残差数据、 以及所述子图像块的预测模式信息写入码流。 The present invention provides an encoding method, including: dividing a current encoding object to obtain sub-image blocks arranged in a horizontal or vertical direction; obtaining an index value of the sub-image block, wherein the index value is used to represent Determining the ordering information of the sub-image block; obtaining, according to the index value, the size specification of the sub-image block, and the preset prediction mode, a reference pixel point required for the sub-image block to perform prediction, and obtaining the reference a reference pixel value of the pixel; predicting the sub-image block according to the reference pixel value and a preset prediction mode to obtain residual data; transforming, quantizing, and entropy encoding the residual data to obtain an encoding The remaining residual data; the division mode information of the current coding target, the coded residual data, and the prediction mode information of the sub-picture block are written into the code stream.
本发明还提供了相应的解码方法, 包括: 从码流中解析获得残差数据、 当 前解码对象的划分方式、 以及当前解码对象的预测模式信息; 根据所述划分方 式信息将所述当前解码对象划分成沿水平方向或垂直方向依次排列的子图像 块; 获得所述子图像块的索引值, 其中, 所述索引值用于表示所述子图像块的 排序信息; 根据所述索引值、 所述子图像块的尺寸规格、 以及所述预测模式, 获得所述子图像块进行预测时需要的参考像素点, 并获得所述参考像素点的参 考像素值; 根据所述参考像素值和所述残差数据, 获得所述子图像块的重构像 素值。 The present invention further provides a corresponding decoding method, including: parsing residual data from a code stream, a division mode of a current decoding object, and prediction mode information of a current decoding object; and the current decoding object according to the division mode information Dividing into sub-image blocks arranged in a horizontal direction or a vertical direction; obtaining an index value of the sub-image block, wherein the index value is used to represent ranking information of the sub-image block; according to the index value, Determining a size specification of the sub-image block, and the prediction mode, obtaining a reference pixel point required for prediction by the sub-image block, and obtaining a reference pixel value of the reference pixel point; according to the reference pixel value and the Residual data, obtaining reconstructed pixel values of the sub-image block.
本发明还提供了应用所述编解码方法的编解码装置。 The present invention also provides a codec device to which the codec method is applied.
采用本发明提供的编解码方法, 在预测的时候, 只需要根据已经确定的参 考像素点来获得参考像素值, 避免了乱序或错误的发生。 附图说明 With the codec method provided by the present invention, at the time of prediction, only the reference pixel values need to be obtained according to the determined reference pixel points, thereby avoiding out-of-order or error occurrence. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例中所需要使 用的附图作筒单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些 实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可 以根据这些附图获得其他的附图。 In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图 1为本发明实施例提供的编码方法的示意图。 FIG. 1 is a schematic diagram of an encoding method according to an embodiment of the present invention.
图 2为本发明实施例提供的解码方法的示意图。
图 3为本发明实施例提供的编码装置的示意图。 FIG. 2 is a schematic diagram of a decoding method according to an embodiment of the present invention. FIG. 3 is a schematic diagram of an encoding apparatus according to an embodiment of the present invention.
图 4为本发明实施例提供的解码装置的示意图。 具体实施方式 FIG. 4 is a schematic diagram of a decoding apparatus according to an embodiment of the present invention. detailed description
请参照图 1 , 本发明实施例提供了一种编码方法, 其包括: Referring to FIG. 1, an embodiment of the present invention provides an encoding method, including:
步骤 101 : 对当前编码对象进行划分, 得到沿水平或垂直方向依次排列的子 图像块; Step 101: Divide the current coding object to obtain sub-image blocks arranged in a horizontal or vertical direction.
在本发明实施例中, 当前编码对象被多条垂直划分线划分成多个沿水平方向 依次排列的子图像块, 或者当前编码对象被多条水平划分线划分成多个沿垂直 方向依次排列的子图像块。 在本发明实施例中, 所述依次排列的子图像块的尺 寸规格相同。 In the embodiment of the present invention, the current encoding object is divided into a plurality of sub-image blocks arranged in the horizontal direction by a plurality of vertical dividing lines, or the current encoding object is divided into a plurality of horizontal dividing lines and arranged in a plurality of vertical dividing lines. Sub-image block. In the embodiment of the present invention, the size specifications of the sequentially arranged sub-image blocks are the same.
步骤 102: 获得所述子图像块的索引值, 其中, 所述索引值用于表示所述子 图像块的排序信息; Step 102: Obtain an index value of the sub-image block, where the index value is used to indicate ranking information of the sub-image block;
比如, 当前编码对象被划分成依次排列的四个子图像块 0、 1、 2、 3, 这其中 的 "0、 1、 2、 3" 即为子图像块的索引值, 根据这些索引值可以得到子图像块 的排序序列, 当然, 也能够根据排序序列得到子图像块的位置信息, 比如当当 前编码对象被划分成沿水平方向依次排列的四个子图像块 0、 1、 2、 3时, 索引 值为 0的子图像块就处于当前编码对象的左侧边界上, 而索引值为 1的子图像 块与索引值为 0的子图像块相邻, 索引值为 3的子图像块处于当前编码对象的 右侧边界上, 索引值为 2的子图像块处于索引值为 1和 3的子图像块之间。 从 另一个角度说, 索引值也可以用于表示子图像块的位置信息。 For example, the current encoding object is divided into four sub-image blocks 0, 1, 2, 3, which are sequentially arranged, wherein "0, 1, 2, 3" are the index values of the sub-image blocks, and according to these index values, The sorting sequence of the sub-image block, of course, can also obtain the position information of the sub-image block according to the sorting sequence, for example, when the current encoding object is divided into four sub-image blocks 0, 1, 2, 3 arranged in the horizontal direction, the index A sub-image block with a value of 0 is on the left border of the current encoding object, and a sub-image block with an index value of 1 is adjacent to the sub-image block with an index value of 0, and the sub-image block with an index value of 3 is currently encoded. On the right edge of the object, the sub-image block with index value 2 is between sub-image blocks with index values of 1 and 3. From another perspective, the index value can also be used to represent the location information of the sub-image block.
步骤 103: 根据所述索引值、 所述子图像块的尺寸规格、 以及预设的预测模 式, 获得所述子图像块进行预测时需要的参考像素点, 并获得所述参考像素点 的参考像素值; Step 103: Obtain, according to the index value, a size specification of the sub-image block, and a preset prediction mode, a reference pixel that is needed when the sub-image block is predicted, and obtain a reference pixel of the reference pixel. Value
所述根据所述索引值、 所述子图像块的尺寸规格、 以及预设的预测模式, 获得所述子图像块进行预测时需要的参考像素点包括: 根据预设的预测模式以 及所述子图像块的尺寸规格, 获得需要的参考像素点的个数信息; 根据所述索 引值和所述子图像块的尺寸规格, 确定参考像素点的起始位置信息; 根据所述 参考像素点的起始位置信息和个数信息, 从所述编码对象的上相邻块、 右上相 邻块、左相邻块以及左下相邻块中获得参考像素点。 由于 UDI预测中最左侧的预
测模式的预测方向的角度是 225度, 而最右侧的预测模式的预测方向的角度是 45 度,再根据子图像块的长和宽就可以获得在所述 UDI预测的 34个预测模式的预测 方向涵盖的范围中的当前编码对象的相邻块中的参考象素点。 Determining, according to the index value, the size specification of the sub-image block, and the preset prediction mode, the reference pixel points required for the sub-image block to perform prediction include: according to a preset prediction mode and the sub a size specification of the image block, obtaining number information of the required reference pixel points; determining start position information of the reference pixel point according to the index value and the size specification of the sub image block; according to the reference pixel point The start position information and the number information obtain reference pixel points from the upper adjacent block, the upper right adjacent block, the left adjacent block, and the lower left adjacent block of the encoding object. Due to the leftmost pre-preparation in the UDI forecast The angle of the prediction direction of the measurement mode is 225 degrees, and the angle of the prediction direction of the rightmost prediction mode is 45 degrees, and then the 34 prediction modes of the UDI prediction can be obtained according to the length and width of the sub-image block. A reference pixel point in a neighboring block of the current coding object in the range covered by the prediction direction.
由于当前编码对象的可供参考用的相邻块一半为其上相邻块、 右上相邻块、 左相邻块和左下相邻块。 在本发明实施例中, 所以子图像块的参考象素点包括 来自上相邻块和右上相邻块的上参考象素点(集合;), 以及来自左相邻块和左下 相邻块的左参考象素点 (集合)。 The adjacent block for reference of the current coding object is half of its upper adjacent block, upper right adjacent block, left adjacent block, and lower left adjacent block. In the embodiment of the present invention, the reference pixel points of the sub-picture block include upper reference pixel points (sets;) from the upper adjacent block and the upper right adjacent block, and from the left adjacent block and the lower left adjacent block. Left reference pixel point (set).
其中, 当所述当前编码对象被划分成沿水平方向依次排列的子图像块时, 根据 UDI预测技术的规定,当前编码对象的左相邻块和左下相邻块的右侧边界上 的像素点全部需要作为参考像素点, 而当前编码对象的上相邻块和右上相邻块 中的在预测模式的预测角度覆盖范围内的像素点才能作为子图像块的参考像素 点。 因此, 所述根据所述索引值、 所述子图像块的尺寸规格、 以及预设的预测 模式, 确认所述子图像块进行预测时需要的参考像素点包括: 根据预设的预测 模式以及所述子图像块的尺寸规格, 获得所述当前编码对象的上相邻块和右上 相邻块中的参考点的个数信息; 根据所述索引值和所述子图像块的尺寸规格, 确定所述当前编码对象的上相邻块和右上相邻块的参考像素点的起始位置信 息; 根据所述当前编码对象的上相邻块和右上相邻块的参考像素点的个数信息 和起始位置信息, 在所述当前编码对象的上相邻块和右上相邻块中获得所述子 图像块的上方参考像素点; 根据预设的预测模式, 在所述当前编码对象的左相 邻块和左下相邻块中获得所述子图像块的左方参考像素点, 所述根据所述参考 像素值和预设的预测模式对所述子图像块进行预测, 得到残差数据包括: 根据 所述预设的预测模式, 以及所述上方参考像素点和左方参考像素点的参考像素 值, 对所述子图像块进行预测, 得到残差数据。 Wherein, when the current encoding object is divided into sub-image blocks arranged in the horizontal direction, the pixel points on the right boundary of the left adjacent block and the lower left adjacent block of the current encoding object according to the UDI prediction technology All of them need to be reference pixel points, and the pixel points within the predicted angle coverage of the prediction mode in the upper adjacent block and the upper right adjacent block of the current encoding object can be used as reference pixel points of the sub-image block. Therefore, the determining, according to the index value, the size specification of the sub-image block, and the preset prediction mode, the reference pixel points required for the sub-image block to perform prediction include: according to a preset prediction mode and a Determining a size specification of the sub-image block, obtaining number information of reference points in the upper adjacent block and the upper right adjacent block of the current encoding object; determining, according to the index value and the size specification of the sub-image block The starting position information of the reference pixel points of the upper adjacent block and the upper right adjacent block of the current encoding object; and the number information of the reference pixel points of the upper adjacent block and the upper right adjacent block of the current encoding object Starting position information, obtaining an upper reference pixel point of the sub-image block in an upper neighboring block and an upper right neighboring block of the current encoding object; according to a preset prediction mode, a left neighboring edge of the current encoding object Obtaining a left reference pixel of the sub-image block in the block and the lower left adjacent block, and performing prediction on the sub-image block according to the reference pixel value and a preset prediction mode, Obtaining the residual data includes: predicting the sub-image block according to the preset prediction mode, and the reference pixel values of the upper reference pixel and the left reference pixel to obtain residual data.
相对的, 当所述当前编码对象被划分成沿垂直方向依次排列的子图像块时, 根据 UDI预测的规定,当前编码对象的上相邻块和右上相邻块的下侧边界上的像 素点全部需要作为参考像素点, 而当前编码对象的左相邻块和左下相邻块中的 在预测模式的预测角度覆盖范围内的像素点才能作为子图像块的参考像素点。 因此, 所述根据所述索引值、 所述子图像块的尺寸规格、 以及预设的预测模式, 确认所述子图像块进行预测时需要的参考像素点包括: 根据预设的预测模式以 及所述子图像块的尺寸规格, 获得所述当前编码对象的左相邻块和左下相邻块
中的参考点的个数信息; 根据所述索引值和所述子图像块的尺寸规格, 确定所 述当前编码对象的左相邻块和左下相邻块的参考像素点的起始位置信息; 根据 所述当前编码对象的左相邻块和左下相邻块的参考像素点的个数信息和起始位 置信息, 在所述当前编码对象的左相邻块和左下相邻块中获得所述子图像块的 左方参考像素点; 根据预设的预测模式, 在所述当前编码对象的上相邻块和右 上相邻块中获得所述子图像块的上方参考像素点, 所述根据所述参考像素值和 预设的预测模式对所述子图像块进行预测, 得到残差数据包括: 根据所述预设 的预测模式, 以及所述上方参考像素点和左方参考像素点的参考像素值, 对所 述子图像块进行预测, 得到残差数据。 In contrast, when the current encoding object is divided into sub-image blocks arranged in the vertical direction, the pixel points on the lower boundary of the upper adjacent block and the upper right adjacent block of the current encoding object according to the UDI prediction specification All of them need to be reference pixel points, and the pixel points within the prediction angle coverage of the prediction mode in the left adjacent block and the lower left adjacent block of the current encoding object can be used as reference pixel points of the sub-image block. Therefore, the determining, according to the index value, the size specification of the sub-image block, and the preset prediction mode, the reference pixel points required for the sub-image block to perform prediction include: according to a preset prediction mode and a Determining the size specification of the sub-image block, obtaining the left adjacent block and the lower left adjacent block of the current encoding object And determining, according to the index value and the size specification of the sub-image block, starting position information of reference pixel points of the left adjacent block and the lower left adjacent block of the current encoding object; Obtaining the number in the left neighboring block and the lower left neighboring block of the current encoding object according to the number information and the starting position information of the reference pixel points of the left neighboring block and the lower left neighboring block of the current encoding object a left reference pixel of the sub-image block; obtaining an upper reference pixel of the sub-image block in an upper adjacent block and an upper right adjacent block of the current encoding object according to a preset prediction mode, where Deriving the sub-image block by using the reference pixel value and the preset prediction mode, and obtaining the residual data includes: according to the preset prediction mode, and reference pixels of the upper reference pixel and the left reference pixel a value, predicting the sub-image block to obtain residual data.
在本发明实施例中, 在获得所述子图像块进行预测时需要的参考像素点的 参考像素值后, 可以将所述参考像素点的像素值存入参考像素緩存中, 在预测 的过程中依序提取即可。 在其他可选择的实施例中, 也可以将当前编码对象的 上相邻块、 右上相邻块、 左相邻块、 或左下相邻块中的所有与当前编码对象相 邻的像素点都写入緩存中, 然后根据确定的参考像素点在所有像素点中的排序 关系, 依次读取。 In the embodiment of the present invention, after obtaining the reference pixel value of the reference pixel point required for the prediction by the sub-image block, the pixel value of the reference pixel point may be stored in the reference pixel buffer, in the process of prediction. Extract in order. In other optional embodiments, all the pixels adjacent to the current encoding object in the upper adjacent block, the upper right adjacent block, the left adjacent block, or the lower left adjacent block of the current encoding object may also be written. Into the cache, and then read according to the ordering relationship of the determined reference pixels in all the pixels.
步骤 104:根据所述参考像素值和预设的预测模式对所述子图像块进行预测, 得到残差数据; Step 104: Perform prediction on the sub-image block according to the reference pixel value and a preset prediction mode, to obtain residual data.
步骤 105: 对所述残差数据进行变换、 量化和熵编码, 以得到编码后的残差 数据; Step 105: Perform transform, quantization, and entropy encoding on the residual data to obtain encoded residual data.
步骤 106: 将当前编码对象的划分方式信息、 所述编码后的残差数据、 以及 所述子图像块的预测模式信息写入码流。 Step 106: Write the division mode information of the current coding target, the coded residual data, and the prediction mode information of the sub-image block into the code stream.
所述划分方式信息用于指示所述当前编码对象划分方向, 具体的, 即当前编 码对象是被划分成了沿水平方向依次排列的子图像块, 还是被划分成了沿垂直 方向依次排列的子图像块。 至于子图像块的数量可以在编解码端设定默认值, 比如四个, 或者由所述划分方式信息同时指示所述当前编码对象的划分方向以 及所述子图像块的数量。 The dividing mode information is used to indicate a direction in which the current encoding object is divided. Specifically, whether the current encoding object is divided into sub-image blocks arranged in the horizontal direction or sub-parameters arranged in the vertical direction. Image block. As for the number of sub-picture blocks, a default value, such as four, may be set at the codec side, or the division direction information of the current coding object and the number of the sub-picture blocks may be simultaneously indicated by the division mode information.
在步骤 106中写入码流的预测模式信息主要是指在对子图像块进行预测的过 程中, 最终需要选择一种码率失真代价最小的预测模式中得到的参考像素值和 预测像素值, 来获得子图像块的残差数据, 而在写码流的过程中则需要将该预 测模式的信息也写入码流, 以使得解码端可以采用与编码端相同的预测模式进
行解码。 The prediction mode information written in the code stream in step 106 mainly means that in the process of predicting the sub-image block, it is finally required to select a reference pixel value and a predicted pixel value obtained in a prediction mode with the lowest rate distortion cost. To obtain the residual data of the sub-picture block, in the process of writing the code stream, the information of the prediction mode needs to be also written into the code stream, so that the decoding end can adopt the same prediction mode as the encoding end. Line decoding.
可以看到, 采用本发明实施例所提供的编码方法, 在预测中就根据预设的预 测模式、 子图像块的位置和尺寸规格, 明确预测所需要的参考象素点。 而在预 测的时候, 只需要根据已经确定的参考像素点来获得参考像素值, 避免了乱序 或错误的发生。 It can be seen that, by using the encoding method provided by the embodiment of the present invention, the reference pixel points required for prediction are explicitly predicted according to the preset prediction mode, the position and size specifications of the sub-image block in the prediction. In the prediction, only the reference pixel values need to be obtained according to the determined reference pixel points, thereby avoiding out-of-order or error occurrence.
请参照图 2, 本发明实施例还提供一种与上述编码方法相应的解码方法, 其 包括: Referring to FIG. 2, an embodiment of the present invention further provides a decoding method corresponding to the foregoing encoding method, including:
步骤 201 : 从码流中解析获得残差数据、 当前解码对象的划分方式、 以及当 前解码对象的预测模式信息; Step 201: parsing the residual data, the division manner of the current decoding object, and the prediction mode information of the current decoding object from the code stream;
步骤 202: 根据所述划分方式信息将所述当前解码对象划分成沿水平方向或 垂直方向依次排列的子图像块; Step 202: Divide the current decoding object into sub-image blocks arranged in a horizontal direction or a vertical direction according to the division manner information;
步骤 203: 获得所述子图像块的索引值, 其中, 所述索引值用于表示所述子 图像块的排序信息; Step 203: Obtain an index value of the sub-image block, where the index value is used to indicate ranking information of the sub-image block;
步骤 204: 根据所述索引值、 所述子图像块的尺寸规格、 以及所述预测模式, 获得所述子图像块进行预测时需要的参考像素点, 并获得所述参考像素点的参 考像素值; Step 204: Obtain, according to the index value, the size specification of the sub-image block, and the prediction mode, a reference pixel point required for prediction by the sub-image block, and obtain a reference pixel value of the reference pixel point. ;
步骤 205: 根据所述参考像素值和所述残差数据, 获得所述子图像块的重构 像素值。 Step 205: Obtain a reconstructed pixel value of the sub-image block according to the reference pixel value and the residual data.
其中, 在本发明实施例中, 所述根据所述索引值、 所述子图像块的尺寸规 格、 以及所述预测模式信息, 获得所述子图像块进行预测时需要的参考像素点 包括: 根据所述预测模式以及所述子图像块的尺寸规格, 获得需要的参考像素 点的个数信息; 根据所述子图像块的位置信息, 确定参考像素点的起始位置信 息; 根据所述参考像素点的起始位置信息和个数信息, 从所述解码对象的上相 邻块、 右上相邻块、 左相邻块以及左下相邻块中获得参考像素点。 In the embodiment of the present invention, the obtaining, according to the index value, the size specification of the sub-image block, and the prediction mode information, the reference pixel points required for the sub-image block to perform prediction include: a prediction mode and a size specification of the sub-image block, obtaining number information of required reference pixel points; determining start position information of the reference pixel point according to position information of the sub image block; according to the reference pixel The start position information and the number information of the point, the reference pixel points are obtained from the upper adjacent block, the upper right adjacent block, the left adjacent block, and the lower left adjacent block of the decoding object.
更具体的, 当所述当前解码对象被划分成沿水平方向依次排列的子图像块 时, 所述根据所述索引值、 所述子图像块的尺寸规格、 以及预测模式, 确认所 述子图像块进行预测时需要的参考像素点包括: 根据所述预测模式以及所述子 图像块的尺寸规格, 获得所述当前解码对象的上相邻块和右上相邻块中的参考 点的个数信息; 根据所述索引值和所述子图像块的尺寸规格, 确定所述当前解 码对象的上相邻块和右上相邻块的参考像素点的起始位置信息; 根据所述当前
解码对象的上相邻块和右上相邻块的参考像素点的个数信息和起始位置信息, 在所述当前解码对象的上相邻块和右上相邻块中获得所述子图像块的上方参考 像素点; 根据预设的预测模式, 在所述当前解码对象的左相邻块和左下相邻块 中获得所述子图像块的左方参考像素点。 根据所述参考像素值和所述残差数据, 获得所述子图像块的重构像素值包括: 根据所述上方参考像素点和左方参考像 素点的参考像素值, 以及所述残差数据, 获得所述子图像块的重构像素值。 More specifically, when the current decoding object is divided into sub-image blocks arranged in the horizontal direction, the sub-image is confirmed according to the index value, the size specification of the sub-image block, and the prediction mode. The reference pixel points required for the prediction of the block include: obtaining, according to the prediction mode and the size specification of the sub-image block, the number of reference points in the upper adjacent block and the upper right adjacent block of the current decoding object. Determining, according to the index value and the size specification of the sub-image block, start position information of reference pixel points of the upper adjacent block and the upper right adjacent block of the current decoding object; Decoding the number information and the start position information of the reference pixel points of the upper adjacent block and the upper right adjacent block of the object, obtaining the sub image block in the upper adjacent block and the upper right adjacent block of the current decoding object Upper reference pixel point; according to a preset prediction mode, a left reference pixel of the sub-image block is obtained in a left neighboring block and a lower left neighboring block of the current decoding object. Obtaining, according to the reference pixel value and the residual data, the reconstructed pixel value of the sub-image block includes: a reference pixel value according to the upper reference pixel point and the left reference pixel point, and the residual data Obtaining a reconstructed pixel value of the sub-image block.
当所述当前解码对象被划分成沿垂直方向依次排列的子图像块时, 所述根 据所述索引值、 所述子图像块的尺寸规格、 以及所述预测模式, 确认所述子图 像块进行预测时需要的参考像素点包括: 根据预测模式以及所述子图像块的尺 寸规格, 获得所述当前解码对象的左相邻块和左下相邻块中的参考点的个数信 息; 根据所述索引值和所述子图像块的尺寸规格, 确定所述当前解码对象的左 相邻块和左下相邻块的参考像素点的起始位置信息; 根据所述当前解码对象的 左相邻块和左下相邻块的参考像素点的个数信息和起始位置信息, 在所述当前 解码对象的左相邻块和左下相邻块中获得所述子图像块的左方参考像素点; 根 据所述预测模式, 在所述当前解码对象的上相邻块和右上相邻块中获得所述子 图像块的上方参考像素点。 根据所述参考像素值和所述残差数据, 获得所述子 图像块的重构像素值包括: 根据所述上方参考像素点和左方参考像素点的参考 像素值, 以及所述残差数据, 获得所述子图像块的重构像素值。 划分模块 301 , 用于对当前编码对象进行划分, 得到沿水平或垂直方向依次 排列的子图像块; When the current decoding object is divided into sub-image blocks arranged in the vertical direction, the sub-image block is confirmed according to the index value, the size specification of the sub-image block, and the prediction mode. The reference pixel required for the prediction includes: obtaining, according to the prediction mode and the size specification of the sub-image block, the number information of the reference points in the left adjacent block and the lower left adjacent block of the current decoding object; Determining, by the index value and the size specification of the sub-image block, determining start position information of reference pixel points of the left adjacent block and the lower left adjacent block of the current decoding object; according to the left adjacent block of the current decoding object Obtaining the number of reference pixel points and the start position information of the lower left adjacent block, obtaining the left reference pixel point of the sub image block in the left adjacent block and the lower left adjacent block of the current decoding object; The prediction mode is obtained by obtaining an upper reference pixel of the sub-image block in an upper adjacent block and an upper right adjacent block of the current decoding object. Obtaining, according to the reference pixel value and the residual data, the reconstructed pixel value of the sub-image block includes: a reference pixel value according to the upper reference pixel point and the left reference pixel point, and the residual data Obtaining a reconstructed pixel value of the sub-image block. a dividing module 301, configured to divide the current encoding object to obtain sub-image blocks arranged in a horizontal or vertical direction;
索引值获得模块 302, 用于获得所述子图像块的索引值, 其中, 所述索引值 用于表示所述子图像块的排序信息; The index value obtaining module 302 is configured to obtain an index value of the sub image block, where the index value is used to represent the sorting information of the sub image block;
参考像素值获得模块 303 ,用于根据所述索引值、所述子图像块的尺寸规格、 以及预设的预测模式, 获得所述子图像块进行预测时需要的参考像素点, 并获 得所述参考像素点的参考像素值; a reference pixel value obtaining module 303, configured to obtain, according to the index value, a size specification of the sub image block, and a preset prediction mode, a reference pixel point required for the sub image block to perform prediction, and obtain the The reference pixel value of the reference pixel;
残差数据获得模块 304, 用于根据所述参考像素值和预设的预测模式对所述 子图像块进行预测, 得到残差数据, 并对所述残差数据进行变换、 量化和熵编 码, 以得到编码后的残差数据; The residual data obtaining module 304 is configured to perform prediction on the sub-image block according to the reference pixel value and a preset prediction mode, obtain residual data, and transform, quantize, and entropy encode the residual data. To obtain the encoded residual data;
写码流模块 305 , 用于将当前编码对象的划分方式信息、 所述编码后的残差
数据、 以及所述子图像块的预测模式信息写入码流。 a code stream module 305, configured to divide mode information of the current coding object, and the coded residual The data, and prediction mode information of the sub-image block are written to the code stream.
更进一步的, 所述参考像素值获得模块 303还包括: Further, the reference pixel value obtaining module 303 further includes:
个数获得子模块, 用于根据预设的预测模式以及所述子图像块的尺寸规格, 获得需要的参考像素点的个数信息; a number obtaining sub-module, configured to obtain, according to a preset prediction mode and a size specification of the sub-image block, quantity information of a required reference pixel point;
位置获得子模块, 用于根据所述索引值和所述子图像块的尺寸规格, 确定 参考像素点的起始位置信息; 以及 a location obtaining submodule, configured to determine start position information of the reference pixel according to the index value and a size specification of the sub image block;
参考象素点获得子模块, 用于根据所述参考像素点的起始位置信息和个数 信息, 从所述编码对象的上相邻块、 右上相邻块、 左相邻块以及左下相邻块中 获得参考像素点。 a reference pixel obtaining submodule, configured to use an upper neighboring block, an upper right adjacent block, a left adjacent block, and a lower left adjacent to the encoding object according to the starting position information and the number information of the reference pixel The reference pixel is obtained in the block.
具体的, 当所述当前编码对象被划分成沿水平方向依次排列的子图像块时, 所述个数获得子模块根据预设的预测模式以及所述子图像块的尺寸规格, 获得 所述当前编码对象的上相邻块和右上相邻块中的参考点的个数信息; 所述位置 获得子模块根据所述索引值和所述子图像块的尺寸规格, 确定所述当前编码对 象的上相邻块和右上相邻块的参考像素点的起始位置信息; 所述参考象素点获 得子模块根据所述当前编码对象的上相邻块和右上相邻块的参考像素点的个数 信息和起始位置信息, 在所述当前编码对象的上相邻块和右上相邻块中获得所 述子图像块的上方参考像素点, 以及根据预设的预测模式, 在所述当前编码对 象的左相邻块和左下相邻块中获得所述子图像块的左方参考像素点。 而相应的, 在这时候, 残差数据获得模块 304则根据所述预设的预测模式, 以及所述上方参 考像素点和左方参考像素点的参考像素值, 对所述子图像块进行预测, 得到残 差数据。 Specifically, when the current encoding object is divided into sub-image blocks arranged in a horizontal direction, the number obtaining sub-module obtains the current according to a preset prediction mode and a size specification of the sub-image block. Encoding the number information of the reference points in the upper adjacent block and the upper right adjacent block of the object; the position obtaining submodule determining the upper of the current encoding object according to the index value and the size specification of the sub image block Start position information of reference pixels of the adjacent block and the upper right adjacent block; the reference pixel point obtaining sub-module according to the number of reference pixel points of the upper adjacent block and the upper right adjacent block of the current encoding object Information and starting position information, obtaining an upper reference pixel point of the sub-image block in an upper adjacent block and an upper right adjacent block of the current encoding object, and according to a preset prediction mode, in the current encoding object The left reference pixel of the sub-image block is obtained in the left adjacent block and the lower left adjacent block. Correspondingly, at this time, the residual data obtaining module 304 predicts the sub-image block according to the preset prediction mode and the reference pixel values of the upper reference pixel and the left reference pixel. , get the residual data.
当所述当前编码对象被划分成沿垂直方向依次排列的子图象块时, 个数获 得子模块根据预设的预测模式以及所述子图像块的尺寸规格, 获得所述当前编 码对象的左相邻块和左下相邻块中的参考点的个数信息; 位置获得子模块根据 所述索引值和所述子图像块的尺寸规格, 确定所述当前编码对象的左相邻块和 左下相邻块的参考像素点的起始位置信息; 参考象素点获得子模块根据所述当 前编码对象的左相邻块和左下相邻块的参考像素点的个数信息和起始位置信 息, 在所述当前编码对象的左相邻块和左下相邻块中获得所述子图像块的左方 参考像素点, 以及根据预设的预测模式, 在所述当前编码对象的上相邻块和右 上相邻块中获得所述子图像块的上方参考像素点。 在这时候, 相应的残差数据
获得模块 304则根据所述预设的预测模式, 以及所述上方参考像素点和左方参考 像素点的参考像素值, 对所述子图像块进行预测, 得到残差数据。 When the current encoding object is divided into sub-image blocks arranged in the vertical direction, the number obtaining sub-module obtains the left of the current encoding object according to a preset prediction mode and a size specification of the sub-image block. The number information of the reference points in the adjacent block and the lower left adjacent block; the position obtaining submodule determines the left neighboring block and the lower left phase of the current encoding object according to the index value and the size specification of the sub image block The starting position information of the reference pixel of the neighboring block; the reference pixel obtaining sub-module according to the number information and the starting position information of the reference pixel of the left adjacent block and the lower left adjacent block of the current encoding object, Obtaining a left reference pixel of the sub-image block in a left neighboring block and a lower left neighboring block of the current encoding object, and according to a preset prediction mode, on an upper adjacent block and an upper right of the current encoding object The upper reference pixel of the sub-image block is obtained in a neighboring block. At this time, the corresponding residual data The obtaining module 304 predicts the sub-image block according to the preset prediction mode and the reference pixel values of the upper reference pixel and the left reference pixel to obtain residual data.
请参照图 4, 本发明实施例还提供了一种应用上述解码方法的解码装置, 其 包括: Referring to FIG. 4, an embodiment of the present invention further provides a decoding apparatus that uses the foregoing decoding method, and includes:
参数获得模块 401 , 用于从码流中解析获得残差数据、 当前解码对象的划分 方式、 以及当前解码对象的预测模式信息; a parameter obtaining module 401, configured to parse the residual data from the code stream, a division manner of the current decoding object, and prediction mode information of the currently decoded object;
划分模块 402, 用于根据所述划分方式信息将所述当前解码对象划分成沿水 平方向或垂直方向依次排列的子图像块; a dividing module 402, configured to divide the current decoding object into sub-image blocks arranged in a horizontal direction or a vertical direction according to the dividing mode information;
索引值获得模块 403 , 用于获得所述子图像块的索引值, 其中, 所述索引值 用于表示所述子图像块的排序信息; An index value obtaining module 403, configured to obtain an index value of the sub-image block, where the index value is used to represent the sorting information of the sub-image block;
参考像素点获得模块 404,用于根据所述索引值、所述子图像块的尺寸规格、 以及所述预测模式, 获得所述子图像块进行预测时需要的参考像素点, 并获得 所述参考像素点的参考像素值; a reference pixel obtaining module 404, configured to obtain, according to the index value, a size specification of the sub-image block, and the prediction mode, a reference pixel point required for prediction by the sub-image block, and obtain the reference The reference pixel value of the pixel;
重构模块 405 , 用于根据所述参考像素值和所述残差数据, 获得所述子图像 块的重构像素值。 The reconstruction module 405 is configured to obtain, according to the reference pixel value and the residual data, a reconstructed pixel value of the sub-image block.
更进一步的, 所述参考像素值获得模块 404还包括: Further, the reference pixel value obtaining module 404 further includes:
个数获得子模块, 用于根据所述预测模式以及所述子图像块的尺寸规格, 获得需要的参考像素点的个数信息; a number obtaining submodule, configured to obtain, according to the prediction mode and a size specification of the sub image block, quantity information of a required reference pixel point;
位置获得子模块, 用于根据所述索引值和所述子图像块的尺寸规格, 确定 参考像素点的起始位置信息; 以及 a location obtaining submodule, configured to determine start position information of the reference pixel according to the index value and a size specification of the sub image block;
参考象素点获得子模块, 用于根据所述参考像素点的起始位置信息和个数 信息, 从所述当前解码对象的上相邻块、 右上相邻块、 左相邻块以及左下相邻 块中获得参考像素点。 a reference pixel obtaining submodule, configured to use an upper neighboring block, an upper right adjacent block, a left neighboring block, and a lower left phase of the current decoding object according to the starting position information and the number information of the reference pixel point The reference pixel is obtained in the neighboring block.
具体的, 当所述当前解码对象被划分成沿水平方向依次排列的子图像块时, 所述个数获得子模块根据预测模式以及所述子图像块的尺寸规格, 获得所述当 前解码对象的上相邻块和右上相邻块中的参考点的个数信息; 所述位置获得子 模块根据所述索引值和所述子图像块的尺寸规格, 确定所述当前解码对象的上 相邻块和右上相邻块的参考像素点的起始位置信息; 所述参考象素点获得子模 块根据所述当前解码对象的上相邻块和右上相邻块的参考像素点的个数信息和 起始位置信息, 在所述当前解码对象的上相邻块和右上相邻块中获得所述子图
像块的上方参考像素点, 以及根据预测模式, 在所述当前解码对象的左相邻块 和左下相邻块中获得所述子图像块的左方参考像素点。 而相应的, 在这时候, 重构模块 405则根据所述上方参考像素点和左方参考像素点的参考像素值, 以及 所述残差数据, 获得所述子图像块的重构像素值。 Specifically, when the current decoding object is divided into sub-image blocks arranged in the horizontal direction, the number obtaining sub-module obtains the current decoding object according to the prediction mode and the size specification of the sub-image block. The number information of the reference points in the upper adjacent block and the upper right adjacent block; the position obtaining submodule determines the upper adjacent block of the current decoding object according to the index value and the size specification of the sub image block And starting position information of the reference pixel of the upper right adjacent block; the reference pixel obtaining sub-module according to the number information of the reference pixel of the upper adjacent block and the upper right adjacent block of the current decoding object Starting position information, obtaining the sub-picture in an upper adjacent block and an upper right adjacent block of the current decoding object A reference pixel point above the block, and a left reference pixel of the sub-image block are obtained in a left neighboring block and a lower left neighboring block of the current decoding object according to a prediction mode. Correspondingly, at this time, the reconstruction module 405 obtains the reconstructed pixel values of the sub-image block according to the reference pixel values of the upper reference pixel and the left reference pixel, and the residual data.
当所述当前解码对象被划分成沿垂直方向依次排列的子图象块时, 个数获 得子模块根据预测模式以及所述子图像块的尺寸规格, 获得所述当前解码对象 的左相邻块和左下相邻块中的参考点的个数信息; 位置获得子模块根据所述索 引值和所述子图像块的尺寸规格, 确定所述当前解码对象的左相邻块和左下相 邻块的参考像素点的起始位置信息; 参考象素点获得子模块根据所述当前解码 对象的左相邻块和左下相邻块的参考像素点的个数信息和起始位置信息, 在所 述当前解码对象的左相邻块和左下相邻块中获得所述子图像块的左方参考像素 点, 以及根据预测模式, 在所述当前解码对象的上相邻块和右上相邻块中获得 所述子图像块的上方参考像素点。 而相应的, 在这时候, 重构模块 405则根据所 述上方参考像素点和左方参考像素点的参考像素值, 以及所述残差数据, 获得 所述子图像块的重构像素值。 When the current decoding object is divided into sub-picture blocks arranged in the vertical direction, the number obtaining sub-module obtains the left neighboring block of the current decoding object according to the prediction mode and the size specification of the sub-image block. And the number information of the reference points in the lower left adjacent block; the location obtaining submodule determines, according to the index value and the size specification of the sub image block, the left adjacent block and the lower left adjacent block of the current decoding object Reference position information of the reference pixel; the reference pixel obtaining sub-module according to the number information and the starting position information of the reference pixel of the left adjacent block and the lower left adjacent block of the current decoding object, at the current Obtaining a left reference pixel point of the sub-image block in a left neighboring block and a lower left neighboring block of the decoding object, and obtaining an upper neighboring block and an upper right neighboring block of the current decoding object according to a prediction mode The reference pixel point above the sub-image block. Correspondingly, at this time, the reconstruction module 405 obtains the reconstructed pixel values of the sub-image block according to the reference pixel values of the upper reference pixel and the left reference pixel, and the residual data.
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到本发明可 借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件, 但很多 情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案本质上或 者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该计算机软 件产品可以存储在存储介质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令 用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执 行本发明各个实施例或者实施例的某些部分所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is a better implementation. the way. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域的普通 技术人员来说, 在不脱离本发明原理的前提下, 还可以作出若干改进和润饰, 这些改进和润饰也应视为本发明的保护范围。
The above description is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It is considered as the scope of protection of the present invention.
Claims
1、 一种编码方法, 其特征在于, 包括: 1. An encoding method, comprising:
对当前编码对象进行划分, 得到沿水平或垂直方向依次排列的子图像块; 获得所述子图像块的索引值, 其中, 所述索引值用于表示所述子图像块的 排序信息; Dividing the current coding object to obtain a sub-image block arranged in a horizontal or vertical direction; obtaining an index value of the sub-image block, wherein the index value is used to represent the order information of the sub-image block;
根据所述索引值、 所述子图像块的尺寸规格、 以及预设的预测模式, 获得 所述子图像块进行预测时需要的参考像素点, 并获得所述参考像素点的参考像 素值; And obtaining, according to the index value, the size specification of the sub-image block, and the preset prediction mode, a reference pixel point required for the sub-image block to perform prediction, and obtaining a reference pixel value of the reference pixel point;
根据所述参考像素值和预设的预测模式对所述子图像块进行预测, 得到残 差数据; And predicting the sub-image block according to the reference pixel value and a preset prediction mode to obtain residual data;
对所述残差数据进行变换、 量化和熵编码, 以得到编码后的残差数据; 将当前编码对象的划分方式信息、 所述编码后的残差数据、 以及所述子图 像块的预测模式信息写入码流。 Transforming, quantizing, and entropy encoding the residual data to obtain encoded residual data; dividing mode information of the current encoding object, the encoded residual data, and a prediction mode of the sub-image block Information is written to the stream.
2、 如权利要求 1中所述的编码方法, 其特征在于, 所述根据所述索引值、 所述子图像块的尺寸规格、 以及预设的预测模式, 获得所述子图像块进行预测 时需要的参考像素点, 并获得所述参考像素点的参考像素值包括: 2. The encoding method according to claim 1, wherein the sub-image block is obtained for prediction according to the index value, the size specification of the sub-image block, and a preset prediction mode. A reference pixel point is required, and obtaining reference pixel values of the reference pixel point includes:
根据预设的预测模式以及所述子图像块的尺寸规格, 获得需要的参考像素 点的个数信息; Obtaining the number information of the required reference pixels according to the preset prediction mode and the size specification of the sub image block;
根据所述索引值和所述子图像块的尺寸规格, 确定参考像素点的起始位置 信息; Determining start position information of the reference pixel point according to the index value and the size specification of the sub image block;
根据所述参考像素点的起始位置信息和个数信息, 从所述编码对象的上相 邻块、 右上相邻块、 左相邻块以及左下相邻块中获得参考像素点。 And obtaining reference pixel points from the upper adjacent block, the upper right adjacent block, the left adjacent block, and the lower left adjacent block of the encoding object according to the starting position information and the number information of the reference pixel.
3、 如权利要求 1中所述的编码方法, 其特征在于, 当所述当前编码对象被 划分成沿水平方向依次排列的子图像块时, 3. The encoding method according to claim 1, wherein when said current encoding object is divided into sub-image blocks arranged in order in the horizontal direction,
所述根据所述索引值、 所述子图像块的尺寸规格、 以及预设的预测模式, 获得所述子图像块进行预测时需要的参考像素点, 并获得所述参考像素点的参 考像素值包括: 根据预设的预测模式以及所述子图像块的尺寸规格, 获得所述当前编码对 象的上相邻块和右上相邻块中的参考点的个数信息; Determining, according to the index value, the size specification of the sub-image block, and the preset prediction mode, a reference pixel point required for the sub-image block to perform prediction, and obtaining a reference pixel value of the reference pixel point include: Obtaining, according to a preset prediction mode and a size specification of the sub-image block, number information of reference points in the upper adjacent block and the upper right adjacent block of the current encoding object;
根据所述索引值和所述子图像块的尺寸规格, 确定所述当前编码对象的上 相邻块和右上相邻块的参考像素点的起始位置信息; Determining start position information of reference pixel points of the upper adjacent block and the upper right adjacent block of the current encoding object according to the index value and the size specification of the sub image block;
根据所述当前编码对象的上相邻块和右上相邻块的参考像素点的个数信息 和起始位置信息, 在所述当前编码对象的上相邻块和右上相邻块中获得所述子 图像块的上方参考像素点, 其中, 所述上方参考象素点为所述子图像块的处于 所述上相邻块和右上相邻块中的参考像素点; Obtaining the number in the upper neighboring block and the upper right neighboring block of the current encoding object according to the number information and the starting position information of the reference pixel points of the upper neighboring block and the upper right neighboring block of the current encoding object a reference pixel point above the sub-image block, wherein the upper reference pixel point is a reference pixel point of the sub-image block in the upper adjacent block and the upper right adjacent block;
根据预设的预测模式, 在所述当前编码对象的左相邻块和左下相邻块中获 得所述子图像块的左方参考像素点, 其中, 所述左方参考像素点为所述子图像 块的处于所述左相邻块和左下相邻块中的参考像素点, Obtaining a left reference pixel of the sub-image block in a left neighboring block and a lower left neighboring block of the current encoding object according to a preset prediction mode, where the left reference pixel point is the sub-pixel Reference pixel points of the image block in the left adjacent block and the lower left adjacent block,
所述根据所述参考像素值和预设的预测模式对所述子图像块进行预测, 得 到残差数据包括: The predicting the sub-image block according to the reference pixel value and a preset prediction mode, and obtaining the residual data includes:
根据所述预设的预测模式, 以及所述上方参考像素点和左方参考像素点的 参考像素值, 对所述子图像块进行预测, 得到残差数据。 And predicting the sub-image block according to the preset prediction mode and the reference pixel values of the upper reference pixel and the left reference pixel to obtain residual data.
4、 如权利要求 3中所述的编码方法, 其特征在于, 当所述当前编码对象被 划分成沿垂直方向依次排列的子图像块时, 4. The encoding method according to claim 3, wherein when said current encoding object is divided into sub-image blocks arranged in the vertical direction,
所述根据所述索引值、 所述子图像块的尺寸规格、 以及预设的预测模式, 获得所述子图像块进行预测时需要的参考像素点, 并获得所述参考像素点的参 考像素值包括: Determining, according to the index value, the size specification of the sub-image block, and the preset prediction mode, a reference pixel point required for the sub-image block to perform prediction, and obtaining a reference pixel value of the reference pixel point Includes:
根据预设的预测模式以及所述子图像块的尺寸规格, 获得所述当前编码对 象的左相邻块和左下相邻块中的参考点的个数信息; Obtaining, according to a preset prediction mode and a size specification of the sub-image block, number information of reference points in a left neighboring block and a lower left neighboring block of the current encoded object;
根据所述索引值和所述子图像块的尺寸规格, 确定所述当前编码对象的左 相邻块和左下相邻块的参考像素点的起始位置信息; Determining start position information of reference pixel points of the left adjacent block and the lower left adjacent block of the current encoding object according to the index value and the size specification of the sub image block;
根据所述当前编码对象的左相邻块和左下相邻块的参考像素点的个数信息 和起始位置信息, 在所述当前编码对象的左相邻块和左下相邻块中获得所述子 图像块的左方参考像素点; Obtaining the number in the left neighboring block and the lower left neighboring block of the current encoding object according to the number information and the starting position information of the reference pixel points of the left neighboring block and the lower left neighboring block of the current encoding object The left reference pixel of the sub-image block;
根据预设的预测模式, 在所述当前编码对象的上相邻块和右上相邻块中获 得所述子图像块的上方参考像素点; 所述根据所述参考像素值和预设的预测模式对所述子图像块进行预测, 得 到残差数据包括: Obtaining an upper reference pixel of the sub-image block in an upper adjacent block and an upper right adjacent block of the current encoding object according to a preset prediction mode; The predicting the sub-image block according to the reference pixel value and a preset prediction mode, and obtaining the residual data includes:
根据所述预设的预测模式, 以及所述上方参考像素点和左方参考像素点的 参考像素值, 对所述子图像块进行预测, 得到残差数据。 And predicting the sub-image block according to the preset prediction mode and the reference pixel values of the upper reference pixel and the left reference pixel to obtain residual data.
5、 如权利要求 3中所述的编码方法, 其特征在于, 根据所述预测模式确认 的所述子图像块进行预测时需要的参考像素点包括所述子图像块的上相邻块、 右上相邻块、 左相邻块、 以及左下相邻块的中的一个或多个相邻块中的像素点。 The encoding method according to claim 3, wherein the reference pixel required for prediction by the sub-image block confirmed according to the prediction mode comprises an upper adjacent block of the sub-image block, and an upper right Pixels in one or more adjacent blocks of a neighboring block, a left neighboring block, and a lower left neighboring block.
6、 如权利要求 1中所述的编码方法, 其特征在于, 所述根据所述索引值、 所述子图像块的尺寸规格、 以及预设的预测模式, 获得所述子图像块进行预测 时需要的参考像素点, 并获得所述参考像素点的参考像素值包括: The encoding method according to claim 1, wherein the sub-image block is obtained for prediction according to the index value, the size specification of the sub-image block, and a preset prediction mode. A reference pixel point is required, and obtaining reference pixel values of the reference pixel point includes:
根据所述子图像块的排序, 获得所述子图像块的索引值; Obtaining an index value of the sub-image block according to the ordering of the sub-image blocks;
根据所述索引值和所述子图象块的尺寸规格, 获得所述子图像块的位置信 息; Obtaining location information of the sub-image block according to the index value and a size specification of the sub-image block;
根据所述位置信息、 所述子图像块的尺寸规格、 以及预设的预测模式, 获 得所述子图像块进行预测时需要的参考像素点, 并获得所述参考像素点的参考 像素值。 And obtaining reference pixel points required for prediction by the sub-image block according to the location information, a size specification of the sub-image block, and a preset prediction mode, and obtaining a reference pixel value of the reference pixel.
7、 一种解码方法, 其特征在于, 包括: 7. A decoding method, comprising:
从码流中解析获得残差数据、 当前解码对象的划分方式、 以及当前解码对 象的预测模式信息; Obtaining residual data from the code stream, a division mode of the current decoding object, and prediction mode information of the currently decoded object;
根据所述划分方式信息将所述当前解码对象划分成沿水平方向或垂直方向 依次排列的子图像块; And dividing the current decoding object into sub-image blocks arranged in a horizontal direction or a vertical direction according to the division mode information;
获得所述子图像块的索引值, 其中, 所述索引值用于表示所述子图像块的 排序信息; Obtaining an index value of the sub-image block, where the index value is used to indicate sorting information of the sub-image block;
根据所述索引值、 所述子图像块的尺寸规格、 以及所述预测模式, 获得所 述子图像块进行预测时需要的参考像素点, 并获得所述参考像素点的参考像素 值; Obtaining, according to the index value, the size specification of the sub-image block, and the prediction mode, a reference pixel point required for prediction by the sub-image block, and obtaining a reference pixel value of the reference pixel point;
根据所述参考像素值和所述残差数据, 获得所述子图像块的重构像素值。 And reconstructing pixel values of the sub-image block according to the reference pixel value and the residual data.
8、 如权利要求 7中所述的解码方法, 其特征在于, 所述根据所述索引值、 所述子图像块的尺寸规格、 以及所述预测模式, 获得所述子图像块进行预测时 需要的参考像素点, 并获得所述参考像素点的参考像素值包括: The decoding method according to claim 7, wherein the obtaining of the sub-image block for prediction is performed according to the index value, the size specification of the sub-image block, and the prediction mode. Reference pixel points, and obtaining reference pixel values of the reference pixel points include:
根据所述预测模式以及所述子图像块的尺寸规格, 获得需要的参考像素点 的个数信息; Obtaining the number information of the required reference pixel points according to the prediction mode and the size specification of the sub image block;
根据所述索引值和所述子图像块的尺寸规格, 确定参考像素点的起始位置 信息; Determining start position information of the reference pixel point according to the index value and the size specification of the sub image block;
根据所述参考像素点的起始位置信息和个数信息, 从所述解码对象的上相 邻块、 右上相邻块、 左相邻块以及左下相邻块中获得参考像素点。 And obtaining reference pixel points from the upper adjacent block, the upper right adjacent block, the left adjacent block, and the lower left adjacent block of the decoding object according to the start position information and the number information of the reference pixel.
9、 如权利要求 7中所述的解码方法, 其特征在于, 当所述当前解码对象被 划分成沿水平方向依次排列的子图像块时, 9. The decoding method according to claim 7, wherein when said current decoding object is divided into sub-image blocks arranged in order in the horizontal direction,
所述根据所述索引值、 所述子图像块的尺寸规格、 以及所述预测模式, 获 得所述子图像块进行预测时需要的参考像素点, 并获得所述参考像素点的参考 像素值包括: Determining, according to the index value, the size specification of the sub-image block, and the prediction mode, a reference pixel point required for the sub-image block to perform prediction, and obtaining a reference pixel value of the reference pixel point includes :
根据所述预测模式以及所述子图像块的尺寸规格, 获得所述当前解码对象 的上相邻块和右上相邻块中的参考点的个数信息; Obtaining, according to the prediction mode and a size specification of the sub-image block, number information of reference points in an upper adjacent block and an upper right adjacent block of the current decoding object;
根据所述索引值和所述子图像块的尺寸规格, 确定所述当前解码对象的上 相邻块和右上相邻块的参考像素点的起始位置信息; Determining start position information of reference pixel points of the upper adjacent block and the upper right adjacent block of the current decoding object according to the index value and the size specification of the sub image block;
根据所述当前解码对象的上相邻块和右上相邻块的参考像素点的个数信息 和起始位置信息, 在所述当前解码对象的上相邻块和右上相邻块中获得所述子 图像块的上方参考像素点, 其中, 所述上方参考象素点为所述子图像块的处于 所述上相邻块和右上相邻块中的参考像素点; Obtaining the number in the upper neighboring block and the upper right neighboring block of the current decoding object according to the number information and the starting position information of the reference pixel points of the upper neighboring block and the upper right neighboring block of the current decoding object. a reference pixel point above the sub-image block, wherein the upper reference pixel point is a reference pixel point of the sub-image block in the upper adjacent block and the upper right adjacent block;
根据所述预测模式, 在所述当前解码对象的左相邻块和左下相邻块中获得 所述子图像块的左方参考像素点, 其中, 所述左方参考像素点为所述子图像块 的处于所述左相邻块和左下相邻块中的参考像素点, Obtaining, according to the prediction mode, a left reference pixel of the sub-image block in a left neighboring block and a lower left neighboring block of the current decoding object, where the left reference pixel is the sub-image Reference pixel points of the block in the left adjacent block and the lower left adjacent block,
根据所述参考像素值和所述残差数据, 获得所述子图像块的重构像素值包 括: Obtaining the reconstructed pixel values of the sub-image block according to the reference pixel value and the residual data includes:
根据所述上方参考像素点和左方参考像素点的参考像素值, 以及所述残差 数据, 获得所述子图像块的重构像素值。 a reference pixel value according to the upper reference pixel point and the left reference pixel point, and the residual Data, obtaining reconstructed pixel values of the sub-image block.
10、 如权利要求 9中所述的解码方法, 其特征在于, 当所述当前解码对象被 划分成沿垂直方向依次排列的子图像块时, 10. The decoding method according to claim 9, wherein when said current decoding object is divided into sub-image blocks arranged in the vertical direction,
所述根据所述索引值、 所述子图像块的尺寸规格、 以及所述预测模式, 获 得所述子图像块进行预测时需要的参考像素点, 并获得所述参考像素点的参考 像素值包括: Determining, according to the index value, the size specification of the sub-image block, and the prediction mode, a reference pixel point required for the sub-image block to perform prediction, and obtaining a reference pixel value of the reference pixel point includes :
根据预测模式以及所述子图像块的尺寸规格, 获得所述当前解码对象的左 相邻块和左下相邻块中的参考点的个数信息; Obtaining, according to the prediction mode and the size specification of the sub-image block, the number information of the reference points in the left neighboring block and the lower left neighboring block of the current decoding object;
根据所述索引值和所述子图像块的尺寸规格, 确定所述当前解码对象的左 相邻块和左下相邻块的参考像素点的起始位置信息; Determining start position information of reference pixel points of the left adjacent block and the lower left adjacent block of the current decoding object according to the index value and the size specification of the sub image block;
根据所述当前解码对象的左相邻块和左下相邻块的参考像素点的个数信息 和起始位置信息, 在所述当前解码对象的左相邻块和左下相邻块中获得所述子 图像块的左方参考像素点; Obtaining the number in the left neighboring block and the lower left neighboring block of the current decoding object according to the number information and the starting position information of the reference pixel points of the left neighboring block and the lower left neighboring block of the current decoding object The left reference pixel of the sub-image block;
根据所述预测模式, 在所述当前解码对象的上相邻块和右上相邻块中获得 所述子图像块的上方参考像素点, Obtaining an upper reference pixel of the sub-image block in an upper neighboring block and an upper right neighboring block of the current decoding object according to the prediction mode,
根据所述参考像素值和所述残差数据, 获得所述子图像块的重构像素值包 括: Obtaining the reconstructed pixel values of the sub-image block according to the reference pixel value and the residual data includes:
根据所述上方参考像素点和左方参考像素点的参考像素值, 以及所述残差 数据, 获得所述子图像块的重构像素值。 And reconstructing pixel values of the sub-image block according to reference pixel values of the upper reference pixel and the left reference pixel, and the residual data.
11、 如权利要求 9中所述的解码方法, 其特征在于, 根据所述预测模式确认 的所述子图像块进行预测时需要的参考像素点包括所述字图像块的上相邻块、 右上相邻块、 左相邻块、 以及左下相邻块的中的一个或多个相邻块中的像素点。 The decoding method according to claim 9, wherein the reference pixel required for prediction by the sub-image block confirmed according to the prediction mode comprises an upper adjacent block of the word image block, and an upper right Pixels in one or more adjacent blocks of a neighboring block, a left neighboring block, and a lower left neighboring block.
12、 如权利要求 7中所述的解码方法, 其特征在于, 所述根据所述索引值、 所述子图像块的尺寸规格、 以及所述预测模式, 获得所述子图像块进行预测时 需要的参考像素点, 并获得所述参考像素点的参考像素值包括: The decoding method according to claim 7, wherein the obtaining the sub-image block for prediction according to the index value, the size specification of the sub-image block, and the prediction mode Reference pixel points, and obtaining reference pixel values of the reference pixel points include:
根据所述子图像块的排序, 获得所述子图像块的索引值; Obtaining an index value of the sub-image block according to the ordering of the sub-image blocks;
根据所述索引值和所述子图象块的尺寸规格, 获得所述子图像块的位置信 息; Obtaining a location letter of the sub-image block according to the index value and a size specification of the sub-image block Interest rate
根据所述位置信息、 所述子图像块的尺寸规格、 以及所述预测模式, 获得 所述子图像块进行预测时需要的参考像素点, 并获得所述参考像素点的参考像 素值。 And obtaining, according to the location information, the size specification of the sub-image block, and the prediction mode, a reference pixel point required for the prediction by the sub-image block, and obtaining a reference pixel value of the reference pixel.
13、 一种编码装置, 其特征在于, 包括: 13. An encoding device, comprising:
划分模块, 用于对当前编码对象进行划分, 得到沿水平或垂直方向依次排 列的子图像块; a dividing module, configured to divide the current encoding object to obtain sub-image blocks arranged in a horizontal or vertical direction;
索引值获得模块, 用于获得所述子图像块的索引值, 其中, 所述索引值用 于表示所述子图像块的排序信息; An index value obtaining module, configured to obtain an index value of the sub-image block, where the index value is used to represent ranking information of the sub-image block;
参考像素值获得模块, 用于根据所述索引值、 所述子图像块的尺寸规格、 以及预设的预测模式, 获得所述子图像块进行预测时需要的参考像素点, 并获 得所述参考像素点的参考像素值; a reference pixel value obtaining module, configured to obtain, according to the index value, a size specification of the sub image block, and a preset prediction mode, a reference pixel point required for the sub image block to perform prediction, and obtain the reference The reference pixel value of the pixel;
残差数据获得模块, 用于根据所述参考像素值和预设的预测模式对所述子 图像块进行预测, 得到残差数据, 并对所述残差数据进行变换、 量化和熵编码, 以得到编码后的残差数据; a residual data obtaining module, configured to predict the sub-image block according to the reference pixel value and a preset prediction mode, obtain residual data, and transform, quantize, and entropy encode the residual data to Obtaining the encoded residual data;
写码流模块, 用于将当前编码对象的划分方式信息、 所述编码后的残差数 据、 以及所述子图像块的预测模式信息写入码流。 The code stream module is configured to write the partition mode information of the current encoding object, the encoded residual data, and the prediction mode information of the sub-image block into the code stream.
14、 如权利要求 13中所述的编码装置, 其特征在于, 所述参考像素值获得 模块包括: The encoding device according to claim 13, wherein the reference pixel value obtaining module comprises:
个数获得子模块, 用于根据预设的预测模式以及所述子图像块的尺寸规格, 获得需要的参考像素点的个数信息; a number obtaining sub-module, configured to obtain, according to a preset prediction mode and a size specification of the sub-image block, quantity information of a required reference pixel point;
位置获得子模块, 用于根据所述所述索引值和所述子图像块的尺寸规格, 确定参考像素点的起始位置信息; 以及 a location obtaining submodule, configured to determine, according to the index value and a size specification of the sub image block, start position information of a reference pixel point;
参考象素点获得子模块, 用于根据所述参考像素点的起始位置信息和个数 信息, 从所述编码对象的上相邻块、 右上相邻块、 左相邻块以及左下相邻块中 获得参考像素点。 a reference pixel obtaining submodule, configured to use an upper neighboring block, an upper right adjacent block, a left adjacent block, and a lower left adjacent to the encoding object according to the starting position information and the number information of the reference pixel The reference pixel is obtained in the block.
15、 如权利要求 14中所述的编码装置, 其特征在于, 当所述当前编码对 被划分成沿水平方向依次排列的子图像块时, 15. The encoding apparatus according to claim 14, wherein when said current encoding pair When divided into sub-image blocks arranged in the horizontal direction,
所述个数获得子模块用于根据预设的预测模式以及所述子图像块的尺寸规 格, 获得所述当前编码对象的上相邻块和右上相邻块中的参考点的个数信息; 所述位置获得子模块用于根据所述索引值和所述子图像块的尺寸规格, 确 定所述当前编码对象的上相邻块和右上相邻块的参考像素点的起始位置信息; 所述参考象素点获得子模块用于根据所述当前编码对象的上相邻块和右上 相邻块的参考像素点的个数信息和起始位置信息, 在所述当前编码对象的上相 邻块和右上相邻块中获得所述子图像块的上方参考像素点, 以及根据预设的预 测模式, 在所述当前编码对象的左相邻块和左下相邻块中获得所述子图像块的 左方参考像素点, 其中, 所述左方参考像素点为所述子图像块的处于所述左相 邻块和左下相邻块中的参考像素点, 所述上方参考象素点为所述子图像块的处 于所述上相邻块和右上相邻块中的参考像素点, And the number obtaining sub-module is configured to obtain, according to a preset prediction mode and a size specification of the sub-image block, number information of reference points in the upper adjacent block and the upper right adjacent block of the current encoding object; The location obtaining submodule is configured to determine, according to the index value and a size specification of the sub image block, start location information of reference pixel points of an upper neighboring block and an upper right neighboring block of the current encoding object; The reference pixel point obtaining sub-module is configured to be adjacent to the current encoding object according to the number information and the starting position information of the reference pixel points of the upper adjacent block and the upper right adjacent block of the current encoding object. Obtaining an upper reference pixel of the sub-image block in a block and an upper right adjacent block, and obtaining the sub-image block in a left adjacent block and a lower left adjacent block of the current encoding object according to a preset prediction mode a left reference pixel, wherein the left reference pixel is a reference pixel of the sub-image block in the left adjacent block and the lower left adjacent block, and the upper reference pixel is At the sub-image block adjacent to the upper right block and the reference block adjacent pixel,
所述残差数据获得模块根据所述预设的预测模式, 以及所述上方参考像素 点和左方参考像素点的参考像素值, 对所述子图像块进行预测, 得到残差数据。 The residual data obtaining module predicts the sub-image block according to the preset prediction mode and reference pixel values of the upper reference pixel and the left reference pixel to obtain residual data.
16、 如权利要求 13中所述的编码装置, 其特征在于, 根据所述预测模式确 认的所述子图像块进行预测时需要的参考像素点包括所述子图像块的上相邻 块、 右上相邻块、 左相邻块、 以及左下相邻块的中的一个或多个相邻块中的像 素点。 The encoding apparatus according to claim 13, wherein the reference pixel required for performing prediction based on the sub-image block confirmed by the prediction mode includes an upper adjacent block of the sub-image block, and an upper right Pixels in one or more adjacent blocks of a neighboring block, a left neighboring block, and a lower left neighboring block.
17、 一种解码装置, 其特征在于, 包括: 17. A decoding apparatus, comprising:
参数获得模块, 用于从码流中解析获得残差数据、 当前解码对象的划分方 式、 以及当前解码对象的预测模式信息; a parameter obtaining module, configured to parse the residual data, the partitioning mode of the current decoding object, and the prediction mode information of the currently decoded object from the code stream;
划分模块, 用于根据所述划分方式信息将所述当前解码对象划分成沿水平 方向或垂直方向依次排列的子图像块; a dividing module, configured to divide the current decoding object into sub-image blocks arranged in a horizontal direction or a vertical direction according to the dividing mode information;
索引值获得模块, 用于获得所述子图像块的索引值, 其中, 所述索引值用 于表示所述子图像块的排序信息; An index value obtaining module, configured to obtain an index value of the sub-image block, where the index value is used to represent ranking information of the sub-image block;
参考像素点获得模块, 用于根据所述索引值、 所述子图像块的尺寸规格、 以及所述预测模式, 获得所述子图像块进行预测时需要的参考像素点, 并获得 所述参考像素点的参考像素值; 重构模块, 用于根据所述参考像素值和所述残差数据, 获得所述子图像块 的重构像素值。 a reference pixel obtaining module, configured to obtain, according to the index value, a size specification of the sub image block, and the prediction mode, a reference pixel point required for prediction by the sub image block, and obtain the reference pixel The reference pixel value of the point; And a reconstruction module, configured to obtain, according to the reference pixel value and the residual data, a reconstructed pixel value of the sub-image block.
18、 如权利要求 17中所述的解码装置, 其特征在于, 所述参考像素获得模 块包括: The decoding device according to claim 17, wherein the reference pixel obtaining module comprises:
个数获得子模块, 用于根据所述预测模式以及所述子图像块的尺寸规格, 获得需要的参考像素点的个数信息; a number obtaining submodule, configured to obtain, according to the prediction mode and a size specification of the sub image block, quantity information of a required reference pixel point;
位置获得子模块, 用于根据所述索引值和所述子图像块的尺寸规格, 确定 参考像素点的起始位置信息; 以及 a location obtaining submodule, configured to determine start position information of the reference pixel according to the index value and a size specification of the sub image block;
参考象素点获得子模块, 用于根据所述参考像素点的起始位置信息和个数 信息, 从所述编码对象的上相邻块、 右上相邻块、 左相邻块以及左下相邻块中 获得参考像素点。 a reference pixel obtaining submodule, configured to use an upper neighboring block, an upper right adjacent block, a left adjacent block, and a lower left adjacent to the encoding object according to the starting position information and the number information of the reference pixel The reference pixel is obtained in the block.
19、 如权利要求 18中所述的解码装置, 其特征在于, 当所述当前编码对象 被划分成沿水平方向依次排列的子图像块时, The decoding apparatus according to claim 18, wherein when said current encoding object is divided into sub-image blocks arranged in order in the horizontal direction,
所述个数获得子模块用于根据预测模式以及所述子图像块的尺寸规格, 获 得所述当前编码对象的上相邻块和右上相邻块中的参考点的个数信息; And the number obtaining submodule is configured to obtain, according to the prediction mode and the size specification of the sub image block, the number information of the reference points in the upper adjacent block and the upper right adjacent block of the current encoding object;
所述位置获得子模块用于根据所述索引值和所述子图像块的尺寸规格, 确 定所述当前编码对象的上相邻块和右上相邻块的参考像素点的起始位置信息; 所述参考象素点获得子模块用于根据所述当前编码对象的上相邻块和右上 相邻块的参考像素点的个数信息和起始位置信息, 在所述当前编码对象的上相 邻块和右上相邻块中获得所述子图像块的上方参考像素点, 以及根据预测模式, 在所述当前编码对象的左相邻块和左下相邻块中获得所述子图像块的左方参考 像素点, 其中, 所述左方参考像素点为所述子图像块的处于所述左相邻块和左 下相邻块中的参考像素点, 所述上方参考象素点为所述子图像块的处于所述上 相邻块和右上相邻块中的参考像素点; The location obtaining submodule is configured to determine, according to the index value and a size specification of the sub image block, start location information of reference pixel points of an upper neighboring block and an upper right neighboring block of the current encoding object; The reference pixel point obtaining sub-module is configured to be adjacent to the current encoding object according to the number information and the starting position information of the reference pixel points of the upper adjacent block and the upper right adjacent block of the current encoding object. Obtaining an upper reference pixel point of the sub-image block in a block and an upper right adjacent block, and obtaining a left side of the sub-image block in a left adjacent block and a lower left adjacent block of the current encoding object according to a prediction mode a reference pixel, wherein the left reference pixel is a reference pixel of the sub-image block in the left adjacent block and the lower left adjacent block, and the upper reference pixel is the sub-image Reference pixel points of the block in the upper adjacent block and the upper right adjacent block;
所述重构模块用于根据所述上方参考像素点和左方参考像素点的参考像素 值, 以及所述残差数据, 获得所述子图像块的重构像素值。 The reconstruction module is configured to obtain reconstructed pixel values of the sub-image block according to reference pixel values of the upper reference pixel and the left reference pixel, and the residual data.
20、 如权利要求 19中所述的解码装置, 其特征在于, 当所述当前解码对象 被划分成沿垂直方向依次排列的子图象块时, 20. The decoding apparatus according to claim 19, wherein: when said current decoding object When divided into sub-image blocks arranged in the vertical direction,
所述个数获得子模块用于根据预测模式以及所述子图像块的尺寸规格, 获 得所述当前解码对象的左相邻块和左下相邻块中的参考点的个数信息; And the number obtaining submodule is configured to obtain, according to the prediction mode and the size specification of the sub image block, the number information of the reference points in the left neighboring block and the lower left neighboring block of the current decoding object;
所述位置获得子模块用于根据所述子图像块的位置信息, 确定所述当前解 码对象的左相邻块和左下相邻块的参考像素点的起始位置信息; The location obtaining submodule is configured to determine, according to location information of the sub image block, start location information of reference pixel points of a left neighboring block and a lower left neighboring block of the current decoding object;
所述参考象素点获得子模块用于根据所述当前解码对象的左相邻块和左下 相邻块的参考像素点的个数信息和起始位置信息, 在所述当前解码对象的左相 邻块和左下相邻块中获得所述子图像块的左方参考像素点, 以及根据预测模式, 在所述当前解码对象的上相邻块和右上相邻块中获得所述子图像块的上方参考 像素点; The reference pixel point obtaining sub-module is configured to determine, according to the number information of the reference pixel points and the start position information of the left neighboring block and the lower left neighboring block of the current decoding object, the left phase of the current decoding object Obtaining a left reference pixel of the sub-image block in a neighboring block and a lower left neighboring block, and obtaining the sub-image block in an upper neighboring block and an upper right neighboring block of the current decoding object according to a prediction mode Upper reference pixel point;
所述重构模块用于根据所述上方参考像素点和左方参考像素点的参考像素 值, 以及所述残差数据, 获得所述子图像块的重构像素值。 The reconstruction module is configured to obtain reconstructed pixel values of the sub-image block according to reference pixel values of the upper reference pixel and the left reference pixel, and the residual data.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110022734.6A CN102611885B (en) | 2011-01-20 | 2011-01-20 | Encoding and decoding method and device |
CN201110022734.6 | 2011-01-20 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2012097746A1 true WO2012097746A1 (en) | 2012-07-26 |
Family
ID=46515167
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2012/070606 WO2012097746A1 (en) | 2011-01-20 | 2012-01-19 | Coding-decoding method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102611885B (en) |
WO (1) | WO2012097746A1 (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104125463A (en) * | 2013-04-26 | 2014-10-29 | 华为技术有限公司 | Image predictive coding method and image encoder |
CN105491376B (en) * | 2014-10-06 | 2020-01-07 | 同济大学 | Image coding and decoding method and device |
CN106658019B (en) | 2015-10-31 | 2019-11-12 | 华为技术有限公司 | The method and apparatus of reference frame encoding and decoding |
CN107566848B (en) | 2016-06-30 | 2020-04-14 | 华为技术有限公司 | Method and device for coding and decoding |
CN106878728B (en) * | 2017-01-19 | 2019-06-07 | 西安万像电子科技有限公司 | The compression method and device of image |
WO2020007187A1 (en) * | 2018-07-02 | 2020-01-09 | 华为技术有限公司 | Image block decoding method and device |
CN116456082A (en) | 2018-12-25 | 2023-07-18 | Oppo广东移动通信有限公司 | Coding prediction method, device and computer storage medium |
CN110267036B (en) * | 2019-03-11 | 2020-07-10 | 杭州海康威视数字技术股份有限公司 | Filtering method and device |
CN118314413B (en) * | 2024-06-11 | 2024-09-10 | 北京蓝耘科技股份有限公司 | GPU output data interactive transmission method, system and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1535027A (en) * | 2004-01-16 | 2004-10-06 | 北京工业大学 | Inframe prediction method used for video frequency coding |
CN1610410A (en) * | 2003-10-24 | 2005-04-27 | 三星电子株式会社 | Intra prediction method and apparatus |
CN1659580A (en) * | 2002-06-11 | 2005-08-24 | 诺基亚有限公司 | Spatial prediction based intra coding |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100612849B1 (en) * | 2003-07-18 | 2006-08-14 | 삼성전자주식회사 | Apparatus and method for encoding and decoding image |
KR101403338B1 (en) * | 2007-03-23 | 2014-06-09 | 삼성전자주식회사 | Method and apparatus for image encoding, decoding |
-
2011
- 2011-01-20 CN CN201110022734.6A patent/CN102611885B/en active Active
-
2012
- 2012-01-19 WO PCT/CN2012/070606 patent/WO2012097746A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1659580A (en) * | 2002-06-11 | 2005-08-24 | 诺基亚有限公司 | Spatial prediction based intra coding |
CN1610410A (en) * | 2003-10-24 | 2005-04-27 | 三星电子株式会社 | Intra prediction method and apparatus |
CN1535027A (en) * | 2004-01-16 | 2004-10-06 | 北京工业大学 | Inframe prediction method used for video frequency coding |
Non-Patent Citations (2)
Title |
---|
"New intra prediction using the correlation between pixels and lines.", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VT)., 15 April 2010 (2010-04-15) * |
"Unification of the Directional Intra Prediction Methods in TMuC.", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VT)., 22 July 2010 (2010-07-22) * |
Also Published As
Publication number | Publication date |
---|---|
CN102611885B (en) | 2014-04-30 |
CN102611885A (en) | 2012-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2012097746A1 (en) | Coding-decoding method and device | |
US20210067777A1 (en) | Encoding and decoding methods and apparatuses with multiple image block division manners | |
RU2769944C1 (en) | Method and apparatus for configuring conversion for video compression | |
WO2020253831A1 (en) | Method and device for coding and decoding, and storage medium | |
US10123014B2 (en) | Method and apparatus for coding/decoding image | |
US10116942B2 (en) | Method and apparatus for decoding a video using an intra prediction | |
US9596464B2 (en) | Method and device for encoding and decoding by using parallel intraprediction by a coding unit | |
JP5379020B2 (en) | Intra-prediction encoding and decoding method and apparatus | |
TWI526052B (en) | Apparatus for video decoding | |
JP2014500692A (en) | Intra prediction mode encoding method and apparatus for video prediction unit, and intra prediction mode decoding method and apparatus for video prediction unit | |
US9877030B2 (en) | Apparatus and method for encoding/decoding additional intra-information | |
WO2012095037A1 (en) | Encoding and decoding method and device | |
US20150312590A1 (en) | Methods for encoding and decoding a picture and corresponding devices | |
JP2012147291A (en) | Image coding apparatus, image coding method, program, image decoding apparatus, image decoding method, and program | |
JP6200335B2 (en) | Movie encoding apparatus and movie encoding program | |
JP2015223002A (en) | Image decoding method | |
KR20200004348A (en) | Method and apparatus for processing video signal through target region correction | |
CN102611882B (en) | Encoding and decoding method and device | |
RU2795258C1 (en) | Method and device for configuration of conversion for video compression | |
KR101525325B1 (en) | Intra prediction mode determination method and apparatus | |
JP5690898B2 (en) | Image decoding method | |
JP5422681B2 (en) | Image decoding method | |
RU2022119482A (en) | METHOD AND DEVICE FOR EFFECTIVE ENCODING OF RESIDUAL BLOCKS | |
CN112887734A (en) | Method and device for converting in video image coding and decoding | |
JP2016129391A (en) | Image decoding method |
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: 12736411 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: 12736411 Country of ref document: EP Kind code of ref document: A1 |