Reference picture management in video coding
By structuring reference picture lists for video coding based on slice types and using specific flags, the method addresses inefficiencies in reference picture management, improving video compression and decompression efficiency.
Patent Information
- Application Number
- JP2023051948
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2018-08-17
- Filing Date
- 2023-03-28
- Publication Date
- 2026-01-20
- Estimated Expiration
- 2039-08-16
AI Technical Summary
The challenge of managing reference picture lists in video coding is complex, leading to inefficiencies in signaling and compression, particularly in limited bandwidth communication and storage scenarios.
A method for decoding a coded video bitstream that simplifies and enhances the signaling of reference picture lists by deriving and using structured reference picture lists, such as RefPictList[0] and RefPictList[1], based on specific slice types like I, P, or B slices, and employing flags like ref_pic_list_sps_flag[i] and num_ref_idx_active_override_flag for efficient reference picture management.
This approach improves the overall coding process by making reference picture list signaling more efficient, thereby enhancing video compression and decompression techniques with minimal quality sacrifice.
Smart Images

Figure 0007802719000041 
Figure 0007802719000042 
Figure 0007802719000043
Abstract
Description
[Technical Field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This patent application claims the benefit of U.S. Provisional Patent Application No. 62 / 719,360, entitled "Reference Picture in Video Coding," filed August 17, 2018, by Ye-Kui Wang et al., which is incorporated herein by reference.
[0002] This disclosure relates generally to techniques for reference picture management in video coding. More specifically, this disclosure describes techniques for building reference picture lists and marking reference pictures. [Background technology]
[0003] The amount of video data required to render even a relatively short video can be substantial, which can pose challenges when data is streamed or otherwise communicated over communications networks with limited bandwidth capacity. Therefore, video data is typically compressed before being communicated over modern telecommunications networks. Because memory resources may be limited, video size can also be an issue when the video is stored on a storage device. Video compression devices often use software and / or hardware at the source to code the video data before transmission or storage, thereby reducing the amount of data needed to represent a digital video image. The compressed data is then received at the destination by a video decompression device, which decodes the video data. Due to limited network resources and an ever-increasing demand for higher quality video, improved compression and decompression techniques that increase compression ratios with little or no sacrifice in image quality are desirable. Summary of the Invention [Means for solving the problem]
[0004] A first aspect relates to a method for decoding a coded video bitstream, the method comprising: obtaining a first reference picture list structure and a second reference picture list structure represented in the coded video bitstream; deriving a first reference picture list and a second reference picture list of a current slice based on the first reference picture list structure and the second reference picture list structure, where the current slice comprises an intra (I) slice, a uni-predictive (P) slice, or a bi-predictive (B) slice; and obtaining at least one reconstructed block of the current slice following the derivation of the first reference picture list and the second reference picture list.
[0005] The method provides techniques that make the signaling of reference picture lists simpler and more efficient, thus improving the overall coding process.
[0006] In the first implementation of the method according to the first aspect itself, the order of the entries in the reference picture list structure is the same as the order of the corresponding reference pictures in the reference picture list.
[0007] In the second implementation of the method according to the first aspect itself or in any preceding implementation of the first aspect, the order is from 0 to the indicated value.
[0008] In the third implementation of the method according to the first aspect itself or in any preceding implementation of the first aspect, the indicated value is from 0 to the value indicated by sps_max_dec_pic_buffering_minus1.
[0009] In the fourth implementation of the method according to the first aspect itself or in any preceding implementation of the first aspect, the reference picture list is called RefPictList[0].
[0010] In the fifth implementation of the method according to the first aspect itself or in any preceding implementation of the first aspect, the reference picture list is called RefPictList[1].
[0011] In the sixth implementation form of the method according to the first aspect itself or in any preceding implementation form of the first aspect, at least one reconstructed block is used to generate an image that is displayed on a display of the electronic device.
[0012] In the seventh implementation of the method according to the first aspect itself or in any preceding implementation of the first aspect, the reference picture list comprises a list of reference pictures used for inter prediction.
[0013] In the eighth implementation of the method according to the first aspect itself or in any preceding implementation of the first aspect, the inter prediction is for a P slice or a B slice.
[0014] In the ninth implementation of the method according to the first aspect itself or in any preceding implementation of the first aspect, the slice header includes a reference picture list sequence parameter set (SPS) flag called ref_pic_list_sps_flag[i].
[0015] In the tenth implementation form of the method according to the first aspect itself or in any preceding implementation form of the first aspect, the slice header includes a number reference index active override flag specified by num_ref_idx_active_override_flag.
[0016] In the eleventh implementation form of the method according to the first aspect itself or in any preceding implementation form of the first aspect, the reference picture list is called RefPictList[0] or RefPictList[1], and the order of entries in the reference picture list structure is the same as the order of the corresponding reference pictures in the reference picture list.
[0017] In the twelfth implementation of the method according to the first aspect itself or in any preceding implementation of the first aspect, the current slice is an I slice or a P slice.
[0018] A second aspect relates to a decoding device including: a receiver configured to receive a coded video bitstream; a memory coupled to the receiver, the memory storing instructions; and a processor coupled to the memory, wherein the processor is configured to execute the instructions stored in the memory to cause the processor to obtain a first reference picture list structure and a second reference picture list structure represented in the coded video bitstream; derive a first reference picture list of a current slice and a second reference picture list of the current slice based on the first reference picture list structure and the second reference picture list structure, the current slice comprising an intra (I) slice, a uni-predictive (P) slice, or a bi-predictive (B) slice; and obtain at least one reconstructed block of the current slice following the derivation of the first reference picture list and the second reference picture list.
[0019] The decoding device provides techniques that make the signaling of reference picture lists simpler and more efficient, thus improving the overall coding process.
[0020] As such, in a first implementation form of the decoding device according to the second aspect, the decoding device further includes a display configured to display an image based on the at least one reconstructed block.
[0021] A third aspect relates to a coding device including: a receiver configured to receive a bitstream to be decoded; a transmitter coupled to the receiver, the transmitter configured to transmit a decoded image to a display; a memory coupled to at least one of the receiver or the transmitter, the memory configured to store instructions; and a processor coupled to the memory, the processor configured to execute the instructions stored in the memory to perform the method of any of the aforementioned aspects or implementations.
[0022] A fourth aspect relates to a system including an encoder and a decoder in communication with the encoder, the encoder or decoder including the decoding device or coding apparatus of any of the preceding aspects or implementations.
[0023] The system provides techniques that make reference picture list signaling simpler and more efficient, thus improving the overall coding process.
[0024] A fifth aspect relates to means for coding, comprising: receiving means configured to receive a picture to be encoded or to receive a bitstream to be decoded; transmitting means coupled to the receiving means, the transmitting means configured to transmit the bitstream to a decoder or to transmit a decoded image to a display means; storage means coupled to at least one of the receiving means or the transmitting means, the storage means configured to store instructions; and processing means coupled to the storage means, the processing means configured to execute the instructions stored in the storage means to perform the method of any of the aforementioned aspects or implementations.
[0025] The means for coding provides techniques that make the signaling of reference picture lists simpler and more efficient, thus improving the overall coding process.
[0026] For a more complete understanding of the present disclosure, reference is now made to the following brief description, taken in conjunction with the accompanying drawings and detailed description, wherein like reference numerals represent like parts. [Brief explanation of the drawings]
[0027] [Figure 1] 1 is a block diagram illustrating an example coding system that may utilize bilateral prediction techniques. [Figure 2] 1 is a block diagram illustrating an example video encoder that may implement a bilateral prediction technique. [Figure 3] 1 is a block diagram illustrating an example of a video decoder that can implement a bilateral prediction technique. [Figure 4] 1 is a schematic diagram illustrating a reference picture set (RPS) having pictures with entries in all subsets of the RPS. [Figure 5] 1 is an embodiment of a method for decoding a coded video bitstream. [Figure 6] 1 is a schematic diagram of a video coding device. [Figure 7] FIG. 1 is a schematic diagram of an embodiment of a means for coding. DETAILED DESCRIPTION OF THE INVENTION
[0028] 1 is a block diagram illustrating an example coding system 10 that may utilize video coding techniques as described herein. As shown in FIG. 1, coding system 10 includes a source device 12 that provides encoded video data to be subsequently decoded by a destination device 14. Specifically, source device 12 may provide the video data to destination device 14 via a computer-readable medium 16. Source device 12 and destination device 14 may comprise any of a wide range of devices, including desktop computers, notebook (e.g., laptop) computers, tablet computers, set-top boxes, telephone handsets such as so-called “smart” phones, so-called “smart” pads, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, etc. In some cases, source device 12 and destination device 14 may be capable of wireless communication.
[0029] The destination device 14 may receive the encoded video data to be decoded via a computer-readable medium 16. The computer-readable medium 16 may comprise any type of medium or device capable of moving encoded video data from the source device 12 to the destination device 14. In one example, the computer-readable medium 16 may comprise a communication medium to enable the source device 12 to transmit the encoded video data directly to the destination device 14 in real time. The encoded video data may be modulated according to a communication standard, such as a wireless communication protocol, and transmitted to the destination device 14. The communication medium may comprise any wireless or wired communication medium, such as the radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful in facilitating communication from the source device 12 to the destination device 14.
[0030] In some examples, the encoded data may be output from output interface 22 to a storage device. Similarly, the encoded data may be accessed from a storage device by an input interface. The storage device may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, a Blu-ray® disc, a digital video disc (DVD), a compact disc read-only memory (CD-ROM), flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data. In a further example, the storage device may correspond to a file server or another intermediate storage device that may store the encoded video generated by source device 12. Destination device 14 may access the stored video data from the storage device via streaming or download. The file server may be any type of server capable of storing the encoded video data and transmitting the encoded video data to destination device 14. Exemplary file servers include a web server (e.g., for a website), a file transfer protocol (FTP) server, a network-attached storage (NAS) device, or a local disk drive. Destination device 14 may access the encoded video data through any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a digital subscriber line (DSL), a cable modem, etc.), or a combination of both suitable for accessing encoded video data stored on a file server. The transmission of the encoded video data from the storage device may be a streaming transmission, a download transmission, or a combination thereof.
[0031] The techniques of this disclosure are not necessarily limited to wireless applications or settings. The techniques may be applied to video coding supporting any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, Internet streaming video transmission such as dynamic adaptive streaming over HTTP (DASH), digital video encoded on a data storage medium, decoding of digital video stored on a data storage medium, or other applications. In some examples, coding system 10 may be configured to support one-way or two-way video transmission to support applications such as video streaming, video playback, video broadcasting, and / or video telephony.
[0032] In the example of FIG. 1, source device 12 includes a video source 18, a video encoder 20, and an output interface 22. Destination device 14 includes an input interface 28, a video decoder 30, and a display device 32. According to this disclosure, video encoder 20 of source device 12 and / or video decoder 30 of destination device 14 may be configured to apply techniques for video coding. In other examples, the source device and destination device may include other components or configurations. For example, source device 12 may receive video data from an external video source, such as an external camera. Similarly, destination device 14 may interface with an external display device rather than including an integrated display device.
[0033] The depicted coding system 10 of FIG. 1 is merely an example. The techniques for video coding may be performed by any digital video encoding and / or decoding device. While the techniques of this disclosure are generally performed by a video coding device, the techniques may also be performed by a video encoder / decoder, commonly referred to as a "codec." Moreover, the techniques of this disclosure may also be performed by a video preprocessor. The video encoder and / or decoder may be a graphics processing unit (GPU) or similar device.
[0034] Source device 12 and destination device 14 are merely examples of coding devices, such that source device 12 generates coded video data for transmission to destination device 14. In some examples, source device 12 and destination device 14 may operate substantially symmetrically, such that source device 12 and destination device 14 each include video encoding and video decoding components. Thus, coding system 10 may support one-way or two-way video transmission between video devices 12 and 14, e.g., for video streaming, video playback, video broadcasting, or video telephony.
[0035] Video source 18 of source device 12 may include a video capture device such as a video camera, a video archive containing previously captured video, and / or a video feed interface for receiving video from a video content provider. As a further alternative, video source 18 may generate computer-graphics-based data as the source video, or may generate a combination of live video, archived video, and computer-generated video.
[0036] In some cases, when video source 18 is a video camera, source device 12 and destination device 14 may form a so-called camera phone or video phone. However, as mentioned above, the techniques described in this disclosure may be applicable to video coding generally and may be applied to wireless and / or wired applications. In each case, captured, pre-captured, or computer-generated video may be encoded by video encoder 20. The encoded video information may then be output by output interface 22 to computer-readable medium 16.
[0037] Computer-readable medium 16 may include transient media, such as a wireless broadcast or wired network transmission, or storage media (i.e., non-transitory storage media), such as a hard disk, flash drive, compact disc, digital video disc, Blu-ray® disc, or other computer-readable medium. In some examples, a network server (not shown) may receive encoded video data from source device 12 and provide the encoded video data to destination device 14, e.g., via a network transmission. Similarly, a computing device at a media production facility, such as a disc stamping facility, may receive encoded video data from source device 12 and produce discs including the encoded video data. Thus, computer-readable medium 16 may be understood in various examples to include one or more computer-readable media of various forms.
[0038] Input interface 28 of destination device 14 receives information from computer-readable medium 16. The information on computer-readable medium 16 may include syntax information defined by video encoder 20, including syntax elements that describe characteristics and / or processing of blocks and other coded units, e.g., groups of pictures (GOPs), that are also used by video decoder 30. Display device 32 displays the decoded video data to a user and may comprise any of a variety of display devices, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light-emitting diode (OLED) display, or another type of display device.
[0039] Video encoder 20 and video decoder 30 may operate in accordance with a video coding standard, such as the High Efficiency Video Coding (HEVC) standard currently under development, and may conform to the HEVC Test Model (HM). Alternatively, video encoder 20 and video decoder 30 may operate in accordance with other proprietary or industry standards, such as the International Telecommunication Union Telecommunications Standardization Sector (ITU-T) H.264 standard, H.265 / HEVC, or extensions of such standards, alternatively known as Moving Picture Expert Group (MPEG)-4, Part 10, Advanced Video Coding (AVC). However, the techniques of this disclosure are not limited to any particular coding standard. Other examples of video coding standards include MPEG-2 and ITU-T H.263. 1, in some aspects, video encoder 20 and video decoder 30 may each be integrated with an audio encoder and decoder and may include an appropriate multiplexer-demultiplexer (MUX-DEMUX) unit or other hardware and software for handling the encoding of both audio and data in a common and separate data stream. Where applicable, the MUX-DEMUX unit may conform to the ITU H.223 multiplexer protocol or other protocols, such as the User Datagram Protocol (UDP).
[0040] Video encoder 20 and video decoder 30 may each be implemented as any of a variety of suitable encoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), discrete logic circuits, software, hardware, firmware, or any combination thereof. When the techniques are implemented partially in software, a device may store instructions for the software on a suitable non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to perform the techniques of this disclosure. Each of video encoder 20 and video decoder 30 may be included in one or more encoders or decoders, any of which may be integrated as part of a composite encoder / decoder (codec) in the respective device. Devices including video encoder 20 and / or video decoder 30 may comprise integrated circuits, microprocessors, and / or wireless communication devices such as mobile phones.
[0041] 2 is a block diagram illustrating an example of a video encoder 20 that may implement video coding techniques. The video encoder 20 may perform intra-coding and inter-coding of video blocks within a video slice. Intra-coding relies on spatial prediction to reduce or remove spatial redundancy in video within a given video frame or picture. Inter-coding relies on temporal prediction to reduce or remove temporal redundancy in video within adjacent frames or pictures of a video sequence. Intra-mode (I-mode) may refer to any of several spatial-based coding modes. Inter-modes, such as uni-directional (also known as uni-prediction) prediction (P-mode) or bi-prediction (also known as bi-prediction) (B-mode), may refer to any of several temporal-based coding modes.
[0042] As shown in FIG. 2, video encoder 20 receives a current video block in a video frame to be encoded. In the example of FIG. 2, video encoder 20 includes a mode select unit 40, a reference frame memory 64, an adder 50, a transform processing unit 52, a quantization unit 54, and an entropy coding unit 56. Mode select unit 40 then includes a motion compensation unit 44, a motion estimation unit 42, an intra-prediction (also known as intra prediction) unit 46, and a partition unit 48. For video block reconstruction, video encoder 20 also includes an inverse quantization unit 58, an inverse transform unit 60, and an adder 62. A deblocking filter (not shown in FIG. 2) may also be included to filter block boundaries to remove blockiness artifacts from the reconstructed video. If desired, the deblocking filter typically filters the output of adder 62. Additional filters (in-loop or post-loop) may also be used in addition to the deblocking filter. The output of summer 50 may be filtered (as an in-loop filter) if desired, although such a filter is not shown for simplicity.
[0043] During the encoding process, video encoder 20 receives a video frame or slice to be coded. The frame or slice may be divided into multiple video blocks. Motion estimation unit 42 and motion compensation unit 44 perform inter-predictive coding of the received video block relative to one or more blocks in one or more reference frames to perform temporal prediction. Intra-prediction unit 46 may alternatively perform intra-predictive coding of the received video block relative to one or more neighboring blocks in the same frame or slice as the block to be coded to perform spatial prediction. Video encoder 20 may perform multiple coding passes, e.g., to select an appropriate coding mode for each block of video data.
[0044] Moreover, partition unit 48 may partition blocks of video data into sub-blocks based on evaluation of previous partitioning schemes in previous coding passes. For example, partition unit 48 may first partition a frame or slice into largest coding units (LCUs) and then partition each of the LCUs into sub-coding units (sub-CUs) based on rate-distortion analysis (e.g., rate-distortion optimization). Mode selection unit 40 may further generate a quadtree data structure that indicates the partitioning of the LCUs into sub-CUs. A leaf-node CU of the quadtree may include one or more prediction units (PUs) and one or more transform units (TUs).
[0045] This disclosure uses the term "block" to refer to either a CU, PU, or TU in the context of HEVC, or similar data structures in the context of other standards (e.g., macroblocks and subblocks of macroblocks in H.264 / AVC). A CU includes a coding node, a PU, and a TU associated with the coding node. The size of a CU corresponds to the size of the coding node and is square in shape. The size of a CU can range from 8x8 pixels up to the size of a treeblock of 64x64 pixels or more. Each CU may include one or more PUs and one or more TUs. Syntax data associated with a CU may, for example, describe the partitioning of the CU into one or more PUs. The partitioning mode may differ depending on whether the CU is coded in skip mode or direct mode, in intra-prediction mode, or in inter-prediction (also known as inter-prediction) mode. A PU may be partitioned to be non-square in shape. Syntax data associated with a CU may also describe, for example, the partitioning of the CU into one or more TUs according to a quadtree. The TUs may be square or non-square (e.g., rectangular) in shape.
[0046] Mode select unit 40 selects a coding mode, i.e., one of intra-coding or inter-coding modes, based on, for example, the error result, and provides the resulting intra-coded or inter-coded block to summer 50 to generate residual block data and summer 62 to reconstruct a coded block for use as a reference frame. Mode select unit 40 also provides syntax elements, such as motion vectors, intra-mode indicators, partition information, and other such syntax information, to entropy coding unit 56.
[0047] Motion estimation unit 42 and motion compensation unit 44 may be highly integrated but are shown separately for conceptual purposes. Motion estimation performed by motion estimation unit 42 is the process of generating motion vectors that estimate the movement of video blocks. A motion vector may indicate, for example, the displacement of a video block within a current video frame or picture relative to a predictive block in a reference frame (or other coded unit) relative to a current block being coded within the current frame (or other coded unit). A predictive block is a block that is found to closely match a block to be coded in terms of pixel difference, which may be determined by sum of absolute differences (SAD), sum of squared differences (SSD), or other difference measure. In some examples, video encoder 20 may calculate values for sub-integer pixel locations of a reference picture stored in reference frame memory 64. For example, video encoder 20 may interpolate values for quarter-pixel positions, eighth-pixel positions, or other fractional pixel positions of a reference picture. Thus, motion estimation unit 42 may perform motion search for whole pixel positions and fractional pixel positions and output motion vectors with fractional pixel accuracy.
[0048] Motion estimation unit 42 calculates a motion vector for a PU of a video block in an inter-coded slice by comparing the position of the PU with the position of a predictive block of a reference picture. The reference pictures may be selected from a first reference picture list (List 0) or a second reference picture list (List 1), each of which identifies one or more reference pictures stored in reference frame memory 64. Motion estimation unit 42 sends the calculated motion vector to entropy encoding unit 56 and motion compensation unit 44.
[0049] The motion compensation performed by motion compensation unit 44 may involve fetching or generating a predictive block based on a motion vector determined by motion estimation unit 42. Again, in some examples, motion estimation unit 42 and motion compensation unit 44 may be functionally integrated. Upon receiving the motion vector of the PU of the current video block, motion compensation unit 44 may find the predictive block to which the motion vector points in one of the reference picture lists. As discussed below, adder 50 forms a residual video block by subtracting pixel values of the predictive block from pixel values of the current video block being coded, forming pixel difference values. Generally, motion estimation unit 42 performs motion estimation on the luma component, and motion compensation unit 44 uses the motion vector calculated based on the luma component for both the chroma and luma components. Mode select unit 40 may also generate syntax elements associated with the video blocks and video slices for use by video decoder 30 in decoding the video blocks of the video slices.
[0050] As described above, intra prediction unit 46 may intra predict the current block as an alternative to inter prediction performed by motion estimation unit 42 and motion compensation unit 44. Specifically, intra prediction unit 46 may determine an intra prediction mode to use to encode the current block. In some examples, intra prediction unit 46 may encode the current block using various intra prediction modes, e.g., during separate encoding passes, and intra prediction unit 46 (or, in some examples, mode selection unit 40) may select an appropriate intra prediction mode to use from the tested modes.
[0051] For example, intra prediction unit 46 may calculate rate-distortion values using a rate-distortion analysis for various tested intra-prediction modes and select an intra-prediction mode with the best rate-distortion characteristics from among the tested modes. The rate-distortion analysis generally determines the amount of distortion (or error) between an encoded block and the original uncoded block that was coded to produce the encoded block, as well as the bitrate (i.e., number of bits) used to produce the encoded block. Intra prediction unit 46 may calculate a ratio from the distortion and rate for the various coded blocks to determine which intra-prediction mode exhibits the best rate-distortion value for the block.
[0052] Additionally, intra prediction unit 46 may be configured to code the depth blocks of the depth map using a depth modeling mode (DMM). Mode selection unit 40 may determine whether an available DMM mode produces better coding results than the intra prediction mode and other DMM modes, for example using rate-distortion optimization (RDO). Data for texture images corresponding to the depth map may be stored in reference frame memory 64. Motion estimation unit 42 and motion compensation unit 44 may also be configured to inter-predict the depth blocks of the depth map.
[0053] After selecting an intra-prediction mode for the block (e.g., one of a conventional intra-prediction mode or a DMM mode), intra-prediction unit 46 may provide information indicating the selected intra-prediction mode for the block to entropy coding unit 56. Entropy coding unit 56 may encode the information indicating the selected intra-prediction mode. Video encoder 20 may include definitions of the coding contexts for various blocks, an indication of the most probable intra-prediction mode, the intra-prediction mode index table, and the modified intra-prediction mode index table to use for each of the contexts in transmitted bitstream configuration data, which may include multiple intra-prediction mode index tables and multiple modified intra-prediction mode index tables (also referred to as codeword mapping tables).
[0054] Video encoder 20 forms a residual video block by subtracting the prediction data from mode select unit 40 from the original video block being coded. Summer 50 represents one or more components that perform this subtraction operation.
[0055] Transform processing unit 52 applies a transform, such as a discrete cosine transform (DCT) or a conceptually similar transform, to the residual block, producing a video block comprising residual transform coefficient values. Transform processing unit 52 may perform other transforms conceptually similar to the DCT. Wavelet transforms, integer transforms, subband transforms, or other types of transforms may also be used.
[0056] Transform processing unit 52 applies a transform to the residual block, producing a block of residual transform coefficients. This transform may convert the residual information from the pixel value domain to a transform domain, such as the frequency domain. Transform processing unit 52 may send the resulting transform coefficients to quantization unit 54. Quantization unit 54 quantizes the transform coefficients to further reduce the bit rate. The quantization process may reduce the bit depth associated with some or all of the coefficients. The degree of quantization may be modified by adjusting a quantization parameter. In some examples, quantization unit 54 may then perform a scan of a matrix including the quantized transform coefficients. Alternatively, entropy coding unit 56 may perform the scan.
[0057] Following quantization, entropy coding unit 56 codes the quantized transform coefficients. For example, entropy coding unit 56 may perform context-adaptive variable length coding (CALVC), context-adaptive binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partitioned entropy (PIPE) coding, or another entropy coding technique. In the case of context-based entropy coding, the context may be based on neighboring blocks. Following entropy coding by entropy coding unit 56, the encoded bitstream may be transmitted to another device (e.g., video decoder 30) or stored for later transmission or retrieval.
[0058] Inverse quantization unit 58 and inverse transform unit 60 apply inverse quantization and inverse transform, respectively, to reconstruct the residual block in the pixel domain, e.g., for later use as a reference block. Motion compensation unit 44 may calculate a reference block by adding the residual block to a predictive block of one of the frames in reference frame memory 64. Motion compensation unit 44 may also apply one or more interpolation filters to the reconstructed residual block to calculate sub-integer pixel values for use in motion estimation. Adder 62 adds the reconstructed residual block to the motion-compensated predictive block produced by motion compensation unit 44 to produce a reconstructed video block for storage in reference frame memory 64. The reconstructed video block may be used by motion estimation unit 42 and motion compensation unit 44 as a reference block for inter-coding blocks in subsequent video frames.
[0059] 3 is a block diagram illustrating an example of a video decoder 30 that may implement video coding techniques. In the example of FIG. 3, video decoder 30 includes an entropy decoding unit 70, a motion compensation unit 72, an intra prediction unit 74, an inverse quantization unit 76, an inverse transform unit 78, a reference frame memory 82, and an adder 80. Video decoder 30, in some examples, performs a decoding path that is generally inverse to the encoding path described with respect to video encoder 20 (FIG. 2). Motion compensation unit 72 may generate prediction data based on motion vectors received from entropy decoding unit 70, while intra prediction unit 74 may generate prediction data based on an intra-prediction mode indicator received from entropy decoding unit 70.
[0060] During the decoding process, video decoder 30 receives an encoded video bitstream from video encoder 20, representing video blocks of an encoded video slice and associated syntax elements. Entropy decoding unit 70 of video decoder 30 entropy decodes the bitstream to generate quantized coefficients, motion vectors or intra-prediction mode indicators, and other syntax elements. Entropy decoding unit 70 forwards the motion vectors and other syntax elements to motion compensation unit 72. Video decoder 30 may receive syntax elements at the video slice level and / or the video block level.
[0061] When a video slice is coded as an intra-coded (I) slice, intra prediction unit 74 may generate predictive data for video blocks of the current video slice based on a signaled intra prediction mode and data from previously decoded blocks of the current frame or picture. When a video frame is coded as an inter-coded (e.g., B, P, or GPB) slice, motion compensation unit 72 generates predictive blocks for video blocks of the current video slice based on motion vectors and other syntax elements received from entropy decoding unit 70. The predictive blocks may be generated from one of the reference pictures in one of the reference picture lists. Video decoder 30 may construct the reference frame lists, List 0 and List 1, using a default construction technique based on reference pictures stored in reference frame memory 82.
[0062] Motion compensation unit 72 determines prediction information for video blocks of the current video slice by analyzing the motion vectors and other syntax elements, and uses the prediction information to generate a predictive block for the current video block being decoded. For example, motion compensation unit 72 uses some of the received syntax elements to determine the prediction mode (e.g., intra-prediction or inter-prediction) used to code the video blocks of the video slice, the inter-prediction slice type (e.g., B slice, P slice, or GPB slice), construction information for one or more of the reference picture lists for the slice, motion vectors for each inter-coded video block of the slice, inter-prediction status for each inter-coded video block of the slice, and other information for decoding video blocks in the current video slice.
[0063] Motion compensation unit 72 may also perform interpolation based on an interpolation filter. Motion compensation unit 72 may calculate interpolated values for sub-integer pixels of the reference block using an interpolation filter as used by video encoder 20 during encoding of the video block. In this case, motion compensation unit 72 may determine the interpolation filter used by video encoder 20 from the received syntax element and use the interpolation filter to produce the predictive block.
[0064] Data for texture images corresponding to the depth maps may be stored in reference frame memory 82. Motion compensation unit 72 may also be configured to inter-predict depth blocks of the depth maps.
[0065] Rapid advances in image and video compression have led to a variety of coding standards, including Advanced Video Coding (AVC), also known as ITU-T H.261, ISO / IEC Motion Picture Experts Group (MPEG)-1 Part 2, ITU-T H.262 or International Organization for Standardization (ISO) / International Electrotechnical Commission (IEC) MPEG-2 Part 2, ITU-T H.263, ISO / IEC MPEG-4 Part 2, ITU-T H.264 or ISO / IEC MPEG-4 Part 10, and High Efficiency Video Coding (HEVC), also known as ITU-T H.265 or MPEG-H Part 2. AVC includes extensions such as Scalable Video Coding (SVC), Multiview Video Coding (MVC), and Multiview Video Coding plus Depth (MVC+D), as well as 3D AVC (3D-AVC). HEVC includes extensions such as Scalable HEVC (SHVC), Multiview HEVC (MV-HEVC), and 3D HEVC (3D-HEVC).
[0066] Versatile Video Coding (VVC) is a new video coding standard under development by the ITU-T and ISO / IEC joint video expert team (JVET). At the time of writing, the latest working draft (WD) of VVC is contained in JVET-K1001-v1. JVET document JVET-K0325-v3 contains updates to the high-level syntax of VVC.
[0067] In general, this disclosure describes techniques based on the developing VVC standard, however, the techniques also apply to other video / media codec specifications.
[0068] Video compression techniques perform spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. In block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be partitioned into video blocks, which may also be called tree blocks, coding tree blocks (CTBs), coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction with respect to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction with respect to reference samples in neighboring blocks in the same picture or temporal prediction with respect to reference samples in other reference pictures. A picture may be referred to as a frame, and a reference picture may be referred to as a reference frame.
[0069] Spatial or temporal prediction results in a predictive block for the block to be coded. Residual data represents pixel differences between the original block to be coded and the predictive block. Inter-coded blocks are coded according to a motion vector pointing to a block of reference samples forming the predictive block and residual data indicating the difference between the coded block and the predictive block. Intra-coded blocks are coded according to an intra-coding mode and the residual data. For further compression, the residual data may be transformed from the pixel domain to a transform domain, resulting in residual transform coefficients, which may then be quantized. The quantized transform coefficients, initially arranged in a two-dimensional array, may be scanned to produce a one-dimensional vector of transform coefficients, and entropy coding may be applied to achieve further compression.
[0070] In video codec specifications, pictures are identified for multiple purposes, including use as reference pictures in inter prediction, output of pictures from a decoded picture buffer (DPB), motion vector scaling, weighted prediction, etc. In AVC and HEVC, pictures may be identified by a picture order count (POC). In AVC and HEVC, pictures in the DPB may be marked as "used for short-term reference," "used for long-term reference," or "not used for reference." Once a picture is marked as "not used for reference," it can no longer be used for prediction. When a picture is no longer needed for output, it can be removed from the DPB.
[0071] In AVC, there are two types of reference pictures: short-term and long-term. A reference picture can be marked as "not used for reference" when it is no longer needed for prediction reference. The conversion between these three statuses (short-term, long-term, and not used for reference) is controlled by the decoded reference picture marking process. There are two alternative decoded reference picture marking mechanisms: the implicit sliding window process and the explicit memory management control operation (MMCO) process. The sliding window process marks a short-term reference picture as "not used for reference" when the number of reference frames is equal to a given maximum number (max_num_ref_frames in the sequence parameter set (SPS)). Short-term reference pictures are stored in a first-in, first-out manner, such that the most recently decoded short-term picture is kept in the DPB.
[0072] An explicit MMCO process may include multiple MMCO commands that may mark one or more short-term or long-term reference pictures as "unused for reference," may mark all pictures as "unused for reference," or may mark the current reference picture or an existing short-term reference picture as long-term and then assign a long-term picture index to that long-term reference picture.
[0073] In AVC, the reference picture marking operation, as well as the process for outputting and deleting pictures from the DPB, are performed after the picture is decoded.
[0074] HEVC introduces a different approach for reference picture management, called Reference Picture Set (RPS). Compared to AVC's MMCO / sliding window process, the most fundamental difference about the RPS concept is that for each particular slice, a complete set of reference pictures is provided to be used by the current picture or any subsequent pictures. Thus, the complete set of all pictures that must be kept in the DPB for use by the current or future pictures is signaled. This differs from the AVC method, where only relative changes to the DPB are signaled. With the RPS concept, no information from earlier pictures in the decoding order is required to maintain the correct status of reference pictures in the DPB.
[0075] To take advantage of the RPS and improve error resilience, the order of picture decoding and DPB operations in HEVC is changed compared to AVC. In AVC, picture marking and buffer operations (both outputting and removing decoded pictures from the DPB) are generally applied after the current picture is decoded. In HEVC, the RPS is first decoded from the slice header of the current picture, and then picture marking and buffer operations are generally applied before decoding the current picture.
[0076] Each slice header in HEVC must contain parameters for signaling the RPS for the picture that contains the slice. The only exception is that no RPS is signaled for instantaneous decoding refresh (IDR) slices. Instead, the RPS is inferred to be empty. For I-slices that do not belong to an IDR picture, an RPS may be provided even if the I-slice belongs to an I-picture, since there may be pictures after the I-picture in decoding order that use inter prediction from pictures that preceded the I-picture in decoding order. The number of pictures in the RPS shall not exceed the DPB size limit as specified by the sps_max_dec_pic_buffering syntax element in the SPS.
[0077] Each picture is associated with a POC value that represents its output order. The slice header contains a fixed-length codeword, pic_order_cnt_lsb, that represents the least significant bits (LSBs) of the complete POC value, also known as POC LSB. The length of the codeword is signaled in the SPS and can be, for example, between 4 and 16 bits. The RPS concept uses POC to identify reference pictures. Besides its own POC value, each slice header directly contains or inherits from the SPS a coded representation of the POC value (or LSBs) of each picture in the RPS.
[0078] The RPS for each picture consists of five different sets of reference pictures, also called five RPS subsets: RefPicSetStCurrBefore consists of all short-term reference pictures that precede the current picture in both decoding order and output order and can be used in inter-prediction of the current picture; RefPicSetStCurrAfter consists of all short-term reference pictures that precede the current picture in decoding order, follow the current picture in output order, and can be used in inter-prediction of the current picture; RefPicSetStFoll consists of all short-term reference pictures that can be used in inter-prediction of one or more pictures that follow the current picture in decoding order, but are not used in inter-prediction of the current picture; RefPicSetLtCurr consists of all long-term reference pictures that can be used in inter-prediction of the current picture; and RefPicSetLtFoll consists of all long-term reference pictures that can be used in inter-prediction of one or more pictures that follow the current picture in decoding order, but are not used in inter-prediction of the current picture.
[0079] The RPS is signaled using up to three loops that iterate over different types of reference pictures: short-term reference pictures with lower POC values than the current picture, short-term reference pictures with higher POC values than the current picture, and long-term reference pictures. In addition, a flag (used_by_curr_pic_X_flag) is sent for each reference picture indicating whether the reference picture is used for referencing by the current picture (included in one of the lists RefPicSetStCurrBefore, RefPicSetStCurrAfter, or RefPicSetLtCurr) or not (included in one of the lists RefPicSetStFoll or RefPicSetLtFoll).
[0080] Figure 4 shows an RPS 400 with a current picture B14 with entries (e.g., pictures) in all subsets 402 of the RPS 400. In the example of Figure 4, the current picture B14 includes exactly one picture in each of the five subsets 402 (also known as RPS subsets). P8 is a picture in the subset 402 called RefPicSetStCurrBefore because the picture is earlier in the output order and used by B14. P12 is a picture in the subset 402 called RefPicSetStCurrAfter because the picture is later in the output order and used by B14. P13 is a picture in the subset 402 called RefPicSetStFoll because the picture is a short-term reference picture not used by B14 (but must be kept in the DPB because it is used by B15). P4 is a picture in a subset 402 called RefPicSetLtCurr because it is a long-term reference picture used by B14. I0 is a picture in a subset 402 called RefPicSetStLtFoll because it is a long-term reference picture not used by the current picture (but must be kept in the DPB because it is used by B15).
[0081] The short-term portion of the RPS 400 may be included directly in the slice header. Alternatively, the slice header may contain only a syntax element representing an index that references a predetermined list of RPSs transmitted in the active SPS. The short-term portion of the RPS 402 may be signaled using one of two different schemes: inter-RPS, as described below, or intra-RPS, as described herein. When intra-RPS is used, num_negative_pics and num_positive_pics are signaled, representing the lengths of two different lists of reference pictures. These lists contain reference pictures with negative and positive POC differences compared to the current picture, respectively. Each element in these lists is encoded using a variable-length code that represents the difference in POC value relative to the previous element in the list minus one.
[0082] When encoding a recurring RPS in a sequence parameter set, it is possible to encode elements of one RPS (e.g., RPS 400) relative to another RPS already encoded in the sequence parameter set. This is called inter-RPS. Because all RPSs of a sequence parameter set are in the same network abstraction layer (NAL) unit, there are no error resilience issues associated with this method. The inter-RPS syntax takes advantage of the fact that the RPS of the current picture can be predicted from the RPS of previously decoded pictures. This is because all reference pictures of the current picture must be either reference pictures of previous pictures or previously decoded pictures themselves. It is only necessary to indicate which of these pictures should be reference pictures and used for prediction of the current picture. Thus, the syntax comprises an index indicating the RPS to use as a predictor, a delta_POC to be added to the delta_POC of the predictor to obtain the delta_POC of the current RPS, and a set of indicators to indicate which pictures are reference pictures and whether they are used only for prediction of future pictures.
[0083] Encoders that want to exploit the use of long-term reference pictures must set the SPS syntax element long_term_ref_pics_present_flag to 1. Long-term reference pictures can then be signaled in the slice header by fixed-length codewords pos_lst_lt, which represent the least significant bits of the complete POC value of each long-term picture. Each pos_lsb_lt is a copy of the pic_order_cnt_lsb codeword signaled for a particular long-term picture. It is also possible to signal the set of long-term pictures in an SPS as a list of POC LSB values. The POC LSB for a long-term picture can be signaled in the slice header as an index into this list.
[0084] To enable the calculation of the full POC distance of a long-term reference picture relative to the current picture, the delta_poc_msb_cycle_lt_minus1 syntax element may additionally be signaled. The codeword delta_poc_msb_cycle_lt_minus1 is required to be signaled for each long-term reference picture that has the same POC LSB value as any other reference picture in the RPS.
[0085] For reference picture marking in HEVC, there are usually a certain number of pictures in the DPB before picture decoding. Some of these pictures may be available for prediction and are therefore marked as "used for reference." Other pictures may not be available for prediction but are waiting for output and are therefore marked as "not used for reference." When the slice header is parsed, the picture marking process occurs before the slice data is decoded. Pictures that are present in the DPB and marked as "used for reference" but not included in the RPS are marked as "not used for reference." Pictures that are not in the DPB but included in the reference picture set are ignored when used_by_curr_pic_X_flag is equal to 0. However, if used_by_curr_pic_X_flag is instead equal to 1, this reference picture was intended to be used for prediction in the current picture but has been lost. Then, unintentional picture loss is inferred and the decoder must take appropriate action.
[0086] After decoding the current picture, it is marked as "used for short-term reference."
[0087] Next, reference picture list construction in HEVC is discussed. In HEVC, the term inter-prediction is used to indicate prediction derived from data elements (e.g., sample values or motion vectors) of reference pictures other than the currently decoded picture. Like AVC, a picture can be predicted from multiple reference pictures. The reference pictures used for inter-prediction are organized in one or more reference picture lists. A reference index identifies which of the reference pictures in the list should be used to create the prediction signal.
[0088] A single reference picture list, List 0, is used for P slices, and two reference picture lists, List 0 and List 1, are used for B slices. Similar to AVC, reference picture list construction in HEVC includes reference picture list initialization and reference picture list modification.
[0089] In AVC, the initialization process for list 0 is different for P slices (decoding order is used) and B slices (output order is used). In HEVC, output order is used in both cases.
[0090] Reference picture list initialization creates default list 0 and list 1 (if the slice is a B slice) based on three RPS subsets: RefPicSetStCurrBefore, RefPicSetStCurrAfter, and RefPicSetLtCurr. Short-term pictures with earlier (later) output order are inserted into list 0 (list 1) first in ascending order of POC distance to the current picture, then short-term pictures with later (earlier) output order are inserted into list 0 (list 1) in ascending order of POC distance to the current picture, and then finally, long-term pictures are inserted at the end. With respect to RPS, for list 0, entries in RefPicSetStCurrBefore are inserted into the initial list, followed by entries in RefPicSetStCurrAfter. Then, entries in RefPicSetLtCurr are added, if available.
[0091] In HEVC, when the number of entries in the list is less than the target number of active reference pictures (signaled in the picture parameter set or slice header), the above process is repeated (reference pictures already added to the reference picture list are added again). When the number of entries is more than the target number, the list is truncated.
[0092] After the reference picture list is initialized, the reference picture list may be modified based on a reference picture list modification command so that the reference pictures for the current picture can be arranged in any order, including cases where one particular reference picture may appear in more than one position in the list. When a flag indicating the presence of a list modification is set to 1, a fixed number of commands (equal to the target number of entries in the reference picture list) are signaled, with each command inserting one entry into the reference picture list. The reference picture is identified in the command by an index into the list of reference pictures for the current picture derived from RPS signaling. This differs from reference picture list modification in H.264 / AVC, where pictures are identified by either a picture number (derived from the frame_num syntax element) or a long-term reference picture index, and fewer commands may be required, for example, to swap the first two entries in the initial list or to insert one entry at the beginning of the initial list and shift the other entry.
[0093] The reference picture list is allowed to include any reference picture with a TemporalId greater than the current picture. An HEVC bitstream may consist of several temporal sub-layers. Each NAL unit belongs to a particular sub-layer as indicated by its TemporalId (equal to temporal_id_plus1-1).
[0094] Reference picture management is based directly on reference picture lists. JCT-VC document JCTVC-G643 includes a technique for directly using three reference picture lists, Reference Picture List 0, Reference Picture List 1, and Idle Reference Picture List, for managing reference pictures in a DPB, thereby eliminating the need for signaling and decoding processes that include either 1) the sliding window and MMCO process and the reference picture list initialization and modification process in AVC, or 2) the reference picture set and the reference picture list initialization and modification process in HEVC.
[0095] There may be some problems with the techniques for reference picture management. The AVC technique involves a sliding window, an MMCO process, and a reference picture list initialization and modification process, which are complex. Furthermore, the loss of a picture may lead to the loss of the status of the DPB regarding which picture should have been in the DPB for the purpose of further inter-prediction reference. The HEVC technique does not have the problem of the loss of DPB status. However, the HEVC technique involves a complex reference picture set signaling and derivation process, and a reference picture list initialization and modification process, which are complex. The approach in JCTVC-G643 for directly using three reference picture lists, Reference Picture List 0, Reference Picture List 1, and Idle Reference Picture List, for managing reference pictures in a DPB involves the following: a third reference picture list, i.e., the Idle Reference Picture List; two-part coding of POC differences as a "short-term" portion and a "long-term" portion that is ue(v) coded; TemporalId-based POC granularity for POC difference coding; the use of two-part coding of POC differences to determine the marking of "used for short-term reference" or "used for long-term reference"; reference picture list subset descriptions that enable the ability to specify a reference picture list by deleting a reference picture from the end of any earlier reference picture list description; a reference picture list copy mode enabled by the syntax element ref_pic_list_copy_flag; and a reference picture list description process. Each of the preceding aspects unnecessarily complicates the approach. Furthermore, the decoding process for reference picture lists in JCTVC-G643 is also complicated. Signaling long-term reference pictures may require signaling the POC cycle in the slice header, which is inefficient.
[0096] To address the problems listed above, the following solutions are disclosed herein, each of which may be applied individually or some of which may be applied in combination: 1) Reference picture marking is based directly on two reference picture lists, namely, reference picture list 0 and reference picture list 1. 1a) Information for the derivation of the two reference picture lists is signaled based on syntax elements and syntax structures in the SPS, PPS, and / or slice header. 1b) Each of the two reference picture lists for a picture is explicitly signaled in a reference picture list structure. 1b.i) One or more reference picture list structures may be signaled in the SPS, and each of them may be referenced by an index from the slice header. 1b.ii) Each of reference picture lists 0 and 1 may be signaled directly in the slice header. 2) Information for the derivation of two reference picture lists is signaled for all types of slices, i.e., B (bi-predictive), P (uni-predictive), and I (intra) slices. The term slice refers to a collection of coding tree units, such as a slice in HEVC or the latest VVC WD, and may also refer to some other collection of coding tree units, such as a tile in HEVC. 3) Two reference picture lists are generated for all types of slices, i.e., B slices, P slices, and I slices. 4) The two reference picture lists are directly constructed without using the reference picture list initialization process and the reference picture list modification process. 5) In each of the two reference picture lists, reference pictures that can be used for inter-prediction of the current picture can be referenced only by a certain number of entries at the beginning of the list. These entries are called active entries in the list, and the other entries are called inactive entries in the list. Both the total number of entries in the list and the number of active entries can be derived.6) A picture referenced by an inactive entry in a reference picture list is not allowed to be referenced by another entry in the reference picture list or an entry in another reference picture list. 7) A long-term reference picture is identified only by a certain number of POC LSBs, which may be greater than the number of POC LSBs signaled in the slice header for deriving the POC value and is indicated in the SPS. 8) The reference picture list structure is signaled only in the slice header, and both short-term and long-term reference pictures are identified by their POC LSBs, which may be represented by a number of bits different from the number of bits used to represent the POC LSBs signaled in the slice header for deriving the POC value, and the number of bits used to represent the POC LSBs for identifying a short-term reference picture may differ from the number of bits used to represent the POC LSBs for identifying a long-term reference picture. 9) The reference picture list structure is signaled only in the slice header, no distinction is made between short-term and long-term reference pictures, all reference pictures are simply named reference pictures, reference pictures are identified by their POC LSBs, and their POC LSBs may be represented by a number of bits different from the number of bits used to represent the POC LSBs signaled in the slice header for the derivation of the POC value.
[0097] The first embodiment of the present disclosure is provided. This description is for the latest VVC WD. In this embodiment, two sets of reference picture list structures are signaled in the SPS, one for each of reference picture list 0 and reference picture list 1.
[0098] Some definitions of terms used herein are provided. Intra Random Access Point (IRAP) picture: A coded picture in which each video coding layer (VCL) NAL unit has nal_unit_type equal to IRAP_NUT. Non-IRAP picture: A coded picture in which each VCL NAL unit has nal_unit_type equal to NON_IRAP_NUT. Reference picture list: A list of reference pictures used for inter prediction of a P or B slice. Two reference picture lists, Reference Picture List 0 and Reference Picture List 1, are generated for each slice of a non-IRAP picture. The set of unique pictures referenced by all entries in the two reference picture lists associated with a picture consists of all reference pictures that can be used for inter prediction of the associated picture or any picture that follows the associated picture in decoding order. To decode slice data of a P slice, only Reference Picture List 0 is used for inter prediction. To decode slice data of a B slice, both reference picture lists are used for inter prediction. To decode slice data of an I slice, no reference picture list is used for inter prediction. Long-term reference picture (LTRP): A picture marked as "used for long-term reference". Short-term reference picture (STRP): A picture marked as "used for short-term reference".
[0099] The terms "used for short-term reference," "used for long-term reference," and "unused for reference" are defined in Section 8.3.3 "Decoding Process for Reference Picture Marking" of VVC, Section 8.3.2 "Decoding Process for Reference Picture Sets" of HEVC, and Section 7.4.3.3 "Decoding Reference Picture Marking Semantics" of AVC. In this specification, these terms have the same meaning.
[0100] The relevant syntax and semantics for the first embodiment are given below.
[0101] NAL unit header syntax
[0102] [Table 1]
[0103] Sequence Parameter Set Raw Byte Sequence Payload (RBSP) Syntax
[0104] [Table 2]
[0105] Picture Parameter Set RBSP Syntax
[0106] [Table 3]
[0107] Slice Header Syntax
[0108] [Table 4]
[0109] Reference Picture List Structure Syntax
[0110] [Table 5]
[0111] NAL unit header semantics
[0112] forbidden_zero_bit shall be equal to 0. nal_unit_type specifies the type of RBSP data structure contained in the NAL unit.
[0113] Table 6
[0114] nuh_temporal_id_plus1 minus 1 specifies the temporal identifier for the NAL unit. The value of nuh_temporal_id_plus1 shall not be equal to 0. The variable TemporalId is specified as follows: TemporalId = nuh_temporal_id_plus1 - 1. When nal_unit_type is equal to IRAP_NUT, the coded slice belongs to an IRAP picture and TemporalId shall be equal to 0. The value of TemporalId shall be the same for all VCL NAL units of an access unit. The value of TemporalId of a coded picture or access unit is the value of TemporalId of the VCL NAL units of the coded picture or access unit. The value of TemporalId for non-VCL NAL units is constrained as follows: If nal_unit_type is equal to SPS_NUT, TemporalId shall be equal to 0 and the TemporalId of the access unit containing the NAL unit shall be equal to 0. Otherwise, if nal_unit_type is equal to EOS_NUT or EOB_NUT, then TemporalId shall be equal to 0. Otherwise, TemporalId shall be greater than or equal to the TemporalId of the access unit that contains the NAL unit. When the NAL unit is a non-VCL NAL unit, the value of TemporalId is equal to the minimum of the TemporalId values of all access units to which the non-VCL NAL unit applies. When nal_unit_type is equal to PPS_NUT, TemporalId may be greater than or equal to the TemporalId of the containing access unit, since all picture parameter sets (PPS) may be included at the beginning of the bitstream, and the first coded picture has TemporalId equal to 0.When nal_unit_type is equal to PREFIX_SEI_NUT or SUFFIX_SEI_NUT, TemporalId may be greater than or equal to the TemporalId of the containing access unit, because the SEI NAL unit may contain information that applies to bitstream subsets that include access units with TemporalId values greater than the TemporalId of the access unit that contains the SEI NAL unit. nuh_reserved_zero_7bits shall be equal to '0000000'. Other values of nuh_reserved_zero_7bits may be specified in the future by ITU-T|ISO / IEC. Decoders shall ignore (i.e., remove from the bitstream and discard) NAL units with a value of nuh_reserved_zero_7bits not equal to '0000000'.
[0115] Sequence Parameter Set RBSP Semantics
[0116] log2_max_pic_order_cnt_lsb_minus4 specifies the value of the variable MaxPicOrderCntLsb used in the decoding process for picture order counting, as MaxPicOrderCntLsb=2(log2_max_pic_order_cnt_lsb_minus4+4). The value of log2_max_pic_order_cnt_lsb_minus4 shall be in the range of 0 to 12, inclusive. sps_max_dec_pic_buffering_minus1 plus 1 specifies the maximum required size of the decoded picture buffer for CVS, in units of picture storage buffer. The value of sps_max_dec_pic_buffering_minus1 shall be in the range of 0 to MaxDpbSize-1, inclusive, where MaxDpbSize is as specified elsewhere. long_term_ref_pics_flag equal to 0 specifies that LTRP is not used for inter prediction of any coded pictures in CVS. long_term_ref_pics_flag equal to 1 specifies that LTRP may be used for inter prediction of one or more coded pictures in CVS. additional_lt_poc_lsb specifies the value of the variable MaxLtPicOrderCntLsb used in the decoding process for the reference picture list as MaxLtPicOrderCntLsb=2(log2_max_pic_order_cnt_lsb_minus4+4+additional_lt_poc_lsb). The value of additional_lt_poc_lsb shall be in the range from 0 to 32-log2_max_pic_order_cnt_lsb_minus4-4, inclusive. When not present, the value of additional_lt_poc_lsb is inferred to be equal to 0. num_ref_pic_lists_in_sps[i] specifies the number of ref_pic_list_struct(listIdx, rplsIdx, ltrpFlag) syntax structures with listIdx equal to i that are contained in the SPS.The value of num_ref_pic_lists_in_sps[i] shall be in the range of 0 to 64, inclusive. For each value of listIdx (equal to 0 or 1), the decoder should allocate memory for a total of num_ref_pic_lists_in_sps[i] ref_pic_list_struct(listIdx, rplsIdx, ltrpFlag) syntax structures, since there can be one ref_pic_list_struct(listIdx, rplsIdx, ltrpFlag) syntax structure signaled directly in the slice header of the current picture.
[0117] Picture Parameter Set RBSP Semantics
[0118] num_ref_idx_default_active_minus1[i] plus one specifies the inferred value of the variable NumRefIdxActive[0] for P or B slices with num_ref_idx_active_override_flag equal to 0 when i is equal to 0, and specifies the inferred value of NumRefIdxActive[1] for B slices with num_ref_idx_active_override_flag equal to 0 when i is equal to 1. The value of num_ref_idx_default_active_minus1[i] shall be in the range 0 to 14, inclusive.
[0119] Slice Header Semantics
[0120] When present, the value of each of the slice header syntax elements slice_pic_parameter_set_id and slice_pic_order_cnt_lsb shall be the same in all slice headers of a coded picture. slice_type specifies the coding type of the slice according to Table 7-3.
[0121] [Table 7]
[0122] When nal_unit_type is equal to IRAP_NUT, i.e., the picture is an IRAP picture, slice_type shall be equal to 2. slice_pic_order_cnt_lsb specifies the picture order count modulo MaxPicOrderCntLsb for the current picture. The length of the slice_pic_order_cnt_lsb syntax element is log2_max_pic_order_cnt_lsb_minus4 + 4 bits. The value of slice_pic_order_cnt_lsb shall be in the range from 0 to MaxPicOrderCntLsb-1, inclusive. When slice_pic_order_cnt_lsb is not present, slice_pic_order_cnt_lsb is inferred to be equal to 0. ref_pic_list_sps_flag[i] equal to 1 specifies that reference picture list i of the current picture is derived based on one of the ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structures with listIdx equal to i in the active SPS. ref_pic_list_sps_flag[i] equal to 0 specifies that reference picture list i of the current picture is derived based on the ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structure with listIdx equal to i that is directly included in the slice header of the current picture. When num_ref_pic_lists_in_sps[i] is equal to 0, the value of ref_pic_list_sps_flag[i] shall be equal to 0. ref_pic_list_idx[i] specifies an index into the list of ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structures with listIdx equal to i contained in the active SPS, of ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structures with listIdx equal to i that are used to derive reference picture list i for the current picture.The syntax element ref_pic_list_idx[i] is represented by Ceil(Log2(num_ref_pic_lists_in_sps[i])) bits. When not present, the value of ref_pic_list_idx[i] is inferred to be equal to 0. The value of ref_pic_list_idx[i] shall be in the range from 0 to num_ref_pic_lists_in_sps[i]-1, inclusive. num_ref_idx_active_override_flag equal to 1 specifies that the syntax element num_ref_idx_active_minus1[0] is present for P and B slices and that the syntax element num_ref_idx_active_minus1[1] is present for B slices. num_ref_idx_active_override_flag equal to 0 specifies that the syntax elements num_ref_idx_active_minus1[0] and num_ref_idx_active_minus1[1] are not present. num_ref_idx_active_minus1[i], when present, specifies the value of the variable NumRefIdxActive[i] as follows: NumRefIdxActive[i] = num_ref_idx_active_minus1[i] + 1. The value of num_ref_idx_active_minus1[i] shall be in the range 0 to 14, inclusive.
[0123] The value of NumRefIdxActive[i]-1 specifies the highest reference index for reference picture list i that may be used to decode the slice. When the value of NumRefIdxActive[i] is equal to 0, no reference index for reference picture list i may be used to decode the slice. For i equal to 0 or 1, when the current slice is a B slice and num_ref_idx_active_override_flag is equal to 0, NumRefIdxActive[i] is inferred to be equal to num_ref_idx_default_active_minus1[i]+1. When the current slice is a P slice and num_ref_idx_active_override_flag is equal to 0, NumRefIdxActive[0] is inferred to be equal to num_ref_idx_default_active_minus1[0]+1. When the current slice is a P slice, NumRefIdxActive[i] is inferred to be equal to 0. When the current slice is an I slice, both NumRefIdxActive[0] and NumRefIdxActive[1] are inferred to be equal to 0.
[0124] Alternatively, for i equal to 0 or 1, after the above the following applies: rplsIdx1 shall be set equal to ref_pic_list_sps_flag[i]?ref_pic_list_idx[i]:num_ref_pic_lists_in_sps[i] and numRpEntries[i] shall be equal to num_strp_entries[i][rplsIdx1]+num_ltrp_entries[i][rplsIdx1]. When NumRefIdxActive[i] is greater than numRpEntries[i], the value of NumRefIdxActive[i] is set equal to numRpEntries[i].
[0125] Reference Picture List Structure Semantics
[0126] The ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structure can be present in an SPS or a slice header. Depending on whether the syntax structure is included in a slice header or an SPS, the following applies: When present in a slice header, the ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structure specifies the reference picture list listIdx of the current picture (the picture that contains the slice). Otherwise (present in the SPS), the ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structure specifies candidates for the reference picture list listIdx, and the term "current picture" in the semantics specified in the rest of this section refers to each picture that 1) has one or more slices with ref_pic_list_idx[listIdx] equal to an index into the list of ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structures contained in the SPS, and 2) is in a CVS that has the SPS as its active SPS. num_strp_entries[listIdx][rplsIdx] specifies the number of STRP entries in the ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structure. num_ltrp_entries[listIdx][rplsIdx] specifies the number of LTRP entries in the ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structure. When not present, the value of num_ltrp_entries[listIdx][rplsIdx] is inferred to be equal to 0. The variable NumEntriesInList[listIdx][rplsIdx] is derived as follows: NumEntriesInList[listIdx][rplsIdx] = num_strp_entries[listIdx][rplsIdx] + num_ltrp_entries[listIdx][rplsIdx].The value of NumEntriesInList[listIdx][rplsIdx] shall be in the range of 0 to sps_max_dec_pic_buffering_minus1, inclusive. lt_ref_pic_flag[listIdx][rplsIdx][i] equal to 1 specifies that the i-th entry in the ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structure is an LTRP entry. lt_ref_pic_flag[listIdx][rplsIdx][i] equal to 0 specifies that the i-th entry in the ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structure is an STRP entry. When not present, the value of lt_ref_pic_flag[listIdx][rplsIdx][i] is inferred to be equal to 0. It is a bitstream conformance requirement that the sum of lt_ref_pic_flag[listIdx][rplsIdx][i] for all values of i in the range 0 to NumEntriesInList[listIdx][rplsIdx]-1, inclusive, must equal num_ltrp_entries[listIdx][rplsIdx]. delta_poc_st[listIdx][rplsIdx][i] specifies the difference between the picture order count value of the current picture and the picture order count value of the picture referenced by the i-th entry when the i-th entry is the first STRP entry in the ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structure, or specifies the difference between the picture order count value of the picture referenced by the i-th entry and the picture order count value of the picture referenced by the previous STRP entry in the ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structure when the i-th entry is a STRP entry but is not the first STRP entry in the ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structure.The value of delta_poc_st[listIdx][rplsIdx][i] shall be in the range -215 to 215-1, inclusive. poc_lsb_lt[listIdx][rplsIdx][i] specifies the value of the picture order count modulo MaxLtPicOrderCntLsb for the picture referenced by the i-th entry in the ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structure. The length of the poc_lsb_lt[listIdx][rplsIdx][i] syntax element is Log2(MaxLtPicOrderCntLsb) bits.
[0127] The decoding process is discussed. The decoding process operates as follows for the current picture, CurrPic. NAL unit decoding is specified below. The following process specifies the next decoding process using the syntax elements in the slice header layer and above: Variables and functions for picture order count are derived. This needs to be called only for the first slice of a picture. At the beginning of the decoding process for each slice of a non-IRAP picture, the decoding process for reference picture list construction is called to derive reference picture list 0 (RefPicList[0]) and reference picture list 1 (RefPicList[1]). The decoding process for reference picture marking is called, and reference pictures may be marked as "not used for reference" or "used for long-term reference". This needs to be called only for the first slice of a picture. The decoding processes for coding tree units, scaling, transform, in-loop filtering, etc. are called. After all slices of the current picture have been decoded, the currently decoded picture is marked as "used for short-term reference".
[0128] A NAL unit decoding process is discussed. The input to this process is the NAL units of the current picture and associated non-VCL NAL units. The output of this process is a parsed RBSP syntax structure encapsulated within the NAL unit. The decoding process for each NAL unit extracts the RBSP syntax structure from the NAL unit and then parses the RBSP syntax structure.
[0129] A slice decoding process is discussed, including a decoding process for the picture order count. The output of this process is PicOrderCntVal, the picture order count of the current picture. The picture order count is used to identify pictures for motion parameter derivation and motion vector prediction in merge mode, as well as for decoder conformance checking. Each coded picture is associated with a picture order count variable, denoted PicOrderCntVal. When the current picture is not an IRAP picture, the variables prevPicOrderCntLsb and prevPicOrderCntMsb are derived as follows: Let prevTid0Pic be the previous picture in decoding order with TemporalId equal to 0. The variable prevPicOrderCntLsb is set equal to slice_pic_order_cnt_lsb of prevTid0Pic. The variable prevPicOrderCntMsb is set equal to PicOrderCntMsb of prevTid0Pic.
[0130] The variable PicOrderCntMsb for the current picture is derived as follows: If the current picture is an IRAP picture, then PicOrderCntMsb is set equal to 0. Otherwise, PicOrderCntMsb is derived as follows: if((slice_pic_order_cnt_lsb <prevPicOrderCntLsb)&& ((prevPicOrderCntLsb-slice_pic_order_cnt_lsb)>=(MaxPicOrderCntLsb / 2))) PicOrderCntMsb=prevPicOrderCntMsb+MaxPicOrderCntLsb else if((slice_pic_order_cnt_lsb>prevPicOrderCntLsb)&& ((slice_pic_order_cnt_lsb-prevPicOrderCntLsb)>(MaxPicOrderCntLsb / 2))) PicOrderCntMsb=prevPicOrderCntMsb-MaxPicOrderCntLsb else PicOrderCntMsb=prevPicOrderCntMsb
[0131] PicOrderCntVal is derived as follows: PicOrderCntVal=PicOrderCntMsb+slice_pic_order_cnt_lsb
[0132] All IRAP pictures have PicOrderCntVal equal to 0, since slice_pic_order_cnt_lsb is inferred to be equal to 0 for IRAP pictures, and prevPicOrderCntLsb and prevPicOrderCntMsb are both set equal to 0. The value of PicOrderCntVal shall be in the range of -231 to 231-1, inclusive. In one CVS, the PicOrderCntVal values for any two coded pictures shall not be the same.
[0133] At any instant during the decoding process, the values of PicOrderCntVal & (MaxLtPicOrderCntLsb-1) for any two reference pictures in the DPB shall not be the same. The function PicOrderCnt(picX) is defined as follows: PicOrderCnt(picX) = PicOrderCntVal of picture picX. The function DiffPicOrderCnt(picA,picB) is defined as follows: DiffPicOrderCnt(picA,picB) = PicOrderCnt(picA) - PicOrderCnt(picB). The bitstream shall not contain data that results in a value of DiffPicOrderCnt(picA,picB) used in the decoding process that is not in the range of -215 to 215-1, inclusive. Let X be the current picture, and Y and Z be two other pictures in the same coded video sequence (CVS), then Y and Z are considered to be in the same output order direction from X if DiffPicOrderCnt(X,Y) and DiffPicOrderCnt(X,Z) are both positive or both negative.
[0134] A decoding process for reference picture list construction is discussed. This process is invoked at the beginning of the decoding process for each slice of a non-IRAP picture. Reference pictures are addressed through reference indices. The reference index is an index into the reference picture list. When decoding an I-slice, no reference picture list is used in decoding slice data. When decoding a P-slice, only reference picture list 0 (i.e., RefPicList[0]) is used in decoding slice data. When decoding a B-slice, both reference picture list 0 and reference picture list 1 (i.e., RefPicList[1]) are used in decoding slice data. At the beginning of the decoding process for each slice of a non-IRAP picture, reference picture lists RefPicList[0] and RefPicList[1] are derived. The reference picture list is used in marking reference pictures or decoding slice data. For I-slices of non-IRAP pictures that are not the first slice of a picture, RefPicList[0] and RefPicList[1] may be derived for the purpose of bitstream conformance checking, but their derivation is not necessary for decoding the current picture or pictures that follow it in decoding order. For P-slices that are not the first slice of a picture, RefPicList[1] may be derived for the purpose of bitstream conformance checking, but its derivation is not necessary for decoding the current picture or pictures that follow it in decoding order. The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ if(ref_pic_list_sps_flag[i]) RplsIdx[i]=ref_pic_list_idx[i] else RplsIdx[i]=num_ref_pic_lists_in_sps[i] for(j=0,pocBase=PicOrderCntVal;j <NumEntriesInList[i][RplsIdx[i]];j++){ if(!lt_ref_pic_flag[i][RplsIdx[i]][j]){ RefPicPocList[i][j]=pocBase-delta_poc_st[i][RplsIdx[i]][j] if(PicOrderCntVal equals RefPicPocList[i][j] and reference picture picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" pocBase=RefPicPocList[i][j] }else{ if(PicOrderCntVal&(MaxLtPicOrderCntLsb-1) equals poc_lsb_lt[i][RplsIdx[i]][j] reference picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" } } }
[0135] For each i equal to 0 or 1, the following applies: The first NumRefIdxActive[i] entry in RefPicList[i] is called the active entry in RefPicList[i], and the other entries in RefPicList[i] are called inactive entries in RefPicList[i]. Each entry in RefPicList[i][j], for j in the range from 0 to NumEntriesInList[i][RplsIdx[i]]-1, inclusive, is called a STRP entry if lt_ref_pic_flag[i][RplsIdx[i]][j] is equal to 0, and an LTRP entry otherwise. A particular picture may be referenced by both an entry in RefPicList[0] and an entry in RefPicList[1]. A particular picture may also be referenced by more than one entry in RefPicList[0] or more than one entry in RefPicList[1]. The active entries in RefPicList[0] and the active entries in RefPicList[1] collectively refer to all reference pictures that can be used for inter-prediction of the current picture and one or more pictures that follow the current picture in decoding order. The inactive entries in RefPicList[0] and the inactive entries in RefPicList[1] collectively refer to all reference pictures that are not used for inter-prediction of the current picture but can be used in inter-prediction for one or more pictures that follow the current picture in decoding order. There may be one or more entries in RefPicList[0] or RefPicList[1] that are equal to "No Reference Picture" because no corresponding picture exists in the DPB. Each inactive entry in RefPicList[0] or RefPicList[0] that is equal to "No Reference Picture" should be ignored. For each active entry in RefPicList[0] or RefPicList[1] that is equal to "No Reference Picture," an unintentional picture loss should be inferred.
[0136] It is a bitstream conformance requirement that the following constraints apply: For each i equal to 0 or 1, NumEntriesInList[i][RplsIdx[i]] shall not be less than NumRefIdxActive[i]. The picture referenced by each active entry in RefPicList[0] or RefPicList[1] shall be present in the DPB and shall have a TemporalId less than or equal to the current picture. Optionally, the following constraint may be further specified: The entry index of any inactive entry in RefPicList[0] or RefPicList[1] shall not be used as a reference index for decoding the current picture. Optionally, the following constraint may be further specified: An inactive entry in RefPicList[0] or RefPicList[1] shall not reference the same picture as any other entry in RefPicList[0] or RefPicList[1]. An STRP entry in RefPicList[0] or RefPicList[1] of a slice of a picture and an LTRP entry in RefPicList[0] or RefPicList[1] of the same slice or a different slice of the same picture shall not reference the same picture. The current picture itself shall not be referenced by any entry in RefPicList[0] or RefPicList[1]. There shall be no LTRP entries in RefPicList[0] or RefPicList[1] where the difference between the PicOrderCntVal of the current picture and the PicOrderCntVal of the picture referenced by the entry is 224 or more. Let setOfRefPics be the set of unique pictures referenced by all entries in RefPicList[0] and all entries in RefPicList[1]. The number of pictures in setOfRefPics shall be less than or equal to sps_max_dec_pic_buffering_minus1, and setOfRefPics shall be the same for all slices of a picture.
[0137] Decoding Process for Reference Picture Marking
[0138] This process is invoked once per picture, after the decoding of the slice header and the decoding process for building the reference picture list for the slice, but before the decoding of the slice data. This process can cause one or more reference pictures in the DPB to be marked as "not used for reference" or "used for long-term reference." A decoded picture in the DPB may be marked as "not used for reference," "used for short-term reference," or "used for long-term reference," but only one of these three, at any given moment during the operation of the decoding process. Assigning one of these markings to a picture implicitly excludes another of these markings, when applicable. When a picture is referred to as being marked "used for reference," this collectively refers to the picture being marked as "used for short-term reference" or "used for long-term reference" (but not both). When the current picture is an IRAP picture, all reference pictures (if any) currently in the DPB are marked as "not used for reference." STRPs are identified by their PicOrderCntVal values. LTRPs are identified by the Log2(MaxLtPicOrderCntLsb) LSBs of their PicOrderCntVal values. The following applies: For each LTRP entry in RefPicList[0] or RefPicList[1], if the referenced picture is a STRP, the picture is marked as "used for long-term reference". Each reference picture in the DPB that is not referenced by any entry in RefPicList[0] or RefPicList[1] is marked as "not used for reference".
[0139] A detailed description of the second embodiment of the present disclosure is given. This section describes in detail the second embodiment of the present disclosure as described above. The description is for the latest VVC WD. In this embodiment, one set of reference picture list structures is signaled in the SPS and is shared by reference picture list 0 and reference picture list 1.
[0140] Sequence Parameter Set RBSP Syntax
[0141] [Table 8]
[0142] Picture Parameter Set RBSP Syntax
[0143] [Table 9]
[0144] Slice Header Syntax
[0145] [Table 10]
[0146] Reference Picture List Structure Syntax
[0147] [Table 11]
[0148] NAL unit header semantics are discussed.
[0149] Sequence Parameter Set RBSP Semantics
[0150] log2_max_pic_order_cnt_lsb_minus4 specifies the value of the variable MaxPicOrderCntLsb used in the decoding process for picture order counting, as MaxPicOrderCntLsb=2(log2_max_pic_order_cnt_lsb_minus4+4). The value of log2_max_pic_order_cnt_lsb_minus4 shall be in the range of 0 to 12, inclusive. sps_max_dec_pic_buffering_minus1 plus 1 specifies the maximum required size of the decoded picture buffer for CVS, in units of picture storage buffer. The value of sps_max_dec_pic_buffering_minus1 shall be in the range of 0 to MaxDpbSize-1, inclusive, where MaxDpbSize is as specified elsewhere. num_ref_pic_lists_in_sps specifies the number of ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structures contained in the SPS. The value of num_ref_pic_lists_in_sps shall be in the range of 0 to 128, inclusive. The decoder should allocate memory for a total of num_short_term_ref_pic_sets+2 ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structures, since there may be two ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structures signaled directly in the slice header of the current picture. long_term_ref_pics_flag equal to 0 specifies that LTRP is not used for inter prediction of any coded pictures in the CVS. long_term_ref_pics_flag equal to 1 specifies that LTRP may be used for inter prediction of one or more coded pictures in the CVS.additional_lt_poc_lsb specifies the value of the variable MaxLtPicOrderCntLsb used in the decoding process for the reference picture list as MaxLtPicOrderCntLsb=2(log2_max_pic_order_cnt_lsb_minus4+4+additional_lt_poc_lsb). The value of additional_lt_poc_lsb shall be in the range from 0 to 32-log2_max_pic_order_cnt_lsb_minus4-4, inclusive. When not present, the value of additional_lt_poc_lsb is inferred to be equal to 0.
[0151] Picture parameter set RBSP semantics are discussed.
[0152] Slice Header Semantics
[0153] When present, the value of each of the slice header syntax elements slice_pic_parameter_set_id and slice_pic_order_cnt_lsb shall be the same in all slice headers of a coded picture. slice_type specifies the coding type of the slice according to Table 7-3.
[0154] [Table 12]
[0155] When nal_unit_type is equal to IRAP_NUT, i.e., the picture is an IRAP picture, slice_type shall be equal to 2. slice_pic_order_cnt_lsb specifies the picture order count modulo MaxPicOrderCntLsb for the current picture. The length of the slice_pic_order_cnt_lsb syntax element is log2_max_pic_order_cnt_lsb_minus4 + 4 bits. The value of slice_pic_order_cnt_lsb shall be in the range from 0 to MaxPicOrderCntLsb-1, inclusive. When slice_pic_order_cnt_lsb is not present, slice_pic_order_cnt_lsb is inferred to be equal to 0. ref_pic_list_sps_flag[i] equal to 1 specifies that reference picture list i of the current picture is derived based on one of the ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structures in the active SPS. ref_pic_list_sps_flag[i] equal to 0 specifies that reference picture list i of the current picture is derived based on the ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structure directly included in the slice header of the current picture. When num_ref_pic_lists_in_sps is equal to 0, the value of ref_pic_list_sps_flag[i] shall be equal to 0. ref_pic_list_idx[i] specifies an index into the list of ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structures contained in the active SPS of ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structures used for the derivation of reference picture list i for the current picture. The syntax element ref_pic_list_idx[i] is represented by Ceil(Log2(num_ref_pic_lists_in_sps)) bits. When not present, the value of ref_pic_list_idx[i] is inferred to be equal to 0.The value of ref_pic_list_idx[i] shall be in the range from 0 to num_ref_pic_lists_in_sps-1, inclusive. num_ref_idx_active_override_flag equal to 1 specifies that the syntax element num_ref_idx_active_minus1[0] is present for P and B slices and that the syntax element num_ref_idx_active_minus1[1] is present for B slices. num_ref_idx_active_override_flag equal to 0 specifies that the syntax elements num_ref_idx_active_minus1[0] and num_ref_idx_active_minus1[1] are not present.
[0156] num_ref_idx_active_minus1[i], when present, specifies the value of the variable NumRefIdxActive[i], such that NumRefIdxActive[i] = num_ref_idx_active_minus1[i] + 1. The value of num_ref_idx_active_minus1[i] shall be in the range of 0 to 14, inclusive. The value of NumRefIdxActive[i] - 1 specifies the maximum reference index for reference picture list i that may be used to decode the slice. When the value of NumRefIdxActive[i] is equal to 0, no reference index for reference picture list i may be used to decode the slice. For i equal to 0 or 1, when the current slice is a B slice and num_ref_idx_active_override_flag is equal to 0, NumRefIdxActive[i] is inferred to be equal to num_ref_idx_default_active_minus1[i] + 1. When the current slice is a P slice and num_ref_idx_active_override_flag is equal to 0, NumRefIdxActive[0] is inferred to be equal to num_ref_idx_default_active_minus1[0] + 1. When the current slice is a P slice, NumRefIdxActive[1] is inferred to be equal to 0. When the current slice is an I slice, both NumRefIdxActive[0] and NumRefIdxActive[1] are inferred to be equal to 0.
[0157] Alternatively, for i equal to 0 or 1, after the above the following applies: rplsIdx1 shall be set equal to ref_pic_list_sps_flag[i]?ref_pic_list_idx[i]:num_ref_pic_lists_in_sps[i] and numRpEntries[i] shall be equal to num_strp_entries[i][rplsIdx1]+num_ltrp_entries[i][rplsIdx1]. When NumRefIdxActive[i] is greater than numRpEntries[i], the value of NumRefIdxActive[i] shall be set equal to numRpEntries[i].
[0158] Reference Picture List Structure Semantics
[0159] The ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structure may be present in an SPS or a slice header. Depending on whether the syntax structure is included in a slice header or an SPS, the following applies: If present in a slice header, the ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structure specifies the reference picture list listIdx of the current picture (the picture that contains the slice). Otherwise (present in an SPS), the ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structure specifies reference picture list candidates, and the term "current picture" in the semantics specified in the rest of this section refers to each picture that 1) has one or more slices with ref_pic_list_idx[i] equal to an index into the list of ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structures included in the SPS, and 2) is in a CVS that has the SPS as the active SPS. num_strp_entries[rplsIdx] specifies the number of STRP entries in the ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structure. num_ltrp_entries[rplsIdx] specifies the number of LTRP entries in the ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structure. When not present, the value of num_ltrp_entries[rplsIdx] is inferred to be equal to 0.
[0160] The variable NumEntriesInList[rplsIdx] is derived as follows: NumEntriesInList[rplsIdx] = num_strp_entries[rplsIdx] + num_ltrp_entries[rplsIdx]. The value of NumEntriesInList[rplsIdx] shall be in the range 0 to sps_max_dec_pic_buffering_minus1, inclusive. lt_ref_pic_flag[rplsIdx][i] equal to 1 specifies that the i-th entry in the ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structure is an LTRP entry. lt_ref_pic_flag[rplsIdx][i] equal to 0 specifies that the i-th entry in the ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structure is a STRP entry. When not present, the value of lt_ref_pic_flag[rplsIdx][i] is inferred to be equal to 0. It is a bitstream conformance requirement that the sum of lt_ref_pic_flag[rplsIdx][i] for all values of i in the range from 0 to NumEntriesInList[rplsIdx]-1, inclusive, must equal num_ltrp_entries[rplsIdx]. delta_poc_st[rplsIdx][i] specifies the difference between the picture order count value of the current picture and the picture order count value of the picture referenced by the i-th entry when the i-th entry is the first STRP entry in the ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structure, or specifies the difference between the picture order count value of the picture referenced by the i-th entry and the picture order count value of the picture referenced by the previous STRP entry in the ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structure when the i-th entry is a STRP entry but is not the first STRP entry in the ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structure.The value of delta_poc_st[rplsIdx][i] shall be in the range 0 to 2-1, inclusive. poc_lsb_lt[rplsIdx][i] specifies the value of the picture order count modulo MaxLtPicOrderCntLsb for the picture referenced by the i-th entry in the ref_pic_list_struct(rplsIdx,ltrpFlag) syntax structure. The length of the poc_lsb_lt[rplsIdx][i] syntax element is Log2(MaxLtPicOrderCntLsb) bits.
[0161] The general decoding process specified as part of the detailed description of the first embodiment of the present disclosure applies. The NAL unit decoding process is described. The NAL unit decoding process specified as part of the detailed description of the first embodiment of the present disclosure applies.
[0162] A slice decoding process is provided.
[0163] Decoding Process for Picture Order Counting
[0164] The decoding process for picture order counting defined as part of the detailed description of the first embodiment of the present disclosure is applied.
[0165] Decoding process for reference picture list construction
[0166] This process is invoked at the beginning of the decoding process for each slice of a non-IRAP picture. Reference pictures are addressed through reference indexes, which are indices into the reference picture list. When decoding an I-slice, the reference picture list is not used in decoding the slice data. When decoding a P-slice, only reference picture list 0 (i.e., RefPicList[0]) is used in decoding the slice data. When decoding a B-slice, both reference picture list 0 and reference picture list 1 (i.e., RefPicList[1]) are used in decoding the slice data. At the beginning of the decoding process for each slice of a non-IRAP picture, the reference picture lists RefPicList[0] and RefPicList[1] are derived. The reference picture lists are used in marking reference pictures and decoding slice data. For I-slices of non-IRAP pictures that are not the first slice of a picture, RefPicList[0] and RefPicList[1] may be derived for the purposes of bitstream conformance checking, but their derivation is not required for decoding the current picture or pictures that follow the current picture in decoding order. For P-slices that are not the first slice of a picture, RefPicList[1] may be derived for the purposes of bitstream conformance checking, but its derivation is not required for decoding the current picture or pictures that follow the current picture in decoding order.
[0167] The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ if(ref_pic_list_sps_flag[i]) RplsIdx[i]=ref_pic_list_idx[i] else RplsIdx[i]=num_ref_pic_lists_in_sps for(j=0,pocBase=PicOrderCntVal;j< NumEntriesInList[RplsIdx[i]];j++){ if(!lt_ref_pic_flag[RplsIdx[i]][j]){ RefPicPocList[i][j]=pocBase-delta_poc_st[RplsIdx[i]][j] if(PicOrderCntVal equals RefPicPocList[i][j] and reference picture picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" pocBase=RefPicPocList[i][j] }else{ if(PicOrderCntVal&(MaxLtPicOrderCntLsb-1) equals poc_lsb_lt[RplsIdx[i]][j] reference picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" } } }
[0168] For each i equal to 0 or 1, the following applies: The first NumRefIdxActive[i] entry in RefPicList[i] is called the active entry in RefPicList[i], and the other entries in RefPicList[i] are called inactive entries in RefPicList[i]. Each entry RefPicList[i][j], for j in the range 0 to NumEntriesInList[RplsIdx[i]]-1, inclusive, is called a STRP entry if lt_ref_pic_flag[RplsIdx[i]][j] is equal to 0, and an LTRP entry otherwise. A particular picture may be referenced by both an entry in RefPicList[0] and an entry in RefPicList[1]. A particular picture may also be referenced by more than one entry in RefPicList[0] or more than one entry in RefPicList[1]. The active entries in RefPicList[0] and the active entries in RefPicList[1] collectively refer to all reference pictures that can be used for inter-prediction of the current picture and one or more pictures that follow the current picture in decoding order. The inactive entries in RefPicList[0] and the inactive entries in RefPicList[1] collectively refer to all reference pictures that are not used for inter-prediction of the current picture but can be used in inter-prediction for one or more pictures that follow the current picture in decoding order. There may be one or more entries in RefPicList[0] or RefPicList[1] that are equal to "No Reference Picture" because no corresponding picture exists in the DPB. Each inactive entry in RefPicList[0] or RefPicList[1] that is equal to "No Reference Picture" should be ignored. For each active entry in RefPicList[0] or RefPicList[1] that is equal to "No Reference Picture," an unintended picture loss should be inferred.
[0169] It is a bitstream conformance requirement that the following constraints apply: For each i equal to 0 or 1, NumEntriesInList[RplsIdx[i]] shall not be less than NumRefIdxActive[i]. The picture referenced by each active entry in RefPicList[0] or RefPicList[1] shall be present in the DPB and shall have a TemporalId less than or equal to the current picture. Optionally, the following constraint may be further specified: The entry index of any inactive entry in RefPicList[0] or RefPicList[1] shall not be used as a reference index for decoding the current picture. Optionally, the following constraint may be further specified: An inactive entry in RefPicList[0] or RefPicList[1] shall not reference the same picture as any other entry in RefPicList[0] or RefPicList[1]. An STRP entry in RefPicList[0] or RefPicList[1] of a slice of a picture and an LTRP entry in RefPicList[0] or RefPicList[1] of the same slice or a different slice of the same picture shall not reference the same picture. The current picture itself shall not be referenced by any entry in RefPicList[0] or RefPicList[1]. There shall be no LTRP entries in RefPicList[0] or RefPicList[1] where the difference between the PicOrderCntVal of the current picture and the PicOrderCntVal of the picture referenced by the entry is 224 or more. Let setOfRefPics be the set of unique pictures referenced by all entries in RefPicList[0] and all entries in RefPicList[1]. The number of pictures in setOfRefPics shall be less than or equal to sps_max_dec_pic_buffering_minus1, and setOfRefPics shall be the same for all slices of a picture.
[0170] The decoding process for reference picture marking is discussed.
[0171] This process is invoked once per picture, after the decoding of the slice header and the decoding process for constructing the reference picture list for the slice, but before the decoding of the slice data. This process can cause one or more reference pictures in the DPB to be marked as "not used for reference" or "used for long-term reference." A decoded picture in the DPB may be marked as "not used for reference," "used for short-term reference," or "used for long-term reference," but only one of these three, at any given moment during the operation of the decoding process. Assigning one of these markings to a picture implicitly excludes another of these markings, when applicable. When a picture is referred to as being marked "used for reference," this collectively refers to the picture being marked as "used for short-term reference" or "used for long-term reference" (but not both). When the current picture is an IRAP picture, all reference pictures (if any) currently in the DPB are marked as "not used for reference." STRPs are identified by their PicOrderCntVal values. LTRPs are identified by the Log2(MaxLtPicOrderCntLsb) LSBs of their PicOrderCntVal values.
[0172] The following applies: For each LTRP entry in RefPicList[0] or RefPicList[1], if the referenced picture is a STRP, the picture is marked as "used for long-term reference." Each reference picture in the DPB that is not referenced by any entry in RefPicList[0] or RefPicList[1] is marked as "not used for reference."
[0173] 5 is an embodiment of a method 500 for decoding a coded video bitstream performed by a video decoder (e.g., video decoder 30). Method 500 may be performed after a decoded bitstream is received directly or indirectly from a video encoder (e.g., video encoder 20). Method 500 may be performed to improve the decoding process (e.g., make the decoding process more efficient, faster, etc. than conventional decoding processes) because a reference picture list structure is included in the coded video bitstream for all types of slices. Thus, in effect, the performance of the codec can be improved, which translates into a better user experience.
[0174] A first reference picture list structure and a second reference picture list structure represented in a coded video bitstream are obtained in block 502. In an embodiment, the first reference picture list structure and the second reference picture list structure are obtained by parsing the coded video bitstream.
[0175] In an embodiment, the order of the entries in the first reference picture list structure and the second reference picture list structure is the same as the order of the corresponding reference pictures in the reference picture list. In an embodiment, the order ranges from 0 to the value indicated by sps_max_dec_pic_buffering_minus1. In an embodiment, the order ranges from 0 to the value indicated by sps_max_dec_pic_buffering_minus1.
[0176] In block 504, a first reference picture list of the current slice and a second reference picture list of the current slice are derived based on the first reference picture list structure and the second reference picture list structure. In an embodiment, the first and second reference picture lists are derived for all types of slices, not just for bi-predictive or bidirectional (B) slices. In an embodiment, the current slice comprises an intra (I) slice or a uni-predictive (P) slice. In an embodiment, the reference picture lists are referred to as RefPictList[0] or RefPictList[1].
[0177] Following the derivation of the first and second reference picture lists, at least one reconstructed block of the current slice is obtained in block 506. In an embodiment, the at least one reconstructed block is used to generate an image to be displayed on a display of the electronic device.
[0178] In an embodiment, the reference picture list comprises a list of reference pictures used for inter prediction, hi an embodiment, the inter prediction is for a P slice or a B slice.
[0179] In an embodiment, the slice header includes a Reference Picture List Sequence Parameter Set (SPS) flag called ref_pic_list_sps_flag[i]. When this flag is equal to 1, the i-th reference picture list, i.e., RefPictList[i], is not directly signaled in the slice header but is referenced from the SPS. When this flag is equal to 0, the i-th reference picture list, i.e., RefPictList[i], is directly signaled in the slice header but is not referenced from the SPS. In an embodiment, the slice header includes a Number Reference Index Active Override flag specified by num_ref_idx_active_override_flag. When this flag is equal to 1, the number of active entries in each reference picture list is the default value signaled in the PPS. When this flag is equal to 0, the number of active entries in each reference picture list is explicitly signaled in the slice header.
[0180] In one embodiment, the reference picture list is called RefPictList[0] or RefPictList[1], and the order of entries in the first reference picture list structure or the second reference picture list syntax structure is the same as the order of the corresponding reference pictures in the reference picture list.
[0181] An overview of an alternative embodiment based on the first and second embodiments is provided.
[0182] This section provides a brief overview of other alternative embodiments of the present disclosure. The overview is for the description of the first embodiment. However, the basic concepts of the present disclosure for the following alternative embodiments are applicable to implementations in addition to the disclosure for the second embodiment. Such implementations are in the same spirit as how aspects are implemented in addition to the first embodiment.
[0183] Semantics of Delta POC for Short-Term Reference Picture Entries
[0184] In one alternative embodiment of the present disclosure, the semantics of a syntax element specifying the delta POC of the i-th entry in the reference picture list structure ref_pic_list_struct() is defined as the POC difference between the current picture and the reference picture associated with that i-th entry. Some descriptions used herein are relative to the current standard draft (e.g., the VVC Working Draft), and only the differences are shown or described. Deleted text is indicated by a strikethrough, and any added text is highlighted.
[0185] The semantics of delta_poc_st[listIdx][rplsIdx][i] are defined as follows: delta_poc_st[listIdx][rplsIdx][i] specifies the difference between the picture order count value of the current picture and the picture order count value of the picture referenced by the i-th entry. The value of delta_poc_st[listIdx][rplsIdx][i] shall be in the range -215 to 215-1, inclusive.
[0186] The formula in the reference picture list construction process needs to be updated: The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ if(ref_pic_list_sps_flag[i]) RplsIdx[i]=ref_pic_list_idx[i] else RplsIdx[i]=num_ref_pic_lists_in_sps[i] for(j=0;j <NumEntriesInList[i][RplsIdx[i]];j++){ if(!lt_ref_pic_flag[i][RplsIdx[i]][j]){ RefPicPocList[i][j]=PicOrderCntVal-delta_poc_st[i][RplsIdx[i]][j] if(PicOrderCntVal equals RefPicPocList[i][j] and reference picture picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" }else{ if(PicOrderCntVal&(MaxLtPicOrderCntLsb-1) equals poc_lsb_lt[i][RplsIdx[i]][j] reference picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" } } }
[0187] Signaling long-term reference picture entries
[0188] In one alternative embodiment of the present disclosure, long-term reference picture entries are not signaled in the same reference picture list structure that contains short-term reference picture entries. They are signaled in a separate structure, and for each entry in the structure there is a syntax element that describes the intended location of the long-term reference picture entry for the derivation of the corresponding entry index in the final reference picture list.
[0189] Sequence Parameter Set RBSP Syntax
[0190] [Table 13]
[0191] Slice Header Syntax
[0192] [Table 14]
[0193] Reference Picture List Structure Syntax
[0194] [Table 15]
[0195] Long-term reference picture list structure syntax
[0196] [Table 16]
[0197] Sequence Parameter Set RBSP Semantics
[0198] num_ref_pic_lists_lt_in_sps specifies the number of ref_pic_list_lt_struct(ltRplsIdx) syntax structures contained in the SPS. The value of num_ref_pic_lists_lt_in_sps shall be in the range 0 to 64, inclusive. When not present, the value of num_ref_pic_lists_lt_in_sps is inferred to be equal to 0.
[0199] Slice Header Semantics
[0200] ref_pic_list_lt_idx[i] specifies an index into the list of ref_pic_list_lt_struct(ltRplsIdx) syntax structures contained in the active SPS that are used to derive reference picture list i for the current picture. The syntax element ref_pic_list_lt_idx[i] is represented by Ceil(Log2(num_ref_pic_lists_lt_in_sps)) bits. The value of ref_pic_list_lt_idx shall be in the range from 0 to num_ref_pic_lists_lt_in_sps-1, inclusive.
[0201] Reference Picture List Structure Semantics
[0202] The ref_pic_list_struct(listIdx,rplsIdx) syntax structure can be present in an SPS or a slice header. Depending on whether the syntax structure is included in a slice header or an SPS, the following applies: When present in a slice header, the ref_pic_list_struct(listIdx,rplsIdx) syntax structure specifies the reference picture list listIdx of the current picture (the picture that contains the slice). Otherwise (present in the SPS), the ref_pic_list_struct(listIdx,rplsIdx) syntax structure specifies candidates for the short-term reference picture list listIdx, and the term "current picture" in the semantics specified in the rest of this section refers to each picture that 1) has one or more slices with ref_pic_list_idx[listIdx] equal to an index into the list of ref_pic_list_struct(listIdx,rplsIdx) syntax structures contained in the SPS, and 2) is in a CVS that has the SPS as its active SPS. num_strp_entries[listIdx][rplsIdx] specifies the number of STRP entries in the ref_pic_list_struct(listIdx,rplsIdx) syntax structure.
[0203] delta_poc_st[listIdx][rplsIdx][i] specifies the difference between the picture order count value of the current picture and the picture order count value of the picture referenced by the ith entry when the ith entry is the first STRP entry in the ref_pic_list_struct(listIdx,rplsIdx) syntax structure, or specifies the difference between the picture order count value of the picture referenced by the ith entry and the picture order count value of the picture referenced by the previous STRP entry in the ref_pic_list_struct(listIdx,rplsIdx) syntax structure when the ith entry is a STRP entry but is not the first STRP entry in the ref_pic_list_struct(listIdx,rplsIdx) syntax structure. The value of delta_poc_st[listIdx][rplsIdx][i] shall be in the range of -215 to 215-1, inclusive.
[0204] Long-term reference picture list structure semantics
[0205] The ref_pic_list_lt_struct(ltRplsIdx) syntax structure may be present in an SPS or a slice header. Depending on whether the syntax structure is included in a slice header or an SPS, the following applies: If present in a slice header, the ref_pic_list_lt_struct(ltRplsIdx) syntax structure specifies the long-term reference picture list for the current picture (the picture that contains the slice). Otherwise (present in an SPS), the ref_pic_list_struct(listIdx,rplsIdx) syntax structure specifies candidates for the long-term reference picture list, and the term "current picture" in the semantics specified in the rest of this section refers to each picture that 1) has one or more slices with ref_pic_list_lt_idx[i] equal to an index into the list of ref_pic_list_lt_struct(ltRplsIdx) syntax structures included in the SPS, and 2) is in a CVS that has the SPS as the active SPS. num_ltrp_entries[ltRplsIdx] specifies the number of LTRP entries in the ref_pic_list_lt_struct(ltRplsIdx) syntax structure. poc_lsb_lt[rplsIdx][i] specifies the value of the picture order count modulo MaxLtPicOrderCntLsb of the picture referenced by the i-th entry in the ref_pic_list_lt_struct(rplsIdx) syntax structure. The length of the poc_lsb_lt[rplsIdx][i] syntax element is Log2(MaxLtPicOrderCntLsb) bits. lt_pos_idx[rplsIdx][i] specifies the index of the i-th entry in the ref_pic_list_lt_struct(rplsIdx) syntax structure in the reference picture list after reference picture list construction. The length of the lt_pos_idx[rplsIdx][i] syntax element is Log2(sps_max_dec_pic_buffering_minus1+1) bits.When num_ltrp_entries[ltRplsIdx] is greater than 1, poc_lsb_lt[rplsIdx][i] and lt_pos_idx[rplsIdx][i] shall be in descending order of lt_pos_idx[rplsIdx][i] values.
[0206] The decoding process is explained.
[0207] Decoding process for reference picture list construction
[0208] This process is invoked at the beginning of the decoding process for each slice of a non-IRAP picture. Reference pictures are addressed through reference indices, which are indices into the reference picture list. When decoding an I-slice, no reference picture list is used in decoding the slice data. When decoding a P-slice, only reference picture list 0 (i.e., RefPicList[0]) is used in decoding the slice data. When decoding a B-slice, both reference picture list 0 and reference picture list 1 (i.e., RefPicList[1]) are used in decoding the slice data. At the beginning of the decoding process for each slice of a non-IRAP picture, the reference picture lists RefPicList[0] and RefPicList[1] are derived. The reference picture lists are used in marking reference pictures or decoding slice data. For I-slices of non-IRAP pictures that are not the first slice of a picture, RefPicList[0] and RefPicList[1] may be derived for the purpose of bitstream conformance checking, but their derivation is not necessary for decoding the current picture or pictures that follow the current picture in decoding order. For P-slices that are not the first slice of a picture, RefPicList[1] may be derived for the purpose of bitstream conformance checking, but its derivation is not necessary for decoding the current picture or pictures that follow the current picture in decoding order. The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ if(ref_pic_list_sps_flag[i]) RplsIdx[i]=ref_pic_list_idx[i] else RplsIdx[i]=num_ref_pic_lists_in_sps[i] for(j=0,pocBase=PicOrderCntVal;j <NumEntriesInList[i][RplsIdx[i]];j++){ RefPicPocList[i][j]=pocBase-delta_poc_st[i][RplsIdx[i]][j] if(PicOrderCntVal equals RefPicPocList[i][j] and reference picture picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" pocBase=RefPicPocList[i][j] } if(ref_pic_list_lt_sps_flag[i]) LtRplsIdx=ref_pic_list_lt_idx[i] else LtRplsIdx=num_ref_pic_lists_lt_in_sps[i] for(j=0;j <num_ltrp_entries[LtRplsIdx[i]];j++){ if(PicOrderCntVal&(MaxLtPicOrderCntLsb-1) equals poc_lsb_lt[LtRplsIdx[i]][j] reference picA is in DPB) for(k=sps_max_dec_pic_buffering_minus1;k>lt_pos_idx[LtRplsIdx[i]][j];k--) RefPicList[i][k]=RefPicList[i][k-1] RefPicList[i][lt_pos_idx[LtRplsIdx[i]][j]]=picA }else{ for(k=sps_max_dec_pic_buffering_minus1;k>lt_pos_idx[LtRplsIdx[i]][j];k--) RefPicList[i][k]=RefPicList[i][k-1] RefPicList[i][lt_pos_idx[RplsIdx[i]][j]]="refrigerateピクチャしし" } } }
[0209] For each i equal to 0 or 1, the following applies: The first NumRefIdxActive[i] entry in RefPicList[i] is called the active entry in RefPicList[i], and the other entries in RefPicList[i] are called inactive entries in RefPicList[i]. Each entry in RefPicList[i][j], for j in the range from 0 to NumEntriesInList[i][RplsIdx[i]]-1, inclusive, is called a STRP entry if lt_ref_pic_flag[i][RplsIdx[i][j]] is equal to 0, and an LTRP entry otherwise. A particular picture may be referenced by both an entry in RefPicList[0] and an entry in RefPicList[1]. A particular picture may also be referenced by more than one entry in RefPicList[0] or more than one entry in RefPicList[1]. The active entries in RefPicList[0] and the active entries in RefPicList[1] collectively refer to all reference pictures that can be used for inter-prediction of the current picture and one or more pictures that follow the current picture in decoding order. The inactive entries in RefPicList[0] and the inactive entries in RefPicList[1] refer to all reference pictures that are not used for inter-prediction of the current picture but can be used in inter-prediction for one or more pictures that follow the current picture in decoding order. There may be one or more entries in RefPicList[0] or RefPicList[1] that are equal to "No Reference Picture" because no corresponding picture exists in the DPB. Each inactive entry in RefPicList[0] or RefPicList[0] that is equal to "No Reference Picture" should be ignored. For each active entry in RefPicList[0] or RefPicList[1] that is equal to "No Reference Picture," an unintended picture loss should be inferred.
[0210] It is a bitstream conformance requirement that the following constraints apply: For each i equal to 0 or 1, the number of entries in RefPicList[i] shall not be less than NumRefIdxActive[i]. The picture referenced by each active entry in RefPicList[0] or RefPicList[1] shall be present in the DPB and shall have a TemporalId less than or equal to the current picture. Optionally, the following constraints may be further specified: The entry index of an inactive entry in RefPicList[0] or RefPicList[1] shall not be used as a reference index for decoding the current picture. Optionally, the following constraints may be further specified: An inactive entry in RefPicList[0] or RefPicList[1] shall not reference the same picture as another entry in RefPicList[0] or RefPicList[1]. An STRP entry in RefPicList[0] or RefPicList[1] of a slice of a picture and an LTRP entry in RefPicList[0] or RefPicList[1] of the same slice or a different slice of the same picture shall not reference the same picture. The current picture itself shall not be referenced by any entry in RefPicList[0] or RefPicList[1]. There shall be no LTRP entries in RefPicList[0] or RefPicList[1] where the difference between the PicOrderCntVal of the current picture and the PicOrderCntVal of the picture referenced by the entry is 224 or more. Let setOfRefPics be the set of unique pictures referenced by all entries in RefPicList[0] and all entries in RefPicList[1]. The number of pictures in setOfRefPics shall be less than or equal to sps_max_dec_pic_buffering_minus1, and setOfRefPics shall be the same for all slices of a picture.
[0211] Signaling of the number of short-term reference picture entries is discussed.
[0212] In one alternative embodiment of the present disclosure, the syntax element specifying the number of entries associated with short-term reference pictures in the reference picture list structure ref_pic_list_struct() is defined as num_strp_entries_minus1[listIdx][rplsIdx] instead of num_strp_entries[listIdx][rplsIdx]. This change has two effects on reference picture list signaling: it may save bits for signaling the number of entries associated with short-term reference pictures in the reference picture list structure, since the element is coded using ue(v). This implicitly imposes the constraint that each reference picture list shall contain at least one short-term reference picture. To address this proposal, several modifications to the first embodiment are required.
[0213] For reference picture list signaling in the slice header, the required reference picture lists, i.e., one reference picture list for an I or P slice (i.e., reference picture list 0) and two reference picture lists for a B slice (i.e., both reference picture list 0 and reference picture list 1), are signaled according to the slice type. The slice header syntax is modified as follows:
[0214] [Table 17]
[0215] By applying the above modifications of the slice header (i.e., Reference Picture List 0 for I or P slices, Reference Picture 0 and Reference Picture 1 for B slices), the problem of only one short-term reference picture for P slices is avoided in this scheme. However, duplicated short-term reference pictures cannot be signaled in Reference Picture List 0 and Reference Picture List 1, and the number of active entries in Reference Picture List 1 must be equal to 0, so the entries in Reference Picture List 1 are inactive entries. The semantics of num_strp_entries_minus1[listIdx][rplsIdx] is modified as follows: num_strp_entries_minus1[listIdx][rplsIdx] plus 1 specifies the number of STRP entries in the ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structure. The variable NumEntriesInList[listIdx][rplsIdx] is derived as follows: NumRefPicEntriesInRpl[listIdx][rplsIdx] = num_strp_entries_minus1[listIdx][rplsIdx] + 1 + numb_ltrp_entries[listIdx][rplsIdx]. The value of NumRefPicEntries[listIdx][rplsIdx] shall be in the range 1 to sps_max_dec_pic_buffering_minus1, inclusive.
[0216] Allowing the current picture to be included in the reference picture list
[0217] In an alternative embodiment of the present disclosure, the current picture is allowed to be included in its reference picture list. To support this feature, no syntax and semantic changes are required relative to the description of the first and second embodiments. However, the bitstream conformance constraints described in the decoding process for reference picture list construction need to be modified as follows: It is a bitstream conformance requirement that the following constraints apply: For each i equal to 0 or 1, NumEntriesInList[i][RplsIdx[i]] shall not be less than NumRefIdxActive[i]. The picture referenced by each active entry in RefPicList[0] or RefPicList[1] shall be present in the DPB and shall have a TemporalId less than or equal to the current picture. Optionally, the following constraints may be further specified: The entry index of any inactive entry in RefPicList[0] or RefPicList[1] shall not be used as a reference index for decoding the current picture. Optionally, the following constraints may be further specified: An inactive entry in RefPicList[0] or RefPicList[1] shall not reference the same picture as any other entry in RefPicList[0] or RefPicList[1]. An STRP entry in RefPicList[0] or RefPicList[1] of a slice of a picture and an LTRP entry in RefPicList[0] or RefPicList[1] of the same slice or a different slice of the same picture shall not reference the same picture. When the current picture is referenced by an entry in RefPicList[i], the entry index shall be less than NumRefIdxActive[i] for i equal to 0 or 1. There shall be no LTRP entries in RefPicList[0] or RefPicList[1] where the difference between the PicOrderCntVal of the current picture and the PicOrderCntVal of the picture referenced by the entry is 224 or more.Let setOfRefPics be the set of unique pictures referenced by all entries in RefPicList[0] and all entries in RefPicList[1]. If the current picture is not included in setOfRefPics, the number of pictures in setOfRefPics shall be less than or equal to sps_max_dec_pic_buffering_minus1, otherwise the number of pictures in setOfRefPics shall be less than or equal to sps_max_dec_pic_buffering_minus1+1. setOfRefPics shall be the same for all slices of a picture.
[0218] Using different POC LSB bits for LTRP entries in the reference picture list
[0219] In one alternative embodiment of the present disclosure, the number of bits used to identify a long-term reference picture in a reference picture list structure is allowed to be the difference between Reference Picture List 0 and Reference Picture List 1. To support this feature, the following changes are required:
[0220] [Table 18]
[0221] additional_lt_poc_lsb[i] specifies the value of the variable MaxLtPicOrderCntLsb[i] used in the decoding process for the reference picture list listIdx equal to i, as follows: MaxLtPicOrderCntLsb[i]=2(log2_max_pic_order_cnt_lsb_minus4+4+additional_lt_poc_lsb[i]). The value of additional_lt_poc_lsb[i] shall be in the range from 0 to 32-log2_max_pic_order_cnt_lsb_minus4-4, inclusive. When not present, the value of additional_lt_poc_lsb[i] is inferred to be equal to 0.
[0222] poc_lsb_lt[listIdx][rplsIdx][i] specifies the value of the picture order count modulo MaxLtPicOrderCntLsb[listIdx] for the picture referenced by the i-th entry in the ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structure. The length of the poc_lsb_lt[listIdx][rplsIdx][i] syntax element is Log2(MaxLtPicOrderCntLsb[listIdx]) bits.
[0223] The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ if(ref_pic_list_sps_flag[i]) RplsIdx[i]=ref_pic_list_idx[i] else RplsIdx[i]=num_ref_pic_lists_in_sps[i] for(j=0,pocBase=PicOrderCntVal;j <NumEntriesInList[i][RplsIdx[i]];j++){ if(!lt_ref_pic_flag[i][RplsIdx[i]][j]){ RefPicPocList[i][j]=pocBase-delta_poc_st[i][RplsIdx[i]][j] if (reference picture picA whose PicOrderCntVal is RefPicPocList[i][j] is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" pocBase=RefPicPocList[i][j] }else{ if(PicOrderCntVal&(MaxLtPicOrderCntLsb[i]-1) equals poc_lsb_lt[i][RplsIdx[i]][j] reference picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" } } }
[0224] Use the same ref_pic_list_sps_flag for reference picture lists 0 and 1
[0225] In one alternative embodiment of the present disclosure, instead of using two flags to indicate whether reference picture list 0 and reference picture list 1 are derived based on the ref_pic_list_struct() syntax structure in the active SPS, one flag is used for both reference pictures. Such an alternative has the constraint that either both reference picture lists are derived based on the ref_pic_list_struct() in the active SPS, or they are derived based on the ref_pic_list_struct() syntax structure directly included in the slice header of the current picture. To support this feature, the following modifications are necessary:
[0226] [Table 19]
[0227] ref_pic_list_sps_flag equal to 1 specifies that the reference picture list of the current picture is derived based on the ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) in the active SPS. ref_pic_list_sps_flag equal to 0 specifies that the reference picture list of the current picture is derived based on the ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) directly included in the slice header of the current picture. When either num_ref_pic_lists_in_sps[0] or num_ref_pic_lists_in_sps[1] is equal to 0, the value of ref_pic_list_sps_flag shall be equal to 0. When pic_lists_in_sps[1] is equal to 0, the value of ref_pic_list_sps_flag shall be equal to 0.
[0228] The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ if(ref_pic_list_sps_flag) RplsIdx[i]=ref_pic_list_idx[i] else RplsIdx[i]=num_ref_pic_lists_in_sps[i] for(j=0,pocBase=PicOrderCntVal;j <NumEntriesInList[i][RplsIdx[i]];j++){ if(!lt_ref_pic_flag[i][RplsIdx[i]][j]){ RefPicPocList[i][j]=pocBase-delta_poc_st[i][RplsIdx[i]][j] if(PicOrderCntVal equals RefPicPocList[i][j] and reference picture picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" pocBase=RefPicPocList[i][j] }else{ if(PicOrderCntVal&(MaxLtPicOrderCntLsb-1) equals poc_lsb_lt[i][RplsIdx[i]][j] reference picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" } } }
[0229] Delta POC Most Significant Bit (MSB) Signaling for Long-Term Reference Picture Entry
[0230] In one alternative embodiment of the present disclosure, instead of using additional bits to represent the POC LSB of long-term reference picture entries in the ref_pic_list_struct(), the POC MSB cycle is signaled to distinguish long-term reference pictures. When signaled, the POC MSB cycle information is signaled for each entry in the ref_pic_list_struct() that references a long-term reference picture. The ref_pic_list_struct() syntax structure is not signaled in the SPS, but only in the slice header. To support this feature, the following modifications are required:
[0231] [Table 20]
[0232] [Table 21]
[0233] [Table 22]
[0234] The ref_pic_list_struct(listIdx,ltrpFlag) syntax structure may be present in a slice header. When present in a slice header, the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure specifies the reference picture list listIdx of the current picture (the picture containing the slice). num_strp_entries[listIdx] specifies the number of STRP entries in the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure. num_ltrp_entries[listIdx] specifies the number of LTRP entries in the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure. When not present, the value of num_ltrp_entries[listIdx][rplsIdx] is inferred to be equal to 0.
[0235] The variable NumEntriesInList[listIdx] is derived as follows: It is derived as follows: NumRefPicEntriesInRpl[listIdx]=num_strp_entries[listIdx]+num_ltrp_entries[listIdx].
[0236] The value of NumRefPicEntries[listIdx] shall be in the range of 0 to sps_max_dec_pic_buffering_minus1, inclusive. lt_ref_pic_flag[listIdx][i] equal to 1 specifies that the i-th entry in the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure is an LTRP entry. lt_ref_pic_flag[listIdx][i] equal to 0 specifies that the i-th entry in the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure is an STRP entry. When not present, the value of lt_ref_pic_flag[listIdx][i] is inferred to be equal to 0. It is a bitstream conformance requirement that the sum of lt_ref_pic_flag[listIdx][i] for all values of i in the range 0 to NumRefPicEntries[listIdx]-1, inclusive, must equal num_ltrp_entries[listIdx]. delta_poc_st[listIdx][i] specifies the difference between the picture order count value of the current picture and the picture order count value of the picture referenced by the i-th entry when the i-th entry is the first STRP entry in the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure, or specifies the difference between the picture order count value of the picture referenced by the i-th entry and the picture order count value of the picture referenced by the previous STRP entry in the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure when the i-th entry is a STRP entry but is not the first STRP entry in the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure. The value of delta_poc_st[listIdx][i] shall be -2 inclusive. 15 From 2 15poc_lsb_lt[listIdx][i] shall be in the range -1. poc_lsb_lt[listIdx][i] specifies the value of the picture order count modulo MaxLtPicOrderCntLsb for the picture referenced by the i-th entry in the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure. The length of the poc_lsb_lt[listIdx][i] syntax element is Log2(MaxPicOrderCntLsb) bits. delta_poc_msb_present_flag[listIdx][i] equal to 1 specifies that delta_poc_msb_cycle_lt[listIdx][i] is present. delta_poc_msb_present_flag[listIdx][i] equal to 0 specifies that delta_poc_msb_cycle_lt[listIdx][i] is not present. ltrpFlag)。 Changes to the decoding process for picture order count: When num_ltrp_entries[listIdx] is greater than 0 and there are more than one reference pictures in the DPB with PicOrderCntVal modulo MaxPicOrderCntLsb equal to poc_lsb_lt[listIdx][i] when this slice header is decoded, delta_poc_msb_present_flag[listIdx][i] shall be equal to 1. When not present, the value of delta_poc_msb_cycle_lt[listIdx][i] is inferred to be equal to 0. delta_poc_msb_cycle_lt[listIdx][i] is used to determine the value of the most significant bit of the picture order count value of the ith entry in the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure. When delta_poc_msb_cycle_lt[listIdx][i] is not present, it is inferred to be equal to 0. Changes to the decoding process for picture order count:
[0237] The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ for(j=0,pocBase=PicOrderCntVal;j <NumEntriesInList[i];j++){ if(!lt_ref_pic_flag[i][j]){ RefPicPocList[i][j]=pocBase-delta_poc_st[i][j] if(PicOrderCntVal equals RefPicPocList[i][j] and reference picture picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" pocBase=RefPicPocList[i][j] }else{ if(delta_poc_msb_cycle_lt[i][j] equals 0 && PicOrderCntVal & (MaxPicOrderCntLsb-1) equals poc_lsb_lt[i][j]. Reference picture picA is in the DPB. RefPicList[i][j]=picA else if(delta_poc_msb_cycle_lt[i][j] equals 1&& Reference picture picA whose PicOrderCntVal is equal to (MaxPicOrderCntLsb*delta_poc_msb_cycle_lt[i][j])+poc_lsb_lt[i][j]) is in the DPB RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" } } }
[0238] Alternatively, the semantics of delta_poc_msb_cycle_lt[listIdx][i] may be expressed as a difference of differences so that the reference picture list construction may be updated as follows: The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ prevMsbCycle=0 for(j=0,pocBase=PicOrderCntVal;j <NumEntriesInList[i];j++){ (8-5) if(!lt_ref_pic_flag[i][j]){ RefPicPocList[i][j]=pocBase-delta_poc_st[i][j] if(PicOrderCntVal equals RefPicPocList[i][j] and reference picture picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" pocBase=RefPicPocList[i][j] }else{ if(delta_poc_msb_cycle_lt[i][j] equals 0 && PicOrderCntVal & (MaxPicOrderCntLsb-1) equals poc_lsb_lt[i][j]. Reference picture picA is in the DPB. RefPicList[i][j]=picA else if(delta_poc_msb_cycle_lt[i][j] equals 1&& Reference picA whose PicOrderCntVal is equal to (MaxPicOrderCntLsb*(delta_poc_msb_cycle_lt[i][j]+ prevMsbCycle))+poc_lsb_lt[i][j]) is in DPB) { RefPicList[i][j]=picA prevMsbCycle+=delta_poc_msb_cycle_lt[i][j] }else RefPicList[i][j]="No reference pictures" } } }
[0239] It is a bitstream conformance requirement that the following constraints apply: For each i equal to 0 or 1, NumEntriesInList[i][RplsIdx[i]] shall not be less than NumRefIdxActive[i]. The picture referenced by each active entry in RefPicList[0] or RefPicList[1] shall be present in the DPB and shall have a TemporalId less than or equal to the current picture. Optionally, the following constraint may be further specified: The entry index of an inactive entry in RefPicList[0] or RefPicList[1] shall not be used as a reference index for decoding the current picture. Optionally, the following constraint may be further specified: An inactive entry in RefPicList[0] or RefPicList[1] shall not reference the same picture as any other entry in RefPicList[0] or RefPicList[1]. An STRP entry in RefPicList[0] or RefPicList[1] of a slice of a picture and an LTRP entry in RefPicList[0] or RefPicList[1] of the same slice or a different slice of the same picture shall not reference the same picture. The current picture itself shall not be referenced by any entry in RefPicList[0] or RefPicList[1]. There shall be no LTRP entries in RefPicList[0] or RefPicList[1] where the difference between the PicOrderCntVal of the current picture and the PicOrderCntVal of the picture referenced by the entry is 224 or more. Let setOfRefPics be the set of unique pictures referenced by all entries in RefPicList[0] and all entries in RefPicList[1]. The number of pictures in setOfRefPics shall be less than or equal to sps_max_dec_pic_buffering_minus1, and setOfRefPics shall be the same for all slices of a picture.
[0240] Each STRP is identified by its PicOrderCntVal value. For each LTRP, if the LTRP is referenced by an entry in RefPicList[0] or RefPicList[1] with delta_poc_msb_present_flag[listIdx][i] equal to 1, it is identified by its PicOrderCntVal value; otherwise, it is identified by the Log2(MaxPicOrderCntLsb) LSBs of its PicOrderCntVal value.
[0241] Alternative 1 for signaling delta POC MSB for long-term reference picture entry
[0242] This embodiment provides an alternative to the embodiment described in the previous section. Similar to the idea in the previous section, instead of using additional bits to represent the POC LSB of a long-term reference picture in the ref_pic_list_struct(), the POC MSB cycle is signaled to distinguish long-term reference pictures. However, in this alternative, if signaled, the POC MSB cycle information is not signaled within the ref_pic_list_struct(), but instead is signaled in the slice header when the POC MSB cycle information is needed. The ref_pic_list_struct() syntax structure can be signaled in the SPS and slice header.
[0243] [Table 23]
[0244] [Table 24]
[0245] delta_poc_msb_present_flag[i][j] equal to 1 specifies that delta_poc_msb_cycle_lt[i][j] is present. delta_poc_msb_present_flag[i][j] equal to 0 specifies that delta_poc_msb_cycle_lt[i][j] is not present. When NumLtrpEntries[i] is greater than 0, and for the j-th LTRP entry in the ref_pic_list_struct(i,rplsIdx,1) syntax structure, there are more than one reference pictures in the DPB with PicOrderCntVal modulo MaxPicOrderCntLsb equal to poc_lsb_lt[i][rplsIdx][jj] when this slice header is decoded, where jj is the entry index of the entry in the ref_pic_list_struct(i,rplsIdx,1) syntax structure that is the j-th LTRP entry in the ref_pic_list_struct(i,rplsIdx,1) syntax structure, then delta_poc_msb_present_flag[i][j] shall be equal to 1. If not present, the value of delta_poc_msb_cycle_lt[i][j] is inferred to be equal to 0. delta_poc_msb_cycle_lt[i][j] is used to determine the value of the most significant bit of the picture order count value of the jth LTRP entry in the ref_pic_list_struct(i,rplsIdx,1) syntax structure. When delta_poc_msb_cycle_lt[i][j] is not present, it is inferred to be equal to 0.
[0246] [Table 25]
[0247] delta_poc_msb_present_flag[i][j] equal to 1 specifies that delta_poc_msb_cycle_lt[i][j] is present. delta_poc_msb_present_flag[i][j] equal to 0 specifies that delta_poc_msb_cycle_lt[i][j] is not present. When NumLtrpEntries[i] is greater than 0 and there are more than one reference pictures in the DPB with PicOrderCntVal modulo MaxPicOrderCntLsb equal to poc_lsb_lt[i][j] when this slice header is decoded, delta_poc_msb_present_flag[i][j] shall be equal to 1. When not present, the value of delta_poc_msb_cycle_lt[i][j] is inferred to be equal to 0. delta_poc_msb_cycle_lt[i][j] is used to determine the value of the most significant bit of the picture order count value of the jth entry in the ref_pic_list_struct(i,rplsIdx,1) syntax structure. When delta_poc_msb_cycle_lt[i][j] is not present, it is inferred to be equal to 0. poc_lsb_lt[listIdx][rplsIdx][i] specifies the value of the picture order count modulo MaxPicOrderCntLsb of the picture referenced by the ith entry in the ref_pic_list_struct(listIdx,rplsIdx,ltrpFlag) syntax structure. The length of the poc_lsb_lt[listIdx][rplsIdx][i] syntax element is Log2(MaxPicOrderCntLsb) bits.
[0248] Modifications to the decoding process for picture order counting:
[0249] For slice header design 1, the reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ if(ref_pic_list_sps_flag[i]) RplsIdx[ i ]=ref_pic_list_idx[ i ] else RplsIdx[i]=num_ref_pic_lists_in_sps[i] msbCycleIdx=0 for(j=0,pocBase=PicOrderCntVal;j <NumEntriesInList[i][RplsIdx[i]];j++){ if(!lt_ref_pic_flag[i][RplsIdx[i]][j]){ RefPicPocList[i][j]=pocBase-delta_poc_st[i][RplsIdx[i]][j] if(PicOrderCntVal equals RefPicPocList[i][j] and reference picture picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" pocBase=RefPicPocList[i][j] }else{ if(delta_poc_msb_cycle_lt[i][msbCycleIdx] equals 0 && PicOrderCntVal & (MaxPicOrderCntLsb-1) equals poc_lsb_lt[i][RplsIdx[i]][j] (reference picture picA is in DPB) RefPicList[i][j]=picA else if(delta_poc_msb_cycle_lt[i][msbCycleIdx] equals 1&& Reference picture picA whose PicOrderCntVal is equal to (MaxPicOrderCntLsb*delta_poc_msb_cycle_lt[i][msbCycleIdx])+poc_lsb_lt[i][RplsIdx[i]][j]) is in DPB) { RefPicList[i][j]=picA msbCycleIdx++ }else RefPicList[i][j]="No reference pictures" } } }
[0250] Alternatively, for slice header design 1, the semantics of delta_poc_msb_cycle_lt[listIdx][i] may be expressed as a difference of a difference, such that the reference picture list construction may be updated as follows: The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ if(ref_pic_list_sps_flag[i]) RplsIdx[i]=ref_pic_list_idx[i] else RplsIdx[i]=num_ref_pic_lists_in_sps[i] pevMsbCycle=0 msbCycleIdx=0 for(j=0,pocBase=PicOrderCntVal;j <NumEntriesInList[i][RplsIdx[i]];j++){ if(!lt_ref_pic_flag[i][RplsIdx[i]][j]){ RefPicPocList[i][j]=pocBase-delta_poc_st[i][RplsIdx[i]][j] if(PicOrderCntVal equals RefPicPocList[i][j] and reference picture picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" pocBase=RefPicPocList[i][j] }else{ if(delta_poc_msb_cycle_lt[i][msbCycleIdx] equals 0 && PicOrderCntVal & (MaxPicOrderCntLsb-1) equals poc_lsb_lt[i][RplsIdx[i]][j] (reference picture picA is in DPB) RefPicList[i][j]=picA else if(delta_poc_msb_cycle_lt[i][msbCycleIdx] equals 1&& Reference picture picA whose PicOrderCntVal is equal to (MaxPicOrderCntLsb*(delta_poc_msb_cycle_lt[i][msbCycleIdx]+prevMsbCycle)+poc_lsb_lt[i][RplsIdx[i]][j]) is in DPB) { RefPicList[i][j]=picA prevMsbCycle+=delta_poc_msb_cycle_lt[i][msbCycleIdx] msbCycleIdx++ }else RefPicList[i][j]="No reference pictures" } } }
[0251] For slice header design 2, the reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ if(ref_pic_list_sps_flag[i]) RplsIdx[i]=ref_pic_list_idx[i] else RplsIdx[i]=num_ref_pic_lists_in_sps[i] for(j=0,pocBase=PicOrderCntVal;j <NumEntriesInList[i][RplsIdx[i]];j++){ if(!lt_ref_pic_flag[i][RplsIdx[i]][j]){ RefPicPocList[i][j]=pocBase-delta_poc_st[i][RplsIdx[i]][j] if(PicOrderCntVal equals RefPicPocList[i][j] and reference picture picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" pocBase=RefPicPocList[i][j] }else{ if(delta_poc_msb_cycle_lt[i][j] equals 0 && PicOrderCntVal & (MaxPicOrderCntLsb-1) equals poc_lsb_lt[i][RplsIdx[i]][j] (reference picture picA is in DPB) RefPicList[i][j]=picA else if(delta_poc_msb_cycle_lt[i][j] equals 1&& Reference picture picA whose PicOrderCntVal is equal to (MaxPicOrderCntLsb*delta_poc_msb_cycle_lt[i][j])+poc_lsb_lt[i][RplsIdx[i]][j]) is in the DPB RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures"} } }
[0252] Alternatively, for slice header design 2, the semantics of delta_poc_msb_cycle_lt[listIdx][i] may be expressed as a difference of a difference, such that the reference picture list construction may be updated as follows: The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ if(ref_pic_list_sps_flag[i]) RplsIdx[i]=ref_pic_list_idx[i] else RplsIdx[i]=num_ref_pic_lists_in_sps[i] prevMsbCycle=0 for(j=0,pocBase=PicOrderCntVal;j <NumEntriesInList[i][RplsIdx[i]];j++){ if(!lt_ref_pic_flag[i][RplsIdx[i]][j]){ RefPicPocList[i][j]=pocBase-delta_poc_st[i][RplsIdx[i]][j] if(PicOrderCntVal equals RefPicPocList[i][j] and reference picture picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" pocBase=RefPicPocList[i][j] }else{ if(delta_poc_msb_cycle_lt[i][j] equals 0 && PicOrderCntVal & (MaxPicOrderCntLsb-1) equals poc_lsb_lt[i][RplsIdx[i]][j] (reference picture picA is in DPB) RefPicList[i][j]=picA else if(delta_poc_msb_cycle_lt[i][msbCycleIdx] equals 1&& Reference picture picA whose PicOrderCntVal is equal to (MaxPicOrderCntLsb*(delta_poc_msb_cycle_lt[i][j]+ prevMsbCycle)+poc_lsb_lt[i][RplsIdx[i]][j]) is in DPB) { RefPicList[i][j]=picA prevMsbCycle+=delta_poc_msb_cycle_lt[i][j] }else RefPicList[i][j]="No reference pictures" } } }
[0253] It is a bitstream conformance requirement that the following constraints apply: For each i equal to 0 or 1, NumEntriesInList[i][RplsIdx[i]] shall not be less than NumRefIdxActive[i]. The picture referenced by each active entry in RefPicList[0] or RefPicList[1] shall be present in the DPB and shall have a TemporalId less than or equal to the current picture. Optionally, the following constraint may be further specified: The entry index of any inactive entry in RefPicList[0] or RefPicList[1] shall not be used as a reference index for decoding the current picture. Optionally, the following constraint may be further specified: An inactive entry in RefPicList[0] or RefPicList[1] shall not reference the same picture as any other entry in RefPicList[0] or RefPicList[1]. An STRP entry in RefPicList[0] or RefPicList[1] of a slice of a picture and an LTRP entry in RefPicList[0] or RefPicList[1] of the same slice or a different slice of the same picture shall not reference the same picture. The current picture itself shall not be referenced by any entry in RefPicList[0] or RefPicList[1]. There shall be no LTRP entries in RefPicList[0] or RefPicList[1] where the difference between the PicOrderCntVal of the current picture and the PicOrderCntVal of the picture referenced by the entry is 224 or more. Let setOfRefPics be the set of unique pictures referenced by all entries in RefPicList[0] and all entries in RefPicList[1]. The number of pictures in setOfRefPics shall be less than or equal to sps_max_dec_pic_buffering_minus1, and setOfRefPics shall be the same for all slices of a picture.
[0254] Each STRP is identified by its PicOrderCntVal value. For each LTRP, if the LTRP is referenced by an entry in RefPicList[0] or RefPicList[1] with delta_poc_msb_present_flag[i][j] equal to 1, it is identified by its PicOrderCnVal value; otherwise, it is identified by the Log2(MaxPicOrderCntLsb) LSBs of its PicOrderCntVal value.
[0255] Alternative 2 for signaling delta POC MSB for long-term reference picture entry
[0256] In one alternative embodiment of the present disclosure, the disclosure described in the first embodiment or the second embodiment may be combined with the embodiments described above, which are respectively named “Signaling of Delta POC MSB for Long-Term Reference Picture Entry” and “Alternative 1 of Signaling of Delta POC MSB for Long-Term Reference Picture Entry.” The aspects of the present disclosure to be combined are the signaling of additional_lt_poc_lsb (i.e., from the first embodiment or the second embodiment) and POC MSB cycle information (i.e., from the embodiment described above and named “Signaling of Delta POC MSB for Long-Term Reference Picture Entry” or “Alternative 1 of Signaling of Delta POC MSB for Long-Term Reference Picture Entry”). An example of how this combination, i.e., the combination of the first embodiment and the embodiment described above and named “Alternative 1 of Signaling of Delta POC MSB for Long-Term Reference Picture Entry,” may be performed is described as follows.
[0257] [Table 26]
[0258] delta_poc_msb_present_flag[i][j] equal to 1 specifies that delta_poc_msb_cycle_lt[i][j] is present. delta_poc_msb_present_flag[i][i] equal to 0 specifies that delta_poc_msb_cycle_lt[i][j] is not present. When NumLtrpEntries[i] is greater than 0, and for the j-th LTRP entry in the ref_pic_list_struct(i,rplsIdx,1) syntax structure, there are more than one reference pictures in the DPB with PicOrderCntVal modulo MaxPicOrderLtCntLsb equal to poc_lsb_lt[i][rplsIdx][jj] when this slice header is decoded, where jj is the entry index of the entry in the ref_pic_list_struct(i,rplsIdx,1) syntax structure that is the j-th LTRP entry in the ref_pic_list_struct(i,rplsIdx,1) syntax structure, then delta_poc_msb_present_flag[i][j] shall be equal to 1. If not present, the value of delta_poc_msb_cycle_lt[i][j] is inferred to be equal to 0. delta_poc_msb_cycle_lt[i][j] is used to determine the value of the most significant bit of the picture order count value of the jth LTRP entry in the ref_pic_list_struct(i,rplsIdx,1) syntax structure. When delta_poc_msb_cycle_lt[i][j] is not present, it is inferred to be equal to 0.
[0259] Modifications to the decoding process for picture order counting:
[0260] The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ if(ref_pic_list_sps_flag[i]) RplsIdx[i]=ref_pic_list_idx[i] else RplsIdx[i]=num_ref_pic_lists_in_sps[i] msbCycleIdx=0 for(j=0,pocBase=PicOrderCntVal;j <NumEntriesInList[i][RplsIdx[i]];j++){ if(!lt_ref_pic_flag[i][RplsIdx[i]][j]){ RefPicPocList[i][j]=pocBase-delta_poc_st[i][RplsIdx[i]][j] if(PicOrderCntVal equals RefPicPocList[i][j] and reference picture picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" pocBase=RefPicPocList[i][j] }else{ if(delta_poc_msb_cycle_lt[i][msbCycleIdx] equals 0 && PicOrderCntVal & (MaxLtPicOrderCntLsb-1) equals poc_lsb_lt[i][RplsIdx[i]][j] (reference picture picA is in DPB) RefPicList[i][j]=picA else if(delta_poc_msb_cycle_lt[i][msbCycleIdx] equals 1&& Reference picture picA whose PicOrderCntVal is equal to (MaxLtPicOrderCntLsb*delta_poc_msb_cycle_lt[i][msbCycleIdx])+poc_lsb_lt[i][RplsIdx[i]][j]) is in DPB) { RefPicList[i][j]=picA msbCycleIdx++ }else RefPicList[i][j]="No reference pictures" } } }
[0261] Alternatively, the semantics of delta_poc_msb_cycle_lt[listIdx][i] may be expressed as a difference of differences so that the reference picture list construction may be updated as follows: The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ if(ref_pic_list_sps_flag[i]) RplsIdx[i]=ref_pic_list_idx[i] else RplsIdx[i]=num_ref_pic_lists_in_sps[i] prevMsbCycle=0 msbCycleIdx=0 for(j=0,pocBase=PicOrderCntVal;j <NumEntriesInList[i][RplsIdx[i]];j++){ if(!lt_ref_pic_flag[i][RplsIdx[i]][j]){ RefPicPocList[i][j]=pocBase-delta_poc_st[i][RplsIdx[i]][j] if(PicOrderCntVal equals RefPicPocList[i][j] and reference picture picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" pocBase=RefPicPocList[i][j] }else{ if(delta_poc_msb_cycle_lt[i][msbCycleIdx] equals 0 && PicOrderCntVal & (MaxLtPicOrderCntLsb-1) equals poc_lsb_lt[i][RplsIdx[i]][j] (reference picture picA is in DPB) RefPicList[i][j]=picA else if(delta_poc_msb_cycle_lt[i][msbCycleIdx] equals 1&& Reference picture picA whose PicOrderCntVal is equal to (MaxLtPicOrderCntLsb*(delta_poc_msb_cycle_lt[i][msbCycleIdx]+prevMsbCycle)+poc_lsb_lt[i][RplsIdx[i]][j]) is in DPB) { RefPicList[i][j]=picA prevMsbCycle+=delta_poc_msb_cycle_lt[i][msbCycleIdx] msbCycleIdx++ }else RefPicList[i][j]="No reference pictures" } } }
[0262] It is a bitstream conformance requirement that the following constraints apply: For each i equal to 0 or 1, NumEntriesInList[i][RplsIdx[i]] shall not be less than NumRefIdxActive[i]. The picture referenced by each active entry in RefPicList[0] or RefPicList[1] shall be present in the DPB and shall have a TemporalId less than or equal to the current picture. Optionally, the following constraint may be further specified: The entry index of any inactive entry in RefPicList[0] or RefPicList[1] shall not be used as a reference index for decoding the current picture. Optionally, the following constraint may be further specified: An inactive entry in RefPicList[0] or RefPicList[1] shall not reference the same picture as any other entry in RefPicList[0] or RefPicList[1]. An STRP entry in RefPicList[0] or RefPicList[1] of a slice of a picture and an LTRP entry in RefPicList[0] or RefPicList[1] of the same slice or a different slice of the same picture shall not reference the same picture. The current picture itself shall not be referenced by any entry in RefPicList[0] or RefPicList[1]. There shall be no LTRP entries in RefPicList[0] or RefPicList[1] where the difference between the PicOrderCntVal of the current picture and the PicOrderCntVal of the picture referenced by the entry is 224 or more. Let setOfRefPics be the set of unique pictures referenced by all entries in RefPicList[0] and all entries in RefPicList[1]. The number of pictures in setOfRefPics shall be less than or equal to sps_max_dec_pic_buffering_minus1, and setOfRefPics shall be the same for all slices of a picture.
[0263] Each STRP is identified by its PicOrderCntVal value. For each LTRP, if the LTRP is referenced by an entry in RefPicList[0] or RefPicList[1] with delta_poc_msb_present_flag[i][j] equal to 1, it is identified by its PicOrderCntVal value; otherwise, it is identified by the Log2(MaxLtPicOrderCntLsb) LSBs of its PicOrderCntVal value.
[0264] Always signal the reference picture list in the slice header, distinguishing between short-term and long-term reference pictures
[0265] This section describes another alternative embodiment of the present disclosure. This description is for the latest VVC WD (i.e., only the differences with respect to the latest VVC WD of JVET-K1001-v1 are described, but the text of the latest VVC WD not mentioned below applies as is). This alternative embodiment is summarized as follows: The reference picture list structure is signaled only in the slice header. Both short-term and long-term reference pictures are identified by their POC LSBs, and their POC LSBs may be represented by a number of bits different from the number of bits used to represent the POC LSBs signaled in the slice header for deriving the POC value. Furthermore, the number of bits used to represent the POC LSBs for identifying short-term reference pictures and the number of bits used to represent the POC LSBs for identifying long-term reference pictures may be different.
[0266] NAL unit header syntax
[0267] [Table 27]
[0268] Sequence Parameter Set RBSP Syntax
[0269] [Table 28]
[0270] Picture Parameter Set RBSP Syntax
[0271] [Table 29]
[0272] Slice Header Syntax
[0273] [Table 30]
[0274] Reference Picture List Structure Syntax
[0275] [Table 31]
[0276] NAL unit header semantics
[0277] The forbidden_zero_bit shall be equal to 0. The nal_unit_type specifies the type of RBSP data structure contained in the NAL unit.
[0278] [Table 32]
[0279] nuh_temporal_id_plus1 minus 1 specifies the temporal identifier for the NAL unit. The value of nuh_temporal_id_plus1 shall not be equal to 0. The variable TemporalId is specified as follows: TemporalId=nuh_temporal_id_plus1-1.
[0280] When nal_unit_type is equal to IRAP_NUT, the coded slice belongs to an IRAP picture and TemporalId shall be equal to 0. The value of TemporalId shall be the same for all VCL NAL units of an access unit. The value of TemporalId of a coded picture or access unit is the value of TemporalId of the VCL NAL units of the coded picture or access unit. The value of TemporalId for non-VCL NAL units is constrained as follows: If nal_unit_type is equal to SPS_NUT, TemporalId shall be equal to 0 and the TemporalId of the access unit containing the NAL unit shall be equal to 0. Otherwise, if nal_unit_type is equal to EOS_NUT or EOB_NUT, TemporalId shall be equal to 0. Otherwise, TemporalId shall be greater than or equal to the TemporalId of the access unit containing the NAL unit. When the NAL unit is a non-VCL NAL unit, the value of TemporalId is equal to the minimum of the TemporalId values of all access units to which the non-VCL NAL unit applies. When nal_unit_type is equal to PPS_NUT, TemporalId may be greater than or equal to the TemporalId of the containing access unit, because all picture parameter sets (PPS) may be included first in the bitstream, and the first coded picture has a TemporalId equal to 0. When nal_unit_type is equal to PREFIX_SEI_NUT or SUFFIX_SEI_NUT, TemporalId may be greater than or equal to the TemporalId of the containing access unit, because a supplemental enhancement information (SEI) NAL unit may contain information that applies to a bitstream subset that includes access units with a TemporalId value greater than the TemporalId of the access unit containing the SEI NAL unit. nuh_reserved_zero_7bits shall be equal to '0000000'.Other values of nuh_reserved_zero_7bits may be specified in the future by ITU-T|ISO / IEC. Decoders shall ignore (i.e., remove from the bitstream and discard) NAL units with a value of nuh_reserved_zero_7bits that is not equal to "0000000".
[0281] Sequence Parameter Set RBSP Semantics
[0282] log2_max_pic_order_cnt_lsb_minus4 specifies the value of the variable MaxPicOrderCntLsb used in the decoding process for picture order counting as follows: MaxPicOrderCntLsb=2 (log2_max_pic_order_cnt_lsb_minus4+4)
[0283] The value of log2_max_pic_order_cnt_lsb_minus4 shall be in the range of 0 to 12, inclusive. sps_max_dec_pic_buffering_minus1 plus 1 specifies the maximum required size of the decoded picture buffer for CVS, in units of picture storage buffer. The value of sps_max_dec_pic_buffering_minus1 shall be in the range of 0 to MaxDpbSize-1, inclusive, where MaxDpbSize is as specified elsewhere. additional_st_poc_lsb specifies the value of the variable MaxStPicOrderCntLsb used in the decoding process for reference picture lists, as follows: MaxStPicOrderCntLsb=2 (log2_max_pic_order_cnt_lsb_minus4+4+additional_st_poc_lsb)
[0284] The value of additional_st_poc_lsb shall be in the range of 0 to 32-log2_max_pic_order_cnt_lsb_minus4-4, inclusive. long_term_ref_pics_flag equal to 0 specifies that the LTRP is not used for inter prediction of any coded pictures in the CVS. long_term_ref_pics_flag equal to 1 specifies that the LTRP may be used for inter prediction of one or more coded pictures in the CVS. additional_lt_poc_lsb specifies the value of the variable MaxLtPicOrderCntLsb used in the decoding process for the reference picture list, as follows: MaxLtPicOrderCntLsb=2 (log2_max_pic_order_cnt_lsb_minus4+4+additional_st_poc_lsb+additional_lt_poc_lsb) The value of additional_lt_poc_lsb shall be in the range 0 to 32-log2_max_pic_order_cnt_lsb_minus4-4-additional_st_poc_lsb, inclusive. When not present, the value of additional_lt_poc_lsb is inferred to be equal to 0.
[0285] Picture Parameter Set RBSP Semantics
[0286] num_ref_idx_default_active_minus1[i] plus one specifies the inferred value of the variable NumRefIdxActive[0] for P or B slices with num_ref_idx_active_override_flag equal to 0 when i is equal to 0, and specifies the inferred value of NumRefIdxActive[1] for B slices with num_ref_idx_active_override_flag equal to 0 when i is equal to 1. The value of num_ref_idx_default_active_minus1[i] shall be in the range 0 to 14, inclusive.
[0287] Slice Header Semantics
[0288] When present, the value of each of the slice header syntax elements slice_pic_parameter_set_id and slice_pic_order_cnt_lsb shall be the same in all slice headers of a coded picture. slice_type specifies the coding type of the slice according to Table 7-3.
[0289] [Table 33]
[0290] When nal_unit_type is equal to IRAP_NUT, i.e., the picture is an IRAP picture, slice_type shall be equal to 2.
[0291] slice_pic_order_cnt_lsb specifies the picture order count modulo MaxPicOrderCntLsb for the current picture. The length of the slice_pic_order_cnt_lsb syntax element is log2_max_pic_order_cnt_lsb_minus4 + 4 bits. The value of slice_pic_order_cnt_lsb shall be in the range from 0 to MaxPicOrderCntLsb-1, inclusive. When slice_pic_order_cnt_lsb is not present, slice_pic_order_cnt_lsb is inferred to be equal to 0. num_ref_idx_active_override_flag equal to 1 specifies that the syntax element num_ref_idx_active_minus1[0] is present for P and B slices, and that the syntax element num_ref_idx_active_minus1[1] is present for B slices. num_ref_idx_active_override_flag equal to 0 specifies that the syntax elements num_ref_idx_active_minus1[0] and num_ref_idx_active_minus1[1] are not present. num_ref_idx_active_minus1[i], when present, specifies the value of the variable NumRefIdxActive[i] as follows: NumRefIdxActive[i]=num_ref_idx_active_minus1[i]+1
[0292] The value of num_ref_idx_active_minus1[i] shall be in the range of 0 to 14, inclusive. The value of NumRefIdxActive[i]-1 specifies the maximum reference index for reference picture list i that may be used to decode the slice. When the value of NumRefIdxActive[i] is equal to 0, no reference index for reference picture list i may be used to decode the slice. For i equal to 0 or 1, when the current slice is a B slice and num_ref_idx_active_override_flag is equal to 0, NumRefIdxActive[i] is inferred to be equal to num_ref_idx_default_active_minus1[i]+1. When the current slice is a P slice and num_ref_idx_active_override_flag is equal to 0, NumRefIdxActive[0] is inferred to be equal to num_ref_idx_default_active_minus1[0]+1. When the current slice is a P slice, NumRefIdxActive[1] is inferred to be equal to 0. When the current slice is an I slice, both NumRefIdxActive[0] and NumRefIdxActive[1] are inferred to be equal to 0. Alternatively, for i equal to 0 or 1, after the above the following applies: rplsIdx1 shall be set equal to ref_pic_list_sps_flag[i]?ref_pic_list_idx[i]:num_ref_pic_lists_in_sps[i], and numRpEntries[i] shall be equal to num_strp_entries[i][rplsIdx1] + num_ltrp_entries[i][rplsIdx1]. When NumRefIdxActive[i] is greater than numRpEntries[i], the value of NumRefIdxActive[i] is set equal to numRpEntries[i].
[0293] Reference Picture List Structure Semantics
[0294] The ref_pic_list_struct(listIdx,ltrpFlag) syntax structure may be present in a slice header. When present in a slice header, the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure specifies the reference picture list listIdx of the current picture (the picture containing the slice). num_strp_entries[listIdx] specifies the number of STRP entries in the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure. num_ltrp_entries[listIdx] specifies the number of LTRP entries in the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure. When not present, the value of num_ltrp_entries[listIdx] is inferred to be equal to 0. The variable NumEntriesInList[listIdx] is derived as follows: NumEntriesInList[listIdx]=num_strp_entries[listIdx]+num_ltrp_entries[listIdx]
[0295] The value of NumEntriesInList[listIdx] shall be in the range of 0 to sps_max_dec_pic_buffering_minus1, inclusive. lt_ref_pic_flag[listIdx][i] equal to 1 specifies that the i-th entry in the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure is an LTRP entry. lt_ref_pic_flag[listIdx][i] equal to 0 specifies that the i-th entry in the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure is an STRP entry. When not present, the value of lt_ref_pic_flag[listIdx][i] is inferred to be equal to 0. It is a bitstream conformance requirement that the sum of lt_ref_pic_flag[listIdx][i] for all values of i in the range from 0 to NumEntriesInList[listIdx]-1, inclusive, is equal to num_ltrp_entries[listIdx]. poc_lsb_st[listIdx][i] specifies the value of the picture order count modulo MaxStPicOrderCntLsb for the picture referenced by the i-th entry in the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure when lt_ref_pic_flag[listIdx][i] is equal to 0. The length of the poc_lsb_st[listIdx][i] syntax element is Log2(MaxStPicOrderCntLsb) bits. poc_lsb_lt[listIdx][i] specifies the value of the picture order count modulo MaxLtPicOrderCntLsb of the picture referenced by the i-th entry in the ref_pic_list_struct(listIdx,ltrpFlag) syntax structure when lt_ref_pic_flag[listIdx][i] is equal to 1. The length of the poc_lsb_lt[listIdx][i] syntax element is Log2(MaxLtPicOrderCntLsb) bits.
[0296] The decoding process is discussed.
[0297] General Decryption Process
[0298] For the current picture, CurrPic, the decoding process operates as follows: NAL unit decoding is specified below. The following process, using the syntax elements in the slice header layer and above, specifies the next decoding process: Variables and functions for picture order count are derived. This needs to be called for only the first slice of a picture. At the beginning of the decoding process for each slice of a non-IRAP picture, the decoding process for reference picture list construction is called to derive reference picture list 0 (RefPicList[0]) and reference picture list 1 (RefPicList[1]). The decoding process for reference picture marking is called, and reference pictures can be marked as "not used for reference" or "used for long-term reference". This needs to be called for only the first slice of a picture. The decoding processes for coding tree units, scaling, transform, in-loop filtering, etc. are called. After all slices of the current picture have been decoded, the currently decoded picture is marked as "used for short-term reference".
[0299] NAL unit decoding process
[0300] The input to this process is the NAL units of the current picture and their associated non-VCL NAL units. The output of this process is the parsed RBSP syntax structure that is encapsulated within the NAL units. The decoding process for each NAL unit extracts the RBSP syntax structure from the NAL unit and then parses the RBSP syntax structure.
[0301] Slice Decoding Process
[0302] Decoding Process for Picture Order Counting
[0303] The output of this process is PicOrderCntVal, the picture order count of the current picture. The picture order count is used to identify pictures for motion parameter derivation and motion vector prediction in merge mode, as well as for decoder conformance checking. Each coded picture is associated with a picture order count variable, denoted PicOrderCntVal. When the current picture is not an IRAP picture, the variables prevPicOrderCntLsb and prevPicOrderCntMsb are derived as follows: Let prevTid0Pic be the previous picture in decoding order with TemporalId equal to 0. The variable prevPicOrderCntLsb is set equal to slice_pic_order_cnt_lsb of prevTid0Pic. The variable prevPicOrderCntMsb is set equal to PicOrderCntMsb of prevTid0Pic. The variable PicOrderCntMsb of the current picture is derived as follows: If the current picture is an IRAP picture, PicOrderCntMsb is set equal to 0. Otherwise, PicOrderCntMsb is derived as follows: if((slice_pic_order_cnt_lsb <prevPicOrderCntLsb)&& ((prevPicOrderCntLsb-slice_pic_order_cnt_lsb)>=(MaxPicOrderCntLsb / 2))) PicOrderCntMsb=prevPicOrderCntMsb+MaxPicOrderCntLsb else if((slice_pic_order_cnt_lsb>prevPicOrderCntLsb)&& ((slice_pic_order_cnt_lsb-prevPicOrderCntLsb)>(MaxPicOrderCntLsb / 2))) PicOrderCntMsb=prevPicOrderCntMsb-MaxPicOrderCntLsb else PicOrderCntMsb=prevPicOrderCntMsb
[0304] PicOrderCntVal is derived as follows: PicOrderCntVal=PicOrderCntMsb+slice_pic_order_cnt_lsb
[0305] All IRAP pictures have PicOrderCntVal equal to 0, since slice_pic_order_cnt_lsb is inferred to be equal to 0 for IRAP pictures, and prevPicOrderCntLsb and prevPicOrderCntMsb are both set equal to 0. The value of PicOrderCntVal shall be in the range of -231 to 231-1, inclusive. In one CVS, the PicOrderCntVal values for any two coded pictures shall not be the same. At any instant during the decoding process, the values of PicOrderCntVal&(MaxStPicOrderCntLsb-1) for any two short-term reference pictures in the DPB shall not be the same. At any instant during the decoding process, the values of PicOrderCntVal&(MaxLtPicOrderCntLsb-1) for any two reference pictures in the DPB shall not be the same.
[0306] The function PicOrderCnt(picX) is defined as follows: PicOrderCnt(picX) = PicOrderCntVal of picture picX
[0307] The function DiffPicOrderCnt(picA,picB) is defined as follows: DiffPicOrderCnt(picA,piB)=PicOrderCnt(picA)-PicOrderCnt(picB)
[0308] The bit stream is -2, including both ends. 15 From 2 15 It shall not include data that would result in a value of DiffPicOrderCnt(picA,picB) used in the decoding process that is not in the range of -1. Let X be the current picture, and Y and Z be two other pictures in the same CVS, then Y and Z are considered to be in the same output order direction from X if DiffPicOrderCnt(X,Y) and DiffPicOrderCnt(X,Z) are both positive or both negative.
[0309] Decoding process for reference picture list construction
[0310] This process is invoked at the beginning of the decoding process for each slice of a non-IRAP picture. Reference pictures are addressed through reference indices, which are indices into the reference picture list. When decoding an I-slice, no reference picture list is used in decoding the slice data. When decoding a P-slice, only reference picture list 0 (i.e., RefPicList[0]) is used in decoding the slice data. When decoding a B-slice, both reference picture list 0 and reference picture list 1 (i.e., RefPicList[1]) are used in decoding the slice data. At the beginning of the decoding process for each slice of a non-IRAP picture, the reference picture lists RefPicList[0] and RefPicList[1] are derived. The reference picture lists are used in marking reference pictures or decoding slice data. For I-slices of non-IRAP pictures that are not the first slice of a picture, RefPicList[0] and RefPicList[1] may be derived for the purpose of bitstream conformance checking, but their derivation is not required for decoding the current picture or pictures that follow the current picture in decoding order. For P-slices that are not the first slice of a picture, RefPicList[1] may be derived for the purpose of bitstream conformance checking, but its derivation is not required for decoding the current picture or pictures that follow the current picture in decoding order.
[0311] The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ for(j=0;j <NumEntriesInList[i];j++){ if(lt_ref_pic_flag[i][j]){ if(PicOrderCntVal&(MaxLtPicOrderCntLsb-1) equals poc_lsb_lt[i][j] reference picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" } } } for(i=0;i<2;i++){ for(j=0;j <NumEntriesInList[i];j++){ if(!lt_ref_pic_flag[i][j]){ if(PicOrderCntVal&(MaxStPicOrderCntLsb-1) equals poc_lsb_st[i][j] Short-term reference picture picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" } } }
[0312] For each i equal to 0 or 1, the following holds:
[0313] The first NumRefIdxActive[i] entry in RefPicList[i] is called the active entry in RefPicList[i], and the other entries in RefPicList[i] are called inactive entries in RefPicList[i]. Each entry in RefPicList[i][j], for j in the range 0 to NumEntriesInList[i]-1, inclusive, is called an STRP entry if lt_ref_pic_flag[i][j] equals 0, and an LTRP entry otherwise. A particular picture may be referenced by both an entry in RefPicList[0] and an entry in RefPicList[1]. A particular picture may also be referenced by more than one entry in RefPicList[0] or more than one entry in RefPicList[1]. The active entries in RefPicList[0] and the active entries in RefPicList[1] collectively refer to all reference pictures that can be used for inter-prediction of the current picture and one or more pictures that follow the current picture in decoding order. The inactive entries in RefPicList[0] and the inactive entries in RefPicList[1] collectively refer to all reference pictures that are not used for inter-prediction of the current picture but can be used in inter-prediction for one or more pictures that follow the current picture in decoding order. One or more entries equal to "No Reference Picture" may not be present in RefPicList[0] or RefPicList[1] because no corresponding picture exists in the DPB. Each inactive entry in RefPicList[0] or RefPicList[0] equal to "No Reference Picture" should be ignored. For each active entry in RefPicList[0] or RefPicList[1] equal to "No Reference Picture", an unintentional picture loss should be inferred.
[0314] It is a bitstream conformance requirement that the following constraints apply: For each i equal to 0 or 1, NumEntriesInList[i] shall not be less than NumRefIdxActive[i]. The picture referenced by each active entry in RefPicList[0] or RefPicList[1] shall be present in the DPB and shall have a TemporalId less than or equal to the current picture. Optionally, the following constraints may be further specified: The entry index of an inactive entry in RefPicList[0] or RefPicList[1] shall not be used as a reference index for decoding the current picture. Optionally, the following constraints may be further specified: An inactive entry in RefPicList[0] or RefPicList[1] shall not reference the same picture as any other entry in RefPicList[0] or RefPicList[1]. An STRP entry in RefPicList[0] or RefPicList[1] of a slice of a picture and an LTRP entry in RefPicList[0] or RefPicList[1] of the same slice or a different slice of the same picture shall not reference the same picture. The current picture itself shall not be referenced by any entry in RefPicList[0] or RefPicList[1]. There shall be no LTRP entries in RefPicList[0] or RefPicList[1] where the difference between the PicOrderCntVal of the current picture and the PicOrderCntVal of the picture referenced by the entry is 224 or more. Let setOfRefPics be the set of unique pictures referenced by all entries in RefPicList[0] and all entries in RefPicList[1]. The number of pictures in setOfRefPics shall be less than or equal to sps_max_dec_pic_buffering_minus1, and setOfRefPics shall be the same for all slices of a picture.
[0315] Decoding Process for Reference Picture Marking
[0316] This process is invoked once per picture after the decoding of the slice header and the decoding process for building the reference picture list for the slice, but before the decoding of the slice data. This process can cause one or more reference pictures in the DPB to be marked as "not used for reference" or "used for long-term reference." A decoded picture in the DPB may be marked as "not used for reference," "used for short-term reference," or "used for long-term reference," but only one of these three, at any given moment during the operation of the decoding process. Assigning one of these markings to a picture implicitly excludes another of these markings when applicable. When a picture is referred to as being marked "used for reference," this collectively refers to the picture being marked as "used for short-term reference" or "used for long-term reference" (but not both). When the current picture is an IRAP picture, all reference pictures (if any) currently in the DPB are marked as "not used for reference." STRPs are identified by the Log2(MaxStPicOrderCntLsb) LSBs of their PicOrderCntVal values, and LTRPs are identified by the Log2(MaxLtPicOrderCntLsb) LSBs of their PicOrderCntVal values.
[0317] The following applies: For each LTRP entry in RefPicList[0] or RefPicList[1], if the referenced picture is a STRP, the picture is marked as "used for long-term reference." Each reference picture in the DPB that is not referenced by any entry in RefPicList[0] or RefPicList[1] is marked as "not used for reference."
[0318] Always signaling the reference picture list in the slice header without distinguishing between short-term and long-term reference pictures
[0319] This section describes another alternative embodiment of the present disclosure. This description is for the latest VVC WD (i.e., only the differences for the latest VVC WD of JVET-K1001-v1 are described, but the text of the latest VVC WD not mentioned below applies as is). This alternative embodiment is summarized as follows: The reference picture list structure is signaled only in the slice header. No distinction is made between short-term and long-term reference pictures. All reference pictures are simply named reference pictures. Reference pictures are identified by their POC LSBs, which may be represented by a number of bits different from the number of bits used to represent the POC LSBs signaled in the slice header for deriving the POC value.
[0320] Abbreviations. The text of section 4 of the VVC WD applies.
[0321] NAL unit header syntax
[0322] [Table 34]
[0323] Sequence Parameter Set RBSP Syntax
[0324] [Table 35]
[0325] Picture Parameter Set RBSP Syntax
[0326] [Table 36]
[0327] Slice Header Syntax
[0328] [Table 37]
[0329] Reference Picture List Structure Syntax
[0330] [Table 38]
[0331] NAL unit header semantics
[0332] forbidden_zero_bit shall be equal to 0. nal_unit_type specifies the type of RBSP data structure contained in the NAL unit.
[0333] [Table 39]
[0334] nuh_temporal_id_plus1 minus 1 specifies the temporal identifier for the NAL unit. The value of nuh_temporal_id_plus1 shall not be equal to 0. The variable TemporalId is specified as follows: TemporalId=nuh_temporal_id_plus1-1
[0335] When nal_unit_type is equal to IRAP_NUT, the coded slice belongs to an IRAP picture and TemporalId shall be equal to 0. The value of TemporalId shall be the same for all VCL NAL units of an access unit. The value of TemporalId of a coded picture or access unit is the value of TemporalId of the VCL NAL units of the coded picture or access unit. The value of TemporalId for non-VCL NAL units is constrained as follows:
[0336] If nal_unit_type is equal to SPS_NUT, then TemporalId shall be equal to 0, and the TemporalId of the access unit containing the NAL unit shall be equal to 0. Otherwise, if nal_unit_type is equal to EOS_NUT or EOB_NUT, then TemporalId shall be equal to 0. Otherwise, TemporalId shall be greater than or equal to the TemporalId of the access unit containing the NAL unit. When the NAL unit is a non-VCL NAL unit, the value of TemporalId is equal to the minimum of the TemporalId values of all access units to which the non-VCL NAL unit applies. When nal_unit_type is equal to PPS_NUT, then TemporalId may be greater than or equal to the TemporalId of the containing access unit, since all picture parameter sets (PPS) may be included at the beginning of the bitstream, and the first coded picture has TemporalId equal to 0. When nal_unit_type is equal to PREFIX_SEI_NUT or SUFFIX_SEI_NUT, TemporalId may be greater than or equal to the TemporalId of the containing access unit, because the SEI NAL unit may contain information that applies to bitstream subsets that include access units with TemporalId values greater than the TemporalId of the access unit that contains the SEI NAL unit. nuh_reserved_zero_7bits shall be equal to '0000000'. Other values of nuh_reserved_zero_7bits may be specified in the future by ITU-T|ISO / IEC. Decoders shall ignore (i.e., remove from the bitstream and discard) NAL units with a value of nuh_reserved_zero_7bits not equal to '0000000'.
[0337] Sequence Parameter Set RBSP Semantics
[0338] log2_max_pic_order_cnt_lsb_minus4 specifies the value of the variable MaxPicOrderCntLsb used in the decoding process for picture order counting as follows: MaxPicOrderCntLsb=2 (log2_max_pic_order_cnt_lsb_minus4+4)
[0339] The value of log2_max_pic_order_cnt_lsb_minus4 shall be in the range of 0 to 12, inclusive. sps_max_dec_pic_buffering_minus1 plus 1 specifies the maximum required size of the decoded picture buffer for CVS, in units of picture storage buffer. The value of sps_max_dec_pic_buffering_minus1 shall be in the range of 0 to MaxDpbSize-1, inclusive, where MaxDpbSize is as specified elsewhere. additional_ref_poc_lsb specifies the value of the variable MaxRefPicOrderCntLsb used in the decoding process for reference picture lists, as follows: MaxRefPicOrderCntLsb=2 (log2_max_pic_order_cnt_lsb_minus4+4+additional_ref_poc_lsb)
[0340] The value of additional_ref_poc_lsb shall be in the range 0 to 32-log2_max_pic_order_cnt_lsb_minus4-4, inclusive.
[0341] Picture Parameter Set RBSP Semantics
[0342] num_ref_idx_default_active_minus1[i] plus one specifies the inferred value of the variable NumRefIdxActive[0] for P or B slices with num_ref_idx_active_override_flag equal to 0 when i is equal to 0, and specifies the inferred value of NumRefIdxActive[1] for B slices with num_ref_idx_active_override_flag equal to 0 when i is equal to 1. The value of num_ref_idx_default_active_minus1[i] shall be in the range 0 to 14, inclusive.
[0343] Slice Header Semantics
[0344] When present, the value of each of the slice header syntax elements slice_pic_parameter_set_id and slice_pic_order_cnt_lsb shall be the same in all slice headers of a coded picture. slice_type specifies the coding type of the slice according to Table 7-3.
[0345] [Table 40]
[0346] When nal_unit_type is equal to IRAP_NUT, i.e., the picture is an IRAP picture, slice_type shall be equal to 2. slice_pic_order_cnt_lsb specifies the picture order count modulo MaxPicOrderCntLsb for the current picture. The length of the slice_pic_order_cnt_lsb syntax element is log2_max_pic_order_cnt_lsb_minus4 + 4 bits. The value of slice_pic_order_cnt_lsb shall be in the range from 0 to MaxPicOrderCntLsb-1, inclusive. When slice_pic_order_cnt_lsb is not present, slice_pic_order_cnt_lsb is inferred to be equal to 0. num_ref_idx_active_override_flag equal to 1 specifies that the syntax element num_ref_idx_active_minus1[0] is present for P and B slices, and that the syntax element num_ref_idx_active_minus1[1] is present for B slices. num_ref_idx_active_override_flag equal to 0 specifies that the syntax elements num_ref_idx_active_minus1[0] and num_ref_idx_active_minus1[1] are not present. num_ref_idx_active_minus1[i], when present, specifies the value of the variable NumRefIdxActive[i] as follows: NumRefIdxActive[i]=num_ref_idx_active_minus1[i]+1
[0347] The value of num_ref_idx_active_minus1[i] shall be in the range of 0 to 14, inclusive. The value of NumRefIdxActive[i]-1 specifies the maximum reference index for reference picture list i that may be used to decode the slice. When the value of NumRefIdxActive[i] is equal to 0, no reference index for reference picture list i may be used to decode the slice. For i equal to 0 or 1, when the current slice is a B slice and num_ref_idx_active_override_flag is equal to 0, NumRefIdxActive[i] is inferred to be equal to num_ref_idx_default_active_minus1[i]+1. When the current slice is a P slice and num_ref_idx_active_override_flag is equal to 0, NumRefIdxActive[0] is inferred to be equal to num_ref_idx_default_active_minus1[0]+1. When the current slice is a P slice, NumRefIdxActive[i] is inferred to be equal to 0. When the current slice is an I slice, both NumRefIdxActive[0] and NumRefIdxActive[1] are inferred to be equal to 0. Alternatively, for i equal to 0 or 1, after the above the following applies: rplsIdx1 shall be set equal to ref_pic_list_sps_flag[i]?ref_pic_list_idx[i]:num_ref_pic_lists_in_sps[i], and numRpEntries[i] shall be equal to num_strp_entries[i][rplsIdx1] + num_ltrp_entries[i][rplsIdx1]. When NumRefIdxActive[i] is greater than numRpEntries[i], the value of NumRefIdxActive[i] is set equal to numRpEntries[i].
[0348] Reference Picture List Structure Semantics
[0349] The ref_pic_list_struct(listIdx) syntax structure may be present in a slice header. When present in a slice header, the ref_pic_list_struct(listIdx) syntax structure specifies the reference picture list listIdx of the current picture (the picture that contains the slice). num_ref_entries[listIdx] specifies the number of entries in the ref_pic_list_struct(listIdx) syntax structure. The variable NumEntriesInList[listIdx] is derived as follows: NumRefEntriesInRpl[listIdx]=num_ref_entries[listIdx]
[0350] The value of NumRefPicEntries[listIdx] shall be in the range 0 to sps_max_dec_pic_buffering_minus1, inclusive. poc_ref_lsb[listIdx][i] specifies the value of the picture order count modulo MaxRefPicOrderCntLsb for the picture referenced by the i-th entry in the ref_pic_list_struct(listIdx) syntax structure. The length of the poc_ref_lsb[listIdx][i] syntax element is Log2(MaxRefPicOrderCntLsb) bits.
[0351] The decoding process is discussed.
[0352] General Decryption Process
[0353] For the current picture, CurrPic, the decoding process operates as follows: The decoding of NAL units is specified below. The following process, using the syntax elements in the slice header layer and above, specifies the next decoding process: Variables and functions for the picture order count are derived. This needs to be called for only the first slice of a picture. At the beginning of the decoding process for each slice of a non-IRAP picture, the decoding process for reference picture list construction is called to derive reference picture list 0 (RefPicList[0]) and reference picture list 1 (RefPicList[1]). The decoding process for reference picture marking is called, and reference pictures may be marked as "not used for reference". This needs to be called for only the first slice of a picture. The decoding processes for coding tree units, scaling, transform, in-loop filtering, etc. are called. After all slices of the current picture have been decoded, the currently decoded picture is marked as "used for reference".
[0354] NAL unit decoding process
[0355] The input to this process is the NAL units of the current picture and their associated non-VCL NAL units. The output of this process is the parsed RBSP syntax structure that is encapsulated within the NAL units. The decoding process for each NAL unit extracts the RBSP syntax structure from the NAL unit and then parses the RBSP syntax structure.
[0356] Slice Decoding Process
[0357] Decoding Process for Picture Order Counting
[0358] The output of this process is PicOrderCntVal, the picture order count of the current picture. The picture order count is used to identify pictures for motion parameter derivation and motion vector prediction in merge mode, as well as for decoder conformance checking. Each coded picture is associated with a picture order count variable, denoted PicOrderCntVal. When the current picture is not an IRAP picture, the variables prevPicOrderCntLsb and prevPicOrderCntMsb are derived as follows: Let prevTid0Pic be the previous picture in decoding order with TemporalId equal to 0. The variable prevPicOrderCntLsb is set equal to slice_pic_order_cnt_lsb of prevTid0Pic. The variable prevPicOrderCntMsb is set equal to PicOrderCntMsb of prevTid0Pic. The variable PicOrderCntMsb of the current picture is derived as follows: If the current picture is an IRAP picture, PicOrderCntMsb is set equal to 0. Otherwise, PicOrderCntMsb is derived as follows: if((slice_pic_order_cnt_lsb <prevPicOrderCntLsb)&& ((prevPicOrderCntLsb-slice_pic_order_cnt_lsb)>=(MaxPicOrderCntLsb / 2))) PicOrderCntMsb=prevPicOrderCntMsb+MaxPicOrderCntLsb else if((slice_pic_order_cnt_lsb>prevPicOrderCntLsb)&& ((slice_pic_order_cnt_lsb-prevPicOrderCntLsb)>(MaxPicOrderCntLsb / 2))) PicOrderCntMsb=prevPicOrderCntMsb-MaxPicOrderCntLsb else PicOrderCntMsb=prevPicOrderCntMsb
[0359] PicOrderCntVal is derived as follows: PicOrderCntVal=PicOrderCntMsb+slice_pic_order_cnt_lsb
[0360] All IRAP pictures have PicOrderCntVal equal to 0, since slice_pic_order_cnt_lsb is inferred to be equal to 0 for IRAP pictures, and prevPicOrderCntLsb and prevPicOrderCntMsb are both set equal to 0. The value of PicOrderCntVal shall lie in the range of -231 to 231-1, inclusive. In one CVS, the PicOrderCntVal values for any two coded pictures shall not be the same. At any instant during the decoding process, the values of PicOrderCntVal & (MaxRefPicOrderCntLsb-1) for any two reference pictures in the DPB shall not be the same.
[0361] The function PicOrderCnt(picX) is defined as follows: PicOrderCnt(picX) = PicOrderCntVal of picture picX
[0362] The function DiffPicOrderCnt(picA,picB) is defined as follows: DiffPicOrderCnt(picA,piB)=PicOrderCnt(picA)-PicOrderCnt(picB)
[0363] The bitstream shall not contain data that results in a value of DiffPicOrderCnt(picA,picB) used in the decoding process that is not in the range of -215 to 215-1, inclusive. Let X be the current picture, and Y and Z be two other pictures in the same CVS, then Y and Z are considered to be in the same output order direction from X if DiffPicOrderCnt(X,Y) and DiffPicOrderCnt(X,Z) are both positive or both negative.
[0364] Decoding process for reference picture list construction
[0365] This process is invoked at the beginning of the decoding process for each slice of a non-IRAP picture. Reference pictures are addressed through reference indices, which are indices into the reference picture list. When decoding an I-slice, no reference picture list is used in decoding the slice data. When decoding a P-slice, only reference picture list 0 (i.e., RefPicList[0]) is used in decoding the slice data. When decoding a B-slice, both reference picture list 0 and reference picture list 1 (i.e., RefPicList[1]) are used in decoding the slice data. At the beginning of the decoding process for each slice of a non-IRAP picture, the reference picture lists RefPicList[0] and RefPicList[1] are derived. The reference picture lists are used in marking reference pictures or decoding slice data. For I-slices of non-IRAP pictures that are not the first slice of a picture, RefPicList[0] and RefPicList[1] may be derived for the purpose of bitstream conformance checking, but their derivation is not necessary for decoding the current picture or pictures that follow the current picture in decoding order. For P-slices that are not the first slice of a picture, RefPicList[1] may be derived for the purpose of bitstream conformance checking, but its derivation is not necessary for decoding the current picture or pictures that follow the current picture in decoding order. The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: for(i=0;i<2;i++){ for(j=0,pocBase=PicOrderCntVal;j <NumEntriesInList[i];j++){ if(PicOrderCntVal&(MaxRefPicOrderCntLsb-1) equals poc_ref_lsb[i][j] Reference picA is in DPB) RefPicList[i][j]=picA else RefPicList[i][j]="No reference pictures" } }
[0366] For each i equal to 0 or 1, the first NumRefIdxActive[i] entry in RefPicList[i] is called the active entry in RefPicList[i], and the other entries in RefPicList[i] are called inactive entries in RefPicList[i]. A particular picture may be referenced by both an entry in RefPicList[0] and an entry in RefPicList[1]. A particular picture may also be referenced by more than one entry in RefPicList[0] or more than one entry in RefPicList[1]. The active entries in RefPicList[0] and the active entries in RefPicList[1] collectively refer to all reference pictures that may be used for inter-prediction of the current picture and one or more pictures that are after the current picture in decoding order. Inactive entries in RefPicList[0] and inactive entries in RefPicList[1] collectively refer to all reference pictures that are not used for inter prediction of the current picture but may be used in inter prediction for one or more pictures that follow the current picture in decoding order. One or more entries equal to "No Reference Picture" may not be present in RefPicList[0] or RefPicList[1] because no corresponding picture exists in the DPB. Each inactive entry in RefPicList[0] or RefPicList[0] equal to "No Reference Picture" should be ignored. For each active entry in RefPicList[0] or RefPicList[1] equal to "No Reference Picture", an unintended picture loss should be inferred.
[0367] It is a bitstream conformance requirement that the following constraints apply: For each i equal to 0 or 1, NumEntriesInList[i] shall not be less than NumRefIdxActive[i]. The picture referenced by each active entry in RefPicList[0] or RefPicList[1] shall be present in the DPB and shall have a TemporalId less than or equal to the current picture. Optionally, the following constraints may be further specified: The entry index of an inactive entry in RefPicList[0] or RefPicList[1] shall not be used as a reference index for decoding the current picture. Optionally, the following constraints may be further specified: An inactive entry in RefPicList[0] or RefPicList[1] shall not reference the same picture as any other entry in RefPicList[0] or RefPicList[1]. The current picture itself shall not be referenced by any entry in RefPicList[0] or RefPicList[1]. There shall be no entries in RefPicList[0] or RefPicList[1] such that the difference between the PicOrderCntVal of the current picture and the PicOrderCntVal of the picture referenced by the entry is greater than or equal to 224. Let setOfRefPics be the set of unique pictures referenced by all entries in RefPicList[0] and all entries in RefPicList[1]. The number of pictures in setOfRefPics shall be less than or equal to sps_max_dec_pic_buffering_minus1, and setOfRefPics shall be the same for all slices of a picture.
[0368] Decoding Process for Reference Picture Marking
[0369] This process is invoked once per picture, after the decoding of the slice header and the decoding process for building the reference picture list for the slice, but before the decoding of the slice data. This process can cause one or more reference pictures in the DPB to be marked as "not used for reference." A decoded picture in the DPB can be marked as "not used for reference" or "used for reference," but only one of these two, at any given moment during the operation of the decoding process. Assigning one of these markings to a picture implicitly excludes another of these markings, when applicable. When the current picture is an IRAP picture, all reference pictures (if any) currently in the DPB are marked as "not used for reference." Reference pictures in the DPB are identified by the Log2(MaxRefPicOrderCntLsb) LSBs of their PicOrderCntVal values. Each reference picture in the DPB that is not referenced by any entry in RefPicList[0] or RefPicList[1] is marked as "unused for reference."
[0370] Yet another alternative embodiment
[0371] This section describes an alternative embodiment to the approach specified above, entitled "Always signaling reference picture lists in slice headers without distinguishing between short-term and long-term reference pictures." In this alternative embodiment, the POC MSB cycle may be signaled for each LTRP entry in the slice header, similar to HEVC or the approach described above, and the following constraint is removed: at any instant during the decoding process, the values of PicOrderCntVal&(MaxLtPicOrderCntLsb-1) for any two reference pictures in the DPB shall not be the same.
[0372] 6 is a schematic diagram of a video coding device 600 (e.g., video encoder 20 or video decoder 30) according to an embodiment of the present disclosure. The video coding device 600 is suitable for implementing the disclosed embodiments as described herein. The video coding device 600 includes an ingress port 610 and a receiver unit (Rx) 620 for receiving data, a processor, logic unit, or central processing unit (CPU) 630 for processing data, a transmitter unit (Tx) 640 and an egress port 650 for transmitting data, and a memory 660 for storing data. The video coding device 600 may also include optical-electronic (OE) and electro-optical (EO) components coupled to the ingress port 610, the receiver unit 620, the transmitter unit 640, and the egress port 650 for inputting and outputting optical or electrical signals.
[0373] The processor 630 is implemented by hardware and software. The processor 630 may be implemented as one or more CPU chips, cores (e.g., as a multi-core processor), field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), and digital signal processors (DSPs). The processor 630 is in communication with the ingress port 610, the receiver unit 620, the transmitter unit 640, the egress port 650, and the memory 660. The processor 630 includes a coding module 670. The coding module 670 implements the disclosed embodiments described above. For example, the coding module 670 implements, processes, prepares, or provides various networking functions. Thus, the inclusion of the coding module 670 significantly improves the functionality of the video coding device 600 and produces transformations of the video coding device 600 into different states. Alternatively, the coding module 670 is implemented as instructions stored in the memory 660 and executed by the processor 630.
[0374] Video coding device 600 may also include input and / or output (I / O) devices 680 for communicating data to and from a user. I / O devices 680 may include output devices such as a display for displaying video data, speakers for outputting audio data, etc. I / O devices 680 may also include input devices such as a keyboard, mouse, trackball, etc., and / or corresponding interfaces for interfacing with such output devices.
[0375] Memory 660 may comprise one or more disks, tape drives, and solid-state drives and may be used as overflow data storage devices for storing programs when such programs are selected for execution and for storing instructions and data read during program execution. Memory 660 may be volatile and / or non-volatile and may be read-only memory (ROM), random access memory (RAM), ternary content addressable memory (TCAM), and / or static random access memory (SRAM).
[0376] 7 is a schematic diagram of an embodiment of a means for coding 700. In an embodiment, the means for coding 700 is implemented in a video coding device 702 (e.g., video encoder 20 or video decoder 30). The video coding device 702 includes a means for receiving 701. The means for receiving 701 is configured to receive a picture to be encoded or to receive a bitstream to be decoded. The video coding device 702 includes a means for transmitting 707 coupled to the means for receiving 701. The means for transmitting 707 is configured to transmit the bitstream to a decoder or transmit a decoded image to a display means (e.g., one of I / O devices 680).
[0377] The video coding device 702 includes a storage means 703. The storage means 703 is coupled to at least one of the receiving means 701 or the transmitting means 707. The storage means 703 is configured to store instructions. The video coding device 702 also includes a processing means 705. The processing means 705 is coupled to the storage means 703. The processing means 705 is configured to execute the instructions stored in the storage means 703 in order to perform the methods disclosed herein.
[0378] Although several embodiments have been provided in this disclosure, it should be understood that the disclosed systems and methods may be embodied in many other specific forms without departing from the spirit or scope of the disclosure. These examples should be considered illustrative rather than limiting, and the intention is not to be limited to the details provided herein. For example, various elements and components may be combined or integrated in another system, or certain features may be omitted or not implemented.
[0379] Additionally, techniques, systems, subsystems, and methods described and illustrated as separate or distinct in various embodiments may be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of the present disclosure. Other items shown or discussed as coupled or directly coupled or in communication with each other may also be indirectly coupled or in communication, whether electrically, mechanically, or otherwise, through some interface, device, or intermediate component. Other examples of changes, substitutions, and variations will be recognizable by those skilled in the art and may be made without departing from the spirit and scope disclosed herein.
[0380] Embodiment
[0381] 1. A method for decoding a coded video bitstream implemented by a video decoder, comprising: obtaining a first reference picture list structure and a second reference picture list structure represented in a coded video bitstream; deriving a first reference picture list of a current slice and a second reference picture list of the current slice based on a first reference picture list structure and a second reference picture list structure, where the current slice comprises an intra (I) slice, a uni-predictive (P) slice, or a bi-predictive (B) slice; and obtaining at least one reconstructed block of the current slice following the derivation of the first reference picture list and the second reference picture list.
[0382] 2. The method of embodiment 1, wherein the order of entries in the first reference picture list structure or the second reference picture list structure is the same as the order of corresponding reference pictures in the reference picture list.
[0383] 3. A method according to any one of embodiments 1 to 2, wherein the order of the entries is from 0 to the indicated value.
[0384] 4. The method of embodiment 3, wherein the indicated value is from 0 to the value indicated by sps_max_dec_pic_buffering_minus1.
[0385] 5. A method according to any one of embodiments 1 to 4, wherein the reference picture list is called RefPictList[0].
[0386] 6. The method of any one of embodiments 1 to 4, wherein the reference picture list is called RefPictList[1].
[0387] 7. A method according to any one of embodiments 1 to 6, wherein at least one reconstructed block is used to generate an image that is displayed on a display of an electronic device.
[0388] 8. A method according to any one of embodiments 1 to 7, wherein the reference picture list comprises a list of reference pictures used for inter prediction.
[0389] 9. A method according to any one of embodiments 1 to 8, wherein inter prediction is for a P slice or a B slice.
[0390] 10. A method according to any one of embodiments 1 to 9, wherein a slice header of the coded video bitstream includes a reference picture list sequence parameter set (SPS) flag called ref_pic_list_sps_flag[i].
[0391] 11. A method according to any one of embodiments 1 to 10, wherein the slice header of the coded video bitstream includes a number reference index active override flag specified by num_ref_idx_active_override_flag.
[0392] 12. A method according to any one of embodiments 7 to 11, wherein the reference picture list is called RefPictList[0] or RefPictList[1], and the order of entries in the first reference picture list structure or the second reference picture list structure is the same as the order of corresponding reference pictures in the reference picture list.
[0393] 13. The method of embodiment 1, wherein the current slice is an I slice or a P slice.
[0394] 14. A receiver configured to receive a coded video bitstream; a memory coupled to the receiver, the memory storing instructions; a processor coupled to the memory, the processor comprising: obtaining a first reference picture list structure and a second reference picture list structure represented in a coded video bitstream; deriving a first reference picture list of a current slice and a second reference picture list of the current slice based on the first reference picture list structure and the second reference picture list structure, wherein the current slice comprises an intra (I) slice, a uni-predictive (P) slice, or a bi-predictive (B) slice; Following the derivation of the first reference picture list and the second reference picture list, at least one reconstructed block of the current slice is obtained. a decoding device configured to execute instructions stored in a memory such that:
[0395] 15. The decoding device of embodiment 14, further comprising a display configured to display an image based on at least one reconstructed block.
[0396] 16. A receiver configured to receive a bitstream to be decoded; a transmitter coupled to the receiver, the transmitter configured to transmit the decoded image to a display; a memory coupled to at least one of the receiver or the transmitter, the memory configured to store instructions; 14. A coding apparatus comprising: a processor coupled to a memory, the processor configured to execute instructions stored in the memory to perform the method of any one of claims 1 to 13.
[0397] 17. An encoder; A system comprising an encoder and a decoder in communication therewith, the decoder comprising a decoding device or coding apparatus according to any one of embodiments 14 to 16.
[0398] 18. Receiving means configured to receive a bitstream to be decoded; transmitting means coupled to the receiving means, the transmitting means configured to transmit the decoded image to the display means; a storage means coupled to at least one of the receiving means or the transmitting means, the storage means configured to store instructions; 14. A means for coding comprising: a processing means coupled to a storage means, the processing means configured to execute instructions stored in the storage means to perform the method according to any one of embodiments 1 to 13. [Explanation of symbols]
[0399] 12 Source Devices 14 Destination Device 16 Computer-Readable Medium 18 Video Sources 20 Video Encoder 22 Output Interface 28 Input Interface 30 Video Decoder 32 Display Devices 40 Mode Selection Unit 42 Motion Estimation Unit 44 Motion Compensation Unit 46 intra prediction units 48 division units 52 Conversion Processing Unit 54 quantization units 56 Entropy Coding Units 58 Inverse Quantization Unit 60 Reverse conversion unit 64 Reference Frame Memory 70 Entropy Decoding Unit 72 Motion Compensation Unit 74 intra prediction units 76 Inverse Quantization Unit 78 Reverse conversion unit 82 Reference Frame Memory 610 Inlet Port 620 receiver unit 630 processor 640 Transmitter Unit 650 Exit Port 660 memory 670 Coding Module 680 I / O devices 701 Receiving means 702 Video Coding Device 703 Memory means 705 Processing means 707 Transmission Method
Claims
1. 1. A method of decoding, comprising: obtaining a first syntax structure and a second syntax structure, the first syntax structure including a number of entries used to derive a first reference picture list of a current slice, and the second syntax structure including a number of entries used to derive a second reference picture list of the current slice, each syntax structure being represented in the bitstream as ref_pic_list_struct(listIdx, rplsIdx), where listIdx is 0 or 1, listIdx of the first syntax structure is equal to 0 and represents the first reference picture list, listIdx of the second syntax structure is equal to 1 and represents the second reference picture list, and rplsIdx specifies an index into a list of ref_pic_list_struct(listIdx, rplsIdx) structures, and the current slice is an intra (I) slice, a uni-predictive (P) slice, or a bi-predictive (B) slice; deriving the first reference picture list of the current slice based on the first syntax structure, and deriving the second reference picture list of the current slice based on the second syntax structure; determining at least one reconstructed block of the current slice following the derivation of the first reference picture list and the second reference picture list; A method of decoding comprising:
2. 2. The decoding method of claim 1, wherein an order of entries in the first syntax structure is the same as an order of corresponding reference pictures in the first reference picture list, or an order of entries in the second syntax structure is the same as an order of corresponding reference pictures in the second reference picture list.
3. 2. The decoding method of claim 1, wherein the first reference picture list is called RefPictList[0] and the second reference picture list is called RefPictList[1].
4. 4. The method of decoding according to claim 1, wherein the at least one reconstructed block is used to generate an image to be displayed on a display of an electronic device.
5. 4. A method of decoding according to claim 1, wherein each reference picture list comprises a list of reference pictures used for inter prediction.
6. a non-transitory memory storage configured to store the bitstream; and a video decoder configured to perform the decoding method of any one of claims 1 to 5.
1. A decoding device comprising:
7. a receiver configured to receive a bitstream to be decoded; a transmitter coupled to the receiver, the transmitter configured to transmit the decoded image to a display; a memory coupled to at least one of the receiver or the transmitter, the memory configured to store instructions; A decoding device comprising: a processor coupled to the memory, the processor configured to execute the instructions to perform the method of any one of claims 1 to 5.
8. 1. A method of encoding, comprising: determining a first syntax structure and a second syntax structure for a current slice, the first syntax structure including a number of entries used to derive a first reference picture list for the current slice, the second syntax structure including a number of entries used to derive a second reference picture list for the current slice, and the current slice being an intra (I) slice, a uni-predictive (P) slice, or a bi-predictive (B) slice; encoding the first syntax structure and the second syntax structure into a bitstream, wherein each syntax structure is represented in the bitstream as ref_pic_list_struct(listIdx, rplsIdx), where listIdx is 0 or 1, where listIdx of the first syntax structure represents the first reference picture list of the current slice and is equal to 0, where listIdx of the second syntax structure represents the second reference picture list of the current slice and is equal to 1, and where rplsIdx specifies an index into a list of ref_pic_list_struct(listIdx, rplsIdx) structures; A method of encoding comprising:
9. 9. The encoding method of claim 8, wherein an order of entries in the first syntax structure is the same as an order of corresponding reference pictures in the first reference picture list, or an order of entries in the second syntax structure is the same as an order of corresponding reference pictures in the second reference picture list.
10. 9. The method of claim 8, wherein the first reference picture list is called RefPictList[0] and the second reference picture list is called RefPictList[1].
11. 11. Method of encoding according to any one of claims 8 to 10, wherein each reference picture list comprises a list of reference pictures used for inter prediction.
12. 1. An encoding device, comprising: at least one processor; one or more memories coupled to the at least one processor storing program instructions for execution by the at least one processor, the program instructions causing the encoding device to perform the encoding method of any one of claims 8 to 11; An encoding device comprising:
13. an encoding device according to claim 12; A decoding device according to claim 6 or a decoding apparatus according to claim 7; Including, the system.
14. receiving means configured to receive a bitstream to be decoded; transmitting means coupled to said receiving means, said transmitting means configured to transmit the decoded image to a display means; a storage means coupled to at least one of the receiving means or the transmitting means, the storage means configured to store instructions; and processing means coupled to said storage means, said processing means being configured to execute said instructions to perform the method of any one of claims 1 to 5.