Video encoding and decoding method and device, electronic device and method for processing code stream
By adopting geometric partition mode and intra-frame block copying technology in video coding, combined with intra-frame and inter-frame prediction modes, the problem of low intra-frame coding efficiency in the existing technology is solved, and more efficient video data compression and transmission are achieved.
Patent Information
- Application Number
- CN202280008650.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-07-29
- Filing Date
- 2022-08-01
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-08-01
AI Technical Summary
Existing video coding technology lacks an efficient prediction mode in intra-frame coding, resulting in low coding efficiency, especially when processing complex video content, it is difficult to effectively utilize the spatial redundancy within and between frames.
Use Geometric Partitioning Mode (GPM) combined with Intra-frame Block Copy (IBC) to optimize intra- and intra-frame by partitioning video blocks into geometrically shaped partitions and using a combination of intra-frame prediction, inter-frame prediction and intra-frame block copy. prediction mode to improve coding efficiency.
The coding efficiency of video encoding is improved, redundant data is reduced, storage and transmission bandwidth requirements are reduced, and the fidelity of video quality is enhanced.
Smart Images

Figure CN116671102B_ABST
Abstract
Description
[0001] Incorporation by Reference
[0002] This application claims priority to U.S. Patent Application No. 17 / 877,812, filed on July 29, 2022, for "GEOMETRIC PARTITION MODE WITH INTRA BLOCK COPY," which claims priority to U.S. Provisional Patent Application No. 63 / 228,329, filed on August 2, 2021, for "GEOMETRIC PARTITION MODE WITH INTRA BLOCK COPY." The disclosures of the prior applications are incorporated herein by reference in their entirety. Technical Field
[0003] The present application relates to video coding and decoding, and in particular to a video decoding method and device, a video encoding method and device, and an electronic device. Background Art
[0004] The background description provided herein is intended to generally present the context of the present application. To the extent described in this background section, the work of the inventors currently named, as well as various aspects of the description that may not have the qualification of being prior art at the time of filing this application, are neither explicitly nor implicitly considered to be prior art of the present application.
[0005] Uncompressed digital video may include a series of pictures, each picture having a certain spatial dimension, for example, 1920×1080 luma samples and associated chroma samples. The series of pictures may have a fixed or variable picture rate (also colloquially referred to as a frame rate), for example, 60 pictures per second or 60 Hertz (Hz). Uncompressed video has specific requirements for bit rate. For example, 1080p60 4:2:0 video with 8 bits per sample (1920×1080 luma sample resolution at 60 Hz frame rate) requires a bandwidth of nearly 1.5 Gbit / s. One hour of such video requires more than 600 GB of storage space.
[0006] One purpose of video encoding and decoding can be to reduce redundancy in the input video signal by compression. Compression can help reduce the bandwidth and / or storage space requirements mentioned above, in some cases by two or more orders of magnitude. Both lossless compression and lossy compression and combinations thereof can be used for video encoding and decoding. Lossless compression refers to a technique that can reconstruct an exact copy of the original signal from the compressed original signal. When lossy compression is used, the reconstructed signal may not be exactly the same as the original signal, but the distortion between the original signal and the reconstructed signal is small enough that the reconstructed signal can be used for the intended application. Lossy compression is widely used in video. The amount of distortion allowed by lossy compression depends on the application; for example, consumer users of certain streaming applications can tolerate higher distortion than users of television distribution applications. The achievable compression ratio can reflect that the higher the allowable / tolerable distortion, the higher the compression ratio that can be produced.
[0007] Video encoders and decoders may use several broad categories of techniques including, for example, motion compensation, transforms, quantization, and entropy coding.
[0008] Video coding techniques may include intra-coding techniques. In intra-coding techniques, sample values are represented without reference to samples or other data in previously reconstructed reference pictures. In some video coding techniques, a picture is spatially divided into blocks of samples. When all blocks of samples are encoded using intra-mode, the picture may be an intra-picture. Intra-pictures and their derivatives, such as pictures refreshed by independent decoders, may be used to reset the state of a decoder and may therefore be used as the first picture in an encoded video stream and video session, or as a still picture. Samples of an intra-block may be transformed, and transform coefficients may be quantized prior to entropy coding. Intra-prediction may be a technique for minimizing sample values in a pre-transform domain. In some cases, the smaller the transformed DC value and the smaller the AC coefficient, the fewer bits are required to represent the entropy-coded block given a quantization step size.
[0009] Traditional intra-frame coding techniques, such as the known MPEG-2 coding techniques, do not use intra-frame prediction. However, some newer video compression techniques include techniques that attempt to use, for example, neighboring sample data and / or metadata obtained during the encoding and / or decoding of spatially adjacent and preceding data blocks in decoding order. Such techniques are therefore referred to as "intra-frame prediction" techniques. Note that, at least in some cases, intra-frame prediction uses only reference data in the current picture being reconstructed, and not reference data in reference pictures.
[0010] Intra-frame prediction can take many forms. When more than one such technique can be used for a given video coding technique, an intra-frame prediction mode can be used to encode the technique used. In some cases, some modes have sub-modes and / or parameters, which can be encoded separately or can be included in the mode codeword. Which codeword is used for a given mode / sub-mode and / or parameter combination will affect the coding efficiency gain through intra-frame prediction, as will the entropy coding technique used to translate the codeword into the bitstream.
[0011] The H.264 standard introduced a mode of intra-frame prediction, which was improved in the H.265 standard and further improved in newer coding techniques, such as the Joint Exploration Model (JEM), Versatile Video Coding (VVC), Benchmark Sets (BMS), etc. The prediction sub-block can be formed using the values of neighboring samples belonging to samples that are already available. The sample values of the neighboring samples are copied to the prediction sub-block in one direction. The reference to the direction used can be encoded into the bitstream, or it can be predicted itself.
[0012] refer to Figure 1A , depicted at its lower right is a known subset of 9 predictor directions among the 33 possible predictor directions (corresponding to the 33 angular modes of the 35 intra-frame modes) of the H.265 standard. The convergence point (101) of the arrows represents the sample being predicted. The arrows represent the direction in which the sample is predicted. For example, arrow (102) indicates that sample (101) is predicted based on one or more samples in the upper right corner at an angle of 45 degrees to the horizontal axis. Similarly, arrow (103) indicates that sample (101) is predicted based on one or more samples in the lower left corner at an angle of 22.5 degrees to the horizontal axis.
[0013] Still refer to Figure 1A As shown, Figure 1A Depicted at the upper left of is a square block (104) having 4×4 samples (indicated by a bold dashed line). The square block (104) includes 16 samples, each of which is labeled with an "S", its position in the Y dimension (e.g., row index), and its position in the X dimension (e.g., column index). For example, sample S21 is the second sample in the Y dimension (counting from top to bottom) and the first sample in the X dimension (counting from left to right). Similarly, sample S44 is the fourth sample in both the X and Y dimensions in the block (104). Because the size of the block is 4×4 samples, S44 is in its lower right corner. Figure 1AReference samples are further shown, following a similar numbering scheme. Reference samples are labeled with R, their Y position (e.g., row index) and X position (e.g., column index) relative to the block (104). In the H.264 standard and the H.265 standard, prediction samples are adjacent to the block being reconstructed; therefore, negative values do not need to be used.
[0014] Intra-picture prediction can be performed by appropriately copying reference sample values of adjacent samples according to the prediction direction indicated by the signal. For example, assume that the encoded video bitstream contains signaling, and for the block, the signaling indicates a prediction direction consistent with arrow (102), that is, the samples in the block are predicted according to one or more reference samples in the upper right corner at an angle of 45 degrees to the horizontal direction. In this case, samples S41, S32, S23, and S14 are predicted based on the same reference sample R05. Sample S44 is predicted based on reference sample R08.
[0015] In some cases, the values of multiple reference samples may be combined, such as by interpolation, in order to calculate one reference sample; in particular when the direction is not divisible by 45 degrees.
[0016] As video coding technology develops, the number of possible directions is also increasing. In the H.264 standard (2003), 9 different directions can be represented. In the H.265 standard (2013), it increased to 33 directions. At the time of the invention of this application, JEM / VVC / BMS can support up to 65 directions. Some experiments have been conducted to identify the most likely directions, and some entropy coding techniques use a small number of bits to represent these most likely directions, accepting a certain cost for less likely directions. In addition, sometimes these directions themselves can be predicted based on the adjacent directions used by adjacent decoded blocks.
[0017] Figure 1B A diagram (110) depicting 65 intra prediction directions according to JEM is shown to illustrate that the number of prediction directions increases over time.
[0018] The mapping of the intra-prediction direction bits used to represent directions in the coded video bitstream may vary from one video coding technique to another; for example, it may range from a simple direct mapping of the prediction direction of the intra-prediction mode to a codeword, to complex adaptive schemes involving most likely modes and similar techniques. However, in all of these cases, some directions are statistically less likely to occur in the video content than others. Since the goal of video compression is to reduce redundancy, these less likely directions are represented with more bits than more likely directions in better performing video coding techniques.
[0019] Video encoding and decoding may be performed using inter-picture prediction with motion compensation. Motion compensation may be a lossy compression technique and may involve the following technique: a block of sample data from a previously reconstructed picture or a portion thereof (reference picture), after being spatially shifted in a direction indicated by a motion vector (hereafter MV), is used to predict a newly reconstructed picture or picture partition. In some cases, the reference picture may be the same as the picture currently being reconstructed. The MV may have two dimensions, X and Y, or three dimensions, the third dimension indicating the reference picture in use (the latter may indirectly be the temporal dimension).
[0020] In some video compression techniques, the MV applicable to a certain sample data region can be predicted based on other MVs, for example, based on the MV associated with another sample data region that is spatially adjacent to the region being reconstructed and that precedes the MV in decoding order. Doing so can substantially reduce the amount of data required to encode the MV, thereby eliminating redundancy and improving compression. For example, MV prediction can work effectively because when encoding an input video signal from a camera (called natural video), there is a statistical probability that a region larger than the region applicable to a single MV moves in a similar direction, and therefore, similar motion vectors derived from MVs of adjacent regions can be used for prediction in some cases. This makes the MV found in a given region similar or identical to the MV predicted from the surrounding MVs, and after entropy coding, the number of bits representing the MV can be less than the number of bits that would be used if the MV was directly encoded. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., MV) derived from the original signal (i.e., sample stream). In other cases, MV prediction itself may be lossy, for example due to rounding errors when calculating predictors based on several surrounding MVs.
[0021] Various MV prediction mechanisms are described in H.265 / HEVC (ITU-T H.265 Recommendation, "High Efficiency Video Coding", December 2016). Among the various MV prediction mechanisms provided by H.265, this application describes a technique called "spatial merging".
[0022] As shown in reference to Figure 2, the current block (201) includes samples found by the encoder during motion search that can be predicted from a previous block of the same size as the current block (already spatially shifted). The MV is not directly encoded, but can be derived from metadata associated with one or more reference pictures (e.g., the most recent (in decoding order) reference picture) using MVs associated with any of the five surrounding samples (denoted as A0, A1, B0, B1, B2 (202 to 206, respectively). In H.265, MV prediction can use the same reference picture as the reference picture used by its neighboring blocks. Summary of the invention
[0023] Aspects of the present disclosure provide methods and apparatus for video encoding / decoding.In some examples, an apparatus for video decoding includes a processing circuit.
[0024] According to one aspect of the present disclosure, a method for video decoding performed in a video decoder is provided. In the method, encoded information of a current block in a current picture of a video can be received from an encoded video code stream. Based on a geometric partition mode (GPM), the current block is partitioned into a first partition and a second partition. In response to determining that the current block is encoded in a geometric partition mode, based on at least one flag associated with a prediction type, a first prediction type for a first partition of the current block and a second prediction type for a second partition of the current block can be determined, wherein the prediction type includes one of intra-frame prediction, inter-frame prediction, and intra-frame block copy (IBC), and each of the first prediction type and the second prediction type can be one of intra-frame prediction, inter-frame prediction, and IBC. Based on the determined first prediction type, a first prediction mode for the first partition of the current block can be determined. Based on the determined second prediction type, a second prediction mode for the second partition of the current block can be determined. Based on the first prediction mode, the first partition of the current block can be reconstructed, and based on the second prediction mode, the second partition of the current block can be reconstructed.
[0025] In an example, to determine the first prediction type, based on a first flag of the at least one flag being true, the first prediction type for the first partition of the current block may be determined as intra prediction. In an example, based on a first flag of the at least one flag being false and a second flag of the at least one flag being true, the first prediction type for the first partition of the current block may be determined as IBC. In another example, based on the first flag being false and the second flag being false, the first prediction type for the first partition of the current block may be determined as inter prediction.
[0026] To determine the first prediction mode, in response to a first flag of the at least one flag being true, based on a first syntax element included in the encoded information, an intra prediction mode for a first partition of the current block may be determined. In response to a second flag of the at least one flag being true, based on a second syntax element included in the encoded information, a block vector of an IBC for the first partition of the current block may be determined. In response to the first flag of the at least one flag being false and the second flag of the at least one flag being false, based on a third syntax element included in the encoded information, an inter prediction mode for the first partition of the current block may be determined.
[0027] In an example, a first prediction mode for a first partition may be determined to be associated with one of a first intra prediction mode and a first block vector of the IBC. A second prediction mode for a second partition may be determined to be associated with one of a second intra prediction mode and a second block vector of the IBC.
[0028] In an example, a first prediction mode for a first partition may be determined to be associated with one of a first inter prediction mode and a first block vector of the IBC. A second prediction mode for a second partition may be determined to be associated with one of a second inter prediction mode and a second block vector of the IBC.
[0029] In response to the first prediction type being IBC and the second prediction type being IBC, samples along a boundary between the first partition and the second partition may not be mixed.
[0030] In some embodiments, the encoded information may include an intra prediction bit indicating whether one of the first prediction type and the second prediction type is an intra prediction. The encoded information may include an inter prediction bit indicating whether one of the first prediction type and the second prediction type is an inter prediction. The encoded information may also include an IBC prediction bit indicating whether one of the first prediction type and the second prediction type is an IBC prediction.
[0031] In the method, in response to the first prediction type being IBC, the first partition of the current block may be predicted by a merge mode of IBC.
[0032] In an embodiment, in response to the motion storage type being 0 or 1, one of the motion vector of inter-frame prediction and the block vector of IBC may be stored in units of 4×4 pixels. In another embodiment, in response to the motion storage type being 2, in an example, the first motion vector associated with the first partition and the second motion vector associated with the second partition may be stored in units of 4×4 pixels. In another example, the motion vector associated with the first partition and the block vector associated with the second partition may be stored in units of 4×4 pixels. In yet another example, one of the first block vector associated with the first partition and the second block vector associated with the second partition may be stored in units of 4×4 pixels.
[0033] In response to the first prediction type being IBC, a first block vector associated with the first partition may be determined as a first merge candidate in the IBC merge list. In response to the second prediction type being IBC, a second block vector associated with the second partition may be determined as a second merge candidate in the IBC merge list.
[0034] According to another aspect of the present disclosure, a device is provided. The device includes a processing circuit. The processing circuit can be configured to perform any one or a combination of methods for video encoding / decoding.
[0035] Aspects of the present disclosure also provide a non-transitory computer-readable medium storing instructions that, when executed by a computer for video decoding, cause the computer to perform any one or a combination of the methods for video encoding / decoding. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Other features, properties, and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings, in which:
[0037] Figure 1A is a schematic diagram of an exemplary subset of intra prediction modes.
[0038] Figure 1B is a diagram of exemplary intra prediction directions.
[0039] FIG. 2 is a schematic diagram of spatial merging candidates of a current block and its surroundings in one example.
[0040] Figure 3 is a schematic diagram of a simplified block diagram of a communication system (300) according to an embodiment.
[0041] Figure 4 is a schematic diagram of a simplified block diagram of a communication system (400) according to an embodiment.
[0042] Figure 5 is a schematic diagram of a simplified block diagram of a decoder according to an embodiment.
[0043] Figure 6 is a schematic diagram of a simplified block diagram of an encoder according to an embodiment.
[0044] Figure 7 A block diagram of an encoder according to another embodiment is shown.
[0045] Figure 8 A block diagram of a decoder according to another embodiment is shown.
[0046] Fig. 9 Exemplary positions of spatial merging candidates according to another embodiment are shown.
[0047] Fig.10 An exemplary redundancy check of spatial merging candidates is shown.
[0048] Fig.11 A schematic diagram showing motion vector scaling for temporal merging candidates according to an embodiment is shown.
[0049] Fig.12 Exemplary candidate positions of temporal merging candidates according to an embodiment are shown.
[0050] Fig.13 An exemplary angular distribution of a geometric partitioning pattern (GPM) is shown according to an embodiment.
[0051] Fig.14 Exemplary partition lines of a GPM are shown, according to an embodiment.
[0052] Fig.15A A first schematic diagram of a GPM mode for intra-coded frames is shown.
[0053] Fig. 15B A second schematic diagram is shown of the GPM mode for intra-coded frames.
[0054] Fig. 15C A third schematic diagram shows a GPM mode for intra-coded frames.
[0055] Fig.16 A flow chart outlining an exemplary decoding process according to some embodiments of the present disclosure is shown.
[0056] Fig.17 A flowchart outlining an exemplary encoding process according to some embodiments of the present disclosure is shown.
[0057] Fig.18 is a schematic diagram of a computer system according to an embodiment. DETAILED DESCRIPTION
[0058] Figure 3A simplified block diagram of a communication system (300) according to an embodiment disclosed in the present application is illustrated. The communication system (300) includes a plurality of terminal devices, which can communicate with each other through, for example, a network (350). For example, the communication system (300) includes a first pair of terminal devices (310) and (320) interconnected through the network (350). Figure 3 In the example of , a first pair of terminal devices (310) and (320) perform unidirectional data transmission. For example, the terminal device (310) may encode video data (e.g., a video picture stream captured by the terminal device (310)) for transmission to another terminal device (320) via the network (350). The encoded video data may be transmitted in the form of one or more encoded video code streams. The terminal device (320) may receive the encoded video data from the network (350), decode the encoded video data to restore the video picture, and display the video picture based on the restored video data. Unidirectional data transmission may be common in applications such as media services.
[0059] In another example, the communication system (300) includes a second pair of terminal devices (330) and (340) that perform bidirectional transmission of encoded video data, which can occur, for example, during a video conference. For bidirectional data transmission, in one example, each of the terminal devices (330) and the terminal device (340) can encode video data (e.g., a video picture stream collected by the terminal device) for transmission to the other of the terminal devices (330) and the terminal device (340) via a network (350). Each of the terminal devices (330) and the terminal device (340) can also receive the encoded video data transmitted by the other of the terminal devices (330) and the terminal device (340), and can decode the encoded video data to restore the video picture, and can display the video picture on an accessible display device based on the restored video data.
[0060] exist Figure 3In the example of , terminal device (310), terminal device (320), terminal device (330) and terminal device (340) may be illustrated as a server, a personal computer and a smart phone, but the principles disclosed in the present application may not be limited to this. The embodiments disclosed in the present application are applicable to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. Network (350) represents any number of networks that transmit encoded video data between terminal devices (310), terminal devices (320), terminal devices (330) and terminal devices (340), including, for example, wired (wired) and / or wireless communication networks. The communication network (350) can exchange data in circuit switching and / or packet switching channels. Representative networks include telecommunication networks, local area networks, wide area networks and / or the Internet. For the purposes of this discussion, unless explained below, the architecture and topology of the network (350) may be irrelevant to the operations disclosed in the present application.
[0061] As an example of the application of the subject matter disclosed in this application, Figure 4 The placement of the video encoder and video decoder in a streaming environment is shown. The subject matter disclosed in this application is equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV, storing compressed video on digital media including CDs, DVDs, memory sticks, etc.
[0062] The streaming system may include an acquisition subsystem (413), which may include a video source (401) such as a digital camera, which creates, for example, an uncompressed video picture stream (402). In one example, the video picture stream (402) includes samples captured by the digital camera. The video picture stream (402) is depicted as a thick line to emphasize that it has a higher data volume than the encoded video data (404) (or the encoded video bitstream), and the video picture stream (402) can be processed by an electronic device (420), which includes a video encoder (403) coupled to the video source (401). The video encoder (403) may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video data (404) (or the encoded video bitstream (404)) is depicted as a thin line to emphasize that it has a lower data volume than the video picture stream (402), which can be stored on a streaming server (405) for future use. One or more streaming client subsystems, e.g. Figure 4A client subsystem (406) and a client subsystem (408) in a streaming server (405) may access a copy (407) and a copy (409) of the encoded video data (404). The client subsystem (406) may include, for example, a video decoder (410) in an electronic device (430). The video decoder (410) decodes the incoming copy (407) of the encoded video data and generates an output video picture stream (411) that can be presented on a display (412) (e.g., a display screen) or another presentation device (not depicted). In some streaming systems, the encoded video data (404), the video data (407), and the video data (409) (e.g., a video bitstream) may be encoded according to certain video encoding / compression standards. Examples of such standards include ITU-T Recommendation H.265. In one example, the video coding standard under development is informally referred to as Versatile Video Coding (VVC), and the subject matter disclosed in the present application may be used in the context of the VVC standard.
[0063] It should be noted that the electronic device (420) and the electronic device (430) may include other components (not shown). For example, the electronic device (420) may include a video decoder (not shown), and the electronic device (430) may also include a video encoder (not shown).
[0064] Figure 5 is a block diagram of a video decoder (510) according to an embodiment disclosed in the present application. The video decoder (510) may be provided in an electronic device (530). The electronic device (530) may include a receiver (531) (eg, a receiving circuit). The video decoder (510) may be used to replace Figure 4 A video decoder (410) in an example.
[0065] A receiver (531) may receive one or more encoded video sequences to be decoded by a video decoder (510); in the same or another embodiment, one encoded video sequence is received at a time, wherein the decoding of each encoded video sequence is independent of the other encoded video sequences. The encoded video sequence may be received from a channel (501), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (531) may receive the encoded video data as well as other data, such as encoded audio data and / or auxiliary data streams that may be forwarded to their respective consuming entities (not depicted). The receiver (531) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (515) may be coupled between the receiver (531) and an entropy decoder / parser (520) (hereinafter referred to as "parser (520)"). In some applications, the buffer memory (515) is part of the video decoder (510). In other cases, the buffer memory (515) may be provided external to the video decoder (510) (not depicted). In other cases, a buffer memory (not depicted) is provided outside the video decoder (510) to, for example, prevent network jitter, and another buffer memory (515) may be configured inside the video decoder (510) to, for example, handle broadcast timing. When the receiver (531) receives data from a storage / forward device with sufficient bandwidth and controllability, or from an isochronous network, it may not be necessary to configure a buffer memory (515), or the buffer memory may be made smaller. For use on a best-effort service packet network such as the Internet, a buffer memory (515) may also be required, which may be relatively large and have an adaptive size, and may be at least partially implemented in an operating system or a similar element (not depicted) outside the video decoder (510).
[0066] The video decoder (510) may include a parser (520) to reconstruct symbols (521) from the encoded video sequence. The types of symbols include information for managing the operation of the video decoder (510) and potential information for controlling a display device such as a rendering device (512) (e.g., a display screen) that is not part of the electronic device (530) but can be coupled to the electronic device (530), such as Figure 5As shown. The control information for the display device may be a parameter set fragment (not depicted) of a Supplemental Enhancement Information (SEI) message or a Video Usability Information (VUI). The parser (520) may parse / entropy decode the received coded video sequence. The encoding of the coded video sequence may be performed according to a video coding technique or standard, and may follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, and the like. The parser (520) may extract a subgroup parameter set of at least one subgroup of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a Group of Pictures (GOP), a picture, a tile, a slice, a macroblock, a Coding Unit (CU), a block, a Transform Unit (TU), a Prediction Unit (PU), and the like. The parser (520) may also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, and so on.
[0067] The parser (520) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (515), thereby creating symbols (521).
[0068] Depending on the type of coded video picture or coded video picture portion (e.g., inter-picture and intra-picture, inter-block and intra-block) and other factors, the reconstruction of the symbol (521) may involve multiple different units. Which units are involved and how they are involved may be controlled by subgroup control information parsed by the parser (520) from the coded video sequence. For the sake of brevity, such subgroup control information flow between the parser (520) and the multiple units below is not described.
[0069] In addition to the functional blocks already mentioned, the video decoder (510) can be conceptually subdivided into several functional units as described below. In a practical embodiment operating under commercial constraints, many of these units interact closely with each other and may be at least partially integrated with each other. However, for the purpose of describing the disclosed subject matter, the conceptual subdivision into the following functional units is appropriate.
[0070] The first unit is a sealer / inverse transform unit (551). The sealer / inverse transform unit (551) receives quantized transform coefficients as symbols (521) from the parser (520) and control information including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (551) may output a block including sample values, which may be input into an aggregator (555).
[0071] In some cases, the output samples of the scaler / inverse transform unit (551) may belong to an intra-coded block; that is, a block that does not use predictive information from a previously reconstructed picture, but may use predictive information from a previously reconstructed portion of the current picture. Such predictive information may be provided by an intra-picture prediction unit (552). In some cases, the intra-picture prediction unit (552) uses surrounding reconstructed information extracted from a current picture buffer (558) to generate a block of the same size and shape as the block being reconstructed. For example, the current picture buffer (558) buffers a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (555) adds the prediction information generated by the intra-prediction unit (552) to the output sample information provided by the scaler / inverse transform unit (551) on a per-sample basis.
[0072] In other cases, the output samples of the scaler / inverse transform unit (551) may belong to an inter-frame coded and potentially motion compensated block. In this case, the motion compensated prediction unit (553) may access the reference picture memory (557) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (521) belonging to the block, these samples may be added by the aggregator (555) to the output of the scaler / inverse transform unit (551) (in this case referred to as residual samples or residual signals) to generate output sample information. The acquisition of the predicted samples by the motion compensated prediction unit (553) from the address in the reference picture memory (557) may be controlled by a motion vector, and the motion vector is provided to the motion compensated prediction unit (553) in the form of the symbols (521), for example, including X, Y and reference picture components. Motion compensation may also include interpolation of sample values extracted from the reference picture memory (557) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, etc.
[0073] The output samples of the aggregator (555) may be used by various loop filtering techniques in a loop filter unit (556). The video compression techniques may include in-loop filter techniques that are controlled by parameters included in the coded video sequence (also referred to as the coded video bitstream) and made available to the loop filter unit (556) as symbols (521) from the parser (520), but may also be responsive to meta-information obtained during decoding of a coded picture or a previous (in decoding order) portion of the coded video sequence, and to previously reconstructed and loop filtered sample values.
[0074] The output of the loop filter unit (556) may be a sample stream that may be output to a display device (512) and stored in a reference picture memory (557) for subsequent inter-picture prediction.
[0075] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. For example, once the coded picture corresponding to the current picture is fully reconstructed, and the coded picture is identified as a reference picture (e.g., by the parser (520)), the current picture buffer (558) may become part of the reference picture memory (557), and a new current picture buffer may be reallocated before starting reconstruction of a subsequent coded picture.
[0076] The video decoder (510) may perform decoding operations according to a predetermined video compression technique in a standard such as ITU-T Recommendation H.265. The encoded video sequence may conform to the syntax specified by the video compression technique or standard used in the sense that the encoded video sequence follows the syntax of the video compression technique or standard and the profile recorded in the video compression technique or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technique or standard as the only tools available for use under the profile. For compliance, the complexity of the encoded video sequence is also required to be within the range defined by the hierarchy of the video compression technique or standard. In some cases, the hierarchy limits the maximum picture size, the maximum frame rate, the maximum reconstruction sampling rate (measured in, for example, mega samples per second), the maximum reference picture size, etc. In some cases, the limits set by the hierarchy may be further limited by the Hypothetical Reference Decoder (HRD) specification and metadata of the HRD buffer management signaled in the encoded video sequence.
[0077] In an embodiment, the receiver (531) may receive additional (redundant) data along with the encoded video. The additional data may be part of the encoded video sequence. The additional data may be used by the video decoder (510) to properly decode the data and / or more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial or signal noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0078] Figure 6 6 is a block diagram of a video encoder (603) according to an embodiment disclosed in the present application. The video encoder (603) is provided in an electronic device (620). The electronic device (620) includes a transmitter (640) (eg, a transmission circuit). The video encoder (603) can be used to replace Figure 4 A video encoder (403) in an example.
[0079] The video encoder (603) can be used to obtain a video source (601) (not Figure 6 In another embodiment, the video source (601) is a part of the electronic device (620) in the example, and receives the video samples. The video source can capture video images to be encoded by the video encoder (603). In another embodiment, the video source (601) is a part of the electronic device (620).
[0080] The video source (601) may provide a source video sequence in the form of a digital video sample stream to be encoded by a video encoder (603), wherein the digital video sample stream may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb4:4:4). In a media service system, the video source (601) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (601) may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of separate pictures that are given motion when viewed sequentially. The pictures themselves may be constructed as a spatial pixel array, wherein each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The relationship between pixels and samples may be easily understood by a person skilled in the art. The following description focuses on the samples.
[0081] According to an embodiment, the video encoder (603) may encode and compress pictures of a source video sequence into an encoded video sequence (643) in real time or under any other time constraints required by the application. Implementing an appropriate encoding speed is a function of the controller (650). In some embodiments, the controller (650) controls other functional units as described below and is functionally coupled to these units. For the sake of simplicity, the coupling is not indicated in the figure. The parameters set by the controller (650) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology, etc.), picture size, picture group (group of pictures, GOP) layout, maximum motion vector search range, etc. The controller (650) can be used to have other suitable functions that are related to the video encoder (603) optimized for a certain system design.
[0082] In some embodiments, the video encoder (603) operates in a coding loop. As a simplified description, in one example, the coding loop may include a source encoder (630) (e.g., responsible for creating symbols, e.g., a symbol stream, based on an input picture to be encoded and a reference picture) and a (local) decoder (633) embedded in the video encoder (603). The decoder (633) reconstructs the symbols to create sample data in a manner similar to how the (remote) decoder creates sample data (because in the video compression techniques considered by the subject matter disclosed in this application, any compression between the symbols and the encoded video code stream is lossless). The reconstructed sample stream (sample data) is input to a reference picture memory (634). Since the decoding of the symbol stream produces bit-accurate results that are independent of the decoder location (local or remote), the contents of the reference picture memory (634) are also bit-accurate between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction part of the encoder are exactly the same as the sample values that the decoder will "see" when using the prediction during decoding. This basic principle of reference picture synchronization (and the drift that occurs when synchronization cannot be maintained, eg due to channel errors) is also used in some related techniques.
[0083] The operation of the "local" decoder (633) can be combined with the above Figure 5 The "remote" decoder described in detail for the video decoder (610) is identical. However, additional brief reference is made to Figure 5 , when symbols are available and the entropy encoder (645) and parser (520) are capable of losslessly encoding / decoding the symbols into the coded video sequence, the entropy decoding portion of the video decoder (510), including the buffer memory (515) and the parser (520), may not be fully implemented in the local decoder (633).
[0084] At this point, it can be observed that any decoder technology other than the parsing / entropy decoding present in the decoder must also be present in the corresponding encoder in substantially the same functional form. For this reason, the present application focuses on decoder operation. The description of encoder technology can be simplified because encoder technology is mutually inverse to the decoder technology described comprehensively. A more detailed description is only needed in certain areas and is provided below.
[0085] During operation, in some examples, the source encoder (630) may perform motion compensated predictive coding to predictively encode an input picture with reference to one or more previously encoded pictures from a video sequence designated as "reference pictures." In this manner, the encoding engine (632) encodes the difference between a pixel block of the input picture and a pixel block of a reference picture that may be selected as a prediction reference for the input picture.
[0086] The local video decoder (633) may decode the encoded video data of the picture that may be designated as the reference picture based on the symbol created by the source encoder (630). The operation of the encoding engine (632) may be a lossy process. When the encoded video data is available at the video decoder ( Figure 6 When the video encoder (603) is decoded at a remote end (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (633) replicates the decoding process that may be performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture cache (634). In this way, the video encoder (603) may store a copy of the reconstructed reference picture locally that has common content (absent transmission errors) with the reconstructed reference picture to be obtained by the remote video decoder.
[0087] The predictor (635) may perform a prediction search for the encoding engine (632). That is, for a new picture to be encoded, the predictor (635) may search the reference picture memory (634) for sample data (as a candidate reference pixel block) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may serve as a suitable prediction reference for the new picture. The predictor (635) may operate pixel-by-pixel based on sample blocks to find a suitable prediction reference. In some cases, based on the search results obtained by the predictor (635), it may be determined that the input picture may have a prediction reference obtained from a plurality of reference pictures stored in the reference picture memory (634).
[0088] The controller (650) may manage encoding operations of the source encoder (630), including, for example, setting parameters and subgroup parameters for encoding video data.
[0089] The outputs of all the above functional units may be entropy encoded in an entropy encoder (645). The entropy encoder (645) performs lossless compression on the symbols generated by the various functional units according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc., thereby converting the symbols into a coded video sequence.
[0090] The transmitter (640) may buffer the encoded video sequence created by the entropy encoder (645) in preparation for transmission over a communication channel (660), which may be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (640) may combine the encoded video data from the video encoder (603) with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (source not shown).
[0091] The controller (650) may manage the operation of the video encoder (603). During encoding, the controller (650) may assign a certain coded picture type to each coded picture, which may affect the coding techniques that may be applied to the corresponding picture. For example, a picture may generally be assigned any of the following picture types:
[0092] An intra picture (I picture) may be a picture that can be encoded and decoded without using any other picture in the sequence as a prediction source. Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures. Those skilled in the art are aware of the variations of I pictures and their corresponding applications and features.
[0093] A predictive picture (P picture), which may be a picture that can be encoded and decoded using intra prediction or inter prediction, which uses at most one motion vector and a reference index to predict sample values for each block.
[0094] Bidirectional predictive pictures (B pictures), which can be pictures that can be encoded and decoded using intra prediction or inter prediction, which uses up to two motion vectors and reference indices to predict sample values for each block. Similarly, multiple predictive pictures can use more than two reference pictures and associated metadata for reconstructing a single block.
[0095] The source picture may typically be spatially subdivided into blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples each), and encoded block by block. These blocks may be predictively coded with reference to other (already coded) blocks, which are determined according to the coding allocation applied to the block's corresponding picture. For example, blocks of an I picture may be non-predictively coded, or the blocks may be predictively coded (spatial prediction or intra-frame prediction) with reference to already coded blocks of the same picture. Blocks of pixels of a P picture may be predictively coded by spatial prediction with reference to one previously coded reference picture or by temporal prediction. Blocks of a B picture may be predictively coded by spatial prediction with reference to one or two previously coded reference pictures or by temporal prediction.
[0096] The video encoder (603) may perform encoding operations according to a predetermined video encoding technique or standard, such as ITU-T Recommendation H.265. In operation, the video encoder (603) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in an input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard used.
[0097] In an embodiment, the transmitter (640) may transmit additional data along with the encoded video. The source encoder (630) may include such data as part of the encoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, redundant pictures and slices and other forms of redundant data, SEI messages, VUI parameter set fragments, etc.
[0098] The captured video may be taken as a plurality of source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often simplified to intra-prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits (temporal or other) correlations between pictures. In an embodiment, a particular picture being encoded / decoded is divided into blocks, and the particular picture being encoded / decoded is referred to as the current picture. When a block in the current picture is similar to a reference block in a reference picture that has been previously encoded in the video and is still buffered, the block in the current picture may be encoded by a vector called a motion vector. The motion vector points to a reference block in a reference picture, and in the case of using multiple reference pictures, the motion vector may have a third dimension that identifies the reference picture.
[0099] In some embodiments, bidirectional prediction techniques may be used in inter-picture prediction. According to the bidirectional prediction technique, two reference pictures are used, for example, a first reference picture and a second reference picture that are both before the current picture in the video in decoding order (but may be in the past and future, respectively, in display order). A block in the current picture may be encoded by a first motion vector pointing to a first reference block in the first reference picture and a second motion vector pointing to a second reference block in the second reference picture. The block may be predicted by a combination of the first reference block and the second reference block.
[0100] In addition, merge mode technology can be used in inter-picture prediction to improve coding efficiency.
[0101] According to some embodiments disclosed in the present application, predictions such as inter-picture prediction and intra-picture prediction are performed in units of blocks. For example, according to the HEVC standard, pictures in a video picture sequence are divided into coding tree units (CTUs) for compression, and the CTUs in the pictures have the same size, for example, 64×64 pixels, 32×32 pixels, or 16×16 pixels. In general, a CTU includes three coding tree blocks (CTBs), which are a luminance CTB and two chrominance CTBs. Furthermore, each CTU can be split into one or more coding units (CUs) using a quadtree. For example, a 64×64 pixel CTU can be split into a 64×64 pixel CU, or 4 32×32 pixel CUs, or 16 16×16 pixel CUs. In an embodiment, each CU is analyzed to determine the prediction type for the CU, for example, an inter-frame prediction type or an intra-frame prediction type. In addition, depending on temporal and / or spatial predictability, the CU is split into one or more prediction units (PUs). Typically, each PU includes a luminance prediction block (PB) and two chrominance PBs. In an embodiment, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. Taking the luminance prediction block as a prediction block as an example, the prediction block includes a matrix of pixel values (e.g., luminance values), such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, and the like.
[0102] Figure 7 A diagram of a video encoder (703) according to another embodiment disclosed in the present application is shown. The video encoder (703) is used to receive a processed block (e.g., a prediction block) of sample values within a current video picture in a video picture sequence, and encode the processed block into an encoded picture that is part of an encoded video sequence. In this embodiment, the video encoder (703) is used instead of Figure 4A video encoder (403) in an example.
[0103] In the HEVC example, the video encoder (703) receives a matrix of sample values for a processing block, such as a prediction block of 8×8 samples. The video encoder (703) uses, for example, rate-distortion (RD) optimization to determine whether to use intra mode, inter mode, or bidirectional prediction mode to encode the processing block. When encoding the processing block in intra mode, the video encoder (703) may use intra prediction techniques to encode the processing block into an encoded picture; and when encoding the processing block in inter mode or bidirectional prediction mode, the video encoder (703) may use inter prediction or bidirectional prediction techniques to encode the processing block into an encoded picture, respectively. In some video encoding techniques, the merge mode may be an inter-picture prediction submode, in which a motion vector is derived from one or more motion vector predictors without the aid of an encoded motion vector component external to the predictor. In some other video encoding techniques, there may be a motion vector component applicable to the subject block. In an embodiment, the video encoder (703) includes other components, such as a mode decision module (not shown) for determining the processing block mode.
[0104] exist Figure 7 In the example of , the video encoder (703) includes Figure 7 Shown are an inter-frame encoder (730), an intra-frame encoder (722), a residual calculator (723), a switch (726), a residual encoder (724), a common controller (721), and an entropy encoder (725) coupled together.
[0105] The inter-frame encoder (730) is used to receive samples of a current block (e.g., a processing block), compare the block with one or more reference blocks in a reference picture (e.g., blocks in a previous picture and a subsequent picture), generate inter-frame prediction information (e.g., redundant information description according to an inter-frame coding technique, motion vectors, merge mode information), and calculate an inter-frame prediction result (e.g., a predicted block) based on the inter-frame prediction information using any suitable technique. In some examples, the reference picture is a decoded reference picture decoded based on the encoded video information.
[0106] The intra encoder (722) is used to receive samples of a current block (e.g., a processing block), compare the block with an encoded block in the same picture in some cases, generate quantization coefficients after transformation, and in some cases also generate intra prediction information (e.g., intra prediction direction information according to one or more intra coding techniques). In one example, the intra encoder (722) also calculates an intra prediction result (e.g., a predicted block) based on the intra prediction information and a reference block in the same picture.
[0107] The general controller (721) is used to determine general control data and control other components of the video encoder (703) based on the general control data. In an embodiment, the general controller (721) determines the mode of the block and provides a control signal to the switch (726) based on the mode. For example, when the mode is intra-frame mode, the general controller (721) controls the switch (726) to select the intra-frame mode result for use by the residual calculator (723), and controls the entropy encoder (725) to select intra-frame prediction information and add the intra-frame prediction information to the bitstream; and when the mode is inter-frame mode, the general controller (721) controls the switch (726) to select the inter-frame prediction result for use by the residual calculator (723), and controls the entropy encoder (725) to select the inter-frame prediction information and add the inter-frame prediction information to the bitstream.
[0108] The residual calculator (723) is used to calculate the difference (residual data) between the received block and the prediction result selected from the intra-frame encoder (722) or the inter-frame encoder (730). The residual encoder (724) is used to operate based on the residual data to encode the residual data to generate a transform coefficient. In an embodiment, the residual encoder (724) is used to convert the residual data from the time domain to the frequency domain and generate a transform coefficient. The transform coefficient is then processed by quantization to obtain a quantized transform coefficient. In various embodiments, the video encoder (703) also includes a residual decoder (728). The residual decoder (728) is used to perform an inverse transform and generate decoded residual data. The decoded residual data can be used appropriately by the intra-frame encoder (722) and the inter-frame encoder (730). For example, the inter-frame encoder (730) can generate a decoded block based on the decoded residual data and the inter-frame prediction information, and the intra-frame encoder (722) can generate a decoded block based on the decoded residual data and the intra-frame prediction information. The decoded blocks are appropriately processed to generate a decoded picture, and in some embodiments, the decoded picture may be buffered in a memory circuit (not shown) and used as a reference picture.
[0109] The entropy encoder (725) is used to format the code stream to produce an encoded block. The entropy encoder (725) generates various information according to a suitable standard such as the HEVC standard. In an embodiment, the entropy encoder (725) is used to obtain general control data, selected prediction information (e.g., intra-frame prediction information or inter-frame prediction information), residual information, and other suitable information in the code stream. It should be noted that according to the disclosed subject matter, when the block is encoded in the inter-frame mode or the merge sub-mode of the bidirectional prediction mode, there is no residual information.
[0110] Figure 8A diagram of a video decoder (810) according to another embodiment disclosed in the present application is shown. The video decoder (810) is used to receive an encoded image as part of an encoded video sequence and decode the encoded image to generate a reconstructed picture. In one example, the video decoder (810) is used to replace Figure 4 A video decoder (410) in an example.
[0111] exist Figure 8 In the example of , the video decoder (810) includes Figure 8 An entropy decoder (871), an inter-frame decoder (880), a residual decoder (873), a reconstruction module (874), and an intra-frame decoder (872) coupled together are shown in FIG.
[0112] The entropy decoder (871) can be used to reconstruct certain symbols from the encoded picture, which represent syntax elements constituting the encoded picture. Such symbols may include, for example, the mode of the block coding (e.g., intra-frame mode, inter-frame mode, bidirectional prediction mode, a merged sub-mode of the latter two, or another sub-mode), prediction information (e.g., intra-frame prediction information or inter-frame prediction information) that can identify certain samples or metadata for prediction by the intra-frame decoder (872) or the inter-frame decoder (880), respectively, residual information in the form of, for example, quantized transform coefficients, etc. In one example, when the prediction mode is an inter-frame prediction mode or a bidirectional prediction mode, the inter-frame prediction information is provided to the inter-frame decoder (880); and when the prediction type is an intra-frame prediction type, the intra-frame prediction information is provided to the intra-frame decoder (872). The residual information can be inverse quantized and provided to the residual decoder (873).
[0113] The inter-frame decoder (880) is used to receive inter-frame prediction information and generate an inter-frame prediction result based on the inter-frame prediction information.
[0114] The intra-frame decoder (872) is used to receive intra-frame prediction information and generate a prediction result based on the intra-frame prediction information.
[0115] The residual decoder (873) is used to perform inverse quantization to extract dequantized transform coefficients, and process the dequantized transform coefficients to convert the residual from the frequency domain to the spatial domain. The residual decoder (873) may also require some control information (to obtain the quantizer parameter QP), and this information may be provided by the entropy decoder (871) (the data path is not indicated because this may only be a low amount of control information).
[0116] The reconstruction module (874) is used to combine the residual output by the residual decoder (873) with the prediction result (which can be output by the inter-frame prediction module or the intra-frame prediction module) in the spatial domain to form a reconstructed block, which can be part of a reconstructed picture, which in turn can be part of a reconstructed video. It should be noted that other suitable operations such as deblocking operations can be performed to improve visual quality.
[0117] It should be noted that the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using any suitable technology. In an embodiment, the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using one or more processors that execute software instructions.
[0118] The present disclosure includes embodiments related to Geometric Partition Mode (GPM) with Intra Block Copy (IBC), for example, signaling, processing, storing BV information for IBC, and processing BV merge candidate lists for GPM with IBC.
[0119] ITU-T VCEG (Q6 / 16) and ISO / IEC MPEG (JTC 1 / SC 29 / WG 11) released the H.265 / HEVC (High Efficiency Video Coding) standard in 2013 (version 1), 2014 (version 2), 2015 (version 3), and 2016 (version 4). In 2015, the two standards organizations jointly established JVET (Joint Video Exploration Team) to explore the potential of developing the next video coding standard beyond HEVC. In October 2017, the two standards organizations issued a joint call for proposals (CfP) for video compression with capabilities beyond HEVC. As of February 15, 2018, 22 CfP responses were submitted for Standard Dynamic Range (SDR), 12 for High Dynamic Range (HDR), and 12 for 360 video categories. In April 2018, all received CfP replies were evaluated at the 122nd MPEG meeting / 10th JVET meeting. As a result of this meeting, JVET officially launched the standardization process for the next generation of video coding beyond HEVC, the new standard was named Versatile Video Coding (VVC), and JVET was renamed the Joint Video Experts Group. In 2020, ITU-T VCEG (Q6 / 16) and ISO / IEC MPEG (JTC 1 / SC 29 / WG 11) released the VVC video coding standard (version 1).
[0120] In inter prediction, for each inter prediction coding unit (CU), motion parameters are required for encoding the features of VVC, for example, for the generation of inter prediction samples. Motion parameters may include motion vectors, reference picture indices, reference picture list usage indices, and / or additional information. Motion parameters may be signaled explicitly or implicitly. When a CU is encoded in skip mode, the CU may be associated with one PU and may not require significant residual coefficients, encoded motion vector increments, and / or reference picture indices. When a CU is encoded in merge mode, the motion parameters of the CU may be obtained from neighboring CUs. Neighboring CUs may include spatial and temporal candidates, as well as additional scheduling (or additional candidates) introduced in VVC, for example. Merge mode may be applied to any inter prediction CU, not just to skip mode. An alternative to merge mode is explicit transmission of motion parameters, where, for each CU, motion vectors, corresponding reference picture indices for each reference picture list, reference picture list usage flags, and / or other required information may be explicitly signaled.
[0121] In VVC, the VVC Test Model (VTM) reference software may include some new and improved inter-frame prediction coding tools, which may include one or more of the following:
[0122] (1) Extended Merger Forecast
[0123] (2) Merged Motion Vector Difference (MMVD)
[0124] (3) AMVP mode with symmetric MVD signaling
[0125] (4) Affine motion compensation prediction
[0126] (5) Sub-block based temporal motion vector prediction (SbTMVP)
[0127] (6) Adaptive Motion Vector Resolution (AMVR)
[0128] (7) Sports field storage: 1 / 16 th Luma sample MV storage and 8×8 motion field compression
[0129] (8) Bidirectional prediction with CU-level weights (BCW)
[0130] (9) Bidirectional Optical Flow (BDOF)
[0131] (10) Decoder-side motion vector correction (DMVR)
[0132] (11) Combined inter-frame and intra-frame prediction (CIIP)
[0133] (12) Geometric Partitioning Model (GPM)
[0134] The merge candidate list may be constructed by including five types of candidates, such as in VTM 4. The merge candidate list may be constructed in the following order:
[0135] (1) Spatial MVP from spatially neighboring CUs,
[0136] (2) Temporal MVP from the collocated CU,
[0137] (3) History-based MVP from FIFO table,
[0138] (4) Pairwise average MVP, and
[0139] (5) Zero MV.
[0140] The size of the merge list may be signaled in the slice header. The maximum size allowed for the merge list may be 6, for example in VTM 4. For each CU coded in merge mode, the index of the best merge candidate may be encoded, for example, using truncated unary binarization. The first bin of the merge index may be context coded, and bypass coding may be used for the other bins.
[0141] In spatial candidate derivation, such as in VVC, the derivation of spatial merge candidates may be the same or similar to the derivation of spatial merge candidates in HEVC. Fig. 9 The maximum number of merge candidates (for example, four merge candidates) is selected from the candidates at the illustrated positions. Fig. 9 As shown, the current block (901) may include neighboring blocks (902) to (906) located at positions A0, A1, B0, B1, and B2, respectively. The order of derivation of spatial merge candidates may be B1, A1, B0, A0, and B2. Position B2 may be considered only when any CU (or block) at position A0, B0, B1, or A1 is unavailable (for example, because the CU belongs to another slice or tile) or is intra-coded. After adding the candidate (or block) at position A1, a redundancy check may be performed on the addition of the remaining candidates (or blocks). The redundancy check may ensure that candidates with the same motion information are excluded from the merge list, thereby improving coding efficiency. In order to reduce computational complexity, the redundancy check may not consider all possible candidate pairs. Instead, only pairs with the same motion information may be considered. Fig.10 For example, redundancy check may be applied to 5 candidate pairs, such as candidate pairs of A1 and B1 and candidate pairs of A1 and A0. A candidate may be added to the merge list only if the corresponding candidate for redundancy check does not include the same motion information. For example, candidate B0 may be added to the merge list only if the corresponding candidate B1 does not include the same motion information.
[0142] In temporal candidate derivation, only one candidate can be added to the merge list. For example, Fig.11 As shown, when deriving a temporal merge candidate for the current CU (1114), a scaled motion vector can be derived based on the co-located CU (1104) belonging to the co-located picture (1112). The reference picture list used to derive the co-located CU (1104) can be explicitly signaled in the slice header. Fig.11 As shown by the dashed line (1102) in FIG. 1 , a scaled motion vector for a temporal merge candidate may be obtained by scaling the motion vector of a co-located CU (1104) using picture order count (POC) distances tb and td. tb may be defined as the POC difference between a reference picture (e.g., Curr_ref) (1106) of the current picture and a current picture (e.g., Curr_pic) (1108). td may be defined as the POC difference between a reference picture (e.g., Col_ref) (1110) of the co-located picture and a co-located picture (e.g., Col_pic) (1112). The reference picture index of the temporal merge candidate may be set equal to zero.
[0143] like Fig.12 As shown, the position of the temporal candidate can be selected between candidates C0 and C1. For example, if the CU at position C0 is not available, is intra-coded, or is outside the current CTU row, position C1 can be used. Otherwise, position C0 can be used to derive a temporal merge candidate.
[0144] GPM may be applied to inter prediction. GPM may be applied only to CUs of a certain size, such as CUs of size 8×8 or CUs of size greater than 8×8. GPM may be signaled, such as using a CU-level flag, and GPM may act as a merge mode. Other merge modes may include a conventional merge mode, an MMVD mode, a CIIP mode, and / or a sub-block merge mode.
[0145] When using GPM, the CU can be divided into two geometric partitions using one of a variety of partitioning methods. The partitioning methods can be distinguished by angles and / or edges. In an embodiment, 64 different partitioning methods can be applied in GPM. These 64 different partitioning methods can be distinguished by 24 angles relative to the center of the CU and up to 4 edges, which are non-uniformly quantized between 0° and 360°. Fig.13 Twenty-four exemplary angles are shown for application to the GPM. Fig.14 Four exemplary possible partition edges associated with an angle indexed 3 in a CU (1402) are shown, where each partition edge may be associated with a corresponding distance index. The distance index may indicate a distance relative to the center of the CU (1402). In a GPM, each geometric partition in a CU may be inter-predicted using a corresponding motion vector. In addition, only unidirectional prediction may be allowed for each partition. For example, each partition may have one motion vector and one reference index. The constraint of only allowing unidirectional prediction motion for each partition may ensure that only two motion compensated predictions are required for each CU, which also applies to traditional bidirectional prediction.
[0146] If GPM is used for the current CU, a signal may be further signaled to indicate a geometric partition index and two merge indexes (one merge index for each partition). The maximum GPM candidate size may be signaled, for example, may be explicitly signaled at the slice level. The maximum GPM candidate size may specify a syntax binarization for the GPM merge index. After predicting each of the two geometric partitions, a blending process with adaptive weights may be used to adjust sample values along the edges of the geometric partitions. Accordingly, a prediction signal for the entire CU may be generated after the blending process. In other prediction modes, a transform and quantization process may be further applied to the entire CU. Further, the motion field of the CU predicted using the GPM may be stored.
[0147] The implementation cost of IBC can be high for the entire reconstructed area of the current picture. For example, a disadvantage of the IBC concept in HEVC is that additional memory is required in the decoded picture buffer (DPB). Therefore, hardware implementations of IBC usually use external memory. The additional external memory access is accompanied by an increase in memory bandwidth.
[0148] In some implementations, it may be necessary to reduce the implementation cost. For example, VVC can use fixed memory, which can implement IBC by using on-chip memory to greatly reduce memory bandwidth requirements and hardware complexity. In addition, the block vector (BV) encoding of IBC can adopt the concept of merge lists for inter-frame prediction. The construction process of the IBC list can consider two spatially adjacent BVs and five history-based BVs (HBVPs), where when the first HBVP is added to the candidate list (or IBC list), only the first HBVP can be compared with the spatial candidates (e.g., the BVs of the two spatial candidates).
[0149] To further improve compression efficiency, for example in VVC, template matching (TM) with motion correction at the decoder side can be used. In TM mode, motion is corrected by building a template from the adjacent reconstructed samples on the left and above, and the closest match between the template in the current picture and the reference frame can be determined.
[0150] TM can be applied to GPM. When the CU is encoded in GPM, it can be determined whether to apply TM to correct each motion for the geometric partition. When TM is selected, the template can be constructed using the left and upper adjacent samples, and the motion can be further corrected by finding the best match between the current template and the reference area with the same template pattern in the reference frame. The corrected motion can be used to perform motion compensation on the geometric partition, and the corrected motion can be further stored in the motion field.
[0151] GPM can be applied to support inter-frame prediction and intra-frame prediction to enhance coding performance beyond VVC. For example, in addition to selecting a motion vector from the merge candidate list for each geometric partition in the CU to which GPM is applied, a predefined intra-frame prediction mode for (or about) a geometric partition line can also be selected. Based on the flag, the intra-frame prediction mode or inter-frame prediction mode for each geometric partition can be determined. When inter-frame prediction is selected, a unidirectional prediction signal can be generated based on the MV of the merge candidate list. Otherwise, if an intra-frame prediction mode is selected, a unidirectional prediction signal can be generated based on neighboring samples, which are predicted according to the specified index of the intra-frame prediction mode. The possible variants of the intra-frame prediction mode can be restricted by the geometric shape. Finally, the two unidirectional prediction signals can be mixed in the same way as ordinary GPM.
[0152] In order to reduce complexity and signaling overhead, variants of possible intra-frame prediction modes can be studied (or defined). For example, the impact of variants of possible intra-frame prediction modes for two exemplary configurations on a GPM with inter-frame prediction and intra-frame prediction is studied. The first configuration tries only parallel intra-frame directional mode and vertical intra-frame directional mode for (or about) geometric partition lines. In addition to parallel intra-frame angular mode and vertical intra-frame angular mode for (or about) geometric partition lines, planar mode is also tested in the second configuration. Two or three possible intra-frame prediction modes are tested for geometric partitions of a GPM with inter-frame prediction and intra-frame prediction.
[0153] In VVC, GPM with inter prediction and intra prediction can be applied to CU with bidirectional prediction inter mode to improve partition accuracy, which can also be extended to combined inter prediction and intra prediction for next-generation video standards beyond VVC. However, partition accuracy can only be used for inter prediction mode and intra prediction mode. For IBC, the geometric partitioning scheme may not be applied to improve partition accuracy.
[0154] In the present disclosure, GPM can be combined with different prediction blocks. For example, GPM can be combined with three different prediction blocks. The three different prediction blocks can be generated by using IBC, inter-frame prediction mode and intra-frame prediction mode respectively. Therefore, based on one prediction block among the three different prediction blocks, each geometric partition of GPM can be predicted.
[0155] In an embodiment, the GPM mode can be combined with different prediction blocks (or prediction types). For example, GPM can be used in combination with three different prediction blocks for two geometric partitions of the GPM. Each of the two geometric partitions can be predicted by one of the following three prediction types: 1) an IBC block with a BV of an IBC block, 2) a motion compensated block using inter-frame prediction, and 3) neighboring samples using an intra-frame prediction mode. Each geometric partition can have a corresponding flag (e.g., an intra-frame flag) to indicate whether intra-frame prediction is used. If the flag (e.g., the intra-frame flag) is true for a geometric partition, the intra-frame prediction mode can be further signaled to indicate which intra-frame prediction mode should be used to predict the geometric partition. Otherwise (e.g., the intra-frame flag is false), the IBC flag can be signaled to indicate whether IBC is used. If IBC is used for the geometric partition, the BV information of the IBC can be signaled to generate an intra-frame copy block. The intra-frame copy block can be applied to predict the geometric partition. Otherwise (e.g., both the intra-frame flag and the IBC flag are false), an inter-frame prediction operation of the GPM can be generated. Accordingly, the geometric partitions can be predicted based on the motion compensated blocks by using inter prediction. Due to the flexibility of GPM, three different configurations in intra-coded frames (e.g., intra-IBC, intra-intra, and IBC-IBC) and nine different configurations in inter-coded frames (e.g., inter-IBC, IBC-IBC, inter-inter, intra-intra, and intra-IBC) can be applied.
[0156] In an embodiment, the GPM mode can be combined with two prediction types. For example, the GPM mode can be combined with the intra-frame prediction mode and the prediction sub-combination of IBC. In the example, for the first geometric partition of the GMP, the intra-frame prediction flag can be signaled to indicate whether the intra-frame prediction mode is used. If the intra-frame prediction flag of the first geometric partition is true, it can be inferred that the intra-frame prediction flag of the second geometric partition is false. In the example, for both the first geometric partition and the second geometric partition, the intra-frame prediction flag can be set to false by default. For each geometric partition, if the intra-frame prediction mode is false for a corresponding one of the geometric partitions, the BV information of the IBC can be signaled to generate an intra-frame copy block for the corresponding one of the geometric partitions. Otherwise, if the intra-frame prediction flag is true, the intra-frame prediction mode can be signaled to indicate which intra-frame prediction mode can be used for the intra-frame prediction process, where the corresponding one of the geometric partitions can be predicted by the intra-frame prediction mode signaled.
[0157] In an embodiment, the GPM mode may be combined with the prediction sub-mode of the inter prediction mode and IBC. For each of the geometric partitions of the GPM, an IBC flag may first be signaled to indicate whether IBC is used for the corresponding one of the geometric partitions. If the IBC flag is true, the BV information of the IBC may be signaled to generate an intra-frame copy block for the corresponding one of the geometric partitions. Otherwise, if the IBC flag is false, the inter prediction process may be applied to the corresponding one of the geometric partitions.
[0158] In some embodiments, if both partitions are predicted with the same prediction type (eg, IBC), no blending may be used along the boundary of the two partitions. For example, samples along the boundary between a first partition and a second partition of the GPM may not be blended.
[0159] The GPM mode may be embedded with an IBC merge (or a merge mode of IBC), which may be similar to an embodiment in which a VVC GPM mode is embedded with a merge mode of inter prediction. In an example, in an intra slice (or a slice predicted by intra prediction), in a GPM mode with IBC merge, a combination of IBC and intra prediction may be allowed. Accordingly, a first partition of the GPM may be IBC predicted and a second partition of the GPM may be intra predicted. In another example, in an inter slice (or a slice predicted by inter prediction), a combination of IBC and inter may be allowed when intra partitions are not allowed in any partition of the GPM with IBC merge.
[0160] In the present disclosure, the prediction mode of a CU encoded by a GPM with IBC may be set (or determined) to a specified mode. The mode may include an IBC mode, an INTER mode, and an INTER_IBC mode. Each of the IBC mode, the INTER mode, and the INTER_IBC mode may include one or a combination of IBC, intra prediction, and inter prediction.
[0161] In an embodiment, the prediction mode of a GPM with IBC and intra in an intra slice may be set to an IBC mode (e.g., MODE_IBC). The IBC mode (e.g., MODE_IBC) may include IBC-IBC and IBC-intra for geometric partitions of the GPM. If the intra flag (e.g., intra_flag) of a geometric partition is true, intra prediction may be applied to the geometric partition. Otherwise (e.g., the intra flag is false), IBC may be applied to the geometric partition.
[0162] The prediction mode of a GPM with IBC and inter in an inter slice can be set to INTER mode (e.g., MODE_INTER). INTER mode can include IBC-IBC and IBC-INTER. If the inter flag (e.g., inter_flag) of a geometric partition is true, inter prediction can be applied to the geometric partition. Otherwise (e.g., the inter flag is false), IBC can be applied to the geometric partition.
[0163] In one example, the BV information of a GPM whose reference index (or reference frame index) is -1 can be used to distinguish neighbor information of neighbor blocks of an IBC merge list by checking (i) whether the neighbor block is predicted by INTER mode and (ii) whether the reference frame index is -1.
[0164] The prediction mode of GPM with IBC and inter in inter slices may be set to INTER_IBC mode (eg, MODE_INTER_IBC). INTER_IBC mode (eg, MODE_INTER_IBC) may indicate that MV or BV information may be used as a predictor for a conventional inter merge list or an IBC merge list, respectively.
[0165] A block can have multiple prediction modes. The prediction bits associated with multiple prediction modes can be combined into the prediction mode of the current CU. For example, three prediction bits associated with inter, intra, and IBC, respectively, can be combined into the prediction mode of the current CU. For an inter-frame prediction block (or a block predicted by inter-frame prediction), the prediction bit used only for inter-frame can be true. Similarly, for an intra-frame prediction mode (or a block predicted by intra-frame prediction), the prediction bit used only for intra-frame can be true, and for an IBC block (or a block predicted by IBC), the prediction bit used only for IBC can be true. If the current CU is marked as having GPM for IBC and inter-frame, both the prediction bits used for inter-frame and IBC can be set to true. If the current CU is marked as having GPM for IBC and intra-frame, both the prediction bits used for intra-frame and IBC can be set to true. When obtaining a predictor or generating an MPM list, the relevant prediction bits can be used to check whether the prediction mode and motion information can be used for other CUs.
[0166] In the present disclosure, constraints may be applied to the use of motion modes (e.g., merge mode or AMVP mode) of IBC for GPM with IBC. For example, when IBC is used for GPM, only merge mode is allowed for IBC to minimize the transmission of BV-encoded auxiliary information.
[0167] If both geometric partitions are predicted by IBC, the merge indexes of two different IBCs may be different. Therefore, the first merge index may be assigned to the first of the two geometric partitions, and the second merge index may be assigned to the second of the two geometric partitions.
[0168] In the present disclosure, BV information of the GPM with IBC may be stored in a unit such as a 4×4 unit (or a 4×4 pixel unit).
[0169] The BV information of the GPM with IBC may be stored in 4×4 units (or 4×4 pixel units). In an example, for each partition, the inter-predicted MV or the BV of IBC may be stored in 4×4 units. In an example, the bidirectional motion information may be stored in corresponding 4×4 units along the geometric boundary of the two partitions. When IBC is used for the GPM, the bidirectional motion information may be composed (or generated) of two unidirectional motions such as BV and MV. In an example, if the motion information (e.g., MV) of a geometric partition comes from reference list 0 (or reference list L0), the BV information may not be stored in 4×4 units. The bidirectional motion information may be set to motion information only from reference list 0. In an example, if both unidirectional predictions are IBC, only one of the BVs may be stored in 4×4 units.
[0170] When intra prediction mode is also available for GPM, a corresponding flag for each reference list may be signaled to indicate whether the BV information and / or MV information at each reference list is valid.
[0171] For bidirectional motion information within a 4×4 unit along (or across) the geometric boundary of two geometric partitions, when the motion information (e.g., MV) comes from reference list X, the BV information can be set to the motion information at reference list (1-X), where X can be 0 or 1. Therefore, the MV can be determined from reference list X and the BV can be determined from reference list (1-X).
[0172] Bidirectional motion information can be combined with two BVs from two geometric partitions. The information of these two BVs can be set as motion information of two reference lists (e.g., L0 and L1). For example, one BV of the first of the two geometric partitions can be from reference list L0, and another BV of the second of the two geometric partitions can be from reference list L1.
[0173] When two geometry partitions are applied to IBC, the motion information of reference list X can be derived from the BV information from partition X. The partition index X can be derived from the merged GPM index. The merged GPM index can be 0 or 1.
[0174] In the present disclosure, a merged list for IBC and GPM with IBC may be derived.
[0175] The construction of the merge list for a GPM with IBC may be identical or similar to the construction of the merge mode for IBC.
[0176] When intra prediction mode is available for GPM, a flag indicating whether the BV information of each reference list (e.g., L1 and L0) is valid can be detected. If the flag is true, the BV information with a reference index of -1 can be used as an IBC spatial BV candidate for the merge list of GPM with IBC.
[0177] Based on whether the reference index associated with the motion information is -1, the motion information of each reference list can be determined. If the reference index is -1, the motion information associated with the reference index of -1 for each reference list can be used for the construction of the IBC merge list. Therefore, each IBC spatial BV candidate can have bidirectional BV information from list 0 (or reference list L0) and list 1 (or reference list L1), respectively, and both BVs can be added to the IBC merge candidate list.
[0178] In an embodiment, the motion information of each reference list may be determined based on whether the reference index associated with the motion information is -1. If the reference index associated with the motion information of reference list 0 is true, the motion information (also referred to as BV) of reference list 0 with a reference index of -1 may be used for IBC merge list construction. Otherwise, if the reference index associated with the motion information of reference list 1 is true, the motion information (also referred to as BV) of reference list 1 with a reference index of -1 may be used for IBC merge list construction. For each spatial neighboring block, at most one BV information may be applied to the IBC merge list.
[0179] In the present disclosure, two geometric partitions of the GPM may be predicted from an IBC block by using IBC, or from neighboring samples by using intra prediction. FIG. 15A to FIG. 15C Three examples are shown for different combinations of prediction blocks for two geometric partitions of a GPM in an intra-coded frame. Fig.15AAs shown, the current block (1504) and two reconstructed blocks (1510) and (1512) may be included in the intra-coded frame (1502). The current block (1504) may be partitioned into two geometric partitions (1506) and (1508) by GPM. Both geometric partitions (1506) and (1508) may be predicted from the IBC block, for example, the two geometric partitions (1506) and (1508) may be predicted from the reconstructed blocks (1510) and (1512), respectively. Therefore, the block vector BV0 may be associated with the partition (1506) and the reconstructed block (1510), and the block vector BV1 may be associated with the partition (1508) and the reconstructed block (1512). In addition, the block vector BV0 and the block vector BV1 may not be the same.
[0180] exist Fig. 15B In the embodiment of the present invention, the current block (1516) may be included in the intra-coded frame (1514). The current block (1516) may be partitioned into two geometric partitions (1518) and (1520). The two geometric partitions (1518) and (1520) may be predicted from adjacent samples using an intra-prediction mode, and the intra-prediction modes of the two geometric partitions (1518) and (1520) may be different. For example, partition (1518) may be predicted based on adjacent samples from intra-prediction block B, and partition (1520) may be predicted based on adjacent samples from intra-prediction block A.
[0181] exist Fig. 15C In the example, the current block (1524) may be included in the intra-coded frame (1522). The current block (1524) may be partitioned into two geometric partitions (1526) and (1528). Based on the block vector (BV IBC ), the geometric partition (1526) can be predicted from the IBC block (1530), and the geometric partition (1528) can be predicted from the neighboring pixels of the intra-frame prediction block through the intra-frame prediction mode.
[0182] The motion information (e.g., MV) of the CU can be stored. For example, in VVC, the motion information of the CU can be stored at a granularity of 4×4 samples. The stored motion information can be used for MV prediction and merge list construction. Similarly, the BV information of the CU can also be stored by using 4×4 units (or 4×4 pixel units). The stored BV information can be used for IBC and IBC merge list construction. In GPM, since there are two geometric partitions within the CU, three types of motion information including MV and BV can be involved. Based on the geometric partitions, the motion information storage and BV information storage of the GPM can be adaptively designed.
[0183] The kinematic storage type derivation of the GPM can also be applied to the GPM with IBC. For a 4×4 cell, the kinematic storage type, such as sType(T), can be determined by the displacement d from the center of the 4×4 cell to the partition boundary. T = 0 or T = 1 can indicate that the kinematic storage type from the geometric partition P 0 or P The unidirectional MV or BV of 1 is stored in the corresponding 4×4 unit. T = 2 may indicate that the bidirectional motion information composed of two unidirectional motion vectors or block vectors is stored in the corresponding 4×4 unit.
[0184] For T = 2, if IBC is available for GPM, there may be three different bidirectional motion types. For example, the first type may include normal bidirectional motion information (e.g., MV) combined (or generated) by two inter-frame merge prediction blocks. The second type may be associated with a combination of IBC and inter-frame merge prediction. Therefore, one of the two unidirectional motion information may be the BV from the IBC block, and the other of the two unidirectional motion information may be the MV from the inter-frame block. Depending on the motion information storage scheme, the motion information from the inter-frame block may be stored in 4×4 units, or the BV information may be stored in 4×4 units for construction of the BV candidate list. In the third type, for 4×4 units along the geometric boundary of two geometric partitions, the 4×4 units that are adjacent to the two geometric partitions (e.g., P 0 or P 1) Two BV information associated. Because there may be no reference list information for the IBC merge list, the rule of motion storage can be adopted, in which the information from the same reference list can be stored. P 0 or P 1 motion information. Accordingly, when P 0 or P 1 motion information from the same reference list, the BV storage information can be set to P In addition, the MV or BV information of GPM merge index 0 can be used P 0 geometry partition, GPM merge index 1 MV or BV information can be used P 1 geometric partition.
[0185] The motion information of a GPM with IBC can be encoded by a merge mode. The motion vector for each partition can come from a merge motion mode, or from a merge BV of the IBC. Unlike the two reference lists in a conventional motion mode list, only one BV is available for each merge candidate in an IBC merge list. Therefore, each partition can have a corresponding BV, and each BV can be a merge candidate in an IBC merge list. The IBC merge list can be directly reused for the IBC merge list of a GPM. For example, each IBC merge candidate can be used for an IBC in a GPM with IBC.
[0186] Fig.16 A flow chart outlining an exemplary decoding process (1600) according to some embodiments of the present disclosure is shown. Fig.17 A flowchart outlining an exemplary encoding process (1700) according to some embodiments of the present disclosure is shown. The proposed processes may be used individually or in combination in any order. Further, each of the processes (or embodiments), encoders, and decoders may be implemented by processing circuitry (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored in a non-volatile computer-readable medium.
[0187] The operations of the processes (eg, (1600) and (1700)) may be combined or arranged in any number or order as desired. In an embodiment, two or more of the operations of the processes (eg, (1600) and (1700)) may be performed in parallel.
[0188] The process (e.g., (1600) and (1700)) can be used to reconstruct and / or encode a block in order to generate a prediction block for the block in reconstruction. In various embodiments, the process (e.g., (1600) and (1700)) is performed by a processing circuit, such as a processing circuit in a terminal device (310), (320), (330), and (340); a processing circuit that performs the function of a video encoder (403); a processing circuit that performs the function of a video decoder (410); a processing circuit that performs the function of a video decoder (510); a processing circuit that performs the function of a video encoder (603), etc. In some embodiments, the process (e.g., (1600) and (1700)) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (e.g., (1600) and (1700)).
[0189] like Fig.16 As shown, the process (1600) may start from (S1601) and proceed to (S1610). At (S1610), encoded information of a current block in a current picture may be received from an encoded video code stream.
[0190] At (S1620), based on a geometric partition mode (GPM), the current block may be partitioned into a first partition and a second partition.
[0191] At (S1630), in response to determining that the current block is encoded in GPM, based on at least one flag associated with the prediction type, a first prediction type for a first partition of the current block and a second prediction type for a second partition of the current block are determined, wherein the prediction type includes one of intra prediction, inter prediction, and intra block copy (IBC). Each of the first prediction type and the second prediction type may be one of intra prediction, inter prediction, and IBC.
[0192] At (S1640), based on the determined first prediction type, a first prediction mode for a first partition of the current block may be determined.
[0193] At (S1650), based on the determined second prediction type, a second prediction mode for a second partition of the current block may be determined.
[0194] At (S1660), based on the first prediction mode, a first partition of the current block may be reconstructed, and based on the second prediction mode, a second partition of the current block may be reconstructed.
[0195] To determine the first prediction type, in an example, based on a first flag in the at least one flag being true, the first prediction type for the first partition of the current block may be determined as intra prediction. In an example, based on a first flag in the at least one flag being false and a second flag in the at least one flag being true, the first prediction type for the first partition of the current block may be determined as IBC. In another example, based on the first flag being false and the second flag being false, the first prediction type for the first partition of the current block may be determined as inter prediction.
[0196] To determine the first prediction mode, in response to a first flag of the at least one flag being true, based on a first syntax element included in the encoded information, an intra prediction mode for a first partition of the current block may be determined. In response to a second flag of the at least one flag being true, based on a second syntax element included in the encoded information, a block vector of an IBC for the first partition of the current block may be determined. In response to the first flag of the at least one flag being false and the second flag of the at least one flag being false, based on a third syntax element included in the encoded information, an inter prediction mode for the first partition of the current block may be determined.
[0197] In an example, a first prediction mode for a first partition may be determined to be associated with one of a first intra prediction mode and a first block vector of IBC. A second prediction mode for a second partition may be determined to be associated with one of a second intra prediction mode and a second block vector of IBC.
[0198] In an example, a first prediction mode for a first partition may be determined to be associated with one of a first inter prediction mode and a first block vector of IBC. A second prediction mode for a second partition may be determined to be associated with one of a second inter prediction mode and a second block vector of IBC.
[0199] In response to the first prediction type being IBC and the second prediction type being IBC, samples along a boundary between the first partition and the second partition may not be mixed.
[0200] In some embodiments, the encoded information may include an intra prediction bit indicating whether one of the first prediction type and the second prediction type is an intra prediction. The encoded information may include an inter prediction bit indicating whether one of the first prediction type and the second prediction type is an inter prediction. The encoded information may also include an IBC prediction bit indicating whether one of the first prediction type and the second prediction type is an IBC prediction.
[0201] In the process ( 1600 ), in response to the first prediction type being IBC, a first partition of the current block may be predicted by a merge mode of IBC.
[0202] In an embodiment, in response to the motion storage type being 0 or 1, one of the motion vector of inter-frame prediction and the block vector of IBC may be stored in units of 4×4 pixels. In another embodiment, in response to the motion storage type being 2, in an example, the first motion vector associated with the first partition and the second motion vector associated with the second partition may be stored in units of 4×4 pixels. In another example, the motion vector associated with the first partition and the block vector associated with the second partition may be stored in units of 4×4 pixels. In yet another example, one of the first block vector associated with the first partition and the second block vector associated with the second partition may be stored in units of 4×4 pixels.
[0203] In response to the first prediction type being IBC, a first block vector associated with the first partition may be determined as a first merge candidate in the IBC merge list. In response to the second prediction type being IBC, a second block vector associated with the second partition may be determined as a second merge candidate in the IBC merge list.
[0204] The process (1600) may be modified as appropriate. One or more steps in the process (1600) may be improved and / or omitted. Additional one or more steps may be added. Any suitable implementation order may be used.
[0205] like Fig.17 As shown, the process (1700) may start from (S1701) and proceed to (S1710). At (S1710), a current block in a current picture of a video may be partitioned into a first partition and a second partition based on a geometric partition mode (GPM).
[0206] At (S1720), a first prediction type for a first partition of the current block may be determined, and a second prediction type for a second partition of the current block may be determined. Each of the first prediction type and the second prediction type may be one of intra prediction, inter prediction, and IBC.
[0207] At (S1730), based on the determined first prediction type, a first prediction mode for a first partition of the current block may be determined.
[0208] At (S1740), based on the determined second prediction type, a second prediction mode for a second partition of the current block may be determined.
[0209] At (S1750), encoded information of the current block may be generated. The encoded information may include at least one flag associated with one of intra prediction, inter prediction, and IBC, and the at least one flag indicates a first prediction type for the first partition and a second prediction type for the second partition.
[0210] Then, the process proceeds to (S1799) and terminates.
[0211] The process (1700) may be modified as appropriate. One or more steps in the process (1700) may be improved and / or omitted. Additional one or more steps may be added. Any suitable order of implementation may be used.
[0212] The techniques described above may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media. Fig.18 A computer system (1800) suitable for implementing certain embodiments of the disclosed subject matter is shown.
[0213] The computer software may be encoded using any suitable machine code or computer language that may be subjected to assembly, compilation, linking or similar mechanisms to create code comprising instructions that may be executed directly or through interpretation, microcode execution, etc., by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc.
[0214] The instructions may be executed on various types of computers or computer components, including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, Internet of Things devices, etc.
[0215] Fig.18 The components for computer system (1800) shown in the example are exemplary in nature and are not intended to imply any limitation on the scope of use or functionality of computer software implementing embodiments of the present application. Nor should the configuration of components be interpreted as having any dependency or requirement on any one or combination of components shown in the exemplary embodiment of computer system (1800).
[0216] The computer system (1800) may include certain human-machine interface input devices. Such human-machine interface input devices may be responsive to input from one or more human users, for example, through tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, taps), visual input (e.g., gestures), olfactory input (not depicted). The human-machine interface devices may also be used to capture certain media that may not be directly related to a person's conscious input, such as audio (e.g., speech, music, ambient sound), images (e.g., scanned images, photographic images obtained from a still image camera), and videos (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
[0217] Input human interface devices may include one or more of the following (only one of each is depicted): keyboard (1801), mouse (1802), track pad (1803), touch screen (1810), data gloves (not shown), joystick (1805), microphone (1806), scanner (1807), camera (1808).
[0218] The computer system (1800) may also include certain human-machine interface output devices. Such human-machine interface output devices may stimulate the senses of one or more human users through, for example, tactile output, sound, light, and smell / taste. Such human-machine interface output devices may include tactile output devices (e.g., tactile feedback of a touch screen (1810), a data glove (not shown), or a joystick (1805), although there may also be tactile feedback devices that do not serve as input devices), audio output devices (e.g., speakers (1809), headphones (not depicted)), visual output devices (e.g., screens (1810), including cathode ray tube (CRT) screens, liquid crystal display (LCD) screens, plasma screens, organic light emitting diode (OLED) screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities - some of which are capable of outputting two-dimensional visual output or output greater than three dimensions through, for example, stereographic output; virtual reality glasses (not depicted), holographic displays and smoke boxes (not depicted), and printers (not depicted).
[0219] The computer system (1800) may also include human-accessible storage devices and associated media for the storage devices, such as optical media including CD / DVD ROM / RW (1820) with CD / DVD and other media (1821), thumb drives (1822), removable hard drives or solid-state drives (1823), older magnetic media such as tapes and floppy disks (not depicted), ROM / application specific integrated circuit (ASIC) / programmable logic device (PLD) based special devices, such as security protection devices (not depicted), and the like.
[0220] Those skilled in the art will also understand that the term "computer-readable medium" used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transient signals.
[0221] The computer system (1800) may also include an interface (1854) to one or more communication networks (1855). The network may be, for example, wireless, wired, optical. The network may also be local, wide area, metropolitan, vehicle-mounted and industrial, real-time, delay-tolerant, and the like. Examples of networks include local area networks such as Ethernet, wireless LAN, cellular networks including Global System for Mobile Communications (GSM), third generation (3G), fourth generation (4G), fifth generation (5G), long term evolution (LTE), etc., TV wired or wireless wide area digital networks including cable TV, satellite TV, and terrestrial broadcast TV, vehicle-mounted networks and industrial networks including controller area network bus (CANBus), etc. Some networks typically require an external network interface adapter attached to some general data port or peripheral bus (1849) (e.g., a universal serial bus (USB) port of the computer system (1800)); other networks are typically integrated into the core of the computer system (1800) by attaching to a system bus as described below (e.g., integrated into a PC computer system through an Ethernet interface, or integrated into a smart phone computer system through a cellular network interface). Using any of these networks, the computer system (1800) can communicate with other entities. Such communications can be one-way receive only (e.g., broadcast TV), one-way send only (e.g., CANBus connected to some CANBus devices), or bidirectional, for example, using a local area digital network or a wide area digital network to connect to other computer systems. Certain protocols and protocol stacks can be used on each of those networks and network interfaces as described above.
[0222] The above-mentioned human-machine interface device, human-accessible storage device, and network interface may be attached to the core ( 1840 ) of the computer system ( 1800 ).
[0223] The core (1840) may include one or more central processing units (CPUs) (1841), graphics processing units (GPUs) (1842), dedicated programmable processing units in the form of field programmable gate areas (FPGAs) (1843), hardware accelerators for certain tasks (1844), graphics adapters (1850), and the like. These devices, along with read-only memory (ROM) (1845), random access memory (1846), and internal mass storage devices (1847) such as internal non-user accessible hard drives, solid-state drives (SSDs), etc., may be connected via a system bus (1848). In some computer systems, the system bus (1848) may be accessible via one or more physical plugs to enable expansion with additional CPUs, GPUs, and the like. Peripheral devices may be attached to the core's system bus (1848) directly or via a peripheral bus (1849). In one example, a screen (1810) may be connected to a graphics adapter (1850). Architectures for peripheral buses include peripheral component interconnect (PCI), USB, and the like.
[0224] The CPU (1841), GPU (1842), FPGA (1843), and accelerator (1844) may execute certain instructions, which in combination may constitute the above-mentioned computer code. The computer code may be stored in ROM (1845) or RAM (1846). Transient data may also be stored in RAM (1846), while permanent data may be stored, for example, in an internal mass storage device (1847). Fast storage and retrieval of any memory device may be achieved by using a cache memory, which may be closely associated with one or more CPUs (1841), GPUs (1842), mass storage devices (1847), ROMs (1845), RAMs (1846), etc.
[0225] The computer readable medium may have computer codes for performing various computer-implemented operations. The media and computer codes may be media and computer codes designed and constructed specifically for the purpose of this application, or may be of a type well known and available to technicians in the computer software field.
[0226] By way of example and not limitation, a computer system having the architecture (1800) and in particular the core (1840) may provide functionality resulting from the execution of software embodied in one or more tangible computer-readable media by a processor (including a CPU, GPU, FPGA, accelerator, etc.). Such computer-readable media may be media associated with the user-accessible mass storage device introduced above and certain storage devices of a non-temporary nature of the core (1840) (e.g., a core internal mass storage device (1847) or ROM (1845)). Software implementing various embodiments of the present application may be stored in such devices and executed by the core (1840). Depending on specific needs, the computer-readable medium may include one or more memory devices or chips. The software may enable the core (1840) and, in particular, the processor therein (including a CPU, GPU, FPGA, etc.) to perform a specific process or a specific portion of a specific process described herein, including defining a data structure stored in the RAM (1846) and modifying such a data structure according to a process defined by the software. Additionally or alternatively, the computer system may provide functionality produced by logic hardwired or otherwise embodied in circuits (e.g., accelerators (1844)) that may operate in place of or in conjunction with software to perform specific processes or specific portions of specific processes described herein. References to software may encompass logic, and vice versa, where appropriate. References to computer-readable media may encompass circuits (e.g., integrated circuits (ICs)) storing software for execution, circuits embodying logic for execution, or both, where appropriate. The present application encompasses any suitable combination of hardware and software.
[0227] Appendix A: Acronyms
[0228] JEM: Joint Exploration Model
[0229] VVC: Versatile Video Coding
[0230] BMS: Benchmark Set, benchmark set
[0231] MV: Motion Vector
[0232] HEVC: High Efficiency Video Coding
[0233] SEI: Supplementary Enhancement Information, auxiliary enhancement information
[0234] VUI: Video Usability Information, video availability information
[0235] GOP: Groups of Pictures, picture group
[0236] TU: Transform Unit
[0237] PU: Prediction Unit
[0238] CTU: Coding Tree Unit, coding tree unit
[0239] CTB: Coding Tree Block, coding tree block
[0240] PB: Prediction Block
[0241] HRD: Hypothetical Reference Decoder, hypothetical reference decoder
[0242] SNR: Signal Noise Ratio
[0243] CPU: Central Processing Unit
[0244] GPU: Graphics Processing Unit, Graphics Processing Unit
[0245] CRT: Cathode Ray Tube
[0246] LCD: Liquid-Crystal Display
[0247] OLED: Organic Light-Emitting Diode
[0248] CD: Compact Disc
[0249] DVD: Digital Video Disc
[0250] ROM:Read-Only Memory
[0251] RAM: Random Access Memory
[0252] ASIC: Application-Specific Integrated Circuit
[0253] PLD:Programmable Logic Device, programmable logic device
[0254] LAN: Local Area Network
[0255] GSM: Global System for Mobile communications
[0256] LTE: Long-Term Evolution
[0257] CANBus: Controller Area Network Bus, controller area network bus
[0258] USB: Universal Serial Bus
[0259] PCI: Peripheral Component Interconnect, peripheral device interconnect
[0260] FPGA: Field Programmable Gate Array
[0261] SSD: Solid-state drive
[0262] IC: Integrated Circuit
[0263] CU: Coding Unit
[0264] Although the present application describes several exemplary embodiments, various modifications, permutations and combinations, and various alternative equivalents are possible within the scope of the present application. Therefore, it should be understood that within the spirit and scope of the application, those skilled in the art can design various systems and methods that are not explicitly shown or described herein but can embody the principles of the present application.
Claims
1. A video decoding method, characterized in that: The method comprises: Receiving encoded information of a current block in a current picture of a video from an encoded video bitstream; Partitioning the current block into a first partition and a second partition based on a geometric partition mode (GPM); In response to determining that the current block is encoded in a geometric partition mode, determining a first prediction type for a first partition of the current block and a second prediction type for a second partition of the current block based on at least one flag associated with a prediction type, wherein the prediction type comprises one of intra prediction, inter prediction, and intra block copy (IBC), and each of the first prediction type and the second prediction type is one of intra prediction, inter prediction, and IBC; Determining a first prediction mode for a first partition of the current block based on the determined first prediction type; Based on the determined second prediction type, determining a second prediction mode for a second partition of the current block; and Reconstructing a first partition of the current block based on the first prediction mode, and reconstructing a second partition of the current block based on the second prediction mode; Wherein, determining the first prediction type includes: Based on a first flag of the at least one flag being true, determining that a first prediction type for a first partition of the current block is intra prediction; determining, based on the first flag of the at least one flag being false and the second flag of the at least one flag being true, that a first prediction type for a first partition of the current block is IBC; and Based on the first flag being false and the second flag being false, it is determined that the first prediction type for the first partition of the current block is inter prediction.
2. The method according to claim 1, characterized in that Determining the first prediction mode includes one of the following: In response to a first flag of the at least one flag being true, determining an intra prediction mode for a first partition of the current block based on a first syntax element included in the encoded information; In response to a second flag of the at least one flag being true, determining a block vector of an IBC for a first partition of the current block based on a second syntax element included in the encoded information; as well as In response to a first flag of the at least one flag being false and a second flag of the at least one flag being false, an inter-prediction mode for a first partition of the current block is determined based on a third syntax element included in the encoded information.
3. The method according to claim 1, characterized in that: The determining the first prediction mode comprises: determining that the first prediction mode for the first partition is associated with one of a first intra prediction mode and a first block vector of the IBC; and The determining the second prediction mode includes: determining that the second prediction mode for the second partition is associated with one of a second intra prediction mode and a second block vector of the IBC.
4. The method according to claim 1, characterized in that: The determining the first prediction mode comprises: determining that the first prediction mode for the first partition is associated with one of a first inter-frame prediction mode and a first block vector of IBC; and The determining the second prediction mode includes: determining that the second prediction mode for the second partition is associated with one of a second inter-frame prediction mode and a second block vector of IBC.
5. The method according to claim 1, characterized in that In response to the first prediction type being IBC and the second prediction type being IBC, samples along a boundary between the first partition and the second partition are not mixed.
6. The method according to claim 1, characterized in that The encoded information further includes: an intra prediction bit, indicating whether one of the first prediction type and the second prediction type is an intra prediction; an inter prediction bit, indicating whether one of the first prediction type and the second prediction type is an inter prediction; and An IBC prediction bit indicating whether one of the first prediction type and the second prediction type is an IBC prediction.
7. The method according to claim 1, characterized in that In response to the first prediction type being IBC, predicting the first partition of the current block by a merge mode of IBC.
8. The method according to claim 1, characterized in that Further including: In response to the motion storage type being 0 or 1, one of the inter-frame predicted motion vector and the block vector of the IBC is stored in a unit of 4×4 pixels; as well as In response to the motion storage type being 2, one of the following is stored: storing a first motion vector associated with the first partition and a second motion vector associated with the second partition in units of 4×4 pixels; storing the motion vector associated with the first partition and the block vector associated with the second partition in units of 4×4 pixels; as well as One of a first block vector associated with the first partition and a second block vector associated with the second partition is stored in units of 4×4 pixels.
9. The method according to claim 1, characterized in that: Further including: In response to the first prediction type being IBC, determining a first block vector associated with the first partition as a first merge candidate in an IBC merge list; as well as In response to the second prediction type being IBC, a second block vector associated with the second partition is determined to be a second merge candidate in the IBC merge list.
10. A video decoding device, characterized in that: include: The processing circuit is configured to: Receiving encoded information of a current block in a current picture of a video from an encoded video bitstream; Partitioning the current block into a first partition and a second partition based on a geometric partition mode (GPM); In response to determining that the current block is encoded in a geometric partition mode, determining a first prediction type for a first partition of the current block and a second prediction type for a second partition of the current block based on at least one flag associated with a prediction type, wherein the prediction type comprises one of intra prediction, inter prediction, and intra block copy (IBC), and each of the first prediction type and the second prediction type is one of intra prediction, inter prediction, and IBC; Determining a first prediction mode for a first partition of the current block based on the determined first prediction type; Based on the determined second prediction type, determining a second prediction mode for a second partition of the current block; and Based on the first prediction mode, reconstructing a first partition of the current block, and based on the second prediction mode, reconstructing a second partition of the current block; Wherein, the processing circuit is configured as: Based on a first flag of the at least one flag being true, determining that a first prediction type for a first partition of the current block is intra prediction; determining, based on a first flag of the at least one flag being false and a second flag of the at least one flag being true, that a first prediction type for a first partition of the current block is IBC; and Based on the first flag being false and the second flag being false, it is determined that the first prediction type for the first partition of the current block is inter prediction.
11. The device according to claim 10, characterized in that The processing circuit is configured to: In response to a first flag of the at least one flag being true, determining an intra prediction mode for a first partition of the current block based on a first syntax element included in the encoded information; In response to a second flag of the at least one flag being true, determining a block vector of an IBC for a first partition of the current block based on a second syntax element included in the encoded information; as well as In response to a first flag of the at least one flag being false and a second flag of the at least one flag being false, an inter-prediction mode for a first partition of the current block is determined based on a third syntax element included in the encoded information.
12. The device according to claim 10, characterized in that The processing circuit is configured to: determining that the first prediction mode for the first partition is associated with one of a first intra prediction mode and a first block vector of an IBC; and The second prediction mode determined for the second partition is associated with one of a second intra prediction mode and a second block vector of IBC.
13. The device according to claim 10, characterized in that The processing circuit is configured to: determining that the first prediction mode for the first partition is associated with one of a first inter prediction mode and a first block vector of IBC; and The second prediction mode determined for the second partition is associated with one of a second inter prediction mode and a second block vector of IBC.
14. The device according to claim 10, characterized in that In response to the first prediction type being IBC and the second prediction type being IBC, samples along a boundary between the first partition and the second partition are not mixed.
15. The device according to claim 10, characterized in that The encoded information further includes: an intra prediction bit, indicating whether one of the first prediction type and the second prediction type is an intra prediction; an inter prediction bit, indicating whether one of the first prediction type and the second prediction type is an inter prediction; and An IBC prediction bit indicating whether one of the first prediction type and the second prediction type is an IBC prediction.
16. A video encoding method, characterized in that: The method comprises: Partitioning a current block in a current picture of the video into a first partition and a second partition based on a geometric partition mode (GPM); Determining a first prediction type for a first partition of the current block and a second prediction type for a second partition of the current block, wherein each of the first prediction type and the second prediction type is one of intra prediction, inter prediction, and IBC; Determining a first prediction mode for a first partition of the current block based on the determined first prediction type; Determining a second prediction mode for a second partition of the current block based on the determined second prediction type; Generate encoded information of a current block, the encoded information comprising at least one flag associated with one of intra prediction, inter prediction, and IBC, the at least one flag indicating a first prediction type for a first partition of the current block and a second prediction type for a second partition of the current block; wherein, when a first flag of the at least one flag is true, it indicates that a first prediction type for a first partition of the current block is intra prediction; When the first flag of the at least one flag is false and the second flag of the at least one flag is true, indicating that a first prediction type for a first partition of the current block is IBC; and When the first flag is false and the second flag is false, it indicates that the first prediction type for the first partition of the current block is inter prediction.
17. A video encoding device, characterized in that: include: The processing circuit is configured to: Partitioning a current block in a current picture of the video into a first partition and a second partition based on a geometric partition mode (GPM); Determining a first prediction type for a first partition of the current block and a second prediction type for a second partition of the current block, wherein each of the first prediction type and the second prediction type is one of intra prediction, inter prediction, and IBC; Determining a first prediction mode for a first partition of the current block based on the determined first prediction type; Determining a second prediction mode for a second partition of the current block based on the determined second prediction type; Generate encoded information of a current block, the encoded information comprising at least one flag associated with one of intra prediction, inter prediction, and IBC, the at least one flag indicating a first prediction type for a first partition of the current block and a second prediction type for a second partition of the current block; wherein, when a first flag of the at least one flag is true, it indicates that a first prediction type for a first partition of the current block is intra prediction; When the first flag of the at least one flag is false and the second flag of the at least one flag is true, indicating that a first prediction type for a first partition of the current block is IBC; and When the first flag is false and the second flag is false, it indicates that the first prediction type for the first partition of the current block is inter prediction.
18. An electronic device, characterized in that: The method comprises a memory for storing computer-readable instructions; a processor for reading the computer-readable instructions and executing the method according to any one of claims 1 to 9 and 16 as instructed by the computer-readable instructions.
19. A method for processing a code stream, characterized in that: A code stream is stored on a non-volatile computer-readable storage medium, wherein the code stream is decoded according to the decoding method according to any one of claims 1 to 9, or is generated based on the encoding method according to claim 16.
