Methods, apparatus, non-transitory computer-readable storage media, and computer program products for video decoding or video encoding

By inferring the values ​​of the disable flag and the temporal motion vector prediction flag during video encoding and decoding, the problems of redundant signaling and inconsistency in the VVC video coding standard are solved, the encoding efficiency and decoding stability are improved, and a more efficient video encoding and decoding process is achieved.

CN123075191APending Publication Date: 2026-11-10BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611539959.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2020-04-26
Filing Date
2021-04-07
Publication Date
2026-11-10

AI Technical Summary

Technical Problem

In video encoding and decoding, existing technologies suffer from redundant signaling and inconsistencies, leading to low encoding efficiency and uncertain decoding behavior. In particular, in the VVC video coding standard, improper signaling of syntax elements can cause redundancy or decoding errors.

Method used

By inferring the values ​​of the disable flag and the time motion vector prediction flag from the image header during the video encoding and decoding process, and using the enable flag and weight information in the image parameter set, combined with the image size offset, the signaling of the syntax elements is constrained to ensure consistency and effectiveness.

Benefits of technology

It improves the encoding efficiency of video encoding and decoding, reduces redundant signaling, ensures the stability and consistency of the decoding process, and enhances video quality and encoding efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123075191A_ABST
    Figure CN123075191A_ABST
Patent Text Reader

Abstract

Methods, apparatus, non-transitory computer-readable storage media, and computer program products for video decoding or video encoding are provided. The method includes signaling one or more enable flags in a sequence parameter set (SPS) of a picture; selectively signaling disable flags in a picture header (PH) associated with the picture, wherein the disable flags specify whether encoding / decoding tools are disabled for one or more stripes associated with the PH, wherein, in response to the disable flag being determined not to be signaled in the PH, the value of the disable flag is inferred based on the one or more enable flags signaled in the sequence parameter set (SPS) of the picture.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention application with application number 202180026936.X, application date April 7, 2021, entitled "Method and apparatus for sending syntax elements by signal in video encoding and decoding". Technical Field

[0002] This disclosure relates to video encoding and decoding and compression, and specifically, but not limited to, methods and apparatus for signaling syntax elements in video encoding and decoding. Background Technology

[0003] Various video codec technologies can be used to compress video data. Video codecs are performed according to one or more video codec standards. For example, video codec standards include Universal Video Codec (VVC), Joint Explore Test Model (JEM), High Efficiency Video Codec (H.265 / HEVC), High-Level Video Codec (H.264 / AVC), and Moving Picture Experts Group (MPEG) codecs. Video codecs typically utilize prediction methods (e.g., inter-frame prediction, intra-frame prediction), which take advantage of redundancy present in video frames or sequences. A key goal of video codec technology is to compress video data to a lower bitrate while avoiding or minimizing video quality degradation. Summary of the Invention

[0004] This disclosure provides examples of techniques related to signaling syntax elements in video encoding and decoding.

[0005] According to a first aspect of this disclosure, a method for video encoding and decoding is provided. The method includes a decoder determining whether a disable flag is present in a picture header (PH) associated with a picture, wherein the disable flag specifies whether encoding / decoding tools are disabled in one or more stripes associated with the PH. Additionally, the method includes: in response to determining that the disable flag is absent in the PH, the decoder inferring the value of the disable flag based on one or more enable flags signaled in a sequence parameter set (SPS) of the picture.

[0006] According to a second aspect of this disclosure, a method for video encoding and decoding is provided. The method includes a decoder determining whether a flag exists in a photogrammetric property (PH) associated with a photo, and the flag indicating whether the photo for temporal motion vector prediction (TMVP) is derived from a list of reference photos from a plurality of lists of reference photos associated with the photo. Additionally, the method includes the decoder inferring the value of the flag based on the number of reference photos in the list of reference photos in response to determining that the flag does not exist in the PH.

[0007] According to a third aspect of this disclosure, a method for video encoding and decoding is provided. The method includes a decoder determining whether a flag exists in a picture parameter set (PH) associated with a picture, the flag specifying the number of weights signaled in a list of reference pictures based on a first weighted prediction (WP) flag in a picture parameter set (PPS) of the picture and a second WP flag in the PH of the picture, and the flag being in a WP syntax associated with the picture. Additionally, the method includes: in response to determining that the flag does not exist in the PH, the decoder inferring the value of the flag based on the number of reference pictures in a list of reference pictures from a plurality of list of reference pictures associated with the picture.

[0008] According to a fourth aspect of this disclosure, a method for video encoding and decoding is provided. The method includes a decoder using an enable flag to specify whether one or more temporal motion vector prediction factors are used for inter-frame prediction of one or more stripes associated with a photo's photometric property (PH). Additionally, the method includes the decoder constraining the value of the enable flag based on a plurality of offsets applied to the photo's dimensions for scaling ratio calculation.

[0009] According to a fifth aspect of this disclosure, an apparatus for video decoding is provided. The apparatus includes one or more processors and a memory configured to store instructions executable by the one or more processors. The one or more processors, when executing the instructions, are configured to perform a method for video encoding / decoding according to a first aspect of this disclosure.

[0010] According to a sixth aspect of this disclosure, an apparatus for video decoding is provided. The apparatus includes one or more processors and a memory configured to store instructions executable by the one or more processors. The one or more processors, when executing the instructions, are configured to perform a method for video encoding / decoding according to a second aspect of this disclosure.

[0011] According to a seventh aspect of this disclosure, an apparatus for video decoding is provided. The apparatus includes one or more processors and a memory configured to store instructions executable by the one or more processors. The one or more processors, when executing the instructions, are configured to perform a method for video encoding / decoding according to a third aspect of this disclosure.

[0012] According to an eighth aspect of this disclosure, an apparatus for video decoding is provided. The apparatus includes one or more processors and a memory configured to store instructions executable by the one or more processors. The one or more processors, when executing the instructions, are configured to perform a method for video encoding / decoding according to a fourth aspect of this disclosure.

[0013] According to a ninth aspect of this disclosure, a non-transitory computer-readable storage medium for video decoding is provided, which stores computer-executable instructions. When executed by one or more computer processors, the instructions cause the one or more computer processors to perform a method for video encoding / decoding according to a first aspect of this disclosure.

[0014] According to a tenth aspect of this disclosure, a non-transitory computer-readable storage medium for video decoding is provided, which stores computer-executable instructions. When executed by one or more computer processors, the instructions cause the one or more computer processors to perform a method for video encoding / decoding according to a second aspect of this disclosure.

[0015] According to the eleventh aspect of this disclosure, a non-transitory computer-readable storage medium for video decoding is provided, which stores computer-executable instructions. When executed by one or more computer processors, the instructions cause the one or more computer processors to perform a method for video encoding / decoding according to the third aspect of this disclosure.

[0016] According to a twelfth aspect of this disclosure, a non-transitory computer-readable storage medium for video decoding is provided, which stores computer-executable instructions. When executed by one or more computer processors, the instructions cause the one or more computer processors to perform a method for video encoding / decoding according to a fourth aspect of this disclosure. Attached Figure Description

[0017] A more specific description of the examples of this disclosure will be presented with reference to the specific examples shown in the accompanying drawings. Given that these drawings depict only a few examples and are therefore not intended to limit the scope, the examples will be described and explained using additional features and details through the use of the drawings.

[0018] Figure 1 This is a block diagram illustrating an exemplary video encoder according to some embodiments of the present disclosure.

[0019] Figure 2 This is a block diagram illustrating an exemplary video decoder according to some embodiments of the present disclosure.

[0020] Figure 3 An example of an image showing a division into multiple coding tree units (CTUs) according to some embodiments of this disclosure is shown.

[0021] Figures 4A to 4D This is a schematic diagram illustrating a multi-type tree splitting pattern according to some embodiments of the present disclosure.

[0022] Figure 5 This is a block diagram illustrating an exemplary apparatus for video encoding and decoding according to some embodiments of the present disclosure.

[0023] Figure 6 This is a flowchart illustrating an exemplary process of video encoding and decoding according to some embodiments of the present disclosure.

[0024] Figure 7 This is a flowchart illustrating an exemplary process of video encoding and decoding according to some embodiments of the present disclosure.

[0025] Figure 8 This is a flowchart illustrating an exemplary process of video encoding and decoding according to some embodiments of the present disclosure.

[0026] Figure 9 This is a flowchart illustrating an exemplary process of video encoding and decoding according to some embodiments of the present disclosure. Detailed Implementation

[0027] Referring now to the detailed embodiments, examples of which are illustrated in the accompanying drawings. In the following detailed description, numerous non-limiting specific details are set forth to aid in understanding the subject matter presented herein. However, it will be apparent to those skilled in the art that various alternatives can be used. For example, it will be apparent to those skilled in the art that the subject matter presented herein can be implemented on many types of electronic devices with digital video capabilities.

[0028] Throughout this specification, references to "an embodiment," "an example," "some embodiments," "some examples," or similar language indicate that a particular feature, structure, or characteristic described is included in at least one embodiment or example. Unless otherwise expressly stated, the features, structures, elements, or characteristics described in connection with one or more embodiments also apply to other embodiments.

[0029] Throughout this disclosure, unless otherwise expressly stated, the terms "first," "second," "third," etc., are used only to refer to related elements (e.g., devices, components, compositions, steps, etc.) and do not imply any spatial or temporal order. For example, "first device" and "second device" can refer to two separately formed devices, or two parts, components, or operating states of the same device, and can be arbitrarily named.

[0030] The terms "module," "submodule," "circuit," "subcircuit," "circuit system," "subcircuit system," "unit," or "subunit" can include memory (shared, dedicated, or grouped) that stores code or instructions executable by one or more processors. A module can include one or more circuits, with or without stored code or instructions. A module or circuit can include one or more components that are directly or indirectly connected. These components may be physically attached to each other or located adjacent to each other, or may not be physically attached to each other or located adjacent to each other.

[0031] As used herein, depending on the context, the terms "if" or "when..." can be understood to mean "once..." or "in response to...". If these terms appear in a claim, they may indicate that the relevant limitation or feature is conditional or optional without specifying that it is. For example, a method may include the steps of: i) when condition X exists or if condition X exists, a function or action X' is performed, and ii) when condition Y exists or if condition Y exists, a function or action Y' is performed. The method may be implemented with both the ability to perform function or action X' and the ability to perform function or action Y'. Therefore, both function X' and function Y' may be performed at different times during multiple executions of the method.

[0032] Units or modules can be implemented purely in software, purely in hardware, or a combination of hardware and software. In a purely software implementation, for example, a unit or module may include functionally related blocks of code or software components that are directly or indirectly linked together to perform a specific function.

