WO2013004165A1 - 一种解码过程中块索引信息的获取方法及装置 - Google Patents

一种解码过程中块索引信息的获取方法及装置 Download PDF

Info

Publication number
WO2013004165A1
WO2013004165A1 PCT/CN2012/078062 CN2012078062W WO2013004165A1 WO 2013004165 A1 WO2013004165 A1 WO 2013004165A1 CN 2012078062 W CN2012078062 W CN 2012078062W WO 2013004165 A1 WO2013004165 A1 WO 2013004165A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
index information
obtaining
coding unit
index
Prior art date
Application number
PCT/CN2012/078062
Other languages
English (en)
French (fr)
Inventor
曹潇然
赖昌材
何芸
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013004165A1 publication Critical patent/WO2013004165A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/96Tree coding, e.g. quad-tree coding

Definitions

  • the present invention relates to the field of video codec technology, and more particularly to a method and apparatus for acquiring block index information in a decoding process. Background technique
  • Video coding compression utilizes the correlation between airspace, time domain and codewords to remove redundancy as much as possible. At present, it is more common to use a block-based hybrid video coding framework to implement video coding compression through steps of prediction, transform, quantization, entropy coding, and the like.
  • the above coding technique can achieve higher compression efficiency.
  • the demand for high-definition video transmission and storage will grow explosively in the future, and the development of existing information network infrastructure is relatively lagging. Therefore, the next-generation video coding standard will focus on the bandwidth demand growth of high-definition video and the information network infrastructure. The contradiction between development.
  • Intra prediction coding techniques use predictive coding between neighboring blocks for predictive coding. For example, in intra prediction coding in H.264, the pixel value of the coded neighboring block is used to predictively encode the current block, and the prediction mode and the corresponding prediction residual need to be written into the code stream. The mode and prediction residual information are decoded.
  • HEVC High Efficiency Video Coding expands the block structure of H.264 to provide 16x16, 8x8, 4x4, 32x32, 64x64, etc., and can be further divided into multiples under each size division. Smaller division of blocks.
  • the HEVC adopts a tree structure on the coding structure, including a CU (Coding Unit), a PU (Predictive Unit), and a TU (Transform Unit).
  • the CU includes multiple PUs, and each CU can continue to be split.
  • the PU includes a prediction portion and a transform portion, and the transform portion is referred to as a transform unit.
  • the transform unit in the PU may continue to be split into a plurality of transform units of smaller size, and the split identifier is used to identify how the transform unit performs splitting.
  • the above structure is called a tree structure, and a CU or PU may be referred to as a tree block.
  • the difference is that more directions are used than H.264, for the current pixel value to be predicted, according to the prediction direction Differently, the calculation of the sub-pixel precision is performed in the reference pixel, thereby obtaining the predicted value of the current pixel.
  • HEVC further divides each PU into several minimum units, each unit is a subunit of a minimum unit, and performs index numbering in raster scan order for each smallest unit, either by address or The form of the index is named, and the index is a specific value indicating the address of the unit or block.
  • JCTVC-E278 proposed by JCTVC (Joint Collaborative Team on Video Coding) proposed that after using non-block intra prediction, some of the largest block CUs in the largest block CU may be divided into raster scans.
  • Non-block PU of sequential codec. Inside the non-square PU, you can continue to divide into smaller non-blocks for prediction and transform coding.
  • Non-block PU when the neighboring block (or PU) is non-square, the index and starting position of the neighboring block obtained according to the existing method are in the unit of the square unit and the scanning order, so the obtained square index can not be used directly. Accurately get the adjacent non-block specific information.
  • the embodiment of the present invention provides a method and a device for acquiring block index information in a decoding process, which can accurately obtain block index information in a non-block division manner and provide the same to the encoding or decoding process.
  • An aspect of the present invention provides a method for obtaining block index information in a decoding process, where the method includes:
  • the non-block second index information is obtained according to the pixel coordinates of the upper left corner of the adjacent block obtained by the first index information and the division direction of the adjacent block.
  • An aspect of the present invention provides an apparatus for acquiring block index information in a decoding process, including: an obtaining module, configured to acquire, in a first block of a coding unit of a neighboring block, a neighboring block of a current block Index information;
  • An analysis module configured to obtain, according to the first index information, a division manner of the coding unit and a pixel coordinate of an upper left corner of the adjacent block;
  • a processing module configured to: when the partitioning mode is non-blocking, obtain the non-squared pixel coordinates of the upper left corner of the neighboring block and the dividing direction of the neighboring block obtained according to the first index information Second index information.
  • the first index information of the neighboring block of the current block in the coding unit where the neighboring block is located is obtained by the foregoing technical solution provided by the embodiment of the present invention, and the manner of dividing according to the first index information is obtained.
  • the non-block second index information is obtained according to the pixel coordinates of the upper left corner of the neighboring block and the partitioning direction of the neighboring block obtained according to the first index information.
  • the present invention implements When the adjacent coding unit is non-block division, the index of the obtained block form can be converted into an index indicating the non-block according to the non-block division form, thereby accurately obtaining the non-block division index information in the adjacent coding unit. And obtaining information required for other encoding or decoding corresponding to non-blocks according to the index information.
  • FIG. 1 is a flowchart of a method for acquiring block index information in a decoding process according to an embodiment of the present invention
  • FIG. 2 is an application scenario diagram of an embodiment of the present invention
  • FIG. 3 is an application scenario diagram of an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a method for acquiring a block index information in a decoding process according to an embodiment of the present invention
  • some small block CUs in the largest block CU may be divided into non-block PUs coded in raster scan order, when adjacent blocks (or PUs) are non-
  • the index and starting position of the neighboring block obtained according to the existing method are in the order of the block unit and the scanning order, and the problem of non-block index information of the adjacent block cannot be accurately obtained, and a block index in the decoding process is proposed.
  • Method and device for acquiring information is proposed.
  • the method for obtaining block index information in a decoding process obtains first index information in a coding unit where the neighboring block is located in the neighboring block by using a neighboring block of the current block;
  • the division mode is non-block division
  • the pixel coordinates of the upper left corner of the adjacent block obtained by the first index information and the division direction of the adjacent block are obtained, and the second index information of the non-block is obtained.
  • the obtained party when the adjacent coding unit is non-block division, the obtained party can obtain the non-block division index information in the adjacent coding unit.
  • the "block” involved in the embodiment of the present invention may also be described as “dividing”, and may specifically be a CU, a PU, a ⁇ ⁇ , a prediction block, a minimum division unit, or any of the tree blocks.
  • dividing may specifically be a CU, a PU, a ⁇ ⁇ , a prediction block, a minimum division unit, or any of the tree blocks.
  • the embodiment of the present invention provides a method for acquiring block index information in a decoding process, and the technical solution includes:
  • the dividing manner is non-block division
  • the neighboring according to the first index information is obtained.
  • the pixel coordinates of the upper left corner of the block and the dividing direction of the adjacent block obtain the second index information of the non-square.
  • the foregoing step 101 may include:
  • the first index information is index information calculated in units of blocks and scan order calculated according to the block division manner.
  • the process of obtaining the location information of the current block in the current coding unit by using an index of the current block may include:
  • the raster scanning method as shown in FIG. 2 and the Z-shaped scanning method as shown in FIG. 3 can be used to obtain the position of the current block in the currently located coding unit;
  • HEVC in the process of codec and decoding, HEVC further divides each PU into several minimum units, each unit is a subunit of a minimum unit, and performs raster scan order for each smallest unit.
  • the index number is indexed in the form of an address or an index. Therefore, the raster scan method can be used to obtain the position of the largest CU where the current block is located;
  • the Z-shaped scan order is used for encoding and decoding to obtain the specific position of the current block in the largest CU, thereby obtaining the position information of the current block in the current CU.
  • the location information may be that the current block belongs to the first row and the column of the coding unit, or the location information may be coordinate information of a block or the like.
  • the foregoing steps: obtaining, according to location information of the current block in the current coding unit, index information of a neighboring block of the current block in a coding unit where the neighboring block is located, Can include:
  • the adjacent block is the left adjacent block of the current block, or the upper adjacent block, the upper left adjacent block, the lower left and the upper right adjacent block, etc., and the adjacent block is obtained on the left side and the upper side of the current block. , top left, Left lower and upper right positions, etc.
  • pixel coordinates of an upper left corner of the neighboring block wherein the pixel coordinates include one or two of horizontal and vertical coordinates;
  • the pixel coordinates of the upper left corner of the adjacent block may be calculated.
  • the first index information of the neighboring block is obtained by using the pixel coordinates and the scanning order shown in FIG. 2 and FIG. 3 .
  • the adjacent blocks involved may include: a left adjacent block, an upper adjacent block, an upper left adjacent block, a lower left adjacent block, and an upper right adjacent block, etc., in the order of encoding or decoding.
  • the CU of the number 1 1 is taken as an example, the left adjacent CU is 10, the lower left adjacent CU is 12, the upper adjacent is 8 , the upper left adjacent is 7, and the upper right adjacent is 8 unlabeled CU on the right, adjacent CUs in other directions are not decoded, so they are generally not used by the current CU.
  • the index information of the neighboring block and the current block in the same coding unit is obtained; otherwise, the neighboring block is obtained.
  • the index information in the adjacent coding unit of the current coding unit, and the index value at this time is an index in units of blocks divided by the block division manner, and may also be referred to as first index information in the embodiment of the present invention.
  • the foregoing step 102 may include:
  • the process of determining the division mode information may include:
  • the coding unit in which the neighboring block is located may be divided into several squares, or may be divided into several non-squares.
  • the coordinate information (x, y) of the pixel in the upper left corner of the neighboring block is obtained according to the first index information, specifically by the following The formula is obtained:
  • X lnverseRasterScan( puldx, SuSize, SuSize, LcuSize, 0 )
  • y lnverseRasterScan( puldx, SuSize, SuSize, LcuSize, 1 ); where puldx is the index, SuSize is the block size, and LcuSize is the maximum CU of the current block. size.
  • the dividing direction of the neighboring block is obtained according to the identifier in the code stream, where the dividing direction includes a horizontal mode division and a vertical mode division, wherein the horizontal mode division refers to the width of the block being greater than the height, and the vertical mode refers to the width of the block being less than the height.
  • an application scenario diagram including a vertical division manner and a horizontal division manner under a non-block division is included.
  • the step 103 of obtaining the non-block second index information may include:
  • the second index information is used to indicate that the second index information is obtained according to the pixel coordinates of the upper left corner, the division manner of the coding unit in which the adjacent block is located, the division direction, and the size specification information of the division. a block of pixel coordinates of the upper left corner, or position information of the block containing the pixel coordinates of the upper left corner in a coding unit in which it is located.
  • the location information of the block in the coding unit in which the block is located may be that the block belongs to the first block in the coding unit in which the block is located.
  • information about neighboring coding units and neighboring blocks such as availability, mode information, reference pixels, prediction direction, and the like, are needed, and thus, the embodiment of the present invention
  • the method may further include:
  • Video encoding or decoding is performed using the determined information.
  • the method for obtaining block index information in a coding unit can convert the obtained block form index into a non-block division form according to a non-block division form when the adjacent coding unit is non-block division.
  • the non-block index is identified, thereby accurately obtaining the non-square partition index in the adjacent coding unit, improving the availability of the obtained neighboring block, the accuracy of the useful information such as the reference pixel and the prediction direction, and further improving the coding and decoding process.
  • the accuracy As shown in FIG. 7 , based on the foregoing method embodiment shown in FIG. 1 , an embodiment of the present invention provides a device for acquiring block index information in a decoding process, including:
  • the obtaining module 71 is configured to acquire first index information of a neighboring block of the current block in a coding unit where the neighboring block is located;
  • the analyzing module 72 is configured to obtain, according to the first index information, a division manner of the coding unit and a pixel coordinate of an upper left corner of the adjacent block;
  • the processing module 73 is configured to: when the dividing mode is non-blocking, obtain the non-square according to the pixel coordinates of the upper left corner of the neighboring block and the dividing direction of the adjacent block obtained according to the first index information. Second index information.
  • the obtaining module 71 may further include: a location obtaining unit 71 1 , configured to obtain, by using an index of a current block, location information of the current block in a current coding unit;
  • the index obtaining unit 712 is configured to obtain, according to location information of the current block in the current coding unit, first index information of a neighboring block of the current block in a coding unit where the neighboring block is located;
  • the first index information is index information calculated in units of blocks and in a scan order, which are calculated according to the block division manner.
  • the process of determining the location information by the location acquiring unit 71 1 is the same as the method described in the embodiment of FIG. 1.
  • a raster scanning method as shown in FIG. 2 is used, and
  • the Z-shaped scanning method shown in 3 obtains the position information of the current block in the currently located coding unit.
  • the index obtaining unit 712 may be specifically configured to: acquire a positional relationship between the neighboring block and a current block;
  • the manner in which the index obtaining unit determines the positional relationship, the pixel coordinates, and the first index information is the same as that in the method embodiment of FIG. 1.
  • the index obtaining unit determines the positional relationship, the pixel coordinates, and the first index information is the same as that in the method embodiment of FIG. 1.
  • the related description in the embodiment of FIG. 1 refer to the related description in the embodiment of FIG.
  • the analyzing module 72 may be specifically configured to:
  • the processing module 73 may be specifically configured to:
  • the dividing direction includes a horizontal mode partitioning and a vertical mode partitioning;
  • the horizontal mode dividing finger block has a width greater than a height, and the vertical mode refers to a block width Less than the height;
  • the second index information is used to indicate, according to the pixel coordinate information of the upper left corner, the division manner of the coding unit in which the adjacent block is located, the division direction, and the size specification information of the division. a block containing the pixel coordinates of the upper left corner, or a coding unit in which the block is located Location information in .
  • the location information of the block in the coding unit in which the block is located may be that the block belongs to the first block in the coding unit in which the block is located; the pixel coordinates include one or two of horizontal and vertical coordinates. One.
  • the processing module 73 obtains the second index information according to the first index information, and may refer to the related description in the method embodiment of FIG. 1 .
  • the apparatus according to the embodiment of the present invention is obtained based on the method embodiment shown in FIG. 1 , and includes the same or corresponding technical features of the method embodiment shown in FIG. 1 , and therefore, implemented in the present invention.
  • the repetitive technical solution is not elaborated in the example. For details, please refer to the related description of the method embodiment of FIG. 1 .
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • An embodiment of the present invention provides a method and a device for acquiring block index information in a decoding process, which can convert an obtained block form index according to a non-block division form into a non-block division form when adjacent coding units are non-block division.
  • the identification of the non-block index improves the accuracy of obtaining the non-square partition index information in the adjacent coding unit, thereby improving the accuracy in the video encoding and decoding process.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明公开了一种解码过程中块索引信息的获取方法及装置,技术方案中该方法包括:获取当前块的相邻块在所述相邻块所处编码单元中的第一索引信上角像素坐标;当所述划分方式为非方块划分时,根据所述第一索引信息得到的所述相邻块左上角像素的坐标及所述相邻块的划分方向,得到所述非方块的第二索引信息。本发明技术方案的实施,能够准确的获得非方块划分方式下的块索引信息,在提供给编码或解码过程中使用时,进一步提高了编解码的精确度。

