CN112188193A - Video coding method and device and electronic equipment - Google Patents

Video coding method and device and electronic equipment Download PDF

Info

Publication number
CN112188193A
CN112188193A CN201910583559.4A CN201910583559A CN112188193A CN 112188193 A CN112188193 A CN 112188193A CN 201910583559 A CN201910583559 A CN 201910583559A CN 112188193 A CN112188193 A CN 112188193A
Authority
CN
China
Prior art keywords
flag
intra
value
mip
current block
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.)
Pending
Application number
CN201910583559.4A
Other languages
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to CN201910583559.4A priority Critical patent/CN112188193A/en
Publication of CN112188193A publication Critical patent/CN112188193A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock

Landscapes

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

Abstract

The embodiment of the invention provides a video coding method and device and electronic equipment. The device comprises: a first writing unit for writing a value of a matrix intra prediction mode flag (intra _ mip _ flag) into a code stream; and a first determination unit for determining whether to encode the current block using truncated binary (truncated binary) according to a number of candidate elements (nummipand) when the value of the matrix intra prediction mode flag is 1, wherein the number of candidate elements is 0 or 1.

Description

Video coding method and device and electronic equipment
Technical Field
The invention relates to the technical field of information.
Background
In the next generation Video Coding standard, namely, universal Video Coding (VVC), a new tool, namely, Matrix-based intra prediction (MIP), which may also be referred to as Matrix intra prediction, is introduced.
It should be noted that the above background description is only for the sake of clarity and complete description of the technical solutions of the present invention and for the understanding of those skilled in the art. Such solutions are not considered to be known to the person skilled in the art merely because they have been set forth in the background section of the invention.
Disclosure of Invention
In the conventional method, a plurality of parameters are defined to indicate the encoding method, such as a matrix intra prediction mode flag (intra _ mip _ flag), a matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag), a most probable mode index (intra _ mip _ mpm _ idx), and truncated binary (truncated binary) encoding, which is also called residual mode (intra _ mip _ mpm _ remaining) encoding.
Also, in the conventional method, when writing a syntax specification (syntax specification) for encoding and performing encoding according to the syntax specification, first, a value of an intra _ MIP _ flag is written in a code stream to indicate whether or not a current block (current block) is encoded using a Matrix Intra Prediction (MIP) mode, when the value of the matrix intra prediction mode flag is 1, it indicates that the MIP mode is used for encoding, a value of an intra _ MIP _ MPM _ flag is further written to indicate whether or not a predetermined MIP mode is one of 3 candidate most probable modes (MPM, most probable mode), when the value of the intra prediction most probable mode flag is 1, it indicates that the predetermined MIP mode is one of 3 most probable modes, and a value of an intra _ MIP _ mim _ idx index is further written to indicate that the predetermined MIP mode is one of 3 most probable modes Whichever is, when the value of the matrix intra prediction most probable mode flag is 0, a truncated bin (truncated bin), i.e., a residual mode (intra _ mip _ mpm _ remaining), is used for encoding the current block.
The inventors found that, in the above-described conventional method, whether the predetermined MIP mode is one of 3 MPMs is represented by writing a value of a matrix intra prediction most probable mode flag (intra _ MIP _ MPM _ flag), the most probable mode index (intra _ mip _ mpm _ idx) is further written in case of yes to indicate which of the 3 most probable modes is, and, in the case of "no", to perform truncated binary coding, the syntax specification of the coding and the coding process performed according to the syntax specification are complicated, and, the statistical data of the coding results after the coding is carried out by the prior method show that only a small proportion of the coding blocks adopt the MIP mode for coding, in addition, in the encoding using the MIP mode, the first MPM among the 3 MPMs is mostly used, and thus, the above-described conventional method using the 3 MPMs has low encoding efficiency.
The embodiment of the invention provides a video coding method, a video coding device and electronic equipment, wherein when the value of a matrix intra-frame prediction mode flag (intra _ mip _ flag) is 1, whether a truncated binary system is directly used for coding a current block is determined according to the number (NumMipCand) of candidate elements, and the number of the candidate elements is only 1 under the condition that the candidate elements exist. Therefore, the syntax specification of the encoding and the encoding process performed according to the syntax specification are simplified, and the encoding efficiency is improved.
According to a first aspect of embodiments of the present invention, there is provided a video encoding method, the method comprising: writing the value of a matrix intra-frame prediction mode flag (intra _ mip _ flag) into a code stream; when the value of the matrix intra prediction mode flag is 1, it is determined whether to encode the current block using truncated binary (truncated binary) according to the number of candidate elements (nummipand), wherein the number of candidate elements is 0 or 1.
According to a second aspect of embodiments of the present invention, there is provided a video encoding device, the device comprising: a first writing unit for writing a value of a matrix intra prediction mode flag (intra _ mip _ flag) into a code stream; and a first determination unit for determining whether to encode the current block using truncated binary (truncated binary) according to a number of candidate elements (nummipand) when the value of the matrix intra prediction mode flag is 1, wherein the number of candidate elements is 0 or 1.
According to a third aspect of embodiments of the present invention, there is provided an electronic device comprising the apparatus according to the second aspect of embodiments of the present invention.
The invention has the beneficial effects that: when the value of the matrix intra prediction mode flag (intra _ mip _ flag) is 1, it is determined whether to directly encode the current block using the truncated binary according to the number of candidate elements (nummipand), and the number thereof is only 1 in the case where there are candidate elements. Therefore, the syntax specification of the encoding and the encoding process performed according to the syntax specification are simplified, and the encoding efficiency is improved.
Specific embodiments of the present invention are disclosed in detail with reference to the following description and drawings, indicating the manner in which the principles of the invention may be employed. It should be understood that the embodiments of the invention are not so limited in scope. The embodiments of the invention include many variations, modifications and equivalents within the spirit and scope of the appended claims.
Features that are described and/or illustrated with respect to one embodiment may be used in the same way or in a similar way in one or more other embodiments, in combination with or instead of the features of the other embodiments.
It should be emphasized that the term "comprises/comprising" when used herein, is taken to specify the presence of stated features, integers, steps or components but does not preclude the presence or addition of one or more other features, integers, steps or components.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 is a schematic diagram of a video encoding method according to embodiment 1 of the present invention;
FIG. 2 is a schematic diagram of a method for determining candidate elements and their numbers according to embodiment 1 of the present invention;
FIG. 3 is a diagram of the left side PU, the upper side PU and the current block in embodiment 1 of the present invention;
fig. 4 is a schematic diagram of an implementation of a video encoding method according to embodiment 1 of the present invention;
fig. 5 is a schematic diagram of a video encoding apparatus according to embodiment 2 of the present invention;
fig. 6 is a schematic view of an electronic device according to embodiment 3 of the present invention;
fig. 7 is a schematic block diagram of a system configuration of an electronic apparatus according to embodiment 3 of the present invention.
Detailed Description
The foregoing and other features of the invention will become apparent from the following description taken in conjunction with the accompanying drawings. In the description and drawings, particular embodiments of the invention have been disclosed in detail as being indicative of some of the embodiments in which the principles of the invention may be employed, it being understood that the invention is not limited to the embodiments described, but, on the contrary, is intended to cover all modifications, variations, and equivalents falling within the scope of the appended claims.
Example 1
The embodiment of the invention provides a video coding method. Fig. 1 is a schematic diagram of a video encoding method according to embodiment 1 of the present invention. As shown in fig. 1, the method includes:
step 101: writing the value of a matrix intra-frame prediction mode flag (intra _ mip _ flag) into a code stream;
step 102: when the value of the matrix intra prediction mode flag is 1, whether to encode the current block using truncated binary (truncated binary) is determined according to the number of candidate elements (nummipand), which is 0 or 1.
As can be seen from the above-described embodiments, when the value of the matrix intra prediction mode flag (intra _ mip _ flag) is 1, it is determined whether to directly encode the current block using the truncated binary according to the number of candidate elements (nummipand), and the number thereof is only 1 in the case where there are candidate elements. Therefore, the syntax specification of the encoding and the encoding process performed according to the syntax specification are simplified, and the encoding efficiency is improved.
In the present embodiment, the meaning of the matrix intra prediction mode flag (intra _ MIP _ flag) is the same as that in the conventional specification, i.e., whether or not the Matrix Intra Prediction (MIP) mode is used for encoding the current block (current block), when the value of the matrix intra prediction mode flag is 1, it indicates that the MIP mode is used for encoding, and when the value of the matrix intra prediction mode flag is 0, it indicates that the MIP mode is not used for encoding, for example, a conventional prediction mode, for example, a prediction mode using 6MPM-list, may be used.
For example, which of the three types of mode sets the MIP mode employs may be determined according to the size of the chunk, and may be represented by the following formula (1):
Figure BDA0002113782100000041
where N denotes the number of patterns contained in the pattern set, and W and H denote the width and height of the block, respectively.
In step 102, when the value of the matrix intra prediction mode flag is 1, it is determined whether to encode the current block using truncated binary (truncated binary) according to the number of candidate elements (nummipand), which is 0 or 1.
In the present embodiment, the number of candidate elements (nummipand) that refer to an MPM mode that is a candidate for the MIP mode encoded by the current block, i.e., the mode indicated by the candidate element, is a newly introduced parameter.
The number of candidate elements represents the number of candidate MPM modes, and may be 0 or 1. When the value of nummicland is 0, it indicates that there is no candidate element, i.e., there is no candidate MPM pattern, and when the value of nummicland is 1, it indicates that the number of candidate MPM patterns is 1.
In the present embodiment, when the number of candidate elements is 0, it is determined that the current block is encoded using a truncated binary (truncated bin), and when the number of candidate elements is 1, it is determined that a value of a matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is written without using a truncated binary (truncated bin).
In this embodiment, as shown in fig. 1, before step 102, the method may further include:
step 103: when the value of the matrix intra prediction mode flag is 1, the candidate elements and the number thereof are determined.
In the present embodiment, for example, the candidate elements and the number thereof may be determined by the following method:
determining an encoding mode of a left Prediction Unit (PU) or an above prediction unit of a current block as a candidate element and determining the number of candidate elements as 1 when the PU or the above prediction unit satisfies all of the following conditions:
condition 1: left or upper prediction units are available;
condition 2: the left prediction unit or the upper prediction unit is an intra block; and
condition 3: the left prediction unit or the upper prediction unit and the current block use the same type of matrix intra prediction mode set.
For example, fig. 2 is a schematic diagram of a method for determining candidate elements and the number thereof according to embodiment 1 of the present invention. As shown in fig. 2, the method includes:
step 201: judging whether the left side prediction unit meets the conditions 1-3, if so, entering the step 202, and if not, entering the step 203;
step 202: determining the encoding mode of the left prediction unit as candidate elements and the number of the candidate elements as 1;
step 203: judging whether the upper prediction unit meets the conditions 1-3, if so, entering the step 204, and if not, entering the step 205;
step 204: determining the encoding mode of the upper prediction unit as candidate elements and the number of the candidate elements as 1;
step 205: the number of candidate elements is determined to be 0.
In the method shown in fig. 2, it is determined whether the left prediction unit satisfies the above-mentioned conditions 1-3, but it may also be determined whether the upper prediction unit satisfies the above-mentioned conditions 1-3, and the order of determination is not limited in the embodiment of the present invention.
FIG. 3 is a diagram of the left PU, the upper PU and the current block in embodiment 1 of the present invention. As shown in FIG. 3, the left prediction unit 302 is located at the left side of the current block 301, and the upper prediction unit 303 is located above the current block 302.
In step 102 of the present embodiment, when the number of candidate elements is 0, it is determined that the current block is encoded using truncated binary (truncated binary), and when the number of candidate elements is 1, it is determined that the value of the matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is written without using truncated binary (truncated binary).
For example, as shown in fig. 1, the method may further include:
step 104: when the number of candidate elements (nummicand) is 0, the current block is encoded using truncated binary (truncated binary).
Therefore, when the number of the candidate elements is 0, the truncated binary system is directly used for coding, so that the coding process is simple and the coding efficiency is high.
In the present embodiment, truncated binary (truncated binary) coding, i.e., residual mode (intra _ mip _ mpm _ remaining) coding, and the specific process of coding the current block using the truncated binary (truncated binary) may refer to the prior art.
For example, the MIP-mode set of the current block includes N modes, then truncated binary encoding is performed for the N modes.
For example, as shown in fig. 1, the method may further include:
step 105: when the number of candidate elements (nummipand) is 1, the value of the matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is written into the code stream.
In the present embodiment, the meaning of the matrix intra prediction most probable mode flag (intra _ MIP _ MPM _ flag) is the same as that in the existing specification, i.e., indicates whether a predetermined Matrix Intra Prediction (MIP) mode is the same as a candidate element (candidate MPM mode). When the candidate element is the same as the predetermined matrix intra prediction mode, the value of the matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 1; when the candidate element is different from the predetermined matrix intra prediction mode, the value of the matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 0
In this embodiment, when the number of candidate elements (nummipand) is 1 and the value of the matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 1, it indicates that the determined mode is the mode that the candidate element represents, and thus there is no need to write any data into the bitstream. For example, the identifier or index such as intra _ mip _ mpm _ idx does not need to be written again, so that the encoding process can be further simplified and the encoding efficiency can be improved.
For example, as shown in fig. 1, the method may further include:
step 106: when the number of candidate elements (nummipand) is 1 and the value of the matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 0, the current block is encoded using a truncated binary excluding the mode represented by the candidate elements.
In step 106, encoding the current block using the truncated binary excluding the mode represented by the candidate element means that, for example, the MIP mode set of the current block includes N modes, and the truncated binary encoding is performed on N-1 modes obtained by removing the mode represented by the candidate element from the N modes.
In the present embodiment, for the current block, the value of the matrix intra prediction mode flag (intra _ MIP _ flag) to be written, and the Matrix Intra Prediction (MIP) mode of the current block for determining the value of the matrix intra prediction most probable mode flag (intra _ MIP _ mpm _ flag) may be predetermined.
For example, an optimal value of a matrix intra prediction mode flag (intra _ MIP _ flag) and an optimal Matrix Intra Prediction (MIP) mode are determined by means of search traversal before encoding.
Fig. 4 is a schematic diagram of an implementation of the video encoding method according to embodiment 1 of the present invention. As shown in fig. 4, the method includes:
step 401: writing the value of a matrix intra-frame prediction mode flag (intra _ mip _ flag) into a code stream;
step 402: judging whether the value of the matrix intra-frame prediction mode flag is 0, if the judgment result is yes, entering step 403, and if the judgment result is no, entering step 404;
step 403: encoding the current block using a legacy prediction mode;
step 404: determining candidate elements and the number thereof;
step 405: judging whether the number of the determined candidate elements is 0, if so, entering a step 406, and if not, entering a step 407;
step 406: encoding the current block using truncated binary (truncated binary);
step 407: judging whether the mode represented by the determined candidate element is the same as the predetermined MIP mode, if so, entering step 408, and if not, entering step 409;
step 408: writing the value of a most probable mode flag (intra _ mip _ mpm _ flag) of matrix intra prediction into a code stream, wherein the value is 1;
step 409: writing the value of a most probable mode flag (intra _ mip _ mpm _ flag) of matrix intra prediction into a code stream, wherein the value is 0;
step 410: the current block is encoded using truncated bins excluding the mode represented by the candidate element.
In this embodiment, the specific implementation of the above steps may refer to the related steps in fig. 1 and fig. 2, and will not be described herein again.
As can be seen from the above-described embodiments, when the value of the matrix intra prediction mode flag (intra _ mip _ flag) is 1, it is determined whether to directly encode the current block using the truncated binary according to the number of candidate elements (nummipand), and the number thereof is only 1 in the case where there are candidate elements. Therefore, the syntax specification of the encoding and the encoding process performed according to the syntax specification are simplified, and the encoding efficiency is improved.
Example 2
An embodiment of the present invention further provides a video encoding apparatus, which corresponds to the video encoding method of embodiment 1. Fig. 5 is a schematic diagram of a video encoding apparatus according to embodiment 2 of the present invention. As shown in fig. 5, the video encoding apparatus 500 includes:
a first writing unit 501 for writing a value of a matrix intra prediction mode flag (intra _ mip _ flag) into a code stream;
a first determining unit 502 for determining whether to encode the current block using truncated binary (truncated binary) according to a number of candidate elements (nummipand) when a value of the matrix intra prediction mode flag is 1, wherein the number of candidate elements is 0 or 1.
In this embodiment, as shown in fig. 5, the video encoding apparatus 500 may further include:
a first encoding unit 503 for encoding the current block using truncated binary when the number of candidate elements (nummipband) is 0.
In this embodiment, as shown in fig. 5, the video encoding apparatus 500 may further include:
a second writing unit 504 for writing a value of a matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) into the code stream when the number of candidate elements (nummipand) is 1.
In this embodiment, as shown in fig. 5, the video encoding apparatus 500 may further include:
a second encoding unit 505 for encoding the current block using the truncated binary excluding the mode represented by the candidate element when the number of candidate elements (nummipand) is 1 and the value of the matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 0.
In the present embodiment, when the candidate element is the same as the predetermined matrix intra prediction mode, the value of the matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 1; when the candidate element is different from the predetermined matrix intra prediction mode, the value of the matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 0.
In this embodiment, as shown in fig. 5, the video encoding apparatus 500 may further include:
a second determining unit 506 for determining the candidate elements and the number thereof when the value of the matrix intra prediction mode flag is 1.
In the present embodiment, the second determination unit 507 determines the encoding mode of the left prediction unit or the above prediction unit as a candidate element and determines the number of candidate elements as 1 when the left prediction unit or the above prediction unit of the current block satisfies all of the following conditions: left or upper prediction units are available; the left prediction unit or the upper prediction unit is an intra block; and the left prediction unit or the upper prediction unit and the current block use the same type of matrix intra prediction mode set.
In this embodiment, the implementation of the functions of the above components can refer to the implementation of the steps of the video coding method in embodiment 1, and details are not described here.
In addition, for simplicity, fig. 5 only illustrates a connection relationship between the respective components or modules, but it should be apparent to those skilled in the art that various related technologies, such as bus connection, may be adopted. The above components or modules may be implemented by hardware facilities such as a processor, a memory, and the like; the invention is not limited in its practice.
In this embodiment, the video encoding apparatus may be an apparatus or a part of an apparatus for encoding and/or decoding an image of a video. For example, the video encoding apparatus is an encoder.
As can be seen from the above-described embodiments, when the value of the matrix intra prediction mode flag (intra _ mip _ flag) is 1, it is determined whether to directly encode the current block using the truncated binary according to the number of candidate elements (nummipand), and the number thereof is only 1 in the case where there are candidate elements. Therefore, the syntax specification of the encoding and the encoding process performed according to the syntax specification are simplified, and the encoding efficiency is improved.
Example 3
An embodiment of the present invention further provides an electronic device, and fig. 6 is a schematic diagram of an electronic device in embodiment 3 of the present invention. As shown in fig. 6, the electronic device 600 includes a video encoding apparatus 601, wherein the structure and function of the video encoding apparatus 601 are the same as those described in embodiment 2, and are not described herein again.
Fig. 7 is a schematic block diagram of a system configuration of an electronic apparatus according to embodiment 3 of the present invention. As shown in fig. 7, the electronic device 700 may include a central processor 701 and a memory 702; the memory 702 is coupled to the central processor 701. The figure is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
As shown in fig. 7, the electronic device 700 may further include: an input unit 703, a display 704, and a power source 705.
In one embodiment, the functions of the video encoding apparatus described in embodiment 2 may be integrated into the central processor 701. Wherein, the central processor 701 may be configured to: writing the value of a matrix intra-frame prediction mode flag (intra _ mip _ flag) into a code stream; when the value of the matrix intra prediction mode flag is 1, it is determined whether to encode the current block using truncated binary (truncated binary) according to the number of candidate elements (nummipand), wherein the number of candidate elements is 0 or 1.
For example, the central processor 701 may also be configured to: when the number of candidate elements (nummicand) is 0, the current block is encoded using truncated binary (truncated binary).
For example, the central processor 701 may also be configured to: when the number of candidate elements (nummipand) is 1, the value of the matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is written into the code stream.
For example, the central processor 701 may also be configured to: when the number of candidate elements (nummipand) is 1 and the value of a matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 0, the current block is encoded using a truncated binary excluding the mode represented by the candidate elements.
For example, when the candidate element is the same as the predetermined matrix intra prediction mode, the value of the matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 1; when the candidate element is different from the predetermined matrix intra prediction mode, the value of the matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 0.
For example, the central processor 701 may also be configured to: when the value of the matrix intra prediction mode flag is 1, the candidate elements and the number thereof are determined.
For example, determining candidate elements and their numbers includes: determining the encoding mode of the left prediction unit or the above prediction unit as a candidate element and determining the number of the candidate elements as 1 when the left prediction unit or the above prediction unit of the current block satisfies all of the following conditions: left or upper prediction units are available; the left prediction unit or the upper prediction unit is an intra block; and the left prediction unit or the upper prediction unit and the current block use the same type of matrix intra prediction mode set.
In another embodiment, the video encoding apparatus described in embodiment 2 may be configured separately from the central processor 701, for example, the video encoding apparatus may be configured as a chip connected to the central processor 701, and the function of the video encoding apparatus is realized by the control of the central processor 701.
It is not necessary that the electronic device 700 in this embodiment include all of the components shown in fig. 7.
As shown in fig. 7, a central processing unit 701, also sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, the central processing unit 701 receiving inputs and controlling the operation of the various components of the electronic device 700.
The memory 702, for example, may be one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. And the central processor 701 may execute the program stored in the memory 702 to realize information storage or processing, or the like. The functions of other parts are similar to the prior art and are not described in detail here. The various components of electronic device 700 may be implemented in dedicated hardware, firmware, software, or combinations thereof, without departing from the scope of the invention.
As can be seen from the above-described embodiments, when the value of the matrix intra prediction mode flag (intra _ mip _ flag) is 1, it is determined whether to directly encode the current block using the truncated binary according to the number of candidate elements (nummipand), and the number thereof is only 1 in the case where there are candidate elements. Therefore, the syntax specification of the encoding and the encoding process performed according to the syntax specification are simplified, and the encoding efficiency is improved.
Embodiments of the present invention also provide a computer-readable program, where when the program is executed in a video encoding apparatus or an electronic device, the program causes a computer to execute the video encoding method according to embodiment 1 in the video encoding apparatus or the electronic device.
An embodiment of the present invention further provides a storage medium storing a computer-readable program, where the computer-readable program enables a computer to execute the video encoding method described in embodiment 1 in a video encoding apparatus or an electronic device.
The method of training in a video encoding apparatus described in connection with the embodiments of the present invention may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. For example, one or more of the functional block diagrams and/or one or more combinations of the functional block diagrams illustrated in fig. 5 may correspond to individual software modules of a computer program flow or may correspond to individual hardware modules. These software modules may correspond to the steps shown in fig. 1, respectively. These hardware modules may be implemented, for example, by solidifying these software modules using a Field Programmable Gate Array (FPGA).
A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to the processor such that the processor can read information from, and write information to, the storage medium; or the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The software module may be stored in the memory of the mobile terminal or in a memory card that is insertable into the mobile terminal. For example, if the apparatus (e.g., mobile terminal) employs a relatively large capacity MEGA-SIM card or a large capacity flash memory device, the software module may be stored in the MEGA-SIM card or the large capacity flash memory device.
One or more of the functional block diagrams and/or one or more combinations of the functional block diagrams described with respect to fig. 5 may be implemented as a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any suitable combination thereof designed to perform the functions described herein. One or more of the functional block diagrams and/or one or more combinations of the functional block diagrams described with respect to fig. 5 may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP communication, or any other such configuration.
While the invention has been described with reference to specific embodiments, it will be apparent to those skilled in the art that these descriptions are illustrative and not intended to limit the scope of the invention. Various modifications and alterations of this invention will become apparent to those skilled in the art based upon the spirit and principles of this invention, and such modifications and alterations are also within the scope of this invention.
With respect to the embodiments including the above embodiments, the following remarks are also disclosed:
1. a method of video encoding, the method comprising:
writing the value of a matrix intra-frame prediction mode flag (intra _ mip _ flag) into a code stream;
when the value of the matrix intra prediction mode flag is 1, it is determined whether to encode the current block using truncated binary (truncated binary) according to the number of candidate elements (nummipand), wherein the number of candidate elements is 0 or 1.
2. The method according to supplementary note 1, wherein the method further comprises:
when the number of candidate elements (nummicand) is 0, the current block is encoded using truncated binary (truncated binary).
3. The method according to supplementary note 1, wherein the method further comprises:
when the number of the candidate elements (nummipand) is 1, writing a value of a matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) into a code stream.
4. The method according to supplementary note 3, wherein the method further comprises:
when the number of the candidate elements (nummipand) is 1 and the value of the matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 0, the current block is encoded using a truncated binary excluding the mode represented by the candidate elements.
5. The method according to supplementary note 3 or 4, wherein,
when the candidate element is the same as a predetermined matrix intra prediction mode, a value of a matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 1;
when the candidate element is different from a predetermined matrix intra prediction mode, a value of a matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 0.
6. The method according to supplementary note 1, wherein the method further comprises:
when the value of the matrix intra prediction mode flag is 1, candidate elements and the number thereof are determined.
7. The method of supplementary note 6, wherein the determining candidate elements and the number thereof comprises:
determining an encoding mode of a left side prediction unit or an above prediction unit of the current block as a candidate element and determining the number of the candidate elements as 1 when the left side prediction unit or the above prediction unit of the current block satisfies all of the following conditions:
the left prediction unit or the upper prediction unit is retrievable;
the left-side prediction unit or the above prediction unit is an intra block; and
the left or upper prediction unit and the current block use the same type of matrix intra prediction mode set.