[0033] Figure 1 A block diagram of an exemplary block-based hybrid video encoder 100, which can be used in conjunction with many video codec standards that employ block-based processing, is shown. In encoder 100, video frames are segmented into multiple video blocks for processing. For each given video block, a prediction is formed based on either an inter-frame prediction method or an intra-frame prediction method. In inter-frame prediction, one or more prediction values ​​are formed based on pixels from previously reconstructed frames, through motion estimation and motion compensation. In intra-frame prediction, prediction values ​​are formed based on reconstructed pixels in the current frame. Through mode decision, the best prediction value can be selected to predict the current block.

[0034] The prediction residual, representing the difference between the current video block and its predicted value, is sent to the transform circuitry 102. The transform coefficients are then sent from the transform circuitry 102 to the quantization circuitry 104 for entropy reduction. The quantized coefficients are then fed to the entropy coding circuitry 106 to generate a compressed video bitstream. Figure 1As shown, prediction-related information 110 from the inter-frame prediction circuitry system and / or the intra-frame prediction circuitry system 112, such as video block segmentation information, motion vectors, reference picture indexes, and intra-frame prediction modes, is also fed through the entropy coding circuitry system 106 and stored in the compressed video bitstream 114.

[0035] In encoder 100, for prediction purposes, a decoder-related circuitry is also required to reconstruct pixels. First, the prediction residual is reconstructed by inverse quantization circuitry 116 and inverse transform circuitry 118. This reconstructed prediction residual is combined with block prediction values ​​120 to generate unfiltered reconstructed pixels for the current video block.

[0036] Intra-frame prediction (also known as "spatial prediction") uses pixels from samples (called reference samples) of already encoded and decoded neighboring blocks in the same video frame and / or strip to predict the current video block. Spatial prediction reduces the spatial redundancy inherent in the video signal.

[0037] Inter-frame prediction (also known as "temporal prediction") uses reconstructed pixels from already encoded and decoded video frames to predict the current video block. Temporal prediction reduces the inherent temporal redundancy in the video signal. The temporal prediction signal for a given coding unit (CU) or coding block is typically transmitted by one or more motion vectors (MVs), indicating the amount and direction of motion between the current CU and its temporal reference. Additionally, if multiple reference frames are supported, a reference frame index is sent to identify which reference frame in the reference frame repository the temporal prediction signal originates from.

[0038] After performing spatial and / or temporal prediction, the intra / inter-frame mode decision circuit 121 in encoder 100 selects the optimal prediction mode, for example, based on a rate-distortion optimization method. The block prediction factor 120 is then subtracted from the current video block; and the resulting prediction residual is decorrelated using transform circuit 102 and quantization circuit 104. The resulting quantized residual coefficients are dequantized by dequantization circuit 116 and inversely transformed by inverse transform circuit 118 to form the reconstruction residual, which is then added back to the prediction block to form the reconstructed signal of the CU. Furthermore, loop filtering 115 (such as a deblocking filter, Sample Adaptive Offset (SAO), and / or Adaptive Loop Filter (ALF)) can be applied to the reconstructed CU before it is placed in the reference image repository of image buffer 117 and used for encoding and decoding future video blocks. To form the output video bitstream 114, the encoding mode (inter-frame or intra-frame), prediction mode information, motion information, and quantized residual coefficients are sent to entropy coding unit 106 for further compression and packing to form the bitstream.

[0039] For example, deblocking filters are available in the current versions of AVC, HEVC, and VVC. In HEVC, an additional loop filter called Sample Adaptive Offset (SAO) is defined to further improve encoding and decoding efficiency. In the current version of the VVC standard, another loop filter called Adaptive Loop Filter (ALF) is under active investigation and is very likely to be included in the final standard.

[0040] These loop filter operations are optional. Performing these operations helps improve encoding / decoding efficiency and visual quality. As a decision made by encoder 100, they can also be turned off to save computational complexity.

[0041] It should be noted that if encoder 100 enables these filter options, intra-frame prediction is typically based on unfiltered reconstructed pixels, while inter-frame prediction is based on filtered reconstructed pixels.

[0042] Figure 2 This is a block diagram illustrating an exemplary block-based video decoder 200, which can be used in conjunction with many video codec standards. The decoder 200 is similar to residing in... Figure 1 The reconstruction-related part is located in the encoder 100. In the decoder 200, the incoming video bitstream 201 is first decoded by entropy decoding 202 to derive quantized coefficient levels and prediction-related information. The quantized coefficient levels are then processed by inverse quantization 204 and inverse transform 206 to obtain the reconstructed prediction residuals. A block prediction mechanism, implemented in the intra / inter-frame mode selector 212, is configured to perform intra-frame prediction 208 or motion compensation 210 based on the decoded prediction information. A set of unfiltered reconstructed pixels is obtained by summing the reconstructed prediction residuals from inverse transform 206 and the prediction output generated by the block prediction mechanism using summer 214.

[0043] The reconstructed blocks can be further passed through loop filter 209 before being stored in image buffer 213, which serves as a reference image repository. The reconstructed video in image buffer 213 can be sent to drive a display device and to predict future video blocks. With loop filter 209 enabled, filtering operations are performed on these reconstructed pixels to produce the final reconstructed video output 222.

[0044] The video codec / decoding standards mentioned above, such as VVC, JEM, HEVC, and MPEG-4 Part 10, are conceptually similar. For example, they all use block-based processing. The following details some of the block segmentation schemes in these standards.

[0045] Universal Video Codec (VVC) At the 10th JVET meeting held in San Diego, USA, from April 10-20, 2018, JVET defined the first draft of the Universal Video Codec (VVC) and VVC Test Model 1 (VTM1) as its reference software implementation. It was decided to include a quadtree with nested multi-type trees as the initial new codec feature for VVC. A multi-type tree is a block partitioning structure that includes both binary and ternary splits. Since then, the reference software VTM, which implements the encoding and decoding processes, has been developed and updated through the following JVET meetings.

[0046] In VVC, the images of the input video are segmented into blocks called CTUs. CTUs are further divided into CUs using a quadtree with a nested multi-type tree structure, where CUs define regions of pixels that share the same prediction mode (e.g., intra-frame or inter-frame). The term "unit" defines a region of an image that covers all components (such as luma and chroma); the term "block" is used to define a region that covers a specific component (e.g., luma), and blocks for different components (e.g., luma and chroma) may differ spatially when considering chroma sampling formats (such as 4:2:0).

[0047] Segment the image into CTUs Figure 3 An example of a picture 300 showing a division into a plurality of CTUs 302 according to some embodiments of the present disclosure is shown.

[0048] An image can be divided into a sequence of CTUs. The concept of CTU is the same as that of HEVC. For an image with a three-sample array, a CTU consists of an N×N block of luminance samples and two corresponding blocks of chrominance samples.

[0049] The maximum permissible size of the luminance block in the CTU is specified as 128×128 (although the maximum size of the luminance transform block is 64×64).

[0050] CTU segmentation using a tree structure In HEVC, the CTU is split into CUs to accommodate various local characteristics using a quadtree structure represented as a coding tree. The decision to encode or decode a picture region using inter-picture (temporal) prediction or intra-picture (spatial) prediction is made at the leaf CU level. Each leaf CU can be further split into one, two, or four PUs based on the PU splitting type. Within a PU, the same prediction process is applied, and relevant information is sent to the decoder based on the PU. After obtaining residual blocks by applying the prediction process based on the PU splitting type, the leaf CU can be segmented into transform units (TUs) according to another quadtree structure similar to that used for the coding tree of the CU. A key feature of the HEVC structure is that it has multiple segmentation concepts including CUs, PUs, and TUs.

[0051] In VVC, a quadtree with nested multi-type trees using binary and ternary partitioning structures replaces the concept of multiple partitioning unit types. For example, it eliminates the separation of CU, PU, ​​and TU concepts and supports greater flexibility in the shape of CU partitions, except that CUs with sizes too large for the maximum transform length require this separation. In the coding tree structure, CUs can have square or rectangular shapes. CTUs are first partitioned using a quadtree (i.e., a quadtree) structure. Then, the leaf nodes of the quadtrees can be further partitioned using a multi-type tree structure.

[0052] Figures 4A to 4D This is a schematic diagram illustrating multiple types of tree splitting patterns according to some embodiments of the present disclosure. For example... Figures 4A to 4D As shown, there are four splitting types in the multi-type tree structure: vertical binary split 402 (SPLIT_BT_VER), horizontal binary split 404 (SPLIT_BT_HOR), vertical ternary split 406 (SPLIT_TT_VER), and horizontal ternary split 408 (SPLIT_TT_HOR). The multi-type leaf nodes are called CUs, and unless the CU is too large for the maximum transform length, this partition is used for prediction and transform processing without any further splitting. This means that in most cases, CUs, PUs, and TUs can have the same block size in a quadtree with a nested multi-type tree coding block structure. Exceptions occur when the maximum supported transform length is less than the width or height of the color component of the CU.

[0053] Syntax in VVC In VVC, the first layer of the bitstream of syntax signaling is the Network Abstraction Layer (NAL), where the bitstream is divided into a set of NAL units. Some NAL units send common control parameters to the decoder via signaling, such as Sequence Parameter Set (SPS) and Picture Parameter Set (PPS). Others contain video data. The Video Coding Layer (VCL) NAL units contain stripes of encoded video. Encoded pictures are called access units and can be encoded into one or more stripes.

[0054] The encoded video sequence begins with an Instantaneous Decoder Refresh (IDR) picture. All subsequent video pictures are encoded and decoded into stripes. A new IDR picture signals that the previous video segment has ended and a new video segment has begun. Each NAL unit begins with a one-byte header, followed by the Raw Byte Sequence Payload (RBSP). The RBSP contains the encoded stripes. The stripes are binary encoded, so they can be padded with zero bits to ensure that the length is an integer number of bytes. A stripe consists of a stripe header and stripe data. The stripe data is specified as a series of CUs.

[0055] The concept of PH (Programmable Context) was adopted at the 16th JVET meeting, serving as the first VCL NAL unit of a picture, transmitted once per picture. It was also proposed to group some syntax elements previously in the stripe header into the picture header. Syntax elements that functionally only need to be transmitted once per picture can be moved to the picture header instead of being transmitted multiple times within the stripe for a given picture.

[0056] In the VVC specification, the syntax table specifies a superset of the syntax for all allowed bitstreams. Additional constraints on the syntax may be specified directly or indirectly in other clauses. Table 1 below is the syntax table for stripe headers and picture headers in VVC. The semantics of some syntaxes are also shown after the syntax table.