Description

一种解码过程中块索引信息的获取方法及装置
技术领域
本发明涉及视频编解码技术领域, 更具体的说, 涉及一种解码过程中块索 引信息的获取方法及装置。 背景技术
视频编码压缩是利用空域、 时域和码字之间的相关性, 尽可能去除冗余。 目前比较常用的是采用基于块的混合视频编码框架, 通过预测、 变换、 量化、 熵编码等步骤来实现视频编码压缩。
基于块的混合视频编码框架下,主要有两类编码技术: 一类是利用空域相关 性的帧内编码( Intra coding )技术; 另一类利用时域相关性的帧间编码 (Inter coding )技术。
由于视频本身具有很强的空域时域相关性, 利用上述编码技术可以达到较 高的压缩效率。 但未来人们对高清视频的传送和存储的需求爆发式的增长, 现 有信息网络基础设施的发展却相对滞后, 因此下一代视频编码标准将重点解决 高清视频的带宽需求增长和信息网络基础设施的发展之间的矛盾。
帧内预测编码技术, 是利用相邻块之间的相关性进行预测编码。 如 H.264中 帧内预测编码, 是利用已编码的相邻块的像素值, 对当前块进行预测编码, 预 测模式和相应的预测残差需要写入码流, 在解码端, 需要根据预测模式和预测 残差信息进行解码。
HEVC ( High Efficiency Video Coding, 高效率视频编码 )对 H.264的方块 结构进行了扩展, 提供了 16x16, 8x8、 4x4, 32x32、 64x64等划分, 在每个尺 寸划分下, 进一步可划分为多个更小的方块划分。 HEVC在编码结构上采用树状 结构, 包括 CU ( Coding Unit, 编码单元), PU ( Prediction Unit, 预测单元) 和 TU ( Transform Unit, 变换单元), CU含有多个 PU, 每个 CU可以继续分割为 更小的 CU, 而 PU包括预测部分和变换部分, 变换部分称为变换单元。 PU中的 变换单元, 可以继续分割为多个更小尺寸的变换单元, 通过分割标识来标识变 换单元如何进行分割。 以上结构称为树形结构, 其中的 CU或 PU可以称为树块。 在预测部分, 如同 H.264中的帧内预测一样, 采用基于方块的多方向帧内预测, 区别是比 H.264采用了更多的方向, 对当前待预测的像素值, 根据预测方向的不 同, 在参考像素中的进行分像素精度的计算, 从而得到当前像素的预测值。
在编码和解码过程中, HEVC将每个 PU可进一步划分为若干个最小单元, 每个单元是一个最小单位的子块, 并为每个最小单元进行按光栅扫描顺序进行 索引编号, 以地址或索引的形式进行命名, 所述索引是一个具体的数值, 表示 所述单元或块的地址。
JCTVC( Joint Collaborative Team on Video Coding,视频编码联合工作组) 的提案 JCTVC-E278提出使用非方块的帧内预测后, 最大的方块 CU中的某些小 的方块 CU, 可能会被划分为按光栅扫描顺序编解码的非方块 PU。 非方块的 PU 内部, 可以继续划分为更小的非方块, 进行预测和变换编码。
在实现本发明过程中, 发明人发现现有技术中至少存在如下问题: 在使用非方块的帧内预测后,最大方块 CU中的某些小的方块 CU,可能划分 为按光栅扫描顺序编解码的非方块 PU, 当相邻块(或 PU )是非方块时, 根据现 有方法获取的相邻块的索引和起点位置, 是以方块单位和扫描顺序的索引, 因 此直接使用所得的方块索引, 无法准确的得到相邻的非方块的具体信息。 发明内容
本发明的实施例提供了一种解码过程中块索引信息的获取方法及装置, 能 够准确的得到非方块划分方式下的块索引信息, 提供给编码或解码过程中使用。
本发明实施例的技术方案包括:
本发明一方面提供了一种解码过程中块索引信息的获取方法, 所述方法包 括:
获取当前块的相邻块在所述相邻块所处编码单元中的第一索引信息; 上角像素坐标;
当所述划分方式为非方块划分时, 根据所述第一索引信息得到的所述相邻 块左上角像素坐标及所述相邻块的划分方向, 得到所述非方块的第二索引信息。
本发明另一方面提供了一种解码过程中块索引信息的获取装置, 包括: 获取模块, 用于获取当前块的相邻块在所述相邻块所处编码单元中的第一 索引信息;
分析模块, 用于根据所述第一索引信息获得所述编码单元的划分方式以及 所述相邻块的左上角像素坐标;
处理模块, 用于当所述划分方式为非方块划分时, 根据所述第一索引信息 得到的所述相邻块左上角像素坐标及所述相邻块的划分方向, 得到所述非方块 的第二索引信息。
由上述本发明的实施例提供的技术方案可以看出, 通过获取当前块的相邻 块在所述相邻块所处编码单元中的第一索引信息, 以及根据所述第一索引信息 划分方式为非方块划分时, 根据所述第一索引信息获得的所述相邻块左上角像 素坐标及所述相邻块的划分方向, 获得所述非方块的第二索引信息; 本发明实 现了在相邻编码单元为非方块划分时, 能将得到的方块形式的索引, 根据非方 块的划分形式, 转化为标识非方块的索引, 从而准确的得到相邻编码单元中的 非方块划分的索引信息, 并根据索引信息获得对应非方块的其它编码或解码中 需要的信息。 附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所需 要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的 一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例一种解码过程中块索引信息的获取方法的流程图; 图 2为本发明实施例的应用场景图;
图 3为本发明实施例的应用场景图;
图 4为本发明实施例的应用场景图;
图 5为本发明实施例中含有非方块划分方式示意图; 图 7为本发明实施例一种解码过程中块索引信息的获取装置结构示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
本发明实施例针对在使用非方块的帧内预测后, 最大的方块 CU中某些小的 方块 CU, 可能被划分为按光栅扫描顺序编解码的非方块 PU, 当相邻块(或 PU ) 是非方块时, 根据现有方法获取的相邻块的索引和起点位置是以方块单位和扫 描顺序的索引, 无法准确的得到相邻块的非方块索引信息的问题, 提出一种解 码过程中块索引信息的获取方法及装置。
采用本发明实施例提出的一种解码过程中块索引信息的获取方法, 通过获 取当前块的相邻块在所述相邻块所处编码单元中的第一索引信息; 以及, 根据 标; 能够在划分方式为非方块划分时, 根据所述第一索引信息得到的相邻块左 上角像素坐标及相邻块的划分方向, 获得非方块的第二索引信息。
本发明技术方案的实现, 在相邻编码单元为非方块划分时, 能将获得的方 得到相邻编码单元中的非方块划分的索引信息。
下面结合附图对本发明实施例的技术方案进行详细说明。
需要说明的是, 本发明实施例中所涉及的 "块" , 还可以描述为 "划分" , 具体可以是一个 CU、 一个 PU、 一个 τυ、 一个预测块、 最小划分单元或者树块 中的任意一个。
如图 1所示, 本发明实施例提出一种解码过程中块索引信息的获取方法, 技 术方案包括:
101、 获取当前块的相邻块在相邻块所处编码单元中的第一索引信息; 左上角像素坐标;
103、 在所述划分方式为非方块划分时, 根据所述第一索引信息得到的相邻 块左上角像素坐标及相邻块的划分方向, 得到非方块的第二索引信息。
在本发明的一个可选实施例中, 上述步骤 101可以包括:
通过当前块的索引得到当前块在当前编码单元中的位置信息;
根据所述当前块在当前编码单元中的位置信息, 获得当前块的相邻块在所 述相邻块所处编码单元中的第一索引信息。
需要说明的是, 在本发明实施例中第一索引信息是按照方块划分方式进行 计算得到的以方块划分为单位和扫描顺序的索引信息。
进一步的可选的, 通过当前块的索引得到所述当前块在当前编码单元中的 位置信息的过程可以包括:
根据当前块的索引, 可以采用如图 2所示的光栅扫描方法, 以及如图 3所示 的 Z字型扫描方法, 获得当前块在当前所在编码单元中的位置;
如图 2所示, 在编解码和解码过程中, HEVC将每个 PU可进一步划分为若 干个最小单元, 每个单元是一个最小单位的子块, 并为每个最小单元进行按光 栅扫描顺序进行索引编号, 以地址或索引的形式进行命名, 因此, 采用光栅扫 描方法可以获得当前块所处最大 CU的位置;
如图 3所示, 对于 CU内部的其它 CU或 PU, 采用 Z字形扫描顺序进行编码和 解码,来获得当前块在最大 CU中的具体位置,从而获得当前块在当前 CU中的位 置信息。
示例性的, 所述位置信息可以为所述当前块属于所述编码单元的第几行及 第几列, 或者, 所述位置信息还可以是以块为单位的坐标信息等。
在本发明的一个可选实施例中, 上述步骤: 根据所述当前块在当前编码单 元中的位置信息, 获得当前块的相邻块在所述相邻块所处编码单元中的索引信 息, 可以包括:
获取所述相邻块与当前块的位置关系;
进一步的, 具体是根据输入为相邻块是当前块的左相邻块、 或者上相邻块、 左上相邻块、 左下及右上相邻块等, 得到相邻块在当前块的左边、 上边、 左上、 左下及右上位置等。
获取所述相邻块的左上角像素坐标; 其中, 所述像素坐标包括横向及纵向 坐标中的其中一个或两个;
进一步的, 具体是根据当前块的像素坐标以及相邻块的大小和所述位置关 系, 可以计算得到所述相邻块的左上角像素坐标。
进一步的, 具体通过所述像素坐标, 结合图 2及图 3所示的扫描顺序, 来得 到所述相邻块的所述第一索引信息。
在本发明实施例中, 所涉及的相邻块按照编码或解码的先后顺序, 可以包 括: 左相邻块, 上相邻块, 左上相邻块, 左下相邻块以及右上相邻块等。
示例性的, 如图 4所示, 以编号 1 1的 CU为例, 其左相邻 CU为 10, 左下相邻 CU为 12, 上相邻为 8, 左上相邻为 7, 右上相邻为 8右边未标号的 CU, 其它方向 的相邻 CU因为并未解码, 所以, 一般不会被当前 CU使用到。
需要说明的是, 若当前块与其相邻块处在同一个编码单元中时, 则会得到 该相邻块与当前块在同一个编码单元中的索引信息; 否则, 会获得该相邻块在 当前编码单元的相邻编码单元中的索引信息, 此时的索引值为按照方块划分方 式进行计算得到的以方块划分为单位的索引, 本发明实施例中也可称为第一索 引信息。
在本发明的一个可选实施例中, 上述步骤 102可以包括:
通过所述第一索引信息, 查找所述相邻块的对应编码单元的索引;
进一步可选的, 确定所述划分方式信息的过程可以包括:
相邻块所处的编码单元可以划分为若干个方块, 也可以划分为若干个非方 到相邻块的对应编码单元的索引, 并从而获得该编码单元的划分信息, 其中, 所述划分信息包括方块划分以及非方块划分。
在本发明的一个可选实施例中, 在所述划分信息为非方块划分时, 根据所 述第一索引信息得到所述相邻块左上角像素的坐标信息(x,y) , 具体通过如下 公式获得:
X = lnverseRasterScan( puldx, SuSize, SuSize, LcuSize, 0 ) y = lnverseRasterScan( puldx, SuSize, SuSize, LcuSize, 1 ); 其中, puldx为索引, SuSize为块大小, LcuSize为当前块所处的最大 CU的大 小。 计算公式为
J(a%(d/b))*b ; e==0
lnverseRasterScan(a, b, c, d, e)= i(a/(d/b))*ce==1
其中, a,b,c,d,e的含义分别与上述公式中 puldx, SuSize, SuSize, LcuSize
1分别对应。
根据码流中的标识, 获得所述相邻块的划分方向, 所述划分方向包括水平 方式划分及垂直方式划分, 其中水平方式划分指块的宽度大于高度, 垂直方式 指块的宽度小于高度。
示例性的, 图 5和图 6所示, 包含了非方块划分下的既含有垂直划分方式, 也含有水平划分方式的应用场景图。
在本发明的一个可选实施例中,上述步骤 103得到所述非方块的第二索引信 息的过程, 可以包括:
根据所述左上角像素坐标, 所述相邻块所处编码单元的划分方式, 划分方 向以及所述划分的尺寸规格信息, 得到所述第二索引信息, 所述第二索引信息 用于指示含有所述左上角像素坐标的块, 或者所述含有所述左上角像素坐标的 块在其所处的编码单元中的位置信息。
需要说明的是, 所述块在其所处的编码单元中的位置信息可以为所述块在 其所处的编码单元中属于第几个块。 在本发明的一个可选实施例中, 在编解码过程中, 需要利用到相邻编码单 元以及相邻块的信息, 如可用性、 模式信息、 参考像素以及预测方向等, 因此, 本发明实施例所述方法还可以包括:
根据所述第二索引信息, 确定所述相邻块的所需模式、 位置、 可用性以及 预测方向中任意一种或多种信息;
采用确定的所述信息进行视频编码或解码。
综上所述, 本发明实施例一种编码单元中块索引信息的获取方法, 在相邻 编码单元为非方块划分时, 能将获得的方块形式的索引, 根据非方块的划分形 式, 转化为标识非方块的索引, 从而准确的得到相邻编码单元中的非方块划分 索引, 提高了获得的相邻块的可用性, 参考像素以及预测方向等有用信息的准 确性, 也进一步提高了编解码过程的准确性。 如图 7所示, 基于上述图 1所示的方法实施例, 本发明实施例提供了一种解 码过程中块索引信息的获取装置, 包括:
获取模块 71 , 用于获取当前块的相邻块在所述相邻块所处编码单元中的第 一索引信息;
分析模块 72, 用于根据所述第一索引信息获得编码单元的划分方式以及相 邻块左上角像素坐标;
处理模块 73, 用于在所述划分方式为非方块划分时, 根据所述第一索引信 息得到的所述相邻块左上角像素坐标及所述相邻块的划分方向, 得到所述非方 块的第二索引信息。
在本发明的一个可选实施例中, 所述获取模块 71可以进一步包括: 位置获取单元 71 1 ,用于通过当前块的索引得到所述当前块在当前编码单元 中的位置信息;
索引获取单元 712, 用于根据所述当前块在当前编码单元中的位置信息, 获 得当前块的相邻块在所述相邻块所处编码单元中的第一索引信息; 在本发明实施例中第一索引信息是按照方块划分方式进行计算得到的以方 块划分为单位和扫描顺序的索引信息。
进一步的可选的, 位置获取单元 71 1确定所述位置信息的过程与图 1实施例 所述的方法相同, 根据当前块的索引值, 采用如图 2所示的光栅扫描方法, 以及 如图 3所示的 Z字型扫描方法, 获得当前块在当前所在编码单元中的位置信息。
在本发明的一个可选实施例中, 所述索引获取单元 712可以具体用于: 获取所述相邻块与当前块的位置关系;
获取所述相邻块得左上角像素坐标;
本发明实施例中, 所述索引获取单元确定所述位置关系、 像素坐标以及第 一索引信息的方式, 与图 1方法实施例中的方式相同, 具体请参见图 1实施例中 的相关描述。
在本发明的一个可选实施例中, 所述分析模块 72可以具体用于:
通过所述第一索引信息, 查找所述相邻块的对应编码单元的索引;
进一步可选的, 获得所述划分方式信息的过程与图 1方法实施例中的方式相 同, 具体请参见上述图 1所示的方法实施例中的相关描述。
在本发明的一个可选实施例中, 所述处理模块 73可以具体用于:
根据码流中的标识, 获得所述相邻块的划分方向, 所述划分方向包括水平 方式划分及垂直方式划分; 所述水平方式划分指块的宽度大于高度, 所述垂直 方式指块的宽度小于高度;
根据所述左上角像素坐标信息, 所述相邻块所处编码单元的划分方式, 划 分方向以及所述划分的尺寸规格信息, 得到所述第二索引信息, 所述第二索引 信息用于指示含有所述左上角像素坐标的块, 或者所述块在其所处的编码单元 中的位置信息。
其中, 所述块在其所处的编码单元中的位置信息可以为所述块在其所处的 编码单元中属于第几个块; 所述像素坐标包括横向及纵向坐标中的其中一个或 两个。
在本发明实施例中所述处理模块 73根据所述第一索引信息获得第二索引信 息的过程, 可以具体参见图 1方法实施例中的相关描述。
需要说明的是, 本发明实施例所述装置是基于如图 1所示的方法实施例获得 的, 包含了如图 1所示的方法实施例相同或相应的技术特征, 因此, 在本发明实 施例中不再对重复性的技术方案进行详细阐述, 具体请参见图 1方法实施例的相 关描述。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于一计算 机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施例的流程。 其中, 所述的存储介质可为磁碟、光盘、 只读存储记忆体( Read-Only Memory, ROM )或随机存储记忆体( Random Access Memory, RAM )等。
采用本发明实施例提供一种解码过程中块索引信息的获取方法及装置 , 能 够在相邻编码单元为非方块划分时, 能将获得的方块形式的索引, 根据非方块 的划分形式, 转化为标识非方块的索引, 提高了获取相邻编码单元中的非方块 划分索引信息的准确度, 从而提高视频编解码过程中的精确度。
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应该以权利要求的保护范围为准。

