[go: up one dir, main page]

WO2013056577A1 - Intra-frame prediction mode encoder and decoder, method thereof, and electronic device - Google Patents

Intra-frame prediction mode encoder and decoder, method thereof, and electronic device Download PDF

Info

Publication number
WO2013056577A1
WO2013056577A1 PCT/CN2012/078620 CN2012078620W WO2013056577A1 WO 2013056577 A1 WO2013056577 A1 WO 2013056577A1 CN 2012078620 W CN2012078620 W CN 2012078620W WO 2013056577 A1 WO2013056577 A1 WO 2013056577A1
Authority
WO
WIPO (PCT)
Prior art keywords
intra prediction
prediction mode
reference pixel
current block
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2012/078620
Other languages
French (fr)
Chinese (zh)
Inventor
宋秀娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Publication of WO2013056577A1 publication Critical patent/WO2013056577A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • H04N19/463Embedding additional information in the video signal during the compression process by compressing encoding parameters before transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques

Definitions

  • Intra prediction mode encoder decoder, method and electronic device thereof
  • the present invention relates to the field of video communication technologies, and in particular, to an intra prediction mode encoder, a decoder, a method thereof, and an electronic device.
  • H.264/AVC International Telecommunication Union Telecommunication Standards
  • ITU-T International Telecommunication Union Telecommunication Standards
  • ISO/IEC International Organization for Standardization/International Electrotechnical Commission
  • H.264/AVC was developed in cooperation with these two standardization organizations. The purpose is to adapt to the ever-increasing demands of various business services for the compression ratio of moving images, and to enable the encoded video data to be used in various network environments. transmission.
  • the intra prediction technique used by H.264/AVC can effectively improve the intra prediction coding efficiency.
  • 16x16 blocks use 4 intra prediction modes
  • 8x8 blocks and 4x4 blocks use 9 intra prediction modes.
  • the four intra prediction modes of the 16x16 block use 2 bits for the equal length coding.
  • the intra prediction direction coding of 8x8 blocks and 4x4 blocks uses the following method:
  • Step 1 Obtain the most probable prediction mode (MPM) of the current block according to the intra prediction direction of the neighboring block.
  • MPM most probable prediction mode
  • Step 2 If the current block uses the same intra prediction mode as the MPM, use the 1 bit flag to identify "the current block uses the intra prediction mode of the MPM" and the encoding process ends; otherwise, skip to step 3.
  • Step 3 Encode a 1-bit flag that identifies "the current block does not use MPM's intra prediction mode".
  • Step 4 Remove the MPM from the intra prediction mode list, then sort the remaining intra prediction modes and assign equal length code words to each mode, and correspond to the currently used intra prediction mode.
  • the code word is written to the code stream and the encoding process ends.
  • intra prediction calculates an intra prediction value of each pixel point in a current block using a restored value of a coded pixel point in a neighboring block. If some of the reference pixels in the neighboring block are not available, some of the corresponding intra prediction modes will inevitably not be used. For example, if adjacent pixels on a boundary are not available, the intra prediction mode using adjacent pixels on the boundary will not be used.
  • a mapping code table is generated for all intra prediction modes except for all or MPM, and is encoded, which results in a large coding overhead.
  • the technical problem to be solved by the embodiments of the present invention is to provide an intra prediction mode encoder, a decoder, a method thereof, and an electronic device, which remove a prediction mode that is inevitably unavailable according to the availability of reference pixels of neighboring blocks, thereby reducing intra prediction.
  • Mode encoding overhead is to provide an intra prediction mode encoder, a decoder, a method thereof, and an electronic device, which remove a prediction mode that is inevitably unavailable according to the availability of reference pixels of neighboring blocks, thereby reducing intra prediction.
  • An intra prediction mode coding method comprising:
  • the intra prediction mode that the current block is inevitably used in the encoding process is removed from all the intra prediction modes, and the available intra prediction mode is obtained;
  • the intra prediction mode of the current block is encoded according to the generated mapping code table.
  • the intra prediction mode that the current block is inevitably not used in the encoding process is removed from all the intra prediction modes, and the available intra prediction is obtained.
  • the steps of the pattern include:
  • the neighboring block uses the restricted intra prediction mode
  • the block in which the intra prediction reference pixel is located uses a non-intra prediction mode, or the intra prediction reference pixel is not in the same slice as the current block, Or if the intra prediction reference pixel does not exist, it is determined that the intra prediction reference pixel is not available; when the neighboring block does not use the restricted intra prediction mode, if the intra prediction reference pixel is not the same as the current block If the slice or the intra prediction reference pixel does not exist, then the intra prediction parameter is determined. The test pixel is not available.
  • the case where the intra prediction reference pixel does not exist includes: the current block is located at an image boundary.
  • An intra prediction mode decoding method comprising:
  • the intra prediction mode that the current block is inevitably used in the encoding process is removed from all the intra prediction modes, and the available intra prediction mode is obtained;
  • the current block is decoded according to the determined intra prediction mode.
  • the intra prediction mode that the current block is inevitably not used in the encoding process is removed from all the intra prediction modes, and the available intra prediction is obtained.
  • the steps of the pattern include:
  • the neighboring block uses the restricted intra prediction mode
  • the block in which the intra prediction reference pixel is located uses a non-intra prediction mode, or the intra prediction reference pixel is not in the same slice as the current block, Or if the intra prediction reference pixel does not exist, it is determined that the intra prediction reference pixel is not available; when the neighboring block does not use the restricted intra prediction mode, if the intra prediction reference pixel is not the same as the current block If the slice, or the intra prediction reference pixel does not exist, it is determined that the intra prediction reference pixel is not available.
  • An encoder the encoder includes a determining module, a generating module, and an encoding module, where: the determining module is configured to: determine, according to the availability of an intra-predicted reference pixel in a neighboring block, that the current block encoding process is inevitably Intra prediction mode used;
  • the generating module is configured to: according to the current block encoding process determined by the determining module However, the intra prediction mode that is not used removes the intra prediction mode that the current block must not use during the encoding process from all intra prediction modes, obtains an available intra prediction mode, and assigns an index number to the available intra prediction mode, and Generating a mapping code table between the index number and the codeword;
  • the encoding module is configured to: encode the current block intra prediction mode according to the mapping code table generated by the generating module.
  • the determining module is configured to determine an intra prediction mode that is inevitably not used in the current block coding process according to the availability of the intra prediction reference pixel in the neighboring block in the following manner:
  • the neighboring block uses the restricted intra prediction mode
  • the block in which the intra prediction reference pixel is located uses the non-intra prediction mode, or the intra prediction reference pixel is not in the same slice or frame as the current block, Determining that the reference pixel is not present, determining that the intra prediction reference pixel is not available;
  • the intra prediction reference pixel is determined. The point is not available.
  • a decoder comprising a determining unit, a generating unit, a first decoding unit and a second decoding unit, wherein: the determining unit is configured to: determine according to availability of intra prediction reference pixel points in neighboring blocks An intra prediction mode that is inevitably not used in the current block encoding process;
  • the generating unit is configured to: remove, according to the intra prediction mode that is not used in the current block coding process determined by the determining module, the intra prediction that the current block is inevitably not used in the encoding process from all the intra prediction modes. a mode, obtaining an available intra prediction mode, assigning an index number to an available intra prediction mode, and generating a mapping code table between the index number and the code word;
  • the first decoding unit is configured to: convert the input codeword into an intra prediction mode index sequence according to the mapping code table generated by the generating unit, and determine an intra prediction mode used by the current block; the second decoding unit Set to: decode the current block according to the determined intra prediction mode.
  • the determining unit is configured to determine an intra prediction mode that is inevitably not used in the current block coding process according to the availability of the intra prediction reference pixel in the neighboring block in the following manner:
  • the neighboring block uses the restricted intra prediction mode, if the block in which the intra prediction reference pixel is located uses the non-intra prediction mode, or the intra prediction reference pixel is not in the same slice or frame as the current block, Determining that the reference pixel is not present, determining that the intra prediction reference pixel is not available;
  • the intra prediction reference pixel is determined. The point is not available.
  • An electronic device comprising: any of the encoders described above, and/or any of the decoders described above.
  • the intra prediction mode that is inevitably unavailable is removed from all intra prediction modes, the prediction mode index table is cropped, and the prediction mode index sequence number is adjusted.
  • the prediction mode index number is encoded by using the unequal length code, thereby reducing the intra prediction mode coding overhead.
  • FIG. 1 is a schematic flowchart of an intra prediction mode encoding method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of an intra prediction mode decoding method according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an intra prediction mode of a 16x16 block
  • Figure 4 is a schematic diagram of the intra prediction modes of 8x8 blocks and 4x4 blocks. Preferred embodiment of the invention
  • the present embodiment provides an intra prediction mode coding method, which uses the following technical solution: According to the availability of intra prediction reference pixel points in neighboring blocks of the current block, all intra prediction is performed. In the mode, the intra prediction mode that the current block is inevitably not used in the encoding process is removed, and the available intra prediction mode is obtained;
  • the current block intra prediction mode is encoded according to the generated mapping code table.
  • the neighboring block uses a restricted intra prediction mode (refer to an encoding mode of a reference block where an intra prediction reference pixel is located must be a specified frame) Intra prediction mode) (PPS::constrained_intra_pred_flag value is 1), if the block in which the intra prediction reference pixel is located uses a non-intra prediction mode (such as inter prediction mode, etc.), or an intra prediction reference pixel Determining that the intra prediction reference pixel is not available, if the current block is not in the same slice, or the intra prediction reference pixel does not exist (as in the case where the current block is located at the image boundary);
  • the neighboring block does not use the restricted intra prediction mode (PPS::constrained_intra_pred_flag value is 0)
  • PPS::constrained_intra_pred_flag value 0
  • the intra prediction reference pixel is not in the same slice as the current block, or the intra prediction reference If the pixel does not exist (as in the case where the current block is located at the edge of the image), it is determined that the intra-predicted reference pixel is not available.
  • the embodiment further provides an intra prediction mode decoding method, which uses the following technical solutions:
  • the intra prediction mode that the current block is inevitably used in the encoding process is removed from all the intra prediction modes, and the available intra prediction mode is obtained;
  • the current block is decoded according to the determined intra prediction mode.
  • the intra prediction mode coding method in this embodiment mainly includes the following steps: Step 1: Determine the availability of intra prediction reference pixel points in adjacent blocks;
  • Step 2 removing an intra prediction mode that is inevitably not used according to the availability of the intra prediction reference pixel
  • the intra prediction mode that is inevitably not used in the encoding process can be obtained according to the relevant standard protocol.
  • Step 3 assign an index sequence number to the available intra prediction mode, and generate a mapping code table between the index sequence number and the codeword;
  • Step 4 encode the current block intra prediction mode according to the generated mapping code table.
  • the intra prediction mode decoding method in this embodiment mainly includes the following steps: Step 1: Determine the availability of an intra prediction reference pixel in a neighboring block;
  • Step 2 removing an intra prediction mode that is inevitably not used according to the availability of the intra prediction reference pixel
  • Step 3 assign an index sequence number to the available intra prediction mode, and generate a mapping code table between the index sequence number and the codeword;
  • Step 4 Convert the input codeword into an intra prediction mode index number according to the generated mapping code table, and determine an intra prediction mode used by the current block.
  • Step 5 Decode the current block according to the determined intra prediction mode.
  • the embodiment provides an encoder, where the encoder includes: a determining module, a generating module, and an encoding module, where The determining module is configured to: determine, according to availability of intra prediction reference pixel points in the neighboring block, an intra prediction mode that is inevitably not used in the current block encoding process;
  • the generating module is configured to: remove, according to the intra prediction mode that is not used in the current block coding process determined by the determining module, from all the intra prediction modes, remove the intra prediction that the current block is inevitably not used in the encoding process.
  • Mode obtaining an available intra prediction mode, assigning an index number to an available intra prediction mode, and generating a mapping code table between the index number and the code word;
  • the encoding module is configured to: encode the current block intra prediction mode according to the mapping code table generated by the generating module.
  • the determining module is configured to determine the availability of the intra prediction reference pixel in the following manner:
  • the neighboring block uses the restricted intra prediction mode
  • the block in which the intra prediction reference pixel is located uses the non-intra prediction mode, or the intra prediction reference pixel is not in the same slice or frame as the current block, Determining that the reference pixel is not present, determining that the intra prediction reference pixel is not available;
  • the intra prediction reference pixel is determined. The point is not available.
  • the present embodiment provides a decoder, where the decoder includes: a determining unit, a generating unit, a first decoding unit, and a second decoding unit, where
  • the determining unit is configured to: determine an intra prediction mode that is inevitably not used in the current block encoding process according to availability of intra prediction reference pixel points in the neighboring block;
  • the generating unit is configured to: remove, according to the intra prediction mode that is not used in the current block coding process determined by the determining module, the intra prediction that the current block is inevitably not used in the encoding process from all the intra prediction modes. a mode, obtaining an available intra prediction mode, assigning an index number to an available intra prediction mode, and generating a mapping code table between the index number and the code word;
  • the first decoding unit is configured to: convert the input codeword into an intra prediction mode index sequence according to the mapping code table generated by the generating unit, and determine an intra prediction mode used by the current block;
  • the second decoding unit is configured to: decode the current block according to the determined intra prediction mode.
  • the determining unit is configured to determine the availability of the intra prediction reference pixel in the following manner:
  • the neighboring block uses the restricted intra prediction mode
  • the block in which the intra prediction reference pixel is located uses the non-intra prediction mode, or the intra prediction reference pixel is not in the same slice or frame as the current block, Determining that the reference pixel is not present, determining that the intra prediction reference pixel is not available;
  • the intra prediction reference pixel is determined. The point is not available.
  • the embodiment provides an electronic device, where the electronic device includes an encoder in a transmitting end, and the encoder can encode an intra prediction mode by using a specific implementation process in the foregoing Embodiment 1, and the specific composition can be implemented by using the foregoing implementation.
  • the description in the third example will not be repeated here.
  • the electronic device may further include a decoder in the receiving end, and the decoding is implemented according to the method provided in the foregoing embodiment.
  • the specific composition of the decoder may be described in the foregoing Embodiment 4, and details are not described herein again. .
  • the electronic device of this embodiment may be a related code stream generating device and a receiving and playing device in a video communication application, for example, a mobile phone, a computer, a server, a set top box, a portable mobile terminal, a digital television, a digital camera, and the like.
  • the sending end is configured to: send video information
  • the receiving end is configured to: receive video information.
  • the above embodiments may be used arbitrarily in combination or separately.
  • This example mainly describes the intra prediction mode coding method of 16x16 blocks.
  • the encoding process is as follows: As shown in Figure 3, there are four 16x16 intra prediction modes: 0 (Vertical), 1 (Horizontal), 2 (DC), 3 ( Plane ).
  • the intra mode code code table is as shown in Table 1 below:
  • the intra mode code code table is as shown in Table 2 below:
  • the encoder determines the used mapping code table according to the above situation, and encodes the intra prediction mode.
  • This example mainly describes the intra-pre-measurement mode coding method of 8x8 block and 4x4 block.
  • the encoding process is as follows:
  • 4x4 intra prediction is taken as an example here.
  • the 8x8 intra prediction method is the same.
  • the pixel points eight, B, C, D, E, F, G, H, and M in the figure are referred to as "upper adjacent"
  • pixels Points I, J, K, and L are called left adjacent intra prediction reference pixels (referred to as "left adjacent”).
  • the intra mode code table is as shown in Table 3 below:
  • the intra mode code table can be as shown in Table 4 below. : Table 4
  • the intra mode code table is as shown in Table 5 below:
  • the encoder determines the used code table according to the above situation, and encodes the intra prediction mode.
  • This example mainly describes the intra-pre-measurement mode decoding method of 16x16 blocks.
  • the decoding process is as follows: With reference to Figure 3, if both pixels in H and V are available, the existing intra prediction mode coding method of H.264/AVC is used.
  • the intra mode code code table is as shown in Table 6 below:
  • the decoder determines the used code table according to the above situation, maps the codeword obtained by analyzing the code stream into an intra mode index number, and further obtains the used intra mode according to the code table mapping.
  • the decoder encodes the current block according to the resulting intra mode.
  • This example mainly describes the intra-pre-measurement mode decoding method for 8x8 and 4x4 blocks. Since the 8x8 intra prediction mode is the same as the intra prediction direction corresponding to the 9 prediction modes used in the 4x4 intra prediction mode, here, 4x4
  • the intra prediction is taken as an example to illustrate the decoding method of the intra mode.
  • the intra mode decoding method of 8x8 intra prediction is the same.
  • the decoding process is as follows:
  • the intra mode code table is as shown in Table 8 below:
  • the intra mode code table can be as shown in Table 9 below. : Table 9
  • the intra mode code code table is as shown in Table 10 below:
  • the decoder determines the used code table according to the above situation, maps the codeword obtained by analyzing the code stream into an intra mode index number, and further obtains the used intra mode according to the code table mapping.
  • the decoder encodes the current block according to the resulting intra mode.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the embodiment of the present invention removes an intra prediction mode that is inevitably unavailable from all intra prediction modes, and performs clipping on the prediction mode index table to adjust the prediction mode.
  • the sequence number is indexed, and the prediction mode index sequence number is encoded by using the unequal length code, thereby reducing the intra prediction mode coding overhead. Therefore, the present invention has strong industrial applicability.

Landscapes

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

Abstract

An intra-frame prediction mode encoder and decoder, a method thereof, and an electronic device. The encoding method comprises: according to availability of an intra-frame prediction reference pixel point in a block adjacent to a current block, removing, from all intra-frame prediction modes, an intra-frame prediction mode not used definitely by the current block in an encoding process, to obtain available intra-frame prediction modes; allocating index numbers to the available intra-frame prediction modes, and generating a mapping code table of the index numbers and code words; encoding the intra-frame prediction modes of the current block according to the generated mapping code table. Through the technical solution, the intra-frame prediction mode not used definitely is removed according to the availability of the reference pixel point in the adjacent block, thereby reducing the overhead of encoding the intra-frame prediction modes.

Description

一种帧内预测模式编码器、 解码器及其方法和电子设备  Intra prediction mode encoder, decoder, method and electronic device thereof

技术领域 Technical field

本发明涉及视频通信技术领域, 尤其涉及一种帧内预测模式编码器、 解 码器及其方法和电子设备。  The present invention relates to the field of video communication technologies, and in particular, to an intra prediction mode encoder, a decoder, a method thereof, and an electronic device.

背景技术 Background technique

随着网络技术的发展以及人们对多媒体业务需求的不断增长, 视频通信 正在逐步成为数字通信网络的主要业务之一。 为了高效地在网络上传输视频 数据, 通常需要对视频进行压缩编码。  With the development of network technology and the growing demand for multimedia services, video communication is gradually becoming one of the main services of digital communication networks. In order to efficiently transmit video data over the network, it is often necessary to compress and encode the video.

目前, 制定视频编码标准的国际组织组主要有两个: 国际电信联盟远程 通信标准 ^匕组织、 ( ITU-T, ITU Telecommunication Standardization Sector )和 国际标准化组织 /国际电工委员会(ISO/IEC ) 。 H.264/AVC是这两个标准化 组织合作制订的, 其目的是为适应各种业务的不断增长对于运动图像压缩率 的更高要求, 并使得编码后的视频数据能够在各种网络环境下传输。  Currently, there are two main international organization groups for developing video coding standards: the International Telecommunication Union Telecommunication Standards (ITU-T, ITU Telecommunication Standardization Sector) and the International Organization for Standardization/International Electrotechnical Commission (ISO/IEC). H.264/AVC was developed in cooperation with these two standardization organizations. The purpose is to adapt to the ever-increasing demands of various business services for the compression ratio of moving images, and to enable the encoded video data to be used in various network environments. transmission.

H.264/AVC釆用的帧内预测技术可以有效提高帧内预测编码效率。其中, 16x16块使用 4种帧内预测模式, 8x8块和 4x4块均使用 9种帧内预测模式。 其中, 16x16块的 4种帧内预测模式使用 2比特进行等长编码。 8x8块和 4x4 块的帧内预测方向编码使用如下方法:  The intra prediction technique used by H.264/AVC can effectively improve the intra prediction coding efficiency. Among them, 16x16 blocks use 4 intra prediction modes, and 8x8 blocks and 4x4 blocks use 9 intra prediction modes. Among them, the four intra prediction modes of the 16x16 block use 2 bits for the equal length coding. The intra prediction direction coding of 8x8 blocks and 4x4 blocks uses the following method:

步骤 1 :根据相邻块的帧内预测方向得到当前块的最可能预测模式( MPM, Step 1: Obtain the most probable prediction mode (MPM) of the current block according to the intra prediction direction of the neighboring block.

Most Probable Mode ) 。 Most Probable Mode ).