[0057] Table 1

[0058]

[0059]

[0060]

[0061]

[0062]

[0063]

[0064]

[0065] The semantics of the selected syntax element `ph_temporal_mvp_enabled_flag` specifies whether the temporal motion vector prediction factor can be used for inter-frame prediction of the stripe associated with the PH. If `ph_temporal_mvp_enabled_flag` equals 0, the syntax elements of the stripe associated with the PH should be constrained so that the temporal motion vector prediction factor is not used in the decoding of the stripe. Otherwise, if `ph_temporal_mvp_enabled_flag` equals 1, the temporal motion vector prediction factor can be used for decoding the stripe associated with the PH. When it does not exist, the value of `ph_temporal_mvp_enabled_flag` is inferred to be 0. The value of `ph_temporal_mvp_enabled_flag` should be 0 when there is no reference image in the decoded picture buffer (DPB) with the same spatial resolution as the current image.

[0066] The maximum number of MVP candidates based on sub-blocks, MaxNumSubblockMergeCand, is derived as follows: If (SPS_affine_enabled_flag) MaxNumSubblockMergeCand=5-five_minus_max_num_subblock_merge_cand otherwise MaxNumSubblockMergeCand=sps_sbtmvp_enabled_flag&&ph_temporal_mvp_enabled_flag; The value of MaxNumSubblockMergeCand should be in the range of 0 to 5 (inclusive).

[0067] A slice_collocated_from_l0_flag value of 1 specifies that the co-positioned images used for temporal motion vector prediction are derived from reference image list 0. A slice_collocated_from_l0_flag value of 0 specifies that the co-positioned images used for temporal motion vector prediction are derived from reference image list 1.

[0068] When slice_type equals B or P, ph_temporal_mvp_enabled_flag equals 1, and slice_collocated_from_l0_flag does not exist, the following applies: - If rpl_info_in_ph_flag equals 1, then it is inferred that slice_collocated_from_l0_flag equals ph_collocated_from_l0_flag.

[0069] - Otherwise (rpl_info_in_ph_flag equals 0 and slice_type equals P), infer that the value of slice_collocated_from_l0_flag is equal to 1.

[0070] `slice_collocated_ref_idx` specifies the reference index of the collocated image used for temporal motion vector prediction.

[0071] When slice_type equals P or when slice_type equals B and slice_collocated_from_l0_flag equals 1, slice_collocated_ref_idx refers to the entry in reference image list 0, and the value of slice_collocated_ref_idx should be in the range of 0 to NumRefIdxActive[0]-1 (inclusive of 0 and NumRefIdxActive[0]-1).

[0072] When slice_type equals B and slice_collocated_from_l0_flag equals 0, slice_collocated_ref_idx refers to the entry in reference image list 1, and the value of slice_collocated_ref_idx should be in the range of 0 to NumRefIdxActive[1]-1 (inclusive of 0 and NumRefIdxActive[1]-1).

[0073] When slice_collocated_ref_idx does not exist, the following applies: If rpl_info_in_ph_flag equals 1, then it is inferred that the value of slice_collocated_ref_idx is equal to ph_collocated_ref_idx.

[0074] Otherwise (rpl_info_in_ph_flag equals 0), it is inferred that the value of slice_collocated_ref_idx is equal to 0.

[0075] The requirement for bitstream consistency is that all stripes of the image referenced by slice_collocated_ref_idx should be identical for the encoded image.

[0076] The requirement for bitstream consistency is that the values ​​of pic_width_in_luma_samples and pic_height_in_luma_samples of the reference image referenced by slice_collocated_ref_idx should be equal to the values ​​of pic_width_in_luma_samples and pic_height_in_luma_samples of the current image, respectively, and RprConstraintsActive[slice_collocated_from_l0_flag? 0:1][slice_collocated_ref_idx] should be equal to 0.

[0077] The value of RprConstraintsActive[i][j] is derived in section 8.3.2 of the VVC specification. The following describes the derivation of the value of RprConstraintsActive[i][j].

[0078] Decoding process used for building a list of reference images At the beginning of the decoding process for each stripe used for non-IDR images, the decoding process used for constructing the reference image list is called.

[0079] Reference images are addressed via reference indices. A reference index is an index into the list of reference images. When decoding an I stripe, the list of reference images is not used in the decoding of the stripe data. When decoding a P stripe, only reference image list 0 (i.e., RefPicList[0]) is used in the decoding of the stripe data. When decoding a B stripe, only reference image list 0 and reference image list 1 (i.e., RefPicList[1]) are used in the decoding of the stripe data.

[0080] At the beginning of the decoding process for each stripe used for non-IDR images, reference image lists RefPicList[0] and RefPicList[1] are exported. The reference image lists are used to mark reference images as specified in the video codec standard or in the decoding of stripe data.

[0081] For I-bands that are not the first band of a non-IDR image, RefPicList[0] and RefPicList[1] can be derived for bitstream consistency checks, but their derivation is not necessary for decoding the current image or images that follow the current image in the decoding order. For P-bands that are not the first band of an image, RefPicList[1] can be derived for bitstream consistency checks, but its derivation is not necessary for decoding the current image or images that follow the current image in the decoding order.

[0082] The reference image lists RefPicList[0] and RefPicList[1], the reference image scaling ratios RefPicScale[i][j][0] and RefPicScale[i][j][1], and the reference image scaling flags RprConstraintsActive[0][j] and RprConstraintsActive[1][j] are exported as follows:

[0083]

[0084] `scaling_win_left_offset`, `scaling_win_right_offset`, `scaling_win_top_offset`, and `scaling_win_bottom_offset` specify the offsets applied to the image size for scaling ratio calculations. When not present, the values ​​of `scaling_win_left_offset`, `scaling_win_right_offset`, `scaling_win_top_offset`, and `scaling_win_bottom_offset` are inferred to be equal to `pps_conf_win_left_offset`, `pps_conf_win_right_offset`, `pps_conf_win_top_offset`, and `pps_conf_win_bottom_offset`, respectively.

[0085] The value of SubWidthC×(scaling_win_left_offset+scaling_win_right_offset) should be less than pic_width_in_luma_samples, and the value of SubHeightC×(scaling_win_top_offset+scaling_win_bottom_offset) should be less than pic_height_in_luma_samples.

[0086] The variables PicOutputWidthL and PicOutputHeightL are exported as follows: PicOutputWidthL=pic_width_in_luma_samples-SubWidthC×(scaling_win_right_offset+scaling_win_left_offset) PicOutputHeightL=pic_height_in_luma_samples-SubWidthC×(scaling_win_bottom_offset+scaling_win_top_offset).

[0087] Let refPicOutputWidthL and refPicOutputHeightL be the PicOutputWidthL and PicOutputHeightL of the reference image that references the current image of this PPS, respectively. The bitstream consistency requirement must satisfy all of the following conditions: -PicOutputWidthL×2 should be greater than or equal to refPicWidthInLumaSamples.

[0088] -PicOutputHeightL×2 should be greater than or equal to refPicHeightInLumaSamples.

[0089] -PicOutputWidthL should be less than or equal to refPicWidthInLumaSamples×8.

[0090] -PicOutputHeightL should be less than or equal to refPicHeightInLumaSamples×8.

[0091] -PicOutputWidthL×pic_width_max_in_luma_samples should be greater than or equal to refPicOutputWidthL×(pic_width_in_luma_samples-Max(8,MinCbSizeY)).

[0092] -PicOutputHeightL×pic_height_max_in_luma_samples should be greater than or equal to refPicOutputHeightL×(pic_height_in_luma_samples-Max(8,MinCbSizeY)).

[0093] In the current VVC, the `mvd_l1_zero_flag` is sent via signaling in the PH without any constraints. However, the features controlled by the `mvd_l1_zero_flag` only apply when the stripe is a bidirectional predictive stripe (B-strip). Therefore, the flag signaling is redundant when the stripe associated with the image header is not a B-strip.

[0094] In another example, `ph_disable_bdof_flag` and `ph_disable_dmvr_flag` are signaled in the PH only if the corresponding enable flags (`sps_bdof_pic_present_flag`, `sps_dmvr_pic_present_flag`) signaled in the Sequence Parameter Set (SPS) are true. However, as shown in Table 2 below, the features controlled by the flags `ph_disable_bdof_flag` and `ph_disable_dmvr_flag` are only applicable when the stripe is a bidirectional prediction stripe (B-strip). Therefore, signaling these two flags is redundant or useless when the stripe associated with the image header is not a B-strip.

[0095] Table 2

[0096] You can also see one or more examples in the syntax element ph_collocated_from_l0_flag to indicate that the collocation image comes from list 0 or list 1. And you can see another example in the syntax pred_weight_table(), which is a syntax element related to the weighted table used for bidirectional prediction, as shown below.

[0097]

[0098]

[0099]

[0100]

[0101] The third issue relates to the syntax `ph_temporal_mvp_enabled_flag`. In the current VVC, because the resolution of the selected parimeric image exported for TMVP should be the same as the resolution of the current image, there is a bitstream consistency constraint used to check the value of `ph_temporal_mvp_enabled_flag`, as shown below.

[0102] When there is no reference image in the DPB with the same spatial resolution as the current image, the value of ph_temporal_mvp_enabled_flag should be equal to 0.

[0103] However, in the current VVC, not only does the resolution of the co-located image affect TMVP enabling, but the offset applied to the image size for scaling calculations also affects TMVP enabling. However, in the current VVC, the offset is not considered in the bitstream consistency of ph_temporal_mvp_enabled_flag.

[0104] Furthermore, the following bitstream consistency requirement exists: the image referenced by `slice_collocated_ref_idx` should be identical across all slices of the encoded image. However, this bitstream consistency cannot be satisfied when the encoded image has multiple slices and there is no common reference image among all these slices. In this case, `ph_temporal_mvp_enabled_flag` should be constrained to 0.

[0105] Several methods are proposed to address the above problems. The proposed methods can be applied independently or in combination.

[0106] Since the features controlled by the flags `mvd_l1_zero_flag`, `ph_disable_bdof_flag`, and `ph_disable_dmvr_flag` are only applicable when the stripe is a bidirectional prediction stripe (B-strip), according to the method of this disclosure, it is proposed to signal these flags only when the associated stripe is a B-strip. Note that when a list of reference pictures is signaled in the PH (e.g., `rpl_info_in_ph_flag=1`), this means that all stripes encoding the picture use the same reference pictures signaled in the PH. Therefore, when a list of reference pictures is signaled in the PH and the signaled list of reference pictures indicates that the current picture is not bidirectional prediction, it is not necessary to signal the flags `mvd_l1_zero_flag`, `ph_disable_bdof_flag`, and `ph_disable_dmvr_flag`.

