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

Video coding method and device and electronic equipment Download PDF

Info

Publication number
CN112019841A
CN112019841A CN201910470686.3A CN201910470686A CN112019841A CN 112019841 A CN112019841 A CN 112019841A CN 201910470686 A CN201910470686 A CN 201910470686A CN 112019841 A CN112019841 A CN 112019841A
Authority
CN
China
Prior art keywords
intra
value
mode flag
flag
sub
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
CN201910470686.3A
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 CN201910470686.3A priority Critical patent/CN112019841A/en
Publication of CN112019841A publication Critical patent/CN112019841A/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/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
    • 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

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 method comprises the steps of firstly writing the value of the most probable mode flag and determining whether to write the value of at least one of the intra-frame brightness multi-reference row index and the intra-frame sub-block division mode flag according to the value, therefore, when the value of the most probable mode flag is 0, the values of the default intra-frame brightness multi-reference row index and the intra-frame sub-block division mode flag are both 0, namely, the values of the intra-frame brightness multi-reference row index and the intra-frame sub-block division mode flag do not need to be explicitly written, so that the syntax specification of coding is simplified, the bit overhead in the coding process is reduced, and the coding speed and the coding efficiency are improved.

Description

Video coding method and device and electronic equipment
Technical Field
The present invention relates to the field of information technologies, and in particular, to a video encoding method and apparatus, and an electronic device.
Background
In the next generation Video Coding standard, i.e. general Video Coding (VVC), in luma Intra mode Coding, two new tools, i.e. multi reference line Intra prediction (MRL) and Intra Sub-block partitioning (ISP), are introduced.
When the coding block adopts multi-reference-row intra prediction, intra sub-block division is not adopted. In addition, both multi-reference row intra prediction and intra sub-block division are used only in modes in a Most Probable Mode (MPM) list (list).
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 flags are defined and represent encoding modes, such as a most probable mode flag (intra _ luma _ mpm _ flag), an intra luminance multi-reference line index (intra _ luma _ ref _ idx), an intra subblock division mode flag (intra _ sub _ partitions _ mode _ flag), and an intra subblock division type flag (intra _ sub _ partitions _ split _ flag).
Also, in the conventional method, when writing a coded syntax specification (syntax specification) and performing coding according to the syntax specification, first, a value of an intra luminance multi-reference line index (intra _ luma _ ref _ idx) is explicitly written into a code stream, and whether or not a value of an intra subblock division mode flag (intra _ sub _ division _ mode _ flag) is explicitly written into the code stream is determined according to the value of the intra luminance multi-reference line index (intra _ luma _ ref _ idx), wherein when the value of the intra luminance multi-reference line index (intra _ luma _ ref _ idx) is a non-zero value, for example, 1, the value of the intra subblock division mode flag (intra _ sub _ division _ mode _ flag) is set to 0 by default, that is, the value is not required to be written; when the value of the intra luminance multi-reference row index (intra _ luma _ ref _ idx) is 0, writing the value of an intra sub-block division mode flag (intra _ sub partitions _ mode _ flag); when the value of the intra luminance multi-reference row index (intra _ luma _ ref _ idx) is 0 and the value of the intra sub-block division mode flag (intra _ sub-partitions _ mode _ flag) is a non-zero value, for example, 1, then the value of the intra sub-block division type flag (intra _ sub-partitions _ split _ flag) is further written, and when the values of the intra luminance multi-reference row index (intra _ luma _ ref _ idx) and the intra sub-block division mode flag (intra _ sub-partitions _ mode _ flag) are both 0, then the value of the most probable mode flag (intra _ luma _ mpm _ flag) is written; when at least one of the values of the intra _ luma _ ref _ idx and the intra _ sub-block partitioning mode flag (intra _ sub _ partitions _ mode _ flag) is a non-zero value, the value of the default most probable mode flag (intra _ luma _ mpm _ flag) is 1, i.e., it is not required to be written into the code stream.
The inventors found that, in the above-described conventional method, it is first necessary to write the values of the intra luminance multi-reference row index (intra _ luma _ ref _ idx) and the intra subblock division mode flag (intra _ sub _ partitions _ mode _ flag), when the intra luminance multi-reference row index (intra _ luma _ ref _ idx) is 0 and the value of the intra sub-block division mode flag (intra _ sub-partitions _ mode _ flag) is a non-zero value, the value of the intra sub-block division mode flag (intra _ sub-partitions _ mode _ flag) is written again, and then, in determining whether to write a value of a most probable mode flag (intra _ luma _ mpm _ flag) according to values of an intra luminance multi-reference row index (intra _ luma _ ref _ idx) and an intra sub-block division mode flag (intra _ sub _ partitionings _ mode _ flag), the syntax specification of the coding is complex, which results in a large bit (bit) overhead in the coding process performed according to the syntax specification, and reduces the coding speed and coding efficiency.
The embodiment of the invention provides a video coding method, a video coding device and electronic equipment, wherein a value of a most probable mode flag (intra _ luma _ mpm _ flag) is written firstly, and whether at least one value of an intra-frame brightness multi-reference line index (intra _ luma _ ref _ idx) and an intra-frame sub-block division mode flag (intra _ sub-blocks _ mode _ flag) is written is determined according to the value, so that when the value of the most probable mode flag is 0, the values of the default intra-frame brightness multi-reference line index and the intra-frame sub-block division mode flag are both 0, that is, the values of the intra-frame brightness multi-reference line index and the intra-frame sub-block division mode flag do not need to be written explicitly, so that the coding syntax specification is simplified, the bit overhead in the coding process is reduced, and the coding speed and the coding efficiency are 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 the most probable mode flag (intra _ luma _ mpm _ flag) into the code stream; and determining whether to write a value of at least one of an intra luminance multi-reference row index (intra _ luma _ ref _ idx) and an intra subblock division mode flag (intra _ sub _ partitions _ mode _ flag) into a code stream according to the value of the most probable mode flag.
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 most probable mode flag (intra _ luma _ mpm _ flag) into the codestream; and a second writing unit for determining whether to write a value of at least one of an intra luminance multi-reference line index (intra _ luma _ ref _ idx) and an intra subblock division mode flag (intra _ sub partitions _ mode _ flag) into a code stream according to the value of the most probable mode flag.
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: since the value of the most probable mode flag (intra _ luma _ mpm _ flag) is written first and it is determined whether to write the value of at least one of the intra luminance multi-reference line index (intra _ luma _ ref _ idx) and the intra sub block division mode flag (intra _ sub partitions _ mode _ flag) according to the value, when the value of the most probable mode flag is 0, the values of the default intra luminance multi-reference line index and the intra sub block division mode flag are both 0, i.e., it is not necessary to explicitly write the values of the intra luminance multi-reference line index and the intra sub block division mode flag again, thereby simplifying the syntax specification of encoding, reducing the bit overhead in the encoding process, and improving the encoding speed and the encoding efficiency.
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 implementing step 102 according to embodiment 1 of the present invention;
fig. 3 is a schematic diagram of an implementation of a video encoding method according to embodiment 1 of the present invention;
fig. 4 is a schematic diagram of a video encoding apparatus according to embodiment 2 of the present invention;
FIG. 5 is a diagram of a second write unit 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 the most probable mode flag (intra _ luma _ mpm _ flag) into the code stream;
step 102: and determining whether to write a value of at least one of an intra luminance multi-reference line index (intra _ luma _ ref _ idx) and an intra subblock division mode flag (intra _ sub _ partitions _ mode _ flag) into a code stream according to the value of the most probable mode flag.
As can be seen from the above embodiments, since the value of the most probable mode flag (intra _ luma _ mpm _ flag) is written first and it is determined whether to write the value of at least one of the intra luminance multi-reference row index (intra _ luma _ ref _ idx) and the intra sub block division mode flag (intra _ sub partitions _ mode _ flag) according to the value, when the value of the most probable mode flag is 0, the values of the default intra luminance multi-reference row index and the intra sub block division mode flag are both 0, i.e., there is no need to explicitly write the values of the intra luminance multi-reference row index and the intra sub block division mode flag again, thereby simplifying the syntax specification of encoding, reducing the bit overhead in the encoding process, and improving the encoding speed and the encoding efficiency.
In the present embodiment, the meaning of each flag may be the same as the existing specification, for example, when the value of the most probable mode flag (intra _ luma _ MPM _ flag) is a non-zero value, it indicates that the intra prediction mode is from the Most Probable Mode (MPM) list, and when the value of the most probable mode flag is 0, it indicates that the intra prediction mode is not from the most probable mode list; when the value of the intra-frame brightness multi-reference row index (intra _ luma _ ref _ idx) is a non-zero value, the method indicates that multi-reference row intra-frame prediction (MRL) is adopted for the coding block, and when the value of the intra-frame brightness multi-reference row index is 0, the method indicates that the multi-reference row intra-frame prediction is not adopted for the coding block; when the value of an intra _ subblock division mode flag (intra _ subblockpartitionings _ mode _ flag) is a non-zero value, the intra subblock division (ISP) is adopted for the coding block, and when the value of the intra subblock division mode flag is 0, the intra subblock division is not adopted for the coding block; in addition, the value of the intra _ sub-block division type flag (intra _ sub _ divisions _ split _ flag) represents a division type (split type) that is employed when intra sub-block division is employed.
In the present embodiment, the existing method may be referred to for the specific methods of multi-reference row intra prediction (MRL) and intra sub-block partitioning (ISP), and the existing method may also be referred to for the contents of the Most Probable Mode (MPM) list, which is not described in detail herein.
In the present embodiment, the value of the most probable mode flag (intra _ luma _ mpm _ flag), and the value of the intra subblock division mode flag (intra _ sub partitions _ mode _ flag) may be predetermined. For example, as shown in fig. 1, prior to step 101, the method may further include:
step 103: the values of the most probable mode flag, the intra luminance multi-reference row index, and the intra subblock division mode flag are determined through prediction calculation.
In this embodiment, the method of prediction calculation may use an existing method, for example, determine the optimal values of the most probable mode flag, the intra luminance multi-reference line index, and the intra sub-block division mode flag by means of search traversal before encoding. In addition, the optimal value of other flags, for example, the optimal value of intra _ sub block division type flag (intra _ sub blocks _ split _ flag) may also be determined by the prediction calculation. The optimal values of the markers obtained by the predictive computation method are the values of the markers used in the determined encoding process.
In this embodiment, writing the value of each mark into the code stream refers to explicitly writing the value of each mark into the code stream, and when it is determined that a value of a certain mark adopts a default value, it indicates that the value of the mark does not need to be explicitly written into the code stream.
In this embodiment, the value of a certain flag is a non-zero value, for example, an integer whose value is non-zero, and the non-zero value is 1, for example. However, the non-zero value is not limited to 1 in the embodiments of the present invention, and may be other values.
Fig. 2 is a schematic diagram of a method for implementing step 102 in embodiment 1 of the present invention. As shown in fig. 2, the method includes:
step 201: when the most probable mode mark value is a non-zero value, writing the value of the intra-frame brightness multi-reference row index into a code stream; and
step 202: when the most probable mode flag has a value of 0, both the default intra luminance multi-reference row index and the intra subblock division mode flag have a value of 0.
In this embodiment, when the value of the most probable mode flag is a non-zero value, step 201 is executed, that is, the value of the intra luma multi-reference line index is written into the code stream, and when the value of the most probable mode flag is 0, although step 202 is shown, it should be noted that step 202 represents a processing manner, which does not need to execute an actual writing process, that is, the values of the intra luma multi-reference line index and the intra subblock division mode flag do not need to be written.
As shown in fig. 2, in the case that step 201 is performed, the method may further include:
step 203: when the most probable mode mark value is a non-zero value, writing the value of the intra-frame brightness multi-reference row index into a code stream;
step 204: when the value of the most probable mode mark is a non-zero value and the value of the intra-frame brightness multi-reference row index is 0, writing the value of the intra-frame sub-block division mode mark into a code stream; and
step 205: when the value of the most probable mode flag is a non-zero value and the value of the intra luma multi-reference row index is a non-zero value, the value of the default intra sub-block division mode flag is 0.
In this embodiment, step 205 is similar to step 202, which represents a process without performing the actual writing process.
As shown in fig. 2, in the case that step 204 is performed, the method may further include:
step 206: when the value of the intra sub-block partition mode index is a non-zero value, writing the value of an intra sub-block partition type flag (intra _ sub partitions _ split _ flag) into the code stream.
In addition, when the value of the intra subblock division mode index is 0, other processes are not performed.
Fig. 3 is a schematic diagram of an implementation of the video encoding method according to embodiment 1 of the present invention. As shown in fig. 3, the method includes:
step 301: writing the value of the most probable mode mark into the code stream;
step 302: judging whether the value of the most probable mode flag is 0; when the determination result is "yes", the process proceeds to step 303, and when the determination result is "no", the process proceeds to step 304:
step 303: the values of the default intra-frame brightness multi-reference line index and the intra-frame sub-block division mode flag are both 0;
step 304: writing the value of the intra-frame brightness multi-reference row index into a code stream;
step 305: judging whether the value of the intra-frame brightness multi-reference row index is 0 or not; when the judgment result is "no", the step 306 is entered, and when the judgment result is "yes", the step 307 is entered;
step 306: the value of the default intra-frame subblock division mode flag is 0;
step 307: writing the value of the intra-frame subblock division mode mark into a code stream;
step 308: judging whether the value of the intra-frame subblock division mode flag is 0 or not; when the judgment result is yes, ending the process, and when the judgment result is no, entering step 309;
step 309: and writing the value of the intra-frame subblock division type mark into a code stream.
In this embodiment, for example, in addition to the steps shown in fig. 1 to fig. 3, the video encoding method may further include other steps, for example, a specific encoding process, and these steps may refer to an existing method and are not specifically described here.
As can be seen from the above embodiments, since the value of the most probable mode flag (intra _ luma _ mpm _ flag) is written first and it is determined whether to write the value of at least one of the intra luminance multi-reference row index (intra _ luma _ ref _ idx) and the intra sub block division mode flag (intra _ sub partitions _ mode _ flag) according to the value, when the value of the most probable mode flag is 0, the values of the default intra luminance multi-reference row index and the intra sub block division mode flag are both 0, i.e., there is no need to explicitly write the values of the intra luminance multi-reference row index and the intra sub block division mode flag again, thereby simplifying the syntax specification of encoding, reducing the bit overhead in the encoding process, and improving the encoding speed and the encoding efficiency.
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. 4 is a schematic diagram of a video encoding apparatus according to embodiment 2 of the present invention. As shown in fig. 4, the video encoding apparatus 400 includes:
a first writing unit 401 for writing a value of a most probable mode flag (intra _ luma _ mpm _ flag) into the codestream; and
a second writing unit 402 for determining whether to write a value of at least one of an intra luminance multi-reference line index (intra _ luma _ ref _ idx) and an intra subblock division mode flag (intra _ sub partitions _ mode _ flag) into the code stream according to a value of a most probable mode flag.
In this embodiment, as shown in fig. 4, the video encoding apparatus 400 may further include:
a prediction unit 403 for determining values of a most probable mode flag, an intra luminance multi-reference row index, and an intra subblock division mode flag through prediction calculation.
Fig. 5 is a schematic diagram of a second write unit according to embodiment 2 of the present invention. As shown in fig. 5, the second writing unit 402 includes:
and a third writing unit 501, configured to write the value of the intra luminance multi-reference row index into the code stream when the value of the most probable mode flag is a non-zero value.
In this embodiment, the third writing unit 501 is further configured to default the value of the intra sub-block division mode flag to 0 when the value of the most probable mode flag is a non-zero value and the value of the intra luminance multi-reference row index is a non-zero value.
In this embodiment, as shown in fig. 5, the second writing unit 402 may further include:
a fourth writing unit 502 for writing the value of the intra sub-block division mode flag into the code stream when the value of the most probable mode flag is a non-zero value and the value of the intra luminance multi-reference row index is 0; and
a fifth writing unit 503, configured to write a value of an intra _ sub-block division type flag (intra _ sub-divisions _ split _ flag) into the code stream when the value of the intra sub-block division mode index is a non-zero value.
In addition, in this embodiment, the second writing unit 402 is further configured to, when the value of the most probable mode flag is 0, both the default intra luminance multi-reference row index and the intra sub-block division mode flag have a value of 0.
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, connection relationships between the respective components or modules are only exemplarily shown in fig. 4 and 5, but it should be apparent to those skilled in the art that various related technologies, such as bus connection, may be employed. 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 embodiments, since the value of the most probable mode flag (intra _ luma _ mpm _ flag) is written first and it is determined whether to write the value of at least one of the intra luminance multi-reference row index (intra _ luma _ ref _ idx) and the intra sub block division mode flag (intra _ sub partitions _ mode _ flag) according to the value, when the value of the most probable mode flag is 0, the values of the default intra luminance multi-reference row index and the intra sub block division mode flag are both 0, i.e., there is no need to explicitly write the values of the intra luminance multi-reference row index and the intra sub block division mode flag again, thereby simplifying the syntax specification of encoding, reducing the bit overhead in the encoding process, and improving the encoding speed and the encoding efficiency.
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 the most probable mode flag (intra _ luma _ mpm _ flag) into the code stream; and determining whether to write a value of at least one of an intra luminance multi-reference row index (intra _ luma _ ref _ idx) and an intra subblock division mode flag (intra _ sub _ partitions _ mode _ flag) into a code stream according to the value of the most probable mode flag.
For example, determining whether to write a value of at least one of an intra luminance multi-reference row index (intra _ luma _ ref _ idx) and an intra subblock division mode flag (intra _ sub _ partitions _ mode _ flag) into a code stream according to a value of the most probable mode flag includes: and when the value of the most probable mode mark is a non-zero value, writing the value of the intra-frame brightness multi-reference row index into a code stream. For example, it also includes: when the value of the most probable mode flag is a non-zero value and the value of the intra luminance multi-reference row index is 0, writing the value of the intra sub-block division mode flag into a code stream; and writing the value of an intra _ sub-block division type flag (intra _ sub-divisions _ split _ flag) into the code stream when the value of the intra sub-block division mode index is a non-zero value.
For example, when the value of the most probable mode flag is a non-zero value and the value of the intra luma multi-reference row index is a non-zero value, the value of the intra sub-block division mode flag is defaulted to 0.
For example, determining whether to write a value of at least one of an intra luminance multi-reference row index (intra _ luma _ ref _ idx) and an intra subblock division mode flag (intra _ sub _ partitions _ mode _ flag) into a code stream according to a value of the most probable mode flag includes: when the most probable mode flag has a value of 0, it is default that both the intra luminance multi-reference row index and the intra subblock division mode flag have a value of 0.
For example, the central processor 701 may also be configured to: determining values of the most probable mode flag, the intra luma multi-reference row index, and an intra subblock division mode flag through a prediction calculation.
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 embodiments, since the value of the most probable mode flag (intra _ luma _ mpm _ flag) is written first and it is determined whether to write the value of at least one of the intra luminance multi-reference row index (intra _ luma _ ref _ idx) and the intra sub block division mode flag (intra _ sub partitions _ mode _ flag) according to the value, when the value of the most probable mode flag is 0, the values of the default intra luminance multi-reference row index and the intra sub block division mode flag are both 0, i.e., there is no need to explicitly write the values of the intra luminance multi-reference row index and the intra sub block division mode flag again, thereby simplifying the syntax specification of encoding, reducing the bit overhead in the encoding process, and improving the encoding speed and the encoding efficiency.
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. 4 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. 4 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. 4 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 the most probable mode flag (intra _ luma _ mpm _ flag) into the code stream; and
and determining whether to write a value of at least one of an intra luminance multi-reference line index (intra _ luma _ ref _ idx) and an intra subblock division mode flag (intra _ sub _ partitions _ mode _ flag) into a code stream according to the value of the most probable mode flag.
2. The method of supplementary note 1, wherein determining whether to write a value of at least one of an intra luminance multi-reference line index (intra _ luma _ ref _ idx) and an intra subblock division mode flag (intra _ sub partitions _ mode _ flag) into a code stream according to a value of the most probable mode flag comprises:
and when the value of the most probable mode mark is a non-zero value, writing the value of the intra-frame brightness multi-reference row index into a code stream.
3. The method according to supplementary note 2, wherein the determining whether to write a value of at least one of an intra luminance multi-reference line index (intra _ luma _ ref _ idx) and an intra subblock division mode flag (intra _ sub partitions _ mode _ flag) into the code stream according to the value of the most probable mode flag further comprises:
when the value of the most probable mode flag is a non-zero value and the value of the intra luminance multi-reference row index is 0, writing the value of the intra sub-block division mode flag into a code stream; and
and when the value of the intra sub-block division mode index is a non-zero value, writing the value of an intra sub-block division type flag (intra _ sub-divisions _ split _ flag) into the code stream.
4. The method according to supplementary note 2, wherein,
defaulting the intra sub-block partitioning mode flag to a value of 0 when the most probable mode flag value is a non-zero value and the intra luma multi-reference row index value is a non-zero value.
5. The method of supplementary note 1, wherein determining whether to write a value of at least one of an intra luminance multi-reference line index (intra _ luma _ ref _ idx) and an intra subblock division mode flag (intra _ sub partitions _ mode _ flag) into a code stream according to a value of the most probable mode flag comprises:
when the most probable mode flag has a value of 0, it is default that both the intra luminance multi-reference row index and the intra subblock division mode flag have a value of 0.
6. The method according to supplementary note 1, wherein the method further comprises:
determining values of the most probable mode flag, the intra luma multi-reference row index, and an intra subblock division mode flag through a prediction calculation.
7. The method according to any one of supplementary notes 1-6, wherein,
when the most probable mode flag has a value of non-zero, it indicates that the intra prediction mode is from a Most Probable Mode (MPM) list, and when the most probable mode flag has a value of 0, it indicates that the intra prediction mode is not from the most probable mode list;
when the value of the intra-frame brightness multi-reference row index is a non-zero value, the multi-reference row intra-frame prediction (MRL) is adopted for the coding block, and when the value of the intra-frame brightness multi-reference row index is 0, the multi-reference row intra-frame prediction is not adopted for the coding block;
when the value of the intra-frame subblock division mode flag is a non-zero value, the intra-frame subblock division (ISP) is adopted for the coding block, and when the value of the intra-frame subblock division mode flag is 0, the intra-frame subblock division is not adopted for the coding block.