步骤 2: 如果当前块使用的帧内预测模式与 MPM相同, 则使用 1 bit标 记用于标识 "当前块使用 MPM的帧内预测模式" , 编码过程结束; 否则, 跳转至步骤 3。  Step 2: If the current block uses the same intra prediction mode as the MPM, use the 1 bit flag to identify "the current block uses the intra prediction mode of the MPM" and the encoding process ends; otherwise, skip to step 3.

步骤 3: 编码 1 比特标记, 用于标识 "当前块不使用 MPM的帧内预测 模式" 。  Step 3: Encode a 1-bit flag that identifies "the current block does not use MPM's intra prediction mode".

步骤 4: 将 MPM从帧内预测模式列表中去掉, 然后对剩余帧内预测模 式进行排序并对各模式分配等长码字, 并将当前使用的帧内预测模式对应的 码字写入码流, 编码过程结束。 根据相关技术, 帧内预测使用相邻块中已编码像素点的恢复值计算当前 块中各像素点的帧内预测值。 如果相邻块中的某些参考像素点不可用, 则对 应的一些帧内预测模式必然不会使用。 例如, 若某边界上的相邻像素点均不 可用, 则使用该边界上相邻像素点的帧内预测模式必然不会被使用。 但是, 相关技术中, 帧内预测编码时, 是针对全部或 MPM之外的全部帧内预测模 式生成映射码表, 并进行编码, 因此, 导致编码开销较大。 Step 4: Remove the MPM from the intra prediction mode list, then sort the remaining intra prediction modes and assign equal length code words to each mode, and correspond to the currently used intra prediction mode. The code word is written to the code stream and the encoding process ends. According to the related art, intra prediction calculates an intra prediction value of each pixel point in a current block using a restored value of a coded pixel point in a neighboring block. If some of the reference pixels in the neighboring block are not available, some of the corresponding intra prediction modes will inevitably not be used. For example, if adjacent pixels on a boundary are not available, the intra prediction mode using adjacent pixels on the boundary will not be used. However, in the related art, in the intra prediction coding, a mapping code table is generated for all intra prediction modes except for all or MPM, and is encoded, which results in a large coding overhead.

