WO2010031352A1 - Video coding/decoding method and apparatus - Google Patents
Video coding/decoding method and apparatus Download PDFInfo
- Publication number
- WO2010031352A1 WO2010031352A1 PCT/CN2009/074032 CN2009074032W WO2010031352A1 WO 2010031352 A1 WO2010031352 A1 WO 2010031352A1 CN 2009074032 W CN2009074032 W CN 2009074032W WO 2010031352 A1 WO2010031352 A1 WO 2010031352A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- block
- prediction mode
- adjacent
- current
- unavailable
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 241000023320 Luma <angiosperm> Species 0.000 claims description 11
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000011084 recovery Methods 0.000 description 5
- 238000010187 selection method Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods 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/157—Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods 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/103—Selection of coding mode or of prediction mode
- H04N19/11—Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
Definitions
- the invention relates to a Chinese patent application filed on September 19, 2008, and the application number is 200810222649. 2.
- the Chinese patent application titled “A Method and Apparatus for Video Codec" Priority is hereby incorporated by reference in its entirety.
- the present invention relates to the field of communications technologies, and in particular, to a video codec technology.
- an implementation scheme for providing error resilience is an intra-frame refresh method, and corresponding error recovery can be achieved to a certain extent by corresponding intra-frame refresh.
- the P frame is encoded by using the inter mode
- the corresponding IR frame is a refresh frame
- some or all of the macro blocks in the IR frame are encoded by using an intra coding mode, that is, in an IR frame.
- An intra-coded macroblock (refresh macroblock) is encoded using only the intra-coding mode by referring only to adjacent macroblocks of the frame.
- the intra-coded macroblock in the refresh frame may refer to a corresponding adjacent macroblock, where the adjacent macroblock is in the same strip as the intra-coded macroblock in the refresh frame, then the adjacent macroblock Both the intra-coded macroblock and the inter-coded macroblock in the block can be used as reference macroblocks for intra-coded macroblocks in the refresh frame.
- a neighboring macroblock of a refresh macroblock is an inter prediction macroblock ( ⁇ macroblock)
- the P macroblock since the P macroblock may refer to the previous P frame, the P macroblock will have It is possible to accumulate the corresponding transmission error from the previous reference P frame, and pass the error to the refresh macroblock (ie, the I macroblock in the IR frame), so that the refresh macroblock may also be affected by the transmission error, thereby reducing The error recovery capability of the intra refresh method.
- Embodiments of the present invention provide a video encoding and decoding method and apparatus, which can ensure error recovery performance and improve codec performance.
- a method of video encoding including:
- Each adjacent block is available only when the current coded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
- each adjacent block is unavailable; or,
- the neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current encoding block.
- a video encoding device includes:
- An intra prediction mode selecting unit configured to select, according to a prediction mode of the neighboring block, an intra prediction mode of the current coding block;
- a first encoding operation unit configured to perform an encoding operation on the current encoding block by using an intra prediction mode selected by the intra prediction mode selecting unit, wherein if the limited DC prediction mode is selected as the intra prediction mode, the shell IJ:
- Each adjacent block is available only when the current coded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
- At least one of the adjacent blocks that have been encoded is an inter prediction block, and each adjacent block is unavailable;
- the neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current encoding block.
- a method of video decoding comprising:
- the decoding operation is performed according to the intra prediction mode adopted by the currently decoded block obtained by the parsing, wherein if the intra prediction mode used is the limited DC prediction mode, the Bay IJ:
- Each adjacent block is available only when the current decoded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
- each adjacent block is unavailable; or,
- a video decoding device includes:
- An intra prediction mode determining unit configured to parse the received encoded code stream, and obtain an intra prediction mode used by the current decoding block
- a first decoding operation unit configured to perform a decoding operation according to an intra prediction mode adopted by the current decoding block obtained by the intra prediction mode determining unit, where, if the adopted intra prediction mode is a limited DC prediction mode, :
- Each adjacent block is available only when the current decoded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
- each adjacent block is unavailable
- the neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current decoding block.
- a method of video encoding including:
- Each adjacent block is available only when the current decoded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
- each adjacent block is unavailable
- the neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current decoded block; and an encoding operation is performed according to availability of the left neighboring block and the upper neighboring block.
- a video encoding device includes:
- a first neighboring block availability identifying unit configured to determine availability of a neighboring block of the current coded block, including: each neighboring block is available only when the current coded block is in the same macroblock as each neighboring block, otherwise, Each adjacent block is unavailable;
- each adjacent block is unavailable
- the neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current encoding block, and a second encoding operation unit, configured to determine, according to the first neighboring block availability identifying unit, the left The availability of the neighboring block and the upper neighboring block encodes the current coded block.
- a method of video decoding comprising:
- Parsing the code stream to determine the availability of neighboring blocks including:
- Each adjacent block is available only when the current decoded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
- each adjacent block is unavailable
- the neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current decoding block; and performing a decoding operation according to availability of the left neighboring block and the upper neighboring block.
- a video decoding device includes:
- a second neighboring block availability identifying unit configured to parse the received coded stream, and determine the availability of the neighboring block, including:
- Each adjacent block is available only when the current coded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
- each adjacent block is unavailable
- the neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current encoding block, and a second decoding operation unit, configured to determine, according to the second neighboring block availability identifying unit, the left Adjacent block and upper The availability of neighboring blocks performs a decoding operation on the currently decoded block.
- the embodiment of the present invention adopts a limited DC prediction mode, or determines the availability of neighboring blocks by using a new determining method of neighboring block availability, thereby enabling The error recovery performance is guaranteed, and the coding efficiency of the intra refresh macroblock can be effectively improved, and the codec performance is improved.
- the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some of the present invention. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative labor.
- FIG. 1 is a schematic diagram of a refresh frame in the prior art
- FIG. 2 is a schematic structural diagram 1 of an encoding apparatus according to an embodiment of the present invention.
- FIG. 3 is a schematic structural diagram 1 of a decoding apparatus according to an embodiment of the present invention.
- FIG. 4 is a schematic structural diagram 2 of an encoding apparatus according to an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram 2 of a decoding apparatus according to an embodiment of the present invention.
- the implementation provided by the embodiment of the present invention may implement flexible selection of the reference block at the sub-block level, and may specifically be an intra-coded block for the adjacent block in the process of selecting the prediction mode of the current intra-coded sub-block.
- the prediction of the intra prediction mode coded neighboring block or the interframe coding block determines whether the current subblock is limited in the DC prediction mode for the encoding operation. At the decoding end, it can be determined whether the encoding end uses the corresponding limited DC prediction mode for encoding, and performs corresponding intra prediction decoding operation.
- the availability rule of the neighboring block is that each adjacent block is available only when the current decoded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable, and according to the corresponding The availability of adjacent blocks is coded.
- the codec mode provided by the embodiment of the present invention can improve the coding efficiency, that is, the compression capability of the intra refresh macroblock, while ensuring the corresponding error recovery performance.
- the encoding end may specifically perform the selection of the intra prediction mode of the current coding block according to the prediction mode of the neighboring block, and perform coding operation on the current coding block by using the selected intra prediction mode, where When the restricted DC prediction mode is selected as the intra prediction mode, then during the encoding process:
- Each neighboring block is available only when the current coded block is in the same macroblock as each neighboring block. Otherwise, each neighboring block is unavailable. For example, it may be considered only when the current coded block is the last luma block. Each neighboring block is available, and when the current coded block is another block, each neighboring block is unavailable;
- each adjacent block is unavailable; or,
- Each neighboring block may include at least one of a left neighboring block or an upper neighboring block of the current encoding block.
- the encoding end may further write, in the encoded code stream, whether to use the flag of the limited DC prediction mode; further, the flag of the limited DC prediction mode may be Written in the sequence header, header, slice header, macroblock or subblock of the stream. Alternatively, if the corresponding limited DC prediction mode is adopted by default, it is not necessary to write the flag of the DC prediction mode in the code stream to the code stream.
- the availability of the neighboring block of the current coding block may also be determined first, which may be:
- Each neighboring block is available only when the current coded block is in the same macroblock as each neighboring block. Otherwise, each neighboring block is unavailable. For example, it may be considered only when the current coded block is the last luma block. Each neighboring block is available, and when the current coded block is another block, each neighboring block is unavailable;
- each adjacent block is not available
- the neighboring block may include at least one of a left neighboring block or an upper neighboring block of the current encoding block; and then, according to the availability of the left neighboring block and the upper neighboring block of the current encoding block, corresponding Encoding operation.
- the method may further include: if there is no inter prediction block in the left neighboring block or the upper neighboring block of the current coding block, the left neighboring block or the upper neighboring block of the current coding block is available.
- an indication flag may also be written in the encoded code stream for indicating that the encoding operation is performed according to the availability of the left neighboring block and the upper neighboring block determined according to the above manner.
- the indicator may be specifically, but not limited to, written in a sequence header, an image header, a slice header, a macroblock or a subblock of the encoded code stream.
- the decoding operation may be performed according to the intra prediction mode adopted by the currently decoded block obtained by the parsing, where Corresponding to the encoding end, if the intra prediction mode used is the limited DC prediction mode, then during the decoding process:
- Each neighboring block is available only when the current decoded block is in the same macroblock as each neighboring block. Otherwise, each neighboring block is unavailable. For example, only when the current coded block is the last luma block, each phase The neighboring block is available, and when the current encoding block is another block, the corresponding neighboring blocks are unavailable;
- each adjacent block is unavailable
- Each neighboring block may include at least one of a left neighboring block or an upper neighboring block of the current decoded block.
- the decoding end obtains the flag of the DC prediction mode that is limited, if the intra prediction mode used by the current decoding block is the DC prediction mode, determining that the current decoding block adopts the limited DC prediction mode, Thereby, the decoding operation can be performed according to the limited DC prediction mode; wherein the flag of the restricted DC prediction mode can be obtained by parsing in a sequence header, an image header, a slice header, a macroblock or a subblock of the code stream.
- the decoder can also use the corresponding limited DC prediction mode by default.
- the decoding end may directly parse the received coded stream and determine the availability of the neighboring block, which may be:
- Each neighboring block is available only when the current decoded block is in the same macroblock as each neighboring block. Otherwise, each neighboring block is unavailable. For example, only when the current coded block is the last luma block, each phase The neighboring block is available, and when the current encoding block is another block, the corresponding neighboring blocks are unavailable;
- each adjacent block is not available
- the neighboring block may include at least one of a left neighboring block or an upper neighboring block of the current decoding block; afterwards, the current decoded block may be corresponding according to the availability of the left neighboring block and the upper neighboring block. Decoding operation Work.
- the method may further include: if there is no inter prediction block in the left neighboring block or the upper neighboring block of the current decoding block, the left neighboring block or the upper neighboring block of the current decoding block is available.
- the encoded code stream may also be parsed to obtain an indication flag, and according to the indication, it is determined that a corresponding decoding operation needs to be performed according to the availability of the left neighboring block and the upper neighboring block determined according to the above manner.
- the embodiments of the present invention may be specifically, but not limited to, applied to a real-time video monitoring system.
- the processing procedure used at the encoding end and the decoding end may be, but is not limited to, including the following steps:
- the specific encoding process can include:
- whether the frame needs to be refreshed may be determined by a frame interval of a certain period, or the frame may be manually specified by a network command or the like.
- the current macroblock in the current frame that needs to be intra-coded also referred to as a refresh macroblock, according to the availability of neighboring blocks of the refresh macroblock (ie, adjacent Whether the macroblock can be used as a reference macroblock of the current macroblock) determining an encoding mode of each subblock of the macroblock, that is, selecting an intra prediction mode of the current coding subblock;
- the availability of the neighboring block means: the neighboring block is already encoded, and is in the same stripe as the current block. At this time, if at least one of the upper neighboring block or the left neighboring block is interframe predicting, Block, then, for the DC prediction mode in the intra prediction mode, it is determined that the neighboring blocks are unavailable, or only when the current coding block is the last luma block, each neighboring block is available, and the current coding block is other blocks. In time, the corresponding neighboring blocks are unavailable, or each neighboring block of the DC mode coded block in the frame is unavailable; the DC prediction mode at this time may be referred to as a limited DC prediction mode.
- step (3) selecting, from the candidate intra prediction mode obtained in step (2), an intra prediction mode of the current coding subblock;
- the corresponding decoding processing steps may include:
- the corresponding limited DC prediction mode refers to: the DC prediction mode of the current sub-block uses only 128 (or other integer) for intra prediction decoding operation; or, only when the current sub-code block is the last luminance block, each adjacent The block is available, and when the current decoding block is another sub-block, the corresponding neighboring blocks are unavailable (that is, only when the current decoding block is another sub-block, the DC prediction mode of the current sub-block uses only 128 or other Integer performs intra prediction decoding operation); or, each neighboring block of the coding block in all DC prediction modes in the frame is unavailable, and the DC prediction mode of the current coding block is only used by 128 (or other integer) prediction.
- 128 or other integer
- the corresponding encoding processing step may include: (1) selecting an intra prediction mode from a set of intra prediction modes including a restricted DC prediction mode, where the corresponding restricted DC prediction mode means that the prediction mode cannot refer to neighboring blocks, and other intra predictions
- the mode can refer to the intra prediction block in the neighboring block or the inter prediction block in the adjacent block.
- the process of selecting an intra prediction mode can be selected by using the RD0 (rate distortion optimization) mode.
- the method selects a corresponding intra prediction mode according to any one or more of a mode selection method of a neighboring block availability, a SAD (absolute value difference) mode selection method, or a fast algorithm mode selection method.
- the flag of the restricted DC prediction mode may be specifically represented by a separate symbol in the sequence header, picture header, slice header, macroblock, sub-block or other part of the code stream, and may also be combined with other syntax units.
- the restricted DC prediction mode flag limitedDC_prediction_flag, which can be a 1-bit unsigned integer. For example, when it is "1", it means that when the coding mode of the luminance or chrominance block of the frame is the intra-frame DC prediction mode, except for the last luminance sub-block, the other sub-blocks are predicted by using "128". When it is "0”, it indicates that the normal DC prediction mode is used; or, the reverse is also possible.
- I can represent the luminance or chrominance matrix
- the current image is the forward predictive coded frame and the limited DC_prediction_flag is ' 1, 1, [J:
- the current intra prediction block is a luma block and the IntraLumaPredMode is equal to '2
- the image samples of the left adjacent block and the upper adjacent block of the 0th, 1st, and 2nd sub-blocks are 'unavailable'
- the third sub-block The image samples of the left adjacent block and the upper adjacent block are all "available";
- IntraChromaPredMode is equal to '0'
- the image samples of the left adjacent block and the upper adjacent block of the current block are all "unavailable".
- the specific decoding step may include the following process:
- an indicator symbol ie, whether to use a restricted DC prediction mode flag
- the indicator symbol is specifically used to indicate whether the DC prediction mode of the frame uses a limited DC prediction mode
- a sequence of frames may be indicated in the sequence header, or the image header may indicate whether the frame uses the limited DC prediction mode, or whether the limit is used by default.
- DC prediction mode in this case, if the limited DC prediction mode is adopted by default, the corresponding indicator can be omitted
- the intra prediction mode of the sub-block is the DC prediction mode
- the indication symbol obtained in the step (1) is the DC prediction mode indicating the frame usage limitation
- the left or upper neighboring blocks of the current block is an inter prediction block
- the current block is a luma block
- the left adjacent block and the upper adjacent block of the 0th, 1st, and 2nd sub-blocks are both ' Not available
- the left neighboring block and the upper neighboring block of the third sub-block are both 'available'
- the current intra-predicted block to be a chroma block
- the left neighboring block of the current block and the upper adjacent block Are 'not available';
- the left or upper neighboring block of the current block is 'unavailable', if the left neighboring block or the upper neighboring block of the current block If there is no inter prediction block, then the left adjacent block or the upper adjacent block of the current block is 'available';
- (4) performing a corresponding intra prediction decoding operation, and the specific prediction manner may include:
- predMatrix [x, y] ( (r [x] +2xr [x+l] +r [x+2] +2) »2+ (c [y] +2xc [y+l] +c [y+ 2] +2) » 2) »1;
- predMatrix [x, y] (r [x] +2xr [x+1] +r [x+2] +2) »2;
- predMatrix [x, y] (c [y] +2xc [y+1] +c [y+2] +2) »2;
- the "128" can also be replaced by other values.
- the embodiment of the present invention further provides a video encoding device, as shown in FIG. 2, which may specifically include:
- the intra prediction mode selection unit 201 is configured to perform, according to the prediction mode of the neighboring block, the selection of the intra prediction mode of the current coding block;
- the first encoding operation unit 202 is configured to perform an encoding operation on the current encoding block by using the intra prediction mode selected by the intra prediction mode selecting unit 201, wherein if the limited DC prediction mode is selected as the intra prediction mode, :
- Each neighboring block is available only when the current coded block is in the same macroblock as each neighboring block. Otherwise, each neighboring block is unavailable, for example, only when the current coded block is the last block of brightness, Adjacent blocks are available;
- At least one of the neighboring blocks that have been decoded is an inter prediction block, and each adjacent block is unavailable;
- Each neighboring block may include at least one of a left neighboring block or an upper neighboring block of the current encoding block.
- the apparatus may further include a restricted DC prediction mode flag writing unit 203, configured to write, in the encoded code stream obtained by the first encoding operation unit 202, whether the flag of the restricted DC prediction mode is used.
- the embodiment of the invention further provides a video decoding device, as shown in FIG. 3, which may specifically include:
- the intra prediction mode determining unit 301 is configured to parse the received encoded code stream, and obtain an intra prediction mode adopted by the current decoding block.
- the intra prediction mode determining unit 301 obtains the DC with the limitation in the parsing.
- the flag of the prediction mode is predicted, if the intra prediction mode adopted by the current decoding block is the DC prediction mode, it is determined that the current decoding block adopts the limited DC prediction mode.
- the first decoding operation unit 302 is configured to perform a decoding operation according to the intra prediction mode adopted by the current decoding block obtained by the intra prediction mode determining unit 301, where the intra prediction mode is a limited DC prediction mode. , then - only when the current decoded block is in the same macro block as each neighboring block, each neighboring block is available; otherwise, each neighboring block is unavailable, for example, only the current decoded block is the last luma block When adjacent blocks are available;
- each adjacent block is unavailable; or,
- Each neighboring block may include at least one of a left neighboring block or an upper neighboring block of the current decoded block.
- Another embodiment of the present invention further provides a video encoding apparatus. As shown in FIG. 4, the specific implementation structure may include:
- the first neighboring block availability identifying unit 401 is configured to determine the availability of the neighboring block of the current coded block, including: each neighboring block is available only when the current coded block is in the same macro block as each adjacent block, otherwise , each neighboring block is unavailable, for example, each neighboring block may be available only when the current coded block is the last luma block;
- each adjacent block is unavailable
- Each of the neighboring blocks may include at least one of a left neighboring block or an upper neighboring block of the current coded block.
- the first neighboring block availability identifying unit 401 may further include: if the current coded block is If there is no inter prediction block in the left neighboring block or the upper neighboring block, the left neighboring block or the upper neighboring block of the current coded block is available;
- the second encoding operation unit 402 is configured to perform an encoding operation on the current encoding block according to the availability of the left neighboring block and the upper neighboring block determined by the first neighboring block availability identifying unit 401.
- Another embodiment of the present invention further provides a video decoding apparatus.
- the specific implementation structure may include Includes:
- the second neighboring block availability identifying unit 501 is configured to parse the received coded stream and determine the availability of the neighboring block, including:
- Each neighboring block is available only when the current decoded block is in the same macroblock as each neighboring block. Otherwise, each neighboring block is unavailable, for example, only when the current decoded block is the last luma block, Adjacent blocks are available;
- each adjacent block is unavailable
- Each of the neighboring blocks may include at least one of a left neighboring block or an upper neighboring block of the current decoded block.
- the second neighboring block availability identifying unit 501 may further include: if the currently decoded block is If there is no inter prediction block in the left neighboring block or the upper neighboring block, the left neighboring block or the upper neighboring block of the current decoding block is available;
- the second decoding operation unit 402 is configured to perform a decoding operation on the current decoded block according to the availability of the left neighboring block and the upper neighboring block determined by the second neighboring block availability identifying unit 501.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
- the embodiment of the present invention can reduce the code rate by using inter-frame prediction in a still area, and the intra prediction coding that limits the motion area ensures the error-proof spreading function of the frame, thereby improving the video after being compressed and transmitted. The subjective and objective quality of the video displayed at the decoder.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
A method and an apparatus for video coding/decoding are provided. At the coding end, selecting intra-prediction mode for the current coding block is performed according to prediction modes of adjacent blocks, then the current coding block is coded by using the selected intra-prediction mode. When the limited DC prediction mode is selected as the intra-prediction mode, the availability of every adjacent block is determined according to the position relation between the current coding block and every adjacent block as well as including the inter-predicted block or not in every adjacent block. At the decoding end, the current decoding block is decoded based on the current intra-prediction mode acquired by analysis.
Description
一种视频编解码的方法及装置 本申请要求于 2008年 9月 19日提交中国专利局、 申请号为 200810222649. 2、 发明名 称为 "一种视频编解码的方法及装置"的中国专利申请的优先权,其全部内容通过引用 结合在本申请中。 The invention relates to a Chinese patent application filed on September 19, 2008, and the application number is 200810222649. 2. The Chinese patent application titled "A Method and Apparatus for Video Codec" Priority is hereby incorporated by reference in its entirety.
技术领域 本发明涉及通信技术领域, 尤其涉及一种视频编解码技术。 The present invention relates to the field of communications technologies, and in particular, to a video codec technology.
发明背景 在视频通信系统中, 视频数据的误码或丢包通常无法避免, 为此, 需要采用相应的 措施提高视频数据的抗误码能力, 以使得视频信息能够尽快的从错误中恢复过来, 为用 户提供较好的主观体验。 BACKGROUND OF THE INVENTION In a video communication system, error or packet loss of video data is generally unavoidable. Therefore, corresponding measures are needed to improve the error resistance of video data, so that video information can be recovered from errors as soon as possible. Provide users with a better subjective experience.
目前, 提供的一种抗误码的实现方案为帧内刷新方法, 通过相应的帧内刷新, 便可 以一定程度实现相应的差错恢复。如图 1所示, 其中的 P帧使用帧间模式进行编码, 而相 应的 IR帧则为刷新帧, 该 IR帧中的部分或全部宏块采用帧内编码模式进行编码, 即 IR帧 中的帧内编码宏块(刷新宏块)仅参考该帧的相邻宏块, 使用帧内编码模式进行编码。 At present, an implementation scheme for providing error resilience is an intra-frame refresh method, and corresponding error recovery can be achieved to a certain extent by corresponding intra-frame refresh. As shown in FIG. 1 , the P frame is encoded by using the inter mode, and the corresponding IR frame is a refresh frame, and some or all of the macro blocks in the IR frame are encoded by using an intra coding mode, that is, in an IR frame. An intra-coded macroblock (refresh macroblock) is encoded using only the intra-coding mode by referring only to adjacent macroblocks of the frame.
具体地, 在刷新帧中的帧内编码宏块可以参考相应的相邻宏块, 其中, 若相邻宏块 与刷新帧中的帧内编码宏块处于同一条带中,则该相邻宏块中的帧内编码宏块和帧间编 码宏块均可以作为该刷新帧中的帧内编码宏块的参考宏块。 Specifically, the intra-coded macroblock in the refresh frame may refer to a corresponding adjacent macroblock, where the adjacent macroblock is in the same strip as the intra-coded macroblock in the refresh frame, then the adjacent macroblock Both the intra-coded macroblock and the inter-coded macroblock in the block can be used as reference macroblocks for intra-coded macroblocks in the refresh frame.
在实现本发明过程中, 发明人发现现有技术中至少存在如下问题: In the process of implementing the present invention, the inventors have found that at least the following problems exist in the prior art:
上述帧内刷新方法中, 若某个刷新宏块的相邻宏块为帧间预测宏块(δΡΡ宏块) , 则由于该 P宏块可能参考之前的 P帧,所以该 P宏块将有可能从前面的参考 P帧中累积相应 的传输差错, 并会将该差错传递给刷新宏块(即 IR帧中的 I宏块) , 使得刷新宏块也可 能会受传输差错的影响, 进而降低了帧内刷新方法的差错恢复能力。 In the above intra refresh method, if a neighboring macroblock of a refresh macroblock is an inter prediction macroblock (δΡΡ macroblock), since the P macroblock may refer to the previous P frame, the P macroblock will have It is possible to accumulate the corresponding transmission error from the previous reference P frame, and pass the error to the refresh macroblock (ie, the I macroblock in the IR frame), so that the refresh macroblock may also be affected by the transmission error, thereby reducing The error recovery capability of the intra refresh method.
发明内容 本发明的实施例提供了一种视频编解码的方法及装置, 从而可以保证差错恢复性 能, 提高编解码性能。 SUMMARY OF THE INVENTION Embodiments of the present invention provide a video encoding and decoding method and apparatus, which can ensure error recovery performance and improve codec performance.
一种视频编码的方法, 包括: A method of video encoding, including:
根据相邻块的预测模式进行当前编码块的帧内预测模式的选择; Selecting an intra prediction mode of the current coding block according to a prediction mode of the neighboring block;
利用选择的帧内预测模式对当前编码块进行编码操作, 其中, 在选择限制的 DC预测
模式作为帧内预测模式时, 贝 IJ : Encoding operation of the current coding block by using the selected intra prediction mode, wherein the DC prediction in the selection is limited When the mode is used as the intra prediction mode, Bay IJ:
仅在当前编码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用; Each adjacent block is available only when the current coded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
或者, Or,
若已经编码的相邻块中的至少一个为帧间预测块时, 各相邻块均不可用; 或者, If at least one of the adjacent blocks that have been encoded is an inter prediction block, each adjacent block is unavailable; or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 所述各相邻块包括当前编码块的左边相邻块或上边相邻块中的至少一项。 一种视频编码装置, 包括: The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current encoding block. A video encoding device includes:
帧内预测模式选择单元,用于根据相邻块的预测模式进行当前编码块的帧内预测模 式的选择; An intra prediction mode selecting unit, configured to select, according to a prediction mode of the neighboring block, an intra prediction mode of the current coding block;
第一编码操作单元,用于利用所述帧内预测模式选择单元选择的帧内预测模式对当 前编码块进行编码操作, 其中, 若选择限制的 DC预测模式作为帧内预测模式, 贝 IJ : a first encoding operation unit, configured to perform an encoding operation on the current encoding block by using an intra prediction mode selected by the intra prediction mode selecting unit, wherein if the limited DC prediction mode is selected as the intra prediction mode, the shell IJ:
仅在当前编码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用; Each adjacent block is available only when the current coded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
或者, Or,
已经编码的相邻块的至少一个为帧间预测块, 各相邻块均不可用; At least one of the adjacent blocks that have been encoded is an inter prediction block, and each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 所述各相邻块包括当前编码块的左边相邻块或上边相邻块中的至少一项。 一种视频解码的方法, 包括: The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current encoding block. A method of video decoding, comprising:
解析需解码的码流, 获得当前解码块采用的帧内预测模式; Parsing the code stream to be decoded, and obtaining an intra prediction mode used by the current decoding block;
根据解析获得的当前解码块采用的帧内预测模式进行解码操作, 其中, 若采用的帧 内预测模式为限制的 DC预测模式, 贝 IJ : The decoding operation is performed according to the intra prediction mode adopted by the currently decoded block obtained by the parsing, wherein if the intra prediction mode used is the limited DC prediction mode, the Bay IJ:
仅在当前解码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用; Each adjacent block is available only when the current decoded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
或者, Or,
若已经解码的相邻块中至少一个为帧间预测块时, 各相邻块均不可用; 或者, If at least one of the adjacent blocks that have been decoded is an inter prediction block, each adjacent block is unavailable; or,
各相邻块均不可用;
其中, 所述各相邻块包括当前解码块的左边相邻块或上边相邻块中的至少一项。 一种视频解码装置, 包括: Each adjacent block is unavailable; The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current decoding block. A video decoding device includes:
帧内预测模式确定单元, 用于解析接收到的编码码流, 并获得当前解码块采用的帧 内预测模式; An intra prediction mode determining unit, configured to parse the received encoded code stream, and obtain an intra prediction mode used by the current decoding block;
第一解码操作单元,用于根据所述帧内预测模式确定单元解析获得的当前解码块采 用的帧内预测模式进行解码操作, 其中, 若采用的帧内预测模式为限制的 DC预测模式, 则: a first decoding operation unit, configured to perform a decoding operation according to an intra prediction mode adopted by the current decoding block obtained by the intra prediction mode determining unit, where, if the adopted intra prediction mode is a limited DC prediction mode, :
仅在当前解码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用; Each adjacent block is available only when the current decoded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
或者, Or,
若已经解码的相邻块中至少一个为帧间预测块, 各相邻块均不可用; If at least one of the adjacent blocks that have been decoded is an inter prediction block, each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 所述各相邻块包括当前解码块的左边相邻块或上边相邻块中的至少一项。 一种视频编码的方法, 包括: The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current decoding block. A method of video encoding, including:
确定当前编码块的相邻块的可用性, 包括: Determine the availability of neighboring blocks of the current coded block, including:
仅在当前解码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻 块均不可用; Each adjacent block is available only when the current decoded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
或者, Or,
若当前编码块的左相邻或上相邻块中至少存在一个帧间预测块, 则各相邻块均 不可用; If at least one inter prediction block exists in the left adjacent or upper neighboring block of the current coding block, each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中,所述各相邻块包括当前解码块的左边相邻块或上边相邻块中的至少一项; 根据左相邻块和上相邻块的可用性进行编码操作。 The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current decoded block; and an encoding operation is performed according to availability of the left neighboring block and the upper neighboring block.
一种视频编码装置, 包括: A video encoding device includes:
第一相邻块可用性识别单元, 用于确定当前编码块的相邻块的可用性, 包括: 仅在当前编码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用; a first neighboring block availability identifying unit, configured to determine availability of a neighboring block of the current coded block, including: each neighboring block is available only when the current coded block is in the same macroblock as each neighboring block, otherwise, Each adjacent block is unavailable;
或者,
若当前编码块的左相邻或上相邻块中至少存在一个帧间预测块,则各相邻块均不可 用; or, If at least one inter prediction block exists in the left adjacent or upper neighboring block of the current coding block, each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 所述各相邻块包括当前编码块的左边相邻块或上边相邻块中的至少一项; 第二编码操作单元,用于根据所述第一相邻块可用性识别单元确定的左相邻块和上 相邻块的可用性对当前编码块进行编码操作。 The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current encoding block, and a second encoding operation unit, configured to determine, according to the first neighboring block availability identifying unit, the left The availability of the neighboring block and the upper neighboring block encodes the current coded block.
一种视频解码的方法, 包括: A method of video decoding, comprising:
解析码流, 确定相邻块的可用性, 包括: Parsing the code stream to determine the availability of neighboring blocks, including:
仅在当前解码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻 块均不可用; Each adjacent block is available only when the current decoded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
或者, Or,
若当前解码块的左相邻或上相邻块中至少存在一个帧间预测块, 则各相邻块均 不可用; If at least one inter prediction block exists in the left adjacent or upper neighboring block of the current decoded block, each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中,所述各相邻块包括当前解码块的左边相邻块或上边相邻块中的至少一项; 根据左相邻块和上相邻块的可用性进行解码操作。 The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current decoding block; and performing a decoding operation according to availability of the left neighboring block and the upper neighboring block.
一种视频解码装置, 包括: A video decoding device includes:
第二相邻块可用性识别单元, 用于解析接收到的编码码流, 确定相邻块的可用性, 包括: a second neighboring block availability identifying unit, configured to parse the received coded stream, and determine the availability of the neighboring block, including:
仅在当前编码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用; Each adjacent block is available only when the current coded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
或者, Or,
若当前解码块的左相邻或上相邻块中至少存在一个帧间预测块, 各相邻块均不可 用; If at least one inter prediction block exists in the left adjacent or upper neighboring block of the current decoded block, each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 所述各相邻块包括当前编码块的左边相邻块或上边相邻块中的至少一项; 第二解码操作单元,用于根据所述第二相邻块可用性识别单元确定的左相邻块和上
相邻块的可用性对当前解码块进行解码操作。 The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current encoding block, and a second decoding operation unit, configured to determine, according to the second neighboring block availability identifying unit, the left Adjacent block and upper The availability of neighboring blocks performs a decoding operation on the currently decoded block.
由上述本发明的实施例提供的技术方案可以看出, 本发明实施例采用了限制的 DC 预测模式, 或者, 采用新的相邻块可用性的确定方式确定相邻块的可用性, 从而使得既 可以保证差错恢复性能, 还可以有效提高帧内刷新宏块的编码效率, 改善编解码性能。 附图简要说明 为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的 附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于 本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得 其他的附图。 It can be seen from the technical solutions provided by the foregoing embodiments of the present invention that the embodiment of the present invention adopts a limited DC prediction mode, or determines the availability of neighboring blocks by using a new determining method of neighboring block availability, thereby enabling The error recovery performance is guaranteed, and the coding efficiency of the intra refresh macroblock can be effectively improved, and the codec performance is improved. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some of the present invention. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative labor.
图 1为现有技术中的刷新帧示意图; 1 is a schematic diagram of a refresh frame in the prior art;
图 2为本发明实施例提供的编码装置的结构示意图一; 2 is a schematic structural diagram 1 of an encoding apparatus according to an embodiment of the present invention;
图 3为本发明实施例提供的解码装置的结构示意图一; 3 is a schematic structural diagram 1 of a decoding apparatus according to an embodiment of the present invention;
图 4为本发明实施例提供的编码装置的结构示意图二; 4 is a schematic structural diagram 2 of an encoding apparatus according to an embodiment of the present invention;
图 5为本发明实施例提供的解码装置的结构示意图二。 FIG. 5 is a schematic structural diagram 2 of a decoding apparatus according to an embodiment of the present invention.
实施本发明的方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、完整 地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基 于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有 其他实施例, 都属于本发明保护的范围。 The embodiments of the present invention will be described clearly and completely in conjunction with the drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of them. An embodiment. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供的实现方案可以在子块层面实现参考块的灵活选择,具体可以在 对当前帧内编码子块的预测模式选择的过程中, 通过对相邻块是帧内编码块(采用帧内 预测模式编码的相邻块)或帧间编码块(采用帧间预测模式编码的相邻块) 的判断, 选 择当前子块是否限制的 DC预测模式进行编码操作。在解码端, 则可以确定编码端是否采 用相应的限制的 DC预测模式进行编码, 并进行相应的帧内预测解码操作。 或者, 也可以 约定相邻块的可用性规则为仅在当前解码块与各相邻块在同一个宏块中时,各相邻块可 用, 否则, 各相邻块均不可用, 并根据相应的相邻块的可用性进行编解码操作。 The implementation provided by the embodiment of the present invention may implement flexible selection of the reference block at the sub-block level, and may specifically be an intra-coded block for the adjacent block in the process of selecting the prediction mode of the current intra-coded sub-block. The prediction of the intra prediction mode coded neighboring block or the interframe coding block (the adjacent block coded by the inter prediction mode) determines whether the current subblock is limited in the DC prediction mode for the encoding operation. At the decoding end, it can be determined whether the encoding end uses the corresponding limited DC prediction mode for encoding, and performs corresponding intra prediction decoding operation. Alternatively, it may also be agreed that the availability rule of the neighboring block is that each adjacent block is available only when the current decoded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable, and according to the corresponding The availability of adjacent blocks is coded.
本发明实施例提供的编解码方式, 可以在保证相应的差错恢复性能的同时, 尽量提 高了帧内刷新宏块的编码效率即压缩能力。 The codec mode provided by the embodiment of the present invention can improve the coding efficiency, that is, the compression capability of the intra refresh macroblock, while ensuring the corresponding error recovery performance.
本发明实施例中, 在编码端, 具体可以根据相邻块的预测模式进行当前编码块的帧 内预测模式的选择, 并利用选择的帧内预测模式对当前编码块进行编码操作, 其中, 在
选择限制的 DC预测模式作为帧内预测模式时, 则在编码过程中: In the embodiment of the present invention, the encoding end may specifically perform the selection of the intra prediction mode of the current coding block according to the prediction mode of the neighboring block, and perform coding operation on the current coding block by using the selected intra prediction mode, where When the restricted DC prediction mode is selected as the intra prediction mode, then during the encoding process:
仅在当前编码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用, 例如, 可以仅在当前编码块为最后一个亮度块时, 认为各相邻块可用, 而在当 前编码块为其他块时, 则各相邻块均为不可用; Each neighboring block is available only when the current coded block is in the same macroblock as each neighboring block. Otherwise, each neighboring block is unavailable. For example, it may be considered only when the current coded block is the last luma block. Each neighboring block is available, and when the current coded block is another block, each neighboring block is unavailable;
或者, Or,
若已经编码的相邻块中的至少一个为帧间预测块时, 各相邻块均不可用; 或者, If at least one of the adjacent blocks that have been encoded is an inter prediction block, each adjacent block is unavailable; or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 各相邻块可以包括当前编码块的左边相邻块或上边相邻块中的至少一项。 可选地, 为便于解码端识别是否采用了限制的 DC预测模式, 编码端还可以在编码码 流中写入是否采用限制的 DC预测模式的标志; 进一步地, 限制的 DC预测模式的标志可以 写在码流的序列头、 图像头、 条带头、 宏块或者子块中。 或者, 若默认采用相应的限制 的 DC预测模式, 则在编码端无需将是否采用了限制的 DC预测模式的标志写入码流中。 Each neighboring block may include at least one of a left neighboring block or an upper neighboring block of the current encoding block. Optionally, in order to facilitate the decoding end to identify whether the restricted DC prediction mode is adopted, the encoding end may further write, in the encoded code stream, whether to use the flag of the limited DC prediction mode; further, the flag of the limited DC prediction mode may be Written in the sequence header, header, slice header, macroblock or subblock of the stream. Alternatively, if the corresponding limited DC prediction mode is adopted by default, it is not necessary to write the flag of the DC prediction mode in the code stream to the code stream.
本发明实施例中, 在编码端, 也可以首先确定当前编码块的相邻块的可用性, 具体 可以为: In the embodiment of the present invention, at the encoding end, the availability of the neighboring block of the current coding block may also be determined first, which may be:
仅在当前编码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用, 例如, 可以仅在当前编码块为最后一个亮度块时, 认为各相邻块可用, 而在当 前编码块为其他块时, 则各相邻块均为不可用; Each neighboring block is available only when the current coded block is in the same macroblock as each neighboring block. Otherwise, each neighboring block is unavailable. For example, it may be considered only when the current coded block is the last luma block. Each neighboring block is available, and when the current coded block is another block, each neighboring block is unavailable;
或者, Or,
若当前编码块的左相邻或上相邻块中至少存在一个帧间预测块, 各相邻块均不 可用; If at least one inter prediction block exists in the left adjacent or upper neighboring block of the current coding block, each adjacent block is not available;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中,各相邻块可以包括当前编码块的左边相邻块或上边相邻块中的至少一项; 之后, 便可以根据当前编码块的左相邻块和上相邻块的可用性进行相应的编码操 作。 The neighboring block may include at least one of a left neighboring block or an upper neighboring block of the current encoding block; and then, according to the availability of the left neighboring block and the upper neighboring block of the current encoding block, corresponding Encoding operation.
在上述处理过程中, 还可以包括: 若当前编码块的左相邻块或上相邻块中没有帧间 预测块, 则当前编码块的左相邻块或上相邻块均为可用。 In the foregoing process, the method may further include: if there is no inter prediction block in the left neighboring block or the upper neighboring block of the current coding block, the left neighboring block or the upper neighboring block of the current coding block is available.
在上述处理过程中, 还可以在编码码流中写出指示标志, 用于指示编码操作为根据 依据上述方式确定的左相邻块和上相邻块的可用性进行。
可选地, 该指示标志具体可以但不限于写入编码码流的序列头、 图像头、 条带头、 宏块或者子块中。 In the above processing, an indication flag may also be written in the encoded code stream for indicating that the encoding operation is performed according to the availability of the left neighboring block and the upper neighboring block determined according to the above manner. Optionally, the indicator may be specifically, but not limited to, written in a sequence header, an image header, a slice header, a macroblock or a subblock of the encoded code stream.
本发明实施例中, 在解码端解析需解码的码流, 获得当前解码块采用的帧内预测模 式后, 便可以根据解析获得的当前解码块采用的帧内预测模式进行解码操作, 其中, 与 编码端对应, 若采用的帧内预测模式为限制的 DC预测模式, 则在解码过程中: In the embodiment of the present invention, after decoding the code stream to be decoded at the decoding end and obtaining the intra prediction mode used by the current decoding block, the decoding operation may be performed according to the intra prediction mode adopted by the currently decoded block obtained by the parsing, where Corresponding to the encoding end, if the intra prediction mode used is the limited DC prediction mode, then during the decoding process:
仅在当前解码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用, 例如, 仅在当前编码块为最后一个亮度块时, 各相邻块可用, 而在当前编码块 为其他块时, 则相应的各相邻块均为不可用; Each neighboring block is available only when the current decoded block is in the same macroblock as each neighboring block. Otherwise, each neighboring block is unavailable. For example, only when the current coded block is the last luma block, each phase The neighboring block is available, and when the current encoding block is another block, the corresponding neighboring blocks are unavailable;
或者, Or,
若已经解码的相邻块中至少一个为帧间预测块, 各相邻块均不可用; If at least one of the adjacent blocks that have been decoded is an inter prediction block, each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 各相邻块可以包括当前解码块的左边相邻块或上边相邻块中的至少一项。 可选地, 解码端具体可以在解析获得采用限制的 DC预测模式的标志时, 若当前解码 块采用的帧内预测模式为 DC预测模式, 则确定当前解码块采用的是限制的 DC预测模式, 从而可以根据限制的 DC预测模式进行解码操作; 其中, 限制的 DC预测模式的标志可以在 码流的序列头、 图像头、 条带头、 宏块或者子块中解析获得。 或者, 解码端也可以默认 采用相应的限制的 DC预测模式。 Each neighboring block may include at least one of a left neighboring block or an upper neighboring block of the current decoded block. Optionally, when the decoding end obtains the flag of the DC prediction mode that is limited, if the intra prediction mode used by the current decoding block is the DC prediction mode, determining that the current decoding block adopts the limited DC prediction mode, Thereby, the decoding operation can be performed according to the limited DC prediction mode; wherein the flag of the restricted DC prediction mode can be obtained by parsing in a sequence header, an image header, a slice header, a macroblock or a subblock of the code stream. Alternatively, the decoder can also use the corresponding limited DC prediction mode by default.
本发明实施例中, 解码端也可以直接解析接收到的编码码流, 并确定相邻块的可用 性, 具体可以为: In the embodiment of the present invention, the decoding end may directly parse the received coded stream and determine the availability of the neighboring block, which may be:
仅在当前解码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用, 例如, 仅在当前编码块为最后一个亮度块时, 各相邻块可用, 而在当前编码块 为其他块时, 则相应的各相邻块均为不可用; Each neighboring block is available only when the current decoded block is in the same macroblock as each neighboring block. Otherwise, each neighboring block is unavailable. For example, only when the current coded block is the last luma block, each phase The neighboring block is available, and when the current encoding block is another block, the corresponding neighboring blocks are unavailable;
或者, Or,
若当前解码块的左相邻或上相邻块中至少存在一个帧间预测块, 各相邻块均不 可用; If at least one inter prediction block exists in the left adjacent or upper neighboring block of the current decoded block, each adjacent block is not available;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中,各相邻块可以包括当前解码块的左边相邻块或上边相邻块中的至少一项; 之后, 便可以根据左相邻块和上相邻块的可用性对当前解码块进行相应的解码操
作。 The neighboring block may include at least one of a left neighboring block or an upper neighboring block of the current decoding block; afterwards, the current decoded block may be corresponding according to the availability of the left neighboring block and the upper neighboring block. Decoding operation Work.
在上述处理过程中, 还可以包括: 若当前解码块的左相邻块或上相邻块中没有帧间 预测块, 则当前解码块的左相邻块或上相邻块均为可用。 In the foregoing process, the method may further include: if there is no inter prediction block in the left neighboring block or the upper neighboring block of the current decoding block, the left neighboring block or the upper neighboring block of the current decoding block is available.
在上述处理过程中, 还可以解析编码码流, 获得指示标志, 并根据该指示确定需要 根据依据上述方式确定的左相邻块和上相邻块的可用性进行相应的解码操作。 In the above processing, the encoded code stream may also be parsed to obtain an indication flag, and according to the indication, it is determined that a corresponding decoding operation needs to be performed according to the availability of the left neighboring block and the upper neighboring block determined according to the above manner.
本发明实施例具体可以但不限于应用于实时视频监控系统中。 The embodiments of the present invention may be specifically, but not limited to, applied to a real-time video monitoring system.
具体地, 本发明实施例中, 在编码端及解码端采用的处理过程可以但不限于包括以 下步骤: Specifically, in the embodiment of the present invention, the processing procedure used at the encoding end and the decoding end may be, but is not limited to, including the following steps:
(一)编码端 (1) Encoding end
在编码端, 具体的编码过程可以包括: At the encoding end, the specific encoding process can include:
( 1 )确定当前帧间编码帧是否需要进行帧内刷新; (1) determining whether the current inter-coded frame needs to be intra-frame refreshed;
例如, 可以以一定周期的帧间隔确定该帧是否需要刷新, 或者, 也可以通过网络命 令等手工指定该帧是否需要刷新; For example, whether the frame needs to be refreshed may be determined by a frame interval of a certain period, or the frame may be manually specified by a network command or the like.
(2) 若确定当前帧需要进行帧内刷新, 则对于需要进行帧内编码的当前帧中的当 前宏块, 也称为刷新宏块, 根据刷新宏块的相邻块的可用性(即相邻宏块是否可以作为 当前宏块的参考宏块)确定该宏块各子块的编码模式, 即选择当前编码子块的帧内预测 模式; (2) If it is determined that the current frame needs to perform intra-frame refresh, then the current macroblock in the current frame that needs to be intra-coded, also referred to as a refresh macroblock, according to the availability of neighboring blocks of the refresh macroblock (ie, adjacent Whether the macroblock can be used as a reference macroblock of the current macroblock) determining an encoding mode of each subblock of the macroblock, that is, selecting an intra prediction mode of the current coding subblock;
其中, 相邻块的可用性是指: 该相邻块已经编码, 且与当前块处在同一个条带中, 此时, 若上边相邻块或左边相邻块中的至少一个为帧间预测块, 则对于帧内预测模式中 的 DC预测模式, 确定相邻块均不可用, 或者, 仅在当前编码块为最后一个亮度块时, 各 相邻块可用, 而在当前编码块为其他块时, 则相应的各相邻块均为不可用, 或者, 该帧 中 DC模式编码块的各相邻块均不可用; 此时的 DC预测模式可以称为限制的 DC预测模式。 The availability of the neighboring block means: the neighboring block is already encoded, and is in the same stripe as the current block. At this time, if at least one of the upper neighboring block or the left neighboring block is interframe predicting, Block, then, for the DC prediction mode in the intra prediction mode, it is determined that the neighboring blocks are unavailable, or only when the current coding block is the last luma block, each neighboring block is available, and the current coding block is other blocks. In time, the corresponding neighboring blocks are unavailable, or each neighboring block of the DC mode coded block in the frame is unavailable; the DC prediction mode at this time may be referred to as a limited DC prediction mode.
( 3)从步骤(2)所得到的待选帧内预测模式中选择出当前编码子块的帧内预测模 式; (3) selecting, from the candidate intra prediction mode obtained in step (2), an intra prediction mode of the current coding subblock;
(4)采用选择的帧内预测模式对当前编码子块进行编码操作, 并将所选帧内预测 模式所对应的语法值写入码流中, 其中, 若选择限制的 DC预测模式进行编码操作, 则还 可以在码流中写入使用了限制的 DC预测模式的标志。 (4) performing encoding operation on the current coding sub-block by using the selected intra prediction mode, and writing the syntax value corresponding to the selected intra prediction mode into the code stream, wherein if the limited DC prediction mode is selected, the coding operation is performed. , it is also possible to write a flag using the restricted DC prediction mode in the code stream.
(二)解码端 (2) Decoding end
在解码端, 相应的解码处理步骤可以包括: At the decoding end, the corresponding decoding processing steps may include:
( 1 ) 获取码流, 解析帧间预测帧的图像头或码流中的其它部分, 得到该帧是否使
用限制的 DC预测模式的标志; (1) Acquiring a code stream, parsing an image header of an inter prediction frame or other parts in a code stream to obtain whether the frame is made a flag with a limited DC prediction mode;
(2) 若当前子块(即当前解码块) 的帧内预测模式为 DC预测模式, 则使用限制的 DC预测模式进行该子块的帧内预测; (2) if the intra prediction mode of the current sub-block (ie, the current decoding block) is the DC prediction mode, performing intra prediction of the sub-block using the limited DC prediction mode;
相应的限制的 DC预测模式是指: 当前子块的 DC预测模式只使用 128 (或其它整数) 进行帧内预测解码操作; 或者, 仅在当前子码块为最后一个亮度块时, 各相邻块可用, 而在当前解码块为其他子块时, 则相应的各相邻块均为不可用(即仅在当前解码块为其 他子块时, 当前子块的 DC预测模式只使用 128或其它整数进行帧内预测解码操作) ; 或 者, 该帧中的所有 DC预测模式下的编码块的各相邻块均不可用, 此时当前编码块的 DC预 测模式只使用 128 (或其他整数)进行预测。 为便于对本发明实施例的理解,下面将结合具体的应用实例对本发明 的具体应用 过程进行详细说明。 The corresponding limited DC prediction mode refers to: the DC prediction mode of the current sub-block uses only 128 (or other integer) for intra prediction decoding operation; or, only when the current sub-code block is the last luminance block, each adjacent The block is available, and when the current decoding block is another sub-block, the corresponding neighboring blocks are unavailable (that is, only when the current decoding block is another sub-block, the DC prediction mode of the current sub-block uses only 128 or other Integer performs intra prediction decoding operation); or, each neighboring block of the coding block in all DC prediction modes in the frame is unavailable, and the DC prediction mode of the current coding block is only used by 128 (or other integer) prediction. In order to facilitate the understanding of the embodiments of the present invention, the specific application process of the present invention will be described in detail below with reference to specific application examples.
(一)编码端 (1) Encoding end
本发明实施例中, 对于需要进行帧内预测编码的子块(即当前编码块) , 当其左边 相邻块或上边相邻块中至少存在一个帧间预测块时, 则相应的编码处理步骤可以包括: ( 1 ) 从包含限制的 DC预测模式的帧内预测模式集合中选择一种帧内预测模式, 相 应的限制的 DC预测模式是指该预测模式不能参考相邻块,其他帧内预测模式则既可以参 考相邻块中的帧内预测块, 也可以参考相邻块中的帧间预测块; 其中, 选择一种帧内预 测模式的过程具体可以采用 RD0 (率失真优化)模式选择方法、 依据相邻块可用性的模 式选择方法、 SAD (绝对值差)模式选择方法或快速算法模式选择方法等任一项或多项 进行相应的帧内预测模式的选择。 In the embodiment of the present invention, for a sub-block (ie, a current coding block) that needs to perform intra prediction coding, when there is at least one inter prediction block in the left neighboring block or the upper neighboring block, the corresponding encoding processing step The method may include: (1) selecting an intra prediction mode from a set of intra prediction modes including a restricted DC prediction mode, where the corresponding restricted DC prediction mode means that the prediction mode cannot refer to neighboring blocks, and other intra predictions The mode can refer to the intra prediction block in the neighboring block or the inter prediction block in the adjacent block. The process of selecting an intra prediction mode can be selected by using the RD0 (rate distortion optimization) mode. The method selects a corresponding intra prediction mode according to any one or more of a mode selection method of a neighboring block availability, a SAD (absolute value difference) mode selection method, or a fast algorithm mode selection method.
(2)使用选择的帧内预测模式编码当前待编码的子块; (2) encoding the current sub-block to be encoded using the selected intra prediction mode;
( 3 )在生成的编码码流中, 使用限制的 DC预测模式的标志标记当前待编码的子块 使用的是限制的 DC预测模式; (3) in the generated coded stream, using the flag of the restricted DC prediction mode to mark the current sub-block to be encoded using the restricted DC prediction mode;
限制的 DC预测模式的标志具体可以在序列头、 图象头、 条带头、 宏块、 子块或码流 的其它地方以单独符号的形式表示, 还可以和其它语法单元复合在一起表示。 The flag of the restricted DC prediction mode may be specifically represented by a separate symbol in the sequence header, picture header, slice header, macroblock, sub-block or other part of the code stream, and may also be combined with other syntax units.
(二)解码端 (2) Decoding end
本发明实施例中, 假设以 AVS (数字音视频编解码技术标准) 为例, 则可以进行的 PB图像头中的语法语义修改如下表中的黑体字所示:
pb_picture_header() { 描述符 pb_picture— start— code f(32) bbv delay u(16) picture— coding— type u(2)In the embodiment of the present invention, assuming that AVS (Digital Audio Video Codec Standard) is taken as an example, the syntax semantic modification in the PB picture header that can be performed is as shown in bold in the following table: Pb_picture_header() { descriptor pb_picture— start— code f(32) bbv delay u(16) picture— coding— type u(2)
If (picture coding type == 601' || picture coding type == '11,) If (picture coding type == 6 01' || picture coding type == '11,)
limitedDC_prediction flag (l) picture— distance u(8) next— start— code() limitedDC_prediction flag (l) picture— distance u(8) next— start— code()
} }
在上表中, 限制的 DC预测模式标志: limitedDC_prediction_flag, 具体可以为 1位 无符号整数。 例如, 可以在其为 " 1 "时, 表示当该帧的亮度或色度块的编码模式为帧 内 DC预测模式时,除最后一个亮度子块外,其它子块使用 " 128"进行预测,在其为 "0" 时, 表示为使用正常的 DC预测模式; 或者, 反之表示亦可。 In the above table, the restricted DC prediction mode flag: limitedDC_prediction_flag, which can be a 1-bit unsigned integer. For example, when it is "1", it means that when the coding mode of the luminance or chrominance block of the frame is the intra-frame DC prediction mode, except for the last luminance sub-block, the other sub-blocks are predicted by using "128". When it is "0", it indicates that the normal DC prediction mode is used; or, the reverse is also possible.
设当前块所属的图像样本矩阵为 I, I可表示亮度或色度矩阵, 且当前图像为前向预 测编码帧且 limitedDC_prediction_flag为 ' 1, , 贝 [J: Let the image sample matrix to which the current block belongs be I, I can represent the luminance or chrominance matrix, and the current image is the forward predictive coded frame and the limited DC_prediction_flag is ' 1, 1, [J:
若当前帧内预测块为亮度块且 IntraLumaPredMode等于 '2, , 则第 0、 1和 2个子块 的左相邻块及上相邻块的图像样本都为 '不可用' ,第 3个子块的左相邻块及上相邻块 的图像样本都为 "可用"; If the current intra prediction block is a luma block and the IntraLumaPredMode is equal to '2, the image samples of the left adjacent block and the upper adjacent block of the 0th, 1st, and 2nd sub-blocks are 'unavailable', and the third sub-block The image samples of the left adjacent block and the upper adjacent block are all "available";
若当前帧内预测块为色度块且 IntraChromaPredMode等于 '0' ,则当前块的左相邻 块及上相邻块的图像样本都为 "不可用" 。 If the current intra prediction block is a chroma block and IntraChromaPredMode is equal to '0', the image samples of the left adjacent block and the upper adjacent block of the current block are all "unavailable".
在该实施例中, 具体的解码步骤可以包括如下过程: In this embodiment, the specific decoding step may include the following process:
( 1 )解析视频帧的图像头, 得到一个指示符号 (即是否使用限制的 DC预测模式的 标志) , 该指示符号具体用于指示该帧的 DC预测模式是否使用限制的 DC预测模式; 在该步骤中, 若该帧使用限制的 DC预测模式, 也可以在序列头指示一个帧序列, 或 者, 也可以在图像头指示该帧是否使用限制的 DC预测模式, 或者, 也可以默认是否采用 限制的 DC预测模式(此时,若默认采用限制的 DC预测模式,则可以省略相应的指示符号); (1) parsing an image header of the video frame to obtain an indicator symbol (ie, whether to use a restricted DC prediction mode flag), the indicator symbol is specifically used to indicate whether the DC prediction mode of the frame uses a limited DC prediction mode; In the step, if the frame uses the limited DC prediction mode, a sequence of frames may be indicated in the sequence header, or the image header may indicate whether the frame uses the limited DC prediction mode, or whether the limit is used by default. DC prediction mode (in this case, if the limited DC prediction mode is adopted by default, the corresponding indicator can be omitted);
(2)解码得到一个子块的帧内预测模式; (2) decoding to obtain an intra prediction mode of one sub-block;
( 3)若该子块的帧内预测模式为 DC预测模式, 且步骤(1 ) 中获得的指示符号为指 示该帧使用限制的 DC预测模式, 贝 IJ : (3) If the intra prediction mode of the sub-block is the DC prediction mode, and the indication symbol obtained in the step (1) is the DC prediction mode indicating the frame usage limitation, the Bay IJ:
若当前块的左或上相邻块中至少有一个是帧间预测块, 则对于当前块为亮度块, 则 第 0、 1和 2个子块的左相邻块及上相邻块均为 '不可用' , 而第 3个子块的左相邻块及上 相邻块均为 '可用' ; 对于当前帧内预测块为色度块, 则当前块的左相邻块及上相邻块
均为 '不可用' ; If at least one of the left or upper neighboring blocks of the current block is an inter prediction block, then for the current block is a luma block, the left adjacent block and the upper adjacent block of the 0th, 1st, and 2nd sub-blocks are both ' Not available, and the left neighboring block and the upper neighboring block of the third sub-block are both 'available'; for the current intra-predicted block to be a chroma block, the left neighboring block of the current block and the upper adjacent block Are 'not available';
或者, Or,
若当前块的左或上相邻块中至少有一个是帧间预测块,则当前块的左或上相邻块均 为 '不可用' , 若当前块的左相邻块或上相邻块中没有帧间预测块, 则当前块的左相邻 块或上相邻块均为 '可用' ; If at least one of the left or upper neighboring blocks of the current block is an inter prediction block, the left or upper neighboring block of the current block is 'unavailable', if the left neighboring block or the upper neighboring block of the current block If there is no inter prediction block, then the left adjacent block or the upper adjacent block of the current block is 'available';
(4)进行相应的帧内预测解码操作, 具体的预测方式可以包括: (4) performing a corresponding intra prediction decoding operation, and the specific prediction manner may include:
若左上相邻块都 '可用' , 则 DC预测模式下的预测值: If the top left adjacent block is 'available', then the predicted value in DC prediction mode:
predMatrix [x, y] = ( (r [x] +2xr [x+l] +r [x+2] +2) »2+ (c [y] +2xc [y+l] +c [y+2] +2) » 2) »1; predMatrix [x, y] = ( (r [x] +2xr [x+l] +r [x+2] +2) »2+ (c [y] +2xc [y+l] +c [y+ 2] +2) » 2) »1;
若上相邻块 '可用' , 则 DC预测模式下的预测值: If the upper neighboring block is 'available', then the predicted value in DC prediction mode:
predMatrix [x, y] = (r [x] +2xr [x+1] +r [x+2] +2) »2; predMatrix [x, y] = (r [x] +2xr [x+1] +r [x+2] +2) »2;
若左相邻块 '可用' , 则 DC预测模式下的预测值: If the left neighboring block is 'available', then the predicted value in DC prediction mode:
predMatrix [x, y] = (c [y] +2xc [y+1] +c [y+2] +2) »2; predMatrix [x, y] = (c [y] +2xc [y+1] +c [y+2] +2) »2;
若左、 上相邻块都不可用, 则 DC预测模式下的预测值: If the left and upper neighboring blocks are not available, the predicted value in DC prediction mode:
predMatrix [x,y] = 128 (x,y=0〜7) , 当然, 该 " 128"也可以采用其他数值替代。 本发明实施例还提供了一种视频编码装置, 如图 2所示, 具体可以包括: predMatrix [x,y] = 128 (x, y=0~7). Of course, the "128" can also be replaced by other values. The embodiment of the present invention further provides a video encoding device, as shown in FIG. 2, which may specifically include:
帧内预测模式选择单元 201, 用于根据相邻块的预测模式进行当前编码块的帧内预 测模式的选择; The intra prediction mode selection unit 201 is configured to perform, according to the prediction mode of the neighboring block, the selection of the intra prediction mode of the current coding block;
第一编码操作单元 202,用于利用所述帧内预测模式选择单元 201选择的帧内预测模 式对当前编码块进行编码操作,其中,若选择限制的 DC预测模式作为帧内预测模式,贝 IJ : The first encoding operation unit 202 is configured to perform an encoding operation on the current encoding block by using the intra prediction mode selected by the intra prediction mode selecting unit 201, wherein if the limited DC prediction mode is selected as the intra prediction mode, :
仅在当前编码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用, 例如, 可以仅在当前编码块为最后一个亮度块时, 各相邻块可用; Each neighboring block is available only when the current coded block is in the same macroblock as each neighboring block. Otherwise, each neighboring block is unavailable, for example, only when the current coded block is the last block of brightness, Adjacent blocks are available;
或者, Or,
已经解码的相邻块的至少一个为帧间预测块, 各相邻块均不可用; At least one of the neighboring blocks that have been decoded is an inter prediction block, and each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 各相邻块可以包括当前编码块的左边相邻块或上边相邻块中的至少一项。 可选地, 该装置还可以包括限制的 DC预测模式标志写入单元 203, 用于在第一编码 操作单元 202获得的编码码流中写入是否采用限制的 DC预测模式的标志。 Each neighboring block may include at least one of a left neighboring block or an upper neighboring block of the current encoding block. Optionally, the apparatus may further include a restricted DC prediction mode flag writing unit 203, configured to write, in the encoded code stream obtained by the first encoding operation unit 202, whether the flag of the restricted DC prediction mode is used.
本发明实施例还提供了一种视频解码装置, 如图 3所示, 具体可以包括:
帧内预测模式确定单元 301, 用于解析接收到的编码码流, 并获得当前解码块采用 的帧内预测模式; 可选地, 在该帧内预测模式确定单元 301在解析获得采用限制的 DC预 测模式的标志时, 若当前解码块采用的帧内预测模式为 DC预测模式, 则确定当前解码块 采用的是限制的 DC预测模式。 The embodiment of the invention further provides a video decoding device, as shown in FIG. 3, which may specifically include: The intra prediction mode determining unit 301 is configured to parse the received encoded code stream, and obtain an intra prediction mode adopted by the current decoding block. Optionally, the intra prediction mode determining unit 301 obtains the DC with the limitation in the parsing. When the flag of the prediction mode is predicted, if the intra prediction mode adopted by the current decoding block is the DC prediction mode, it is determined that the current decoding block adopts the limited DC prediction mode.
第一解码操作单元 302,用于根据所述帧内预测模式确定单元 301解析获得的当前解 码块采用的帧内预测模式进行解码操作, 其中, 若采用的帧内预测模式为限制的 DC预测 模式, 则- 仅在当前解码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用, 例如, 可以仅在当前解码块为最后一个亮度块时, 各相邻块可用; The first decoding operation unit 302 is configured to perform a decoding operation according to the intra prediction mode adopted by the current decoding block obtained by the intra prediction mode determining unit 301, where the intra prediction mode is a limited DC prediction mode. , then - only when the current decoded block is in the same macro block as each neighboring block, each neighboring block is available; otherwise, each neighboring block is unavailable, for example, only the current decoded block is the last luma block When adjacent blocks are available;
或者, Or,
若已经解码的相邻块中至少一个为帧间预测块时, 各相邻块均不可用; 或者, If at least one of the adjacent blocks that have been decoded is an inter prediction block, each adjacent block is unavailable; or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 各相邻块可以包括当前解码块的左边相邻块或上边相邻块中的至少一项。 本发明实施例还提供了另一种视频编码装置, 如图 4所示, 其具体实现结构可以包 括: Each neighboring block may include at least one of a left neighboring block or an upper neighboring block of the current decoded block. Another embodiment of the present invention further provides a video encoding apparatus. As shown in FIG. 4, the specific implementation structure may include:
第一相邻块可用性识别单元 401, 用于确定当前编码块的相邻块的可用性, 包括: 仅在当前编码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用, 例如, 可以仅在当前编码块为最后一个亮度块时, 各相邻块可用; The first neighboring block availability identifying unit 401 is configured to determine the availability of the neighboring block of the current coded block, including: each neighboring block is available only when the current coded block is in the same macro block as each adjacent block, otherwise , each neighboring block is unavailable, for example, each neighboring block may be available only when the current coded block is the last luma block;
或者, Or,
若当前编码块的左相邻或上相邻块中至少存在一个帧间预测块, 各相邻块均不可 用; If there is at least one inter prediction block in the left adjacent or upper neighboring block of the current coding block, each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 各相邻块可以包括当前编码块的左边相邻块或上边相邻块中的至少一项; 可选地, 该第一相邻块可用性识别单元 401还可以包括: 若当前编码块的左相邻块 或上相邻块中没有帧间预测块, 则当前编码块的左相邻块或上相邻块均为可用; Each of the neighboring blocks may include at least one of a left neighboring block or an upper neighboring block of the current coded block. Optionally, the first neighboring block availability identifying unit 401 may further include: if the current coded block is If there is no inter prediction block in the left neighboring block or the upper neighboring block, the left neighboring block or the upper neighboring block of the current coded block is available;
第二编码操作单元 402,用于根据上述第一相邻块可用性识别单元 401确定的左相邻 块和上相邻块的可用性对当前编码块进行编码操作。 The second encoding operation unit 402 is configured to perform an encoding operation on the current encoding block according to the availability of the left neighboring block and the upper neighboring block determined by the first neighboring block availability identifying unit 401.
本发明实施例还提供了另一种视频解码装置, 如图 5所示, 其具体实现结构可以包
括: Another embodiment of the present invention further provides a video decoding apparatus. As shown in FIG. 5, the specific implementation structure may include Includes:
第二相邻块可用性识别单元 501, 用于解析接收到的编码码流, 确定相邻块的可用 性, 包括: The second neighboring block availability identifying unit 501 is configured to parse the received coded stream and determine the availability of the neighboring block, including:
仅在当前解码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用, 例如, 可以仅在当前解码块为最后一个亮度块时, 各相邻块可用; Each neighboring block is available only when the current decoded block is in the same macroblock as each neighboring block. Otherwise, each neighboring block is unavailable, for example, only when the current decoded block is the last luma block, Adjacent blocks are available;
或者, Or,
若当前解码块的左相邻或上相邻块中至少存在一个帧间预测块, 各相邻块均不可 用; If at least one inter prediction block exists in the left adjacent or upper neighboring block of the current decoded block, each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 各相邻块可以包括当前解码块的左边相邻块或上边相邻块中的至少一项; 可选地, 该第二相邻块可用性识别单元 501还可以包括: 若当前解码块的左相邻块 或上相邻块中没有帧间预测块, 则当前解码块的左相邻块或上相邻块均为可用; Each of the neighboring blocks may include at least one of a left neighboring block or an upper neighboring block of the current decoded block. Optionally, the second neighboring block availability identifying unit 501 may further include: if the currently decoded block is If there is no inter prediction block in the left neighboring block or the upper neighboring block, the left neighboring block or the upper neighboring block of the current decoding block is available;
第二解码操作单元 402,用于根据上述第二相邻块可用性识别单元 501确定的左相邻 块和上相邻块的可用性对当前解码块进行解码操作。 The second decoding operation unit 402 is configured to perform a decoding operation on the current decoded block according to the availability of the left neighboring block and the upper neighboring block determined by the second neighboring block availability identifying unit 501.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通 过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质 中, 该程序在执行时, 可包括如上述各方法的实施例的流程。 其中, 所述的存储介质可 为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM)或随机存储记忆体(Random Access Memory, RAM)等。 综上所述, 本发明实施例可以利用静止区域的帧间预测降低码率, 对运动区域进行 限制的帧内预测编码保证该帧的防差错扩散功能, 从而提高视频经过压缩和传输后, 在 解码端的显示视频的主客观质量。 A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium, the program In execution, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM). In summary, the embodiment of the present invention can reduce the code rate by using inter-frame prediction in a still area, and the intra prediction coding that limits the motion area ensures the error-proof spreading function of the frame, thereby improving the video after being compressed and transmitted. The subjective and objective quality of the video displayed at the decoder.
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到的变化或替 换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应该以权利要求的保 护范围为准。
The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1、 一种视频编码的方法, 其特征在于, 包括: A video encoding method, comprising:
根据相邻块的预测模式进行当前编码块的帧内预测模式的选择; Selecting an intra prediction mode of the current coding block according to a prediction mode of the neighboring block;
利用选择的帧内预测模式对当前编码块进行编码操作, 其中, 在选择限制的 DC预测 模式作为帧内预测模式时, 贝^ Encoding operation of the current coding block by using the selected intra prediction mode, wherein when the limited DC prediction mode is selected as the intra prediction mode,
仅在当前编码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用; Each adjacent block is available only when the current coded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
或者, Or,
若已经编码的相邻块中的至少一个为帧间预测块时, 各相邻块均不可用; 或者, If at least one of the adjacent blocks that have been encoded is an inter prediction block, each adjacent block is unavailable; or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 所述各相邻块包括当前编码块的左边相邻块或上边相邻块中的至少一项。 The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current encoding block.
2、 根据权利要求 1所述的方法, 其特征在于, 还包括: 2. The method according to claim 1, further comprising:
在编码码流中写入是否采用限制的 DC预测模式的标志; Writing a flag in the encoded code stream whether or not to use the restricted DC prediction mode;
或者, Or,
默认采用限制的 DC预测模式。 The default DC prediction mode is adopted by default.
3、根据权利要求 2所述的方法, 其特征在于, 所述是否采用限制的 DC预测模式的标 志写入编码码流的序列头、 图像头、 条带头、 宏块或者子块中。 The method according to claim 2, wherein the flag of the restricted DC prediction mode is written in a sequence header, an image header, a slice header, a macroblock or a subblock of the coded code stream.
4、 一种视频编码装置, 其特征在于, 包括: 4. A video encoding apparatus, comprising:
帧内预测模式选择单元,用于根据相邻块的预测模式进行当前编码块的帧内预测模 式的选择; An intra prediction mode selecting unit, configured to select, according to a prediction mode of the neighboring block, an intra prediction mode of the current coding block;
第一编码操作单元,用于利用所述帧内预测模式选择单元选择的帧内预测模式对当 前编码块进行编码操作, 其中, 若选择限制的 DC预测模式作为帧内预测模式, 贝 IJ : 仅在当前编码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用; a first encoding operation unit, configured to perform an encoding operation on the current encoding block by using an intra prediction mode selected by the intra prediction mode selecting unit, wherein if the limited DC prediction mode is selected as the intra prediction mode, the shell IJ: only When the current coding block is in the same macro block as each adjacent block, each adjacent block is available; otherwise, each adjacent block is unavailable;
或者, Or,
已经编码的相邻块的至少一个为帧间预测块, 各相邻块均不可用; At least one of the adjacent blocks that have been encoded is an inter prediction block, and each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 所述各相邻块包括当前编码块的左边相邻块或上边相邻块中的至少一项。
The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current encoding block.
5、 根据权利要求 4所述的装置, 其特征在于, 该装置还包括: 5. The device according to claim 4, wherein the device further comprises:
限制的 DC预测模式标志写入单元,用于在编码码流中写入是否采用限制的 DC预测模 式的标志。 The restricted DC prediction mode flag writing unit is configured to write in the coded code stream whether or not the flag of the limited DC prediction mode is used.
6、 一种视频解码的方法, 其特征在于, 包括: 6. A method of video decoding, comprising:
解析需解码的码流, 获得当前解码块采用的帧内预测模式; Parsing the code stream to be decoded, and obtaining an intra prediction mode used by the current decoding block;
根据解析获得的当前解码块采用的帧内预测模式进行解码操作, 其中, 若采用的帧 内预测模式为限制的 DC预测模式, 贝 IJ : The decoding operation is performed according to the intra prediction mode adopted by the currently decoded block obtained by the parsing, wherein if the intra prediction mode used is the limited DC prediction mode, the Bay IJ:
仅在当前解码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用; Each adjacent block is available only when the current decoded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
或者, Or,
若已经解码的相邻块中至少一个为帧间预测块时, 各相邻块均不可用; If at least one of the adjacent blocks that have been decoded is an inter prediction block, each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 所述各相邻块包括当前解码块的左边相邻块或上边相邻块中的至少一项。 The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current decoding block.
7、根据权利要求 6所述的方法, 其特征在于, 所述获得当前解码块采用的帧内预测 模式的过程包括- 解析获得采用限制的 DC预测模式的标志时,若当前解码块采用的帧内预测模式为 DC 预测模式, 则当前解码块采用的是限制的 DC预测模式; The method according to claim 6, wherein the obtaining the intra prediction mode adopted by the current decoding block comprises: parsing a frame used by the current decoding block when parsing the flag of the DC prediction mode using the limitation The intra prediction mode is a DC prediction mode, and the current decoding block adopts a limited DC prediction mode;
或者, Or,
默认当前解码块采用的是限制的 DC预测模式。 By default, the current decoded block uses a limited DC prediction mode.
8、根据权利要求 7所述的方法, 其特征在于, 所述解析获得采用限制的 DC预测模式 的标志的过程包括: 8. The method according to claim 7, wherein the parsing process of obtaining a flag using the restricted DC prediction mode comprises:
解析码流中的序列头、 图像头、 条带头、宏块或者子块获得采用限制的 DC预测模式 的标志。 A sequence header, an image header, a slice header, a macroblock, or a subblock in the parsing stream is used to obtain a flag of the restricted DC prediction mode.
9、 一种视频解码装置, 其特征在于, 包括: 9. A video decoding device, comprising:
帧内预测模式确定单元, 用于解析接收到的编码码流, 并获得当前解码块采用的帧 内预测模式; An intra prediction mode determining unit, configured to parse the received encoded code stream, and obtain an intra prediction mode used by the current decoding block;
第一解码操作单元,用于根据所述帧内预测模式确定单元解析获得的当前解码块采 用的帧内预测模式进行解码操作, 其中, 若采用的帧内预测模式为限制的 DC预测模式, 贝 IJ :
仅在当前解码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用; a first decoding operation unit, configured to perform a decoding operation according to an intra prediction mode adopted by the current decoding block obtained by the intra prediction mode determining unit, where the adopted intra prediction mode is a limited DC prediction mode, IJ: Each adjacent block is available only when the current decoded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
或者, Or,
若已经解码的相邻块中至少一个为帧间预测块, 各相邻块均不可用; If at least one of the adjacent blocks that have been decoded is an inter prediction block, each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 所述各相邻块包括当前解码块的左边相邻块或上边相邻块中的至少一项。 The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current decoding block.
10、 根据权利要求 9所述的装置, 其特征在于, 所述帧内预测模式确定单元在解析 获得采用限制的 DC预测模式的标志时, 若当前解码块采用的帧内预测模式为 DC预测模 式, 贝挡前解码块采用的是限制的 DC预测模式。 The device according to claim 9, wherein the intra prediction mode determining unit, when parsing the flag that adopts the restricted DC prediction mode, if the intra prediction mode adopted by the current decoding block is the DC prediction mode The pre-before decoding block uses a limited DC prediction mode.
11、 一种视频编码的方法, 其特征在于, 包括: 11. A method of video encoding, comprising:
确定当前编码块的相邻块的可用性, 包括: Determine the availability of neighboring blocks of the current coded block, including:
仅在当前解码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用; Each adjacent block is available only when the current decoded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
或者, Or,
若当前编码块的左相邻或上相邻块中至少存在一个帧间预测块,则各相邻块均不可 用; If at least one inter prediction block exists in the left adjacent or upper neighboring block of the current coding block, each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 所述各相邻块包括当前解码块的左边相邻块或上边相邻块中的至少一项; 根据左相邻块和上相邻块的可用性进行编码操作。 The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current decoding block; and an encoding operation is performed according to availability of the left neighboring block and the upper neighboring block.
12、 根据权利要求 11所述的方法, 其特征在于, 该方法还包括: The method according to claim 11, wherein the method further comprises:
在编码码流中写出指示标志,用于指示编码操作为根据所述左相邻块和上相邻块的 可用性进行。 An indication flag is written in the encoded code stream for indicating that the encoding operation is performed according to the availability of the left neighboring block and the upper neighboring block.
13、根据权利要求 12所述的方法, 其特征在于, 所述指示标志写入编码码流的序列 头、 图像头、 条带头、 宏块或者子块中。 The method according to claim 12, wherein the indication flag is written in a sequence header, an image header, a slice header, a macroblock or a subblock of the encoded code stream.
14、 一种视频编码装置, 其特征在于, 包括: 14. A video encoding apparatus, comprising:
第一相邻块可用性识别单元, 用于确定当前编码块的相邻块的可用性, 包括: 仅在当前编码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用;
或者, a first neighboring block availability identifying unit, configured to determine availability of a neighboring block of the current coded block, including: each neighboring block is available only when the current coded block is in the same macroblock as each neighboring block, otherwise, Each adjacent block is unavailable; or,
若当前编码块的左相邻或上相邻块中至少存在一个帧间预测块,则各相邻块均不可 用; If at least one inter prediction block exists in the left adjacent or upper neighboring block of the current coding block, each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 所述各相邻块包括当前编码块的左边相邻块或上边相邻块中的至少一项; 第二编码操作单元,用于根据所述第一相邻块可用性识别单元确定的左相邻块和上 相邻块的可用性对当前编码块进行编码操作。 The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current encoding block, and a second encoding operation unit, configured to determine, according to the first neighboring block availability identifying unit, the left The availability of the neighboring block and the upper neighboring block encodes the current coded block.
15、 一种视频解码的方法, 其特征在于, 包括: 15. A method of video decoding, comprising:
解析码流, 确定相邻块的可用性, 包括: Parsing the code stream to determine the availability of neighboring blocks, including:
仅在当前解码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用; Each adjacent block is available only when the current decoded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
或者, Or,
若当前解码块的左相邻或上相邻块中至少存在一个帧间预测块,则各相邻块均不可 用; If at least one inter prediction block exists in the left adjacent or upper neighboring block of the current decoded block, each adjacent block is unavailable;
或者, Or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 所述各相邻块包括当前解码块的左边相邻块或上边相邻块中的至少一项; 根据左相邻块和上相邻块的可用性进行解码操作。 The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current decoding block; and performing a decoding operation according to availability of the left neighboring block and the upper neighboring block.
16、 根据权利要求 15所述的方法, 其特征在于, 该方法还包括: The method according to claim 15, wherein the method further comprises:
解析码流, 获得指示标志, 根据该指示确定需要根据所述左相邻块和上相邻块的可 用性进行解码操作。 The code stream is parsed, an indication flag is obtained, and according to the indication, it is determined that a decoding operation needs to be performed according to the availability of the left neighboring block and the upper neighboring block.
17、 一种视频解码装置, 其特征在于, 包括: 17. A video decoding apparatus, comprising:
第二相邻块可用性识别单元, 用于解析接收到的编码码流, 确定相邻块的可用性, 包括: a second neighboring block availability identifying unit, configured to parse the received coded stream, and determine the availability of the neighboring block, including:
仅在当前编码块与各相邻块在同一个宏块中时, 各相邻块可用, 否则, 各相邻块均 不可用; Each adjacent block is available only when the current coded block is in the same macro block as each adjacent block; otherwise, each adjacent block is unavailable;
或者, Or,
若当前解码块的左相邻或上相邻块中至少存在一个帧间预测块, 各相邻块均不可 用;
或者, If at least one inter prediction block exists in the left adjacent or upper neighboring block of the current decoding block, each adjacent block is unavailable; or,
各相邻块均不可用; Each adjacent block is unavailable;
其中, 所述各相邻块包括当前编码块的左边相邻块或上边相邻块中的至少一项; 第二解码操作单元,用于根据所述第二相邻块可用性识别单元确定的左相邻块和上 相邻块的可用性对当前解码块进行解码操作。 The neighboring block includes at least one of a left neighboring block or an upper neighboring block of the current encoding block, and a second decoding operation unit, configured to determine, according to the second neighboring block availability identifying unit, the left The availability of the neighboring block and the upper neighboring block performs a decoding operation on the currently decoded block.
18、 一种视频解码的方法, 其特征在于, 包括: 18. A method of video decoding, comprising:
解析需解码的码流, 获得当前解码块采用的帧内预测模式; Parsing the code stream to be decoded, and obtaining an intra prediction mode used by the current decoding block;
根据解析获得的当前解码块采用的帧内预测模式进行解码操作, 其中, 若采用的帧 内预测模式为限制的 DC预测模式, 贝 IJ : The decoding operation is performed according to the intra prediction mode adopted by the currently decoded block obtained by the parsing, wherein if the intra prediction mode used is the limited DC prediction mode, the Bay IJ:
若当前帧内预测块为亮度块且为 DC模式, 则第 0、 1和 2个子块的左相邻块及上相邻 块的图像样本都为 '不可用' , 第 3个子块的左相邻块及上相邻块的图像样本都为 "可 用"; If the current intra prediction block is a luma block and is in a DC mode, the image samples of the left adjacent block and the upper adjacent block of the 0th, 1st, and 2nd sub-blocks are both 'unavailable', and the left side of the third sub-block The image samples of the adjacent block and the upper adjacent block are all "available";
若当前帧内预测块为色度块且为 DC模式,则当前块的左相邻块及上相邻块的图像样 本都为 "不可用" 。 If the current intra prediction block is a chroma block and is in DC mode, the image samples of the left adjacent block and the upper adjacent block of the current block are "unavailable".
19、根据权利要求 18所述的方法, 其特征在于, 所述获得当前解码块采用的帧内预 测模式的过程包括: The method according to claim 18, wherein the obtaining the intra prediction mode adopted by the current decoding block comprises:
解析获得采用限制的 DC预测模式的标志时,若当前解码块采用的帧内预测模式为 DC 预测模式, 则当前解码块采用的是限制的 DC预测模式; If the intra prediction mode adopted by the current decoding block is the DC prediction mode, the current decoding block adopts the limited DC prediction mode.
或者, Or,
默认当前解码块采用的是限制的 DC预测模式。 By default, the current decoded block uses a limited DC prediction mode.
20、根据权利要求 18所述的方法, 其特征在于, 所述解析获得采用限制的 DC预测模 式的标志的过程包括: The method according to claim 18, wherein the parsing the process of obtaining the flag of the restricted DC prediction mode comprises:
解析码流中的序列头、 图像头、 条带头、宏块或者子块获得采用限制的 DC预测模式 的标志。 A sequence header, an image header, a slice header, a macroblock, or a subblock in the parsing stream is used to obtain a flag of the restricted DC prediction mode.
新增权利要求二: New claim 2:
21、 一种视频解码的方法, 其特征在于, 包括: 21. A method of video decoding, comprising:
解析需解码的码流, 获得当前解码块采用的帧内预测模式; Parsing the code stream to be decoded, and obtaining an intra prediction mode used by the current decoding block;
根据解析获得的当前解码块采用的帧内预测模式进行解码操作, 其中, 若采用的帧 内预测模式为限制的 DC预测模式, 贝 IJ : The decoding operation is performed according to the intra prediction mode adopted by the currently decoded block obtained by the parsing, wherein if the intra prediction mode used is the limited DC prediction mode, the Bay IJ:
仅在当前解码块与左相邻块及上相邻块在同一个宏块中时,左相邻块及上相邻块可
用, 否则, 左相邻块及上相邻块均不可用; Only when the current decoded block is in the same macro block as the left adjacent block and the upper adjacent block, the left adjacent block and the upper adjacent block may be Use, otherwise, the left adjacent block and the upper adjacent block are unavailable;
或者, Or,
若已经解码的左相邻块及上相邻块中至少一个为帧间预测块时,左相邻块及上相邻 块均不可用; If at least one of the left adjacent block and the upper adjacent block that has been decoded is an inter prediction block, the left adjacent block and the upper adjacent block are unavailable;
或者, Or,
左相邻块及上相邻块均不可用。 Both the left adjacent block and the upper adjacent block are unavailable.
22、根据权利要求 21所述的方法, 其特征在于, 所述获得当前解码块采用的帧内预 测模式的过程包括: The method according to claim 21, wherein the obtaining the intra prediction mode adopted by the current decoding block comprises:
解析获得采用限制的 DC预测模式的标志时,若当前解码块采用的帧内预测模式为 DC 预测模式, 贝 lj当前解码块采用的是限制的 DC预测模式; When the flag of the DC prediction mode with the limitation is obtained, if the intra prediction mode used by the current decoding block is the DC prediction mode, the current decoding block of the block lj uses the limited DC prediction mode;
或者, Or,
默认当前解码块采用的是限制的 DC预测模式。 By default, the current decoded block uses a limited DC prediction mode.
23、根据权利要求 22所述的方法, 其特征在于, 所述解析获得采用限制的 DC预测模 式的标志的过程包括: The method according to claim 22, wherein the parsing process of obtaining a flag using the restricted DC prediction mode comprises:
解析码流中的序列头、 图像头、 条带头、宏块或者子块获得采用限制的 DC预测模式 的标志。
A sequence header, an image header, a slice header, a macroblock, or a subblock in the parsing stream is used to obtain a flag of the restricted DC prediction mode.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810222649.2 | 2008-09-19 | ||
CN2008102226492A CN101677406B (en) | 2008-09-19 | 2008-09-19 | Method and apparatus for video encoding and decoding |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2010031352A1 true WO2010031352A1 (en) | 2010-03-25 |
Family
ID=42029783
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2009/074032 WO2010031352A1 (en) | 2008-09-19 | 2009-09-18 | Video coding/decoding method and apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101677406B (en) |
WO (1) | WO2010031352A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113766223A (en) * | 2020-06-03 | 2021-12-07 | 北京三星通信技术研究有限公司 | Prediction mode acquisition method and device |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101756442B1 (en) * | 2010-11-29 | 2017-07-11 | 에스케이텔레콤 주식회사 | Video Encoding/Decoding Method and Apparatus for Minimizing Redundancy of Intra Prediction Mode |
CN102547270B (en) * | 2010-12-31 | 2014-03-19 | 联芯科技有限公司 | Method and system for obtaining availability information of adjacent blocks of current block |
JP5781313B2 (en) * | 2011-01-12 | 2015-09-16 | 株式会社Nttドコモ | Image prediction coding method, image prediction coding device, image prediction coding program, image prediction decoding method, image prediction decoding device, and image prediction decoding program |
CN102611882B (en) * | 2011-01-19 | 2014-02-26 | 华为技术有限公司 | A codec method and device |
KR101383775B1 (en) * | 2011-05-20 | 2014-04-14 | 주식회사 케이티 | Method And Apparatus For Intra Prediction |
CN102857764B (en) | 2011-07-01 | 2016-03-09 | 华为技术有限公司 | The method and apparatus of intra prediction mode process |
KR102660880B1 (en) | 2011-10-18 | 2024-04-25 | 엘지전자 주식회사 | Method for intra prediction and device therefor |
CN103067699B (en) * | 2011-10-20 | 2018-02-16 | 中兴通讯股份有限公司 | A kind of intra-frame prediction mode encoder, decoder and its method and electronic equipment |
KR20130049526A (en) | 2011-11-04 | 2013-05-14 | 오수미 | Method for generating reconstructed block |
TWI523497B (en) * | 2011-11-10 | 2016-02-21 | Sony Corp | Image processing apparatus and method |
WO2014058280A1 (en) | 2012-10-12 | 2014-04-17 | 한국전자통신연구원 | Image encoding/decoding method and device using same |
WO2015096093A1 (en) * | 2013-12-26 | 2015-07-02 | Mediatek Singapore Pte. Ltd. | Simplified cabac contexts in 3dvc |
US11496747B2 (en) | 2017-03-22 | 2022-11-08 | Qualcomm Incorporated | Intra-prediction mode propagation |
CN111641824B (en) * | 2019-03-01 | 2022-08-05 | 杭州海康威视数字技术股份有限公司 | Video reverse playing method and device |
CN112839224B (en) * | 2019-11-22 | 2023-10-10 | 腾讯科技(深圳)有限公司 | Prediction mode selection method and device, video coding equipment and storage medium |
CN113596452B (en) * | 2021-06-17 | 2023-03-24 | 浙江大华技术股份有限公司 | Encoding method, encoding device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6259736B1 (en) * | 1998-01-30 | 2001-07-10 | Kabushiki Kaisha Toshiba | Video encoder and video encoding method |
CN1535027A (en) * | 2004-01-16 | 2004-10-06 | 北京工业大学 | A Method of Intra-frame Prediction for Video Coding |
CN1615020A (en) * | 2004-11-10 | 2005-05-11 | 华中科技大学 | Method for pridicting sortable complex in frame |
CN1717051A (en) * | 2004-06-09 | 2006-01-04 | 美国博通公司 | Advanced video coding (AVC) intra prediction scheme and method |
WO2006052399A1 (en) * | 2004-11-04 | 2006-05-18 | Thomson Licensing | Fast intra mode prediction for a video encoder |
US20060262983A1 (en) * | 2005-05-17 | 2006-11-23 | Chao-Chung Cheng | Method and apparatus for selecting intra prediction mode |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100348051C (en) * | 2005-03-31 | 2007-11-07 | 华中科技大学 | An enhanced in-frame predictive mode coding method |
-
2008
- 2008-09-19 CN CN2008102226492A patent/CN101677406B/en active Active
-
2009
- 2009-09-18 WO PCT/CN2009/074032 patent/WO2010031352A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6259736B1 (en) * | 1998-01-30 | 2001-07-10 | Kabushiki Kaisha Toshiba | Video encoder and video encoding method |
CN1535027A (en) * | 2004-01-16 | 2004-10-06 | 北京工业大学 | A Method of Intra-frame Prediction for Video Coding |
CN1717051A (en) * | 2004-06-09 | 2006-01-04 | 美国博通公司 | Advanced video coding (AVC) intra prediction scheme and method |
WO2006052399A1 (en) * | 2004-11-04 | 2006-05-18 | Thomson Licensing | Fast intra mode prediction for a video encoder |
CN1615020A (en) * | 2004-11-10 | 2005-05-11 | 华中科技大学 | Method for pridicting sortable complex in frame |
US20060262983A1 (en) * | 2005-05-17 | 2006-11-23 | Chao-Chung Cheng | Method and apparatus for selecting intra prediction mode |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113766223A (en) * | 2020-06-03 | 2021-12-07 | 北京三星通信技术研究有限公司 | Prediction mode acquisition method and device |
Also Published As
Publication number | Publication date |
---|---|
CN101677406A (en) | 2010-03-24 |
CN101677406B (en) | 2011-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2010031352A1 (en) | Video coding/decoding method and apparatus | |
CN101605255B (en) | Method and device for encoding and decoding video | |
JP3923898B2 (en) | Image coding method and apparatus | |
JP5129188B2 (en) | Method and apparatus for intra prediction video encoding / decoding | |
CN101232619B (en) | Video encoding method of embedding intraframe coding block | |
JP4603695B2 (en) | Video coding | |
CN101919255B (en) | Reference selection for video interpolation or extrapolation | |
CN101399985B (en) | Dynamic image encoding method and device | |
WO2013107177A1 (en) | Encoding/decoding method and apparatus | |
WO2012119569A1 (en) | Prediction mode encoding and decoding method, encoding and decoding device and network system | |
JP6629163B2 (en) | Image encoding and decoding method, image data processing method, and apparatus therefor | |
CN1812587A (en) | Video coding | |
CN106791875B (en) | Video data decoding method, video data encoding method and related devices | |
CN101455088B (en) | Dynamic image decoding device | |
JP5502798B2 (en) | Channel switching frame | |
TW201308993A (en) | Video processing apparatus and video processing method | |
JP3907996B2 (en) | Image encoding apparatus, image decoding apparatus and method, image encoding program, and image decoding program | |
CN101540916B (en) | A codec method and device | |
JP5141656B2 (en) | COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL PROGRAM | |
CN111357288B (en) | Video image processing method and device | |
BR112021014753A2 (en) | EXPLICIT SIGNALING OF EXTENDED LONG-TERM REFERENCE FIGURE RETENTION | |
CN119299675A (en) | Deblocking filtering encoding and decoding method, device, equipment and medium based on coding block | |
JP2007151163A (en) | Image decoding method and apparatus |
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: 09814072 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 09814072 Country of ref document: EP Kind code of ref document: A1 |