Claims

权 利 要 求 书
1、 一种解码过程中块索引信息的获取方法, 其特征在于, 包括:
获取当前块的相邻块在所述相邻块所处编码单元中的第一索引信息; 上角像素坐标;
当所述划分方式为非方块划分时, 根据所述第一索引信息得到的所述相邻 块左上角像素坐标及所述相邻块的划分方向, 得到所述非方块的第二索引信息。
2、 根据权利要求 1所示的获取方法, 其特征在于, 获取当前块的相邻块在 所述相邻块所处编码单元中的第一索引信息, 包括:
通过当前块的索引得到所述当前块在当前编码单元中的位置信息; 根据所述当前块在当前编码单元中的位置信息, 获得当前块的相邻块在所 述相邻块所处编码单元中的第一索引信息。
3、 根据权利要求 2所示的获取方法, 其特征在于, 所述获得当前块的相邻 块在所述相邻块所处编码单元中的第一索引信息, 包括:
获取所述相邻块与当前块的位置关系;
获取所述相邻块的左上角像素坐标; 息, 所述第一索引信息是按照方块划分方式进行计算得到的以方块划分为单位 和扫描顺序的索引信息。
4、 根据权利要求 1所述的获取方法, 其特征在于, 根据所述第一索引信息 获得所述编码单元的划分方式, 包括:
通过所述第一索引信息, 查找所述相邻块的对应编码单元的索引;
5、 根据权利要求 1所述的获取方法, 其特征在于, 根据所述第一索引信息 得到所述相邻块的划分方向, 包括:
根据码流中的标识, 获得所述相邻块的划分方向, 所述划分方向包括水平 方式划分及垂直方式划分;
所述水平方式划分指块的宽度大于高度, 所述垂直方式指块的宽度小于高 度。
6、 根据权利要求 5所述的获取方法, 其特征在于, 所述得到所述非方块的 第二索引信息, 包括:
根据所述左上角像素坐标, 所述相邻块所处编码单元的划分方式, 划分方 向以及所述划分的尺寸规格信息, 得到所述第二索引信息, 所述第二索引信息 用于指示含有所述左上角像素坐标的块, 或者所述块在其所处的编码单元中的 位置信息。
7、 根据权利要求 1至 6中任一所述的获取方法, 其特征在于, 所述方法还 包括:
根据所述第二索引信息, 获得所述相邻块的所需模式、 位置、 可用性以及 预测方向中任意一种或多种信息;
采用获得的所述信息进行视频编码或解码。
8、 一种解码过程中块索引信息的获取装置, 其特征在于, 包括: 获取模块, 用于获取当前块的相邻块在所述相邻块所处编码单元中的第一 索引信息;
分析模块, 用于根据所述第一索引信息获得所述编码单元的划分方式以及 所述相邻块的左上角像素坐标;
处理模块, 用于当所述划分方式为非方块划分时, 根据所述第一索引信息 得到的所述相邻块左上角像素坐标及所述相邻块的划分方向, 得到所述非方块 的第二索引信息。
9、 根据权利要求 8所示的获取装置, 其特征在于, 所述获取模块包括: 位置获取单元, 用于通过当前块的索引得到所述当前块在当前编码单元中 的位置信息;
索引获取单元, 用于根据所述当前块在当前编码单元中的位置信息, 获得 当前块的相邻块在所述相邻块所处编码单元中的第一索引信息。
1 0、 根据权利要求 9所示的获取装置, 其特征在于, 所述索引获取单元具体 用于:
获取所述相邻块与当前块的位置关系;
获取所述相邻块得左上角像素坐标;
息, 所述第一索引信息是按照方块划分方式进行计算得到的以方块划分为单位 和扫描顺序的索引信息。
1 1、根据权利要求 8所述的获取装置,其特征在于,所述分析模块具体用于: 通过所述第一索引信息, 查找所述相邻块的对应编码单元的索引;
12、 根据权利要求 1 1所述的获取装置, 其特征在于, 所述处理模块具体用
根据码流中的标识, 获得所述相邻块的划分方向, 所述划分方向包括水平 方式划分及垂直方式划分, 所述水平方式划分指块的宽度大于高度, 所述垂直 方式指块的宽度小于高度; 根据所述左上角像素坐标, 所述相邻块所处编码单元的划分方式, 划分方 向以及所述划分的尺寸规格信息, 得到所述第二索引信息, 所述第二索引信息 用于指示含有所述左上角像素坐标的块, 或者所述块在其所处的编码单元中的 位置信息。
PCT/CN2012/078062 2011-07-01 2012-07-02 一种解码过程中块索引信息的获取方法及装置 WO2013004165A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110184112.3 2011-07-01
CN201110184112.3A CN102857762B (zh) 2011-07-01 2011-07-01 一种解码过程中块索引信息的获取方法及装置