Claims (10)

1. A video encoding device, the device comprising:
a first writing unit for writing a value of a matrix intra prediction mode flag (intra _ mip _ flag) into a code stream; and
a first determination unit for determining whether to encode the current block using truncated binary (truncated binary) according to a number of candidate elements (nummipand) when the value of the matrix intra prediction mode flag is 1, wherein the number of candidate elements is 0 or 1.
2. The apparatus of claim 1, wherein the apparatus further comprises:
a first encoding unit for encoding the current block using a truncated binary when the number of candidate elements (NumMipCand) is 0.
3. The apparatus of claim 1, wherein the apparatus further comprises:
a second writing unit for writing a value of a matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) into a bitstream when the number of candidate elements (nummipand) is 1.
4. The apparatus of claim 3, wherein the apparatus further comprises:
a second encoding unit for encoding the current block using a truncated binary excluding a mode represented by the candidate element when the number of the candidate elements (NumMipCand) is 1 and a value of the matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 0.
5. The apparatus of claim 3 or 4,
when the candidate element is the same as a predetermined matrix intra prediction mode, a value of a matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 1;
when the candidate element is different from a predetermined matrix intra prediction mode, a value of a matrix intra prediction most probable mode flag (intra _ mip _ mpm _ flag) is 0.
6. The apparatus of claim 1, wherein the apparatus further comprises:
a second determination unit for determining candidate elements and the number thereof when the value of the matrix intra prediction mode flag is 1.
7. The apparatus of claim 6, wherein,
the second determination unit determines an encoding mode of a left side prediction unit or an above prediction unit of the current block as a candidate element and determines the number of the candidate elements as 1 when the left side prediction unit or the above prediction unit of the current block satisfies all of the following conditions:
the left prediction unit or the upper prediction unit is retrievable;
the left-side prediction unit or the above prediction unit is an intra block; and
the left or upper prediction unit and the current block use the same type of matrix intra prediction mode set.
8. An electronic device comprising the apparatus of claim 1.
9. A method of video encoding, the method comprising:
writing the value of a matrix intra-frame prediction mode flag (intra _ mip _ flag) into a code stream; and
when the value of the matrix intra prediction mode flag is 1, it is determined whether to encode the current block using truncated binary (truncated binary) according to the number of candidate elements (nummipand), wherein the number of candidate elements is 0 or 1.
10. The method of claim 9, wherein the method further comprises:
when the number of candidate elements (nummicand) is 0, the current block is encoded using truncated binary (truncated binary).
CN201910583559.4A 2019-07-01 2019-07-01 Video coding method and device and electronic equipment Pending CN112188193A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910583559.4A CN112188193A (en) 2019-07-01 2019-07-01 Video coding method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910583559.4A CN112188193A (en) 2019-07-01 2019-07-01 Video coding method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112188193A true CN112188193A (en) 2021-01-05