[0107] In some examples, conditions are added to the syntax set in the PH to prevent redundant signaling or undefined decoding behavior due to incorrect values ​​sent for some syntax in the image header. Some examples are shown below, where the variable num_ref_entries[i][RplsIdx[i]] represents the number of reference images in list i.

[0108] In some examples, the conditions can be as follows: if(rpl_info_in_ph_flag&&num_ref_entries[0][RplsIdx[0]]>1&&num_ref_entries[1][RplsIdx[1]]>1) mvd_l1_zero_flag In some examples, the conditions can be as follows: if (!rpl_info_in_ph_flag || (rpl_info_in_ph_flag&&num_ref_entries[0][RplsIdx[0]]>1&&num_ref_entries[1][RplsIdx[1]]>1)) mvd_l1_zero_flag In some examples, the conditions can be as follows: if (!rpl_info_in_ph_flag || (rpl_info_in_ph_flag&&num_ref_entries[0][RplsIdx[0]]>0&&num_ref_entries[1][RplsIdx[1]]>0) mvd_l1_zero_flag Alternatively, the condition can be rewritten in a more compact form that yields the same result. Because a bidirectional prediction strip (B-strip) or bidirectional prediction image must have at least one List1 reference image, it can only check whether the current strip / image has a List1 reference image. An example of an alternative condition check is shown below: if (!rpl_info_in_ph_flag || (rpl_info_in_ph_flag&&num_ref_entries[1][RplsIdx[1]]>0)) mvd_l1_zero_flag The semantics of mvd_l1_zero_flag have also been modified to handle cases where no signal is sent.

[0109] A `mvd_l1_zero_flag` value of 1 indicates that the `mvd_coding(x0, y0, 1)` syntax structure is not parsed, and `MvdL1[x0][y0][compIdx]` and `MvdCpL1[x0][y0][cpIdx][compIdx]` are set to 0, where `compIdx` = 0..1 and `cpIdx` = 0..2. A `mvd_l1_zero_flag` value of 0 indicates that the `mvd_coding(x0, y0, 1)` syntax structure is parsed. When it does not exist, the value of `mvd_l1_zero_flag` is inferred to be 0.

[0110] The following are some examples of conditionally signaling the syntax element ph_disable_dmvr_flag: if (sps_dmvr_pic_present_flag&&rpl_info_in_ph_flag &&num_ref_entries[ 0 ][ RplsIdx[ 0 ]]>1 &&num_ref_entries[ 1 ][ RplsIdx[ 1 ]]>1) ph_disable_dmvr_flag or if (sps_dmvr_pic_present_flag&&(!rpl_info_in_ph_flag || (rpl_info_in_ph_flag &&num_ref_entries[ 0 ][ RplsIdx[ 0 ]]>1&&num_ref_entries[ 1 ][ RplsIdx[ 1 ]]>1))) ph_disable_dmvr_flag or if (sps_dmvr_pic_present_flag&&(!rpl_info_in_ph_flag || (rpl_info_in_ph_flag &&num_ref_entries[ 0 ][ RplsIdx[ 0 ]]>0 &&num_ref_entries[ 1][ RplsIdx[ 1 ]]>0))) ph_disable_dmvr_flag The following is another example of an alternative condition check: if (sps_dmvr_pic_present_flag&&(!rpl_info_in_ph_flag || (rpl_info_in_ph_flag&&num_ref_entries[ 1 ][ RplsIdx[ 1 ]]>0))) ph_disable_dmvr_flag The semantics of ph_disable_dmvr_flag have also been modified to handle cases where signals are not sent.

[0111] A value of 1 for ph_disable_dmvr_flag indicates that inter-frame bidirectional prediction based on decoder motion vector refinement is disabled in the slice associated with the PH. A value of 0 for ph_disable_dmvr_flag indicates that inter-frame bidirectional prediction based on decoder motion vector refinement can be enabled or disabled in the slice associated with the PH.

[0112] When ph_disable_dmvr_flag does not exist, the following applies: - If sps_dmvr_enabled_flag equals 1 and sps_dmvr_pic_present_flag equals 0, then it is inferred that the value of ph_disable_dmvr_flag is equal to 0.

[0113] Otherwise, if sps_dmvr_enabled_flag equals 1 and sps_dmvr_pic_present_flag equals 1, then it is inferred that the value of ph_disable_dmvr_flag is equal to 1.

[0114] - Otherwise (sps_dmvr_enabled_flag equals 0), infer that the value of ph_disable_dmvr_flag is equal to 1.

[0115] The following is another example of exporting the value of ph_disable_dmvr_flag when ph_disable_dmvr_flag does not exist: If the value of ph_disable_dmvr_flag is explicitly signaled or implicitly exported, all conditions are considered when exporting the value of ph_disable_dmvr_flag: - If sps_dmvr_enabled_flag equals 1 and sps_dmvr_pic_present_flag equals 0, then it is inferred that the value of ph_disable_dmvr_flag is equal to 0.

[0116] Otherwise, if sps_dmvr_enabled_flag equals 0 and sps_dmvr_pic_present_flag equals 0, then it is inferred that the value of ph_disable_dmvr_flag is equal to 1.

[0117] Otherwise, if sps_dmvr_enabled_flag equals 1 and sps_dmvr_pic_present_flag equals 1 and rpl_info_in_ph_flag equals 0, then it is inferred that the value of ph_disable_dmvr_flag is equal to X (X is explicitly sent by a signal).

[0118] - Otherwise, if sps_dmvr_enabled_flag equals 1 and sps_dmvr_pic_present_flag equals 1 and rpl_info_in_ph_flag equals 1 and num_ref_entries[1][RplsIdx[1]]>0, then it is inferred that the value of ph_disable_dmvr_flag is equal to X (X is explicitly sent by a signal).

[0119] - Otherwise (sps_dmvr_enabled_flag equals 1 and sps_dmvr_pic_present_flag equals 1 and rpl_info_in_ph_flag equals 1 and num_ref_entries[1][RplsIdx[1]]==0), infer that the value of ph_disable_dmvr_flag is equal to 1.

[0120] Since the syntax element ph_disable_dmvr_flag is explicitly signaled in the third and fourth conditions, it can be removed from the export of ph_disable_dmvr_flag if it does not exist.

[0121] When ph_disable_dmvr_flag does not exist, the following applies: - If sps_dmvr_enabled_flag equals 1 and sps_dmvr_pic_present_flag equals 0, then it is inferred that the value of ph_disable_dmvr_flag is equal to 0.

[0122] Otherwise, if sps_dmvr_enabled_flag equals 0 and sps_dmvr_pic_present_flag equals 0, then it is inferred that the value of ph_disable_dmvr_flag is equal to 1.

[0123] - Otherwise (sps_dmvr_enabled_flag equals 1 and sps_dmvr_pic_present_flag equals 1 and rpl_info_in_ph_flag equals 1 and num_ref_entries[1][RplsIdx[1]]==0), infer that the value of ph_disable_dmvr_flag is equal to 1.

[0124] The conditions can be simplified in the editing process as follows: When ph_disable_dmvr_flag does not exist, the following applies: - If sps_dmvr_enabled_flag equals 1 and sps_dmvr_pic_present_flag equals 0, then it is inferred that the value of ph_disable_dmvr_flag is equal to 0.

[0125] - Otherwise (sps_dmvr_enabled_flag equals 0 or sps_dmvr_pic_present_flag equals 1), infer that the value of ph_disable_dmvr_flag is equal to 1.

[0126] The following is another example of exporting the value of ph_disable_dmvr_flag when ph_disable_dmvr_flag does not exist: When ph_disable_dmvr_flag does not exist, the following applies: - If sps_dmvr_pic_present_flag equals 0, then it is inferred that the value of ph_disable_dmvr_flag is equal to 1 - sps_dmvr_enabled_flag.

[0127] Otherwise, if sps_dmvr_pic_present_flag equals 1 and rpl_info_in_ph_flag equals 0, then it is inferred that the value of ph_disable_dmvr_flag is equal to 1 - sps_dmvr_enabled_flag.

[0128] Otherwise, if sps_dmvr_pic_present_flag equals 1 and rpl_info_in_ph_flag equals 1 and num_ref_entries[1][RplsIdx[1]]>0, then it is inferred that the value of ph_disable_dmvr_flag is equal to 1-sps_dmvr_enabled_flag.

[0129] - Otherwise (sps_dmvr_pic_present_flag equals 1 and rpl_info_in_ph_flag equals 1 and num_ref_entries[1][RplsIdx[1]]==0), infer that the value of ph_disable_dmvr_flag is equal to 1.

[0130] In some examples, since the syntax element ph_disable_dmvr_flag is explicitly signaled under the second and third conditions above, it can be removed from the export of ph_disable_dmvr_flag if ph_disable_dmvr_flag does not exist.

[0131] In some examples, when ph_disable_dmvr_flag does not exist, the following applies: if sps_dmvr_pic_present_flag is equal to 0, then the value of ph_disable_dmvr_flag is inferred to be equal to 1 - sps_dmvr_enabled_flag; otherwise, the value of ph_disable_dmvr_flag is inferred to be equal to 1.

[0132] The following are some examples of conditionally signaling the syntax element ph_disable_bdof_flag: if(sps_bdof_pic_present_flag&&rpl_info_in_ph_flag&&num_ref_entries[0][RplsIdx[0]]>1&&num_ref_entries[1][RplsIdx[1]]>1) ph_disable_bdof_flag or if (sps_bdof_pic_present_flag&&(!rpl_info_in_ph_flag || (rpl_info_in_ph_flag &&num_ref_entries[ 0 ][ RplsIdx[ 0 ]]>1&&num_ref_entries[ 1 ][ RplsIdx[ 1 ]]>1))) ph_disable_bdof_flag In some examples, the following shows an example of an alternative condition check: if (sps_bdof_pic_present_flag&&(!rpl_info_in_ph_flag || (rpl_info_in_ph_flag&&num_ref_entries[ 1 ][ RplsIdx[ 1 ]]>0))) ph_disable_bdof_flag The semantics of ph_disable_bdof_flag have also been modified to handle cases where signals are not sent.

[0133] A value of 1 for ph_disable_bdof_flag indicates that inter-frame bidirectional prediction based on bidirectional optical flow is disabled in the stripe associated with PH. A value of 0 for ph_disable_bdof_flag indicates that inter-frame bidirectional prediction based on bidirectional optical flow can be enabled or disabled in the stripe associated with PH.

[0134] When ph_disable_bdof_flag does not exist, the following applies: - If sps_bdof_enabled_flag equals 1 and sps_bdof_pic_present_flag equals 0, then it is inferred that the value of ph_disable_bdof_flag is equal to 0.

[0135] Otherwise, if sps_bdof_enabled_flag equals 1 and sps_bdof_pic_present_flag equals 1, then it is inferred that the value of ph_disable_dmvr_flag is equal to 1.

[0136] - Otherwise (sps_bdof_enabled_flag equals 0), infer that the value of ph_disable_bdof_flag is equal to 1.

[0137] The following shows an alternative way to export the value of ph_disable_bdof_flag when ph_disable_bdof_flag does not exist: If the value of ph_disable_bdof_flag is explicitly signaled or implicitly exported, all conditions are considered when exporting the value of ph_disable_bdof_flag: - If sps_bdof_enabled_flag equals 1 and sps_bdof_pic_present_flag equals 0, then it is inferred that the value of ph_disable_bdof_flag is equal to 0.

[0138] Otherwise, if sps_bdof_enabled_flag equals 0 and sps_bdof_pic_present_flag equals 0, then it is inferred that the value of ph_disable_bdof_flag is equal to 1.

[0139] Otherwise, if sps_bdof_enabled_flag equals 1 and sps_bdof_pic_present_flag equals 1 and rpl_info_in_ph_flag equals 0, then it is inferred that the value of ph_disable_bdof_flag is equal to X (X is explicitly sent by a signal).

[0140] - Otherwise, if sps_bdof_enabled_flag equals 1 and sps_bdof_pic_present_flag equals 1 and rpl_info_in_ph_flag equals 1 and num_ref_entries[1][RplsIdx[1]]>0, then it is inferred that the value of ph_disable_bdof_flag is equal to X (X is explicitly sent by signal).

[0141] - Otherwise (sps_bdof_enabled_flag equals 1 and sps_bdof_pic_present_flag equals 1 and rpl_info_in_ph_flag equals 1 and num_ref_entries[1][RplsIdx[1]]==0), infer that the value of ph_disable_bdof_flag is equal to 1.

[0142] Since the syntax element ph_disable_bdof_flag is explicitly signaled in the third and fourth conditions, it can be removed from the exports of ph_disable_bdof_flag if it does not exist. When ph_disable_bdof_flag does not exist, the following applies: - If sps_bdof_enabled_flag equals 1 and sps_bdof_pic_present_flag equals 0, then it is inferred that the value of ph_disable_bdof_flag is equal to 0.

[0143] Otherwise, if sps_bdof_enabled_flag equals 0 and sps_bdof_pic_present_flag equals 0, then it is inferred that the value of ph_disable_bdof_flag is equal to 1.

[0144] - Otherwise (sps_bdof_enabled_flag equals 1 and sps_bdof_pic_present_flag equals 1 and rpl_info_in_ph_flag equals 1 and num_ref_entries[1][RplsIdx[1]]==0), infer that the value of ph_disable_bdof_flag is equal to 1.

[0145] The conditions can be simplified in the editing process as follows: When ph_disable_bdof_flag does not exist, the following applies: - If sps_bdof_enabled_flag equals 1 and sps_bdof_pic_present_flag equals 0, then it is inferred that the value of ph_disable_bdof_flag is equal to 0.

[0146] - Otherwise (sps_bdof_enabled_flag equals 0 or sps_bdof_pic_present_flag equals 1), infer that the value of ph_disable_bdof_flag is equal to 1.

[0147] The following shows an alternative way to export the value of ph_disable_bdof_flag when ph_disable_bdof_flag does not exist: When ph_disable_bdof_flag does not exist, the following applies: - If sps_bdof_pic_present_flag equals 0, then it is inferred that the value of ph_disable_bdof_flag is equal to 1 - sps_bdof_enabled_flag.

[0148] Otherwise, if sps_bdof_pic_present_flag equals 1 and rpl_info_in_ph_flag equals 0, then it is inferred that the value of ph_disable_bdof_flag is equal to 1 - sps_bdof_enabled_flag.

[0149] Otherwise, if sps_bdof_pic_present_flag equals 1 and rpl_info_in_ph_flag equals 1 and num_ref_entries[1][RplsIdx[1]]>0, then it is inferred that the value of ph_disable_bdof_flag is equal to 1-sps_bdof_enabled_flag.

[0150] - Otherwise (sps_bdof_pic_present_flag equals 1 and rpl_info_in_ph_flag equals 1 and num_ref_entries[1][RplsIdx[1]]==0), infer that the value of ph_disable_bdof_flag is equal to 1.

[0151] In some examples, since the syntax element ph_disable_bdof_flag is explicitly signaled under the second and third conditions, it can be removed from the export of ph_disable_bdof_flag if ph_disable_bdof_flag does not exist.

[0152] When ph_disable_bdof_flag does not exist, the following applies: - If sps_bdof_pic_present_flag equals 0, then it is inferred that the value of ph_disable_bdof_flag is equal to 1 - sps_bdof_enabled_flag.

[0153] Otherwise, it is assumed that the value of ph_disable_bdof_flag is equal to 1.

[0154] Furthermore, the signaling conditions for the syntax elements ph_collocated_from_l0_flag and weight_table() have been modified because both types of syntax elements only apply when the associated stripe is a B stripe. An example of the modified syntax element signaling is shown below.

[0155]

[0156] or

[0157] The semantics of ph_collocated_from_l0_flag have also been modified to handle the case when it is not sent by a signal.

[0158] A value of 1 for ph_collocated_from_l0_flag indicates that the co-positioned images used for temporal motion vector prediction are derived from reference image list 0. A value of 0 for ph_collocated_from_l0_flag indicates that the co-positioned images used for temporal motion vector prediction are derived from reference image list 1.

[0159] When ph_collocated_from_l0_flag does not exist, the following applies: - If num_ref_entries[0][RplsIdx[0]] is greater than 1, then it is inferred that the value of ph_collocated_from_l0_flag is 1.

[0160] - Otherwise (num_ref_entries[1][RplsIdx[1]] is greater than 1), it is inferred that the value of ph_collocated_from_l0_flag is 0.

[0161]

[0162]

[0163]

[0164] Similarly, the following is an example of an alternative condition check: if (pps_weighted_bipred_flag && wp_info_in_ph_flag && (!rpl_info_in_ph_flag || (rpl_info_in_ph_flag&&num_ref_entries[ 1 ][ RplsIdx[ 1 ]]>0))) num_l1_weights The semantics of the syntax elements in pred_weight_table() have also been modified to handle cases where the syntax element is not sent by a signal.

[0165] num_l1_weights specifies the number of weights sent by signaling for entries in reference image list 1 when both pps_weighted_bipred_flag and wp_info_in_ph_flag are equal to 1. The value of num_l1_weights should be in the range of 0 to Min(15, num_ref_entries[1][RplsIdx[1]]), inclusive of 0 and Min(15, num_ref_entries[1][RplsIdx[1]]).

[0166] The variable NumWeightsL1 is exported as follows: If (!pps_weighted_bipred_flag) NumWeightsL1=0 Otherwise, if (wp_info_in_ph_flag&&rpl_info_in_ph_flag&&(num_ref_entries[0][RplsIdx[0]]==0 || num_ref_entries[1][RplsIdx[1]]>==0)) NumWeightsL1=0 Otherwise, if (wp_info_in_ph_flag) NumWeightsL1=num_l1_weights otherwise NumWeightsL1=NumRefIdxActive[1] Within the semantics of the syntax elements in `pred_weight_table()`, the following shows an alternative way to derive the value of `num_l1_weights` when `num_l1_weights` does not exist: `num_l1_weights` specifies the number of weights sent by signaling for entries in reference image list 1 when both `pps_weighted_bipred_flag` and `wp_info_in_ph_flag` are equal to 1. The value of `num_l1_weights` should be in the range of 0 to Min(15, num_ref_entries[1][RplsIdx[1]]), including 0 and Min(15, num_ref_entries[1][RplsIdx[1]]). When it does not exist, the value of `num_l1_weights` is inferred to be 0.

[0167] The variable NumWeightsL1 is exported as follows: If (!pps_weighted_bipred_flag) NumWeightsL1=0 Otherwise, if (wp_info_in_ph_flag) NumWeightsL1=num_l1_weights otherwise NumWeightsL1=NumRefIdxActive[1] In the semantics of the syntax elements in pred_weight_table(), an alternative way to derive the value of num_l1_weights when num_l1_weights does not exist is shown below: if (!pps_weighted_bipred_flag || (wp_info_in_ph_flag&&num_ref_entries[1][RplsIdx[1]]==0)) NumWeightsL1=0 Otherwise, if (wp_info_in_ph_flag) NumWeightsL1=num_l1_weights otherwise NumWeightsL1=NumRefIdxActive[1] Conceptually, for any syntax element applicable only to B-bands, a signaling condition is proposed to check whether the current picture has reference pictures from both list 0 and list 1 reference picture lists, to avoid sending redundant bits via signaling. The checking condition is not limited to the methods described above for checking the size of the two reference picture lists (e.g., list 0 / list 1 reference picture lists), and the checking condition can be any other method for indicating whether the current picture has reference pictures from both list 0 and list 1 reference picture lists. For example, a flag could be signaled to indicate whether the current picture has both list 0 and list 1 reference pictures.

[0168] When a syntax element is not signaled but the reference picture list information is signaled in the picture header (PH), the value of the syntax element is derived using information about whether the current picture has both Table 0 and List 1 reference pictures, or only Table 0 or List 1 reference pictures. In one example, when ph_collocated_from_l0_flag is not signaled, its value is inferred to be the only reference picture that the current picture has. In another example, when sps_bdof_enabled_flag is equal to 1 and sps_bdof_pic_present_flag is equal to 1 but ph_disable_bdof_flag is not signaled, it implies that num_ref_entries[0][RplsIdx[0]] is equal to 0 or num_ref_entries[1][rplsidx[1]] is equal to 0 according to the proposed signaling condition regarding ph_disable_bdof_flag. Therefore, under this condition, ph_disable_bdof_flag is not signaled and is inferred to be 1. In the current VVC, not only the resolution of the co-located image affects TMVP enabling, but also the offset applied to the image size for scaling calculations. However, in the current VVC, the offset is not considered in the bitstream consistency of ph_temporal_mvp_enabled_flag. In the second embodiment, a bitstream consistency constraint is proposed to be added to the current VVC, requiring that the value of ph_temporal_mvp_enabled_flag should depend on the offset applied to the image size for scaling calculations, as described below.

[0169] When there is no reference image in the DPB with the same spatial resolution and the same offset applied to the image size for scaling calculations as the current image, the value of ph_temporal_mvp_enabled_flag should be equal to 0.

[0170] The above semantics can also be written in another way as follows: The value of ph_temporal_mvp_enabled_flag should be 0 when the reference image in the DPB does not have an associated variable value RprConstraintsActive[i][j] equal to 0.

[0171] In current VVC, there is a requirement for bitstream consistency: the image referenced by `slice_collocated_ref_idx` should be identical across all slices of the encoded image. However, this bitstream consistency cannot be satisfied when the encoded image has multiple slices and there is no common reference image among all these slices. In the third embodiment of this disclosure, the bitstream consistency requirement for `ph_temporal_mvp_enabled_flag` is modified to consider whether there is a common reference image among all slices in the current image. Based on this embodiment, several exemplary modifications to the VVC specification are shown below.

[0172] `ph_temporal_mvp_enabled_flag` specifies whether the temporal motion vector prediction factor can be used for inter-frame prediction of the slices associated with the PH. If `ph_temporal_mvp_enabled_flag` equals 0, the syntax elements of the slices associated with the PH should be constrained so that the temporal motion vector prediction factor is not used in the decoding of the slices. Otherwise (if `ph_temporal_mvp_enabled_flag` equals 1), the temporal motion vector prediction factor can be used to decode the slices associated with the PH. When it does not exist, it is inferred that the value of `ph_temporal_mvp_enabled_flag` is equal to 0. The value of `ph_temporal_mvp_enabled_flag` should be equal to 0 when there is no reference picture in the DPB with the same spatial resolution as the current picture. The value of `ph_temporal_mvp_enabled_flag` should be equal to 0 when there is no common reference picture among all slices associated with the PH.

[0173] `ph_temporal_mvp_enabled_flag` specifies whether the temporal motion vector prediction factor can be used for inter-frame prediction of the slices associated with the PH. If `ph_temporal_mvp_enabled_flag` equals 0, the syntax elements of the slices associated with the PH should be constrained so that the temporal motion vector prediction factor is not used in the decoding of the slices. Otherwise (if `ph_temporal_mvp_enabled_flag` equals 1), the temporal motion vector prediction factor can be used to decode the slices associated with the PH. When it does not exist, it is inferred that the value of `ph_temporal_mvp_enabled_flag` is equal to 0. The value of `ph_temporal_mvp_enabled_flag` should be equal to 0 when there is no reference picture in the DPB with the same spatial resolution as the current picture. The value of `ph_temporal_mvp_enabled_flag` should be equal to 0 when there is no common reference picture in all inter-frame slices associated with the PH.

[0174] `ph_temporal_mvp_enabled_flag` specifies whether the temporal motion vector prediction factor can be used for inter-frame prediction of the slice associated with the PH. If `ph_temporal_mvp_enabled_flag` is equal to 0, the syntax elements of the slice associated with the PH should be constrained so that the temporal motion vector prediction factor is not used in the decoding of the slice. Otherwise (if `ph_temporal_mvp_enabled_flag` is equal to 1), the temporal motion vector prediction factor can be used to decode the slice associated with the PH. When it does not exist, it is inferred that the value of `ph_temporal_mvp_enabled_flag` is equal to 0. The value of `ph_temporal_mvp_enabled_flag` should be equal to 0 when there is no reference picture in the DPB with the same spatial resolution as the current picture. The value of `ph_temporal_mvp_enabled_flag` should be equal to 0 when there is no common reference picture in all non-intra-frame slices associated with the PH.

[0175] In one example, the bitstream consistency of slice_collocated_ref_idx is simplified as follows: The requirement for bitstream consistency is that the values ​​of pic_width_in_luma_samples and pic_height_in_luma_samples of the reference image referenced by slice_collocated_ref_idx should be equal to the values ​​of pic_width_in_luma_samples and pic_height_in_luma_samples of the current image, respectively, and RprConstraintsActive[slice_collocated_from_l0_flag? 0:1][slice_collocated_ref_idx] should be equal to 0.

[0176] The methods described above can be implemented using a device comprising one or more circuits, including application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components. The device can be used in conjunction with other hardware or software components to perform the methods described above. Each module, submodule, unit, or subunit disclosed above can be implemented at least partially using one or more circuits.

[0177] In the current VVC specification, we have two bitstream concordances regarding the resolution restrictions of co-located images. One is proposed for ph_temporal_mvp_enabled_flag, and the other is for bitstream concordance regarding slice_collocated_ref_idx. However, having two bitstream concordances in terms of functionality is redundant in the VVC specification, as they both prohibit the use of co-located images with different resolutions and / or different scaling offsets than the current image. To reduce the burden on the encoder to check bitstream concordance, in the fifth embodiment, it is recommended to apply only the bitstream concordance slice_collocated_ref_idx. An example of the revised VVC specification is shown below. The changed parts are highlighted.

[0178]

[0179] In one example, it is proposed to apply only the bitstream consistency flag ph_temporal_mvp_enabled_flag. An example of a revised VVC specification is shown below.

[0180]

[0181] Figure 5This is a block diagram illustrating an exemplary apparatus for video encoding and decoding according to some embodiments of the present disclosure. Apparatus 500 may be a terminal, such as a mobile phone, tablet computer, digital broadcasting terminal, tablet device, or personal digital assistant.

[0182] like Figure 5 As shown, device 500 may include one or more of the following components: processing component 502, memory 504, power supply component 506, multimedia component 508, audio component 510, input / output (I / O) interface 512, sensor component 514, and communication component 516.

[0183] Processing component 502 typically controls the overall operation of device 500, such as operations related to display, telephone calls, data communication, camera operation, and recording. Processing component 502 may include one or more processors 1020 for executing instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.

[0184] Memory 504 is configured to store different types of data to support the operation of device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, etc. Memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, and memory 504 can be static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or compact disk.

[0185] Power supply component 506 supplies power to various components of device 500. Power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 500.

[0186] Multimedia component 508 includes a screen that provides an output interface between device 500 and the user. In some examples, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touchscreen that receives input signals from the user. The touch panel may include one or more touch sensors for sensing touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some examples, multimedia component 508 may include a front-facing camera and / or a rear-facing camera. When device 500 is in an operating mode (such as a shooting mode or a video mode), the front-facing camera and / or the rear-facing camera can receive external multimedia data.

[0187] Audio component 510 is configured to output and / or input audio signals. For example, audio component 510 includes a microphone (MIC). When device 500 is in an operating mode (such as call mode, recording mode, and voice recognition mode), the microphone is configured to receive external audio signals. The received audio signals may be further stored in memory 504 or transmitted via communication component 516. In some examples, audio component 510 also includes a speaker for outputting audio signals.

[0188] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules. These peripheral interface modules can be keyboards, click wheels, buttons, etc. These buttons can include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0189] Sensor assembly 514 includes one or more sensors for providing state assessment in various aspects of device 500. For example, sensor assembly 514 may detect the on / off state of device 500 and the relative position of components. For example, components may be the display and keyboard of device 500. Sensor assembly 514 may also detect changes in position of device 500 or its components, the presence or absence of user contact with device 500, the orientation or acceleration / deceleration of device 500, and temperature changes of device 500. Sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. Sensor assembly 514 may also include optical sensors, such as CMOS or CCD image sensors used in imaging applications. In some examples, sensor assembly 514 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0190] Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices. Device 500 may access a wireless network based on communication standards such as WiFi, 4G, or combinations thereof. In one example, communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one example, communication component 516 may also include a near-field communication (NFC) module for facilitating short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0191] In one example, device 500 may be implemented by one or more of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components to perform the above-described method.

