WO2012065448A1 - Intra frame prediction method for video encoding - Google Patents

Intra frame prediction method for video encoding Download PDF

Info

Publication number
WO2012065448A1
WO2012065448A1 PCT/CN2011/076354 CN2011076354W WO2012065448A1 WO 2012065448 A1 WO2012065448 A1 WO 2012065448A1 CN 2011076354 W CN2011076354 W CN 2011076354W WO 2012065448 A1 WO2012065448 A1 WO 2012065448A1
Authority
WO
WIPO (PCT)
Prior art keywords
coded
block
sub
pixel
mode
Prior art date
Application number
PCT/CN2011/076354
Other languages
French (fr)
Chinese (zh)
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 WO2012065448A1 publication Critical patent/WO2012065448A1/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/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
    • 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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties

Definitions

  • the present invention relates to the field of video coding, and in particular, to a video coding intra prediction method.
  • intra prediction is typically used to eliminate spatial redundancy of the image, and interframe prediction is used to eliminate temporal redundancy.
  • the intra-predicted frame is also used as the reference frame for inter-frame prediction, so its coding performance is particularly important.
  • conventional intra prediction is divided into luminance component prediction and chrominance component prediction. Since the video source has different image features, there are flat textures. Simple areas also have texture details. Based on this actual situation, the intra prediction of conventional luminance is also divided into 16x16 luma prediction suitable for relatively flat regions and 4x4 luma prediction mode suitable for texture information.
  • the human eye since the human eye is sensitive to luminance information, it has relatively weak sensitivity to chrominance, and chromaticity prediction design is generally simple.
  • the conventional spatial domain intra prediction method only uses the nearest neighbor pixel encoded in the current block for prediction, and performs intra prediction. On the one hand, it only considers the correlation between the pixel of the current coding block and its encoded neighboring pixels, and ignores The correlation between the predicted pixel and the encoded neighboring pixel will decrease as the distance is further away. On the other hand, it does not consider the image features, which makes it impossible to eliminate the spatial redundancy when the video source has extremely similar regions, thus restricting the optimization of the compression performance.
  • An object of the present invention is to provide a video coding intra prediction method, which aims to solve the problem that the correlation between the coded pixel and the adjacent coded pixel is reduced as the distance is far away.
  • the characteristics, and the image features are not considered, so that when the video source has extremely similar regions, the spatial redundancy cannot be eliminated to the maximum extent, which restricts the optimization implementation of the compression performance.
  • the method of the embodiment of the present invention is implemented by the video coding intra prediction method, where the method includes:
  • Different brightness predictions are used according to image features, degree of association of coded pixels with adjacent coded pixels, and secondary neighbor coded pixel information;
  • Sub-block-based chroma intra prediction is used to perform chromaticity prediction using different pixels for different coded sub-blocks according to the degree of association between the pixels of the current coded sub-block and the adjacent coded pixels.
  • the prediction of the 16x16 luma block is specifically: using the frame ftH_Skip, V_Skip mode, combining the image feature and the degree of association between the coded pixel and the adjacent coded pixel, using the first fade mode and the first progressive DC mode prediction.
  • the prediction of the 4 ⁇ 4 luma block is specifically performed according to the degree of association between the encoded pixel and the encoded neighboring pixel and the encoded sub-neighboring pixel information, wherein different 4 ⁇ 4 brightness is adopted according to different prediction directions.
  • Block prediction mode
  • the chrominance information of the current coded macroblock is evenly divided into four sub-blocks, and different pixels are used for prediction according to the degree of association between the pixels of the current coded sub-block and the adjacent coded pixels, including the following prediction modes: Sub-block based progressive DC mode, second fade mode, sub-block based upper mode, and sub-block based left mode.
  • Embodiments of the present invention provide a new intra prediction method that combines image features, the degree of association of coded pixels with adjacent coded pixels, and utilizes secondary neighbor coded pixel information.
  • the intra 11_8 ⁇ and V_Skip modes combine image characteristics and extend the Skip mode to intra prediction.
  • the advantage is obvious in video sources with more similar image regions.
  • the degree of correlation between the coded pixels and the adjacent coded pixels is considered, and the secondary adjacent coded pixel information is utilized to make the prediction more accurate.
  • a sub-block based chrominance prediction mode is proposed for chrominance prediction.
  • the method takes into account: On the one hand, the human eye is relatively insensitive to chrominance information, and on the other hand, due to the currently used YUV420 format coding source, the sampling point spacing is large in chrominance, so it is necessary to update the chrominance prediction in time. The predicted pixel value.
  • the embodiment of the present invention proposes a sub-block based chroma intra prediction mode, which is first.
  • the current coded chroma block is evenly divided into 4 sub-blocks; considering that the correlation between the pixels of the current coded sub-block and the adjacent coded pixels is further away from the distance, the correlation is also reduced, and the different coded sub-blocks are Use different prediction pixels for prediction to improve coding.
  • the intra prediction in the embodiment of the present invention is both a complete intra prediction system, and each of the prediction modes can be used independently.
  • the embodiment of the present invention proposes a new intra prediction method, which combines image features, the degree of association between coded pixels and adjacent coded pixels, and utilizes secondary neighbor coded pixel information.
  • the intra-frame H_Skip and V_Skip modes combine image characteristics and extend the Skip mode to intra prediction. The advantage is obvious in video sources with more similar image regions.
  • the degree of correlation between the coded pixels and the adjacent coded pixels is considered, and the secondary adjacent coded pixel information is utilized, so that the prediction is more accurate.
  • a sub-block based chrominance prediction mode is proposed for chrominance prediction.
  • the method takes into account: On the one hand, the human eye is relatively insensitive to chrominance information, and on the other hand, due to the currently used YUV420 format coding source, the sampling point spacing is large in chrominance, so it is necessary to update the chrominance prediction in time. The predicted pixel value.
  • the embodiment of the present invention proposes a sub-block-based chroma intra prediction mode, which firstly divides the current coded chroma block into 4 sub-blocks uniformly; considering the pixel of the current coded sub-block and the adjacent coded pixel The correlation degree decreases with the distance away from the distance, and different prediction pixels are used for prediction of different coding sub-blocks, thereby improving the coding effect.
  • the intra prediction in the embodiment of the present invention is both a complete intra prediction system, and each of the prediction modes can be used independently.
  • the embodiment of the invention provides a video coding intra prediction method, which comprises two parts: luminance prediction and chrominance prediction.
  • 16x16 luma block For the luminance component, there are two types of prediction: 16x16 luma block and 4x4 luma block. In general, 4x4 luma blocks are used for prediction of macroblocks with more spatial detail information, and 16x16 luma blocks are used for flatter regions. Prediction; Chroma prediction is independent of luma prediction, and the two chroma components U, V use the same prediction mode, so an 8x8 chroma block can be used as the basic unit of intra prediction encoding.
  • luminance prediction (16x16 luma block, 4x4 luma block) and chroma prediction (8x8 chroma block) are further described below.
  • the prediction of the 16x16 luma block (the corresponding luma block in the macroblock) is specifically as follows: combining the image features, adopting the frame ftH_Skip, V_Skip mode, and approximating the macroblock for the image feature; combining the image feature with the encoded pixel and the adjacent encoded pixel The degree of association, using the first gradient mode and the first progressive DC mode for prediction;
  • the compression ratio of intraframe coding is much lower than the compression ratio of interframe coding.
  • the intraframe correlation is lower than the interframe correlation, and the other is because the redundancy of information still existing in the frame is not sufficient. compression.
  • the luminance information of the currently encoded macroblock MB and the predicted pixels required for intra prediction are labeled as follows:
  • MB is the current coded macroblock
  • A0 ⁇ A15 are: the pixel value of the first row of the upper side of the current coded macroblock, that is, the nearest neighbor pixel value of the currently coded macroblock;
  • B0 ⁇ B15 are: the pixel value of the first column on the left side of the current coded macroblock, that is, the nearest neighbor pixel value of the currently coded macroblock;
  • C0 ⁇ C15 are: the pixel value of the second row of the upper side of the current coded macroblock, that is, the next adjacent pixel value of the currently coded macroblock;
  • D0 ⁇ D15 are: the pixel value of the second column on the left side of the current coded macroblock, that is, the pixel value of the next adjacent column of the currently coded macroblock;
  • X is: the pixel value of the upper left corner of the current coded macroblock
  • Intra-frame H_Skip, V_Skip mode The pixels of the current coded macroblock are directly represented by the left and upper coded macroblock information of the current coded macroblock.
  • Pr ed[i] [j] the predicted value of the current coded pixel, where the pixel is located at the current macroblock;
  • Mb left the left-coded macroblock of the currently encoded macroblock
  • the 16x16 luma prediction mode is generally applicable to flat regions, and there are often macroblocks with extreme approximation in the horizontal and vertical directions in the image sequence. This similarity allows us to further compress the similarity in the frame, and at a low bit rate. Next, or from the sensitivity of human vision is feasible.
  • the embodiment of the present invention proposes an intra-sky Skip mode in the horizontal and vertical directions, that is, an intraframe. H_Skip, V_Skip mode, this mode can further compress the redundancy of the intra-frame information without affecting the visual effect and the overall code rate is insufficiently allocated.
  • the pixels of the current coded macroblock are represented by a linear function of the pixel mean of the current coded macroblock, among the coded macroblocks on the upper and left sides.
  • Mean _ U mean(A0, Al, A2,..., A15)
  • Mean _L mean(fi0, Bl, B2,..., B15)
  • Pr ed[i][j] ((16 - j) * mean _ [/ + (16 _ i) * mean _ L) / (32 -i-j) mean: find the mean
  • the pixel is in the row of the current macroblock
  • the pixel is in the column of the current macroblock
  • the above mode can be used for intra prediction, and for the macroblock having the gradation feature, the gradation mode of the embodiment of the present invention can be used for compression of redundant information.
  • the pixels of the current coded macroblock are represented by the mean of the two-row and two-column pixel variations in the upper and left coded macroblocks closest to the current coded macroblock.
  • Pr ed[i][j] mean(sum_dl) else
  • Pved[i][j] the predicted value of the current encoded pixel, i : the pixel is in the row of the current macroblock; j : the pixel is in the column of the current macroblock; mean: seeking the mean ⁇
  • the luminance information of the current coded 4x4 sub-block and the predicted pixels required for intra prediction are labeled as follows:
  • L1 L ABCDEFGH is: the first row of the pixel value of the current coded macroblock, that is, the nearest neighbor row pixel value of the current coded macroblock;
  • A1B1 CI Dl El Fl Gl HI is: the pixel value of the second row of the upper side of the current coded macroblock, that is, the pixel value of the next adjacent row of the currently coded macroblock;
  • IJKL is: the pixel value of the first column on the left side of the current coded macroblock, that is, the nearest neighbor pixel value of the currently coded macroblock;
  • I1J1K1L1 is: the pixel value of the second column on the left side of the current coded macroblock, that is, the pixel value of the next adjacent column of the currently coded macroblock;
  • X is: the pixel value of the upper left corner of the current coded macroblock
  • XI is: X upper side pixel value
  • X2 is: XI left pixel value.
  • the second progressive DC mode that is, the pixel of the current coded sub-block is represented by the mean value of the pixel change of each of the two rows and two columns of the current coded macroblock in the upper and left coded sub-blocks.
  • the specific implementation is as follows:
  • Sum _ du4 s m(A *2-Al, B* 2-B1, C*2-C1, D*2-D1)
  • s m_dl4 s m(I*2-n, J*2-Jl, K*2-Kl, L*2-Ll) if (upper and left sub-blocks are encoded)
  • the pixel is in the row of the current macroblock
  • the pixel is in the column of the current macroblock
  • the mode predicts the correlation degree information of the pixel of the current coded sub-block and its encoded neighboring pixel and the coded secondary neighboring pixel, that is, the pixel of the current coded sub-block uses the nearest neighbor and the next of the coded sub-block of the upper side.
  • a linear function of adjacent coded pixels is represented.
  • Pr ecl[i] [j] the predicted value of the current coded pixel
  • the pixel is in the column of the current macroblock.
  • Weighted Left mode This mode considers the pixel of the current encoded sub-block with its encoded neighboring pixels, The correlation degree information of the coded secondary neighboring pixels is predicted, that is, the pixels of the current coded sub-block are represented by a linear function of the nearest neighboring and next neighboring coded pixels in the left coded sub-block.
  • Pred[i][j] the predicted value of the current encoded pixel
  • the pixel is in the row of the current macroblock.
  • First Weighting Mode This mode predicts the degree of correlation of the pixels of the current coded sub-block with its encoded neighboring pixels, and also reduces the correlation as the distance is further removed.
  • the first weighting mode that is, the pixel of the current coded sub-block is represented by a linear function of the nearest neighbored coded pixel in the upper and upper right side coded sub-blocks, after the coded pixel is farther away from the coded pixel, The nearest encoded coded pixel of the current coded sub-block is replaced with the predicted value of the coded pixel of the current coded sub-block.
  • the upper and upper right subblocks are encoded
  • Temp[] is the intermediate variable of the current mode, which is used to replace the nearest neighbor of the current coded sub-block with the predicted value of the coded pixel of the current sub-block directly after the distance between the coded pixel and the coded pixel is changed.
  • a clear description of the function of the pixel, and the middle of the setting is i: the pixel is located in the row of the current macroblock;
  • the pixel is in the column of the current macroblock.
  • Second Weighting Mode This mode considers the correlation degree information of the pixels of the current coded sub-block and its encoded neighboring pixels, and also reduces the correlation as the distance is farther away.
  • the second weighting mode that is, the pixel of the current coding sub-block is represented by a linear function of the nearest adjacent coded pixel in the upper and upper right encoded sub-blocks, after the distance between the coded pixel and the coded pixel is changed, The nearest encoded coded pixel of the current coded sub-block is replaced with the predicted value of the coded pixel of the current coded sub-block.
  • PreJ [2] [2] (Pved [1] [2] + PreJ [1] [3] + l) / 2;
  • PreJ [3] [1] (PreJ [2] [1] + Pved [2] [2] + 1) / 2;
  • Temp port the intermediate variable of the current mode
  • the pixel is in the row of the current macroblock
  • the pixel is in the column of the current macroblock.
  • Third Weighting Mode This mode predicts the degree of correlation of the pixels of the current coded sub-block with its encoded neighboring pixels, and also reduces the correlation as the distance is further removed.
  • the third weighting mode that is, the pixel of the current coded sub-block is represented by a linear function of the nearest neighbored coded pixel in the left coded sub-block, and after the distance between the coded pixel and the coded pixel is changed, the current The predicted value of the encoded pixel of the encoded sub-block replaces the nearest encoded encoded pixel of the current encoded sub-block.
  • Pred[i][j] the predicted value of the current encoded pixel
  • the pixel is in the row of the current macroblock
  • the pixel is in the column of the current macroblock.
  • This mode predicts the correlation degree information of the pixels of the current coded sub-block and its encoded adjacent and neighboring pixels.
  • the fourth weighting mode i.e., the pixel of the current coded sub-block
  • the pixel of the current coded sub-block is represented by a linear function of the nearest neighboring, next neighboring coded pixels in the upper, left, and upper left encoded sub-blocks.
  • the specific implementation is as follows:
  • the upper and left sub-blocks are encoded
  • the pixel is in the row of the current macroblock
  • the pixel is in the column of the current macroblock.
  • the fifth weighting mode predicts the correlation degree information of the pixels of the current coded sub-block and its encoded adjacent and neighboring pixels.
  • the fifth weighting mode i.e., the pixel of the current coded sub-block, is represented by a linear function of the nearest neighboring, next neighboring coded pixels in the upper, left, and upper left encoded sub-blocks.
  • the specific implementation is as follows:
  • Pred [3] [0] (I + 2*J + K + 2) 14; Pred[i][j]: the predicted value of the current encoded pixel,
  • the pixel is located in the row of the current macroblock
  • the pixel is in the column of the current macroblock.
  • This mode predicts the correlation degree information of the pixels of the current coded sub-block and its encoded neighboring and neighboring pixels.
  • the sixth weighting mode i.e., the pixel of the current coded sub-block, is represented by a linear function of the nearest neighboring, next neighboring coded pixels in the upper, left, and upper left encoded sub-blocks.
  • the specific implementation is as follows:
  • the pixel is in the row of the current macroblock
  • the pixel is in the column of the current macroblock.
  • the current coded chroma block (the corresponding chroma block in the macroblock) is evenly divided into 4 sub-blocks; taking into account the distance information of the pixel of the current coded chroma block and its encoded adjacent coded pixel Far from this correlation, the correlation is also reduced, and different coding sub-blocks are used to predict different coding sub-blocks, thereby improving the coding effect.
  • the embodiment of the present invention proposes a sub-block based chroma intra prediction mode.
  • the chrominance information of the currently coded macroblock MB and the predicted pixels required for intra prediction are labeled as follows:
  • Blockll, Blockl2, Block21, and Block22 are: 4 sub-blocks that are uniformly divided into the current coded chroma block, called a chroma sub-block;
  • a B C D E F G H is: the first row of pixel values on the upper side of the current coded chroma block;
  • IJKLMNOP is: the first column of pixel values on the left side of the current coded chroma block;
  • X is: the pixel value of the upper left corner of the current coded chroma block.
  • Sub-block-based progressive DC mode The upper left sub-block pixel of the current coded chroma block is described using the mean of the row and column pixels closest to the current coded chroma block in the coded chroma block on the upper and left sides.
  • the other three sub-blocks are respectively represented by the mean of the row and column pixels closest to the current coded chroma sub-block and the mean of the coded sub-blocks closest to the current coded chroma block.
  • Pr eJ n [i][j] mean(A, B, C, D, I, J, K, L)
  • Pr ed n [i] [j] mean(A, B, C, D)
  • PreJnfiJfj mean(I,J ,K,L)
  • the pixel is in the row of the current chroma block
  • Pved[i][j] the predicted value of the current coded pixel, i : the pixel is in the row of the current chroma block; j : the pixel is in the column of the current chroma block; mean: seeking the mean ⁇ c)Block21
  • Pre ⁇ i 21 [i][j] mean(M , ⁇ , ⁇ , ⁇ , Pr ed n ) else
  • Pre ⁇ i 22 [i][j] mean(Fr ed 12 , Pr ed 21 )
  • Pved[i][j] the predicted value of the current coded pixel, i : the pixel is located in the row of the current chroma block; j : the pixel is in the column of the current chroma block;
  • the gradation mode of the embodiment of the present invention can be used for the compression of the redundant information.
  • the second gradation mode that is, the pixel of the current coded chrominance block is represented by a linear function of the pixel mean value closest to the current chrominance block among the coded chrominance blocks on the upper side and the left side.
  • Mean _u mean(A, B, C, D, E, F, G, H)
  • Mean _ 1 mean(I, J, K, L, M, N, O, P)
  • Pre ⁇ i[i][j] ((8 - j) * mean _ u + (8 - i) * mean _ h)/(16 - i - j)
  • the pixel is in the row of the current chroma block
  • the pixel is in the column of the current chroma block
  • the embodiment of the present invention proposes a sub-block based upper side mode, that is, the pixel of the current coded chroma block is directly represented by the nearest neighbor sub-block information of the upper coded chroma block.
  • the specific implementation is as follows: UP 12
  • Blockll Blockl2 Block21 Block22 is: 4 sub-blocks that evenly divide the current coded chroma block, that is, each size is 4x4;
  • UP N UP 12 is: the upper two sub-blocks of the current coded chroma block, the size is 4x4;
  • Pr ⁇ / U [i][j] the pixel prediction value of the current coded chroma sub-block Blockll
  • Pr ⁇ 12 [i][j] the pixel prediction value of the current coded chroma sub-block Blockl2;
  • Pr ⁇ 21 [i][j] the pixel prediction value of the current coded chroma sub-block Block21;
  • Pr ⁇ 22 [i][j] the pixel prediction value of the current coded chroma sub-block Block22;
  • UP n vm a pixel prediction value of the upper sub-block of the current coded chroma sub-block Blockl
  • the pixel is in the column of the current chroma block.
  • the embodiment of the present invention proposes, based on the left block mode of the sub-block, that is, the pixel of the current coded chroma block is directly represented by the nearest neighbor sub-block information of the left coded chroma block.
  • the specific implementation is as follows:
  • Pred 12 [m: pixel prediction value of the current coded chroma sub-block Blockl2;
  • Pr e J 21 [i][j] the pixel prediction value of the current coded chroma sub-block Block 21;
  • Pr 22 [i][j] the pixel prediction value of the current coded chroma sub-block Block22;
  • L ⁇ n [i][3] the pixel prediction value of the fourth column in the left subblock of the current coded chroma subblock Blockll; L ⁇ 21 [i][3]: the current coded chroma subblock Block21 left side The pixel prediction value of the fourth column in the block; i : the pixel is located in the row of the current chroma block;
  • the pixel is in the column of the current chroma block. It will be understood by those skilled in the art that all or part of the steps of the foregoing embodiments may be implemented by a program instruction related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium may be a ROM, a RAM, a magnetic disk, an optical disk, or the like.

Abstract

The present invention discloses an intra frame prediction method for video encoding, and the method includes the following steps: with regard to luminance prediction, adopting different luminance prediction modes according to picture features, relevancy between encoding pixels and adjacent encoded pixels, and next adjacent encoded pixel information; with regard to chrominance prediction, adopting sub-block based chrominance intra frame prediction, which uses different pixels to predict different encoding sub-blocks according to relevancy between pixels in a current sub-block and adjacent encoded pixels. By adopting the intra frame prediction method in the present invention, prediction accuracy and encoding effect can be improved. The intra frame prediction method of the present invention is an integrated intra frame prediction system, whereas each of the prediction modes can also be utilized independently.

Description

一种用于视频编码的帧内预测方法  Intra prediction method for video coding
技术领域 Technical field
本发明涉及视频编码领域, 尤其涉及一种视频编码帧内预测方法。  The present invention relates to the field of video coding, and in particular, to a video coding intra prediction method.
背景技术 Background technique
在视频编码中,通常使用帧内预测来消除图像的空间冗余度, 使用帧间预 测来消除时间冗余度。其中帧内预测的帧由于还将作为帧间预测的参考帧,所 以其编码性能显得尤为重要。基于 YUV420格式的视频源, 常规的帧内预测分为 亮度分量预测和色度分量预测。 由于视频源具有不同的图像特征,有平坦紋理 简单的区域也有紋理复杂的细节区域。基于这个实际情况, 常规的亮度的帧内 预测也分为适用于相对平坦区域的 16x16亮度预测、适用于紋理信息较多的 4x4 亮度预测模式。 同时, 由于人眼对亮度信息较为敏感, 对色度则具有相对较弱 的敏感度, 色度预测设计的一般较为简单。 目前,常规的空间域帧内预测方法仅利用当前块周围已编码的最邻近像素 进行预测,进行帧内预测, 一方面其仅考虑当前编码块的像素与其已编码邻近 像素的关联度,而忽略了预测像素与已编码邻近像素的关联度会随着距离的远 离这种相关度也随之降低。 另一方面, 其也没有考虑图像特征, 这使得当视频 源存在极度相似的区域时, 不能将空间冗余度极大的消除, 从而制约了压缩性 能的优化实现。  In video coding, intra prediction is typically used to eliminate spatial redundancy of the image, and interframe prediction is used to eliminate temporal redundancy. The intra-predicted frame is also used as the reference frame for inter-frame prediction, so its coding performance is particularly important. Based on the YUV420 format video source, conventional intra prediction is divided into luminance component prediction and chrominance component prediction. Since the video source has different image features, there are flat textures. Simple areas also have texture details. Based on this actual situation, the intra prediction of conventional luminance is also divided into 16x16 luma prediction suitable for relatively flat regions and 4x4 luma prediction mode suitable for texture information. At the same time, since the human eye is sensitive to luminance information, it has relatively weak sensitivity to chrominance, and chromaticity prediction design is generally simple. At present, the conventional spatial domain intra prediction method only uses the nearest neighbor pixel encoded in the current block for prediction, and performs intra prediction. On the one hand, it only considers the correlation between the pixel of the current coding block and its encoded neighboring pixels, and ignores The correlation between the predicted pixel and the encoded neighboring pixel will decrease as the distance is further away. On the other hand, it does not consider the image features, which makes it impossible to eliminate the spatial redundancy when the video source has extremely similar regions, thus restricting the optimization of the compression performance.
发明内容 Summary of the invention
本发明实施例的目的在于提出一种视频编码帧内预测方法,旨在解决现有 技术忽略了编码像素与邻近已编码像素的关联度会随着距离的远离而降低的 特性, 且没有考虑图像特征, 使得当视频源存在极度相似的区域时, 不能将空 间冗余度最大限度地消除, 从而制约了压缩性能的优化实现问题。 An object of the present invention is to provide a video coding intra prediction method, which aims to solve the problem that the correlation between the coded pixel and the adjacent coded pixel is reduced as the distance is far away. The characteristics, and the image features are not considered, so that when the video source has extremely similar regions, the spatial redundancy cannot be eliminated to the maximum extent, which restricts the optimization implementation of the compression performance.
本发明实施例方法是这样实现的,一种视频编码帧内预测方法, 所述方法 包括:  The method of the embodiment of the present invention is implemented by the video coding intra prediction method, where the method includes:
根据图像特征、编码像素与邻近已编码像素的关联度、 以及次邻近已编码 像素信息, 采用不同的亮度预测;  Different brightness predictions are used according to image features, degree of association of coded pixels with adjacent coded pixels, and secondary neighbor coded pixel information;
采用基于子块的色度帧内预测,根据当前编码子块的像素与邻近已编码像 素的关联度, 对不同的编码子块使用不同的像素进行色度预测。 所述对 16x16 亮度块的预测具体为: 采用帧 ftH_Skip、 V_Skip模式, 结合所述图像特征及 所述编码像素与邻近已编码像素的关联度, 采用第一渐变模式和第一递进 DC 模式进行预测。  Sub-block-based chroma intra prediction is used to perform chromaticity prediction using different pixels for different coded sub-blocks according to the degree of association between the pixels of the current coded sub-block and the adjacent coded pixels. The prediction of the 16x16 luma block is specifically: using the frame ftH_Skip, V_Skip mode, combining the image feature and the degree of association between the coded pixel and the adjacent coded pixel, using the first fade mode and the first progressive DC mode prediction.
所述对 4x4亮度块的预测, 具体为, 根据所述编码像素与已编码的邻近像 素的关联度以及所述已编码的次邻近像素信息进行预测,其中根据不同的预测 方向采用不同的 4x4亮度块预测模式。  The prediction of the 4×4 luma block is specifically performed according to the degree of association between the encoded pixel and the encoded neighboring pixel and the encoded sub-neighboring pixel information, wherein different 4×4 brightness is adopted according to different prediction directions. Block prediction mode.
将当前编码宏块的色度信息, 均匀划分为 4个子块, 根据当前编码子块的 像素与邻近已编码像素的关联度对不同的编码子块使用不同的像素进行预测, 包括以下预测模式: 基于子块的递进 DC模式、 第二渐变模式、 基于子块的上 侧模式以及基于子块的左侧模式。  The chrominance information of the current coded macroblock is evenly divided into four sub-blocks, and different pixels are used for prediction according to the degree of association between the pixels of the current coded sub-block and the adjacent coded pixels, including the following prediction modes: Sub-block based progressive DC mode, second fade mode, sub-block based upper mode, and sub-block based left mode.
本发明的有益效果: 本发明实施例提出一种新的帧内预测方法, 它结合了 图像特征、编码像素与邻近已编码像素的关联度, 并利用了次邻近已编码像素 信息。 其中帧内11_8^ 、 V_Skip模式它结合了图像特性, 扩展 Skip模式到帧内 预测, 其优势在图像区域相似性较多的视频源中, 较为明显。而其他的亮度预 测模式, 则考虑了编码像素与邻近已编码像素的关联度, 并利用了次邻近已编 码像素信息, 使得预测更为精确。  Advantageous Effects of Invention: Embodiments of the present invention provide a new intra prediction method that combines image features, the degree of association of coded pixels with adjacent coded pixels, and utilizes secondary neighbor coded pixel information. Among them, the intra 11_8^ and V_Skip modes combine image characteristics and extend the Skip mode to intra prediction. The advantage is obvious in video sources with more similar image regions. In other brightness prediction modes, the degree of correlation between the coded pixels and the adjacent coded pixels is considered, and the secondary adjacent coded pixel information is utilized to make the prediction more accurate.
在色度预测上则提出了基于子块的色度预测模式。该方法考虑到: 一方面 人眼对色度信息相对不敏感, 另一方面由于目前采用的 YUV420格式的编码 源,在色度上采样点间距大,所以在色度预测上需要及时更新所需的预测像素 值。 结合如上特点, 本发明实施例提出了基于子块的色度帧内预测模式, 它首 先将当前编码色度块均匀划分为 4个子块; 考虑到当前编码子块的像素与邻近 已编码像素的关联度随着距离的远离这种相关度也随之降低,对不同的编码子 块使用不同的预测像素进行预测, 以此提升编码效果。本发明实施例的帧内预 测既是完整的帧内预测体系, 同时其中每一个预测模式又可以独立使用。 A sub-block based chrominance prediction mode is proposed for chrominance prediction. The method takes into account: On the one hand, the human eye is relatively insensitive to chrominance information, and on the other hand, due to the currently used YUV420 format coding source, the sampling point spacing is large in chrominance, so it is necessary to update the chrominance prediction in time. The predicted pixel value. In combination with the above features, the embodiment of the present invention proposes a sub-block based chroma intra prediction mode, which is first. First, the current coded chroma block is evenly divided into 4 sub-blocks; considering that the correlation between the pixels of the current coded sub-block and the adjacent coded pixels is further away from the distance, the correlation is also reduced, and the different coded sub-blocks are Use different prediction pixels for prediction to improve coding. The intra prediction in the embodiment of the present invention is both a complete intra prediction system, and each of the prediction modes can be used independently.
附图说明 DRAWINGS
无。 no.
具体实施方式 为了使本发明的目的、技术方案及优点更加清楚明白, 以下结合附图和实 施例, 对本发明进行进一步详细说明, 为了便于说明, 仅示出了与本发明实施 例相关的部分。 应当理解, 此处所描写的具体实施例, 仅仅用于解释本发明, 并不用以限制本发明。 The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. For the convenience of description, only the parts related to the embodiments of the present invention are shown. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例提出一种新的帧内预测方法, 它结合了图像特征、编码像素 与邻近已编码像素的关联度, 并利用了次邻近已编码像素信息。 其中帧内 H_Skip、 V_Skip模式它结合了图像特性, 扩展 Skip模式到帧内预测, 其优势在 图像区域相似性较多的视频源中, 较为明显。而其他的亮度预测模式, 则考虑 了编码像素与邻近已编码像素的关联度, 并利用了次邻近已编码像素信息, 使 得预测更为精确。  The embodiment of the present invention proposes a new intra prediction method, which combines image features, the degree of association between coded pixels and adjacent coded pixels, and utilizes secondary neighbor coded pixel information. Among them, the intra-frame H_Skip and V_Skip modes combine image characteristics and extend the Skip mode to intra prediction. The advantage is obvious in video sources with more similar image regions. In other brightness prediction modes, the degree of correlation between the coded pixels and the adjacent coded pixels is considered, and the secondary adjacent coded pixel information is utilized, so that the prediction is more accurate.
在色度预测上则提出了基于子块的色度预测模式。该方法考虑到: 一方面 人眼对色度信息相对不敏感, 另一方面由于目前采用的 YUV420格式的编码 源,在色度上采样点间距大,所以在色度预测上需要及时更新所需的预测像素 值。 结合如上特点, 本发明实施例提出了基于子块的色度帧内预测模式, 它首 先将当前编码色度块均匀划分为 4个子块; 考虑到当前编码子块的像素与邻近 已编码像素的关联度随着距离的远离这种相关度也随之降低,对不同的编码子 块使用不同的预测像素进行预测, 以此提升编码效果。本发明实施例的帧内预 测既是完整的帧内预测体系, 同时其中每一个预测模式又可以独立使用。 本发明实施例提出一种视频编码帧内预测方法,包含亮度预测和色度预测 两部分。 对于亮度分量, 有两种预测类型: 16x16亮度块和 4x4亮度块, 一般来 说, 对含有较多空域细节信息的宏块采用 4x4亮度块进行预测, 而对于较平坦 的区域采用 16x16亮度块进行预测; 色度预测独立于亮度预测, 两个色度分量 U、 V使用相同的预测模式, 因此可使用 8x8色度块作为帧内预测编码的基本单 位。 A sub-block based chrominance prediction mode is proposed for chrominance prediction. The method takes into account: On the one hand, the human eye is relatively insensitive to chrominance information, and on the other hand, due to the currently used YUV420 format coding source, the sampling point spacing is large in chrominance, so it is necessary to update the chrominance prediction in time. The predicted pixel value. In combination with the above features, the embodiment of the present invention proposes a sub-block-based chroma intra prediction mode, which firstly divides the current coded chroma block into 4 sub-blocks uniformly; considering the pixel of the current coded sub-block and the adjacent coded pixel The correlation degree decreases with the distance away from the distance, and different prediction pixels are used for prediction of different coding sub-blocks, thereby improving the coding effect. The intra prediction in the embodiment of the present invention is both a complete intra prediction system, and each of the prediction modes can be used independently. The embodiment of the invention provides a video coding intra prediction method, which comprises two parts: luminance prediction and chrominance prediction. For the luminance component, there are two types of prediction: 16x16 luma block and 4x4 luma block. In general, 4x4 luma blocks are used for prediction of macroblocks with more spatial detail information, and 16x16 luma blocks are used for flatter regions. Prediction; Chroma prediction is independent of luma prediction, and the two chroma components U, V use the same prediction mode, so an 8x8 chroma block can be used as the basic unit of intra prediction encoding.
下面分别对亮度预测 (16x16亮度块、 4x4亮度块) 和色度预测 (8x8色度 块) 的具体实施方法进行进一步说明。  The specific implementation methods of luminance prediction (16x16 luma block, 4x4 luma block) and chroma prediction (8x8 chroma block) are further described below.
Sl、 亮度预测  Sl, brightness prediction
S11 , 对 16x16亮度块(宏块中相应的亮度块) 的预测, 具体为: 结合图像 特征, 采用帧 ftH_Skip、 V_Skip模式, 适用图像特征近似宏块; 结合图像特 征及编码像素与邻近已编码像素的关联度, 采用第一渐变模式和第一递进 DC 模式进行预测;  S11. The prediction of the 16x16 luma block (the corresponding luma block in the macroblock) is specifically as follows: combining the image features, adopting the frame ftH_Skip, V_Skip mode, and approximating the macroblock for the image feature; combining the image feature with the encoded pixel and the adjacent encoded pixel The degree of association, using the first gradient mode and the first progressive DC mode for prediction;
帧内编码的压缩率都远远低于帧间编码的压缩率,一方面是由于帧内相关 性低于帧间相关性, 另一方面是因为帧内仍然存在信息的冗余度未被充分压 缩。为了描述 16x16的亮度帧内预测,将当前编码宏块 MB的亮度信息及进行 帧内预测所需要的预测像素标注如下:  The compression ratio of intraframe coding is much lower than the compression ratio of interframe coding. On the one hand, the intraframe correlation is lower than the interframe correlation, and the other is because the redundancy of information still existing in the frame is not sufficient. compression. To describe the 16x16 luma intra prediction, the luminance information of the currently encoded macroblock MB and the predicted pixels required for intra prediction are labeled as follows:
Figure imgf000005_0001
其中 MB为当前编码宏块,
Figure imgf000005_0001
Where MB is the current coded macroblock,
A0~A15为: 当前编码宏块的上侧第一行像素值, 即为当前编码宏块最邻 近行像素值;  A0~A15 are: the pixel value of the first row of the upper side of the current coded macroblock, that is, the nearest neighbor pixel value of the currently coded macroblock;
B0~B15为: 当前编码宏块的左侧第一列像素值, 即为当前编码宏块最邻 近列像素值;  B0~B15 are: the pixel value of the first column on the left side of the current coded macroblock, that is, the nearest neighbor pixel value of the currently coded macroblock;
C0~C15为: 当前编码宏块的上侧第二行像素值, 即为当前编码宏块次邻 近行像素值;  C0~C15 are: the pixel value of the second row of the upper side of the current coded macroblock, that is, the next adjacent pixel value of the currently coded macroblock;
D0~D15为: 当前编码宏块的左侧第二列像素值, 即为当前编码宏块次邻 近列像素值;  D0~D15 are: the pixel value of the second column on the left side of the current coded macroblock, that is, the pixel value of the next adjacent column of the currently coded macroblock;
X为: 当前编码宏块的左上角像素值;  X is: the pixel value of the upper left corner of the current coded macroblock;
S111 , 帧内 H_Skip、 V_Skip模式:  S111, intraframe H_Skip, V_Skip mode:
帧内 H_Skip、 V_Skip模式: 当前编码宏块的像素直接利用当前编码宏块 的左侧及上侧已编码宏块信息表示。  Intra-frame H_Skip, V_Skip mode: The pixels of the current coded macroblock are directly represented by the left and upper coded macroblock information of the current coded macroblock.
具体实施如下:  The specific implementation is as follows:
if (左侧子块已编码) Pr W ] = Mbleft[i][j] If (left subblock is encoded) Pr W ] = Mb left [i][j]
if (上侧子块已编码) Pr ί¾¾·][ | = Mbup[i] [j] If (upper subblock is encoded) Pr ί3⁄43⁄4·][ | = Mb up [i] [j]
Pr ed[i] [j]: 当前编码像素的预测值, 像素位于当前宏块的位置; Pr ed[i] [j]: the predicted value of the current coded pixel, where the pixel is located at the current macroblock;
Mbleft: 当前编码宏块的左侧已编码宏块;Mb left : the left-coded macroblock of the currently encoded macroblock;
bup : 当前编码宏块的上侧已编码宏块; b up : the upper coded macroblock of the current coded macroblock;
16x16的亮度预测模式一般适用于平坦的区域, 而在图像序列中往往存在 水平、 垂直方向极度近似的宏块, 这种相似性, 使得我们可以进一步在帧内压 缩相似性, 而且在低码率下, 或者从人类视觉的敏感度上都存在可行性。 结合 如上特性, 本发明实施例提出了水平、 垂直方向上的帧内 Skip 模式即帧内 H_Skip、 V_Skip模式, 该模式可在不影响视觉效果和总体码率不够分配时, 进一步压缩帧内信息的冗余度。 The 16x16 luma prediction mode is generally applicable to flat regions, and there are often macroblocks with extreme approximation in the horizontal and vertical directions in the image sequence. This similarity allows us to further compress the similarity in the frame, and at a low bit rate. Next, or from the sensitivity of human vision is feasible. In combination with the above characteristics, the embodiment of the present invention proposes an intra-sky Skip mode in the horizontal and vertical directions, that is, an intraframe. H_Skip, V_Skip mode, this mode can further compress the redundancy of the intra-frame information without affecting the visual effect and the overall code rate is insufficiently allocated.
5112, 第一渐变模式:  5112, first gradient mode:
第一渐变模式: 当前编码宏块的像素使用上侧及左侧的已编码宏块中, 最 接近当前编码宏块的像素均值的线性函数来表示。  First Gradient Mode: The pixels of the current coded macroblock are represented by a linear function of the pixel mean of the current coded macroblock, among the coded macroblocks on the upper and left sides.
具体实施如下:  The specific implementation is as follows:
if (上侧及左侧子块已编码)  If (upper and left subblocks are encoded)
mean _ U = mean(A0, Al, A2,..., A15)  Mean _ U = mean(A0, Al, A2,..., A15)
mean _L = mean(fi0, Bl, B2,..., B15)  Mean _L = mean(fi0, Bl, B2,..., B15)
Pr ed[i][j] = ((16 - j) * mean _ [/ + (16 _ i) * mean _ L)/(32 -i-j) mean: 求均值  Pr ed[i][j] = ((16 - j) * mean _ [/ + (16 _ i) * mean _ L) / (32 -i-j) mean: find the mean
Pved[i][j]: 当前编码像素的预测值,  Pved[i][j]: the predicted value of the current encoded pixel,
i : 像素位于当前宏块的行;  i : the pixel is in the row of the current macroblock;
j : 像素位于当前宏块的列;  j : the pixel is in the column of the current macroblock;
在极度近似区域可以利用上述模式进行帧内预测,而对于具有渐变特点的 宏块, 则可以利用本发明实施例的渐变模式进行冗余信息的压缩。  In the extreme approximation region, the above mode can be used for intra prediction, and for the macroblock having the gradation feature, the gradation mode of the embodiment of the present invention can be used for compression of redundant information.
5113, 第一递进 DC模式:  5113, first progressive DC mode:
第一递进 DC模式: 当前编码宏块的像素使用上侧及左侧已编码宏块中, 最接近当前编码宏块的各两行和两列像素变化的均值来表示。  First progressive DC mode: The pixels of the current coded macroblock are represented by the mean of the two-row and two-column pixel variations in the upper and left coded macroblocks closest to the current coded macroblock.
具体实施如下:  The specific implementation is as follows:
sum _ du = s画 (2 *A0-C0,2*A1- l,2 *A2-C2,...,2*A15-C15)  Sum _ du = s draw (2 *A0-C0,2*A1- l,2 *A2-C2,...,2*A15-C15)
sum _dl = swm(2 * BO - DO, 2 *B1- Dl,2 *B2- D2,...,2 *B15-D15)  Sum _dl = swm(2 * BO - DO, 2 *B1- Dl,2 *B2- D2,...,2 *B15-D15)
if (上侧及左侧子块已编码) Pre<i[ ] [刀 = mean(sum _ du, sum _ dl) else if (仅上侧子块已编码) Pr ed[i][j] = mean(sum_du) else if (左侧子块已编码) If (upper and left subblocks are encoded) Pre<i[ ] [knife = mean(sum _ du, sum _ dl) else if (only the upper sub-block is encoded) Pr ed[i][j] = mean(sum_du) else if (the left sub-block has coding)
Pr ed[i][j] = mean(sum_dl) else Pr ed[i][j] = mean(sum_dl) else
Pr^[ ][;] = 128 Pr^[ ][;] = 128
sum: 求和  Sum: summation
Pved[i][j]: 当前编码像素的预测值, i : 像素位于当前宏块的行; j : 像素位于当前宏块的列; mean: 求均值〇 Pved[i][j]: the predicted value of the current encoded pixel, i : the pixel is in the row of the current macroblock; j : the pixel is in the column of the current macroblock; mean: seeking the mean 〇
S12, 对 4x4亮度块的预测, 分别考虑了编码像素与已编码的邻近像素的 关联度、 已编码的次邻近像素信息进行预测, 根据不同的预测方向提出了 9 种模式。 S12. For the prediction of the 4x4 luma block, the correlation degree between the coded pixel and the encoded neighboring pixel and the encoded sub-neighbor pixel information are respectively considered for prediction, and nine modes are proposed according to different prediction directions.
当紋理较为复杂时, 就需要采用子块形式的帧内预测,考虑到像素之间的 相关度与其位置息息相关,所以,本发明实施例在亮度 4x4及色度预测中, 为 了描述 4x4的亮度帧内预测,将当前编码 4x4子块的亮度信息及进行帧内预测 所需要的预测像素标注如下:  When the texture is more complicated, it is necessary to adopt intra prediction in the form of a sub-block. Considering that the correlation between pixels is closely related to its position, in the embodiment of the present invention, in the luminance 4x4 and chrominance prediction, in order to describe the luminance frame of 4x4. For intra prediction, the luminance information of the current coded 4x4 sub-block and the predicted pixels required for intra prediction are labeled as follows:
X2 XI A1 B1 C1 D1 E1 F1 G1 HI  X2 XI A1 B1 C1 D1 E1 F1 G1 HI
X A B C D E F G H  X A B C D E F G H
11 I  11 I
J1 J 当前编码  J1 J current encoding
K1 K 4x4子块  K1 K 4x4 sub-block
L1 L A B C D E F G H 为: 当前编码宏块的上侧第一行像素值, 即为 当前编码宏块最邻近行像素值; L1 L ABCDEFGH is: the first row of the pixel value of the current coded macroblock, that is, the nearest neighbor row pixel value of the current coded macroblock;
A1B1 CI Dl El Fl Gl HI为: 当前编码宏块的上侧第二行像素值, 即为 当前编码宏块次邻近行像素值;  A1B1 CI Dl El Fl Gl HI is: the pixel value of the second row of the upper side of the current coded macroblock, that is, the pixel value of the next adjacent row of the currently coded macroblock;
IJKL为: 当前编码宏块的左侧第一列像素值, 即为当前编码宏块最邻 近列像素值;  IJKL is: the pixel value of the first column on the left side of the current coded macroblock, that is, the nearest neighbor pixel value of the currently coded macroblock;
I1J1K1L1为: 当前编码宏块的左侧第二列像素值, 即为当前编码宏块次 邻近列像素值;  I1J1K1L1 is: the pixel value of the second column on the left side of the current coded macroblock, that is, the pixel value of the next adjacent column of the currently coded macroblock;
X为: 当前编码宏块的左上角像素值;  X is: the pixel value of the upper left corner of the current coded macroblock;
XI为: X上侧像素值; XI is: X upper side pixel value;
X2为: XI左侧像素值。 X2 is: XI left pixel value.
S121,第二递进 DC模式 S121, second progressive DC mode
第二递进 DC模式:即当前编码子块的像素使用上侧及左侧已编码子块 中, 最接近当前编码宏块的各两行和两列的像素变化的均值来表示。 具体实施如下:  The second progressive DC mode: that is, the pixel of the current coded sub-block is represented by the mean value of the pixel change of each of the two rows and two columns of the current coded macroblock in the upper and left coded sub-blocks. The specific implementation is as follows:
sum _ du4 = s m(A *2-Al,B* 2-B1, C*2-C1,D*2-D1)  Sum _ du4 = s m(A *2-Al, B* 2-B1, C*2-C1, D*2-D1)
s m_dl4 = s m(I*2-n,J*2-Jl,K*2-Kl,L*2-Ll) if (上侧及左侧子块已编码)  s m_dl4 = s m(I*2-n, J*2-Jl, K*2-Kl, L*2-Ll) if (upper and left sub-blocks are encoded)
Ρτβύ?[ ][ '] = mean(sum _ du4, sum _ dl4) else if (仅上侧子块已编码)  Ρτβύ?[ ][ '] = mean(sum _ du4, sum _ dl4) else if (only the upper sub-block is encoded)
P^ed[i][j] = mean(sum _du4) else if (左侧子块已编码)  P^ed[i][j] = mean(sum _du4) else if (the left subblock is encoded)
P^ed[i][j] = mean(sum _ dl4) else P^ed[i][j] = mean(sum _ dl4) Else
Pr ed[i] [j] = 12S  Pr ed[i] [j] = 12S
sum: 求禾口  Sum: Qiukou
P ed[i] [j] : 当前编码像素的预测值,  P ed[i] [j] : the predicted value of the current encoded pixel,
: 像素位于当前宏块的行;  : the pixel is in the row of the current macroblock;
j : 像素位于当前宏块的列;  j : the pixel is in the column of the current macroblock;
mean: 求均值。  Mean: Find the mean.
S122,加权 Up模式 S122, weighted Up mode
加权 Up模式: 该模式考虑当前编码子块的像素与其已编码邻近像素、 已 编码次邻近像素的关联度信息进行预测, 即当前编码子块的像素使用上侧 已编码子块中最邻近及次邻近的已编码像素的线性函数来表示。 Weighted Up mode: The mode predicts the correlation degree information of the pixel of the current coded sub-block and its encoded neighboring pixel and the coded secondary neighboring pixel, that is, the pixel of the current coded sub-block uses the nearest neighbor and the next of the coded sub-block of the upper side. A linear function of adjacent coded pixels is represented.
具体实施如下: The specific implementation is as follows:
if (上侧子块已编码)
Figure imgf000010_0001
Figure imgf000010_0002
If (the upper sub-block is encoded)
Figure imgf000010_0001
Figure imgf000010_0002
Pr ecl[i] [j]: 当前编码像素的预测值,  Pr ecl[i] [j]: the predicted value of the current coded pixel,
j : 像素位于当前宏块的列。  j : The pixel is in the column of the current macroblock.
S123,加权 Left模式 S123, weighted Left mode
加权 Left模式: 该模式考虑当前编码子块的像素与其已编码邻近像素、 已 编码次邻近像素的关联度信息进行预测, 即当前编码子块的像素使用左侧 已编码子块中最邻近及次邻近的已编码像素的线性函数来表示。 Weighted Left mode: This mode considers the pixel of the current encoded sub-block with its encoded neighboring pixels, The correlation degree information of the coded secondary neighboring pixels is predicted, that is, the pixels of the current coded sub-block are represented by a linear function of the nearest neighboring and next neighboring coded pixels in the left coded sub-block.
具体实施如下:  The specific implementation is as follows:
if (左侧子块已编码)
Figure imgf000011_0001
Figure imgf000011_0002
If (the left subblock is encoded)
Figure imgf000011_0001
Figure imgf000011_0002
Pred[i][j]: 当前编码像素的预测值,  Pred[i][j]: the predicted value of the current encoded pixel,
i : 像素位于当前宏块的行。  i : The pixel is in the row of the current macroblock.
S124,第一加权模式  S124, the first weighting mode
第一加权模式: 该模式考虑当前编码子块的像素与其已编码邻近像素的关 联度信息进行预测, 同时考虑到随着距离的远离这种相关度也随之降低。 考虑到此, 第一加权模式即当前编码子块的像素使用上侧及右上侧已编码 子块中最邻近的已编码像素的线性函数来表示, 在编码像素与已编码像素 距离变远后, 直接用当前编码子块的已编码像素的预测值, 替换当前编码 子块最邻近的已编码像素。 具体实施如下:  First Weighting Mode: This mode predicts the degree of correlation of the pixels of the current coded sub-block with its encoded neighboring pixels, and also reduces the correlation as the distance is further removed. In view of this, the first weighting mode, that is, the pixel of the current coded sub-block is represented by a linear function of the nearest neighbored coded pixel in the upper and upper right side coded sub-blocks, after the coded pixel is farther away from the coded pixel, The nearest encoded coded pixel of the current coded sub-block is replaced with the predicted value of the coded pixel of the current coded sub-block. The specific implementation is as follows:
上侧、 右上侧子块已编码) The upper and upper right subblocks are encoded)
Pved [0] [0] = (A + C + 2*B + 2) / 4;  Pved [0] [0] = (A + C + 2*B + 2) / 4;
Pved [0] [1] = (B + D + 2*C + 2) / 4;  Pved [0] [1] = (B + D + 2*C + 2) / 4;
Pved [0] [2] = (C + E + 2*D + 2) / 4; ■ / (ζ + [6]dui9 +[8]du + [e] [z Pa-Jd) = [ε][ε] I (z +[8]*ι + ([e] [zi
Figure imgf000012_0001
[Z] [ε] P9¾
Pved [0] [2] = (C + E + 2*D + 2) / 4; ■ / (ζ + [6]dui9 +[8]du + [e] [z P a - J d) = [ε][ε] I (z +[8]*ι + ([e] [zi
Figure imgf000012_0001
[Z] [ε] P 9 3⁄4
■ / (Z + [S] dais; +[ άm^ ή:z + [£] [ΐ] P9¾)= [£] [Z] P9Jd■ / (Z + [S] dais; +[ άm^ ή :z + [£] [ΐ] P 9 3⁄4)= [£] [Z] P 9J d
■ / {z + ]du + [e] [T] Ρ3¼^Ζ + [z] [τ] P9¾)= [Z] [Z] P9Jd : /(ζ+[ε] [ΐ] [ΐ] ) +[ΐ] [ΐ] P3jd)= [ΐ] [z] p^d■ / {z + ]du + [e] [T] Ρ 3 1⁄4^Ζ + [z] [τ] P 9 3⁄4)= [Z] [Z] P 9J d : /(ζ+[ε] [ΐ ] [ΐ] ) +[ΐ] [ΐ] P 3j d)= [ΐ] [z] p^d
■ /(Z+[Z [ΐ] PdJd +([ΐ] [ΐ] ^¾)*2+[0] [ΐ] Ρ^ά)= [0] [2] P^ ■ / (Z + [Tjdais +[0] α *2 + [G] [0] P9¾)= [C] [T] P9Jd■ /(Z+[Z [ΐ] P dJ d +([ΐ] [ΐ] ^3⁄4)*2+[0] [ΐ] Ρ^ά)= [0] [2] P^ ■ / (Z + [Tjdais +[0] α *2 + [G] [0] P 9 3⁄4)= [C] [T] P 9J d
■ I {z +[ο]*κ + [e] [o] P3^Z + [z [o] P9¾)= [Z] [T] p^d■ I {z +[ο]*κ + [e] [o] P 3 ^Z + [z [o] P 9 3⁄4)= [Z] [T] p^d
■ / (Z+ [Z]
Figure imgf000012_0002
[6] du
■ / (Z+ [Z]
Figure imgf000012_0002
[6] du
: / (Z+ [9] ώι +^ [g] du + [ α ) = [§] α : / (Z+ [9] ώι +^ [g] du + [ α ) = [§] α
■ / (Z+ [ε]
Figure imgf000012_0003
[g] drai : / (Z+ [Z] [ΐ] du + [o] d d ) = [ ] drai
■ / (Z+ [ε]
Figure imgf000012_0003
[g] drai : / (Z+ [Z] [ΐ] du + [o] dd ) = [ ] drai
: /( +Η*ε+。) = [ ]*κ
Figure imgf000012_0004
: /( +Η*ε+.) = [ ]*κ
Figure imgf000012_0004
+3) = [0] drai +3) = [0] drai
■ /(Z+[ [0] PdJd +([2] [0] P^d)^Z+[l [0] Ρ^ά)= [ΐ] [ΐ] P^d ■ /(Z+[Z] [0] PdJd + ([T] [0]
Figure imgf000012_0005
■ /(Z+[ [0] P dJ d +([2] [0] P^d)^Z+[l [0] Ρ^ά)= [ΐ] [ΐ] P^d ■ /(Z+[Z ] [0] P dJ d + ([T] [0]
Figure imgf000012_0005
■ / (z + + ή + a) = [ε] [o] djd Pred[i][j]: 当前编码像素的预测值, ■ / (z + + ή + a) = [ε] [o] dj d Pred[i][j]: the predicted value of the current encoded pixel,
temp[]: 为当前模式的中间变量, 其是为了在实现编码像素与已编码 像素距离变远后, 直接用当前子块的已编码像素的预测值, 替换当前 编码子块最邻近的已编码像素这一功能的清晰描述,而设置的中间变 i : 像素位于当前宏块的行;  Temp[]: is the intermediate variable of the current mode, which is used to replace the nearest neighbor of the current coded sub-block with the predicted value of the coded pixel of the current sub-block directly after the distance between the coded pixel and the coded pixel is changed. A clear description of the function of the pixel, and the middle of the setting is i: the pixel is located in the row of the current macroblock;
j : 像素位于当前宏块的列。  j : The pixel is in the column of the current macroblock.
S125,第二加权模式 S125, second weighting mode
第二加权模式: 该模式考虑当前编码子块的像素与其已编码邻近像素的关 联度信息进行预测, 同时考虑到随着距离的远离这种相关度也随之降低。 考虑到此, 第二加权模式即当前编码子块的像素使用上侧及右上侧已编码 子块中最邻近的已编码像素的线性函数来表示, 在编码像素与已编码像素 距离变远后, 直接用当前编码子块的已编码像素的预测值, 替换当前编码 子块最邻近的已编码像素。 具体实施如下: Second Weighting Mode: This mode considers the correlation degree information of the pixels of the current coded sub-block and its encoded neighboring pixels, and also reduces the correlation as the distance is farther away. In view of this, the second weighting mode, that is, the pixel of the current coding sub-block is represented by a linear function of the nearest adjacent coded pixel in the upper and upper right encoded sub-blocks, after the distance between the coded pixel and the coded pixel is changed, The nearest encoded coded pixel of the current coded sub-block is replaced with the predicted value of the coded pixel of the current coded sub-block. The specific implementation is as follows:
侧子块已编码) Side subblocks are encoded)
Pred [0] [0] = (A + B + 1) / 1 2; Pred [0] [0] = (A + B + 1) / 1 2;
Pred [0] [1] = (B + C + 1) / 1 2; Pred [0] [1] = (B + C + 1) / 1 2;
Fred [0] [2] = (C + D + 1) / 1 2; Fred [0] [2] = (C + D + 1) / 1 2;
Pred [0] [3] = (D + E + 1) / 1 2; Pred [0] [3] = (D + E + 1) / 1 2;
Pred [1] [0] = (Pred [0] [0] + PreJ [0] [1] + 1)  Pred [1] [0] = (Pred [0] [0] + PreJ [0] [1] + 1)
Pred [1] [1] = (Pred [0] [1] + PreJ [0] [2] + 1)  Pred [1] [1] = (Pred [0] [1] + PreJ [0] [2] + 1)
Pred [1] [2] = (Pred [0] [2] + Prej ] [0] [3] + 1) Fred [1] [3] = (D + 2*E + F + 2) / 4; Pred [1] [2] = (Pred [0] [2] + Prej ] [0] [3] + 1) Fred [1] [3] = (D + 2*E + F + 2) / 4;
Fred [2] [0] =(Pved [1] [0] +Pved [1] [1] + l) / 2;  Fred [2] [0] = (Pved [1] [0] + Pved [1] [1] + l) / 2;
Fred [2] [1] =(Pved [1] [1] +Pved [1] [2] + l) / 2;  Fred [2] [1] = (Pved [1] [1] + Pved [1] [2] + l) / 2;
PreJ [2] [2] =(Pved [1] [2] +PreJ [1] [3] + l) / 2;  PreJ [2] [2] = (Pved [1] [2] + PreJ [1] [3] + l) / 2;
PreJ [2] [3] = (Fred [1] [3]*4 +D + 2*E + F+ 4) /8;  PreJ [2] [3] = (Fred [1] [3]*4 +D + 2*E + F+ 4) /8;
Fred [3] [0] =(Pved [2] [0] +Pved] [2] [1] + l) / 2;  Fred [3] [0] = (Pved [2] [0] + Pved] [2] [1] + l) / 2;
PreJ [3] [1] =(PreJ [2] [1] +Pved [2] [2] + 1) / 2;  PreJ [3] [1] = (PreJ [2] [1] + Pved [2] [2] + 1) / 2;
Fred [3] [2] =(PreJ [2] [2] +Pved [2] [3] + l) / 2;  Fred [3] [2] = (PreJ [2] [2] + Pved [2] [3] + l) / 2;
PreJ [3] [3] = (Pred*8 + (G+F ) *3 + E+ H+ 8) /16;  PreJ [3] [3] = (Pred*8 + (G+F ) *3 + E+ H+ 8) /16;
PreJ[ ][7]: 当前编码像素的预测值, Pr e J[ ][7]: the predicted value of the current coded pixel,
temp口: 当前模式的中间变量;  Temp port: the intermediate variable of the current mode;
i : 像素位于当前宏块的行;  i : the pixel is in the row of the current macroblock;
j : 像素位于当前宏块的列。  j : The pixel is in the column of the current macroblock.
S126,第三加权模式 S126, third weighting mode
第三加权模式: 该模式考虑当前编码子块的像素与其已编码邻近像素的关 联度信息进行预测, 同时考虑到随着距离的远离这种相关度也随之降低。 考虑到此, 第三加权模式即当前编码子块的像素使用左侧已编码子块中最 邻近的已编码像素的线性函数来表示, 在编码像素与已编码像素距离变远 后, 直接用当前编码子块的已编码像素的预测值, 替换当前编码子块最邻 近的已编码像素。 具体实施如下: Third Weighting Mode: This mode predicts the degree of correlation of the pixels of the current coded sub-block with its encoded neighboring pixels, and also reduces the correlation as the distance is further removed. In view of this, the third weighting mode, that is, the pixel of the current coded sub-block is represented by a linear function of the nearest neighbored coded pixel in the left coded sub-block, and after the distance between the coded pixel and the coded pixel is changed, the current The predicted value of the encoded pixel of the encoded sub-block replaces the nearest encoded encoded pixel of the current encoded sub-block. The specific implementation is as follows:
侧子块已编码) Side subblocks are encoded)
Fred [0] [0] = (I + J + 1) / 2;  Fred [0] [0] = (I + J + 1) / 2;
Fred [0] [1] = (I + 2*J + K + 2) / 4; Pred [1] [0] = (J + K + 1) / 2; Fred [0] [1] = (I + 2*J + K + 2) / 4; Pred [1] [0] = (J + K + 1) / 2;
Pred [0] [2] = (J + K +Pred [1] [0]*2+2) / 4;  Pred [0] [2] = (J + K +Pred [1] [0]*2+2) / 4;
Pred [1] [1] = (J + 2*K + L + 2) / 4;  Pred [1] [1] = (J + 2*K + L + 2) / 4;
Pred [2] [1] = (K + 2*L + L + 2) / 4;  Pred [2] [1] = (K + 2*L + L + 2) / 4;
Pred [0] [3] = (Pr -cd [0] [1] + 2*PreJ [1] [1] + Pred [2] [1] + 2) / ' Pred [0] [3] = (Pr -cd [0] [1] + 2*PreJ [1] [1] + Pred [2] [1] + 2) / '
Pred [2] [0] = (K + L + 1) / 2; Pred [2] [0] = (K + L + 1) / 2;
Pred [1] [2] = (Pr ■ed [1] [1] + PreJ [2] [1] + l) / 2;  Pred [1] [2] = (Pr ■ed [1] [1] + PreJ [2] [1] + l) / 2;
Pred [3] [1] = L;  Pred [3] [1] = L;
Pred [1] [3] = (Pi 'ed [1] [1] + 2*PreJ [2] [1] + Vved [3] [1] + 2) / Pred [1] [3] = (Pi 'ed [1] [1] + 2*PreJ [2] [1] + Vved [3] [1] + 2) /
Pred [3] [0] = Pred [2] [2] = Pred [2] [3] =Pred [3] [2] =Pred [3] [3] =Pred [3] [0] = Pred [2] [2] = Pred [2] [3] =Pred [3] [2] =Pred [3] [3] =
Pred[i][j]: 当前编码像素的预测值, Pred[i][j]: the predicted value of the current encoded pixel,
i : 像素位于当前宏块的行;  i : the pixel is in the row of the current macroblock;
j : 像素位于当前宏块的列。  j : The pixel is in the column of the current macroblock.
S127,第四加权模式  S127, fourth weighting mode
第四加权模式: 该模式考虑当前编码子块的像素与其已编码邻近、 次邻近 像素的关联度信息进行预测。 考虑到此, 第四加权模式即当前编码子块的 像素使用上侧、 左侧以及左上侧已编码子块中最邻近、 次邻近的已编码像 素的线性函数来表示。 具体实施如下:  Fourth Weighting Mode: This mode predicts the correlation degree information of the pixels of the current coded sub-block and its encoded adjacent and neighboring pixels. In view of this, the fourth weighting mode, i.e., the pixel of the current coded sub-block, is represented by a linear function of the nearest neighboring, next neighboring coded pixels in the upper, left, and upper left encoded sub-blocks. The specific implementation is as follows:
上侧及左侧子块已编码) The upper and left sub-blocks are encoded)
Pred [3] [0] = (J1+ + 2*K + 2) / 3;  Pred [3] [0] = (J1+ + 2*K + 2) / 3;
Pred [2] [0] =Pved [3] [1] = (11+ 2*J + 2) / 3;  Pred [2] [0] = Pved [3] [1] = (11 + 2*J + 2) / 3;
Pred [1] [0] =Pved [2] [1] = Pred [3] [2] = (X2+ 2*1 + 2) / 3;  Pred [1] [0] = Pved [2] [1] = Pred [3] [2] = (X2+ 2*1 + 2) / 3;
Pred [0] [0] 二 Pred [1] [1] = Pred [2] [2] = Pred [3] [3] = (I + 2*X + A + 2) / 4; Pred [0] [0] Two Pred [1] [1] = Pred [2] [2] = Pred [3] [3] = (I + 2*X + A + 2) / 4;
Fred [0] [1] =Pved [1] [2] = Fred [2] [3] = (X1+ 2*A + 2) / 3; Fred [0] [2] =Pred [1] [3] = (Al + 2*B + 2) / 3;  Fred [0] [1] = Pved [1] [2] = Fred [2] [3] = (X1+ 2*A + 2) / 3; Fred [0] [2] =Pred [1] [3] = (Al + 2*B + 2) / 3;
Fred [0] [3] = (Bl + 2*C + 2) / 3;  Fred [0] [3] = (Bl + 2*C + 2) / 3;
Pved[i][j]: 当前编码像素的预测值,  Pved[i][j]: the predicted value of the current encoded pixel,
i : 像素位于当前宏块的行;  i : the pixel is in the row of the current macroblock;
j : 像素位于当前宏块的列。  j : The pixel is in the column of the current macroblock.
S128,第五加权模式  S128, fifth weighting mode
第五加权模式: 该模式考虑当前编码子块的像素与其已编码邻近、 次邻近 像素的关联度信息进行预测。 考虑到此, 第五加权模式即当前编码子块的 像素使用上侧、 左侧以及左上侧已编码子块中最邻近、 次邻近的已编码像 素的线性函数来表示。 具体实施如下:  Fifth weighting mode: This mode predicts the correlation degree information of the pixels of the current coded sub-block and its encoded adjacent and neighboring pixels. In view of this, the fifth weighting mode, i.e., the pixel of the current coded sub-block, is represented by a linear function of the nearest neighboring, next neighboring coded pixels in the upper, left, and upper left encoded sub-blocks. The specific implementation is as follows:
if (上侧及左侧子块已编码) If (upper and left subblocks are encoded)
Pred [0] [0] = Pred [2] [1] = (X + A*2 +X1+ 2) / 4;  Pred [0] [0] = Pred [2] [1] = (X + A*2 +X1+ 2) / 4;
Pred [0] [1] = Pred [2] [2] = (A + B*2 + A1+ 2) / 4  Pred [0] [1] = Pred [2] [2] = (A + B*2 + A1+ 2) / 4
Pred [0] [2] = Pred [2] [3] = (B + C + 1) / 2;  Pred [0] [2] = Pred [2] [3] = (B + C + 1) / 2;
Pred [0] [3] = (C + D + 1) / 2;  Pred [0] [3] = (C + D + 1) / 2;
Pred [1] [0] = Pred [3] [1] = (I + 2*X + XI + 2) /  Pred [1] [0] = Pred [3] [1] = (I + 2*X + XI + 2) /
Pred [1] [1] = Pred [3] [2] = (Al + 2*A + X + 2) 1  Pred [1] [1] = Pred [3] [2] = (Al + 2*A + X + 2) 1
Pred [1] [2] = Pred [3] [3] = (Bl + 2*B + A + 2) 1  Pred [1] [2] = Pred [3] [3] = (Bl + 2*B + A + 2) 1
Pred [1] [3] = (CI + 2*C + B + 2) 14;  Pred [1] [3] = (CI + 2*C + B + 2) 14;
Pred [2] [0] = (X + 2*1 + J + 2) 14;  Pred [2] [0] = (X + 2*1 + J + 2) 14;
Pred [3] [0] = (I + 2*J + K + 2) 14; Pred[i][j]: 当前编码像素的预测值, Pred [3] [0] = (I + 2*J + K + 2) 14; Pred[i][j]: the predicted value of the current encoded pixel,
i: 像素位于当前宏块的行;  i: the pixel is located in the row of the current macroblock;
j: 像素位于当前宏块的列。  j: The pixel is in the column of the current macroblock.
S129,第六加权模式 S129, sixth weighting mode
第六加权模式: 该模式考虑当前编码子块的像素与其已编码邻近、 次邻近 像素的关联度信息进行预测。 考虑到此, 第六加权模式即当前编码子块的 像素使用上侧、 左侧以及左上侧已编码子块中最邻近、 次邻近的已编码像 素的线性函数来表示。 具体实施如下: Sixth Weighting Mode: This mode predicts the correlation degree information of the pixels of the current coded sub-block and its encoded neighboring and neighboring pixels. In view of this, the sixth weighting mode, i.e., the pixel of the current coded sub-block, is represented by a linear function of the nearest neighboring, next neighboring coded pixels in the upper, left, and upper left encoded sub-blocks. The specific implementation is as follows:
侧及左, U子块已编码)  Side and left, U sub-blocks are encoded)
Pred [0] [0] = (X + I + 1) / 2  Pred [0] [0] = (X + I + 1) / 2
Fred [1] [2] = (X + 1*3 + 2) / 4  Fred [1] [2] = (X + 1*3 + 2) / 4
Pred [0] [1] = (3*X + A + 2) / 4;  Pred [0] [1] = (3*X + A + 2) / 4;
Pred [1] [3] = (X + A*3 + 2) / 4;  Pred [1] [3] = (X + A*3 + 2) / 4;
Pred [0] [2] = (Xl+X + A + B + 2) 1  Pred [0] [2] = (Xl+X + A + B + 2) 1
Pred [0] [3] = (A1+ A + B + C + 2)  Pred [0] [3] = (A1+ A + B + C + 2)
Pred [1] [0] = (Il+I + J *2+ 2) / 4  Pred [1] [0] = (Il+I + J *2+ 2) / 4
Pred [2] [2] = (I + J + 1) / 2;  Pred [2] [2] = (I + J + 1) / 2;
Pred [1] [1] = (X2 +1*3 + 2) / 4;  Pred [1] [1] = (X2 +1*3 + 2) / 4;
Pred [2] [3] = (X2 + I + 1) /2;  Pred [2] [3] = (X2 + I + 1) /2;
Pred [2] [0] = (J + K*2 + Jl+2) 14  Pred [2] [0] = (J + K*2 + Jl+2) 14
Pred [3] [2] = (J + K +1) 12;  Pred [3] [2] = (J + K +1) 12;
Pred [2] [1] = (11 + 2* J + J1+ 2) 4  Pred [2] [1] = (11 + 2* J + J1+ 2) 4
Pred [3] [3] = (11 + J + J1+ 1) 13 Fr ed [3] [0] = (K + L*2 +K1+ 2) / 4 ; Pred [3] [3] = (11 + J + J1+ 1) 13 Fr ed [3] [0] = (K + L*2 + K1 + 2) / 4 ;
Fr ed [3] [1] = (Jl + 2* K + Kl + 2) / 4 ;  Fr ed [3] [1] = (Jl + 2* K + Kl + 2) / 4 ;
Pved[i][j] : 当前编码像素的预测值,  Pved[i][j] : the predicted value of the current encoded pixel,
i : 像素位于当前宏块的行;  i : the pixel is in the row of the current macroblock;
j : 像素位于当前宏块的列。  j : The pixel is in the column of the current macroblock.
S2、 色度帧内预测  S2, chroma intra prediction
S21 ,首先将当前编码色度块(宏块中相应的色度块)均匀划分为 4个子块; 考虑到当前编码色度块的像素与其已编码邻近已编码像素的关联度信息随着 距离的远离这种相关度也随之降低,对不同的编码子块使用不同的像素进行预 测, 以此提升编码效果。  S21, firstly, the current coded chroma block (the corresponding chroma block in the macroblock) is evenly divided into 4 sub-blocks; taking into account the distance information of the pixel of the current coded chroma block and its encoded adjacent coded pixel Far from this correlation, the correlation is also reduced, and different coding sub-blocks are used to predict different coding sub-blocks, thereby improving the coding effect.
一方面人眼对色度信息相对不敏感, 另一方面由于目前采用的 YUV420 格式的编码源在色度上采样点间距大,所以在色度预测上需要及时更新所需的 预测像素值。结合如上特点, 本发明实施例提出了基于子块的色度帧内预测模 式。为了描述 8x8的色度帧内预测,将当前编码宏块 MB的色度信息及进行帧 内预测所需要的预测像素标注如下:  On the one hand, the human eye is relatively insensitive to chrominance information. On the other hand, since the YUV420 format encoding source currently used has a large sampling point spacing in chroma, it is necessary to update the required prediction pixel value in chrominance prediction. In combination with the above features, the embodiment of the present invention proposes a sub-block based chroma intra prediction mode. To describe the 8x8 chroma intra prediction, the chrominance information of the currently coded macroblock MB and the predicted pixels required for intra prediction are labeled as follows:
Figure imgf000018_0001
Blockll、 Blockl2、 Block21、 Block22为: 对当前编码色度块作均匀划分 的 4个子块, 称为色度子块;
Figure imgf000018_0001
Blockll, Blockl2, Block21, and Block22 are: 4 sub-blocks that are uniformly divided into the current coded chroma block, called a chroma sub-block;
A B C D E F G H为: 当前编码色度块上侧第一行像素值; IJKLMNOP为: 当前编码色度块左侧第一列像素值;  A B C D E F G H is: the first row of pixel values on the upper side of the current coded chroma block; IJKLMNOP is: the first column of pixel values on the left side of the current coded chroma block;
X为: 当前编码色度块左上角像素值。  X is: the pixel value of the upper left corner of the current coded chroma block.
S211,基于子块的递进 DC模式  S211, sub-block based progressive DC mode
基于子块的递进 DC模式:当前编码色度块的左上子块像素使用上侧及左 侧的已编码色度块中, 最接近当前编码色度块的行像素和列像素的均值来描 述;而其他三个子块则分别利用最接近当前编码色度子块的行像素和列像素的 均值及最邻近当前编码色度块的已编码子块的均值来表示。  Sub-block-based progressive DC mode: The upper left sub-block pixel of the current coded chroma block is described using the mean of the row and column pixels closest to the current coded chroma block in the coded chroma block on the upper and left sides. The other three sub-blocks are respectively represented by the mean of the row and column pixels closest to the current coded chroma sub-block and the mean of the coded sub-blocks closest to the current coded chroma block.
具体实施如下:  The specific implementation is as follows:
a)Blockll a) Blockll
if (上侧及左侧子块已编码)  If (upper and left subblocks are encoded)
Pr eJn[i][j] = mean(A, B, C, D, I, J, K, L) Pr eJ n [i][j] = mean(A, B, C, D, I, J, K, L)
else if (仅上侧子块已编码)  Else if (only the upper sub-block is encoded)
Pr edn[i] [j] = mean(A, B,C,D) Pr ed n [i] [j] = mean(A, B, C, D)
else if (仅左侧子块已编码)  Else if (only the left subblock is encoded)
PreJnfiJfj] = mean(I,J ,K,L)  PreJnfiJfj] = mean(I,J ,K,L)
else  Else
Pr [i][j] = 128  Pr [i][j] = 128
Pved[i][j]: 当前编码像素的预测值,  Pved[i][j]: the predicted value of the current encoded pixel,
i : 像素位于当前色度块的行;  i : the pixel is in the row of the current chroma block;
j : 像素位于当前色度块的列; mean: 求均值〇 b) Blockl2 j : the pixel is in the column of the current chroma block; Mean: seeking mean 〇b) Blockl2
if (上侧子块已编码)  If (the upper sub-block is encoded)
Pre<i12[i][j] = mean(E, F,G,H ,Predn) else Pre<i 12 [i][j] = mean(E, F,G,H ,Pred n ) else
Pred12[i][i] = Predn Pred 12 [i][i] = Pred n
Pved[i][j]: 当前编码像素的预测值, i : 像素位于当前色度块的行; j : 像素位于当前色度块的列; mean: 求均值〇 c)Block21  Pved[i][j]: the predicted value of the current coded pixel, i : the pixel is in the row of the current chroma block; j : the pixel is in the column of the current chroma block; mean: seeking the mean 〇 c)Block21
if (左侧子块已编码)  If (the left subblock is encoded)
Pre<i21[i][j] = mean(M , Ν, Ο, Ρ, Pr edn) else Pre<i 21 [i][j] = mean(M , Ν, Ο, Ρ, Pr ed n ) else
Pred21[i][i] = Predn Pred 21 [i][i] = Pred n
Pved[i][j]: 当前编码像素的预测值, i : 像素位于当前色度块的行; j : 像素位于当前色度块的列; mean: 求均值〇 c) Block22  Pved[i][j]: the predicted value of the current encoded pixel, i : the pixel is in the row of the current chroma block; j : the pixel is in the column of the current chroma block; mean: seeking the mean 〇 c) Block22
Pre<i22[i][j] = mean(Fr ed12 , Pr ed21 ) Pre<i 22 [i][j] = mean(Fr ed 12 , Pr ed 21 )
Pved[i][j]: 当前编码像素的预测值, i : 像素位于当前色度块的行; j : 像素位于当前色度块的列; Pved[i][j]: the predicted value of the current coded pixel, i : the pixel is located in the row of the current chroma block; j : the pixel is in the column of the current chroma block;
mean: 求均值〇  Mean: seeking mean 〇
5212,第二渐变模式  5212, second gradient mode
在 8x8的色度预测中,对于具有渐变特点的宏块, 则可以利用本发明实施 例的渐变模式进行冗余信息的压缩。第二渐变模式: 即当前编码色度块的像素 使用上侧及左侧的已编码色度块中,最接近当前色度块的像素均值的线性函数 来表示。  In the 8x8 chromaticity prediction, for the macroblock having the gradation characteristic, the gradation mode of the embodiment of the present invention can be used for the compression of the redundant information. The second gradation mode: that is, the pixel of the current coded chrominance block is represented by a linear function of the pixel mean value closest to the current chrominance block among the coded chrominance blocks on the upper side and the left side.
具体实施如下:  The specific implementation is as follows:
mean _u = mean(A, B,C,D,E,F,G, H)  Mean _u = mean(A, B, C, D, E, F, G, H)
mean _ 1 = mean(I, J, K, L, M, N, O, P)  Mean _ 1 = mean(I, J, K, L, M, N, O, P)
BlocklK Blockl2、 Block21、 Block22  BlocklK Blockl2, Block21, Block22
Pre<i[i][j] = ((8 - j) * mean _ u + (8 - i) * mean _ h)/(16 - i - j)  Pre<i[i][j] = ((8 - j) * mean _ u + (8 - i) * mean _ h)/(16 - i - j)
Pved[i][j]: 当前编码像素的预测值,  Pved[i][j]: the predicted value of the current encoded pixel,
i : 像素位于当前色度块的行;  i : the pixel is in the row of the current chroma block;
j : 像素位于当前色度块的列;  j : the pixel is in the column of the current chroma block;
mean: 求均值〇  Mean: seeking mean 〇
5213,基于子块的上侧模式  5213, sub-block based upper mode
一方面人眼对色度信息相对不敏感, 另一方面在色度上采样点间距大, 预 测过于粗糙会引入极大的预测误差。基于此, 本发明实施例提出了基于子块的 上侧模式,即当前编码色度块的像素直接利用上侧已编码色度块的最邻近子块 信息来表示。 具体实施如下: UP12 On the one hand, the human eye is relatively insensitive to the chrominance information. On the other hand, the sampling point spacing is large on the chromaticity, and the prediction is too rough to introduce a great prediction error. Based on this, the embodiment of the present invention proposes a sub-block based upper side mode, that is, the pixel of the current coded chroma block is directly represented by the nearest neighbor sub-block information of the upper coded chroma block. The specific implementation is as follows: UP 12
Lefln Blockll Blockl2 Lefln Blockll Blockl2
Lefi2i Block21 Block22 Lefi 2i Block21 Block22
Blockll Blockl2 Block21 Block22为: 对当前编码色度块作均匀划分的 4个子 块, 即每个大小均为 4x4; Blockll Blockl2 Block21 Block22 is: 4 sub-blocks that evenly divide the current coded chroma block, that is, each size is 4x4;
UPN UP12为: 当前编码色度块的上侧两个子块, 大小均为 4x4; UP N UP 12 is: the upper two sub-blocks of the current coded chroma block, the size is 4x4;
LeftuUPl2"k: 当前编码色度块的左侧两个子块, 大小均为 4x4; L e ft u UP l2 "k: two sub-blocks on the left side of the current coded chroma block, all of which are 4x4;
if (上侧已编码)  If (upper side coded)
PreJ11[i][j] = C/P11[i][j] ; Pr e J 11 [i][j] = C/P 11 [i][j] ;
Pr^12[i][j] = t/F12[i][j]; Pr^ 12 [i][j] = t/F 12 [i][j];
PreJ21[i][j] = C/Pn[3][j] ; Pr e J 21 [i][j] = C/P n [3][j] ;
PreJ22[i][j] = C/P12[3][j]; Pr e J 22 [i][j] = C/P 12 [3][j];
Pr^/U[i][j]: 当前编码色度子块 Blockll的像素预测值; Pr^/ U [i][j]: the pixel prediction value of the current coded chroma sub-block Blockll;
Pr^12[i][j]: 当前编码色度子块 Blockl2的像素预测值; Pr^ 12 [i][j]: the pixel prediction value of the current coded chroma sub-block Blockl2;
Pr^21[i][j]: 当前编码色度子块 Block21的像素预测值; Pr^ 21 [i][j]: the pixel prediction value of the current coded chroma sub-block Block21;
Pr^22[i][j]: 当前编码色度子块 Block22的像素预测值; Pr^ 22 [i][j]: the pixel prediction value of the current coded chroma sub-block Block22;
UPnvm: 当前编码色度子块 Blockll上侧子块的像素预测值; UP n vm: a pixel prediction value of the upper sub-block of the current coded chroma sub-block Blockl;
UP12im: 当前编码色度子块 Blockl2上侧子块的像素预测值; C/Pn[3][j]: 当前编码色度子块 Blockll上侧子块中第 4行的像素预测值; C/P12[3][j]: 当前编码色度子块 Blockl2上侧子块中第 4行的像素预测值; i : 像素位于当前色度块的行; UP 12 im: the pixel prediction value of the upper sub-block of the current coding chroma sub-block Blockl2; C/P n [3][j]: the pixel prediction value of the 4th row in the upper subblock of the current coding chroma subblock Blockll; C/P 12 [3][j]: the current coding chroma subblock Blockl2 The pixel prediction value of the 4th row in the side sub-block; i : the pixel is located in the row of the current chroma block;
j: 像素位于当前色度块的列。  j: The pixel is in the column of the current chroma block.
S214, 基于子块的左侧模式 S214, sub-block based left mode
一方面人眼对色度信息相对不敏感, 另一方面在色度上采样点间距大, 预 测过于粗糙会引入极大的预测误差。 基于此, 本发明实施例提出了、 基于 子块的左侧模式, 即当前编码色度块的像素直接利用左侧已编码色度块的 最邻近子块信息来表示。 具体实施如下: On the one hand, the human eye is relatively insensitive to chrominance information. On the other hand, the sampling point spacing is large on the chromaticity, and the prediction is too rough to introduce a large prediction error. Based on this, the embodiment of the present invention proposes, based on the left block mode of the sub-block, that is, the pixel of the current coded chroma block is directly represented by the nearest neighbor sub-block information of the left coded chroma block. The specific implementation is as follows:
if (左侧已编码) If (coded on the left)
Pr^n[i][j] = L^n[i][j] Prt¾?21[i][j] = Le i21[i][j] Pr^ n [i][j] = L^ n [i][j] Prt3⁄4? 21 [i][j] = Le i 21 [i][j]
Prt¾?12[i][j] = Le in[i][3] PreJ22[i][j] = Left21[i][3] Prt3⁄4? 12 [i][j] = Le i n [i][3] PreJ 22 [i][j] = Left 21 [i][3]
Pr^n[i][j]: 当前编码色度子块 Blockll的像素预测值; Pr^ n [i][j]: the pixel prediction value of the current coded chroma sub-block Blockll;
Pred12[m: 当前编码色度子块 Blockl2的像素预测值; Pred 12 [m: pixel prediction value of the current coded chroma sub-block Blockl2;
PreJ21[i][j] : 当前编码色度子块 Block21的像素预测值; Pr e J 21 [i][j] : the pixel prediction value of the current coded chroma sub-block Block 21;
Pr 22[i][j]: 当前编码色度子块 Block22的像素预测值; Pr 22 [i][j]: the pixel prediction value of the current coded chroma sub-block Block22;
Leftn[m: 当前编码色度子块 Blockll左侧子块的像素预测值; Left n [m: the pixel prediction value of the left subblock of the current coded chroma subblock Blockll;
Left21[i][}: 当前编码色度子块 Block21左侧子块的像素预测值; Left 21 [i][}: the pixel prediction value of the left sub-block of the current coded chroma sub-block Block21;
L^n[i][3]: 当前编码色度子块 Blockll左侧子块中第 4列的像素预测值; L^21[i][3]:当前编码色度子块 Block21左侧子块中第 4列的像素预测值; i : 像素位于当前色度块的行; L^ n [i][3]: the pixel prediction value of the fourth column in the left subblock of the current coded chroma subblock Blockll; L^ 21 [i][3]: the current coded chroma subblock Block21 left side The pixel prediction value of the fourth column in the block; i : the pixel is located in the row of the current chroma block;
j: 像素位于当前色度块的列。 本领域的普通技术人员可以理解,实现上述实施例方法中的全部或部分步 骤是可以通过程序指令相关硬件来完成的,所述的程序可以存储于一计算机可 读取存储介质中, 所述的存储介质可以为 R0M、 RAM, 磁盘、 光盘等。 j: The pixel is in the column of the current chroma block. It will be understood by those skilled in the art that all or part of the steps of the foregoing embodiments may be implemented by a program instruction related hardware, and the program may be stored in a computer readable storage medium. The storage medium may be a ROM, a RAM, a magnetic disk, an optical disk, or the like.
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在本发 明的精神和原则之内所作的任何修改、等同替换和改进等, 均应包含在本发明 的保护范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.

Claims

权 利 要 求 Rights request
1、 一种视频编码帧内预测方法, 其特征在于, 所述方法包括: 根据图像特征、编码像素与邻近已编码像素的关联度、 以及次邻近已编码 像素信息, 采用不同的亮度预测; A video coding intra prediction method, the method comprising: using different brightness prediction according to an image feature, a degree of association between a coded pixel and a neighboring coded pixel, and a second adjacent coded pixel information;
采用基于子块的色度帧内预测,根据当前编码子块的像素与邻近已编码像 素的关联度, 对不同的编码子块使用不同的像素进行色度预测。  Sub-block-based chroma intra prediction is used to perform chromaticity prediction using different pixels for different coded sub-blocks according to the degree of association between the pixels of the current coded sub-block and the adjacent coded pixels.
2、 如权利要求 1所述的视频编码帧内预测方法, 其特征在于, 所述亮度 预测包括对 16x16亮度块的预测和对 4x4亮度块的预测。 2. The video coding intra prediction method according to claim 1, wherein the luminance prediction comprises prediction of a 16x16 luma block and prediction of a 4x4 luma block.
3、 如权利要求 2所述的视频编码帧内预测方法, 其特征在于,  3. The video coding intra prediction method according to claim 2, wherein:
所述对 16x16亮度块的预测具体为: 采用帧内11_8^ 、 V_Skip模式, 结合 所述图像特征及所述编码像素与邻近已编码像素的关联度,采用第一渐变模式 和第一递进 DC模式进行预测。  The prediction of the 16x16 luma block is specifically: using an intra 11_8^, V_Skip mode, combining the image feature and the degree of association between the coded pixel and the adjacent coded pixel, using the first fade mode and the first progressive DC The mode is predicted.
4、 如权利要求 3所述的视频编码帧内预测方法, 其特征在于,  4. The video coding intra prediction method according to claim 3, wherein:
所述 H_Skip、 V_Skip模式为: 当前编码宏块的像素使用所述当前编码宏 块的像素的左侧及上侧的已编码宏块信息表示。  The H_Skip, V_Skip mode is: the pixels of the currently coded macroblock are represented by the coded macroblock information on the left and upper sides of the pixels of the current coded macroblock.
5、 如权利要求 4所述的视频编码帧内预测方法, 其特征在于,  5. The video coding intra prediction method according to claim 4, wherein:
所述第一渐变模式为:当前编码宏块的像素使用上侧及左侧的已编码宏块 中最接近当前编码宏块的像素均值的线性函数来表示。  The first gradation mode is that the pixels of the currently coded macroblock are represented by a linear function of the pixel mean of the upper and left coded macroblocks closest to the currently coded macroblock.
6、 如权利要求 4所述的视频编码帧内预测方法, 其特征在于,  6. The video coding intra prediction method according to claim 4, wherein:
所述第一递进 DC模式为:当前编码宏块的像素使用上侧及左侧的已编码 宏块中, 最接近当前编码宏块的各两行和两列的像素变化的均值来表示。  The first progressive DC mode is that the pixels of the current coded macroblock are represented by the mean value of the pixel variations of the two rows and two columns of the current coded macroblock, which are used in the upper and left coded macroblocks.
7、 如权利要求 2所述的视频编码帧内预测方法, 其特征在于,  7. The video coding intra prediction method according to claim 2, wherein:
所述对 4x4亮度块的预测, 具体为: 根据所述编码像素与已编码的邻近像 素的关联度以及所述已编码的次邻近像素信息进行预测,其中根据不同的预测 方向采用不同的 4x4亮度块预测模式。 The prediction of the 4×4 luma block is specifically: performing prediction according to the degree of association between the encoded pixel and the encoded neighboring pixel and the encoded secondary neighboring pixel information, where according to different predictions The direction uses different 4x4 luma block prediction modes.
8、 如权利要求 7所述的视频编码帧内预测方法, 其特征在于, 所述不同 4x4亮度块预测模式包括第二递进 DC模式、 加权 Up模式、 加权 Left模式、 第一加权模式、 第二加权模式、 第三加权模式、 第四加权模式、 第五加权模式 以及第六加权模式。  The video coding intra prediction method according to claim 7, wherein the different 4x4 luma block prediction mode comprises a second progressive DC mode, a weighted Up mode, a weighted Left mode, a first weighting mode, and a second The two weighting mode, the third weighting mode, the fourth weighting mode, the fifth weighting mode, and the sixth weighting mode.
9、 如权利要求 8所述的视频编码帧内预测方法, 其特征在于, 所述第二递进 DC模式为:当前编码子块的像素使用上侧及左侧已编码子 块中, 最接近当前编码宏块的各两行和两列的像素变化的均值来表示。  The video coding intra prediction method according to claim 8, wherein the second progressive DC mode is: the pixels of the current coding sub-block are used in the upper and left encoded sub-blocks, and the closest The mean of the pixel variations of the two rows and two columns of the current coded macroblock is represented.
10、 如权利要求 8所述的视频编码帧内预测方法, 其特征在于, 所述加权 Up模式为: 当前编码子块的像素使用上侧已编码子块中最邻近 及次邻近的已编码像素的线性函数来表示。  The video coding intra prediction method according to claim 8, wherein the weighted Up mode is: the pixels of the current coded sub-block use the most adjacent and second adjacent coded pixels in the upper coded sub-block. The linear function is represented.
11、 如权利要求 8所述的视频编码帧内预测方法, 其特征在于, 所述加权 Left模式为:当前编码子块的像素使用左侧已编码子块中最邻近 及次邻近的已编码像素的线性函数来表示。  The video coding intra prediction method according to claim 8, wherein the weighted Left mode is: the pixels of the current coded sub-block use the most adjacent and next adjacent coded pixels in the left coded sub-block. The linear function is represented.
12、 如权利要求 8所述的视频编码帧内预测方法, 其特征在于, 所述第一加权模式和所述第二加权模式为:当前编码子块的像素使用上侧 及右上侧的已编码子块中最邻近的已编码像素的线性函数来表示,在编码像素 与已编码像素距离变远后, 直接用当前编码子块的已编码像素的预测值, 替换 当前编码子块最邻近的已编码像素。  The video coding intra prediction method according to claim 8, wherein the first weighting mode and the second weighting mode are: the coded upper and upper right sides of the pixel of the current coding sub-block are used. A linear function of the nearest neighboring coded pixel in the sub-block indicates that after the coded pixel is farther away from the coded pixel, the predicted value of the coded pixel of the current coded sub-block is directly used to replace the nearest neighbor of the current coded block. Encoded pixels.
13、 如权利要求 8所述的视频编码帧内预测方法, 其特征在于, 所述第三加权模式为:当前编码子块的像素使用左侧的已编码子块中最邻 近的已编码像素的线性函数来表示,在编码像素与已编码像素距离变远后, 直 接用当前编码子块的已编码像素的预测值,替换当前编码子块最邻近的已编码 像素。 The video coding intra prediction method according to claim 8, wherein the third weighting mode is: the pixels of the current coded sub-block use the nearest adjacent coded pixel of the coded sub-block on the left side. The linear function indicates that after the coded pixel is farther away from the coded pixel, the nearest code of the current coded sub-block is replaced by the predicted value of the coded pixel of the current coded sub-block. Pixel.
14、 如权利要求 8所述的视频编码帧内预测方法, 其特征在于, 所述第四加权模式、所述第五加权模式以及所述第六加权模式为: 当前编 码子块的像素使用上侧、左侧以及左上侧的已编码子块中最邻近、次邻近的已 编码像素的线性函数来表示。  The video coding intra prediction method according to claim 8, wherein the fourth weighting mode, the fifth weighting mode, and the sixth weighting mode are: using pixels of a current coding sub-block A linear function of the nearest neighboring, next neighboring coded pixels in the encoded sub-blocks of the side, left side, and upper left side is represented.
15、 如权利要求 1所述的视频编码帧内预测方法, 其特征在于, 所述"采 用基于子块的色度帧内预测,根据当前编码子块的像素与邻近已编码像素的关 联度, 对不同的编码子块使用不同的像素进行色度预测 "具体为: 将当前编码 宏块的色度信息, 均匀划分为 4个子块,根据当前编码子块的像素与邻近已编 码像素的关联度对不同的编码子块使用不同的像素进行预测,包括以下预测模 式: 基于子块的递进 DC模式、 第二渐变模式、 基于子块的上侧模式以及基于 子块的左侧模式。  The video coding intra prediction method according to claim 1, wherein the “sub-block-based chroma intra prediction is performed according to a degree of association between a pixel of a current coding sub-block and a neighboring coded pixel, The chrominance prediction is performed by using different pixels for different coding sub-blocks. Specifically, the chrominance information of the current coded macroblock is evenly divided into four sub-blocks according to the correlation degree between the pixels of the current coded sub-block and the adjacent coded pixels. Prediction is performed using different pixels for different coded sub-blocks, including the following prediction modes: a sub-block based progressive DC mode, a second fade mode, a sub-block based upper mode, and a sub-block based left mode.
16、 如权利要求 15所述的视频编码帧内预测方法, 其特征在于, 所述基于子块的递进 DC模式具体为:当前编码宏块的左上子块像素使用 上侧及左侧的已编码宏块中, 最接近当前宏块的行像素和列像素的均值来描 述;而其他三个子块则分别利用最接近当前宏块的行像素和列像素的均值及当 前编码宏块的已编码子块的均值来表示。  The video coding intra prediction method according to claim 15, wherein the sub-block-based progressive DC mode is specifically: the upper left sub-block pixel of the current coded macro block is used on the upper side and the left side. The average of the row and column pixels of the coded macroblock, which is closest to the current macroblock, is described; and the other three subblocks respectively utilize the mean of the row and column pixels closest to the current macroblock and the encoded of the currently coded macroblock. The mean of the sub-blocks is represented.
17、 如权利要求 15所述的视频编码帧内预测方法, 其特征在于, 所述第二渐变模式具体为:当前编码宏块中的像素使用上侧及左侧的已编 码宏块中, 最接近当前宏块的像素均值的线性函数来表示。  The video coding intra prediction method according to claim 15, wherein the second gradation mode is specifically: the pixels in the current coded macroblock use the coded macroblocks on the upper side and the left side, the most A linear function close to the pixel mean of the current macroblock.
18、 如权利要求 15所述的视频编码帧内预测方法, 其特征在于, 所述基于子块的上侧模式具体为:当前编码宏块中的像素使用上侧的已编 码宏块的最邻近子块信息来表示。 The video coding intra prediction method according to claim 15, wherein the sub-block-based upper side mode is specifically: the pixel in the current coded macro block uses the nearest neighbor of the coded macro block. Sub-block information to represent.
19、 如权利要求 15所述的视频编码帧内预测方法, 其特征在于, 所述基于子块的左侧模式具体为:当前编码宏块中的像素使用左侧已编码 The video coding intra prediction method according to claim 15, wherein the sub-block-based left mode is specifically: the pixels in the current coded macro block are encoded on the left side.
PCT/CN2011/076354 2010-11-15 2011-06-25 Intra frame prediction method for video encoding WO2012065448A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010546081.7A CN102469308B (en) 2010-11-15 2010-11-15 Video coding intra-frame prediction method
CN201010546081.7 2010-11-15

Publications (1)

Publication Number Publication Date
WO2012065448A1 true WO2012065448A1 (en) 2012-05-24

Family

ID=46072391

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/076354 WO2012065448A1 (en) 2010-11-15 2011-06-25 Intra frame prediction method for video encoding

Country Status (2)

Country Link
CN (1) CN102469308B (en)
WO (1) WO2012065448A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117041558A (en) 2016-12-07 2023-11-10 株式会社Kt Method for decoding or encoding video and apparatus for storing video data
US10582195B2 (en) * 2017-06-02 2020-03-03 Futurewei Technologies, Inc. Intra prediction using unequal weight planar prediction
CN111163316A (en) * 2020-01-08 2020-05-15 东电创新(北京)科技发展股份有限公司 High-definition video transmission method and system based on low code stream

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585495A (en) * 2004-06-11 2005-02-23 上海大学 Quick selection of prediction modes in H.264/AVC frame
CN101385347A (en) * 2006-03-03 2009-03-11 三星电子株式会社 Method of and apparatus for video intraprediction encoding/decoding
CN101569201A (en) * 2006-11-07 2009-10-28 三星电子株式会社 Method and apparatus for encoding and decoding based on intra prediction
KR20100095914A (en) * 2009-02-23 2010-09-01 에스케이 텔레콤주식회사 Video encoding/decoding method and apparatus using channel correlation and computer readable recording medium therefor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585495A (en) * 2004-06-11 2005-02-23 上海大学 Quick selection of prediction modes in H.264/AVC frame
CN101385347A (en) * 2006-03-03 2009-03-11 三星电子株式会社 Method of and apparatus for video intraprediction encoding/decoding
CN101569201A (en) * 2006-11-07 2009-10-28 三星电子株式会社 Method and apparatus for encoding and decoding based on intra prediction
KR20100095914A (en) * 2009-02-23 2010-09-01 에스케이 텔레콤주식회사 Video encoding/decoding method and apparatus using channel correlation and computer readable recording medium therefor

Also Published As

Publication number Publication date
CN102469308A (en) 2012-05-23
CN102469308B (en) 2015-05-13

Similar Documents

Publication Publication Date Title
JP7187702B2 (en) Video encoding method, apparatus and computer program
TWI335183B (en)
US9202290B2 (en) Apparatus and method for encoding/decoding images for intra-prediction
US9961358B2 (en) Method and apparatus for non-square intra mode coding
JP4357543B2 (en) Method and system for estimating pixel intra prediction mode
ES2767966T3 (en) Intra-prediction coding under flat representations
EP3139596B1 (en) Method and apparatus for intra mode coding in hevc
TWI549492B (en) Video decoding apparatus
KR100906243B1 (en) Video coding method of rgb color space signal
KR20220162871A (en) Method and apparatus for video coding
JP5547301B2 (en) Separate video encoder, video decoder, video encoding method and video decoding method for each color plane
JP7319438B2 (en) Method and Apparatus, and Computer Program for Improving Intra-Inter Prediction Mode
CN109845263B (en) Apparatus and method for video encoding
WO2014154094A1 (en) Method of cross color intra prediction
CN1784015A (en) Inage predicting encoding method in frame
CN102186086B (en) Audio-video-coding-standard (AVS)-based intra-frame prediction method
KR20110018189A (en) Method and apparatus for encoding video, and method and apparatus for decoding video
JP7124222B2 (en) Method and apparatus for color conversion in VVC
CN113273213A (en) Image encoding/decoding method and apparatus, and recording medium storing bit stream
CN101184240A (en) Device and method for coding a sequence of images in scalable format and corresponding decoding device and method
CN1835590A (en) Method and system for distributing video encoder processing
WO2012065448A1 (en) Intra frame prediction method for video encoding
WO2021244496A1 (en) Encoding and decoding method and apparatus, and device therefor
JP2023524406A (en) A harmonious design between multi-baseline intra-prediction and transform splitting
JP2023525216A (en) Method and computer program for processing video information

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS (EPO FORM 1205A DATED 27-09-2013)

122 Ep: pct application non-entry in european phase

Ref document number: 11841644

Country of ref document: EP

Kind code of ref document: A1