WO2009089779A1 - An intra frame predicting method and apparatus - Google Patents

An intra frame predicting method and apparatus Download PDF

Info

Publication number
WO2009089779A1
WO2009089779A1 PCT/CN2009/070057 CN2009070057W WO2009089779A1 WO 2009089779 A1 WO2009089779 A1 WO 2009089779A1 CN 2009070057 W CN2009070057 W CN 2009070057W WO 2009089779 A1 WO2009089779 A1 WO 2009089779A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
value
current
current block
prediction
Prior art date
Application number
PCT/CN2009/070057
Other languages
French (fr)
Chinese (zh)
Inventor
Yingjia Liu
Sixin Lin
Shan Gao
Jiantong Zhou
Jiali Fu
Qingpeng Xie
Xiaosen Zhang
Lianhuan Xiong
Original Assignee
Huawei Technologies Co., Ltd.
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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2009089779A1 publication Critical patent/WO2009089779A1/en

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/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques

Definitions

  • the present invention relates to the field of communications, and in particular, to a method for intra prediction and an intra prediction device. Background technique
  • the intraframe coding compression rate is low, and the intra coding does not depend on the previous coded frame, so that decoding can be performed without obtaining the previous frame.
  • the intra-coded block uses the surrounding information for prediction.
  • the luminance sub-blocks of (4 pixels x 4 pixels) or the luminance blocks of (8 pixels x 8 pixels) each have 9 different prediction modes, specifically 8 different types. Prediction mode direction prediction and a direct current (DC) prediction.
  • the luminance macroblocks of size (16 pixels x 16 pixels) have 4 different prediction modes, which are vertical, horizontal, DC and plane prediction modes. The prediction can be made using the pixels around the currently encoded sub-block/block/macroblock as reference pixels.
  • intra prediction uses adjacent rows and adjacent column pixels of decoded blocks for intra prediction. . From these pixels, different directions of intra prediction mode or DC prediction mode can be selected.
  • H.264/AVC includes 9 intra prediction modes based on blocks/subblocks of size (4 pixels x 4 pixels) or (8 pixels x 8 pixels), and macros of size (16 pixels x 16 pixels) Four intra prediction modes of the block.
  • FIG. 1 shows a sub-block of size (4 pixels X 4 pixels) and its reference pixel AM
  • the right part of Figure 2 shows 8 different intra prediction modes of ap pixels in the sub-block.
  • the mode direction is predicted
  • FIG. 2 shows nine prediction modes of the intra prediction mode: vertical prediction mode, horizontal prediction mode, DC prediction mode, and Diagonal Down-left prediction. Mode, Diagonal Down-right prediction mode, Right-right prediction mode, Horizontal-down prediction mode, Vertical-left prediction mode, Upper horizontal ( Horizontal -up ) Prediction mode.
  • the prediction of the DC in the prior art is to use the average values of the reference pixels A, B, C, D and I, J, K, L to predict the pixel values of the current block, only Single The reference pixels (A, B, C, D) on the left side of the current block and the reference pixels (1, J, K, L) on the upper side are averaged to obtain a pixel prediction value, which destroys the continuous characteristic of the texture distribution of the current block. , reducing the accuracy of the prediction. Summary of the invention
  • the embodiment of the invention provides a method for intra prediction and an intra prediction device, which can maintain the continuous characteristic of the texture distribution of the current block when performing current block pixel value prediction, and ensure the accuracy of prediction.
  • the embodiment of the invention provides a method for intra prediction, which includes:
  • an embodiment of the present invention further provides an intra prediction apparatus, including:
  • a prediction unit determining a texture direction of the current block according to a prediction mode direction of a neighboring block of the current block and a reference pixel value in the neighboring block, and determining the current according to a texture direction of the current block The pixel prediction value of the block.
  • the embodiment of the present invention performs pixel value prediction by using a current block in a frame, and determines a texture direction of the current block according to a prediction mode direction of a neighboring block of the current block and a reference pixel value in the adjacent block, and Further determining a pixel prediction value of the current block according to a texture direction of the current block, thereby maintaining a continuous characteristic of a texture distribution of the current block when performing current block pixel value prediction, and ensuring accuracy of prediction.
  • FIG. 1 is a schematic diagram of a method for intra prediction according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of still another embodiment of a method for intra prediction of the present invention.
  • FIG. 3 is a schematic diagram showing the positional relationship between a current sub-block and its neighboring sub-blocks in the embodiment of the present invention
  • FIG. 4 is a schematic diagram showing four types of distribution of a macroblock to which a current sub-block belongs in the embodiment of the present invention
  • FIG. 5 is a schematic diagram of a macroblock C to which a current sub-block belongs according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of an intra prediction apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of still another embodiment of the intra prediction apparatus of the present invention. detailed description
  • the embodiment of the invention provides a method for intra prediction and an intra prediction device, which can maintain the continuous characteristic of the texture distribution of the current block when performing current block pixel value prediction, and ensure the accuracy of prediction.
  • FIG. 1 is a schematic diagram of a method for intra prediction according to an embodiment of the present invention
  • a method for performing intra prediction according to an embodiment of the present invention can maintain the continuous feature of the texture distribution of the current block when performing current block pixel value prediction, and ensure prediction accuracy.
  • FIG. 2 is a schematic diagram of still another embodiment of a method for intra prediction in the present invention.
  • the method mainly includes:
  • adjacent sub-blocks may include blocks adjacent to the left of the current block (left), upper block (U p), a combination of one or more of the upper right block (up_right) and the upper left block (up_left), and eight, B, C, D, E, F, G, H, I, J, K, L, X are adjacent
  • the reference pixel adjacent to the current sub-block (having a corresponding reference pixel value), for convenience of description, the reference pixel value corresponding to each reference pixel is also used
  • A, B, C, D, E, F, G, H , I, J, K, L, X indicate that the intra prediction mode of each adjacent sub-block is also represented by using left, up, up_right, upjeft, and the SO mentioned below is the average of I, J, K, and L.
  • SI is the average value of A, B, C, D, 82 is the average of 5, F, G, H, and S
  • Coding adjacent macroblocks may be as shown in the position 0 of the macroblock C to which the current sub-block belongs as shown in FIG. 4, and the macroblock C adopts the specification of (16 pixels x 16 pixels).
  • the current sub-block adopts the specification of (4 pixels and 4 pixels);
  • the macroblock C is distributed as shown in (a) of FIG. 4, and the macroblock C is located at the first upper left corner of the frame, according to the definition of the adjacent sub-block of the current sub-block in the macroblock C, In this case, there is no relevant reference pixel around the current sub-block, so it can be determined that the pixel prediction value of the current sub-block is 128, at this time:
  • the pixel prediction value of the current block is a fixed value 128, and the situation may be expressed as follows:
  • Ipmode_x takes a value of -1 to indicate that there is no corresponding left block, upper block, upper right block, and upper left block
  • ipmode_x may take any one of 10 integers between -1 and 8 in different cases, where ipmode_x takes 0 to
  • the values of the 9 integers between 8 represent 9 intra prediction modes;
  • the second distribution case the distribution of macroblocks is as shown in (b) of Fig. 4, and the macroblock C is located in the first line of the frame, according to the above pair of macros The definition of the adjacent sub-block of the current sub-block in block C.
  • the current sub-block in the case of sub-blocks 0, 1, 4, 5 as shown in FIG. 5 has four left sides. Reference pixel (1, J, K, L), at this time:
  • S2 can also select an appropriate value in the range of 0 to 255 pixels; in the third distribution case, the macroblock is distributed as shown in (c) of FIG. 4, and the macroblock C is located in the first column of the frame, according to the above The definition of the adjacent sub-block of the current sub-block in the macro block C.
  • the current sub-block (as in the case of sub-blocks 0, 2, 8, and 10 shown in FIG. 5) has an upper side and an upper right side. 8 directions Reference pixels (A, B, C, D, E, F, G, H), at this time:
  • the macroblock is distributed as shown in (d) of FIG. 4, and the macroblock C is in the middle of the frame.
  • the current sub-block has a complete reference phase point around it, at this time:
  • the fifth distribution case is that the macroblock C is in the last column of the frame.
  • H mean(D,L)
  • the intra prediction mode value of the upper right block can be set to M3, at this time:
  • This fifth distribution can be attributed to the fourth distribution described above.
  • the reconstructed pixel value of each adjacent sub-block is obtained, which may be a corresponding reference.
  • the pixel value is used as the reconstructed pixel value of each adjacent sub-block, and is not necessarily the reference pixel mean value (obtained by the mean step);
  • the texture direction may be specifically combined with the four distributions of the macroblock to which the current sub-block belongs as shown in FIG. 4, and the following process is performed:
  • the pixel prediction value of the current sub-block is 128;
  • the prediction mode direction (ipmode) of the left block and the reconstructed pixel value of each adjacent sub-block may be used as reference information, according to different
  • the prediction mode direction and the relationship between SO, SI, S2 determine the texture direction of the current sub-block, and the approximate texture direction of the current sub-block can be determined according to the intra prediction mode value M0 of the left block, and then according to S0, SI
  • a more accurate texture direction is determined from the approximate texture direction;
  • the prediction mode direction (ipmode) of the upper block and the upper right block and the reconstructed pixel value of each adjacent sub-block may be used.
  • the texture direction of the current sub-block is determined according to the relationship between the different prediction mode directions and SO, SI, S2, and the approximate sub-block is determined according to the intra prediction mode values M1 and M2 of the upper block and the upper right block.
  • the texture direction and then according to the size between Sl, S2 or according to the relationship between the absolute difference between SI and S2 and the preset threshold, a more accurate texture direction is determined from the approximate texture direction;
  • the left block, the upper block, the upper right block, and the upper block may be
  • the prediction mode direction (ipmode) of the upper left block and the reconstructed pixel value of each adjacent sub-block are used as reference information, and the texture direction of the current sub-block is determined according to the relationship between different prediction mode directions and SO, SI, S2, and S3.
  • the prediction mode direction of the left block is optimal, followed by the prediction mode direction of the upper block, and the third The prediction mode direction of the upper right block, and finally the prediction mode direction of the upper left block;
  • pixel prediction value of the current sub-block by the reconstructed pixel value of each adjacent sub-block that is, pre-predicting a pixel of the current sub-block according to the predicted texture distribution.
  • the measured value is equal to one of the reconstructed pixel values of the adjacent sub-blocks or a combination thereof, and the content described in the above 303 is specifically as follows, so that the pixel prediction value of the current sub-block is equal to the respective One of the reconstructed pixel values of adjacent sub-blocks is an example but is not limited to this:
  • the pixel prediction value of the current sub-block is SO;
  • the foregoing 203, 204 Can be replaced by the following steps:
  • Determining a texture direction of the current block according to a relationship between reconstructed pixel values of the neighboring blocks; determining, according to the determined texture direction, the current block by reconstructed pixel values of the neighboring blocks a pixel prediction value, specifically, determining, by the reconstructed pixel value of each neighboring block, a pixel prediction value of the current block may be such that a pixel prediction value of the current sub-block is equal to a reconstruction of the neighboring sub-blocks In the pixel value The mean of one or a combination thereof.
  • the encoding end obtains the true pixel value of the current sub-block (instead of the predicted pixel value), one of the reconstructed pixel values of the plurality of adjacent sub-blocks obtained by the above method or The predicted pixel value closest to the real pixel value is selected from the combined mean values.
  • a corresponding identifier needs to be added at the encoding end, for example, a DC_sd_Idx identifier, and the following macroblock prediction pixel value conversion syntax modification is shown in Table 1. Show:
  • the pixel prediction value of the current sub-block is a pixel prediction value corresponding to the left block
  • the encoding end obtains the pixel prediction value of the current sub-block by the above method, and When the current pixel value of the current sub-block is obtained, the difference between the pixel prediction value of the current sub-block and the real pixel value may be further obtained, indicated and transmitted by the corresponding identifier in the code table, and the current The pixel prediction value of the sub-block, the decoded end can be restored to the real pixel value by the received difference value and the pixel prediction value.
  • FIG. 6 is a schematic structural diagram of an intra prediction apparatus according to an embodiment of the present invention.
  • the apparatus mainly includes:
  • the obtaining unit 61 is configured to acquire a current block in the frame for performing pixel value prediction
  • the prediction unit 62 determines a pixel prediction value of the current block in the current block texture direction according to a prediction mode direction of a neighboring block of the current block and a reference pixel value in the neighboring block.
  • the intra prediction apparatus provided by the embodiment of the present invention can maintain the continuous characteristic of the texture distribution of the current block when performing the current block pixel value prediction, and ensure the accuracy of the prediction.
  • FIG. 7 is a schematic structural diagram of still another embodiment of an intra prediction apparatus according to the present invention.
  • the device includes:
  • the function of each unit is as follows:
  • the obtaining unit 71 is configured to acquire a current block in the frame for performing pixel value prediction
  • a pixel prediction value obtaining unit 721 in combination with the distribution of the current block in a frame, when a neighboring block adjacent to the current block: a combination of one or more of a left block, an upper block, an upper right block, and an upper left block
  • the reconstructed pixel values of the neighboring blocks are obtained according to reference pixel values adjacent to the current block in the neighboring blocks, where the positional relationship between the neighboring block and the current block can be referred to FIG.
  • the processing of the various distribution cases is mentioned in the above corresponding content, and details are not described herein again;
  • the texture direction determining unit 722 determines the texture direction of the current block according to the prediction mode direction of each neighboring block, and further determines the current according to the relationship between the reconstructed pixel values of the adjacent blocks. Specifically, the texture direction of the block may be determined according to the prediction mode direction of each neighboring block, and then according to the relationship between the reconstructed pixel values of the adjacent blocks.
  • a relationship between reconstructed pixel values of each adjacent block is an absolute difference of pixel prediction values corresponding to at least one pair of adjacent blocks a relationship between a value and a preset threshold, or a magnitude relationship of pixel prediction values corresponding to at least one pair of adjacent blocks; a first determining unit 7231, according to the further determined texture direction, by the neighboring blocks Reconstructing a pixel value to determine a pixel prediction value of the current block;
  • the second determining unit 7232 determines that the pixel prediction value of the current block is a fixed value when the left block, the upper block, the upper right block, and the upper left block are not present, and the fixed value may be an experience in the prior art.
  • the value of 128, the second determining unit 7232 can be selected according to the actual situation.
  • the prediction mode of the neighboring block is all DC prediction mode or the neighboring block is an inter-subblock/block/macroblock
  • the texture direction determining unit 722 is further configured to determine a texture direction of the current block according to a relationship between the reconstructed pixel values of the neighboring blocks, where the determining unit 723 is further configured to be used according to the determining a texture direction, the pixel prediction value of the current block is determined by reconstructed pixel values of the neighboring blocks.
  • the setting of the reference pixel of the adjacent block may be selected according to actual conditions, and is not limited to adopting a pixel point adjacent to the current block in the adjacent block;
  • the current block may be a specification of (4 pixels X 4 pixels), (8 pixels ⁇ 8 pixels), or (16 pixels X 16 pixels).
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

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