发明内容 Summary of the invention

本发明实施例解决的技术问题是提供一种帧内预测模式编码器、 解码器 及其方法和电子设备, 根据相邻块参考像素点的可用性去除必然不可用的预 测模式, 从而降低帧内预测模式编码开销。  The technical problem to be solved by the embodiments of the present invention is to provide an intra prediction mode encoder, a decoder, a method thereof, and an electronic device, which remove a prediction mode that is inevitably unavailable according to the availability of reference pixels of neighboring blocks, thereby reducing intra prediction. Mode encoding overhead.

为解决上述技术问题, 本发明实施例釆用如下技术方案:  In order to solve the above technical problem, the following technical solutions are used in the embodiment of the present invention:

一种帧内预测模式编码方法, 该方法包括:  An intra prediction mode coding method, the method comprising:

根据当前块的相邻块中帧内预测参考像素点的可用性, 从全部帧内预测 模式中去除当前块在编码过程中必然不使用的帧内预测模式, 得到可用的帧 内预测模式;  According to the availability of the intra-predicted reference pixel in the neighboring block of the current block, the intra prediction mode that the current block is inevitably used in the encoding process is removed from all the intra prediction modes, and the available intra prediction mode is obtained;

为可用的帧内预测模式分配索引序号, 并生成索引序号与码字之间的映 射码表;  Allocating an index number to an available intra prediction mode, and generating a mapping code table between the index number and the code word;

根据生成的所述映射码表对当前块的帧内预测模式进行编码。  The intra prediction mode of the current block is encoded according to the generated mapping code table.

可选地, 根据当前块的相邻块中帧内预测参考像素点的可用性, 从全部 帧内预测模式中去除当前块在编码过程中必然不使用的帧内预测模式, 得到 可用的帧内预测模式的步骤包括:  Optionally, according to the availability of the intra-predicted reference pixel in the neighboring block of the current block, the intra prediction mode that the current block is inevitably not used in the encoding process is removed from all the intra prediction modes, and the available intra prediction is obtained. The steps of the pattern include:

所述相邻块使用受限帧内预测模式时, 若帧内预测参考像素点所在块使 用非帧内预测模式、或帧内预测参考像素点与当前块不在同一个分片( slice ) 中、 或帧内预测参考像素点不存在, 则判定该帧内预测参考像素点不可用; 所述相邻块不使用受限帧内预测模式时, 若帧内预测参考像素点与当前 块不在同一个分片中、 或帧内预测参考像素点不存在, 则判定该帧内预测参 考像素点不可用。 When the neighboring block uses the restricted intra prediction mode, if the block in which the intra prediction reference pixel is located uses a non-intra prediction mode, or the intra prediction reference pixel is not in the same slice as the current block, Or if the intra prediction reference pixel does not exist, it is determined that the intra prediction reference pixel is not available; when the neighboring block does not use the restricted intra prediction mode, if the intra prediction reference pixel is not the same as the current block If the slice or the intra prediction reference pixel does not exist, then the intra prediction parameter is determined. The test pixel is not available.

可选地, 所述帧内预测参考像素点不存在的情况包括: 所述当前块位于 图像边界。  Optionally, the case where the intra prediction reference pixel does not exist includes: the current block is located at an image boundary.

一种帧内预测模式解码方法, 该方法包括: An intra prediction mode decoding method, the method comprising:

根据当前块的相邻块中帧内预测参考像素点的可用性, 从全部帧内预测 模式中去除当前块在编码过程中必然不使用的帧内预测模式, 得到可用的帧 内预测模式;  According to the availability of the intra-predicted reference pixel in the neighboring block of the current block, the intra prediction mode that the current block is inevitably used in the encoding process is removed from all the intra prediction modes, and the available intra prediction mode is obtained;

为所述可用的帧内预测模式分配索引序号, 并生成索引序号与码字之间 的映射码表;  Allocating an index sequence number to the available intra prediction mode, and generating a mapping code table between the index sequence number and the codeword;

根据生成的所述映射码表, 将输入码字转换为帧内预测模式索引序号, 确定当前块使用的帧内预测模式;  Determining, according to the generated mapping code table, an input codeword into an intra prediction mode index sequence, and determining an intra prediction mode used by the current block;

根据所确定的帧内预测模式, 对当前块进行解码。  The current block is decoded according to the determined intra prediction mode.

可选地, 根据当前块的相邻块中帧内预测参考像素点的可用性, 从全部 帧内预测模式中去除当前块在编码过程中必然不使用的帧内预测模式, 得到 可用的帧内预测模式的步骤包括:  Optionally, according to the availability of the intra-predicted reference pixel in the neighboring block of the current block, the intra prediction mode that the current block is inevitably not used in the encoding process is removed from all the intra prediction modes, and the available intra prediction is obtained. The steps of the pattern include:

所述相邻块使用受限帧内预测模式时, 若帧内预测参考像素点所在块使 用非帧内预测模式、或帧内预测参考像素点与当前块不在同一个分片( slice ) 中、 或帧内预测参考像素点不存在, 则判定该帧内预测参考像素点不可用; 所述相邻块不使用受限帧内预测模式时, 若帧内预测参考像素点与当前 块不在同一个分片中、 或帧内预测参考像素点不存在, 则判定该帧内预测参 考像素点不可用。  When the neighboring block uses the restricted intra prediction mode, if the block in which the intra prediction reference pixel is located uses a non-intra prediction mode, or the intra prediction reference pixel is not in the same slice as the current block, Or if the intra prediction reference pixel does not exist, it is determined that the intra prediction reference pixel is not available; when the neighboring block does not use the restricted intra prediction mode, if the intra prediction reference pixel is not the same as the current block If the slice, or the intra prediction reference pixel does not exist, it is determined that the intra prediction reference pixel is not available.

一种编码器, 所述编码器包括确定模块、 生成模块和编码模块, 其中: 所述确定模块设置成: 根据相邻块中帧内预测参考像素点的可用性, 确 定当前块编码过程中必然不使用的帧内预测模式; An encoder, the encoder includes a determining module, a generating module, and an encoding module, where: the determining module is configured to: determine, according to the availability of an intra-predicted reference pixel in a neighboring block, that the current block encoding process is inevitably Intra prediction mode used;

所述生成模块设置成: 根据所述确定模块所确定的当前块编码过程中必 然不使用的帧内预测模式, 从全部帧内预测模式中去除当前块在编码过程中 必然不使用的帧内预测模式, 得到可用帧内预测模式, 为可用帧内预测模式 分配索引序号, 并生成索引序号与码字之间的映射码表; The generating module is configured to: according to the current block encoding process determined by the determining module However, the intra prediction mode that is not used removes the intra prediction mode that the current block must not use during the encoding process from all intra prediction modes, obtains an available intra prediction mode, and assigns an index number to the available intra prediction mode, and Generating a mapping code table between the index number and the codeword;

所述编码模块设置成: 根据所述生成模块生成的所述映射码表对所述当 前块帧内预测模式进行编码。  The encoding module is configured to: encode the current block intra prediction mode according to the mapping code table generated by the generating module.