Family

ID=73914759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910583559.4A Pending CN112188193A (en) 2019-07-01 2019-07-01 Video coding method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112188193A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130099852A (en) * 2012-02-29 2013-09-06 한국전자통신연구원 Methods for encoding and decoding candidate mode list in intra prediction mode
CN103891283A (en) * 2011-12-05 2014-06-25 Lg电子株式会社 Method and device for intra prediction
WO2015131388A1 (en) * 2014-03-07 2015-09-11 Qualcomm Incorporated Simplification of depth intra mode coding in 3d video coding
US20160227211A1 (en) * 2015-01-29 2016-08-04 Canon Kabushiki Kaisha Method and device for encoding or decoding an image comprising encoding of decoding information representing prediction modes
US20160295237A1 (en) * 2013-12-19 2016-10-06 Samsung Electronics Co., Ltd. Video encoding method and device involving intra prediction, and video decoding method and device
CN109845269A (en) * 2016-10-12 2019-06-04 佳稳电子有限公司 Image treatment method, the image-decoding using it and coding method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103891283A (en) * 2011-12-05 2014-06-25 Lg电子株式会社 Method and device for intra prediction
KR20130099852A (en) * 2012-02-29 2013-09-06 한국전자통신연구원 Methods for encoding and decoding candidate mode list in intra prediction mode
US20160295237A1 (en) * 2013-12-19 2016-10-06 Samsung Electronics Co., Ltd. Video encoding method and device involving intra prediction, and video decoding method and device
CN106031176A (en) * 2013-12-19 2016-10-12 三星电子株式会社 Video encoding method and device involving intra prediction, and video decoding method and device
WO2015131388A1 (en) * 2014-03-07 2015-09-11 Qualcomm Incorporated Simplification of depth intra mode coding in 3d video coding
US20160227211A1 (en) * 2015-01-29 2016-08-04 Canon Kabushiki Kaisha Method and device for encoding or decoding an image comprising encoding of decoding information representing prediction modes
CN109845269A (en) * 2016-10-12 2019-06-04 佳稳电子有限公司 Image treatment method, the image-decoding using it and coding method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LIANG ZHAO, XIN ZHAO, XIANG LI, AND SHAN LIU: "Non-CE3: Simplifications for MIP", JOINT VIDEO EXPERTS TEAM (JVET) 15TH MEETING, pages 1 - 3 *
PO-HAN LIN: "Non-CE3: Simplifications of MIP", JOINT VIDEO EXPERTS TEAM (JVET) 15TH MEETING, pages 1 - 3 *