Abstract

An intra frame predicting method is provided. It includes obtaining a current block in the frame of which the pixel values are to be predicted, and determining the pixel predicting values of the current block in the texture direction of the current block according to the predicting mode direction of a neighbor block of the current block and the reference pixel value of the neighbor block. An intra frame predicting apparatus is also provided. With the application of the invention, the continuous characteristic of the texture distribution of the current block is maintained when the pixel values of the current block are predicted, the veracity of the prediction is ensured, and it is easy to be carried out.

Description

一种帧内预测的方法及装置  Method and device for intra prediction
本申请要求于 2008年 1月 7日提交中国专利局、申请号为 200810025656.3、 发明名称为 "一种帧内预测的方法及装置" 的中国专利申请的优先权, 其全部 内容通过引用结合在本申请中。 技术领域  The present application claims priority to Chinese Patent Application No. 200810025656.3, entitled "A Method and Apparatus for In-Frame Prediction", filed on January 7, 2008, the entire contents of which is incorporated herein by reference. In the application. Technical field
本发明涉及通信领域, 尤其涉及一种帧内预测的方法及一种帧内预测装置。 背景技术  The present invention relates to the field of communications, and in particular, to a method for intra prediction and an intra prediction device. Background technique
在视频编码中, 帧内编码压缩率 ^艮低, 帧内编码时不依赖于前面的已编码 帧, 因而可以在不得到前面帧的情况下进行解码。 帧内编码块使用周围的信息 来进行预测, 规格为 ( 4像素 X 4像素) 的亮度子块或( 8像素 X 8像素) 的亮 度块各有 9种不同的预测模式, 具体为 8种不同预测模式方向的预测和 1种直 流( Direct Current, DC )预测, 规格为 ( 16像素 x 16像素 ) 的亮度宏块共有 4 种不同的预测模式, 具体为垂直、 水平、 DC和平面预测模式, 可利用当前被编 码子块 /块 /宏块周围的像素作为参考像素进行预测。  In video coding, the intraframe coding compression rate is low, and the intra coding does not depend on the previous coded frame, so that decoding can be performed without obtaining the previous frame. The intra-coded block uses the surrounding information for prediction. The luminance sub-blocks of (4 pixels x 4 pixels) or the luminance blocks of (8 pixels x 8 pixels) each have 9 different prediction modes, specifically 8 different types. Prediction mode direction prediction and a direct current (DC) prediction. The luminance macroblocks of size (16 pixels x 16 pixels) have 4 different prediction modes, which are vertical, horizontal, DC and plane prediction modes. The prediction can be made using the pixels around the currently encoded sub-block/block/macroblock as reference pixels.
在 H.264视频编码标准 /高级视频编码标准( H.264/Advanced Video Coding, H.264/AVC )中,帧内预测使用已解码块的相邻行和相邻列像素来进行帧内预测。 从这些像素,可以选择不同方向帧内预测模式或 DC预测模式。 H.264/AVC包含 了基于规格为 ( 4像素 X 4像素)或 ( 8像素 X 8像素) 的块 /子块的 9种帧内预 测模式, 和规格为 ( 16像素 X 16像素 ) 的宏块的 4种帧内预测模式。  In H.264 video coding standard/H.264/Advanced Video Coding (H.264/AVC), intra prediction uses adjacent rows and adjacent column pixels of decoded blocks for intra prediction. . From these pixels, different directions of intra prediction mode or DC prediction mode can be selected. H.264/AVC includes 9 intra prediction modes based on blocks/subblocks of size (4 pixels x 4 pixels) or (8 pixels x 8 pixels), and macros of size (16 pixels x 16 pixels) Four intra prediction modes of the block.
图 1左边部分示出了一规格为( 4像素 X 4像素)的子块及其参考像素 A-M, 图 2右边部分示出了对该子块中 a-p像素的不同方向帧内预测模式的 8个预测模 式方向, 而图 2示出了帧内预测模式的 9种预测模式: 垂直( Vertical )预测模 式、水平( Horizontal )预测模式、 DC预测模式、下左对角线( Diagonal Down-left ) 预测模式、 下右对角线( Diagonal Down-right )预测模式、右垂直( Vertical-right ) 预测模式、 下水平(Horizontal-down )预测模式、 左垂直(Vertical-left )预测模 式、 上水平 ( Horizontal-up )预测模式。  The left part of Fig. 1 shows a sub-block of size (4 pixels X 4 pixels) and its reference pixel AM, and the right part of Figure 2 shows 8 different intra prediction modes of ap pixels in the sub-block. The mode direction is predicted, and FIG. 2 shows nine prediction modes of the intra prediction mode: vertical prediction mode, horizontal prediction mode, DC prediction mode, and Diagonal Down-left prediction. Mode, Diagonal Down-right prediction mode, Right-right prediction mode, Horizontal-down prediction mode, Vertical-left prediction mode, Upper horizontal ( Horizontal -up ) Prediction mode.
由于现有技术中 DC的预测 (图 2中模式等于 2 )是利用参考像素 A、 B、 C、 D和 I、 J、 K、 L的平均值来对当前块的像素值进行预测的, 只是筒单地将 所述当前块左边的参考像素 (A、 B、 C、 D )和上边的参考像素 (1、 J、 K、 L ) 求平均值得到像素预测值, 这破坏了当前块的纹理分布的连续特性, 减小了预 测的准确性。 发明内容 Since the prediction of the DC in the prior art (the mode in FIG. 2 is equal to 2) is to use the average values of the reference pixels A, B, C, D and I, J, K, L to predict the pixel values of the current block, only Single The reference pixels (A, B, C, D) on the left side of the current block and the reference pixels (1, J, K, L) on the upper side are averaged to obtain a pixel prediction value, which destroys the continuous characteristic of the texture distribution of the current block. , reducing the accuracy of the prediction. Summary of the invention
本发明实施例提供了一种帧内预测的方法及帧内预测装置, 在进行当前块 像素值预测时可保持当前块的纹理分布的连续特性, 保证预测的准确性。  The embodiment of the invention provides a method for intra prediction and an intra prediction device, which can maintain the continuous characteristic of the texture distribution of the current block when performing current block pixel value prediction, and ensure the accuracy of prediction.
本发明实施例提出了一种帧内预测的方法, 包括:  The embodiment of the invention provides a method for intra prediction, which includes:
获取进行像素值预测的帧内一当前块;  Obtaining a current block in the frame for performing pixel value prediction;
根据所述当前块的相邻块的预测模式方向和所述相邻块中的参考像素值, 确定所述当前块纹理方向下的所述当前块的像素预测值。  Determining, according to a prediction mode direction of the neighboring block of the current block and a reference pixel value in the neighboring block, a pixel prediction value of the current block in the current block texture direction.
相应地, 本发明实施例还提供了一种帧内预测装置, 包括:  Correspondingly, an embodiment of the present invention further provides an intra prediction apparatus, including:
获取单元, 获取进行像素值预测的帧内一当前块;  Obtaining a unit, acquiring a current block in the frame for performing pixel value prediction;
预测单元, 根据所述当前块的相邻块的预测模式方向和所述相邻块中的参 考像素值, 判定所述当前块的纹理方向, 并根据所述当前块的纹理方向确定所 述当前块的像素预测值。  a prediction unit, determining a texture direction of the current block according to a prediction mode direction of a neighboring block of the current block and a reference pixel value in the neighboring block, and determining the current according to a texture direction of the current block The pixel prediction value of the block.
本发明实施例通过帧内一当前块进行像素值预测, 根据所述当前块的相邻 块的预测模式方向和所述相邻块中的参考像素值, 判定所述当前块的纹理方向, 并进一步根据当前块的纹理方向确定所述当前块的像素预测值, 从而在进行当 前块像素值预测时保持当前块的纹理分布的连续特性, 保证预测的准确性。 附图说明 例或现有技术描述中所需要使用的附图作筒单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  The embodiment of the present invention performs pixel value prediction by using a current block in a frame, and determines a texture direction of the current block according to a prediction mode direction of a neighboring block of the current block and a reference pixel value in the adjacent block, and Further determining a pixel prediction value of the current block according to a texture direction of the current block, thereby maintaining a continuous characteristic of a texture distribution of the current block when performing current block pixel value prediction, and ensuring accuracy of prediction. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are incorporated in the claims Other drawings may also be obtained from these drawings without the inventive labor.
图 1是本发明实施例的帧内预测的方法示意图;  1 is a schematic diagram of a method for intra prediction according to an embodiment of the present invention;
图 2是本发明的帧内预测的方法又一实施例的示意图;  2 is a schematic diagram of still another embodiment of a method for intra prediction of the present invention;
图 3是本发明实施例中当前子块与其相邻子块的位置关系示意图; 图 4是本发明实施例中当前子块所属宏块的 4种分布情况示意图; 图 5是本发明实施例中当前子块所属宏块 C的示意图; 3 is a schematic diagram showing the positional relationship between a current sub-block and its neighboring sub-blocks in the embodiment of the present invention; FIG. 4 is a schematic diagram showing four types of distribution of a macroblock to which a current sub-block belongs in the embodiment of the present invention; FIG. 5 is a schematic diagram of a macroblock C to which a current sub-block belongs according to an embodiment of the present invention; FIG.
图 6是本发明实施例的帧内预测装置的结构示意图;  6 is a schematic structural diagram of an intra prediction apparatus according to an embodiment of the present invention;
图 7是本发明帧内预测装置又一实施例的结构示意图。 具体实施方式  FIG. 7 is a schematic structural diagram of still another embodiment of the intra prediction apparatus of the present invention. detailed description
本发明实施例提供了一种帧内预测的方法及一种帧内预测装置, 在进行当 前块像素值预测时可保持当前块的纹理分布的连续特性, 保证预测的准确性。  The embodiment of the invention provides a method for intra prediction and an intra prediction device, which can maintain the continuous characteristic of the texture distribution of the current block when performing current block pixel value prediction, and ensure the accuracy of prediction.
下面结合附图, 对本发明实施例进行详细说明。  The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
图 1是本发明实施例的帧内预测的方法示意图;  1 is a schematic diagram of a method for intra prediction according to an embodiment of the present invention;
本实施例中的帧内预测方法包括:  The intra prediction method in this embodiment includes:
101 , 获取进行像素值预测的帧内一当前块;  101. Obtain a current block in a frame for performing pixel value prediction.
102, 根据所述当前块的相邻块的预测模式方向和所述相邻块中的参考像素 值, 确定所述当前块纹理方向下的所述当前块的像素预测值。  102. Determine, according to a prediction mode direction of a neighboring block of the current block and a reference pixel value in the neighboring block, a pixel prediction value of the current block in a current block texture direction.
实施本发明实施例提供的一种帧内预测的方法, 在进行当前块像素值预测 时可保持当前块的纹理分布的连续特性, 保证预测的准确性。  A method for performing intra prediction according to an embodiment of the present invention can maintain the continuous feature of the texture distribution of the current block when performing current block pixel value prediction, and ensure prediction accuracy.
参见图 2, 是本发明中帧内预测的方法又一实施例的示意图;  2 is a schematic diagram of still another embodiment of a method for intra prediction in the present invention;
该方法中假设位深(bitdepth ) 为 8位, 则取一固定值 2 ' ―1为 128 , 其 他取值可根据实际情况具体采用, 不仅限于此, 参照该图 2, 该方法主要包括:In this method, it is assumed that the bit depth is 8 bits, and a fixed value of 2 ' ― 1 is 128. Other values may be specifically adopted according to actual conditions, and are not limited thereto. Referring to FIG. 2, the method mainly includes:
201 , 获取进行像素值预测的帧内一当前子块( Current Subblock ); 201. Obtain a current subblock (current Subblock) in the frame for performing pixel value prediction.
其中与当前子块相邻的相邻子块如图 3 所示的位置关系, 其中相邻子块可 包括有与所述当前块相邻的左块(left )、 上块(Up )、 右上块(up_right )和左上 块(up_left ) 中的一种或多种的组合, 而八、 B、 C、 D、 E、 F、 G、 H、 I、 J、 K、 L、 X 为相邻块与当前子块相邻的参考像素点 (具有对应的参考像素值), 为方 便描述, 各参考像素点对应的参考像素值也用 A、 B、 C、 D、 E、 F、 G、 H、 I、 J、 K、 L、 X表示, 各相邻子块的帧内预测模式也对应使用 left、 up、 up_right、 upjeft表示, 下面提到的 SO为 I、 J、 K、 L的平均值, SI为 A、 B、 C、 D的平 均值, 82为5、 F、 G、 H的平均值, S3为 X; Wherein the sub-block adjacent to the current block of adjacent sub positional relationship shown in FIG. 3, wherein adjacent sub-blocks may include blocks adjacent to the left of the current block (left), upper block (U p), a combination of one or more of the upper right block (up_right) and the upper left block (up_left), and eight, B, C, D, E, F, G, H, I, J, K, L, X are adjacent The reference pixel adjacent to the current sub-block (having a corresponding reference pixel value), for convenience of description, the reference pixel value corresponding to each reference pixel is also used A, B, C, D, E, F, G, H , I, J, K, L, X indicate that the intra prediction mode of each adjacent sub-block is also represented by using left, up, up_right, upjeft, and the SO mentioned below is the average of I, J, K, and L. , SI is the average value of A, B, C, D, 82 is the average of 5, F, G, H, and S3 is X;
202, 结合所述当前子块在帧内的分布情况, 当所述左块、 上块、 右上块和 左上块中的一种或多种的组合存在时, 根据所述各相邻子块中与所述当前子块 相邻的参考像素值, 得到所述各相邻子块的重构像素值, 具体可参照如下流程: 结合如图 2所示的所述当前子块所属宏块在帧内的 4种分布情况, 其中 C 表示当前子块所属宏块, A表示 C上方已编码相邻宏块、 L表示 C左边已编码 相邻宏块, 而我们所提到的当前子块可如图 4所示的当前子块所属宏块 C的 0 位置所示, 宏块 C采用 (16像素 X 16像素) 的规格, 而当前子块采用 (4像素 4像素 ) 的规格; 202, in combination with the distribution of the current sub-block in a frame, when a combination of one or more of the left block, the upper block, the upper right block, and the upper left block exists, according to the neighboring sub-blocks Obtaining a reconstructed pixel value of each adjacent sub-block by using a reference pixel value adjacent to the current sub-block, and specifically referring to the following process: In combination with the four distributions of the macroblock to which the current sub-block belongs as shown in FIG. 2, where C represents the macroblock to which the current sub-block belongs, A represents the adjacent macroblock encoded above C, and L represents the left of C. Coding adjacent macroblocks, and the current sub-block we mentioned may be as shown in the position 0 of the macroblock C to which the current sub-block belongs as shown in FIG. 4, and the macroblock C adopts the specification of (16 pixels x 16 pixels). The current sub-block adopts the specification of (4 pixels and 4 pixels);
第一种分布情况, 宏块 C如图 4中(a )的分布, 宏块 C位于帧的左上角第 一个, 按照上述对宏块 C中当前子块的相邻子块的定义, 在这种分布情况下, 当前子块的周围没有相关的参考像素, 因此可确定当前子块的像素预测值为 128, 此时:  In the first distribution case, the macroblock C is distributed as shown in (a) of FIG. 4, and the macroblock C is located at the first upper left corner of the frame, according to the definition of the adjacent sub-block of the current sub-block in the macroblock C, In this case, there is no relevant reference pixel around the current sub-block, so it can be determined that the pixel prediction value of the current sub-block is 128, at this time:
当相邻子块的左块、 上块、 右上块和左上块均不存在时, 确定所述当前块 的像素预测值为一固定值 128, 这种情况可以有如下表示方式:  When the left block, the upper block, the upper right block, and the upper left block of the adjacent sub-blocks are not present, it is determined that the pixel prediction value of the current block is a fixed value 128, and the situation may be expressed as follows:
S0=128 , Sl=128 , S2=128 , S3=128 , 而帧内预测模式值 ipmode_x=-l ,
Figure imgf000006_0001
ipmode_x取值为 -1表示不存在对应的左块、 上块、 右 上块、 左上块, 而 ipmode_x在不同情况下可取 -1到 8之间的 10个整数中的任 一个, 其中 ipmode_x取 0到 8之间的 9个整数中的值表示 9种帧内预测模式; 第二种分布情况, 宏块如图 4中 (b )的分布, 宏块 C位于帧的第一行, 按 照上述对宏块 C中当前子块的相邻子块的定义, 在这种分布情况下, 当前子块 (如图 5所示的子块 0、 1、 4、 5的情况)的周围具有左边的 4个参考像素点(1、 J、 K、 L ), 此时:
S0=128, Sl=128, S2=128, S3=128, and the intra prediction mode value ipmode_x=-l,
Figure imgf000006_0001
Ipmode_x takes a value of -1 to indicate that there is no corresponding left block, upper block, upper right block, and upper left block, and ipmode_x may take any one of 10 integers between -1 and 8 in different cases, where ipmode_x takes 0 to The values of the 9 integers between 8 represent 9 intra prediction modes; the second distribution case, the distribution of macroblocks is as shown in (b) of Fig. 4, and the macroblock C is located in the first line of the frame, according to the above pair of macros The definition of the adjacent sub-block of the current sub-block in block C. In this distribution case, the current sub-block (in the case of sub-blocks 0, 1, 4, 5 as shown in FIG. 5) has four left sides. Reference pixel (1, J, K, L), at this time:
当相邻子块的左块存在, 而上块、 右上块、 左上块不存在时, 有如下表示 方式:  When the left block of the adjacent sub-block exists, and the upper block, the upper right block, and the upper left block do not exist, the following manner is expressed:
S0=mean(U,K,L) , Sl=128 , S2=mean(S0,Sl) , S3=128; ipmode_left=M0 ,
Figure imgf000006_0002
, 其中 mean表示取平均 值, 例如 S0=mean(U,K,L)表示 SO为 I、 J、 K、 L的平均值, M0表示当相邻子 块的左块存在时, 左块的帧内预测模式值为 M0, 这里的 S2的值由于右上块不 存在而人为设定 /计算的值, 即 S2=mean(S0,Sl)是根据经验取值 S2为 SO与 S1 的平均值, 当然, 在实际情况中 S2也可以选取 0到 255像素范围中的适当值; 第三种分布情况, 宏块如图 4中 (c )的分布, 宏块 C位于帧的第一列, 按 照上述对宏块 C中当前子块的相邻子块的定义, 在这种分布情况下, 当前子块 (如图 5所示的子块 0, 2、 8、 10的情况) 的周围具有上边和右上方向的 8个 参考像素点 (A、 B、 C、 D、 E、 F、 G、 H ), 此时:
S0=mean(U,K,L), Sl=128, S2=mean(S0,Sl), S3=128; ipmode_left=M0,
Figure imgf000006_0002
Where mean means averaging, for example S0=mean(U,K,L) means SO is the average of I, J, K, L, and M0 means the frame of the left block when the left block of the adjacent sub-block exists The intra prediction mode value is M0, where the value of S2 is artificially set/calculated due to the absence of the upper right block, that is, S2=mean(S0, S1) is an average value of SO and S1 based on the empirical value S2, of course. In the actual case, S2 can also select an appropriate value in the range of 0 to 255 pixels; in the third distribution case, the macroblock is distributed as shown in (c) of FIG. 4, and the macroblock C is located in the first column of the frame, according to the above The definition of the adjacent sub-block of the current sub-block in the macro block C. In this distribution case, the current sub-block (as in the case of sub-blocks 0, 2, 8, and 10 shown in FIG. 5) has an upper side and an upper right side. 8 directions Reference pixels (A, B, C, D, E, F, G, H), at this time:
当相邻子块的上块、 右上块存在, 而左块、 左上块不存在时, 有如下表示 方式:  When the upper block and the upper right block of the adjacent sub-block exist, and the left block and the upper left block do not exist, the following manner is expressed:
S0=128, Sl=mean(A,B,C,D), S2=mean(E,F,G,H) , S3=128; ipmode_up=Ml , ipmode_up_right=M2 , ipmode_left=-l , ipmode_up_left=-l , 其中 Ml表示当相邻 子块的上块存在时, 上块的帧内预测模式值为 Ml ; M2表示当相邻子块的右上 块存在时, 右上块的帧内预测模式值为 M2;  S0=128, Sl=mean(A,B,C,D), S2=mean(E,F,G,H), S3=128; ipmode_up=Ml, ipmode_up_right=M2, ipmode_left=-l, ipmode_up_left=- l , where M1 indicates that when the upper block of the adjacent sub-block exists, the intra prediction mode value of the upper block is M1; M2 indicates that when the upper right block of the adjacent sub-block exists, the intra prediction mode value of the upper right block is M2 ;
第四种分布情况, 宏块如图 4中 (d )的分布, 宏块 C处于帧的中部, 按照 上述对宏块 C中当前子块的相邻子块的定义, 在这种分布情况下, 当前子块的 周围具有完整的参考相素点, 此时:  In the fourth distribution case, the macroblock is distributed as shown in (d) of FIG. 4, and the macroblock C is in the middle of the frame. According to the above definition of the adjacent sub-block of the current sub-block in the macroblock C, in the case of such a distribution , the current sub-block has a complete reference phase point around it, at this time:
当相邻子块的左块、 上块、 右上块、 左上块全部存在时, 有如下表示方式: When the left block, the upper block, the upper right block, and the upper left block of the adjacent sub-blocks all exist, the following representation is performed:
S0=mean(U,K,L) , Sl=mean(A,B,C,D) , S2=mean(E,F,G,H) , S3=X ; ipmode_left=M0 ,
Figure imgf000007_0001
, 其中左上块的帧内预测模式值为 Μ3;
S0=mean(U,K,L) , Sl=mean(A,B,C,D) , S2=mean(E,F,G,H) , S3=X ; ipmode_left=M0 ,
Figure imgf000007_0001
, wherein the intra prediction mode value of the upper left block is Μ3;
另外, 第五种分布情况为宏块 C处于帧的最后一列, 按照上述对宏块 C中 当前子块的相邻子块的定义, 在这种分布情况下, 当前子块只有右上块不存在, 则此时 E、 F、 G、 H 的值可以根据经验分别人为设定 /计算为 E=mean(A,I) , F=mean(B,J), G=mean(C,K), H=mean(D,L), 且右上块的帧内预测模式值可设定 为 M3 , 此时:  In addition, the fifth distribution case is that the macroblock C is in the last column of the frame. According to the definition of the adjacent sub-block of the current sub-block in the macroblock C, in the case of the distribution, only the upper right block of the current sub-block does not exist. , then the values of E, F, G, and H can be manually set/calculated as E=mean(A,I), F=mean(B,J), G=mean(C,K), according to experience. H=mean(D,L), and the intra prediction mode value of the upper right block can be set to M3, at this time:
当相邻子块的左块、 上块、 右上块、 左上块全部存在(其中右上块信息为 人为设定的) 时, 有如下表示方式:  When the left block, the upper block, the upper right block, and the upper left block of the adjacent sub-blocks all exist (where the upper right block information is artificially set), the following representation is as follows:
S0=mean(U,K,L) , Sl=mean(A,B,C,D) , S2=mean(E,F,G,H) , S3=X ; ipmode_left=M0 ,
Figure imgf000007_0002
, 其中由 E、 F、 G、 H的取值可知 S2的取值其实就是 SO与 SI的平均值;
S0=mean(U,K,L) , Sl=mean(A,B,C,D) , S2=mean(E,F,G,H) , S3=X ; ipmode_left=M0 ,
Figure imgf000007_0002
, where the values of E, F, G, and H show that the value of S2 is actually the average value of SO and SI;
该第五种分布情况可归结在上述第四种分布情况中。  This fifth distribution can be attributed to the fourth distribution described above.
值得说明的是, 上述根据所述各相邻子块中与所述当前子块相邻的参考像 素值, 得到所述各相邻子块的重构像素值, 可以是取其中对应的一参考像素值 作为各相邻子块的重构像素值,不一定是求参考像素均值 (通过 mean步骤得到);  It is to be noted that, according to the reference pixel values adjacent to the current sub-block in each adjacent sub-block, the reconstructed pixel value of each adjacent sub-block is obtained, which may be a corresponding reference. The pixel value is used as the reconstructed pixel value of each adjacent sub-block, and is not necessarily the reference pixel mean value (obtained by the mean step);
203 , 根据所述各相邻子块的预测模式方向判定出所述当前子块的纹理方 向, 并根据所述各相邻子块的重构像素值之间的关系进一步判定所述当前子块 的纹理方向, 具体可结合如图 4所示的所述当前子块所属宏块的 4种分布情况, 有如下流程: 203. Determine a texture direction of the current sub-block according to a prediction mode direction of each adjacent sub-block, and further determine the current sub-block according to a relationship between the reconstructed pixel values of the adjacent sub-blocks. The texture direction may be specifically combined with the four distributions of the macroblock to which the current sub-block belongs as shown in FIG. 4, and the following process is performed:
针对上述第一种分布情况, 由于当前子块周围没有相关的参考像素, 因此 当前子块的像素预测值为 128;  For the first distribution case described above, since there is no relevant reference pixel around the current sub-block, the pixel prediction value of the current sub-block is 128;
针对上述第二种分布情况, 由于仅有相邻子块的左块存在, 此时可将左块 的预测模式方向 (ipmode ) 和各相邻子块的重构像素值作为参考信息, 按照不 同的预测模式方向及 SO, SI , S2之间的关系来判定当前子块的纹理方向, 可根 据左块的帧内预测模式值 M0确定当前子块的大致的纹理方向, 再根据 S0、 SI 之间的大小或根据 SO与 S1绝对差值与预设定阈值的关系, 从所述大致的纹理 方向中判定出一个更准确的纹理方向;  For the second distribution case described above, since only the left block of the adjacent sub-block exists, the prediction mode direction (ipmode) of the left block and the reconstructed pixel value of each adjacent sub-block may be used as reference information, according to different The prediction mode direction and the relationship between SO, SI, S2 determine the texture direction of the current sub-block, and the approximate texture direction of the current sub-block can be determined according to the intra prediction mode value M0 of the left block, and then according to S0, SI Between the size or the relationship between the absolute difference between SO and S1 and a preset threshold, a more accurate texture direction is determined from the approximate texture direction;
针对上述第三种分布情况, 由于有相邻子块的上块与右上块的存在, 此时 可将上块、 右上块的预测模式方向 (ipmode )和各相邻子块的重构像素值作为 参考信息, 按照不同的预测模式方向及 SO, SI , S2之间的关系来判定当前子块 的纹理方向, 根据上块、 右上块的帧内预测模式值 Ml、 M2确定当前子块的大 致的纹理方向, 再根据 Sl、 S2之间的大小或根据 SI与 S2绝对差值与预设定阈 值的关系, 从所述大致的纹理方向中判定出一个更准确的纹理方向;  For the third distribution case described above, due to the existence of the upper block and the upper right block of the adjacent sub-block, the prediction mode direction (ipmode) of the upper block and the upper right block and the reconstructed pixel value of each adjacent sub-block may be used. As the reference information, the texture direction of the current sub-block is determined according to the relationship between the different prediction mode directions and SO, SI, S2, and the approximate sub-block is determined according to the intra prediction mode values M1 and M2 of the upper block and the upper right block. The texture direction, and then according to the size between Sl, S2 or according to the relationship between the absolute difference between SI and S2 and the preset threshold, a more accurate texture direction is determined from the approximate texture direction;
针对上述第四种分布情况(包括第五种分布情况),由于有相邻子块的左块、 上块、 右上块、 左上块的存在, 此时可将左块、 上块、 右上块、 左上块的预测 模式方向 (ipmode )和各相邻子块的重构像素值作为参考信息, 按照不同的预 测模式方向及 SO, SI , S2、 S3之间的关系来判定当前子块的纹理方向, 根据左 块、 上块、 右上块、 左上块的帧内预测模式值 M0、 Ml、 M2、 M3确定当前子 块的大致的纹理方向, 再根据 SO和 Sl、 SO和 S2、 SO和 S3、 SI和 S2、 SI和 S3或 S2和 S3的大小关系, 或根据 SO和 Sl、 SO和 S2、 SO和 S3、 SI和 S2、 SI和 S3或 S2和 S3之间绝对差值与预设定阈值的关系, 从所述大致的纹理方 向中判定出一个更准确的纹理方向;  For the fourth distribution case mentioned above (including the fifth distribution case), since there are left block, upper block, upper right block, and upper left block of adjacent sub-blocks, the left block, the upper block, the upper right block, and the upper block may be The prediction mode direction (ipmode) of the upper left block and the reconstructed pixel value of each adjacent sub-block are used as reference information, and the texture direction of the current sub-block is determined according to the relationship between different prediction mode directions and SO, SI, S2, and S3. Determining the approximate texture direction of the current sub-block according to the intra prediction mode values M0, M1, M2, M3 of the left block, the upper block, the upper right block, and the upper left block, and then according to SO and S1, SO and S2, SO and S3, Size relationship between SI and S2, SI and S3 or S2 and S3, or according to SO and Sl, SO and S2, SO and S3, SI and S2, SI and S3 or S2 and S3 absolute difference and preset threshold a relationship that determines a more accurate texture direction from the approximate texture direction;
另外, 根据所述相邻子块与当前子块的相关性, 在纹理方向的选择上可考 虑如下规则: 以左块的预测模式方向为最优, 其次为上块的预测模式方向, 第 三为右上块的预测模式方向, 最后为左上块的预测模式方向;  In addition, according to the correlation between the adjacent sub-block and the current sub-block, the following rules may be considered in the selection of the texture direction: the prediction mode direction of the left block is optimal, followed by the prediction mode direction of the upper block, and the third The prediction mode direction of the upper right block, and finally the prediction mode direction of the upper left block;
204, 根据所述进一步判定的纹理方向, 由所述各相邻子块的重构像素值确 定所述当前子块的像素预测值, 即根据预测的纹理分布, 使当前子块的像素预 测值等于所述各相邻子块的重构像素值中的一个或其结合的均值,结合上面 303 所述的内容, 具体有如下示例, 以使当前子块的像素预测值等于所述各相邻子 块的重构像素值中的一个为例但不仅限于此: 204. Determine, according to the further determined texture direction, a pixel prediction value of the current sub-block by the reconstructed pixel value of each adjacent sub-block, that is, pre-predicting a pixel of the current sub-block according to the predicted texture distribution. The measured value is equal to one of the reconstructed pixel values of the adjacent sub-blocks or a combination thereof, and the content described in the above 303 is specifically as follows, so that the pixel prediction value of the current sub-block is equal to the respective One of the reconstructed pixel values of adjacent sub-blocks is an example but is not limited to this:
针对上述第二种分布情况并考虑 203 中的对应内容, 由于仅有相邻子块的 左块存在, 当 M0为水平方向, 而 SO小于 S1 , 或绝对差值 abs(s0,sl)小于某一 设定的阈值, 则所述当前子块的像素预测值为 SO;  For the above second distribution case and considering the corresponding content in 203, since only the left block of the adjacent sub-block exists, when M0 is horizontal, and SO is smaller than S1, or absolute difference abs(s0, sl) is smaller than some a set threshold, the pixel prediction value of the current sub-block is SO;
针对上述第三种分布情况并考虑 203 中的对应内容, 由于有相邻子块的上 块与右上块的存在,当 Ml等于下左对角线方向,M2等于上水平方向, abs(Sl,S2) 大于某一设定的阈值, 则所述当前子块的像素预测值为 S2;  For the above third distribution case and considering the corresponding content in 203, since there is the existence of the upper block and the upper right block of the adjacent sub-block, when M1 is equal to the lower left diagonal direction, M2 is equal to the upper horizontal direction, abs(S1, S2) is greater than a certain threshold, then the pixel prediction value of the current sub-block is S2;
针对上述第四种分布情况(包括第五种分布情况)并考虑 203 中的对应内 容, 由于有相邻子块的左块、 上块、 右上块、 左上块的存在, 当 M0、 Ml、 M2、 M3均为 DC预测值, abs(S0,S3)小于某一设定的阈值且 abs(Sl,S2)小于该阈值, 则所述当前子块的像素预测值为 S3。  For the fourth distribution case mentioned above (including the fifth distribution case) and considering the corresponding content in 203, since there are left block, upper block, upper right block, and upper left block of adjacent sub-blocks, when M0, Ml, M2 exist And M3 is a DC prediction value. If abs(S0, S3) is less than a certain threshold and abs(S1, S2) is less than the threshold, the pixel prediction value of the current sub-block is S3.
通过实施如图 2所示的本发明实施例的帧内预测的方法, 对获取帧内一当 前子块进行像素值预测, 当所述左块、 上块、 右上块和左上块中的一种或多种 的组合存在时, 根据所述各相邻块中与所述当前块相邻的参考像素值, 得到所 述各相邻块的重构像素值, 并根据所述各相邻子块的预测模式方向判定出所述 当前子块的纹理方向, 并根据所述各相邻子块的重构像素值之间的关系进一步 判定所述当前子块的纹理方向, 最后, 根据所述进一步判定的纹理方向, 由所 述各相邻子块的重构像素值确定所述当前子块的像素预测值, 从而可充分利用 当前子块周围的参考像素以及相邻子块的预测模式信息, 维持了当前子块的纹 理分布特性, 在不增加复杂度的条件下, 提高了当前子块像素预测的准确性, 有效地提高了编码效率。  Performing, by performing the intra prediction method of the embodiment of the present invention as shown in FIG. 2, performing pixel value prediction on a current sub-block in the acquisition frame, when one of the left block, the upper block, the upper right block, and the upper left block is used. Or a plurality of combinations, according to the reference pixel values adjacent to the current block in each neighboring block, obtaining reconstructed pixel values of the neighboring blocks, and according to the adjacent sub-blocks The prediction mode direction determines a texture direction of the current sub-block, and further determines a texture direction of the current sub-block according to a relationship between the reconstructed pixel values of the adjacent sub-blocks, and finally, according to the further Determining the texture direction, determining a pixel prediction value of the current sub-block by the reconstructed pixel value of each adjacent sub-block, so that the reference pixel around the current sub-block and the prediction mode information of the adjacent sub-block may be fully utilized, The texture distribution characteristics of the current sub-block are maintained, and the accuracy of the current sub-block pixel prediction is improved without increasing the complexity, and the coding efficiency is effectively improved.
作为一种实施方式, 当不存在所述相邻块的预测模式方向时, 例如所述相 邻块的预测模式全为 DC预测模式或所述相邻块为帧间块时, 上述 203、 204可 替换为如下步骤:  As an implementation manner, when there is no prediction mode direction of the neighboring block, for example, when the prediction mode of the neighboring block is all DC prediction mode or the neighboring block is an inter block, the foregoing 203, 204 Can be replaced by the following steps:
根据所述各相邻块的重构像素值之间的关系判定所述当前块的纹理方向; 根据所述判定的纹理方向, 由所述各相邻块的重构像素值确定所述当前块 的像素预测值, 具体地, 由所述各相邻块的重构像素值确定所述当前块的像素 预测值可以是使当前子块的像素预测值等于所述各相邻子块的重构像素值中的 一个或其结合的均值。 Determining a texture direction of the current block according to a relationship between reconstructed pixel values of the neighboring blocks; determining, according to the determined texture direction, the current block by reconstructed pixel values of the neighboring blocks a pixel prediction value, specifically, determining, by the reconstructed pixel value of each neighboring block, a pixel prediction value of the current block may be such that a pixel prediction value of the current sub-block is equal to a reconstruction of the neighboring sub-blocks In the pixel value The mean of one or a combination thereof.
作为一种实施方式, 当编码端得到当前子块真实的像素值(而非预测的像 素值) 时, 可在由上述方法得到的多个相邻子块的重构像素值中的一个或其结 合的均值中选择与所述真实的像素值最接近的预测的像素值, 此时则需要在编 码端增加相应的标识, 例如 DC_sd_Idx标识, 如下的宏块预测像素值变换语法 修改示意表 1所示:  As an implementation manner, when the encoding end obtains the true pixel value of the current sub-block (instead of the predicted pixel value), one of the reconstructed pixel values of the plurality of adjacent sub-blocks obtained by the above method or The predicted pixel value closest to the real pixel value is selected from the combined mean values. At this time, a corresponding identifier needs to be added at the encoding end, for example, a DC_sd_Idx identifier, and the following macroblock prediction pixel value conversion syntax modification is shown in Table 1. Show:
Figure imgf000010_0001
Figure imgf000010_0001
表 1  Table 1
如果所述当前子块的像素预测值为左块对应的像素预测值, 则 If the pixel prediction value of the current sub-block is a pixel prediction value corresponding to the left block,
DC_sel_Idx=0; 如果所述当前子块的像素预测值为上块对应的像素预测值, 则 DC_sel_Idx=l;如果所述当前子块的像素预测值为右上块对应的像素预测值,则 DC_sel_Idx=2;如果所述当前子块的像素预测值为左上块对应的像素预测值,则 DC_sel_Idx=3等等。 DC_sel_Idx=0; if the pixel prediction value of the current sub-block is a pixel prediction value corresponding to the upper block, DC_sel_Idx=l; if the pixel prediction value of the current sub-block is a pixel prediction value corresponding to the upper right block, DC_sel_Idx= 2; if the pixel prediction value of the current sub-block is a pixel prediction value corresponding to the upper left block, DC_sel_Idx=3 and so on.
作为一种实施方式, 当编码端由上述方法得到当前子块的像素预测值, 并 得到当前子块真实的像素值时, 可进一步得到所述当前子块的像素预测值与所 述真实的像素值的差值, 通过码表中对应的标识进行指示并传递, 同时传递所 述当前子块的像素预测值, 解码端通过接收的所述差值及像素预测值则可还原 为所述真实的像素值。 As an implementation manner, when the encoding end obtains the pixel prediction value of the current sub-block by the above method, and When the current pixel value of the current sub-block is obtained, the difference between the pixel prediction value of the current sub-block and the real pixel value may be further obtained, indicated and transmitted by the corresponding identifier in the code table, and the current The pixel prediction value of the sub-block, the decoded end can be restored to the real pixel value by the received difference value and the pixel prediction value.
图 6是本发明实施例的帧内预测装置的结构示意图, 参照该图, 该装置主 要包括:  6 is a schematic structural diagram of an intra prediction apparatus according to an embodiment of the present invention. Referring to the figure, the apparatus mainly includes:
获取单元 61 , 获取进行像素值预测的帧内一当前块;  The obtaining unit 61 is configured to acquire a current block in the frame for performing pixel value prediction;
预测单元 62, 根据所述当前块的相邻块的预测模式方向和所述相邻块中的 参考像素值, 确定所述当前块纹理方向下的所述当前块的像素预测值。  The prediction unit 62 determines a pixel prediction value of the current block in the current block texture direction according to a prediction mode direction of a neighboring block of the current block and a reference pixel value in the neighboring block.
实施本发明实施例提供的帧内预测装置, 在进行当前块像素值预测时可保 持当前块的纹理分布的连续特性, 保证预测的准确性。  The intra prediction apparatus provided by the embodiment of the present invention can maintain the continuous characteristic of the texture distribution of the current block when performing the current block pixel value prediction, and ensure the accuracy of the prediction.
参见图 7, 为本发明帧内预测装置又一实施例的结构示意图。  FIG. 7 is a schematic structural diagram of still another embodiment of an intra prediction apparatus according to the present invention.
本实施例中, 该装置包括:  In this embodiment, the device includes:
获取单元 71、预测单元 72,其中预测单元 72包括像素预测值获得单元 721、 纹理方向判定单元 722、 确定单元 723 , 所述确定单元 723还包括第一确定单元 7231、 第二确定单元 7232, 其中各单元功能如下述:  The obtaining unit 71, the prediction unit 72, wherein the prediction unit 72 includes a pixel prediction value obtaining unit 721, a texture direction determining unit 722, and a determining unit 723, the determining unit 723 further includes a first determining unit 7231 and a second determining unit 7232, wherein The function of each unit is as follows:
获取单元 71 , 获取进行像素值预测的帧内一当前块;  The obtaining unit 71 is configured to acquire a current block in the frame for performing pixel value prediction;
像素预测值获得单元 721 , 结合所述当前块在帧内的分布情况, 当与当前块 相邻的相邻块: 左块、 上块、 右上块和左上块中的一种或多种的组合存在时, 根据所述各相邻块中与所述当前块相邻的参考像素值, 得到所述各相邻块的重 构像素值, 其中相邻块与当前块的位置关系可参照图 4所示, 所述各种分布情 况的处理在上述对应内容提及, 此处不再赘述;  a pixel prediction value obtaining unit 721, in combination with the distribution of the current block in a frame, when a neighboring block adjacent to the current block: a combination of one or more of a left block, an upper block, an upper right block, and an upper left block When present, the reconstructed pixel values of the neighboring blocks are obtained according to reference pixel values adjacent to the current block in the neighboring blocks, where the positional relationship between the neighboring block and the current block can be referred to FIG. As shown, the processing of the various distribution cases is mentioned in the above corresponding content, and details are not described herein again;
纹理方向判定单元 722,才 据所述各相邻块的预测模式方向判定出所述当前 块的纹理方向, 并根据所述各相邻块的重构像素值之间的关系进一步判定所述 当前块的纹理方向, 具体地, 可先根据所述各相邻块的预测模式方向判定出当 前子块的大致的纹理方向, 再根据所述各相邻块的重构像素值之间的关系, 从 所述大致的纹理方向中判定出一个更准确的纹理方向, 其中, 所述各相邻块的 重构像素值之间的关系为其中至少一对相邻块对应的像素预测值的绝对差值与 预设定阈值的关系, 或其中至少一对相邻块对应的像素预测值的大小关系; 第一确定单元 7231 , 根据所述进一步判定的纹理方向, 由所述各相邻块的 重构像素值确定所述当前块的像素预测值; The texture direction determining unit 722 determines the texture direction of the current block according to the prediction mode direction of each neighboring block, and further determines the current according to the relationship between the reconstructed pixel values of the adjacent blocks. Specifically, the texture direction of the block may be determined according to the prediction mode direction of each neighboring block, and then according to the relationship between the reconstructed pixel values of the adjacent blocks. Determining a more accurate texture direction from the approximate texture direction, wherein a relationship between reconstructed pixel values of each adjacent block is an absolute difference of pixel prediction values corresponding to at least one pair of adjacent blocks a relationship between a value and a preset threshold, or a magnitude relationship of pixel prediction values corresponding to at least one pair of adjacent blocks; a first determining unit 7231, according to the further determined texture direction, by the neighboring blocks Reconstructing a pixel value to determine a pixel prediction value of the current block;
第二确定单元 7232, 当所述左块、 上块、 右上块和左上块均不存在时, 确 定所述当前块的像素预测值为一固定值, 该固定值可以是现有技术中的经验值 128, 该第二确定单元 7232可根据实际情况选择采用。  The second determining unit 7232 determines that the pixel prediction value of the current block is a fixed value when the left block, the upper block, the upper right block, and the upper left block are not present, and the fixed value may be an experience in the prior art. The value of 128, the second determining unit 7232 can be selected according to the actual situation.
作为一种实施方式, 当不存在所述相邻块的预测模式方向时, 例如所述相 邻块的预测模式全为 DC预测模式或所述相邻块为帧间子块 /块 /宏块时, 所述纹 理方向判定单元 722还用于根据所述各相邻块的重构像素值之间的关系判定所 述当前块的纹理方向, 所述确定单元 723还用于根据所述判定的纹理方向, 由 所述各相邻块的重构像素值确定所述当前块的像素预测值。  As an implementation manner, when there is no prediction mode direction of the neighboring block, for example, the prediction mode of the neighboring block is all DC prediction mode or the neighboring block is an inter-subblock/block/macroblock The texture direction determining unit 722 is further configured to determine a texture direction of the current block according to a relationship between the reconstructed pixel values of the neighboring blocks, where the determining unit 723 is further configured to be used according to the determining a texture direction, the pixel prediction value of the current block is determined by reconstructed pixel values of the neighboring blocks.
需要说明的有如下几点:  The following points need to be explained:
1、 所述相邻块的参考像素点的设定可根据实际情况选择, 不限于采用相邻 块中与当前块相邻接的像素点;  1. The setting of the reference pixel of the adjacent block may be selected according to actual conditions, and is not limited to adopting a pixel point adjacent to the current block in the adjacent block;
2、 所述当前块可以是(4像素 X 4像素)、 (8像素 χ 8像素)或(16像素 X 16像素) 的规格。  2. The current block may be a specification of (4 pixels X 4 pixels), (8 pixels χ 8 pixels), or (16 pixels X 16 pixels).
另外, 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分 流程, 是可以通过程序来指令相关的硬件来完成, 所述的程序可存储于一计算 机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施例的流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体(Read-Only Memory, ROM )或随机存储记忆体(Radom Access Memory, RAM )等。  In addition, one of ordinary skill in the art can understand that all or part of the process in implementing the foregoing embodiments may be completed by a program instructing related hardware, and the program may be stored in a computer readable storage medium. The program, when executed, may include the flow of an embodiment of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述是本发明的具体实施方式, 应当指出, 对于本技术领域的普通技 术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进和润饰, 这 些改进和润饰也视为本发明的保护范围。  The above is a specific embodiment of the present invention. 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. These improvements and retouchings are also considered. It is the scope of protection of the present invention.