可选地, 所述确定模块设置成按照以下方式根据相邻块中帧内预测参考 像素点的可用性, 确定当前块编码过程中必然不使用的帧内预测模式:  Optionally, the determining module is configured to determine an intra prediction mode that is inevitably not used in the current block coding process according to the availability of the intra prediction reference pixel in the neighboring block in the following manner:

所述相邻块使用受限帧内预测模式时, 若帧内预测参考像素点所在块使 用非帧内预测模式、 或帧内预测参考像素点与当前块不在同一个分片中、 或 帧内预测参考像素点不存在, 则判定该帧内预测参考像素点不可用;  When the neighboring block uses the restricted intra prediction mode, if the block in which the intra prediction reference pixel is located uses the non-intra prediction mode, or the intra prediction reference pixel is not in the same slice or frame as the current block, Determining that the reference pixel is not present, determining that the intra prediction reference pixel is not available;

所述相邻块不使用受限帧内预测模式时, 若帧内预测参考像素点与当前 块不在同一个分片中、 或帧内预测参考像素点不存在, 则判定该帧内预测参 考像素点不可用。  When the neighboring block does not use the restricted intra prediction mode, if the intra prediction reference pixel is not in the same slice as the current block, or the intra prediction reference pixel does not exist, the intra prediction reference pixel is determined. The point is not available.

一种解码器, 所述解码器包括确定单元、 生成单元、 第一解码单元和第 二解码单元, 其中: 所述确定单元设置成: 根据相邻块中帧内预测参考像素点的可用性, 确 定当前块编码过程中必然不使用的帧内预测模式; A decoder, the decoder comprising a determining unit, a generating unit, a first decoding unit and a second decoding unit, wherein: the determining unit is configured to: determine according to availability of intra prediction reference pixel points in neighboring blocks An intra prediction mode that is inevitably not used in the current block encoding process;

所述生成单元设置成: 根据所述确定模块所确定的当前块编码过程中必 然不使用的帧内预测模式, 从全部帧内预测模式中去除当前块在编码过程中 必然不使用的帧内预测模式, 得到可用的帧内预测模式, 为可用的帧内预测 模式分配索引序号, 并生成索引序号与码字之间的映射码表;  The generating unit is configured to: remove, according to the intra prediction mode that is not used in the current block coding process determined by the determining module, the intra prediction that the current block is inevitably not used in the encoding process from all the intra prediction modes. a mode, obtaining an available intra prediction mode, assigning an index number to an available intra prediction mode, and generating a mapping code table between the index number and the code word;

所述第一解码单元设置成: 根据所述生成单元生成的映射码表, 将输入 码字转换为帧内预测模式索引序号, 确定当前块所使用的帧内预测模式; 所述第二解码单元设置成: 根据所确定的帧内预测模式, 对当前块进行 解码。  The first decoding unit is configured to: convert the input codeword into an intra prediction mode index sequence according to the mapping code table generated by the generating unit, and determine an intra prediction mode used by the current block; the second decoding unit Set to: decode the current block according to the determined intra prediction mode.

可选地, 所述确定单元设置成按照以下方式根据相邻块中帧内预测参考 像素点的可用性, 确定当前块编码过程中必然不使用的帧内预测模式: 所述相邻块使用受限帧内预测模式时, 若帧内预测参考像素点所在块使 用非帧内预测模式、 或帧内预测参考像素点与当前块不在同一个分片中、 或 帧内预测参考像素点不存在, 则判定该帧内预测参考像素点不可用; Optionally, the determining unit is configured to determine an intra prediction mode that is inevitably not used in the current block coding process according to the availability of the intra prediction reference pixel in the neighboring block in the following manner: When the neighboring block uses the restricted intra prediction mode, if the block in which the intra prediction reference pixel is located uses the non-intra prediction mode, or the intra prediction reference pixel is not in the same slice or frame as the current block, Determining that the reference pixel is not present, determining that the intra prediction reference pixel is not available;

所述相邻块不使用受限帧内预测模式时, 若帧内预测参考像素点与当前 块不在同一个分片中、 或帧内预测参考像素点不存在, 则判定该帧内预测参 考像素点不可用。  When the neighboring block does not use the restricted intra prediction mode, if the intra prediction reference pixel is not in the same slice as the current block, or the intra prediction reference pixel does not exist, the intra prediction reference pixel is determined. The point is not available.

一种电子设备, 包括: 如上所述的任意一种编码器、 和 /或如上所述的任 意一种解码器。 An electronic device comprising: any of the encoders described above, and/or any of the decoders described above.

本发明实施例根据当前预测块相邻块中的参考像素点的可用性, 从全部 帧内预测模式中剔除必然不可用的帧内预测模式, 对预测模式索引表进行裁 剪,调整预测模式索引序号,并使用不等长码对预测模式索引序号进行编码, 从而降低了帧内预测模式编码开销。 In the embodiment of the present invention, according to the availability of reference pixel points in the current prediction block neighboring block, the intra prediction mode that is inevitably unavailable is removed from all intra prediction modes, the prediction mode index table is cropped, and the prediction mode index sequence number is adjusted. The prediction mode index number is encoded by using the unequal length code, thereby reducing the intra prediction mode coding overhead.

附图概述 BRIEF abstract

此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中:  The drawings are intended to provide a further understanding of the invention, and are intended to be illustrative of the invention. In the drawing:

图 1为本发明实施例的帧内预测模式编码方法的流程示意图; 图 2为本发明实施例的帧内预测模式解码方法的流程示意图; 图 3为 16x16块的帧内预测模式的示意图;  1 is a schematic flowchart of an intra prediction mode encoding method according to an embodiment of the present invention; FIG. 2 is a schematic flowchart of an intra prediction mode decoding method according to an embodiment of the present invention; and FIG. 3 is a schematic diagram of an intra prediction mode of a 16x16 block;

图 4为 8x8块和 4x4块的帧内预测模式的示意图。 本发明的较佳实施方式  Figure 4 is a schematic diagram of the intra prediction modes of 8x8 blocks and 4x4 blocks. Preferred embodiment of the invention

本实施方式提供一种帧内预测模式编码方法, 釆用如下技术方案: 根据当前块的相邻块中帧内预测参考像素点的可用性, 从全部帧内预测 模式中去除当前块在编码过程中必然不使用的帧内预测模式, 得到可用帧内 预测模式; The present embodiment provides an intra prediction mode coding method, which uses the following technical solution: According to the availability of intra prediction reference pixel points in neighboring blocks of the current block, all intra prediction is performed. In the mode, the intra prediction mode that the current block is inevitably not used in the encoding process is removed, and the available intra prediction mode is obtained;

为所述可用帧内预测模式分配索引序号, 并生成索引序号与码字之间的 映射码表;  Allocating an index sequence number to the available intra prediction mode, and generating a mapping code table between the index sequence number and the codeword;

根据生成的所述映射码表对当前块帧内预测模式进行编码。  The current block intra prediction mode is encoded according to the generated mapping code table.

可选地, 按照以下方式判断所述帧内预测参考像素点的可用性: 所述相邻块使用受限帧内预测模式(指帧内预测参考像素点所在参考块 的编码模式必须为指定的帧内预测模式 )时( PPS::constrained— intra_pred— flag 值为 1 ) , 若帧内预测参考像素点所在块使用非帧内预测模式(如帧间预测 模式等) 、 或帧内预测参考像素点与当前块不在同一个分片 (slice ) 中、 或 帧内预测参考像素点不存在(如当前块位于图像边界的情况) , 则判定该帧 内预测参考像素点不可用;  Optionally, determining the availability of the intra prediction reference pixel in the following manner: the neighboring block uses a restricted intra prediction mode (refer to an encoding mode of a reference block where an intra prediction reference pixel is located must be a specified frame) Intra prediction mode) (PPS::constrained_intra_pred_flag value is 1), if the block in which the intra prediction reference pixel is located uses a non-intra prediction mode (such as inter prediction mode, etc.), or an intra prediction reference pixel Determining that the intra prediction reference pixel is not available, if the current block is not in the same slice, or the intra prediction reference pixel does not exist (as in the case where the current block is located at the image boundary);

所述相邻块不使用受限帧内预测模式时( PPS::constrained— intra_pred— flag 值为 0 ) , 若帧内预测参考像素点与当前块不在同一个分片中、 或帧内预测 参考像素点不存在(如当前块位于图像边界的情况) , 则判定该帧内预测参 考像素点不可用。  When the neighboring block does not use the restricted intra prediction mode (PPS::constrained_intra_pred_flag value is 0), if the intra prediction reference pixel is not in the same slice as the current block, or the intra prediction reference If the pixel does not exist (as in the case where the current block is located at the edge of the image), it is determined that the intra-predicted reference pixel is not available.

此外, 本实施方式还提供了一种帧内预测模式解码方法, 釆用如下技术 方案:  In addition, the embodiment further provides an intra prediction mode decoding method, which uses the following technical solutions:

根据当前块的相邻块中帧内预测参考像素点的可用性, 从全部帧内预测 模式中去除当前块在编码过程中必然不使用的帧内预测模式, 得到可用帧内 预测模式;  According to the availability of the intra-predicted reference pixel in the neighboring block of the current block, the intra prediction mode that the current block is inevitably used in the encoding process is removed from all the intra prediction modes, and the available intra prediction mode is obtained;

为所述可用帧内预测模式分配索引序号, 并生成索引序号与码字之间的 映射码表;  Allocating an index sequence number to the available intra prediction mode, and generating a mapping code table between the index sequence number and the codeword;

根据生成的所述映射码表, 将输入码字转换为帧内预测模式索引序号, 确定当前块使用的帧内预测模式;  Determining, according to the generated mapping code table, an input codeword into an intra prediction mode index sequence, and determining an intra prediction mode used by the current block;

根据所确定的帧内预测模式, 对当前块进行解码。  The current block is decoded according to the determined intra prediction mode.