Claims (10)

1. A video encoding device, the device comprising:
a first writing unit for writing a value of a most probable mode flag into the code stream; and
and a second writing unit for determining whether to write a value of at least one of an intra luminance multi-reference line index and an intra subblock division mode flag into a code stream according to the value of the most probable mode flag.
2. The apparatus of claim 1, wherein the second writing unit comprises:
a third writing unit for writing the value of the intra luminance multi-reference row index into a code stream when the value of the most probable mode flag is a non-zero value.
3. The apparatus of claim 2, wherein the second writing unit further comprises:
a fourth writing unit for writing the value of the intra sub-block division mode flag into a code stream when the value of the most probable mode flag is a non-zero value and the value of the intra luminance multi-reference row index is 0; and
and a fifth writing unit, configured to write the value of the intra sub-block division type flag into the code stream when the value of the intra sub-block division mode index is a non-zero value.
4. The apparatus of claim 2, wherein,
the third write unit is also for defaulting the value of the intra sub-block partition mode flag to 0 when the value of the most probable mode flag is a non-zero value and the value of the intra luma multi-reference row index is a non-zero value.
5. The apparatus of claim 1, wherein,
the second writing unit is configured to default that both the intra luminance multi-reference row index and the intra subblock division mode flag have a value of 0 when the most probable mode flag has a value of 0.
6. The apparatus of claim 1, wherein the apparatus further comprises:
a prediction unit for determining values of the most probable mode flag, the intra luma multi-reference line index, and an intra subblock division mode flag through prediction calculation.
7. The apparatus of any one of claims 1-6,
when the value of the most probable mode flag is a non-zero value, the most probable mode flag indicates that the intra-prediction mode is from a most probable mode list, and when the value of the most probable mode flag is 0, the most probable mode flag indicates that the intra-prediction mode is not from the most probable mode list;
when the value of the intra-frame brightness multi-reference row index is a non-zero value, the multi-reference row intra-frame prediction is adopted for the coding block, and when the value of the intra-frame brightness multi-reference row index is 0, the multi-reference row intra-frame prediction is not adopted for the coding block;
when the value of the intra-frame subblock division mode flag is a non-zero value, the intra-frame subblock division is adopted for the coding block, and when the value of the intra-frame subblock division mode flag is 0, the intra-frame subblock division is not adopted for the coding block.
8. An electronic device comprising the apparatus of claim 1.
9. A method of video encoding, the method comprising:
writing the value of the most probable mode mark into the code stream; and
and determining whether to write the value of at least one of the intra-frame brightness multi-reference line index and the intra-frame sub-block division mode mark into the code stream according to the value of the most probable mode mark.
10. The method of claim 9, wherein determining whether to write a value of at least one of an intra luma multiple reference line index and an intra subblock division mode flag into a bitstream according to a value of the most probable mode flag comprises:
and when the value of the most probable mode mark is a non-zero value, writing the value of the intra-frame brightness multi-reference row index into a code stream.
CN201910470686.3A 2019-05-31 2019-05-31 Video coding method and device and electronic equipment Pending CN112019841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910470686.3A CN112019841A (en) 2019-05-31 2019-05-31 Video coding method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910470686.3A CN112019841A (en) 2019-05-31 2019-05-31 Video coding method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112019841A true CN112019841A (en) 2020-12-01