[0192] Non-transitory computer-readable storage media can be, for example, hard disk drives (HDDs), solid-state drives (SSDs), flash memory, hybrid drives or solid-state hybrid drives (SSHDs), read-only memory (ROM), compact disk read-only memory (CD-ROM), magnetic tape, floppy disks, etc.

[0193] Figure 6 This is a flowchart illustrating an exemplary process of video encoding and decoding according to some embodiments of the present disclosure.

[0194] In step 602, the processor 520 determines whether a disable flag exists in the PH associated with the image.

[0195] In some examples, the disable flag specifies whether to disable the codec tools in one or more stripes associated with the PH.

[0196] In step 604, in response to determining that a disable flag is not present in the PH, the processor 520 infers the value of the disable flag based on one or more enable flags signaled in the SPS of the image.

[0197] In some examples, processor 520 disables the codec tools when decoding one or more stripes in response to determining that the value of the disable flag is equal to 1, and enables the codec tools when decoding one or more stripes in response to determining that the value of the disable flag is equal to 0.

[0198] In some examples, the encoding / decoding tools include at least one of DMVR-based inter-frame bidirectional prediction and BDOF-based inter-frame bidirectional prediction.

[0199] In some examples, processor 520 skips parsing the disable flag in response to determining that one or more reference image lists indicate that one or more stripes associated with an image are not bidirectionally predicted.