为使本发明的目的、 技术方案和优点更加清楚明白, 下文中将结合附图 对本发明的实施例进行详细说明。 需要说明的是, 在不冲突的情况下, 本申 请中的实施例及实施例中的特征可以相互任意组合。 In order to make the objects, technical solutions and advantages of the present invention more clear, the following will be combined with the accompanying drawings. The embodiments of the present invention will be described in detail. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.

实施例一  Embodiment 1

如图 1所示, 本实施例的帧内预测模式编码方法, 主要包括如下步骤: 步骤一, 确定相邻块中帧内预测参考像素点的可用性;  As shown in FIG. 1, the intra prediction mode coding method in this embodiment mainly includes the following steps: Step 1: Determine the availability of intra prediction reference pixel points in adjacent blocks;

步骤二, 根据帧内预测参考像素点的可用性去掉必然不使用的帧内预测 模式;  Step 2: removing an intra prediction mode that is inevitably not used according to the availability of the intra prediction reference pixel;

其中, 根据所确定的不可用的帧内预测参考像素点, 按照相关标准协议 即可得出编码过程中必然不使用的帧内预测模式。  According to the determined unavailable intra prediction reference pixel, the intra prediction mode that is inevitably not used in the encoding process can be obtained according to the relevant standard protocol.

步骤三, 为可用的帧内预测模式分配索引序号, 并生成索引序号与码字 之间的映射码表;  Step 3: assign an index sequence number to the available intra prediction mode, and generate a mapping code table between the index sequence number and the codeword;

步骤四, 根据生成的所述映射码表对当前块帧内预测模式进行编码。  Step 4: encode the current block intra prediction mode according to the generated mapping code table.

实施例二 Embodiment 2

如图 2所示, 本实施例的帧内预测模式解码方法, 主要包括如下步骤: 步骤一, 确定相邻块中帧内预测参考像素点的可用性;  As shown in FIG. 2, the intra prediction mode decoding method in this embodiment mainly includes the following steps: Step 1: Determine the availability of an intra prediction reference pixel in a neighboring block;

步骤二, 根据帧内预测参考像素点的可用性去掉必然不使用的帧内预测 模式;  Step 2: removing an intra prediction mode that is inevitably not used according to the availability of the intra prediction reference pixel;

步骤三, 为可用的帧内预测模式分配索引序号, 并生成索引序号与码字 之间的映射码表;  Step 3: assign an index sequence number to the available intra prediction mode, and generate a mapping code table between the index sequence number and the codeword;

步骤四, 根据生成的所述映射码表, 将输入码字转换为帧内预测模式索 引序号, 确定当前块使用的帧内预测模式;  Step 4: Convert the input codeword into an intra prediction mode index number according to the generated mapping code table, and determine an intra prediction mode used by the current block.

步骤五, 根据所确定的帧内预测模式, 对当前块进行解码。  Step 5: Decode the current block according to the determined intra prediction mode.

实施例三 Embodiment 3

本实施例提供了一种编码器, 所述编码器包括: 确定模块、 生成模块和 编码模块, 其中, 所述确定模块设置成: 根据相邻块中帧内预测参考像素点的可用性, 确 定当前块编码过程中必然不使用的帧内预测模式; The embodiment provides an encoder, where the encoder includes: a determining module, a generating module, and an encoding module, where The determining module is configured to: determine, according to availability of intra prediction reference pixel points in the neighboring block, an intra prediction mode that is inevitably not used in the current block encoding process;

所述生成模块设置成: 根据所述确定模块所确定的当前块编码过程中必 然不使用的帧内预测模式, 从全部帧内预测模式中去除当前块在编码过程中 必然不使用的帧内预测模式, 得到可用帧内预测模式, 为可用的帧内预测模 式分配索引序号, 并生成索引序号与码字之间的映射码表;  The generating module is configured to: remove, according to the intra prediction mode that is not used in the current block coding process determined by the determining module, from all the intra prediction modes, remove the intra prediction that the current block is inevitably not used in the encoding process. Mode, obtaining an available intra prediction mode, assigning an index number to an available intra prediction mode, and generating a mapping code table between the index number and the code word;

所述编码模块设置成: 根据所述生成模块生成的所述映射码表对所述当 前块帧内预测模式进行编码。  The encoding module is configured to: encode the current block intra prediction mode according to the mapping code table generated by the generating module.

可选地, 所述确定模块设置成按照以下方式判断所述帧内预测参考像素 点的可用性:  Optionally, the determining module is configured to determine the availability of the intra prediction reference pixel in the following manner:

所述相邻块使用受限帧内预测模式时, 若帧内预测参考像素点所在块使 用非帧内预测模式、 或帧内预测参考像素点与当前块不在同一个分片中、 或 帧内预测参考像素点不存在, 则判定该帧内预测参考像素点不可用;  When the neighboring block uses the restricted intra prediction mode, if the block in which the intra prediction reference pixel is located uses the non-intra prediction mode, or the intra prediction reference pixel is not in the same slice or frame as the current block, Determining that the reference pixel is not present, determining that the intra prediction reference pixel is not available;

所述相邻块不使用受限帧内预测模式时, 若帧内预测参考像素点与当前 块不在同一个分片中、 或帧内预测参考像素点不存在, 则判定该帧内预测参 考像素点不可用。  When the neighboring block does not use the restricted intra prediction mode, if the intra prediction reference pixel is not in the same slice as the current block, or the intra prediction reference pixel does not exist, the intra prediction reference pixel is determined. The point is not available.

实施例四 Embodiment 4

本实施例提供了一种解码器, 所述解码器包括: 确定单元、 生成单元、 第一解码单元和第二解码单元, 其中,  The present embodiment provides a decoder, where the decoder includes: a determining unit, a generating unit, a first decoding unit, and a second decoding unit, where

所述确定单元设置成: 根据相邻块中帧内预测参考像素点的可用性, 确 定当前块编码过程中必然不使用的帧内预测模式;  The determining unit is configured to: determine an intra prediction mode that is inevitably not used in the current block encoding process according to availability of intra prediction reference pixel points in the neighboring block;

所述生成单元设置成: 根据所述确定模块所确定的当前块编码过程中必 然不使用的帧内预测模式, 从全部帧内预测模式中去除当前块在编码过程中 必然不使用的帧内预测模式, 得到可用的帧内预测模式, 为可用的帧内预测 模式分配索引序号, 并生成索引序号与码字之间的映射码表;  The generating unit is configured to: remove, according to the intra prediction mode that is not used in the current block coding process determined by the determining module, the intra prediction that the current block is inevitably not used in the encoding process from all the intra prediction modes. a mode, obtaining an available intra prediction mode, assigning an index number to an available intra prediction mode, and generating a mapping code table between the index number and the code word;

所述第一解码单元设置成: 根据所述生成单元生成的映射码表, 将输入 码字转换为帧内预测模式索引序号, 确定当前块所使用的帧内预测模式; 所述第二解码单元设置成: 根据所确定的帧内预测模式, 对当前块进行 解码。 The first decoding unit is configured to: convert the input codeword into an intra prediction mode index sequence according to the mapping code table generated by the generating unit, and determine an intra prediction mode used by the current block; The second decoding unit is configured to: decode the current block according to the determined intra prediction mode.

可选地, 所述确定单元设置成按照以下方式判断所述帧内预测参考像素 点的可用性:  Optionally, the determining unit is configured to determine the availability of the intra prediction reference pixel in the following manner:

所述相邻块使用受限帧内预测模式时, 若帧内预测参考像素点所在块使 用非帧内预测模式、 或帧内预测参考像素点与当前块不在同一个分片中、 或 帧内预测参考像素点不存在, 则判定该帧内预测参考像素点不可用;  When the neighboring block uses the restricted intra prediction mode, if the block in which the intra prediction reference pixel is located uses the non-intra prediction mode, or the intra prediction reference pixel is not in the same slice or frame as the current block, Determining that the reference pixel is not present, determining that the intra prediction reference pixel is not available;

所述相邻块不使用受限帧内预测模式时, 若帧内预测参考像素点与当前 块不在同一个分片中、 或帧内预测参考像素点不存在, 则判定该帧内预测参 考像素点不可用。  When the neighboring block does not use the restricted intra prediction mode, if the intra prediction reference pixel is not in the same slice as the current block, or the intra prediction reference pixel does not exist, the intra prediction reference pixel is determined. The point is not available.

实施例五 Embodiment 5

本实施例提供一种电子设备, 所述电子设备包括发送端中的编码器, 该 编码器可通过前述实施例一的具体实现过程对帧内预测模式进行编码, 其具 体组成可以釆用前述实施例三中的描述, 在此不再赘述。  The embodiment provides an electronic device, where the electronic device includes an encoder in a transmitting end, and the encoder can encode an intra prediction mode by using a specific implementation process in the foregoing Embodiment 1, and the specific composition can be implemented by using the foregoing implementation. The description in the third example will not be repeated here.

所述电子设备还可以包括接收端中的解码器, 按照前述通过实施例二所 提供的方法, 实现解码, 该解码器的具体组成可以釆用前述实施例四中的描 述, 在此不再赘述。  The electronic device may further include a decoder in the receiving end, and the decoding is implemented according to the method provided in the foregoing embodiment. The specific composition of the decoder may be described in the foregoing Embodiment 4, and details are not described herein again. .

其中, 本实施例的电子设备可以是视频通信应用中相关码流生成设备和 接收播放设备, 例如, 手机、 计算机、 服务器、 机顶盒、 便携式移动终端、 数字电视、 数字摄像机等。  The electronic device of this embodiment may be a related code stream generating device and a receiving and playing device in a video communication application, for example, a mobile phone, a computer, a server, a set top box, a portable mobile terminal, a digital television, a digital camera, and the like.

需要说明的是,所述发送端设置成:发送视频信息,所述接收端设置成: 接收视频信息。 上述各实施例可以任意结合使用, 也可以单独实施。  It should be noted that the sending end is configured to: send video information, and the receiving end is configured to: receive video information. The above embodiments may be used arbitrarily in combination or separately.

以下将分别针对 16x16块、 8x8块和 4x4块这三种具体分割方式, 结合 若干应用示例对本发明技术方案的实施作更进一步详细说明。 The implementation of the technical solution of the present invention will be further described in detail below for three specific manners of 16x16 block, 8x8 block and 4x4 block, respectively, in combination with several application examples.