Claims

权 利 要 求 Rights request
1、 一种帧内预测的方法, 其特征在于, 包括: A method for intra prediction, comprising:
获取进行像素值预测的帧内一当前块;  Obtaining a current block in the frame for performing pixel value prediction;
根据所述当前块的相邻块的预测模式方向和所述相邻块中的参考像素值, 确定所述当前块纹理方向下的所述当前块的像素预测值。  Determining, according to a prediction mode direction of the neighboring block of the current block and a reference pixel value in the neighboring block, a pixel prediction value of the current block in the current block texture direction.
2、 如权利要求 1所述的帧内预测的方法, 其特征在于, 所述相邻块包括与 所述当前块相邻的左块、 上块、 右上块和左上块中的一种或多种的组合, 则根 据所述当前块的相邻块的预测模式方向和所述相邻块中的参考像素值, 判定所 述当前块的纹理方, 确定所述当前块纹理方向下的所述当前块的像素预测值具 体为: 2. The method of intra prediction according to claim 1, wherein the neighboring block comprises one or more of a left block, an upper block, an upper right block, and an upper left block adjacent to the current block. And determining, according to a prediction mode direction of a neighboring block of the current block and a reference pixel value in the neighboring block, a texture side of the current block, determining the The pixel prediction value of the current block is specifically:
当所述左块、 上块、 右上块和左上块中的一种或多种的组合存在时, 根据 所述各相邻块中与所述当前块相邻的参考像素值, 得到所述各相邻块的重构像 素值;  When a combination of one or more of the left block, the upper block, the upper right block, and the upper left block exists, obtaining the respective reference values according to reference pixel values adjacent to the current block in each adjacent block Reconstructed pixel values of adjacent blocks;
根据所述各相邻块的预测模式方向判定出所述当前块的纹理方向, 并根据 所述各相邻块的重构像素值之间的关系进一步判定所述当前块的纹理方向; 根据所述进一步判定的纹理方向, 由所述各相邻块的重构像素值确定所述 当前块的像素预测值。  Determining a texture direction of the current block according to a prediction mode direction of each neighboring block, and further determining a texture direction of the current block according to a relationship between the reconstructed pixel values of the neighboring blocks; Determining the determined texture direction, determining a pixel prediction value of the current block from reconstructed pixel values of the neighboring blocks.
3、 如权利要求 1所述的帧内预测的方法, 其特征在于, 所述相邻块包括与 所述当前块相邻的左块、 上块、 右上块和左上块中的一种或多种的组合, 当不 存在所述相邻块的预测模式方向时, 则根据所述当前块的相邻块的预测模式方 向和所述相邻块中的参考像素值, 确定所述当前块纹理方向下的所述当前块的 像素预测值具体为: 3. The method of intra prediction according to claim 1, wherein the neighboring block comprises one or more of a left block, an upper block, an upper right block, and an upper left block adjacent to the current block. Combination, when there is no prediction mode direction of the neighboring block, determining the current block texture according to a prediction mode direction of a neighboring block of the current block and a reference pixel value in the neighboring block The pixel prediction value of the current block in the direction is specifically:
当所述左块、 上块、 右上块和左上块中的一种或多种的组合存在时, 根据 所述各相邻块中与所述当前块相邻的参考像素值, 得到所述各相邻块的重构像 素值;  When a combination of one or more of the left block, the upper block, the upper right block, and the upper left block exists, obtaining the respective reference values according to reference pixel values adjacent to the current block in each adjacent block Reconstructed pixel values of adjacent blocks;
根据所述各相邻块的重构像素值之间的关系判定所述当前块的纹理方向; 根据所述判定的纹理方向, 由所述各相邻块的重构像素值确定所述当前块 的像素预测值 Determining a texture direction of the current block according to a relationship between reconstructed pixel values of the neighboring blocks; determining, according to the determined texture direction, the current block by reconstructed pixel values of the neighboring blocks Pixel prediction
4、如权利要求 2或 3所述的帧内预测的方法,其特征在于,该方法还包括: 当所述左块、 上块、 右上块和左上块均不存在时, 确定所述当前块的像素 预测值为一固定值。 The method of intra prediction according to claim 2 or 3, wherein the method further comprises: determining, when the left block, the upper block, the upper right block, and the upper left block are not present, determining the current block The pixel prediction value is a fixed value.
5、 如权利要求 2或 3所述的帧内预测的方法, 其特征在于, 所述根据所述 各相邻块中与所述当前块相邻的参考像素值, 得到所述各相邻块的重构像素值 具体为: The method of intra prediction according to claim 2 or 3, wherein the obtaining the neighboring blocks according to reference pixel values adjacent to the current block in each neighboring block The reconstructed pixel value is specifically:
当所述左块存在, 所述上块、 右上块、 左上块不存在时, 计算所述左块中 与所述当前块相邻的参考像素值的平均值, 以该平均值作为所述左块的重构像 素值; 以一固定值作为所述上块的重构像素值; 以所述左块的重构像素值和所 述上块的重构像素值的平均值, 作为所述右上块的重构像素值; 以所述固定值 作为所述左上块的重构像素值;  When the left block exists, the upper block, the upper right block, and the upper left block do not exist, an average value of reference pixel values adjacent to the current block in the left block is calculated, and the average value is used as the left a reconstructed pixel value of the block; a fixed value as a reconstructed pixel value of the upper block; an average value of the reconstructed pixel value of the left block and a reconstructed pixel value of the upper block as the upper right a reconstructed pixel value of the block; using the fixed value as a reconstructed pixel value of the upper left block;
当所述上块、 右上块存在, 所述左块、 左下块不存在时, 以所述固定值作 为所述左块的重构像素值; 计算所述上块中与所述当前块相邻的参考像素值的 平均值, 以该平均值作为所述上块的重构像素值; 计算所述右上块中与所述当 前块相邻的参考像素值的平均值, 以该平均值作为所述右上块对应的重构像素 值; 以所述固定值作为所述左上块的重构像素值;  When the upper block and the upper right block exist, and the left block and the lower left block do not exist, the fixed value is used as a reconstructed pixel value of the left block; and the upper block is adjacent to the current block. An average value of reference pixel values, using the average value as a reconstructed pixel value of the upper block; calculating an average value of reference pixel values adjacent to the current block in the upper right block, using the average value as a Reconstructing pixel values corresponding to the upper right block; using the fixed value as the reconstructed pixel value of the upper left block;
当所述左块、 上块、 右上块和左上块均存在时, 计算所述左块中与所述当 前块相邻的参考像素值的平均值, 以该平均值作为所述左块的重构像素值; 计 算所述上块中与所述当前块相邻的参考像素值的平均值, 以该平均值作为所述 上块的重构像素值; 计算所述右上块中与所述当前块相邻的参考像素值的平均 值, 以该平均值作为所述右上块的重构像素值; 以所述左上块中与所述当前块 相邻的一参考像素值, 作为所述左上块的重构像素值;  When the left block, the upper block, the upper right block, and the upper left block are both present, an average value of reference pixel values adjacent to the current block in the left block is calculated, and the average value is used as the weight of the left block Constructing a pixel value; calculating an average value of reference pixel values adjacent to the current block in the upper block, using the average value as a reconstructed pixel value of the upper block; calculating the current upper right block and the current An average value of the reference pixel values adjacent to the block, the average value being used as the reconstructed pixel value of the upper right block; and a reference pixel value adjacent to the current block in the upper left block as the upper left block Reconstructed pixel value;
当所述左块、 上块、 左上块存在, 所述右上块不存在时, 计算所述左块中 与所述当前块相邻的参考像素值的平均值, 以该平均值作为所述左块的重构像 素值; 计算所述上块中与所述当前块相邻的参考像素值的平均值, 以该平均值 作为所述上块的重构像素值; 以所述左块的重构像素值和所述上块的重构像素 值的平均值, 作为所述右上块的重构像素值; 以所述左上块中与所述当前块相 邻的一参考像素值, 作为所述左上块的重构像素值。 When the left block, the upper block, and the upper left block exist, and the upper right block does not exist, an average value of reference pixel values adjacent to the current block in the left block is calculated, and the average value is used as the left Reconstructing a pixel value of the block; calculating an average value of the reference pixel values adjacent to the current block in the upper block, using the average value as a reconstructed pixel value of the upper block; Constructing an average value of the pixel value and the reconstructed pixel value of the upper block as a reconstructed pixel value of the upper right block; in the upper left block and the current block A reference pixel value of the neighbor is used as the reconstructed pixel value of the upper left block.
6、 如权利要求 2所述的帧内预测的方法, 其特征在于, 所述根据所述各相 邻块的重构像素值之间的关系进一步判定所述当前块的纹理方向具体为: The method of intra prediction according to claim 2, wherein the determining, according to the relationship between the reconstructed pixel values of the adjacent blocks, the texture direction of the current block is specifically:
在根据所述各相邻块的预测模式方向判定出所述当前块的纹理方向的基础 上, 根据所述至少一对相邻块的重构像素值的绝对差值与预设定阈值的关系进 一步判定所述当前块的纹理方向, 或  And determining, according to a prediction mode direction of each neighboring block, a relationship between an absolute difference of reconstructed pixel values of the at least one pair of adjacent blocks and a preset threshold. Further determining the texture direction of the current block, or
在根据所述各相邻块的预测模式方向判定出所述当前块的纹理方向的基础 上, 根据所述至少一对相邻块的重构像素值的大小关系进一步判定所述当前块 的纹理方向。  Determining the texture of the current block according to the magnitude relationship of the reconstructed pixel values of the at least one pair of neighboring blocks on the basis of determining the texture direction of the current block according to the prediction mode direction of each neighboring block. direction.
7、 如权利要求 4 所述的帧内预测的方法, 其特征在于, 所述固定值为 2 , 其中 bitdepth表示位深。 7. The intra prediction method according to claim 4, wherein the fixed value is 2, wherein bitdepth represents a bit depth.
8、 如权利要求 1至 3所述的帧内预测的方法, 其特征在于, 所述当前块为 ( 4像素 X 4像素)、 ( 8像素 X 8像素)或 ( 16像素 X 16像素) 的规格。 The method of intra prediction according to any one of claims 1 to 3, wherein the current block is (4 pixels X 4 pixels), (8 pixels X 8 pixels) or (16 pixels X 16 pixels) specification.
9、 一种帧内预测装置, 其特征在于, 包括: 9. An intra prediction apparatus, comprising:
获取单元, 获取进行像素值预测的帧内一当前块;  Obtaining a unit, acquiring a current block in the frame for performing pixel value prediction;
预测单元, 根据所述当前块的相邻块的预测模式方向和所述相邻块中的参 考像素值, 确定所述当前块纹理方向下的所述当前块的像素预测值。  And a prediction unit, determining, according to a prediction mode direction of the neighboring block of the current block and a reference pixel value in the neighboring block, a pixel prediction value of the current block in the current block texture direction.
10、 如权利要求 9所述的帧内预测装置, 其特征在于, 所述相邻块包括与 所述当前块相邻的左块、 上块、 右上块和左上块中的一种或多种的组合, 则所 述预测单元包括: 10. The intra prediction apparatus according to claim 9, wherein the neighboring block includes one or more of a left block, an upper block, an upper right block, and an upper left block adjacent to the current block. The combination of the prediction unit includes:
第一像素预测值获得单元, 当所述左块、 上块、 右上块和左上块中的一种 或多种的组合存在时, 根据所述各相邻块中与所述当前块相邻的参考像素值, 得到所述各相邻块的重构像素值;  a first pixel prediction value obtaining unit, when a combination of one or more of the left block, the upper block, the upper right block, and the upper left block exists, according to the neighboring block adjacent to the current block Referring to the pixel values, obtaining reconstructed pixel values of the neighboring blocks;
第一纹理方向判定单元, 根据所述各相邻块的预测模式方向判定出所述当 前块的纹理方向, 并根据所述各相邻块的重构像素值之间的关系进一步判定所 述当前块的纹理方向; a first texture direction determining unit, determining a texture direction of the current block according to a prediction mode direction of each adjacent block, and further determining a relationship according to a relationship between reconstructed pixel values of the adjacent blocks Describe the texture direction of the current block;
第一确定单元, 根据所述进一步判定的纹理方向, 由所述各相邻块的重构 像素值确定所述当前块的像素预测值。  The first determining unit determines a pixel prediction value of the current block from reconstructed pixel values of the neighboring blocks according to the further determined texture direction.
11、 如权利要求 9所述的帧内预测装置, 其特征在于, 所述相邻块包括与 所述当前块相邻的左块、 上块、 右上块和左上块中的一种或多种的组合, 当不 存在所述相邻块的预测模式方向时, 所述预测单元包括: 11. The intra prediction apparatus according to claim 9, wherein the neighboring block includes one or more of a left block, an upper block, an upper right block, and an upper left block adjacent to the current block. The combination unit, when there is no prediction mode direction of the neighboring block, the prediction unit includes:
第二像素预测值获得单元, 当所述左块、 上块、 右上块和左上块中的一种 或多种的组合存在时, 根据所述各相邻块中与所述当前块相邻的参考像素值, 得到所述各相邻块的重构像素值;  a second pixel prediction value obtaining unit, when a combination of one or more of the left block, the upper block, the upper right block, and the upper left block exists, according to the neighboring block adjacent to the current block Referring to the pixel values, obtaining reconstructed pixel values of the neighboring blocks;
第二纹理方向判定单元, 根据所述各相邻块的重构像素值之间的关系判定 所述当前块的纹理方向;  a second texture direction determining unit, determining a texture direction of the current block according to a relationship between reconstructed pixel values of the neighboring blocks;
第二确定单元, 根据所述判定的纹理方向, 由所述各相邻块的重构像素值 确定所述当前块的像素预测值。  The second determining unit determines, according to the determined texture direction, a pixel prediction value of the current block by the reconstructed pixel value of each neighboring block.
12、 如权利要求 10或 11所述的帧内预测装置, 其特征在于, 所述确定单 元包括: The intra prediction apparatus according to claim 10 or 11, wherein the determining unit comprises:
第一确定单元, 根据所述进一步判定的纹理方向, 由所述各相邻块的重构 像素值确定所述当前块的像素预测值;  a first determining unit, determining, according to the further determined texture direction, a pixel prediction value of the current block by a reconstructed pixel value of each neighboring block;
第二确定单元, 当所述左块、 上块、 右上块和左上块均不存在时, 确定所 述当前块的像素预测值为一固定值。  And a second determining unit, when none of the left block, the upper block, the upper right block, and the upper left block is present, determining that the pixel prediction value of the current block is a fixed value.
13、 如权利要求 12 所述的帧内预测装置, 其特征在于, 所述固定值为 2 , 其中 bitdepth表示位深。 13. The intra prediction apparatus according to claim 12, wherein the fixed value is 2, wherein bitdepth represents a bit depth.
14、 如权利要求 9至 11中任一项所述的帧内预测装置, 其特征在于, 所述 当前块为( 4像素 X 4像素)、 ( 8像素 X 8像素)或( 16像素 X 16像素)的规格。 The intra prediction apparatus according to any one of claims 9 to 11, wherein the current block is (4 pixels X 4 pixels), (8 pixels X 8 pixels) or (16 pixels X 16 Pixel) specifications.
PCT/CN2009/070057 2008-01-07 2009-01-07 An intra frame predicting method and apparatus WO2009089779A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2008100256563A CN101483780B (en) 2008-01-07 2008-01-07 Method and apparatus for intra-frame prediction
CN200810025656.3 2008-01-07