[0200] In some examples, the disable flag specifies whether to disable DMVR-based inter-frame bidirectional prediction in one or more stripes associated with the PH. The processor 520 disables the codec tools when decoding one or more stripes by disabling DMVR-based inter-frame bidirectional prediction, and the processor 520 enables the codec tools when decoding one or more stripes by enabling DMVR-based inter-frame bidirectional prediction.

[0201] In some examples, processor 520, in response to determining to skip parsing the disable flag, infers the value of the disable flag based on one or more enable flags signaled in the SPS of the image by: inferring the value of the disable flag to 0 in response to determining that the first enable flag in the SPS is equal to 1 and the second enable flag in the SPS is equal to 0.

[0202] In some examples, the first enable flag in the SPS specifies whether DMVR-based inter-frame bidirectional prediction is enabled. A first enable flag of 1 indicates that DMVR-based inter-frame bidirectional prediction is enabled, and a first enable flag of 0 indicates that DMVR-based inter-frame bidirectional prediction is disabled.

[0203] In some examples, the second enable flag in the SPS specifies whether a disable flag exists in the PH of the reference SPS. A second enable flag of 0 indicates that a disable flag does not exist in the PH of the reference SPS, and a second enable flag of 1 indicates that a disable flag exists in the PH of the reference SPS.