应用示例一 本示例主要描述 16x16块的帧内预测模式编码方法, 编码过程如下: 如图 3所示,共有 4种 16x16帧内预测模式: 0( Vertical )、 1( Horizontal )、 2 ( DC ) 、 3 ( plane ) 。 Application example one This example mainly describes the intra prediction mode coding method of 16x16 blocks. The encoding process is as follows: As shown in Figure 3, there are four 16x16 intra prediction modes: 0 (Vertical), 1 (Horizontal), 2 (DC), 3 ( Plane ).

若 H和 V中像素均可用, 则使用 H.264/AVC现有的帧内预测模式编码 方法。  If both pixels in H and V are available, the existing intra prediction mode coding method of H.264/AVC is used.

若 H像素不可用、 V像素可用, 则原模式 0、 模式 3必然不可用, 帧内 模式码表如下表 1所示:  If the H pixel is not available and the V pixel is available, the original mode 0 and mode 3 are inevitably unavailable. The intra mode code code table is as shown in Table 1 below:

表 1  Table 1

Figure imgf000012_0001
Figure imgf000012_0001

若 H像素可用、 V像素不可用, 则原模式 1、 模式 3必然不可用, 帧内 模式码表如下表 2所示:  If the H pixel is available and the V pixel is not available, the original mode 1 and mode 3 are inevitably unavailable. The intra mode code code table is as shown in Table 2 below:

表 2  Table 2

Figure imgf000012_0002
Figure imgf000012_0002

若 H像素与 V像素均不可用, 则仅 DC模式可用。 这种情况下, 若宏块 使用帧内预测编码, 则必然使用 DC模式, 因此可不对帧内预测模式信息进 行编码。  If neither H pixel nor V pixel is available, only DC mode is available. In this case, if the macroblock uses intra prediction coding, the DC mode is inevitably used, so the intra prediction mode information may not be encoded.

所述编码器根据上述情况确定所使用的映射码表, 对帧内预测模式进行 编码。  The encoder determines the used mapping code table according to the above situation, and encodes the intra prediction mode.

应用示例二 Application example two

本示例主要描述 8x8块和 4x4块的帧内预针对测模式编码方法, 编码过 程如下:  This example mainly describes the intra-pre-measurement mode coding method of 8x8 block and 4x4 block. The encoding process is as follows:

如图 4所示,共有 9种 16x16帧内预测模式: 0( Vertical )、 1( Horizontal )、 2 ( DC )、 3 ( diagonal down-left )、 4 ( diagonal down-right )、 5 ( Vertical-right )、 6 ( Horizontal-down ) 、 7 ( Vertical-left ) 、 8 ( Horizontal-up ) 。 As shown in Figure 4, there are 9 16x16 intra prediction modes: 0 (Vertical), 1 (Horizontal), 2 ( DC ), 3 ( diagonal down-left ), 4 ( diagonal down-right ), 5 ( Vertical-right ), 6 ( Horizontal-down ), 7 ( Vertical-left ), 8 ( Horizontal-up ).

由于 8x8帧内预测模式与 4x4帧内预测模式所使用的 9种预测模式对应 的帧内预测方向相同, 因此, 这里以 4x4帧内预测为例进行说明。 8x8帧内 预测方法与此相同。  Since the 8x8 intra prediction mode is the same as the intra prediction direction corresponding to the nine prediction modes used in the 4x4 intra prediction mode, 4x4 intra prediction is taken as an example here. The 8x8 intra prediction method is the same.

结合图 4所示, 将图中的像素点八、 B、 C、 D、 E、 F、 G、 H、 M称为 上相邻帧内预测参考像素点 (简称 "上相邻" ) , 像素点 I、 J、 K、 L称为 左相邻帧内预测参考像素点 (简称 "左相邻" ) 。  Referring to FIG. 4, the pixel points eight, B, C, D, E, F, G, H, and M in the figure are referred to as upper adjacent intra prediction reference pixel points (referred to as "upper adjacent"), and pixels Points I, J, K, and L are called left adjacent intra prediction reference pixels (referred to as "left adjacent").

若上相邻和左相邻均可用,则使用 H.264/AVC现有的帧内预测模式编码 方法。  If both upper and left neighbors are available, the existing intra prediction mode coding method of H.264/AVC is used.

若上相邻不可用、左相邻可用时, 则原模式 0、模式 3、模式 4、模式 5、 模式 6、 模式 7必然不可用, 帧内模式码表如下表 3所示:  If the upper neighbor is unavailable and the left neighbor is available, the original mode 0, mode 3, mode 4, mode 5, mode 6, and mode 7 are inevitably unavailable. The intra mode code table is as shown in Table 3 below:

表 3  table 3

Figure imgf000013_0001
Figure imgf000013_0001

若上相邻可用、左相邻不可用时, 则原模式 1、模式 4、模式 5、模式 6、 模式 8必然不可用, 使用不等长编码时, 帧内模式码表可如下表 4所示: 表 4  If the upper neighbor is available and the left neighbor is unavailable, the original mode 1, mode 4, mode 5, mode 6, and mode 8 are inevitably unavailable. When the unequal length encoding is used, the intra mode code table can be as shown in Table 4 below. : Table 4

Figure imgf000013_0002
Figure imgf000013_0002

或使用等长编码方式, 帧内模式码表如下表 5所示:  Or use equal length coding, the intra mode code table is as shown in Table 5 below:

表 5 Mode Mode Index Codeword table 5 Mode Mode Index Codeword

Vertical 0 00  Vertical 0 00

DC 1 01 DC 1 01

Diagonal Down-Left 2 10 Diagonal Down-Left 2 10

Vertical Left 3 11 若 H像素与 V像素均不可用, 则仅 DC模式可用。 这种情况下, 若宏块 使用帧内预测编码, 则必然使用 DC模式, 因此可不对帧内预测模式信息进 行编码。  Vertical Left 3 11 If neither H pixels nor V pixels are available, only DC mode is available. In this case, if the macroblock uses intra prediction coding, the DC mode is inevitably used, so the intra prediction mode information may not be encoded.

所述编码器根据上述情况确定所使用的码表,对帧内预测模式进行编码。  The encoder determines the used code table according to the above situation, and encodes the intra prediction mode.

应用示例三 Application example three

本示例主要描述 16x16块的帧内预针对测模式解码方法,解码过程如下: 结合图 3 , 若 H和 V中像素均可用, 则使用 H.264/AVC现有的帧内预 测模式编码方法。  This example mainly describes the intra-pre-measurement mode decoding method of 16x16 blocks. The decoding process is as follows: With reference to Figure 3, if both pixels in H and V are available, the existing intra prediction mode coding method of H.264/AVC is used.

若 H像素不可用、 V像素可用, 则原模式 0、 模式 3必然不可用, 帧内 模式码表如下表 6所示:  If the H pixel is not available and the V pixel is available, the original mode 0 and mode 3 are inevitably unavailable. The intra mode code code table is as shown in Table 6 below:

表 6  Table 6

Figure imgf000014_0001
Figure imgf000014_0001

若 H像素可用、 V像素不可用, 则原模式 1、 模式 3必然不可用, 帧内 模式码表如下表 7所示:  If H pixel is available and V pixel is not available, the original mode 1 and mode 3 are inevitably unavailable. The intra mode code code table is shown in Table 7 below:

表 7  Table 7

Figure imgf000014_0002
Figure imgf000014_0002

若 H像素与 V像素均不可用, 则仅 DC模式可用。 这种情况下, 若宏块 使用帧内预测编码, 则必然使用 DC模式, 因此可不对帧内预测模式信息进 行编码。 If neither H pixel nor V pixel is available, only DC mode is available. In this case, if the macroblock With intra prediction coding, the DC mode is inevitably used, so the intra prediction mode information may not be encoded.

所述解码器根据上述情况确定所使用的码表, 将解析码流得到的码字映 射为帧内模式索引序号, 进而根据码表映射得到所使用的帧内模式。 解码器 根据所得帧内模式对当前块进行编码。  The decoder determines the used code table according to the above situation, maps the codeword obtained by analyzing the code stream into an intra mode index number, and further obtains the used intra mode according to the code table mapping. The decoder encodes the current block according to the resulting intra mode.

应用示例四 Application example four

本示例主要描述 8x8和 4x4块的帧内预针对测模式解码方法, 由于 8x8 帧内预测模式与 4x4帧内预测模式所使用的 9种预测模式对应的帧内预测方 向相同, 因此, 这里以 4x4帧内预测为例说明帧内模式的解码方法。 8x8帧 内预测的帧内模式解码方法与此相同。 解码过程如下:  This example mainly describes the intra-pre-measurement mode decoding method for 8x8 and 4x4 blocks. Since the 8x8 intra prediction mode is the same as the intra prediction direction corresponding to the 9 prediction modes used in the 4x4 intra prediction mode, here, 4x4 The intra prediction is taken as an example to illustrate the decoding method of the intra mode. The intra mode decoding method of 8x8 intra prediction is the same. The decoding process is as follows:

结合图 4, 若上相邻和左相邻均可用, 则使用 H.264/AVC现有的帧内预 测模式编码方法。  Referring to Fig. 4, if both the upper adjacent and the left adjacent are available, the existing intra prediction mode encoding method of H.264/AVC is used.

若上相邻不可用、左相邻可用时, 则原模式 0、模式 3、模式 4、模式 5、 模式 6、 模式 7必然不可用, 帧内模式码表如下表 8所示:  If the upper neighbor is unavailable and the left neighbor is available, the original mode 0, mode 3, mode 4, mode 5, mode 6, and mode 7 are inevitably unavailable. The intra mode code table is as shown in Table 8 below:

表 8  Table 8

Figure imgf000015_0001
Figure imgf000015_0001