Publications (1)

Publication Number Publication Date
WO2009089779A1 true WO2009089779A1 (en) 2009-07-23

Family

ID=40880681

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/070057 WO2009089779A1 (en) 2008-01-07 2009-01-07 An intra frame predicting method and apparatus

Country Status (2)

Country Link
CN (1) CN101483780B (en)
WO (1) WO2009089779A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10198792B2 (en) 2009-10-14 2019-02-05 Dolby Laboratories Licensing Corporation Method and devices for depth map processing

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827270B (en) * 2009-12-16 2011-12-14 香港应用科技研究院有限公司 Method for acquiring pixel prediction value in intraframe prediction
KR20110068792A (en) * 2009-12-16 2011-06-22 한국전자통신연구원 Adaptive image coding apparatus and method
CN106851292A (en) * 2010-07-02 2017-06-13 数码士有限公司 For the method for the decoding image of infra-frame prediction
CN102685505B (en) * 2011-03-10 2014-11-05 华为技术有限公司 Intra-frame prediction method and prediction device
KR101383775B1 (en) 2011-05-20 2014-04-14 주식회사 케이티 Method And Apparatus For Intra Prediction
CN102857752B (en) * 2011-07-01 2016-03-30 华为技术有限公司 A kind of pixel prediction method and apparatus
CN103248892A (en) * 2013-05-07 2013-08-14 北京大学 Method and device for intra-frame prediction
CN104639939B (en) * 2015-02-04 2018-02-06 四川虹电数字家庭产业技术研究院有限公司 A kind of optimization method of infra-frame prediction MPM mechanism
US10390021B2 (en) 2016-03-18 2019-08-20 Mediatek Inc. Method and apparatus of video coding
CN110650337B (en) * 2018-06-26 2022-04-01 中兴通讯股份有限公司 Image encoding method, decoding method, encoder, decoder and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1497985A (en) * 2002-09-30 2004-05-19 ���ǵ�����ʽ���� Image code method and device and image decode method and device
CN1615020A (en) * 2004-11-10 2005-05-11 华中科技大学 Method for pridicting sortable complex in frame
CN1863317A (en) * 2005-10-12 2006-11-15 华为技术有限公司 Method of enhanced layer in-frame predicting method and encoding and decoding apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1711018A1 (en) * 2005-04-08 2006-10-11 Thomson Licensing Method and apparatus for encoding video pictures, and method and apparatus for decoding video pictures

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1497985A (en) * 2002-09-30 2004-05-19 ���ǵ�����ʽ���� Image code method and device and image decode method and device
CN1615020A (en) * 2004-11-10 2005-05-11 华中科技大学 Method for pridicting sortable complex in frame
CN1863317A (en) * 2005-10-12 2006-11-15 华为技术有限公司 Method of enhanced layer in-frame predicting method and encoding and decoding apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10198792B2 (en) 2009-10-14 2019-02-05 Dolby Laboratories Licensing Corporation Method and devices for depth map processing
US10417748B2 (en) 2009-10-14 2019-09-17 Dolby Laboratories Licensing Corporation Filtering and edge encoding and decoding for depth maps