[0204] In some examples, in response to determining to skip parsing the disable flag, the processor 520 infers the value of the disable flag based on one or more enable flags signaled in the SPS of the image by: inferring the value of the disable flag to 1 in response to determining that the first enable flag in the SPS is equal to 1 and the second enable flag in the SPS is equal to 1, and inferring the value of the disable flag to 1 in response to determining that the first enable flag in the SPS is equal to 0.

[0205] In some examples, processor 520, in response to determining to skip parsing the disable flag, infers the value of the disable flag based on one or more enable flags signaled in the SPS of the picture by: inferring the disable flag to be 1 in response to determining that a first enable flag in the SPS is equal to 0 and a second enable flag in the SPS is equal to 0; and in response to determining that a first enable flag in the SPS is equal to 1, a second enable flag in the SPS is equal to 1, one or more reference picture lists are signaled in the PH, and the number of reference pictures in the second reference picture list is equal to 0, inferring the value of the disable flag to be 1. The one or more reference picture lists include a first reference picture list and a second reference picture list.

[0206] In some examples, in response to determining to skip parsing the disable flag, the processor 520 infers the value of the disable flag based on one or more enable flags signaled in the SPS of the image by: inferring the value of the disable flag to be 1 in response to determining that the first enable flag in the SPS is equal to 0, and inferring the value of the disable flag to be 1 in response to determining that the second enable flag in the SPS is equal to 1.

[0207] In some examples, processor 520 determines the value of a first enable flag in the SPS to be W, and the first enable flag in the SPS specifies whether DMVR-based inter-frame bidirectional prediction is enabled; a first enable flag equal to 1 indicates that DMVR-based inter-frame bidirectional prediction is enabled, and a first enable flag equal to 0 indicates that DMVR-based inter-frame bidirectional prediction is disabled. In response to determining to skip parsing the disable flag, processor 520 infers the value of the disable flag based on one or more enable flags signaled in the SPS of the image by: in response to determining that a second enable flag in the SPS is equal to 0, inferring the value of the disable flag to be 1-W. The second enable flag in the SPS specifies whether a disable flag exists in the PH of the reference SPS; a second enable flag equal to 0 indicates that a disable flag does not exist in the PH of the reference SPS, and a second enable flag equal to 1 indicates that a disable flag exists in the PH of the reference SPS.

[0208] In some examples, processor 520, in response to determining to skip parsing the disable flag, infers the value of the disable flag based on one or more enable flags signaled in the SPS of the image by: inferring the value of the disable flag to 1 in response to determining that a second enable flag in the SPS is not equal to 0.

[0209] In some examples, processor 520 infers the value of the disable flag to be 1 in response to determining that the second enable flag in the SPS is not equal to 0: in response to determining that the second enable flag in the SPS is equal to 1, signaling one or more reference picture lists in the PH, and the number of reference pictures in the second reference picture list being equal to 0, the value of the disable flag to be 1 is inferred. The one or more reference picture lists include a first reference picture list and a second reference picture list.

[0210] In some examples, processor 520 infers the value of the disable flag based on one or more enable flags in SPS in response to determining that a disable flag is signaled in PH.

[0211] In some examples, the processor 520 infers the value of a disable flag based on one or more enable flags in the SPS in response to determining that a disable flag is signaled in the PH: determining the value of a first enable flag in the SPS to be W; inferring the value of the disable flag to be 1-W in response to determining that a second enable flag in the SPS is equal to 1 and that one or more reference picture lists are not signaled in the PH; and inferring the value of the disable flag to be 1-W in response to determining that a second enable flag in the SPS is equal to 1, that one or more reference picture lists are signaled in the PH, and that the number of reference pictures in reference picture list 1 is greater than 0.

[0212] In some examples, the processor 520 infers the value of a disable flag based on one or more enable flags in the SPS in response to determining that a disable flag is signaled in the PH: in response to determining that a first enable flag in the SPS is equal to 1, a second enable flag in the SPS is equal to 1, and one or more reference picture lists are not signaled in the PH, the value of the disable flag is inferred to be the value of a disable flag explicitly signaled in the PH; in response to determining that a first enable flag in the SPS is equal to 1, a second enable flag in the SPS is equal to 1, one or more reference picture lists are signaled in the PH, and the number of reference pictures in reference picture list 1 is greater than 0, the value of the disable flag is inferred to be the value of a disable flag explicitly signaled in the PH.

[0213] In some examples, the disable flag specifies whether to disable BDOF-based inter-frame bidirectional prediction in one or more stripes associated with the PH. Processor 520 disables the codec tools when decoding one or more stripes by disabling BDOF-based inter-frame bidirectional prediction, and enables the codec tools when decoding one or more stripes by enabling BDOF-based inter-frame bidirectional prediction.

[0214] In some examples, processor 520, in response to determining to skip parsing the disable flag, infers the value of the disable flag based on one or more enable flags signaled in the SPS of the image by: inferring a value of 0 for the disable flag in response to determining that a third enable flag in the SPS is equal to 1 and a fourth enable flag in the SPS is equal to 0. The third enable flag in the SPS specifies whether BDOF-based inter-frame bidirectional prediction is enabled; a third enable flag equal to 1 indicates that BDOF-based inter-frame bidirectional prediction is enabled, and a third enable flag equal to 0 indicates that BDOF-based inter-frame bidirectional prediction is disabled. The fourth enable flag in the SPS specifies whether a disable flag exists in the PH of the reference SPS; a fourth enable flag equal to 0 indicates that a disable flag does not exist in the PH of the reference SPS, and a fourth enable flag equal to 1 indicates that a disable flag exists in the PH of the reference SPS.

[0215] In some examples, in response to determining to skip parsing the disable flag, the processor 520 infers the value of the disable flag based on one or more enable flags signaled in the SPS of the image by: inferring the value of the disable flag to be 1 in response to determining that the third enable flag in the SPS is equal to 1 and the fourth enable flag in the SPS is equal to 1, and inferring the value of the disable flag to be 1 in response to determining that the third enable flag in the SPS is equal to 0.

[0216] In some examples, processor 520, in response to determining to skip parsing the disable flag, infers the value of the disable flag based on one or more enable flags signaled in the SPS of the picture by: inferring the disable flag to be 1 in response to determining that a third enable flag in the SPS is equal to 0 and a fourth enable flag in the SPS is equal to 0; and in response to determining that a third enable flag in the SPS is equal to 1, a fourth enable flag in the SPS is equal to 1, one or more reference picture lists are signaled in the PH, and the number of reference pictures in the second reference picture list is equal to 0, inferring the value of the disable flag to be 1. The one or more reference picture lists include a first reference picture list and a second reference picture list.

[0217] In some examples, in response to determining to skip parsing the disable flag, the processor 520 infers the value of the disable flag based on one or more enable flags signaled in the SPS of the image by: inferring the value of the disable flag to be 1 in response to determining that a third enable flag in the SPS is equal to 0, and inferring the value of the disable flag to be 1 in response to determining that a fourth enable flag in the SPS is equal to 1.

[0218] In some examples, processor 520 determines the value of the third enable flag in the SPS to be V, and infers the value of the disable flag based on one or more enable flags signaled in the SPS of the image by: in response to determining that the fourth enable flag in the SPS is equal to 0, inferring the value of the disable flag to be 1-V.

[0219] In some examples, processor 520, in response to determining to skip parsing the disable flag, infers the value of the disable flag based on one or more enable flags signaled in the SPS of the image by: inferring the value of the disable flag to 1 in response to determining that the fourth enable flag in the SPS is not equal to 0.

[0220] In some examples, processor 520 infers the value of the disable flag to be 1 in response to determining that the fourth enable flag in the SPS is not equal to 0: in response to determining that the fourth enable flag in the SPS is equal to 1, signaling one or more reference picture lists in the PH, and that the number of reference pictures in the second reference picture list is equal to 0, the value of the disable flag to be 1 is inferred. The one or more reference picture lists include a first reference picture list and a second reference picture list.

[0221] In some examples, processor 520 determines the value of the third enable flag in the SPS to be V and infers the value of the disable flag based on one or more enable flags in the SPS in response to determining that a disable flag is signaled in the PH: inferring the value of the disable flag to be 1-V in response to determining that the fourth enable flag in the SPS is equal to 1 and that one or more reference picture lists are not signaled in the PH; and inferring the value of the disable flag to be 1-V in response to determining that the fourth enable flag in the SPS is equal to 1, that one or more reference picture lists are signaled in the PH and that the number of reference pictures in reference picture list 1 is greater than 0.

[0222] In some examples, processor 520, in response to determining that the third enable flag in SPS is equal to 1, the fourth enable flag in SPS is equal to 1, and one or more reference picture lists are not signaled in PH, infers that the value of the disable flag is the value of the disable flag explicitly signaled in PH; and in response to determining that the third enable flag in SPS is equal to 1, the fourth enable flag in SPS is equal to 1, one or more reference picture lists are signaled in PH, and the number of reference pictures in reference picture list 1 is greater than 0, infers that the value of the disable flag is the value of the disable flag explicitly signaled in PH.

[0223] Figure 7 This is a flowchart illustrating an exemplary process of video encoding and decoding according to some embodiments of the present disclosure.

[0224] In step 702, processor 520 determines whether a flag exists in the PH associated with the image.

[0225] In some examples, this flag specifies whether the image used for the TMVP is derived from a list of reference images from a list of multiple reference images associated with the image.

[0226] In step 704, in response to determining that the flag exists in PH, the processor 520 infers the value of the flag based on the number of reference images in the reference image list.

[0227] In some examples, processor 520 skips parsing a flag in response to determining that a list of multiple reference images indicates that one or more stripes associated with an image are not bidirectionally predicted.

[0228] In some examples, the list of multiple reference images includes a first list of reference images and a second list of reference images.

[0229] In some examples, this flag equal to 1 indicates that the images used for the TMVP are derived from a first list of reference images, and this flag equal to 0 indicates that the images used for the TMVP are derived from a second list of reference images.

[0230] In some examples, in response to determining to skip parsing this flag, processor 520 infers the value of this flag based on the number of reference images in the reference image list by: inferring the value of this flag to be 1 in response to determining that the number of reference images in the first reference image list is greater than 1, and inferring the value of this flag to be 0 in response to determining that the number of reference images in the second reference image list is greater than 1.

[0231] Figure 8 This is a flowchart illustrating an exemplary process of video encoding and decoding according to some embodiments of the present disclosure.

[0232] In step 802, processor 520 determines whether a flag exists in the PH associated with the image.

