Encoders, decoders, and corresponding methods
By using a flag to adjust the decoding order of intra-prediction coded pictures, interlaced video coding is enabled within VVC systems, addressing inefficiencies and resource constraints, thereby enhancing coding efficiency and compliance.
Patent Information
- Application Number
- JP2021559241
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-06-21
- Filing Date
- 2020-04-02
- Publication Date
- 2024-10-04
- Estimated Expiration
- 2040-04-02
AI Technical Summary
Existing video coding systems, such as VVC, are not designed to support interlaced video coding, which requires violating their constraints on the ordering of intra-prediction coded pictures, leading to inefficiencies in processor, memory, and network resource usage.
Implementing a flag, such as the field_seq_flag, to allow for interlaced video coding by permitting a non-leading picture between an IRAP picture and a leading picture in the decoding order, while maintaining constraints that no non-leading pictures are between leading pictures, thus enabling efficient coding of interlaced video within VVC systems.
This solution enhances coding efficiency by allowing interlaced video to be implemented with VVC systems, reducing resource usage and improving coding efficiency without increasing data size, while maintaining compliance with VVC constraints.
Smart Images

Figure 0007561761000001 
Figure 0007561761000002 
Figure 0007561761000003
Abstract
Description
[Technical field]
[0002] FIELD This disclosure relates generally to video coding, and more particularly to coding leading pictures in the context of interlaced video coding. [Background technology]
[0003] The amount of video data required to depict even a relatively short video can be significant, which can pose difficulties when the data is to be streamed or otherwise communicated over communication networks with limited bandwidth capacity. Thus, video data is typically compressed before being communicated over modern telecommunications networks. Since memory resources may be limited, the size of the video 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 required 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 video quality, improved compression and decompression techniques that improve compression ratios with little or no sacrifice in image quality are desirable. Summary of the Invention [Means for solving the problem]
[0004] In an embodiment, the present disclosure includes a method implemented in a decoder, the method including the steps of receiving, by a receiver of the decoder, a bitstream comprising a flag and a plurality of coded pictures including an Intra Random Access Point (IRAP) picture and one or more non-leading pictures associated with the IRAP picture; The method includes determining, by the processor, when the flag is set to a first value, that any leading pictures associated with the IRAP picture are before all non-leading pictures associated with the IRAP picture in decoding order; determining, by the processor, when the flag is set to a second value, that the non-leading pictures are before a first leading picture associated with the IRAP picture in decoding order; decoding, by the processor, the IRAP picture, any leading pictures associated with the IRAP picture, and one or more non-leading pictures associated with the IRAP picture in decoding order based on whether the flag is set to the first value or the second value; and forwarding, by the processor, the one or more decoded pictures for display as part of the decoded video sequence.
[0005] A versatile video coding (VVC) video system may utilize a bitstream that includes IRAP pictures, leading pictures, and non-leading pictures. In some examples, the non-leading pictures may also be referred to as back-end pictures. An IRAP picture is an intra-prediction coded picture that serves as the start point of a coded video sequence. A leading picture is a picture that precedes the IRAP picture in presentation order but is coded after the IRAP picture in coding order. A non-leading / back-end picture is a picture that follows the IRAP picture in both presentation order and coding order. Some video coding systems require that leading pictures immediately follow the IRAP picture in decoding order and that all non-leading pictures follow the leading pictures. Interlaced video coding is a mechanism to increase the perceived frame rate without increasing streaming bandwidth. In interlaced video coding, a video frame is divided into two fields. The horizontal lines for the first field of the frame are captured at a first time and coded in the first picture. Horizontal lines for the second field of the frame are captured at a second time and coded in a second picture immediately adjacent to the first picture. In this way, the resulting frame includes a slice from the first picture at the first time and a slice from the second picture at the second time, which enhances the sense of motion. VVC systems may not be designed to support interlaced video. For example, an interlaced frame may utilize an IRAP picture and a neighboring intra-predictive coded picture to function. An intra-predictive coded picture is considered to be a non-leading / trailing picture. Furthermore, when a leading picture is utilized, the leading picture is positioned after its neighboring intra-predictive coded picture. This violates the VVC constraint that a leading picture immediately follows an IRAP picture in decoding order, and that all non-leading pictures are after the leading picture. This example illustrates the interlaced video in a VVC system that utilizes leading pictures. The example includes a flag that may be utilized to implement interlaced video coding. When the flag is set to a first value, such as 0, the leading picture, if any, precedes all of the non-leading pictures. However, the encoder may set the flag to a second value, such as 1, to indicate to the decoder that a single non-leading picture is positioned between the IRAP picture and any leading pictures. In an example, the non-leading pictures may not be positioned between the leading pictures. The flag may be included in a sequence parameter set (SPS) and may apply to an entire sequence of pictures. Thus, this example includes a flag that enhances the functionality of the encoder and / or decoder by allowing leading pictures and interlaced video to be implemented together in the same bitstream. Furthermore, this example enhances the coding efficiency of the resulting bitstream by allowing leading pictures and interlaced video to be implemented together. Thus, this example may reduce the use of processor resources, memory resources, and / or network resources in the encoder and / or decoder.
[0006] Optionally, in any of the preceding aspects, another implementation of the aspect further provides that when the flag is set to a second value, the processor determines that the leading picture is not positioned between the first leading picture and the last leading picture in the decoding order.
[0007] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the bitstream includes an SPS, and that the flag is obtained from the SPS.
[0008] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the flag is a sequential field flag (field_seq_flag).
[0009] Optionally, in any of the preceding aspects, another implementation of the aspect specifies that field_seq_flag is set to 1 when indicating that the coded video sequence includes pictures representing fields, and that field_seq_flag is set to 0 when indicating that the coded video sequence includes pictures representing frames.
[0010] Optionally, in any of the preceding aspects, another implementation of the aspect specifies that the IRAP picture includes the first field of a frame, and the non-leading picture preceding the first leading picture includes the second field of the frame.
[0011] Optionally, in any of the preceding aspects, another implementation of the aspect provides that decoding the IRAP picture and one or more non-leading pictures includes interlacing a first field from the IRAP picture and a second field from a non-leading picture that is before the first leading picture to create a single frame.
[0012] In an embodiment, the present disclosure includes a method implemented in an encoder, the method comprising: determining, by a processor of the encoder, a coding order for a video sequence comprising a plurality of pictures including an IRAP picture and one or more non-leading pictures associated with the IRAP picture; encoding, by the processor, a flag into a bitstream, wherein the flag is set to a first value when any leading pictures associated with the IRAP picture are before all non-leading pictures associated with the IRAP picture in the coding order, and the flag is set to a second value when a non-leading picture is before a first leading picture associated with the IRAP picture in the coding order; encoding, by the processor, the IRAP picture, any leading pictures associated with the IRAP picture, and one or more non-leading pictures associated with the IRAP picture into the bitstream in the coding order; and storing, by a memory coupled to the processor, the bitstream for communication to a decoder.
[0013] A VVC video system may utilize a bitstream that includes IRAP pictures, leading pictures, and non-leading pictures. In some examples, the non-leading pictures may be referred to as back-end pictures. An IRAP picture is an intra-prediction coded picture that serves as the start point of a coded video sequence. A leading picture is a picture that precedes an IRAP picture in presentation order but is coded after the IRAP picture in coding order. A non-leading / back-end picture is a picture that follows an IRAP picture in both presentation order and coding order. Some video coding systems require that leading pictures immediately follow an IRAP picture in decoding order and that all non-leading pictures follow leading pictures. Interlaced video coding is a mechanism to increase the perceived frame rate without increasing streaming bandwidth. In interlaced video coding, a video frame is divided into two fields. The horizontal lines for the first field of the frame are captured at a first time and coded in the first picture. Horizontal lines for the second field of the frame are captured at a second time and coded in a second picture immediately adjacent to the first picture. In this way, the resulting frame includes a slice from the first picture at the first time and a slice from the second picture at the second time, which enhances the sense of motion. A VVC system may not be designed to support interlaced video. For example, an interlaced frame may utilize an IRAP picture and a neighboring intra-predictive coded picture to function. An intra-predictive coded picture is considered to be a non-leading / trailing picture. Furthermore, when a leading picture is utilized, the leading picture is positioned after its neighboring intra-predictive coded picture. This violates the VVC constraint that a leading picture immediately follows an IRAP picture in decoding order, and that all non-leading pictures are after the leading picture. This example implements interlaced video coding in a VVC system that utilizes leading pictures. The example includes a flag that may be utilized to indicate whether a leading picture is positioned between the IRAP picture and any leading pictures. When the flag is set to a first value, such as 0, the leading picture, if any, is before all of the non-leading pictures. However, the encoder may set the flag to a second value, such as 1, to indicate to the decoder that a single non-leading picture is positioned between the IRAP picture and any leading pictures. In an example, the non-leading pictures may not be positioned between the leading pictures. The flag may be included in the SPS and may apply to the entire sequence of pictures. Thus, this example includes a flag that enhances the functionality of the encoder and / or decoder by allowing leading pictures and interlaced video to be implemented together in the same bitstream. Furthermore, this example enhances the coding efficiency of the resulting bitstream by allowing leading pictures and interlaced video to be implemented together. Thus, this example may reduce the use of processor resources, memory resources, and / or network resources in the encoder and / or decoder.
[0014] Optionally, in any of the preceding aspects, another implementation of the aspect specifies that when the flag is set to a second value, no leading picture is positioned between the first leading picture and the last leading picture in the coding order.
[0015] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the bitstream includes an SPS, and that the flag is encoded into the SPS.
[0016] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the flag is a field_seq_flag.
[0017] Optionally, in any of the preceding aspects, another implementation of the aspect specifies that field_seq_flag is set to 1 when indicating that the coded video sequence includes pictures representing fields, and that field_seq_flag is set to 0 when indicating that the coded video sequence includes pictures representing frames.
[0018] Optionally, in any of the preceding aspects, another implementation of the aspect specifies that the IRAP picture includes the first field of a frame, and the non-leading picture preceding the first leading picture includes the second field of the frame.
[0019] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the first field from the IRAP picture and the second field from a non-leading picture prior to the first leading picture include alternating lines of video data representing a single interlaced video frame.
[0020] In an embodiment, the present disclosure includes a video coding device comprising a processor, a receiver coupled to the processor, a memory coupled to the processor, and a transmitter coupled to the processor, wherein the processor, receiver, memory, and transmitter are configured to perform the method of any of the preceding aspects.
[0021] In an embodiment, the present disclosure includes a non-transitory computer-readable medium comprising a computer program product for use by a video coding device, the computer program product comprising computer-executable instructions stored on the non-transitory computer-readable medium that, when executed by a processor, cause the video coding device to perform the method of any of the preceding aspects.
[0022] In an embodiment, the present disclosure includes a decoder comprising: receiving means for receiving a bitstream comprising a flag and a plurality of coded pictures including an IRAP picture and one or more non-leading pictures associated with the IRAP picture; determining means for determining that when the flag is set to a first value, any leading pictures associated with the IRAP picture are before all non-leading pictures associated with the IRAP picture in decoding order, and when the flag is set to a second value, determining that the non-leading pictures are before a first leading picture associated with the IRAP picture in decoding order based on whether the flag is set to the first value or the second value; decoding means for decoding the IRAP picture, any leading pictures associated with the IRAP picture, and one or more non-leading pictures associated with the IRAP picture in decoding order based on whether the flag is set to the first value or the second value; and forwarding means for forwarding the one or more decoded pictures for display as part of a decoded video sequence.
[0023] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the decoder is further configured to perform the method of any of the preceding aspects.
[0024] In an embodiment, the present disclosure includes an encoder comprising: a determining means for determining a coding order for a video sequence comprising a plurality of pictures including an IRAP picture and one or more non-leading pictures associated with the IRAP picture; encoding means for encoding a flag into a bitstream, the flag being set to a first value when any leading pictures associated with the IRAP picture are before all non-leading pictures associated with the IRAP picture in the coding order, and the flag being set to a second value when a non-leading picture is before a first leading picture associated with the IRAP picture in the coding order, the IRAP picture, any leading pictures associated with the IRAP picture, and one or more non-leading pictures associated with the IRAP picture into the bitstream in the coding order; and storage means for storing the bitstream for communication to a decoder.
[0025] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the encoder is further configured to perform the method of any of the preceding aspects.
[0026] For clarity, any one of the above-described embodiments may be combined with any one or more of the other above-described embodiments to create new embodiments within the scope of the present disclosure.
[0027] These and other features will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings and claims.
[0028] 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, in which like reference numerals represent like parts. [Brief description of the drawings]
[0029] [Figure 1] 4 is a flowchart of an exemplary method for coding a video signal. [Diagram 2] 1 is a schematic diagram of an example encoding and decoding (codec) system for video coding. [Diagram 3] FIG. 1 is a schematic diagram illustrating an exemplary video encoder. [Figure 4] FIG. 2 is a schematic diagram illustrating an exemplary video decoder. [Diagram 5] 1 is a schematic diagram illustrating an example coded video sequence with leading pictures. [Figure 6A] 1A-1C are schematic diagrams collectively illustrating an example of interlaced video coding. [Figure 6B] 1A-1C are schematic diagrams collectively illustrating an example of interlaced video coding. [Figure 6C] 1A-1C are schematic diagrams collectively illustrating an example of interlaced video coding. [Figure 7] 1 is a schematic diagram illustrating an example coded video sequence that utilizes both interlaced video coding and leading pictures. [Figure 8] 1 is a schematic diagram illustrating an example bitstream that is configured to include both interlaced video coding and leading pictures. [Figure 9] 1 is a schematic diagram of an example video coding device. [Figure 10] 1 is a flowchart of an example method for encoding a video sequence and leading pictures into a bitstream involving interlaced video coding. [Figure 11] 1 is a flowchart of an example method for decoding a video sequence and leading pictures from a bitstream involving interlaced video coding. [Figure 12] 1 is a schematic diagram of an example system for coding a video sequence and leading pictures into a bitstream involving interlaced video coding. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0030] Although illustrative implementations of one or more embodiments are provided below, it should be understood at the outset that the disclosed systems and / or methods may be implemented using any number of techniques, whether currently known or in existence. The present disclosure should not be limited in any way to the illustrative implementations, figures, and techniques illustrated below, including the exemplary designs and implementations illustrated and described herein, but may be modified within the scope of the appended claims along with their full scope of equivalents.
[0031] The following terms are defined as follows, unless used in the present specification in a contrary context. Specifically, the following definitions are intended to make the present disclosure more understandable. However, terms may be explained differently in different contexts. Therefore, the following definitions should be considered as supplementary and should not be considered as limiting other definitions given for such terms in the present specification.
[0032] A bitstream is a sequence of bits that includes video data that is compressed for transmission between an encoder and a decoder. An encoder is a device configured to utilize an encoding process to compress video data into a bitstream. A decoder is a device configured to utilize a decoding process to reconstruct video data from the bitstream for display. A flag is a bit or a group of bits that is coded into the bitstream that signals a mechanism utilized by an encoder during encoding, thus indicating a mechanism to be utilized by a decoder during decoding to accurately reconstruct video data from the bitstream. Intra prediction is a mechanism for coding a picture with reference to itself, such that the picture can be reconstructed without reference to other pictures. Inter prediction is a mechanism for coding a picture by referencing one or more other pictures. An intra random access point (IRAP) picture is a picture that is coded according to intra prediction and serves as a starting point for a coded video sequence. A leading picture is a picture that is coded after an associated IRAP picture in coding order, but precedes the associated IRAP picture in output order. A non-leading picture, which may also be called a trailing picture, is a picture that follows the IRAP picture in both coding order and output order. Interlaced video coding is a video coding mechanism that codes a first field of video data at a first time in a first picture, codes a second field of video data at a second time in a second picture, and combines the first and second fields into a single frame for presentation to give the impression of an improved frame rate. A frame is a complete image that is intended for complete or partial display to a user at a corresponding instant in a video sequence. A picture is a frame, except in the context of interlaced video, where a picture is a field of a frame.A parameter set is a portion of a bitstream that signals data such as flags and other parameters for a corresponding section of a coded video sequence. The sequential field flag (field_seq_flag) is a flag that is used for interlaced video and signals when a non-leading picture is positioned between an IRAP picture and a leading picture in the coding order.
[0033] The following acronyms are used herein: coding tree block (CTB), coding tree unit (CTU), coding unit (CU), coded video sequence (CVS), Joint Video Experts Team (JVET), motion constrained tile set (MCTS), maximum transmission unit (MTU), network abstraction layer (NAL), picture order count (POC), raw byte sequence payload (RBSP), sequence parameter set (SPS), and working draft (WD).
[0034] Many video compression techniques may be utilized to reduce the size of video files while minimizing data loss. For example, video compression techniques may include performing spatial (e.g., intra-picture) prediction and / or temporal (e.g., inter-picture) prediction to reduce or remove data redundancy in a video sequence. For 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 referred to as 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 coded using spatial prediction with respect to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded unidirectionally predicted (P) or bidirectionally predicted (B) slice of a picture may be coded by utilizing spatial prediction with respect to reference samples in neighboring blocks of 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 / or an image, and a reference picture may be referred to as a reference frame and / or a reference image. Spatial or temporal prediction results in a predictive block that represents the image block. The residual data represents pixel differences between the original image block and the predictive block. Inter-coded blocks are therefore coded according to a motion vector that points to a block of reference samples that form the predictive block, and the residual data that indicates 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 transferred from the pixel domain to a transform domain. These result in residual transform coefficients that may be quantized. The quantized transform coefficients may first be arranged in a two-dimensional array. The quantized transform coefficients may be scanned to yield a one-dimensional vector of transform coefficients. Entropy coding may be applied to achieve further compression.Such video compression techniques are discussed in more detail below.
[0035] To ensure that the encoded video can be correctly decoded, the video is encoded and decoded according to a corresponding video coding standard. Video coding standards include International Telecommunication Union (ITU) Standardization Sector (ITU-T) H.261, International Organization for Standardization / International Electrotechnical Commission (ISO / IEC) Motion Picture Experts Group (MPEG)-1 Part 2, Advanced Video Coding (AVC), also known as ITU-T H.262 or ISO / 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), and three-dimensional (3D) AVC (3D-AVC). HEVC includes extensions such as Scalable HEVC (SHVC), Multiview HEVC (MV-HEVC), and 3D HEVC (3D-HEVC). The ITU-T and ISO / IEC Joint Video Experts Team (JVET) has initiated the development of a video coding standard called Versatile Video Coding (VVC). VVC is contained in Working Drafts (WDs), including JVET-M1001-v7.
[0036] A video coding system may encode video by utilizing IRAP pictures and non-IRAP pictures. An IRAP picture is a picture coded according to inter prediction that serves as a random access point for a video sequence. In intra prediction, blocks of a picture are coded by reference to other blocks in the same picture. This is in contrast to a non-IRAP picture that utilizes inter prediction. In inter prediction, blocks of a current picture are coded by reference to other blocks in a reference picture different from the current picture. Because an IRAP picture is coded without reference to other pictures, an IRAP picture may be decoded without first decoding other pictures. Thus, a decoder can start decoding a video sequence at any IRAP picture. In contrast, because a non-IRAP picture is coded with reference to other pictures, a decoder generally cannot start decoding a video sequence at a non-IRAP picture. An IRAP picture may also refresh a decoded picture buffer (DPB). This is because an IRAP picture is the start of a coded video sequence (CVS), and pictures in a CVS do not refer to pictures in previous CVSs. Thus, an IRAP picture can also stop inter-prediction related coding errors, since such errors cannot propagate through IRAP pictures. However, an IRAP picture is much larger than a non-IRAP picture in terms of data size. Thus, a video sequence generally contains fewer interspersed IRAP pictures along with many non-IRAP pictures to balance coding efficiency and functionality. For example, a 60-frame CVS may contain one IRAP picture and 59 non-IRAP pictures. Thus, IRAP pictures reduce compression efficiency in the bitstream. Furthermore, the presence of IRAP pictures in the bitstream causes a bitrate spike. This penalty to compression efficiency is due to the fact that intra-prediction requires many more bits than inter-prediction to represent a picture. This is partly caused by the fact that the IRAP picture uses a metric that is not supported by the IRAP picture. Furthermore, the IRAP picture may refresh the decoding process and remove reference pictures from the DPB. This reduces the number of reference pictures available for inter prediction when coding pictures that follow the IRAP picture, making the inter prediction process temporarily less efficient.
[0037] The video coding system may also utilize leading pictures. Leading pictures are pictures that are located after the IRAP picture in coding order and before the IRAP picture in presentation order. Leading pictures may be utilized even if the corresponding picture should be presented before the IRAP picture when the corresponding picture can be efficiently predicted from the IRAP picture. Such pictures are positioned after the IRAP picture in coding order to allow the IRAP picture to be utilized as a reference picture for inter prediction. The decoder may then reorder the leading pictures and the IRAP picture before presentation to create a different presentation order. Leading pictures may include random access skip ahead (RASL) pictures and random access decode ahead (RADL) pictures. RASL pictures may also depend on pictures before the IRAP picture and are skipped when the IRAP picture is used as a random access point. This is because such other pictures are not decoded and therefore are not available as such other reference pictures when decoding starts from the IRAP picture. A RADL picture depends only on the IRAP picture or other pictures between the RADL picture and the IRAP picture for reference. Thus, a RADL picture is decoded even when the IRAP is used as a random access point. This is because every picture that a RADL picture may reference is guaranteed to be decoded even when coding starts at the IRAP picture. Video coding systems may require that leading pictures be positioned immediately after the IRAP picture that they reference in decoding order. Then, any relevant trailing pictures are after the leading pictures in decoding order.
[0038] Video coding utilizes a wide range of mechanisms. For example, interlaced coding codes a frame into more than one field and more than one picture. For example, a frame may be divided into an even field and an odd field. The even field of an interlaced frame includes samples from the even numbered horizontal lines of the frame, and the odd field of an interlaced frame includes samples from the odd numbered horizontal lines of the frame. As one particular example, the odd field may be captured at a first time and stored in a first picture. The odd field may then be captured at a second time and stored in a second picture. The inclusion of two fields in the same frame enhances the sense of motion. Thus, interlaced coding creates the impression of an improved frame rate without increasing the bandwidth of the video sequence. Interlaced coding may not be natively supported by standardized coding systems. However, interlaced coding may be managed in some systems by utilizing syntax elements in the video availability information (VUI) to indicate that the bitstream is an interlaced coded bitstream. Such syntax elements may include field_seq_flag, general_frame_only_constraint_flag.
[0039] Standardized video coding systems that utilize leading pictures are not configured to support interlaced video coding. For example, VVC and HEVC may utilize a coding order that requires that leading pictures, if any, are after the IRAP picture. Then, after the leading pictures are non-leading / trailing pictures. Such an order prevents non-leading pictures from being positioned between the IRAP picture and the associated leading picture. However, in the context of interlaced video coding, an IRAP frame is split between two fields in two pictures. The first picture with the first field is coded as an IRAP picture. The second picture with the second field is coded as a non-leading / trailing picture instead of an IRAP picture, since the second picture cannot be used as a random access point. This is because both pictures are required to start decoding, and therefore the first picture cannot be skipped. The two pictures that make up an IRAP frame should be positioned next to each other for efficient coding. However, positioning a non-leading picture with a second IRAP field next to an IRAP picture with a first IRAP field violates the coding order of VVC and HEVC, because such positioning places the non-leading picture before any leading picture.
[0040] Disclosed herein is a mechanism for configuring a video coding system that utilizes leading pictures to encode interlaced video. For example, a flag may be utilized to implement interlaced video coding into a VVC system that utilizes leading pictures. The flag may be utilized to signal to a decoder when there may be non-leading pictures between an IRAP picture and any leading pictures. The decoder may read the flag and adjust the order as desired to support interlaced video coding. When the flag is set to a first value, such as 0, the leading picture, if any, is before all of the non-leading pictures. However, the encoder may set the flag to a second value, such as 1, to indicate to the decoder that a single non-leading picture is positioned between the IRAP picture and any leading pictures. In some examples, the non-leading pictures may not be positioned between the leading pictures. For example, a sequential field flag (field_seq_flag) may be utilized for this purpose. This flag may be included in a sequence parameter set (SPS) and may apply to an entire sequence of pictures. It should be noted that in the context of interlaced video, a frame may contain multiple pictures (e.g., two). However, outside the context of interlaced video, a frame contains a single picture, and so the terms frame and picture may be used interchangeably. Thus, the use of the terms frame and picture below should not be considered limiting unless used in the context of interlaced coding.
[0041] 1 is a flow chart of an exemplary operational method 100 of coding a video signal. Specifically, a video signal is encoded in an encoder. The encoding process compresses the video signal by utilizing various mechanisms to reduce the video file size. The smaller file size allows the compressed video file to be transmitted to a user while reducing the associated bandwidth overhead. A decoder then decodes the compressed video file to reconstruct the original video signal for display to an end user. The decoding process generally mirrors the encoding process to allow the decoder to reconstruct the video signal stably.
[0042] In step 101, a video signal is input to an encoder. For example, the video signal may be an uncompressed video file stored in memory. As another example, the video file may be captured by a video capture device, such as a video camera, and encoded to support live streaming of the video. The video file may include both audio and video components. The video component includes a series of image frames that, when viewed in sequence, give the effect of visual movement. The frames include pixels represented in terms of light, referred to herein as luma components (or luma samples), and pixels represented in terms of color, referred to herein as chroma components (or color samples). In some examples, the frames may also include depth values to support three-dimensional viewing.
[0043] In step 103, the video is partitioned into blocks. Partitioning involves subdividing the pixels of each frame into square and / or rectangular blocks for compression. For example, in High Efficiency Video Coding (HEVC) (also known as H.265 and MPEG-H Part 2), a frame may first be partitioned into coding tree units (CTUs), which are blocks of a predefined size (e.g., 64 pixels by 64 pixels). The CTUs include both luma and chroma samples. The coding tree may be utilized to partition the CTUs into blocks and then recursively subdivide the blocks until a configuration that supports further encoding is achieved. For example, the luma component of a frame may be subdivided until each block contains a relatively uniform illumination value. Additionally, the chroma component of a frame may be subdivided until each block contains a relatively uniform color value. Thus, the partitioning scheme varies depending on the content of the video frame.
[0044] In step 105, various compression mechanisms are utilized to compress the image blocks partitioned in step 103. For example, inter-prediction and / or intra-prediction may be utilized. Inter-prediction is designed to utilize the fact that objects in a common scene tend to appear in successive frames. Thus, a block depicting an object in a reference frame does not need to be repeatedly described in adjacent frames. In particular, an object such as a table may remain in a constant position across multiple frames. Thus, the table may be described once and adjacent frames may reference the reference frame. Pattern matching mechanisms may be utilized to match objects across multiple frames. Furthermore, a moving object may be represented across multiple frames, for example due to object motion or camera motion. As a specific example, a video may show a car moving around on the screen across multiple frames. Motion vectors may be utilized to describe such motion. A motion vector is a two-dimensional vector that gives an offset from the object's coordinates in a frame to the object's coordinates in a reference frame. Thus, inter-prediction may encode an image block in a current frame as a set of motion vectors that indicate an offset from a corresponding block in a reference frame.
[0045] Intra prediction encodes blocks within a common frame. Intra prediction exploits the fact that luma and chroma components tend to cluster in a frame. For example, a green spot in a part of a tree tends to be positioned next to a similar green spot. Intra prediction utilizes multiple directional prediction modes (e.g., 33 in HEVC), planar mode, and direct current (DC) mode. The directional mode indicates that the current block is similar / same as the samples of neighboring blocks in the corresponding direction. The planar mode indicates that a series of blocks along a row / column (e.g., a plane) may be interpolated based on the neighboring blocks at the end of the row. The planar mode essentially indicates a smooth transition of light / color across the row / column by utilizing a relatively constant gradient by changing values. The DC mode is utilized for boundary smoothing and indicates that the block is similar / same as the average value associated with the samples of all neighboring blocks associated with the angular direction of the directional prediction mode. Thus, an intra prediction block may represent an image block as various related prediction mode values instead of actual values. Additionally, an inter prediction block may represent an image block as a motion vector value instead of actual values. In either case, the prediction block may in some cases not exactly represent the image block. Any differences are stored in a residual block. To further compress the file, a transform may be applied to the residual block.
[0046] In step 107, various filtering techniques may be applied. In HEVC, filters are applied according to an in-loop filtering scheme. The block-based prediction discussed above may result in the creation of blocky images in the decoder. Furthermore, the block-based prediction scheme may code a block and then reconstruct the coded block for later use as a reference block. The in-loop filtering scheme iteratively applies a noise suppression filter, a deblocking filter, an adaptive loop filter, and a sample adaptive offset (SAO) filter to the block / frame. These filters mitigate such blocking artifacts so that the coded file can be accurately reconstructed. Furthermore, since these filters mitigate artifacts in the reconstructed reference block, the artifacts are less likely to produce additional artifacts in subsequent blocks that are coded based on the reconstructed reference block.
[0047] Once the video signal has been partitioned, compressed, and filtered, the resulting data is encoded in a bitstream in step 109. The bitstream includes the data discussed above, as well as any signaling data desired to support reconstruction of the proper video signal at the decoder. For example, such data may include partition data, prediction data, residual blocks, and various flags that provide coding instructions to the decoder. The bitstream may be stored in memory for transmission to the decoder on demand. The bitstream may also be broadcast and / or multicast to multiple decoders. Creation of the bitstream is an iterative process. Thus, steps 101, 103, 105, 107, and 109 may occur sequentially and / or simultaneously across multiple frames and blocks. The order shown in FIG. 1 is presented for clarity and ease of discussion, and is not intended to limit the video coding process to any particular order.
[0048] In step 111, a decoder receives the bitstream and begins the decoding process. Specifically, the decoder utilizes an entropy decoding scheme to convert the bitstream into corresponding syntax and video data. In step 111, the decoder utilizes syntax data from the bitstream to determine a partition for the frame. This partition must match the result of the block partition in step 103. Entropy encoding / decoding as utilized in step 111 is now described. The encoder makes many choices during the compression process, such as selecting a block partitioning scheme from several possible options based on the spatial positioning of values in the input image. Signaling of the exact selection may utilize a number of bins. In this specification, a bin is a binary value (e.g., a bit value that can change depending on the situation) that is treated as a variable. Entropy coding allows the encoder to discard any options that are clearly not viable for a particular case, leaving a set of acceptable options. Each acceptable option is then assigned a codeword. The length of the codeword is based on the number of allowable choices (e.g., one bin for two choices, two bins for three to four choices, etc.). The encoder then encodes a codeword for the selected choice. This scheme reduces the size of the codeword because the codeword is only as large as desired to uniquely indicate a choice from a small subset of allowable choices, rather than uniquely indicating a choice from a large possible set of all possible choices. The decoder then decodes the choices by determining the set of allowable choices in a similar manner as the encoder. By determining the set of allowable choices, the decoder can read the codeword and determine the choices made by the encoder.
[0049] In step 113, the decoder performs block decoding. Specifically, the decoder uses an inverse transform to generate a residual block. The decoder then uses the residual block and a corresponding predictive block to reconstruct an image block according to the partition. The predictive block may include both intra-predictive blocks and inter-predictive blocks as generated in the encoder in step 105. The reconstructed image block is then positioned into a frame of the reconstructed video signal according to the partition data determined in step 111. The syntax for step 113 may also be signaled in the bitstream via entropy coding as discussed above.
[0050] In step 115, filtering is performed on the frames of the reconstructed video signal at the encoder in a manner similar to step 107. For example, a noise suppression filter, a deblocking filter, an adaptive loop filter, and an SAO filter may be applied to the frames to remove blocking artifacts. Once the frames are filtered, the video signal may be output to a display in step 117 for viewing by an end user.
[0051] FIG. 2 is a schematic diagram of an exemplary coding and decoding (codec) system 200 for video coding. Specifically, the codec system 200 provides functionality to support the implementation of the operational method 100. The codec system 200 is generalized to depict components utilized in both an encoder and a decoder. The codec system 200 receives and segments a video signal as discussed with respect to steps 101 and 103 in the operational method 100, which results in a segmented video signal 201. The codec system 200 then compresses the segmented video signal 201 into a coded bitstream when operating as an encoder as discussed with respect to steps 105, 107, and 109 of the method 100. When operating as a decoder, the codec system 200 generates an output video signal from the bitstream as discussed with respect to steps 111, 113, 115, and 117 of the operational method 100. Codec system 200 includes a general coder control component 211, a transform scaling and quantization component 213, an intra-picture estimation component 215, an intra-picture prediction component 217, a motion compensation component 219, a motion estimation component 221, a scaling and inverse transform component 229, a filter control analysis component 227, an in-loop filter component 225, a decoded picture buffer component 223, and a header formatting and context-adaptive binary arithmetic coding (CABAC) component 231. Such components are coupled as shown. In FIG. 2, the black lines indicate the movement of data to be encoded / decoded, and the dashed lines indicate the movement of control data that controls the operation of the other components. The components of codec system 200 may all be present in an encoder. A decoder may include a subset of the components of codec system 200.For example, the decoder may include an intra-picture prediction component 217, a motion compensation component 219, a scaling and inverse transform component 229, an in-loop filter component 225, and a decoded picture buffer component 223. These components are now described.
[0052] The partitioned video signal 201 is a captured video sequence partitioned into blocks of pixels by a coding tree. The coding tree utilizes various partitioning modes to subdivide the blocks of pixels into smaller blocks of pixels. These blocks may then be further subdivided into smaller blocks. The blocks may be referred to as nodes on the coding tree. Larger parent nodes are partitioned into smaller child nodes. The number of times a node is subdivided is referred to as the depth of the node / coding tree. In some cases, the partitioned blocks may be included in a coding unit (CU). For example, a CU may be a subpart of a CTU that includes a luma block, a red differential chroma (Cr) block, and a blue differential chroma (Cb) block, along with corresponding syntax instructions for the CU. Partitioning modes may include a binary tree (BT), a ternary tree (TT), and a quad tree (QT), which are utilized to partition the node into two, three, or four child nodes, each of which changes shape depending on the partitioning mode utilized. The segmented video signal 201 is forwarded to a general coder control component 211, a transform scaling and quantization component 213, an intra-picture estimation component 215, a filter control analysis component 227, and a motion estimation component 221 for compression.
[0053] The generic coder control component 211 is configured to make decisions regarding the coding of images of a video sequence into a bitstream according to application constraints. For example, the generic coder control component 211 manages the optimization of bitrate / bitstream size versus reconstruction quality. Such decisions may be made based on storage space / bandwidth availability and image resolution requirements. The generic coder control component 211 also manages buffer utilization taking into account transmission rates to mitigate buffer under-run and over-run issues. To manage these issues, the generic coder control component 211 manages segmentation, prediction, and filtering by other components. For example, the generic coder control component 211 may dynamically increase compression complexity to improve resolution and improve bandwidth utilization, or decrease compression complexity to reduce resolution and bandwidth utilization. Thus, the generic coder control component 211 controls other components of the codec system 200 to balance video signal reconstruction quality and bitrate issues. The generic coder control component 211 creates control data, which controls the operation of other components. The control data is also forwarded to the header formatting and CABAC component 231 and encoded in the bitstream for signaling parameters for decoding at the decoder.
[0054] The partitioned video signal 201 is also sent to a motion estimation component 221 and a motion compensation component 219 for inter prediction. A frame or slice of the partitioned video signal 201 may be divided into multiple video blocks. The motion estimation component 221 and the motion compensation component 219 perform inter predictive coding of the received video blocks relative to one or more blocks in one or more reference frames to perform temporal prediction. The codec system 200 may perform multiple coding passes to, for example, select an appropriate coding mode for each block of video data.
[0055] The motion estimation component 221 and the motion compensation component 219 may be highly integrated, but are shown separately for conceptual purposes. Motion estimation performed by the motion estimation component 221 is a process of generating motion vectors that estimate the motion of a video block. A motion vector may indicate, for example, the displacement of a coded object relative to a predictive block. A predictive block is a block that is found to match well with a block to be coded in terms of pixel differences. A predictive block may also be referred to as a reference block. Such pixel differences may be determined by sum of absolute differences (SAD), sum of squared differences (SSD), or other difference measures. HEVC utilizes several coded objects, including CTUs, coding tree blocks (CTBs), and CUs. For example, CTUs may be divided into CTBs, which may then be divided into CBs for inclusion in a CU. A CU may be coded as a prediction unit (PU) that includes prediction data and / or a transform unit (TU) that includes transformed residual data for the CU. The motion estimation component 221 generates the motion vectors, PUs, and TUs by using a rate-distortion analysis as part of a rate-distortion optimization process. For example, the motion estimation component 221 may determine multiple reference blocks, multiple motion vectors, etc. for the current block / frame and may select the reference block, motion vector, etc. with the best rate-distortion characteristics. The best rate-distortion characteristics balance the quality of the video reconstruction (e.g., the amount of data lost due to compression) and the coding efficiency (e.g., the size of the final encoding).
[0056] In some examples, the codec system 200 may calculate values for sub-integer pixel positions of a reference picture stored in the decoded picture buffer component 223. For example, the video codec system 200 may interpolate values for quarter pixel positions, eighth pixel positions, or other fractional pixel positions of a reference picture. Thus, the motion estimation component 221 may perform motion searches for integer pixel positions and fractional pixel positions to output fractional pixel precision motion vectors. The motion estimation component 221 calculates motion vectors for PUs of video blocks in inter-coded slices by comparing the positions of the PUs with the positions of the predictive blocks of the reference pictures. The motion estimation component 221 outputs the calculated motion vectors to the header formatting and CABAC component 231 as motion data for encoding and outputs the motion to the motion compensation component 219.
[0057] The motion compensation performed by the motion compensation component 219 may involve fetching or generating a predictive block based on a motion vector determined by the motion estimation component 221. Again, the motion estimation component 221 and the motion compensation component 219 may be functionally integrated in some examples. Upon receiving the motion vector for the PU of the current video block, the motion compensation component 219 may locate the predictive block to which the motion vector points. A residual video block is then formed by subtracting pixel values of the predictive block from pixel values of the current video block being coded to form pixel difference values. In general, the motion estimation component 221 performs motion estimation on the luma component, and the motion compensation component 219 uses the motion vector calculated based on the luma component for both the chroma and luma components. The predictive block and the residual block are forwarded to the transform scaling and quantization component 213.
[0058] The partitioned video signal 201 is also sent to an intra picture estimation component 215 and an intra picture prediction component 217. Like the motion estimation component 221 and the motion compensation component 219, the intra picture estimation component 215 and the intra picture prediction component 217 may be highly integrated, but are shown separately for conceptual purposes. The intra picture estimation component 215 and the intra picture prediction component 217 intra predict a current block relative to blocks in a current frame as an alternative to inter prediction performed by the motion estimation component 221 and the motion compensation component 219 between frames, as described above. Specifically, the intra picture estimation component 215 determines an intra prediction mode to be used to encode the current block. In some examples, the intra picture estimation component 215 selects an appropriate intra prediction mode for encoding the current block from a plurality of tested intra prediction modes. The selected intra prediction mode is then forwarded to the header formatting and CABAC component 231 for encoding.
[0059] For example, the intra picture estimation component 215 calculates a rate-distortion value using a rate-distortion analysis for various tested intra prediction modes and selects an intra prediction mode with the best rate-distortion characteristics 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 encoded to produce the encoded block, as well as the bit rate (e.g., number of bits) used to produce the encoded block. The intra picture estimation component 215 calculates a ratio from the distortion and rate for the various encoded blocks to determine which intra prediction mode exhibits the best rate-distortion value for the block. In addition, the intra picture estimation component 215 may be configured to code a depth block of a depth map using a depth modeling mode (DMM) based on a rate-distortion optimization (RDO).
[0060] The intra-picture prediction component 217 may generate a residual block from the prediction block based on a selected intra-prediction mode determined by the intra-picture estimation component 215 when implemented on an encoder, or may read the residual block from a bitstream when implemented on a decoder. The residual block includes value differences between the prediction block and the original block, represented as a matrix. The residual block is then forwarded to the transform scaling and quantization component 213. The intra-picture estimation component 215 and the intra-picture prediction component 217 may operate on both luma and chroma components.
[0061] The transform scaling and quantization component 213 is configured to further compress the residual block. The transform scaling and quantization component 213 applies a transform, such as a discrete cosine transform (DCT), a discrete sine transform (DST), or a conceptually similar transform, to the residual block, resulting in a video block comprising residual transform coefficient values. A wavelet transform, an integer transform, a subband transform, or other types of transforms may also be used. The transform may convert the residual information from a pixel value domain to a transform domain, such as a frequency domain. The transform scaling and quantization component 213 is also configured to scale the transformed residual information, for example based on frequency. Such scaling involves applying a scale factor to the residual information such that different frequency information is quantized with different granularity, which may affect the final visual quality of the reconstructed video. The transform scaling and quantization component 213 is also configured to quantize 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, the transform scaling and quantization component 213 may then perform a scan of a matrix containing the quantized transform coefficients, which are forwarded to the header formatting and CABAC component 231 to be encoded in the bitstream.
[0062] The scaling and inverse transform component 229 applies the inverse operations of the transform scaling and quantization component 213 to support motion estimation. The scaling and inverse transform component 229 applies inverse scaling, transformation, and / or quantization to reconstruct a residual block in the pixel domain for later use as a reference block that may be, for example, a predictive block for another current block. The motion estimation component 221 and / or the motion compensation component 219 may calculate a reference block by adding the residual block back to the corresponding predictive block for use in motion estimation of a later block / frame. A filter is applied to the reconstructed reference block to mitigate artifacts created during the scaling, quantization, and transformation. Such artifacts may otherwise cause inaccurate predictions (and create further artifacts) when subsequent blocks are predicted.
[0063] The filter control analysis component 227 and the in-loop filter component 225 apply filters to the residual block and / or the reconstructed image block. For example, the transformed residual block from the scaling and inverse transform component 229 may be combined with the corresponding prediction block from the intra-picture prediction component 217 and / or the motion compensation component 219 to reconstruct the original image block. The filter may then be applied to the reconstructed image block. In some examples, the filter may instead be applied to the residual block. Like the other components of FIG. 2, the filter control analysis component 227 and the in-loop filter component 225 may be highly integrated and implemented together, but are illustrated separately for conceptual purposes. The filters applied to the reconstructed reference block are applied to a particular spatial region and include multiple parameters to adjust how such filters are applied. The filter control analysis component 227 analyzes the reconstructed reference block to determine where such filters should be applied and sets the corresponding parameters. Such data is forwarded as filter control data to the header formatting and CABAC component 231 for encoding. The in-loop filter component 225 applies such filters based on the filter control data. The filters may include a deblocking filter, a noise suppression filter, a SAO filter, and an adaptive loop filter. Such filters may be applied in the spatial / pixel domain (e.g., on the reconstructed pixel blocks) or in the frequency domain, depending on the example.
[0064] When operating as an encoder, the filtered reconstructed image blocks, residual blocks, and / or predictive blocks are stored in the decoded picture buffer component 223 for later use in motion estimation as discussed above. When operating as a decoder, the decoded picture buffer component 223 stores and forwards the reconstructed and filtered blocks to a display as part of an output video signal. The decoded picture buffer component 223 may be any memory device capable of storing predictive blocks, residual blocks, and / or reconstructed image blocks.
[0065] The header formatting and CABAC component 231 receives data from various components of the codec system 200 and encodes such data into a coded bitstream for transmission to a decoder. Specifically, the header formatting and CABAC component 231 generates various headers to encode control data, such as general control data and filter control data. Additionally, prediction data, including intra prediction and motion data, as well as residual data in the form of quantized transform coefficient data, are all encoded in the bitstream. The final bitstream contains all information desired by the decoder to reconstruct the original partitioned video signal 201. Such information may also include an intra prediction mode index table (also called a codeword mapping table), definitions of coding contexts for various blocks, indications of the most probable intra prediction mode, indications of partition information, and the like. Such data may be encoded by utilizing entropy coding. For example, the information may be encoded by utilizing context-adaptive variable length coding (CAVLC), CABAC, syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partitioned entropy (PIPE) coding, or another entropy coding technique. Following entropy coding, the coded bitstream may be transmitted to another device (eg, a video decoder) or archived for later transmission or retrieval.
[0066] 3 is a block diagram illustrating an example video encoder 300. The video encoder 300 may be utilized to implement the encoding functionality of the codec system 200 and / or to implement steps 101, 103, 105, 107, and / or 109 of the method of operation 100. The encoder 300 segments an input video signal, resulting in a segmented video signal 301 that is substantially similar to the segmented video signal 201. The segmented video signal 301 is then compressed and encoded into a bitstream by components of the encoder 300.
[0067] Specifically, the partitioned video signal 301 is forwarded to an intra-picture prediction component 317 for intra prediction. The intra-picture prediction component 317 may be substantially similar to the intra-picture estimation component 215 and the intra-picture prediction component 217. The partitioned video signal 301 is also forwarded to a motion compensation component 321 for inter prediction based on a reference block in a decoded picture buffer component 323. The motion compensation component 321 may be substantially similar to the motion estimation component 221 and the motion compensation component 219. The prediction block and the residual block from the intra-picture prediction component 317 and the motion compensation component 321 are forwarded to a transform and quantization component 313 for transforming and quantizing the residual block. The transform and quantization component 313 may be substantially similar to the transform scaling and quantization component 213. The transformed and quantized residual block and the corresponding prediction block (along with associated control data) are forwarded to an entropy coding component 331 for coding into a bitstream. The entropy coding component 331 may be substantially similar to the header formatting and CABAC component 231 .
[0068] The transformed and quantized residual block and / or the corresponding prediction block are also forwarded from the transform and quantization component 313 to the inverse transform and quantization component 329 for reconstruction into a reference block used by the motion compensation component 321. The inverse transform and quantization component 329 may be substantially similar to the scaling and inverse transform component 229. An in-loop filter in the in-loop filter component 325 is also applied to the residual block and / or the reconstructed reference block, depending on the example. The in-loop filter component 325 may be substantially similar to the filter control analysis component 227 and the in-loop filter component 225. The in-loop filter component 325 may include multiple filters as discussed with respect to the in-loop filter component 225. The filtered block is then stored in the decoded picture buffer component 323 for use as a reference block by the motion compensation component 321. The decoded picture buffer component 323 may be substantially similar to the decoded picture buffer component 223.
[0069] 4 is a block diagram illustrating an example video decoder 400. The video decoder 400 may be utilized to implement the decoding functionality of the codec system 200 and / or to perform steps 111, 113, 115, and / or 117 of the method of operation 100. The decoder 400 receives a bitstream, e.g., from the encoder 300, and generates a reconstructed output video signal based on the bitstream for display to an end user.
[0070] The bitstream is received by the entropy decoding component 433. The entropy decoding component 433 is configured to implement an entropy decoding scheme, such as CAVLC, CABAC, SBAC, PIPE coding, or other entropy coding techniques. For example, the entropy decoding component 433 may utilize header information to provide a context for interpreting additional data encoded as codewords in the bitstream. The decoded information includes any desired information for decoding the video signal, such as general control data, filter control data, partition information, motion information, prediction data, and quantized transform coefficients from the residual block. The quantized transform coefficients are forwarded to the inverse transform and quantization component 429 for reconstruction into the residual block. The inverse transform and quantization component 429 may be similar to the inverse transform and quantization component 329.
[0071] The reconstructed residual block and / or predictive block are forwarded to the intra picture prediction component 417 for reconstruction into an image block based on an intra prediction operation. The intra picture prediction component 417 may be similar to the intra picture estimation component 215 and the intra picture prediction component 217. Specifically, the intra picture prediction component 417 utilizes a prediction mode to locate a reference block in a frame and applies the residual block to the result to reconstruct an intra predicted image block. The reconstructed intra predicted image block and / or residual block and corresponding inter prediction data are forwarded to the decoded picture buffer component 423 via the in-loop filter component 425, which may be substantially similar to the decoded picture buffer component 223 and the in-loop filter component 225, respectively. The in-loop filter component 425 filters the reconstructed image block, the residual block, and / or the predictive block, and such information is stored in the decoded picture buffer component 423. The reconstructed image blocks from the decoded picture buffer component 423 are forwarded to the motion compensation component 421 for inter prediction. The motion compensation component 421 may be substantially similar to the motion estimation component 221 and / or the motion compensation component 219. Specifically, the motion compensation component 421 utilizes a motion vector from a reference block to generate a prediction block and applies a residual block to the result to reconstruct an image block. The resulting reconstructed block may also be forwarded to the decoded picture buffer component 423 via the in-loop filter component 425. The decoded picture buffer component 423 continues to store additional reconstructed image blocks, which may be reconstructed into frames via the partition information. Such frames may also be arranged into sequences. The sequences are output to a display as a reconstructed output video signal.
[0072] FIG. 5 is a schematic diagram illustrating an exemplary CVS 500 with leading pictures. For example, the CVS 500 may be encoded by an encoder, such as the codec system 200 and / or the encoder 300, according to the method 100. Furthermore, the CVS 500 may be decoded by a decoder, such as the codec system 200 and / or the decoder 400. The CVS 500 includes pictures coded in a decoding order 508, which is the order in which the pictures are positioned in a bitstream. The pictures of the CVS 500 are then output in a presentation order 510, which is the order in which the pictures should be displayed by a decoder to properly display the resulting video. For example, the pictures of the CVS 500 may be generally positioned in the presentation order 510. However, some pictures may be moved to different positions to increase coding efficiency, for example by placing similar pictures closer together to support inter-prediction. Moving such pictures in this manner results in the decoding order 508. In the example shown, the pictures are indexed in decoding order 508 from 0 to 4. In presentation order 510, the pictures at indexes 2 and 3 have been moved before the picture at index 0.
[0073] The CVS 500 includes an IRAP picture 502. The IRAP picture 502 is a picture coded according to intra prediction that serves as a random access point for the CVS 500. Specifically, blocks of the IRAP picture 502 are coded by reference to other blocks of the IRAP picture 502. Because the IRAP picture 502 is coded without reference to other pictures, the IRAP picture 502 can be decoded without first decoding any other pictures. Thus, a decoder can start decoding the CVS 500 at the IRAP picture 502. Furthermore, the IRAP picture 502 can cause the DPB to be refreshed. For example, most pictures presented after the IRAP picture 502 may not depend on the picture (e.g., picture index 0) before the IRAP picture 502 for inter prediction. Thus, the picture buffer can be refreshed when the IRAP picture 502 is decoded. This has the effect of stopping any inter-prediction related coding errors, since such errors cannot propagate through the IRAP picture 502. The IRAP picture 502 may include various types of pictures. For example, the IRAP picture may be coded as an Instantaneous Decoder Refresh (IDR) or Clean Random Access (CRA). An IDR is an intra-coded picture that starts a new CVS 500 and refreshes the picture buffer. A CRA is an intra-coded picture that acts as a random access point without starting a new CVS 500 or refreshing the picture buffer. In this way, a leading picture 504 associated with a CRA may reference a picture before the CRA, but a leading picture 504 associated with an IDR may not reference a picture before the IDR.
[0074] The CVS 500 also includes various non-IRAP pictures. These include leading pictures 504 and trailing pictures 506. The leading pictures 504 are pictures that are positioned after the IRAP picture 502 in the decoding order 508, but before the IRAP picture 502 in the presentation order 510. The trailing pictures 506 are positioned after the IRAP picture 502 in both the decoding order 508 and the presentation order 510. Both the leading pictures 504 and the trailing pictures 506 are coded according to inter prediction in most cases. The trailing pictures 506 are coded with reference to the IRAP picture 502 or pictures positioned after the IRAP picture 502. Thus, the trailing pictures 506 can always be decoded once the IRAP picture 502 is decoded. The leading pictures 504 may include random access skip ahead (RASL) pictures and random access decodable ahead (RADL) pictures. The RASL picture is coded with reference to a picture before the IRAP picture 502, but at a position after the IRAP picture 502. Because the RASL picture depends on the previous picture, the RASL picture cannot be decoded when the decoder starts decoding at the IRAP picture 502. Therefore, the RASL picture is skipped and not decoded when the IRAP picture 502 is used as a random access point. However, the RASL picture is decoded and displayed when the decoder uses the previous IRAP picture (before index 0, not shown) as a random access point. The RADL picture is coded with reference to the IRAP picture 502 and / or a picture after the IRAP picture 502, but is positioned before the IRAP picture 502 in the presentation order. Because the RADL picture does not depend on the picture before the IRAP picture 502, the RADL picture can be decoded and displayed when the IRAP picture 502 is a random access point.
[0075] 6A-6C are schematic diagrams collectively illustrating an example of interlaced video coding. Interlaced video coding generates an interlaced video frame 600, as shown in FIG. 6C, from a first picture 601 and a second picture 602, as shown in FIG. 6A and FIG. 6B. For example, interlaced video coding may be utilized by an encoder, such as codec system 200 and / or encoder 300, when encoding a video including interlaced video frame 600 as part of method 100. Additionally, a decoder, such as codec system 200 and / or decoder 400, may decode the video including interlaced video frame 600. Additionally, interlaced video frame 600 may be encoded into a CVS, such as CVS 500, as discussed in more detail below with respect to FIG. 7.
[0076] When performing interlaced video coding, as shown in FIG. 6A, a first field 610 is captured at a first time and encoded into a first picture 601. The first field 610 includes horizontal lines of video data. Specifically, the horizontal lines of video data in the first field 610 extend from a left boundary of the first picture 601 to a right boundary of the first picture 601. However, the first field 610 omits alternating rows of video data. In one example implementation, the first field 610 includes half of the video data captured by a video capture device at a first time.
[0077] As shown in FIG. 6B, the second field 612 is captured at a second time and encoded into the second picture 602. For example, the second time may immediately follow the first time by a value set based on the frame rate set for the video. For example, for a video set to display at a frame rate of 15 frames per second (FPS), the second time may be 1 / 15th of a second after the first time. As shown, the second field 612 includes horizontal lines of video data that complement the horizontal lines of the first field 610 of the first picture 601. Specifically, the horizontal lines of video data in the second field 612 extend from the left boundary of the second picture 602 to the right boundary of the second picture 602. The second field 612 includes horizontal lines omitted by the first field 610. In addition, the second field 612 omits horizontal lines included in the first field 610.
[0078] The first field 610 of the first picture 601 and the second field 612 of the second picture 602 may be combined for display at a decoder as an interlaced video frame 600 as shown in FIG. 6C. Specifically, the interlaced video frame 600 includes the first field 610 of the first picture 601 captured at a first time and the second field 612 of the second picture 602 captured at a second time. Such a combination has the visual effect of emphasizing and / or exaggerating motion. When displayed as part of a video, the series of interlaced video frames 600 creates the impression that the video is encoded at an improved frame rate without the need to actually encode additional frames. In this manner, interlaced video coding utilizing the interlaced video frames 600 can increase the effective frame rate of the video without an associated increase in video data size. Thus, interlaced video coding may improve the coding efficiency of an encoded video sequence.
[0079] 7 is a schematic diagram illustrating an example CVS 700 that utilizes both interlaced video coding and leading pictures, e.g., to create an interlaced video frame 600. CVS 700 is quite similar to CVS 500, but is modified to preserve leading pictures while encoding pictures with fields, such as first picture 601 and second picture 602. For example, CVS 700 may be encoded by an encoder, such as codec system 200 and / or encoder 300, according to method 100. Additionally, CVS 700 may be decoded by a decoder, such as codec system 200 and / or decoder 400.
[0080] CVS 700 has a decoding order 708 and a presentation order 710, which operate in a manner very similar to decoding order 508 and presentation order 510, respectively. CVS 700 also includes an IRAP picture 702, a leading picture 704, and a trailing picture 706, which are similar to IRAP picture 502, leading picture 504, and trailing picture 506. The difference is that IRAP picture 702, leading picture 704, and trailing picture 706 are all coded by utilizing fields in a manner very similar to first field 610 and second field 612, as described with respect to Figures 6A-6C. Thus, each frame includes two pictures. Thus, CVS 700 includes twice as many pictures as CVS 500. However, CVS 700 includes roughly the same amount of data as CVS 500, since the pictures of CVS 700 each omit half of a frame.
[0081] The problem with CVS 700 is that the IRAP picture 702 is encoded by including a first field of intra-predictive coded data. A second field of intra-predictive coded data is then included in a non-leading picture 703. The non-leading picture 703 is not an IRAP picture 702 because a decoder cannot start decoding the CVS 700 at the non-leading picture 703 because doing so would omit half the frame associated with the IRAP picture 702. This creates a problem because a video coding system that utilizes VVC may be constrained to position the leading picture 704 immediately after the IRAP picture 702 in the decoding order 708.
[0082] This disclosure allows the CVS 700 to be utilized by a VVC system. Specifically, a flag may be signaled to indicate when a single non-leading picture 703 is permitted to be positioned between the IRAP picture 702 and the leading picture 704. The video system may still be constrained to prevent the non-leading picture 703 and / or the back-end picture 706 from being positioned between the leading pictures 704. Thus, the flag may indicate that the decoding order 708 includes the IRAP picture 702, the single non-leading picture 703, any leading pictures 704 (e.g., the leading pictures 704 are optional and may be omitted in some examples), and then one or more back-end pictures 706. Thus, the flag may indicate to the decoder whether to expect the CVS 500 or the CVS 700. In some examples, the field_seq_flag in the SPS may be utilized for purposes as discussed below.
[0083] 8 is a schematic diagram illustrating an example bitstream 800 configured to include both interlaced video coding and leading pictures. For example, the bitstream 800 may be generated by the codec system 200 and / or the encoder 300 for decoding by the codec system 200 and / or the decoder 400 according to the method 100. Furthermore, the bitstream 800 may include the CVS 500 and / or 700. Thus, the bitstream 800 may include the first picture 601 and the second picture 602 that may be combined to create the interlaced video frame 600. Furthermore, the bitstream 800 may include leading pictures 504 and / or 704.
[0084] The bitstream 800 includes an SPS 810, a number of picture parameter sets (PPS) 811, a number of slice headers 815, and image data 820. The SPS 810 includes sequence data common to all pictures in a coded video sequence included in the bitstream 800. Such data may include picture size, bit depth, coding tool parameters, bit rate limits, etc. The PPS 811 includes parameters that apply to the entire picture. Thus, each picture in the video sequence may reference the PPS 811. Note that while each picture references the PPS 811, in some examples, a single PPS 811 may include data for multiple pictures. For example, multiple similar pictures may be coded according to similar parameters. In such cases, a single PPS 811 may include data for such similar pictures. The PPS 811 may indicate coding tools, quantization parameters, offsets, etc. available for slices in the corresponding picture. The slice header 815 includes parameters specific to each slice in the picture. Thus, there may be one slice header 815 for each slice in a video sequence. The slice header 815 may include slice type information, a picture order count (POC), a reference picture list, prediction weights, tile entry points, deblocking parameters, etc. Note that the slice header 815 may also be referred to as a tile group header in some contexts.
[0085] The image data 820 includes video data coded according to inter-prediction and / or intra-prediction, as well as corresponding transformed and quantized residual data. For example, a video sequence includes a number of frames 821. A frame 821 is a complete image intended for complete or partial display to a user at a corresponding instant in the video sequence. A frame 821 may include one or more pictures 823. In most contexts, a frame 821 includes a single picture 823. In such cases, a picture 823 image / frame 821 included in a single access unit (AU). However, in the context of interlaced video, a picture 823 is a field of horizontal lines included in an AU, such as the first field 610 or the second field 612. Thus, a frame 821 may be generated from two pictures 823 when utilizing interlaced video coding. A picture 823 includes one or more slices 825. A slice 825 may be defined as an integer number of complete tiles or an integer number of consecutive complete coding tree unit (CTU) rows (e.g., within a tile) of a picture 823 that are exclusively contained in a single network abstraction layer (NAL) unit. Thus, the slice 725 is further divided into CTUs and / or coding tree blocks (CTBs). The CTUs / CTBs are further divided into coding blocks based on the coding tree. The coding blocks may then be encoded / decoded according to a prediction mechanism.
[0086] The bitstream 800 may include a field_seq_flag 827. The field_seq_flag 827 may be set to a first value when any leading picture associated with the IRAP picture precedes all non-leading pictures associated with the IRAP picture in coding order, as shown in CVS 500. The flag may be set to a second value when a non-leading picture precedes the first leading picture associated with the IRAP picture in coding order, as shown in CVS 700, and no leading picture is positioned between the first and last leading pictures in decoding order. In this case, the IRAP picture contains the first field of the frame, and the non-leading picture preceding the first leading picture contains the second field of the frame. In the example shown, the field_seq_flag 827 may be included in the SPS 810. As a specific example, field_seq_flag 827 may be set to 1 when indicating that the coded video sequence includes pictures 823 that represent fields of frame 821, or may be set to 0 when indicating that the coded video sequence includes pictures 823 that each represent a complete frame 821. Thus, a decoder may read field_seq_flag 827 to determine when decoding the IRAP picture and one or more non-leading pictures should include interlacing a first field from the IRAP picture with a second field from a non-leading picture that precedes the first leading picture to create a single frame. Thus, field_seq_flag 827 allows interlaced video coding to be utilized in conjunction with the leading pictures. Thus, utilizing field_seq_flag 827 enhances the capabilities of an encoder and / or decoder. Additionally, utilizing field_seq_flag 827 may increase the coding efficiency of bitstream 800 by allowing an increase in effective frame rate without significantly increasing the amount of data required to code the video sequence.Thus, utilizing field_seq_flag 827 may reduce the usage of processor, memory, and / or network transmission resources in the encoder and / or decoder.
[0087] Now, the above information will be explained in more detail below in this specification. Although IRAP pictures provide various beneficial features, they create a penalty to compression efficiency. The presence of IRAP pictures may cause a bit rate spike. This penalty to compression efficiency may be caused by multiple reasons. For example, IRAP pictures are intra-predicted pictures, so IRAP pictures require more bits to represent compared to inter-predicted pictures. Furthermore, the presence of IRAP pictures may break temporal prediction. This is because the decoder may refresh the decoding process when it receives an IRAP picture, which results in the removal of previous reference pictures in the DPB. This may make the coding of pictures that are after the IRAP picture in the decoding order more inefficient, since such pictures have access to fewer reference pictures when performing inter-predictive coding.
[0088] Among the picture types used as IRAP pictures, IDR pictures may utilize different signaling and derivation compared to other picture types. Some of the differences are as follows: When signaling and / or deriving the POC value of an IDR picture, the most significant bit (MSB) portion of the POC may not be derived from the previous key picture. Instead, the MSB of the POC may be set equal to 0. Furthermore, the slice header of an IDR picture may not contain information to assist the decoder in performing reference picture management. For other picture types such as CRA, back-end, and temporal sub-layer access (TSA), information such as a reference picture set (RPS) or reference picture list may be included in the slice header and utilized for the reference picture marking process. The picture marking process is utilized to determine the status of a reference picture in the DPB as either being used for reference or not being used for reference. However, for IDR pictures, such information may not be signaled since the presence of the IDR indicates that the decoding process should simply mark all reference pictures in the DPB as not used for reference.
[0089] In addition, leading pictures may be associated with an IRAP. A leading picture is a picture that is after its associated IRAP picture in decoding order but before the IRAP picture in output order. Depending on the coding configuration and picture reference structure, leading pictures may be further distinguished into two types. The first type of pictures, known as RASL pictures, are leading pictures that may not be correctly decoded when the decoding process starts at the associated IRAP picture. This can happen because these leading pictures are coded with reference to pictures that are before the IRAP picture in decoding order. The second type of pictures, known as RADL pictures, are leading pictures that will be correctly decoded even when the decoding process starts at the associated IRAP picture. This is possible because these leading pictures are coded without reference, directly or indirectly, to any picture that is before the IRAP picture in decoding order. In some video coding systems, a RASL picture associated with an IRAP picture is constrained to be before a RADL picture associated with the same IRAP picture in output order.
[0090] The IRAP picture and the leading pictures may be given different NAL unit types so that they can be easily identified by system level applications. For example, a video splicer may understand the coded picture type without having to consider detailed syntax elements in the coded bitstream. For example, splicing may need to identify an IRAP picture from a non-IRAP picture and identify leading pictures, including determining RASL and RADL pictures from a trailing picture. A trailing picture is a picture that is associated with an IRAP picture and that is after the IRAP picture in output order. A current picture is associated with an IRAP picture when the current picture is after the IRAP picture in decoding order and before any other IRAP picture in decoding order. Thus, providing NAL unit types corresponding to IRAP pictures and leading pictures supports the functionality of such applications.
[0091] In some video coding systems, NAL unit types for IRAP pictures and leading pictures may include the following: Broken Link Access (BLA) with Leading Pictures (BLA_W_LP) is a NAL unit for a BLA picture that may be followed in decoding order by one or more leading pictures. BLA with RADL (BLA_W_RADL) is a NAL unit for a BLA picture that may be followed in decoding order by one or more RADL pictures but may not be followed by a RASL picture. BLA without Leading Pictures (BLA_N_LP) is a NAL unit for a BLA picture that may be followed in decoding order by one or more RADL pictures but may not be followed by a RASL picture. IDR with RADL (IDR_W_RADL) is a NAL unit for an IDR picture that may be followed in decoding order by one or more RADL pictures but may not be followed by a RASL picture. IDR without Leading Pictures (IDR_N_LP) is a NAL unit for an IDR picture that may be followed in decoding order by one or more RADL pictures but may not be followed by a RASL picture. A CRA is a NAL unit of a CRA picture that may be followed by leading pictures, including RASL and / or RADL pictures. A RADL is a NAL unit of a RADL picture. A RASL is a NAL unit of a RASL picture.
[0092] Other video coding systems may utilize the following NAL unit types for IRAP and leading pictures: IDR_W_RADL is a NAL unit of an IDR picture that may be followed in decoding order by one or more RADL pictures but may not be followed by a RASL picture. IDR_N_LP is a NAL unit of an IDR picture that is not followed by leading pictures in decoding order. CRA is a NAL unit of a CRA picture that may be followed by leading pictures such as RASL and / or RADL pictures. RADL is a NAL unit of a RADL picture. RASL is a NAL unit of a RASL picture.
[0093] For bitstream adaptation, some constraints may be applied to leading pictures, for example in HEVC and / or VVC systems. Such constraints are as follows: Each picture other than the first picture in the bitstream in decoding order may be considered to be associated with a previous IRAP picture in decoding order. When a picture is a leading picture of an IRAP picture, the picture shall be a RADL or RASL picture. When a picture is a trailing picture of an IRAP picture, the picture shall not be a RADL or RASL picture. When a picture is a leading picture of an IRAP picture, the picture shall be before all trailing pictures associated with the same IRAP picture in decoding order. A RASL picture shall not be associated with an IDR picture. A RADL picture shall not be associated with an IDR picture with nal_unit_type equal to IDR_N_LP. Note that random access may be performed at the position of an IRAP access unit by discarding all access units before the IRAP access unit. Such random access may result in correct decoding of the IRAP picture and all subsequent non-RASL pictures in decoding order. Assuming that the respective parameter set is available, such random access may be performed either in the bitstream or by external means such as user input when such parameter set should be activated. Furthermore, every picture that precedes the IRAP picture in decoding order shall precede the IRAP picture in output order and shall precede any RADL picture associated with the IRAP picture in output order. Any RASL picture associated with a CRA picture shall precede any RADL picture associated with the CRA picture in output order. Any RASL picture associated with a CRA picture shall follow in output order any IRAP picture that precedes the CRA picture in decoding order.
[0094] Therefore, the bitstream adaptation constraint on leading pictures as described above may conflict with interlaced video coding mechanisms. The conflict is as follows: When interlaced coding is used, the two fields of an IRAP picture are not both marked as IRAP pictures. Instead, only the first field is marked as an IRAP picture and the second field is marked as a back-end picture. The interlaced back-end picture containing the second field of the picture should immediately follow the interlaced IRAP picture in decoding order. This is because the interlaced IRAP picture and the interlaced back-end picture form a complete frame. If a leading picture is after an IRAP picture in decoding order, then the constraint stating that when a picture is a leading picture of an IRAP picture, the picture shall be before all back-end pictures associated with the same IRAP picture in decoding order is violated. The above constraints cannot be simply removed because they may help an external entity, such as a video splicer, in efficiently determining whether there are leading pictures associated with the IRAP and whether all leading pictures have been considered. Such an external entity may operate as follows: Starting from an IRAP picture, if the picture immediately following the IRAP picture is a back-end picture, the external entity may determine that there are no leading pictures associated with the IRAP picture. Thus, to find all leading pictures associated with the IRAP picture, the external entity may find the first back-end picture that is after the IRAP picture in the decoding order based on this constraint. Without the above constraint, the external entity may be required to look up to the next IRAP picture to find all leading pictures associated with the IRAP picture.
[0095] In general, this disclosure describes a method for handling leading pictures associated with an IRAP picture. More specifically, this disclosure describes a method for efficiently locating and identifying leading pictures associated with an IRAP picture while supporting efficient coding of interlaced video content. The description of this technique is based on the VVC standard by JVET of ITU-T and ISO / IEC. However, the technique may also be applied to other video codec standards.
[0096] To solve the problems listed above, the present disclosure includes the following aspects, which may be applied individually or in combination. For example, leading pictures associated with an IRAP picture may be positioned consecutively in decoding order with no non-leading pictures in between. Furthermore, the following constraints apply for bitstream adaptation of IRAP pictures and leading pictures: Let picA and picB be the first leading picture and the last leading picture associated with an IRAP picture, respectively. In such a case, there shall be no pictures that are not leading pictures after picA and before picB, respectively, in decoding order.
[0097] The following constraints may also apply: if field_seq_flag is set equal to 0 and the current picture is a leading picture associated with an IRAP picture, then the current picture is before all non-leading pictures associated with the same IRAP picture in decoding order. Otherwise, if field_seq_flag is set equal to 1, then let picA and picB be the first and last leading pictures, respectively, associated with the IRAP picture in decoding order. In such a case, there shall be at most one non-leading picture before picA in decoding order, and there shall be no non-leading picture after picA in decoding order that is before picB in decoding order.
[0098] The following constraints may also be applied: if general_frame_only_constraint_flag is equal to 1 and the current picture is a leading picture associated with an IRAP picture, then the current picture shall be before all non-leading pictures associated with the same IRAP picture in decoding order. Otherwise, if general_frame_only_constraint_flag is equal to 0, then let picA and picB be the first and last leading pictures, respectively, associated with the IRAP picture in decoding order. In such a case, there shall be at most one non-leading picture before picA in decoding order, and there shall be no non-leading picture after picA in decoding order and before picB in decoding order.
[0099] In one example, the NAL unit type of an IRAP picture provides sufficient information to determine whether there are leading pictures associated with the IRAP picture. For this purpose, the following method may be used: The NAL unit type CRA_NUT may be replaced with CRA_W_LP to indicate that the leading picture is associated with the CRA picture and / or with CRA_N_LP to indicate that the leading picture is not associated with the CRA picture. In another example, the NAL unit types IDR_W_RADL, IDR_N_LP, and CRA_NUT may be replaced with IRAP_W_LP to indicate that the leading picture is associated with the IRAP picture and with IRAP_N_LP to indicate that the leading picture is not associated with the IRAP picture.
[0100] In an example, the following may apply to CRA_W_LP, CRA_N_LP, IDR_W_RADL, and IDR_N_LP: An IDR picture with a NalUnitType equal to IDR_N_LP is not associated with any leading pictures present in the bitstream. An IDR picture with a NalUnitType equal to IDR_W_RADL is not associated with any RASL pictures present in the bitstream, and may be associated with a RADL picture in the bitstream. A CRA picture with a NalUnitType equal to CRA_N_LP is not associated with any leading pictures present in the bitstream. A CRA picture with a NalUnitType equal to CRA_W_LP may be associated with a leading picture in the bitstream.
[0101] In one example, the mapping of the above NAL unit types to Stream Access Point (SAP) types is as follows: IDR_N_LP and CRA_N_LP are associated with SAP type 1, IDR_W_RADL is associated with SAP type 2, and CRA_W_LP is associated with SAP type 3.
[0102] In an example, the following may apply to IRAP_W_LP and IRAP_N_LP: An IRAP picture with a NalUnitType equal to IRAP_N_LP is not associated with any leading pictures present in the bitstream. An IRAP picture with a NalUnitType equal to IRAP_W_LP may be associated with leading pictures in the bitstream.
[0103] In one example, the mapping of the above NAL unit types to SAP types is as follows: IRAP_N_LP is associated with SAP type 1, IRAP_W_LP is associated with SAP type 3, and so on.
[0104] In an example, to determine whether there is a leading picture associated with the IRAP, the device may check the NAL unit type of the IRAP picture. When the IRAP picture may be associated with one or more associated leading pictures, the following steps may be used to find all leading pictures associated with the IRAP picture. The device may start with the IRAP picture. If a picture immediately following the IRAP picture in decoding order is a non-leading picture, the picture may be ignored. Note that the presence of such a non-leading picture immediately following the IRAP picture may indicate that the bitstream is an interlaced video coding bitstream. The next picture shall be a leading picture. The process may continue checking the next picture until the first non-leading picture is encountered.
[0105] FIG. 9 is a schematic diagram of an exemplary video coding device 900. The video coding device 900 is suitable for implementing the disclosed examples / embodiments as described herein. The video coding device 900 comprises a downstream port 920, an upstream port 950, and / or a transceiver unit (Tx / Rx) 910 including a transmitter and / or a receiver for communicating data upstream and / or downstream over a network. The video coding device 900 also includes a processor 930 including a logic unit and / or a central processing unit (CPU) for processing data, and a memory 932 for storing data. The video coding device 900 may also comprise electrical components, optical-electrical (OE) components, electrical-optical (EO) components, and / or wireless communication components coupled to the upstream port 950 and / or the downstream port 920 for communication of data over an electrical communication network, an optical communication network, or a wireless communication network. The video coding device 900 may also include an input and / or output (I / O) device 960 for communicating data to and from a user. The I / O devices 960 may include output devices such as a display for displaying video data, speakers for outputting audio data, etc. The I / O devices 960 may also include input devices such as a keyboard, mouse, trackball, etc., and / or corresponding interfaces for interacting with such output devices.
[0106] The processor 930 is implemented by hardware and software. The processor 930 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 930 is in communication with downstream ports 920, Tx / Rx 910, upstream ports 950, and memory 932. The processor 930 comprises a coding module 914. The coding module 914 implements the disclosed embodiments described herein, such as methods 100, 1000, and 1100, which may utilize CVS 500, interlaced video frame 600, CVS 700, and / or bitstream 800. The coding module 914 may also implement any other method / mechanism described herein. Additionally, the coding module 914 may implement the codec system 200, the encoder 300, and / or the decoder 400. For example, the coding module 914 may set a flag in the SPS to indicate when a non-leading picture is positioned between the IRAP picture and the set of leading pictures. Thus, the coding module 914 enables the video coding device 900 to provide additional functionality and / or coding efficiency when coding video data. Thus, the coding module 914 improves the functionality of the video coding device 900 as well as addresses problems specific to the technology of video coding. Furthermore, the coding module 914 performs conversion of the video coding device 900 to a different state. Alternatively, the coding module 914 may be implemented as instructions stored in the memory 932 and executed by the processor 930 (e.g., as a computer program product stored in a non-transitory medium).
[0107] Memory 932 comprises one or more memory types such as a disk, a tape drive, a solid state drive, a read only memory (ROM), a random access memory (RAM), a flash memory, a ternary content addressable memory (TCAM), a static random access memory (SRAM), etc. Memory 932 may be used as an overflow data storage device for storing such programs when such programs are selected for execution and for storing instructions and data read during program execution.
[0108] 10 is a flowchart of an example method 1000 of encoding a video sequence, such as CVS 500 and / or 700, with interlaced video coding, such as interlaced video frame 600, and a preceding picture, into a bitstream, such as bitstream 800. Method 1000 may be utilized by an encoder, such as codec system 200, encoder 300, and / or video coding device 900, when performing method 100.
[0109] The method 1000 may start when an encoder receives a video sequence including a plurality of pictures and determines to encode the video sequence into a bitstream, for example based on user input. In step 1001, the encoder determines a coding order for the video sequence. The video sequence comprises a plurality of pictures, including an IRAP picture and one or more non-leading pictures associated with the IRAP picture. The video sequence may also optionally include one or more (e.g., a group) of leading pictures.
[0110] In step 1003, the encoder may code a flag into the bitstream. The flag may be set to a first value when any leading picture associated with the IRAP picture is before all non-leading pictures associated with the IRAP picture in coding order as in CVS500. This indicates that the video sequence does not include interlaced video. The flag may also be set to a second value when a non-leading picture is before the first leading picture associated with the IRAP picture in coding order as in CVS700. When the flag is set to the second value, the bitstream may also be constrained such that no leading picture is positioned between the first leading picture and the last leading picture in coding order. This may indicate that the video sequence includes interlaced video. As a particular example, the encoder may code an SPS into the bitstream, and the flag may be coded into the SPS. In some examples, the flag is field_seq_flag. For example, field_seq_flag may be set to 1 to indicate that the coded video sequence includes a picture representing a field. Further, field_seq_flag may be set to 0 when indicating that the coded video sequence includes a picture that represents a frame. Thus, the flag may be set to indicate that interlaced video coding is utilized in the bitstream. Thus, the flag may be set when an IRAP picture includes a first field of a frame and when a non-leading picture preceding the first leading picture includes a second field of the frame. For example, the first field from the IRAP picture and the second field from a non-leading picture preceding the first leading picture may include alternating lines of video data representing a single interlaced video frame, as illustrated with respect to Figures 6A-6C.
[0111] In step 1005, an encoder may encode the IRAP picture, any leading pictures associated with the IRAP picture, and one or more non-leading pictures associated with the IRAP picture into a bitstream in coding order. The encoder may then store the bitstream for communication to a decoder in step 1007.
[0112] 11 is a flowchart of an example method 1100 of decoding a video sequence, such as CVS 500 and / or 700, and preceding pictures involving interlaced video coding, such as interlaced video frame 600, from a bitstream, such as bitstream 800. Method 1100 may be utilized by a decoder, such as codec system 200, decoder 400, and / or video coding device 900, when performing method 100.
[0113] Method 1100 may begin when a decoder begins receiving a bitstream of coded data representing a video sequence, for example as a result of method 1000. At step 1101, the decoder receives a bitstream comprising a flag and a number of coded pictures including an IRAP picture and one or more non-leading pictures associated with the IRAP picture. The video sequence may also optionally include one or more (e.g., a group) of leading pictures.
[0114] In step 1103, the decoder may determine that when the flag is set to a first value, as shown in CVS500, any leading picture associated with the IRAP picture is in decoding order before all non-leading pictures associated with the IRAP picture. This indicates that the video sequence does not include interlaced video. In step 1105, the decoder may determine that when the flag is set to a second value, as shown in CVS700, the non-leading picture is in decoding order before the first leading picture associated with the IRAP picture. When the flag is set to a second value, the decoder may further determine that no leading picture is located between the first leading picture and the last leading picture in coding order. This may indicate that the video sequence includes interlaced video. As a particular example, the bitstream may include an SPS, and the flag may be obtained from the SPS. In some examples, the flag is field_seq_flag. For example, field_seq_flag may be set to 1 to indicate that the coded video sequence includes a picture representing a field. Additionally, field_seq_flag may be set to 0 when indicating that the coded video sequence includes a picture that represents a frame. Thus, the flag may be set to indicate that interlaced video coding is utilized in the bitstream. Thus, the flag may be set when the IRAP picture includes the first field of a frame and a non-leading picture that precedes the first leading picture includes the second field of the frame.
[0115] In step 1107, the decoder decodes the IRAP picture, any leading pictures associated with the IRAP picture, and one or more non-leading pictures associated with the IRAP picture in decoding order based on the flag. For example, decoding the IRAP picture, leading pictures (if any), and one or more non-leading pictures may include interlacing a first field from the IRAP picture and a second field from a non-leading picture that precedes the initial leading picture to create a single frame as shown with respect to Figures 6A-6C. In step 1109, the decoder may forward one or more decoded pictures as a result of step 1107 for display as part of the decoded video sequence.
[0116] 12 is a schematic diagram of an example system 1200 for coding a video sequence, such as CVS 500 and / or CVS 700, and a leading picture with interlaced video coding, such as interlaced video frame 600, into a bitstream, such as bitstream 800. System 1200 may be implemented by an encoder and a decoder, such as codec system 200, encoder 300, decoder 400, and / or video coding device 900. Additionally, system 1200 may be utilized when performing methods 100, 1000, and / or 1100.
[0117] The system 1200 includes a video encoder 1202. The video encoder 1202 comprises a determination module 1201 for determining a coding order for a video sequence comprising a plurality of pictures including an IRAP picture and one or more non-leading pictures associated with the IRAP picture. The video encoder 1202 further comprises an encoding module 1203 for encoding a flag into a bitstream, the flag being set to a first value when any leading picture associated with the IRAP picture precedes all non-leading pictures associated with the IRAP picture in the coding order, and the flag being set to a second value when the non-leading picture precedes a first leading picture associated with the IRAP picture in the coding order. The encoding module 1203 is further for encoding the IRAP picture, any leading pictures associated with the IRAP picture, and one or more non-leading pictures associated with the IRAP picture into a bitstream in the coding order. The video encoder 1202 further comprises a storage module 1205 for storing the bitstream for communication to a decoder. The video encoder 1202 further comprises a transmission module 1207 for transmitting the bitstream to the video decoder 1210. The video encoder 1202 may be further configured to perform any of the steps of the method 1000.
[0118] The system 1200 also includes a video decoder 1210. The video decoder 1210 comprises a receiving module 1211 for receiving a bitstream comprising a flag and a plurality of coded pictures including an IRAP picture and one or more non-leading pictures associated with the IRAP picture. The video decoder 1210 further comprises a determining module 1213 for determining that, when the flag is set to a first value, any leading pictures associated with the IRAP picture are in decoding order before all non-leading pictures associated with the IRAP picture. The determining module 1213 is further for determining, when the flag is set to a second value, the non-leading pictures are in decoding order before a first leading picture associated with the IRAP picture. The video decoder 1210 further comprises a decoding module 1215 for decoding the IRAP picture, any leading pictures associated with the IRAP picture, and one or more non-leading pictures associated with the IRAP picture in decoding order based on the flag. The video decoder 1210 further comprises a transfer module 1217 for transferring one or more decoded pictures for display as part of a decoded video sequence. The video decoder 1210 may be further configured to perform any of the steps of the method 1100.
[0119] A first component is directly coupled to a second component when there are no intervening components, other than a line, wire, or another medium between the first and second components. A first component is indirectly coupled to a second component when there are intervening components, other than a line, wire, or another medium, between the first and second components. The term "coupled" and variations thereof include both directly coupled and indirectly coupled. Use of the term "about" means a range that includes ±10% of the number thereafter, unless otherwise stated.
[0120] It should also be understood that the steps of the exemplary methods described herein need not necessarily be performed in the order described, and that the order of steps of such methods should be understood to be merely exemplary. Similarly, additional steps may be included in such methods, and some steps may be omitted or combined, in a manner consistent with various embodiments of the present disclosure.
[0121] Although several embodiments have been provided in this disclosure, it will 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. The examples should be considered illustrative rather than limiting, and the intention is not to be limited to the details given herein. For example, in another system, various elements or components may be combined or integrated, or certain features may be omitted or not implemented.
[0122] Additionally, the techniques, systems, subsystems, and methods described and illustrated in various embodiments as separate or distinct may be combined or integrated with other systems, components, techniques, or methods without departing from the scope of the disclosure. Other examples of changes, substitutions, and alterations will be ascertainable by one of ordinary skill in the art and may be made without departing from the spirit and scope disclosed herein. [Explanation of symbols]
[0123] 200 Codec System 201 Segmented Video Signal 211 Generic Coder Control Component 213 Transform Scaling and Quantization Components 215 Intra-picture Estimation Component 217 Intra-picture Prediction Component 219 Motion Compensation Component 221 Motion Estimation Component 223 Decoded Picture Buffer Component 225 In-Loop Filter Components 227 Filter Control Analysis Component 229 Scaling and Inverse Transformation Components 231 Header Formatting and CABAC Components 300 Encoder 301 Segmented Video Signal 313 Transform and Quantize Components 317 Intra-picture Prediction Component 321 Motion Compensation Component 323 Decoded Picture Buffer Component 325 In-Loop Filter Components 329 Inverse Transform and Quantization Components 331 Entropy Coding Component 400 Decoder 417 Intra-Picture Prediction Component 421 Motion Compensation Component 423 Decoded Picture Buffer Component 425 In-Loop Filter Components 429 Inverse Transform and Quantization Components 433 Entropy Decoding Component 500 CVS 502 IRAP Picture 504 Leading Picture 506 Rear end picture 508 Decoding Order 510 Presentation order 600 interlaced video frames 601 First Picture 602 Second Picture 610 First Field 612 Second Field 700 CVS 702 IRAP Picture 703 Non-leading picture 704 Leading Picture 706 Rear end picture 708 Decoding Order 710 Presentation order 725 slices 810 SPS 811 Picture Parameter Set (PPS) 815 slice header 820 Image data 821 Frames 823 Pictures 825 slices 900 Video Coding Device 910 Transceiver unit (Tx / Rx) 914 Coding Module 920 downstream ports 930 Processor 932 Memory 950 Upstream Ports 960 I / O Devices 1200 System 1201 Decision Module 1202 Video Encoder 1203 Encoding Module 1205 Memory Module 1207 Transmitter 1210 Video Decoder 1211 Receiver, receiving module 1213 Decision Module 1215 Decryption Module 1217 Transfer Module
Claims
1. A method implemented in a decoder, comprising the steps of: receiving, by a receiver of the decoder, a bitstream comprising a sequential field flag (field_seq_flag) and a plurality of coded pictures including an Intra Random Access Point (IRAP) picture and one or more non-leading pictures associated with the IRAP picture; determining, by a processor of the decoder, when the field_seq_flag is set to 0, that any leading pictures associated with the IRAP picture are before all non-leading pictures associated with the IRAP picture in decoding order; determining, by the processor when the field_seq_flag is set to 1, that only one non-leading picture is located in decoding order before a first leading picture associated with the IRAP picture, and that no non-leading pictures are located between the first and last leading pictures in decoding order; said field_seq_flag is set to 1 when the coded video sequence contains pictures representing fields, and said field_seq_flag is set to 0 when the coded video sequence contains pictures representing frames; A method comprising: applying, by the processor, a decoding process to the IRAP picture, any leading pictures associated with the IRAP picture, and the one or more non-leading pictures associated with the IRAP picture, in decoding order, based on whether the field_seq_flag is set to 0 or 1.
2. The method of claim 1 , wherein the bitstream includes a sequence parameter set (SPS), and the field_seq_flag is obtained from the SPS.
3. 3. The method of claim 1, wherein the IRAP picture comprises a first field of a frame and the non-leading picture preceding the first leading picture comprises a second field of the frame.
4. 4. The method of claim 3, wherein applying the decoding process to the IRAP picture and the one or more non-leading pictures comprises interlacing the first field from the IRAP picture and the second field from the non-leading picture that precedes the first leading picture to create a single frame.
5. 1. A method implemented in an encoder, comprising: determining, by a processor of the encoder, a coding order for a video sequence comprising a plurality of pictures including an intra random access point (IRAP) picture and one or more non-leading pictures associated with the IRAP picture; encoding, by the processor, a sequential field flag (field_seq_flag) into the bitstream, wherein the field_seq_flag is set to 0 when any leading picture associated with the IRAP picture precedes all non-leading pictures associated with the IRAP picture in coding order, the field_seq_flag is set to 1 when only one non-leading picture precedes a first leading picture associated with the IRAP picture in coding order and no non-leading pictures are positioned between the first and last leading pictures in decoding order, the field_seq_flag is set to 1 when the coded video sequence includes pictures representing fields, and the field_seq_flag is set to 0 when the coded video sequence includes pictures representing frames; encoding, by the processor, the IRAP picture, any leading pictures associated with the IRAP picture, and the one or more non-leading pictures associated with the IRAP picture into the bitstream in coding order.
6. The method of claim 5, wherein the bitstream includes a sequence parameter set (SPS), and the field_seq_flag is encoded into the SPS.
7. 7. The method of claim 5 or 6, wherein the IRAP picture comprises a first field of a frame and the non-leading picture preceding the first leading picture comprises a second field of the frame.
8. 8. The method of claim 7, wherein the first field from the IRAP picture and the second field from the non-leading picture that precedes the first leading picture comprise alternating lines of a single interlaced video frame.
9. 9. A video coding device comprising: a processor; a receiver coupled to the processor; a memory coupled to the processor; and a transmitter coupled to the processor, wherein the processor, receiver, memory, and transmitter are configured to perform the method of any one of claims 1 to 8.
10. A non-transitory computer-readable medium comprising a computer program product for use by a video coding device, the computer program product comprising computer-executable instructions stored on the non-transitory computer-readable medium that, when executed by a processor, causes the video coding device to perform a method according to any one of claims 1 to 8.
11. receiving means for receiving a bitstream comprising a sequential field flag (field_seq_flag) and a plurality of coded pictures including an intra random access point (IRAP) picture and one or more non-leading pictures associated with the IRAP picture; determining that, when the field_seq_flag is set to 0, any leading pictures associated with the IRAP picture are before all non-leading pictures associated with the IRAP picture in decoding order; determining means for determining that when the field_seq_flag is set to 1, only one non-leading picture is located in decoding order before a first leading picture associated with the IRAP picture, and no non-leading picture is located between the first and last leading pictures in decoding order; said field_seq_flag is set to 1 when the coded video sequence contains pictures representing fields, and said field_seq_flag is set to 0 when the coded video sequence contains pictures representing frames; a decoding means for applying a decoding process to the IRAP picture, any leading pictures associated with the IRAP picture, and the one or more non-leading pictures associated with the IRAP picture, in decoding order, based on whether the field_seq_flag is set to 0 or 1.
12. The decoder of claim 11, further configured to perform the method of any one of claims 1 to 4.
13. determining means for determining a coding order for a video sequence comprising a plurality of pictures including an intra random access point (IRAP) picture and one or more non-leading pictures associated with the IRAP picture; encoding a sequential field flag (field_seq_flag) into the bitstream, the field_seq_flag being set to 0 when any leading picture associated with the IRAP picture precedes all non-leading pictures associated with the IRAP picture in coding order, the field_seq_flag being set to 1 when only one non-leading picture precedes the first leading picture associated with the IRAP picture in coding order and no non-leading pictures are positioned between the first and last leading pictures in decoding order, the field_seq_flag being set to 1 when the coded video sequence includes pictures representing fields, and the field_seq_flag being set to 0 when the coded video sequence includes pictures representing frames; encoding the IRAP picture, any leading pictures associated with the IRAP picture, and the one or more non-leading pictures associated with the IRAP picture into the bitstream in coding order; and encoding means for performing the above.
14. The encoder of claim 13, further configured to perform the method of any one of claims 5 to 8.
15. A computer program product comprising a program code for performing the method according to any one of claims 1 to 8, when the computer program product is run on a computer or processor.
Citation Information
Patent Citations
Method and System for Processing HEVC Coded Video in Broadcast and Streaming Applications
US20160234527A1
Encoding device, encoding method, transmission device, decoding device, decoding method, and reception device
WO2015025747A1
Image processing device and method
WO2018150934A1