Also Published As

Publication number Publication date
CN101483780A (en) 2009-07-15
CN101483780B (en) 2011-08-24

Similar Documents

Publication Publication Date Title
WO2009089779A1 (en) An intra frame predicting method and apparatus
KR102636372B1 (en) A method and an apparatus for decoding a video signal
KR102437751B1 (en) Method and apparatus for adaptive image decoding
US8005142B2 (en) Intraprediction encoding/decoding method and apparatus
US9001890B2 (en) Method and apparatus for video intraprediction encoding and decoding
US9503725B2 (en) Method and apparatus for encoding/decoding image for performing intraprediction using pixel value filtered according to prediction mode
JP5401009B2 (en) Video intra prediction encoding and decoding method and apparatus
KR100667808B1 (en) Method and apparatus for intra prediction encoding and decoding for image
KR101379187B1 (en) Image Encoding/Decoding Method and Apparatus Using Block Transformation
JP4987085B2 (en) Image encoding device and decoding device, image encoding method and decoding method, program thereof, and recording medium recording the program
KR101739579B1 (en) Video Encoding/Decoding Method and Apparatus Using Unit-level Parallel Intra Prediction
KR101433170B1 (en) Method of encoding and decoding using the directional information of the prediction mode of the adjacent blocks for estimating the intra prediction mode, and apparatus thereof
KR101712351B1 (en) Video Encoding/Decoding Method and Apparatus by Using Multiple Dimensional Integer Transform
WO2012167539A1 (en) Method and device for intra-frame prediction mode processing
KR20110018188A (en) Method and apparatus for image encoding, and method and apparatus for image decoding
US20130301730A1 (en) Spatial domain prediction encoding method, decoding method, apparatus, and system
KR20110073263A (en) Method and apparatus for encoding and decoding for intra prediction
KR101246119B1 (en) Intra prediction mode decision method and apparatus
KR20070077955A (en) Method and apparatus for deciding intra prediction mode
KR102286420B1 (en) A method and an apparatus for decoding a video signal
KR101630871B1 (en) Method and apparatus for deciding intra prediction mode
KR20120033951A (en) Methods for encoding/decoding image and apparatus for encoder/decoder using the same
KR20090037578A (en) Apparatus and method for encoding image data and for decoding image data
KR20130051466A (en) Method and apparatus for encoding video, and method and apparatus for decoding video

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

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

Country of ref document: EP

Kind code of ref document: A1