若上相邻可用、左相邻不可用时, 则原模式 1、模式 4、模式 5、模式 6、 模式 8必然不可用, 使用不等长编码时, 帧内模式码表可如下表 9所示: 表 9  If the upper neighbor is available and the left neighbor is unavailable, the original mode 1, mode 4, mode 5, mode 6, and mode 8 are inevitably unavailable. When the unequal length encoding is used, the intra mode code table can be as shown in Table 9 below. : Table 9

Figure imgf000015_0002
Figure imgf000016_0001
Figure imgf000015_0002
Figure imgf000016_0001

或使用等长编码方式, 帧内模式码表如下表 10所示:  Or use the same length coding method, the intra mode code code table is as shown in Table 10 below:

表 10  Table 10

Mode Mode Index Codeword  Mode Mode Index Codeword

Vertical 0 00 Vertical 0 00

DC 1 01DC 1 01

Diagonal Down-Left 2 10 Diagonal Down-Left 2 10

Vertical Left 3 11 若 H像素与 V像素均不可用, 则仅 DC模式可用。 这种情况下, 若宏块 使用帧内预测编码, 则必然使用 DC模式, 因此可不对帧内预测模式信息进 行编码。  Vertical Left 3 11 If neither H pixels nor V pixels are available, only DC mode is available. In this case, if the macroblock uses intra prediction coding, the DC mode is inevitably used, so the intra prediction mode information may not be encoded.

所述解码器根据上述情况确定所使用的码表, 将解析码流得到的码字映 射为帧内模式索引序号, 进而根据码表映射得到所使用的帧内模式。 解码器 根据所得帧内模式对当前块进行编码。  The decoder determines the used code table according to the above situation, maps the codeword obtained by analyzing the code stream into an intra mode index number, and further obtains the used intra mode according to the code table mapping. The decoder encodes the current block according to the resulting intra mode.

以上仅为本发明的优选实施案例而已, 并不用于限制本发明, 本发明还 可有其他多种实施例, 在不背离本发明精神及其实质的情况下, 熟悉本领域 的技术人员可根据本发明做出各种相应的改变和变形, 但这些相应的改变和 变形都应属于本发明所附的权利要求的保护范围。 The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention. The present invention may be embodied in various other embodiments without departing from the spirit and scope of the invention. Various changes and modifications may be made to the invention, and such changes and modifications are intended to be included within the scope of the appended claims.

显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并 且在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者 将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作 成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件 结合。 工业实用性 本发明实施例根据当前预测块相邻块中的参考像素点的可用性, 从全部 帧内预测模式中剔除必然不可用的帧内预测模式, 对预测模式索引表进行裁 剪,调整预测模式索引序号,并使用不等长码对预测模式索引序号进行编码, 从而降低了帧内预测模式编码开销。 因此本发明具有很强的工业实用性。 Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. INDUSTRIAL APPLICABILITY According to the availability of reference pixel points in a neighboring block of a current prediction block, the embodiment of the present invention removes an intra prediction mode that is inevitably unavailable from all intra prediction modes, and performs clipping on the prediction mode index table to adjust the prediction mode. The sequence number is indexed, and the prediction mode index sequence number is encoded by using the unequal length code, thereby reducing the intra prediction mode coding overhead. Therefore, the present invention has strong industrial applicability.

Claims

权 利 要 求 书 Claim 1、 一种帧内预测模式编码方法, 该方法包括:  1. An intra prediction mode coding method, the method comprising: 根据当前块的相邻块中帧内预测参考像素点的可用性, 从全部帧内预测 模式中去除当前块在编码过程中必然不使用的帧内预测模式, 得到可用的帧 内预测模式;  According to the availability of the intra-predicted reference pixel in the neighboring block of the current block, the intra prediction mode that the current block is inevitably used in the encoding process is removed from all the intra prediction modes, and the available intra prediction mode is obtained; 为可用的帧内预测模式分配索引序号, 并生成索引序号与码字之间的映 射码表;  Allocating an index number to an available intra prediction mode, and generating a mapping code table between the index number and the code word; 根据生成的所述映射码表对当前块的帧内预测模式进行编码。  The intra prediction mode of the current block is encoded according to the generated mapping code table. 2、如权利要求 1所述的帧内预测模式编码方法, 其中,根据当前块的相 邻块中帧内预测参考像素点的可用性, 从全部帧内预测模式中去除当前块在 编码过程中必然不使用的帧内预测模式, 得到可用的帧内预测模式的步骤包 括:  The intra prediction mode encoding method according to claim 1, wherein, according to the availability of the intra prediction reference pixel in the neighboring block of the current block, removing the current block from all intra prediction modes is inevitable in the encoding process. The unused intra prediction mode, the steps to obtain the available intra prediction modes include: 所述相邻块使用受限帧内预测模式时, 若帧内预测参考像素点所在块使 用非帧内预测模式、或帧内预测参考像素点与当前块不在同一个分片( slice ) 中、 或帧内预测参考像素点不存在, 则判定该帧内预测参考像素点不可用; 所述相邻块不使用受限帧内预测模式时, 若帧内预测参考像素点与当前 块不在同一个分片中、 或帧内预测参考像素点不存在, 则判定该帧内预测参 考像素点不可用。  When the neighboring block uses the restricted intra prediction mode, if the block in which the intra prediction reference pixel is located uses a non-intra prediction mode, or the intra prediction reference pixel is not in the same slice as the current block, Or if the intra prediction reference pixel does not exist, it is determined that the intra prediction reference pixel is not available; when the neighboring block does not use the restricted intra prediction mode, if the intra prediction reference pixel is not the same as the current block If the slice, or the intra prediction reference pixel does not exist, it is determined that the intra prediction reference pixel is not available. 3、如权利要求 1所述的帧内预测模式编码方法, 其中, 所述帧内预测参 考像素点不存在的情况包括: 所述当前块位于图像边界。  The intra prediction mode encoding method according to claim 1, wherein the case where the intra prediction reference pixel does not exist comprises: the current block being located at an image boundary. 4、 一种帧内预测模式解码方法, 该方法包括:  4. An intra prediction mode decoding method, the method comprising: 根据当前块的相邻块中帧内预测参考像素点的可用性, 从全部帧内预测 模式中去除当前块在编码过程中必然不使用的帧内预测模式, 得到可用的帧 内预测模式;  According to the availability of the intra-predicted reference pixel in the neighboring block of the current block, the intra prediction mode that the current block is inevitably used in the encoding process is removed from all the intra prediction modes, and the available intra prediction mode is obtained; 为所述可用的帧内预测模式分配索引序号, 并生成索引序号与码字之间 的映射码表;  Allocating an index sequence number to the available intra prediction mode, and generating a mapping code table between the index sequence number and the codeword; 根据生成的所述映射码表, 将输入码字转换为帧内预测模式索引序号, 确定当前块使用的帧内预测模式; Converting the input codeword into an intra prediction mode index number according to the generated mapping code table, Determining an intra prediction mode used by the current block; 根据所确定的帧内预测模式, 对当前块进行解码。  The current block is decoded according to the determined intra prediction mode. 5、如权利要求 4所述的帧内预测模式解码方法, 其中,根据当前块的相 邻块中帧内预测参考像素点的可用性, 从全部帧内预测模式中去除当前块在 编码过程中必然不使用的帧内预测模式, 得到可用的帧内预测模式的步骤包 括:  The intra prediction mode decoding method according to claim 4, wherein, according to the availability of the intra prediction reference pixel in the neighboring block of the current block, removing the current block from all intra prediction modes is inevitable in the encoding process. The unused intra prediction mode, the steps to obtain the available intra prediction modes include: 所述相邻块使用受限帧内预测模式时, 若帧内预测参考像素点所在块使 用非帧内预测模式、或帧内预测参考像素点与当前块不在同一个分片( slice ) 中、 或帧内预测参考像素点不存在, 则判定该帧内预测参考像素点不可用; 所述相邻块不使用受限帧内预测模式时, 若帧内预测参考像素点与当前 块不在同一个分片中、 或帧内预测参考像素点不存在, 则判定该帧内预测参 考像素点不可用。  When the neighboring block uses the restricted intra prediction mode, if the block in which the intra prediction reference pixel is located uses a non-intra prediction mode, or the intra prediction reference pixel is not in the same slice as the current block, Or if the intra prediction reference pixel does not exist, it is determined that the intra prediction reference pixel is not available; when the neighboring block does not use the restricted intra prediction mode, if the intra prediction reference pixel is not the same as the current block If the slice, or the intra prediction reference pixel does not exist, it is determined that the intra prediction reference pixel is not available. 6、一种编码器,所述编码器包括确定模块、生成模块和编码模块,其中: 所述确定模块设置成: 根据相邻块中帧内预测参考像素点的可用性, 确 定当前块编码过程中必然不使用的帧内预测模式;  An encoder, the encoder comprising a determining module, a generating module and an encoding module, wherein: the determining module is configured to: determine the current block encoding process according to the availability of the intra-predicted reference pixel in the neighboring block Intra prediction mode that must not be used; 所述生成模块设置成: 根据所述确定模块所确定的当前块编码过程中必 然不使用的帧内预测模式, 从全部帧内预测模式中去除当前块在编码过程中 必然不使用的帧内预测模式, 得到可用帧内预测模式, 为可用帧内预测模式 分配索引序号, 并生成索引序号与码字之间的映射码表;  The generating module is configured to: remove, according to the intra prediction mode that is not used in the current block coding process determined by the determining module, from all the intra prediction modes, remove the intra prediction that the current block is inevitably not used in the encoding process. Mode, obtaining an available intra prediction mode, assigning an index number to the available intra prediction mode, and generating a mapping code table between the index number and the code word; 所述编码模块设置成: 根据所述生成模块生成的所述映射码表对所述当 前块帧内预测模式进行编码。  The encoding module is configured to: encode the current block intra prediction mode according to the mapping code table generated by the generating module. 7、如权利要求 6所述的编码器, 其中, 所述确定模块设置成按照以下方 式根据相邻块中帧内预测参考像素点的可用性, 确定当前块编码过程中必然 不使用的帧内预测模式:  The encoder according to claim 6, wherein the determining module is configured to determine, according to the availability of the intra-predicted reference pixel in the neighboring block, the intra prediction that is inevitably not used in the current block encoding process. Mode: 所述相邻块使用受限帧内预测模式时, 若帧内预测参考像素点所在块使 用非帧内预测模式、 或帧内预测参考像素点与当前块不在同一个分片中、 或 帧内预测参考像素点不存在, 则判定该帧内预测参考像素点不可用;  When the neighboring block uses the restricted intra prediction mode, if the block in which the intra prediction reference pixel is located uses the non-intra prediction mode, or the intra prediction reference pixel is not in the same slice or frame as the current block, Determining that the reference pixel is not present, determining that the intra prediction reference pixel is not available; 所述相邻块不使用受限帧内预测模式时, 若帧内预测参考像素点与当前 块不在同一个分片中、 或帧内预测参考像素点不存在, 则判定该帧内预测参 考像素点不可用。 When the neighboring block does not use the restricted intra prediction mode, if the intra prediction reference pixel is current and current If the block is not in the same slice, or the intra prediction reference pixel does not exist, it is determined that the intra prediction reference pixel is not available. 8、 一种解码器, 所述解码器包括确定单元、 生成单元、 第一解码单元和 第二解码单元, 其中: 所述确定单元设置成: 根据相邻块中帧内预测参考像素点的可用性, 确 定当前块编码过程中必然不使用的帧内预测模式;  8. A decoder, the decoder comprising a determining unit, a generating unit, a first decoding unit, and a second decoding unit, wherein: the determining unit is configured to:: according to availability of intra prediction reference pixel points in neighboring blocks , determining an intra prediction mode that is inevitably not used in the current block encoding process; 所述生成单元设置成: 根据所述确定模块所确定的当前块编码过程中必 然不使用的帧内预测模式, 从全部帧内预测模式中去除当前块在编码过程中 必然不使用的帧内预测模式, 得到可用的帧内预测模式, 为可用的帧内预测 模式分配索引序号, 并生成索引序号与码字之间的映射码表;  The generating unit is configured to: remove, according to the intra prediction mode that is not used in the current block coding process determined by the determining module, the intra prediction that the current block is inevitably not used in the encoding process from all the intra prediction modes. a mode, obtaining an available intra prediction mode, assigning an index number to an available intra prediction mode, and generating a mapping code table between the index number and the code word; 所述第一解码单元设置成: 根据所述生成单元生成的映射码表, 将输入 码字转换为帧内预测模式索引序号, 确定当前块所使用的帧内预测模式; 所述第二解码单元设置成: 根据所确定的帧内预测模式, 对当前块进行 解码。  The first decoding unit is configured to: convert the input codeword into an intra prediction mode index sequence according to the mapping code table generated by the generating unit, and determine an intra prediction mode used by the current block; the second decoding unit Set to: decode the current block according to the determined intra prediction mode. 9、如权利要求 8所述的解码器, 其中, 所述确定单元设置成按照以下方 式根据相邻块中帧内预测参考像素点的可用性, 确定当前块编码过程中必然 不使用的帧内预测模式:  The decoder according to claim 8, wherein the determining unit is configured to determine an intra prediction that is inevitably not used in the current block encoding process according to the availability of intra prediction reference pixel points in the neighboring block in the following manner Mode: 所述相邻块使用受限帧内预测模式时, 若帧内预测参考像素点所在块使 用非帧内预测模式、 或帧内预测参考像素点与当前块不在同一个分片中、 或 帧内预测参考像素点不存在, 则判定该帧内预测参考像素点不可用;  When the neighboring block uses the restricted intra prediction mode, if the block in which the intra prediction reference pixel is located uses the non-intra prediction mode, or the intra prediction reference pixel is not in the same slice or frame as the current block, Determining that the reference pixel is not present, determining that the intra prediction reference pixel is not available; 所述相邻块不使用受限帧内预测模式时, 若帧内预测参考像素点与当前 块不在同一个分片中、 或帧内预测参考像素点不存在, 则判定该帧内预测参 考像素点不可用。  When the neighboring block does not use the restricted intra prediction mode, if the intra prediction reference pixel is not in the same slice as the current block, or the intra prediction reference pixel does not exist, the intra prediction reference pixel is determined. The point is not available. 10、 一种电子设备, 包括: 如权利要求 6或 7所述的编码器、 和 /或如权 利要求 8或 9所述的解码器。  An electronic device comprising: the encoder according to claim 6 or 7, and/or the decoder according to claim 8 or 9.
PCT/CN2012/078620 2011-10-20 2012-07-13 Intra-frame prediction mode encoder and decoder, method thereof, and electronic device Ceased WO2013056577A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110320387.5 2011-10-20
CN201110320387.5A CN103067699B (en) 2011-10-20 2011-10-20 A kind of intra-frame prediction mode encoder, decoder and its method and electronic equipment