Publications (1)

Publication Number Publication Date
WO2013004165A1 true WO2013004165A1 (zh) 2013-01-10

Family

ID=47403903

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/078062 WO2013004165A1 (zh) 2011-07-01 2012-07-02 一种解码过程中块索引信息的获取方法及装置

Country Status (2)

Country Link
CN (1) CN102857762B (zh)
WO (1) WO2013004165A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IL291768A (en) 2019-10-03 2022-06-01 Huawei Tech Co Ltd Encoding process for geometric division mode

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874521A (zh) * 2005-05-30 2006-12-06 三星电子株式会社 用于图像编码和解码的设备和方法
CN101415121A (zh) * 2007-10-15 2009-04-22 华为技术有限公司 一种自适应的帧预测的方法及装置
WO2010084692A1 (ja) * 2009-01-22 2010-07-29 株式会社エヌ・ティ・ティ・ドコモ 画像予測符号化装置、方法及びプログラム、画像予測復号装置、方法及びプログラム、並びに、符号化・復号システム及び方法
WO2010095915A2 (ko) * 2009-02-23 2010-08-26 한국과학기술원 비디오 부호화에서의 분할 블록 부호화 방법, 비디오 복호화에서의 분할 블록 복호화 방법 및 이를 구현하는 기록매체

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1943247A (zh) * 2004-04-08 2007-04-04 皇家飞利浦电子股份有限公司 应用于多媒体数据的编码方法
US8442108B2 (en) * 2004-07-12 2013-05-14 Microsoft Corporation Adaptive updates in motion-compensated temporal filtering
KR101456498B1 (ko) * 2009-08-14 2014-10-31 삼성전자주식회사 계층적 부호화 단위의 스캔 순서를 고려한 비디오 부호화 방법 및 장치, 비디오 복호화 방법 및 장치

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874521A (zh) * 2005-05-30 2006-12-06 三星电子株式会社 用于图像编码和解码的设备和方法
CN101415121A (zh) * 2007-10-15 2009-04-22 华为技术有限公司 一种自适应的帧预测的方法及装置
WO2010084692A1 (ja) * 2009-01-22 2010-07-29 株式会社エヌ・ティ・ティ・ドコモ 画像予測符号化装置、方法及びプログラム、画像予測復号装置、方法及びプログラム、並びに、符号化・復号システム及び方法
WO2010095915A2 (ko) * 2009-02-23 2010-08-26 한국과학기술원 비디오 부호화에서의 분할 블록 부호화 방법, 비디오 복호화에서의 분할 블록 복호화 방법 및 이를 구현하는 기록매체