Similar Documents

Publication Publication Date Title
CN109792539B (en) Method and apparatus for binary tree split mode encoding
US9743080B2 (en) Encoding or decoding method and apparatus
WO2017041271A1 (en) Efficient context modeling for coding a block of data
KR101969003B1 (en) Encoding and decoding methods and apparatus
CN112352431B (en) Data encoding method, data decoding method, data encoding equipment, data decoding equipment and storage medium
CN105959797A (en) Video decoding method and digital TV
CN1134896C (en) Arithmetic encoding and decoding of information signal
CN106162192A (en) Process the method and apparatus of video data
CN112887725B (en) Reference frame buffer data compression method, computer device and computer readable storage medium
CN112188193A (en) Video coding method and device and electronic equipment
CN101453643A (en) Quantitative mode, image encoding, decoding method, encoder, decoder and system
CN105554375A (en) Method and device of video preview in digital video recorder
EP3989549A1 (en) Video image processing method and device, and storage medium
WO2011088593A1 (en) Method and device for encoding of an image block and method and device for decoding of an image block
CN116668691A (en) Picture compression transmission method and device and terminal equipment
CN103391440A (en) Binarization encoding processing method and device of syntactic information
CN104093024A (en) Coding and decoding method and device
CN103313048B (en) The method of Self Adaptive Control arithmetic coding context coding mode BIN quantity
CN112019841A (en) Video coding method and device and electronic equipment
CN112449201B (en) Decoding method, encoding method, corresponding devices, electronic equipment and storage medium
CN110545437A (en) coefficient encoding method, coefficient decoding method, electronic device, and medium
KR102412244B1 (en) Method and apparatus for coding and decoding mode information, and electronic device
US20140301655A1 (en) Image decoding methods and image decoding devices
CN113438050B (en) Encoding method, decoding method, encoding device and decoding device
TW201924328A (en) Coding of video and audio with initialization fragments

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210105