Publications (1)

Publication Number Publication Date
WO2013056577A1 true WO2013056577A1 (en) 2013-04-25

Family

ID=48110139

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/078620 Ceased WO2013056577A1 (en) 2011-10-20 2012-07-13 Intra-frame prediction mode encoder and decoder, method thereof, and electronic device

Country Status (2)

Country Link
CN (1) CN103067699B (en)
WO (1) WO2013056577A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363459A (en) * 2014-10-29 2015-02-18 复旦大学 Hardware filling method applicable to infra-frame prediction reference pixels in HEVC (high efficiency video coding) standard
KR102327944B1 (en) 2016-12-23 2021-11-17 후아웨이 테크놀러지 컴퍼니 리미티드 Intra prediction apparatus for removing a directional intra prediction mode from a set of predetermined directional intra prediction modes
CN110650337B (en) 2018-06-26 2022-04-01 中兴通讯股份有限公司 Image encoding method, decoding method, encoder, decoder and storage medium
WO2020013497A1 (en) * 2018-07-13 2020-01-16 엘지전자 주식회사 Image decoding method and device using intra prediction information in image coding system
CN110072112B (en) 2019-03-12 2023-05-12 浙江大华技术股份有限公司 Intra-frame prediction method, encoder and storage device
EP3886435A4 (en) 2019-06-25 2022-01-26 Guangdong Oppo Mobile Telecommunications Corp., Ltd. MAPPING PROCESSES, ENCODERS, DECODERS AND COMPUTER STORAGE MEDIUM
CN110519605A (en) * 2019-07-23 2019-11-29 西安万像电子科技有限公司 Coding method, device and the storage medium of intra prediction mode
CN116095316B (en) * 2023-03-17 2023-06-23 北京中星微人工智能芯片技术有限公司 Video image processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330617A (en) * 2008-07-31 2008-12-24 上海交通大学 Hardware implementation method and device of multi-standard intra-frame predictor based on mode mapping
CN101605255A (en) * 2008-06-12 2009-12-16 华为技术有限公司 Method and device for video encoding and decoding
CN101854551A (en) * 2010-06-08 2010-10-06 浙江大学 Intra prediction mode encoding and decoding method and device
CN101971631A (en) * 2007-12-21 2011-02-09 艾利森电话股份有限公司 Adaptive intra mode selection

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309409A (en) * 2008-02-22 2008-11-19 华为技术有限公司 A decoding method and device
CN101677406B (en) * 2008-09-19 2011-04-20 华为技术有限公司 Method and apparatus for video encoding and decoding
CN101873485B (en) * 2009-08-21 2012-04-04 杭州海康威视软件有限公司 Watermark embedding method and device based on H.264 compressed domain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101971631A (en) * 2007-12-21 2011-02-09 艾利森电话股份有限公司 Adaptive intra mode selection
CN101605255A (en) * 2008-06-12 2009-12-16 华为技术有限公司 Method and device for video encoding and decoding
CN101330617A (en) * 2008-07-31 2008-12-24 上海交通大学 Hardware implementation method and device of multi-standard intra-frame predictor based on mode mapping
CN101854551A (en) * 2010-06-08 2010-10-06 浙江大学 Intra prediction mode encoding and decoding method and device

Also Published As

Publication number Publication date
CN103067699A (en) 2013-04-24
CN103067699B (en) 2018-02-16

Similar Documents

Publication Publication Date Title
JP2021106403A (en) Video decoding method, video encoding method, and recording medium
CN108271024B (en) Image coding and decoding method and device
WO2013056577A1 (en) Intra-frame prediction mode encoder and decoder, method thereof, and electronic device
CN118509587A (en) Position dependent intra prediction combining using wide angle intra prediction
CN112789858B (en) Intra prediction method and device
CN113170202B (en) Encoder, decoder and corresponding methods for constructing MPM list of block applying multi-hypothesis prediction
CN113747176A (en) Image encoding method, image decoding method and related device
CN113924780A (en) Method and apparatus for affine inter prediction of chroma sub-blocks
CN113597757B (en) Shape-Adaptive Discrete Cosine Transform with Adaptive Geometric Partitioning of Region Number
CN116325729A (en) Activation function design in neural network-based filtering process for video coding
CN112889286B (en) Method and apparatus for mode-dependent and size-dependent block-level limiting of position-dependent prediction combinations
CN113767636B (en) Method and system for intra-mode encoding and decoding
CN113678438A (en) Wide-angle intra prediction with sub-partitions
JP2021503247A (en) Conversion coefficient level coding method and its equipment
CN113455005A (en) Deblocking filter for sub-partition boundaries generated by intra sub-partition coding tools
CN114402605A (en) Image decoding method using flag of residual encoding method in image encoding system and apparatus therefor
CN113647112A (en) Entropy coding for video encoding and decoding
CN113411613B (en) Method for video coding image block, decoding device and coder/decoder
CN116210222A (en) Constraining operating bit depth for adaptive loop filtering for coding video data at different bit depths
CN112740676B (en) Coordination of intra transform decoding and wide-angle intra prediction
CN114007068B (en) Encoder, decoder and method for predictive decoding of current block realized by the same
CN113727120B (en) Decoding method, device, encoder and decoder
TW202234886A (en) Adaptive loop filter with fixed filters
CN117597926A (en) Coding of last significant coefficient in a block of a picture
EP4625983A1 (en) Temporal prediction of split mode

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

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

Country of ref document: EP

Kind code of ref document: A1