Family

ID=73501549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910470686.3A Pending CN112019841A (en) 2019-05-31 2019-05-31 Video coding method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112019841A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724493A (en) * 2011-01-18 2012-10-10 清华大学 Coding and decoding methods of intra-frame prediction modes based on image blocks and codec
KR20130099852A (en) * 2012-02-29 2013-09-06 한국전자통신연구원 Methods for encoding and decoding candidate mode list in intra prediction mode
CN103501440A (en) * 2007-04-12 2014-01-08 汤姆森特许公司 Methods and apparatus for fast geometric mode decision in a video encoder
US20140334543A1 (en) * 2012-01-30 2014-11-13 Industry-University Cooperation Foundation Korea Aerospace University Intra prediction mode encoding/decoding method and apparatus
CN108933941A (en) * 2017-05-26 2018-12-04 富士通株式会社 Image encoding method and device and picture decoding method and device
CN109479129A (en) * 2016-07-18 2019-03-15 韩国电子通信研究院 The recording medium of image coding/decoding method and device and stored bits stream
WO2019078629A1 (en) * 2017-10-18 2019-04-25 한국전자통신연구원 Image encoding/decoding method and device, and recording medium having bitstream stored therein
US20190166370A1 (en) * 2016-05-06 2019-05-30 Vid Scale, Inc. Method and system for decoder-side intra mode derivation for block-based video coding

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501440A (en) * 2007-04-12 2014-01-08 汤姆森特许公司 Methods and apparatus for fast geometric mode decision in a video encoder
CN102724493A (en) * 2011-01-18 2012-10-10 清华大学 Coding and decoding methods of intra-frame prediction modes based on image blocks and codec
US20140334543A1 (en) * 2012-01-30 2014-11-13 Industry-University Cooperation Foundation Korea Aerospace University Intra prediction mode encoding/decoding method and apparatus
KR20130099852A (en) * 2012-02-29 2013-09-06 한국전자통신연구원 Methods for encoding and decoding candidate mode list in intra prediction mode
US20190166370A1 (en) * 2016-05-06 2019-05-30 Vid Scale, Inc. Method and system for decoder-side intra mode derivation for block-based video coding
CN109479129A (en) * 2016-07-18 2019-03-15 韩国电子通信研究院 The recording medium of image coding/decoding method and device and stored bits stream
CN108933941A (en) * 2017-05-26 2018-12-04 富士通株式会社 Image encoding method and device and picture decoding method and device
WO2019078629A1 (en) * 2017-10-18 2019-04-25 한국전자통신연구원 Image encoding/decoding method and device, and recording medium having bitstream stored therein