[0233] In some examples, this flag specifies the number of weights sent by the signal in the reference picture list based on the first WP flag in the picture's PPS and the second WP flag in the picture's PH, and this flag is in the WP syntax associated with the picture.

[0234] In step 804, in response to determining that the flag exists in PH, the processor 520 infers the value of the flag based on the number of reference images in the list of reference images in the list of multiple reference images associated with the image.

[0235] In some examples, processor 520 skips parsing a flag in response to determining that a list of multiple reference images indicates that one or more stripes associated with an image are not bidirectionally predicted.

[0236] In some examples, the multiple reference picture lists include a first reference picture list and a second reference picture list. This flag specifies the number of weights sent in the second reference picture list in response to determining that the first WP flag in PPS is equal to 1 and the second WP flag in PH is equal to 1.

[0237] In some examples, processor 520, in response to determining that parsing of this flag is skipped, infers the value of this flag based on the number of reference images in the reference image list associated with the image by: in response to determining that the first WP flag in PPS is equal to 0, the second WP flag in PH is equal to 1 and the number of reference images in the second reference image list is equal to 0, infers the value of this flag to be 0; in response to determining that the first WP flag in PPS is not equal to 0 and the second WP flag in PH is equal to 1, infers the value of this flag to be the value of this flag explicitly signaled in PH; and in response to determining that the first WP flag in PPS is not equal to 0 and the second WP flag in PH is not equal to 1, infers the value of this flag to be the value of NumRefIdxActive[1].

[0238] In some examples, the value of NumRefIdxActive[i]-1 specifies the maximum reference index of the reference image list i, where i is equal to 0 or 1.

[0239] For example, the value of NumRefIdxActive[1]-1 specifies the maximum reference index of the reference image list 1 (i.e., the second reference image list).

[0240] In some examples, the processor 520 determines the value of the flag in response to determining that the flag exists in the PH by: determining the value of the flag to 0 in response to determining that the first WP flag in the PPS is equal to 0; determining the value of the flag to the value of the flag explicitly signaled in the PH in response to determining that the first WP flag in the PPS is not equal to 0 and the second WP flag in the PH is equal to 1; and determining the value of the flag to the value of NumRefIdxActive[1] in response to determining that the first WP flag in the PPS is not equal to 0 and the second WP flag in the PH is not equal to 1.

[0241] Figure 9 This is a flowchart illustrating an exemplary process of video encoding and decoding according to some embodiments of the present disclosure.

[0242] In step 902, processor 520 uses an enable flag to specify whether one or more temporal motion vector prediction factors are used for inter-frame prediction of one or more stripes associated with the PH of the image.

[0243] In step 904, the processor 520 constrains the value of the enable flag based on multiple offsets applied to the size of the image for scaling ratio calculation.

[0244] In some examples, the processor sets the enable flag to 0 in response to determining that no common reference picture exists in one or more inter-frame stripes. The one or more stripes include one or more inter-frame stripes associated with a PH.

[0245] In some examples, the processor sets the enable flag to 0 in response to determining that there is no common reference picture in one or more non-intra-frame stripes.

[0246] In some examples, an apparatus for video encoding / decoding is provided. The apparatus includes one or more processors 520; and a memory 504 configured to store instructions executable by the one or more processors; wherein the processors, when executing the instructions, are configured to perform actions such as... Figure 6 The method shown.

[0247] In some examples, an apparatus for video encoding / decoding is provided. The apparatus includes one or more processors 520; and a memory 504 configured to store instructions executable by the one or more processors; wherein the processors, when executing the instructions, are configured to perform actions such as... Figure 7 The method shown.

[0248] In some examples, an apparatus for video encoding / decoding is provided. The apparatus includes one or more processors 520; and a memory 504 configured to store instructions executable by the one or more processors; wherein the processors, when executing the instructions, are configured to perform actions such as... Figure 8 The method shown.

[0249] In some examples, an apparatus for video encoding / decoding is provided. The apparatus includes one or more processors 520; and a memory 504 configured to store instructions executable by the one or more processors; wherein the processors, when executing the instructions, are configured to perform actions such as... Figure 9 The method shown.

[0250] In some other examples, a non-transitory computer-readable storage medium 504 is provided, having instructions stored therein. When executed by one or more processors 520, the instructions cause the processor to perform actions such as Figure 6 The method shown.

[0251] In some other examples, a non-transitory computer-readable storage medium 504 is provided, having instructions stored therein. When executed by one or more processors 520, the instructions cause the processor to perform actions such as Figure 7 The method shown.

[0252] In some other examples, a non-transitory computer-readable storage medium 504 is provided, having instructions stored therein. When executed by one or more processors 520, the instructions cause the processor to perform actions such as Figure 8 The method shown.

[0253] In some other examples, a non-transitory computer-readable storage medium 504 is provided, having instructions stored therein. When executed by one or more processors 520, the instructions cause the processor to perform actions such as Figure 9 The method shown.

[0254] The description in this disclosure has been presented for illustrative purposes and is not intended to be exhaustive or limited thereto. Many modifications, variations, and alternative embodiments will be apparent to those skilled in the art from the teachings presented in the foregoing description and the associated drawings.

[0255] The examples chosen and described are intended to explain the principles of this disclosure and to enable others skilled in the art to understand the various embodiments of this disclosure, and preferably to utilize the basic principles and various embodiments with various modifications suitable for the intended particular purpose. Therefore, it will be understood that the scope of this disclosure is not limited to the specific examples of the disclosed embodiments, and that modifications and other embodiments are intended to be included within the scope of this disclosure.

Claims

1. A method for video decoding, comprising: Determine whether a flag exists in the image header PH associated with the image, wherein the flag specifies the number of weights sent by signaling for entries in the reference image list when the first weighted prediction WP flag and the second WP flag are 1, wherein the flag is in the WP syntax associated with the image; as well as In response to determining that the marker is not present in the PH, a variable value associated with the marker is inferred based on the number of reference images in a list of reference images from a plurality of reference image lists associated with the image.

2. The method according to claim 1, further comprising: In response to determining, based on the plurality of reference image lists, that one or more bands associated with the image are not bidirectionally predicted, it is determined that the flag does not exist.

3. The method according to claim 1, further comprising: The response determines that the first WP flag is equal to 0 and the second WP flag is equal to 1, and determines that the flag does not exist; as well as In response to determining that the first WP flag is not equal to 0 and the second WP flag is not equal to 1, it is determined that the flag does not exist.

4. The method according to claim 1, wherein the plurality of reference image lists includes a first reference image list and a second reference image list; and The flags specify the number of weights to be signaled for entries in the second reference image list in response to determining that the first WP flag is equal to 1 and the second WP flag is equal to 1.

5. The method according to claim 3, wherein the plurality of reference image lists includes a first reference image list and a second reference image list; In response to determining that the flag does not exist, inferring the variable value associated with the flag based on the number of reference images in the list of reference images associated with the image includes: In response to determining that the number of reference images in the second reference image list is equal to 0, it is inferred that the variable value associated with the flag is 0; as well as In response to determining that the number of reference images in the second reference image list is equal to 1, the variable value associated with the flag is inferred to be the value of NumRefIdxActive[1], where the value of NumRefIdxActive[1]-1 specifies the maximum reference index for the second reference image list.

6. The method according to claim 1, further comprising: In response to determining that the flag is present in the PH, the variable value associated with the flag is determined as the value of the flag that is explicitly signaled in the PH.

7. The method according to claim 1, wherein, The color sampling format of the image blocks is 4:2:

0.

8. A method for video encoding, comprising: Selectively, flags in the image header PH associated with the image are signaled, wherein the flags specify the number of weights to be signaled for entries in the reference image list when the first weighted prediction WP flag and the second WP flag are 1, wherein the flags are in the WP syntax associated with the image. In response to the flag being determined to be absent in the PH, the variable value associated with the flag is inferred based on the number of reference images in the reference image list from multiple reference image lists associated with the image.

9. The method according to claim 8, wherein, Selectively send flags in the image header PH associated with the image using signals, including: In response to one or more stripes associated with the image being determined, according to the plurality of reference image lists, not to be bidirectionally predicted, the flag is sent without signaling.

10. The method according to claim 8, wherein, When the first WP flag is determined to be equal to 0 and the second WP flag is determined to be equal to 1, the flag is determined to be absent; as well as In response to the first WP flag being determined to be non-zero and the second WP flag being determined to be non-zero, the flag is determined to be non-existent.

11. The method of claim 8, wherein the plurality of reference image lists includes a first reference image list and a second reference image list; and The flags specify the number of weights to be signaled for entries in the second reference image list in response to the first WP flag being determined to be equal to 1 and the second WP flag being determined to be equal to 1.

12. The method of claim 10, wherein the plurality of reference image lists includes a first reference image list and a second reference image list; in, In response to the number of reference images in the second reference image list being determined to be equal to 0, the variable value associated with the flag is inferred to be 0; as well as In response to the number of reference images in the second reference image list being determined to be equal to 1, the variable value associated with the flag is inferred to be the value of NumRefIdxActive[1], where the value of NumRefIdxActive[1]-1 specifies the maximum reference index for the second reference image list.

13. The method of claim 8, wherein In response to the flag being determined to be present in the PH, the variable value associated with the flag is determined to be the value of the flag explicitly signaled in the PH.

14. The method according to claim 8, wherein, The color sampling format of the image blocks is 4:2:

0.

15. An apparatus for video decoding, comprising: One or more processors; as well as The memory is configured to store instructions executable by the one or more processors; The one or more processors wherein the instructions are executed are configured to perform the method according to any one of claims 1-7.

16. An apparatus for video encoding, comprising: One or more processors; as well as The memory is configured to store instructions executable by the one or more processors; The one or more processors wherein the instructions are executed are configured to perform the method according to any one of claims 8-14.

17. A non-transitory computer-readable storage medium storing computer-executable instructions and a bit stream, wherein the computer-executable instructions, when executed by one or more computer processors, cause the one or more computer processors to perform the method according to any one of claims 1-6 and store a bit stream to be decoded by the method according to any one of claims 1-6, or to perform the method according to any one of claims 8-13 and store a bit stream generated by the method according to any one of claims 8-13.

18. The non-transitory computer-readable storage medium according to claim 17, wherein, The color sampling format of the image blocks is 4:2:

0.

19. A method for storing a bit stream, comprising: Perform the method according to any one of claims 8-13 to generate a bitstream; Store the bit stream.

20. The method according to claim 19, wherein, The color sampling format of the image blocks is 4:2:

0.

21. A computer program product having computer-executable instructions that, when executed by one or more computer processors, cause the one or more computer processors to perform the method according to any one of claims 1-14.