Also Published As

Publication number Publication date
CN102857762B (zh) 2016-03-30
CN102857762A (zh) 2013-01-02

Similar Documents

Publication Publication Date Title
RU2705435C1 (ru) Способ и устройство для кодирования информации движения, а также способ и устройство для ее декодирования
US11363269B2 (en) Encoding sequence encoding method and device thereof, and decoding method and device thereof
CA2981185C (en) Method and apparatus of non-square intra prediction for chroma components in coding system with quad-tree and binary-tree partition
US9202290B2 (en) Apparatus and method for encoding/decoding images for intra-prediction
JP6080405B2 (ja) 画像符号化装置、画像符号化方法及びプログラム、画像復号装置、画像復号方法及びプログラム
JP2019535202A (ja) インター予測モードベースの画像処理方法及びそのための装置
US11870982B2 (en) Method and apparatus for processing image signal
WO2012094921A1 (zh) 多图像块划分的编解码方法和装置
US20200228831A1 (en) Intra prediction mode based image processing method, and apparatus therefor
JP2022036081A (ja) 選択的変換に基づいた映像コーディング方法およびその装置
CN104904206A (zh) 用于三维视频编解码中直接和跳跃模式的空间运动矢量预测推导方法和装置
JP6569677B2 (ja) ブロックサイズ決定方法及びプログラム
CN104919799A (zh) 用于三维视频编解码的从深度到视差矢量转换的方法和装置
US20220159239A1 (en) Intra prediction-based image coding in image coding system
JP2022526276A (ja) 画像エンコーディングおよびデコーディングのための方法およびデバイス
WO2019194503A1 (ko) 분할된 블록에 2차 변환을 적용하여 비디오 신호를 처리하는 방법 및 장치
US10630985B2 (en) Method for scanning coding blocks inside a video frame by video codecs
WO2013004165A1 (zh) 一种解码过程中块索引信息的获取方法及装置
WO2011137814A1 (zh) 扫描方法及装置、反扫描方法及装置
CN105122808A (zh) 用于三维及多视图视频编码的视差向量推导的方法及装置
RU2809558C2 (ru) Способ и устройство для кодирования и декодирования изображения

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

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

Country of ref document: EP

Kind code of ref document: A1