Similar Documents

Publication Publication Date Title
JP6316785B2 (en) Pulse coding modulation of video coding and method of palette coding
KR102281830B1 (en) Image prediction method and device
CN103220508B (en) Coding and decoding method and device
WO2020034921A1 (en) Motion estimation method, device, electronic apparatus, and computer readable storage medium
JP2017528987A (en) Predictive coding, decoding method, corresponding encoder, decoder and electronic device
JP6310152B2 (en) Pallet table prediction and signaling method and apparatus
JP2017519467A5 (en)
EP3410710A1 (en) Encoding device, decoding device, and program
KR20070037248A (en) Image encoding apparatus and method, image decoding apparatus and method, and display driving circuit and method employing the same
AU2013211321A1 (en) Encoding and decoding methods and apparatuses
US20060109909A1 (en) Decision mechanism for partition types of macro block
CN114946182A (en) Depth intra predictor for generating side information
EP3509303A1 (en) Interframe predictive coding method and device
CN107431822A (en) Image coding/decoding method and equipment
CN106162192A (en) Process the method and apparatus of video data
EP2731342A1 (en) Electronic device and method for splitting image
CN112019841A (en) Video coding method and device and electronic equipment
CN111654696B (en) Intra-frame multi-reference-line prediction method and device, storage medium and terminal
CN101267567A (en) Inside-frame prediction, decoding and coding method and device
US11394960B2 (en) Virtual temporal affine candidates
KR20150135495A (en) Methods and devices for coding and decoding depth information, and video processing and playing device
CN109660806A (en) A kind of coding method and device
CN112188193A (en) Video coding method and device and electronic equipment
WO2012011748A2 (en) Method and apparatus for lossless encoding and decoding based on context
CN103391440A (en) Binarization encoding processing method and device of syntactic information

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
AD01 Patent right deemed abandoned

Effective date of abandoning: 20240507

AD01 Patent right deemed abandoned