Video coding bit stream extraction using identifier signaling
By including sub-picture information and flags in the sub-bitstream, the method addresses coding errors in sub-bitstream extraction, improving efficiency and reducing resource usage in video coding systems.
Patent Information
- Application Number
- JP2024131900
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2019-07-05
- Filing Date
- 2024-08-08
- Publication Date
- 2024-11-21
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing video coding technologies face challenges in efficiently extracting and decoding sub-bitstreams when only a subset of sub-pictures is present, leading to coding errors due to the inability to infer missing sub-picture information, which increases processor, memory, and network resource usage.
Incorporating a mechanism in the encoder and decoder to include sub-picture information and flags in the sub-bitstream, such as subpicture IDs and presence flags, to ensure correct decoding of subsets of sub-pictures, thereby preventing coding errors and improving efficiency.
This approach allows for efficient extraction and decoding of sub-bitstreams by reducing resource usage and preventing errors, enhancing coding efficiency and reducing the need to transmit entire bitstreams.
Smart Images

Figure 2024163124000001_ABST
Abstract
Description
[Technical field]
[0001] This patent application claims the benefit of U.S. Provisional Patent Application No. 62 / 870,892, filed on July 5, 2019 by Ye-Kui Wang and entitled “Handling Signalled Slice Id for Bitstream Extraction,” which is incorporated by reference into this application.
[0002] FIELD OF THE DISCLOSURE This disclosure relates generally to video coding, and more particularly to bitstream extraction in video coding. [Background technology]
[0003] The amount of video data required to render even a relatively short video is substantial, which can pose challenges when the data is to be streamed or otherwise communicated over a communications network with limited bandwidth capacity. Thus, video data is typically compressed before being communicated over modern telecommunications networks. The size of the video can also be an issue when the video is stored on a storage device, since memory resources can be limited. 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. With limited network resources and ever-increasing demands for higher video quality, improved compression and decompression techniques that improve compression ratios with little sacrifice of image quality are desirable. Summary of the Invention
[0004] In one embodiment, the disclosure includes a method implemented in a decoder, the method including: receiving, by a receiver of the decoder, an extracted bitstream that is the result of a sub-bitstream extraction process from an input bitstream that includes a set of sub-pictures, where the extracted bitstream includes only a subset of the sub-pictures of the input bitstream to the sub-bitstream extraction process; determining, by a processor of the decoder, a flag from the extracted bitstream that is set to indicate that sub-picture information related to the subset of sub-pictures is present in the extracted bitstream; obtaining, by the processor, one or more sub-picture identifiers (IDs) for the subset of sub-pictures based on the flag; decoding, by the processor, the subset of sub-pictures based on the sub-picture IDs, and decoding, by the processor, the subset of sub-pictures of the sub-pictures.
[0005] Some video coding sequences may include pictures that are encoded as a set of sub-pictures. A sub-picture may be associated with a sub-picture ID that can be used to indicate the location of the sub-picture relative to the picture. In some cases, such sub-picture information can be inferred. In such cases, this sub-picture information can be excluded from the bitstream to increase coding efficiency. Certain processes may extract a sub-bitstream from the bitstream for independent transmission to an end user. In such cases, the sub-bitstream includes only a subset of the sub-pictures that were included in the original bitstream. While the sub-picture information can be inferred when all sub-pictures are present, such inference may not be possible at the decoder when only a subset of the sub-pictures are present. This example includes a mechanism to prevent coding errors during sub-bitstream extraction. Specifically, when a sub-bitstream is extracted from a bitstream, the encoder and / or splicer includes sub-picture information for at least a subset of the sub-pictures in the sub-bitstream. Additionally, the encoder / splicer includes a flag indicating that the sub-picture information is included in the sub-bitstream. A decoder can read this flag, get the correct sub-picture information, and decode the sub-bitstream. Thus, the disclosed mechanism creates additional functionality in the encoder and / or decoder by avoiding errors. Furthermore, the disclosed mechanism may improve coding efficiency by enabling sub-bitstream extraction rather than transmitting the entire bitstream. This may reduce processor, memory, and / or network resource usage in the encoder and / or decoder.
[0006] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides further comprising obtaining, by the processor, a bit length of a syntax element that includes the one or more sub-picture IDs.
[0007] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that the flag, sub-picture ID, and length are obtained from a sequence parameter set (SPS) in the extracted bitstream.
[0008] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that the flag is a subpicture information present flag (subpic_info_present_flag).
[0009] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that the sub-picture ID is included within an SPS sub-picture identifier (sps_subpic_id[i]) syntax structure.
[0010] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that the length is included in the SPS subpic_id_len_minus1 plus 1 syntax structure.
[0011] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that a flag is required to be present for a coded layer video sequence (CLVS) for which sub-picture information is present and set to 1 to specify that each picture in the CLVS contains more than one sub-picture when the extracted bitstream is the result of a sub-bitstream extraction process from an input bitstream.
[0012] In one embodiment, the disclosure includes a method implemented in an encoder, the method including: encoding, by a processor of the encoder, an input bitstream including a set of sub-pictures; performing, by the processor, a sub-bitstream extraction process on the input bitstream to generate an extracted bitstream including only a subset of the sub-pictures of the input bitstream; encoding, by the processor, into the extracted bitstream one or more sub-picture IDs for the subset of sub-pictures in the extracted bitstream; setting, by the processor, a flag in the extracted bitstream to indicate that sub-picture information relating to the subset of sub-pictures is present in the extracted bitstream; and storing, by a memory coupled to the processor, the bitstream for communication to a decoder.
[0013] Some video coding sequences may include pictures that are encoded as a set of sub-pictures. A sub-picture may be associated with a sub-picture ID that can be used to indicate the location of the sub-picture relative to the picture. In some cases, such sub-picture information may be inferred. In such cases, this sub-picture information may be excluded from the bitstream to increase coding efficiency. Certain processes may extract a sub-bitstream from the bitstream for independent transmission to an end user. In such cases, the sub-bitstream includes only a subset of the sub-pictures that were included in the original bitstream. While the sub-picture information can be inferred when all sub-pictures are present, such inference may not be possible at the decoder when only a subset of the sub-pictures are present. This example includes a mechanism to prevent coding errors during sub-bitstream extraction. Specifically, when a sub-bitstream is extracted from a bitstream, the encoder and / or splicer includes sub-picture information for at least a subset of the sub-pictures in the sub-bitstream. Additionally, the encoder / splicer includes a flag indicating that the sub-picture information is included in the sub-bitstream. A decoder can read this flag, get the correct sub-picture information, and decode the sub-bitstream. Thus, the disclosed mechanism creates additional functionality in the encoder and / or decoder by avoiding errors. Furthermore, the disclosed mechanism may improve coding efficiency by enabling sub-bitstream extraction rather than transmitting the entire bitstream. This may reduce processor, memory, and / or network resource usage in the encoder and / or decoder.
[0014] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides for further including encoding, by the processor, a bit length of the syntax element including the one or more sub-picture IDs into the extracted bitstream.
[0015] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that the flag, sub-picture ID, and length are encoded into the SPS in the extracted bitstream.
[0016] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that the flag is subpic_info_present_flag.
[0017] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that the subpicture ID is included in the sps_subpic_id[i] syntax structure.
[0018] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that the length is included in the sps_subpic_id_len_minus1 plus 1 syntax structure.
[0019] Optionally, in any of the above aspects, another implementation of the aspect provides that a flag is required to be set to 1 to specify that sub-picture information is present for the CLVS and that each picture in the CLVS contains more than one sub-picture when the extracted bitstream is the result of a sub-bitstream extraction process from the input bitstream.
[0020] In one embodiment, the present disclosure includes a video coding device having: 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 aforementioned aspects.
[0021] In one embodiment, the present disclosure provides a non-transitory computer-readable medium including a computer program product for use by a video coding device, the computer program product including 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 of any of the aforementioned aspects.
[0022] In one embodiment, the disclosure includes a decoder having: receiving means for receiving an extracted bitstream that is the result of a sub-bitstream extraction process from an input bitstream that includes a set of sub-pictures, where the extracted bitstream includes only a subset of the sub-pictures of the input bitstream to the sub-bitstream extraction process; determining means for determining that a flag from the extracted bitstream is set to indicate that sub-picture information relating to the subset of sub-pictures is present in the extracted bitstream; obtaining means for obtaining one or more sub-picture IDs for the subset of sub-pictures based on the flag; decoding means for decoding the subset of sub-pictures based on the sub-picture IDs; and transferring means for transferring the subset of sub-pictures for display as part of a decoded video sequence.
[0023] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that the decoder is further configured to perform the method of any of the aforementioned aspects.
[0024] In one embodiment, the disclosure includes an encoder having: first encoding means for encoding an input bitstream including a set of sub-pictures; bitstream extraction means for performing a sub-bitstream extraction process on the input bitstream to generate an extracted bitstream including only a subset of the sub-pictures of the input bitstream; second encoding means for encoding one or more sub-picture IDs for the subset of sub-pictures in the extracted bitstream into the extracted bitstream; setting means for setting a flag in the extracted bitstream to indicate that sub-picture information associated with the subset of sub-pictures is present in the extracted bitstream; and storage means for storing the bitstream for communication to a decoder.
[0025] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that the encoder is further configured to perform the method of any of the aforementioned 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. [Brief description of the drawings]
[0028] For a more complete understanding of this disclosure, reference is now made to the following brief description, taken in conjunction with the accompanying drawings and detailed description, where like reference numerals represent like parts.
[0029] [Figure 1] 4 is a flowchart of an exemplary method for coding a video signal.
[0030] [Diagram 2] 1 is a schematic diagram of an example coding and decoding (codec) system for video coding.
[0031] [Diagram 3] 1 is a schematic diagram illustrating an example video encoder.
[0032] [Figure 4] FIG. 2 is a schematic diagram illustrating an exemplary video decoder.
[0033] [Diagram 5] FIG. 2 is a schematic diagram showing multiple sub-picture video streams extracted from a picture video stream;
[0034] [Figure 6] FIG. 2 is a schematic diagram illustrating an exemplary bitstream split into sub-bitstreams.
[0035] [Figure 7] 1 is a schematic diagram of an example video coding device.
[0036] [Figure 8] 1 is a flowchart of an example method for encoding a video sequence into a bitstream and extracting a sub-bitstream while mitigating ID errors.
[0037] [Figure 9] 1 is a flow diagram of an example method for decoding a video sequence from a sub-bitstream extracted from a bitstream.
[0038] [Figure 10] 1 is a schematic diagram of an example system for coding a video sequence of images in a bitstream and extracting sub-bitstreams while mitigating ID errors; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0039] First, while an example implementation of one or more embodiments is provided below, it should be understood that the disclosed systems and / or methods may be implemented using any number of technologies, whether currently known or in existence. The present disclosure is in no way limited to the example implementations, drawings, and technologies shown below, including the example designs and implementations shown and described herein, but may be modified within the scope of the appended claims, along with their full scope of equivalents.
[0040] The following terms are defined as follows, unless used in the present specification in a contrary context. Specifically, the following definitions are intended to provide further clarity to the present disclosure. However, terms may be described differently in different contexts. Therefore, the following definitions should be considered as supplementary and should not be considered as limiting other definitions provided for such terms in the present specification.
[0041] A bitstream is a sequence of bits that contains video data that is compressed for transmission between an encoder and a decoder. An encoder is a device configured to use an encoding process to compress video data into a bitstream. A decoder is a device configured to use a decoding process to reconstruct video data from the bitstream for display. A picture is an array of luma samples and / or chroma samples that generate a frame or a field thereof. The picture being encoded or decoded may be referred to as the current picture for clarity of discussion. A sub-picture is a rectangular region of one or more slices within a picture. A sub-bitstream extraction process is a specified mechanism that removes Network Abstraction Layer (NAL) units from a bitstream that are not part of a target set resulting in an output sub-bitstream that contains NAL units that are included in the target set. A NAL unit is a syntax structure that contains bytes of data and an indication of the type of data contained therein. NAL units include Video Coding Layer (VCL) NAL units, which contain video data, and non-VCL NAL units, which contain supporting syntax data. An input bitstream is a bitstream containing the complete set of NAL units before the application of the sub-bitstream extraction process. An extracted bitstream, also known as a sub-bitstream, is a bitstream that is output from the bitstream extraction process and contains a subset of the NAL units from the input bitstream. A set is a collection of individual items. A subset is a collection of items such that each item in the subset is included in the set and at least one item from the set is excluded from the subset. Subpicture information is any data that describes a subpicture. A flag is a data structure that contains a sequence of bits that can be set to indicate corresponding data.A subpicture identifier (ID) is a data item that uniquely identifies the corresponding subpicture. The length of the data structure is the number of bits contained in the data structure. A coded layered video sequence (CLVS) is a sequence of encoded video data that contains one or more layers of pictures. A CLVS is sometimes called a coded video sequence (CVS) when the CLVS contains a single layer or when the CLVS is discussed outside of a layer-specific context. A sequence parameter set (SPS) is a parameter set that contains data relating to a sequence of pictures. A decoded video sequence is a sequence of pictures that has been reconstructed by a decoder in preparation for presentation to a user.
[0042] 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 Transfer Unit (MTU), Network Abstraction Layer (NAL), Picture Order Count (POC), Raw Byte Sequence Payload (RBSP), Sequence Parameter Set (SPS), Sub-Picture Unit (SPU), Versatile Video Coding (VVC), and Working Draft (WD).
[0043] Many video compression techniques can be used to reduce the size of a video file with minimal data loss. For example, video compression techniques can 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 of neighboring blocks in the same picture. Video blocks in an intra-coded unidirectionally predictive (P) or bidirectionally predictive (B) slice of a picture may be coded by using spatial prediction with respect to reference samples in neighboring blocks in the same picture or by using 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 prediction block that represents an image block. Residual data represents pixel differences between the original image block and the prediction block. Thus, an intra-coded block is encoded according to a motion vector that points to a block of reference samples that form the prediction block and the residual data that indicates the difference between the coded block and the prediction block. An intra-coded block is encoded according to an intra-coding mode and the residual data. For further compression, the residual data may be transformed from the pixel domain to a transform domain.These result in residual transform coefficients, which may be quantized. The quantized transform coefficients may first be arranged in a two-dimensional array. The quantized transform coefficients may be scanned to generate a one-dimensional vector of transform coefficients. Entropy coding may be applied to achieve more compression. Such video compression techniques are described in more detail below.
[0044] To ensure that the encoded video is decoded accurately, the video is encoded and decoded according to a corresponding video coding standard. Video coding standards include Advanced Video Coding (AVC), also known as International Telecommunications Union (ITU-T) Standardization Sector (ITU-T) H.261, International Organization for Standardization / International Electrotechnical Commission (ISO / IEC) MPEG-1 Part 2, 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 begun development of a video coding standard called Versatile Video Coding (VVC). VVC is contained in working drafts (WDs), including JVET-N1001-v8.
[0045] A video coding sequence includes a sequence of pictures. In some cases, such a picture can be further partitioned into a set of sub-pictures, each sub-picture including a separate region of the picture. Sub-pictures allow different spatial portions of a picture to be treated differently at the decoder. For example, in a virtual reality (VR) context, only a portion of the entire picture is displayed to the user. Thus, sub-pictures can be used to transmit different parts of a picture to the decoder at different resolutions and / or even omit some parts of the picture. This can increase coding efficiency. In another example, a videoconferencing application can dynamically increase the size and / or resolution of an image of a participant who is actively speaking, and decrease the size and resolution of the participant's image when the participant stops speaking. Including each participant in a different sub-picture allows such dynamic changes for one participant without affecting the image for other participants. A sub-picture can be associated with a sub-picture ID. A sub-picture ID uniquely identifies the corresponding sub-picture. Thus, the sub-picture ID can be used to indicate the location of the sub-picture relative to the picture and / or to modify the sub-picture level coding process. In some cases, sub-picture information such as the sub-picture ID can be inferred. For example, if a picture contains nine sub-pictures, the sub-picture ID can be inferred by the decoder to be an index ranging from zero to eight. In such cases, this sub-picture information can be omitted from the bitstream to increase coding efficiency.
[0046] However, a process may extract a sub-bitstream from the bitstream for independent transmission to an end user. In such a case, the sub-bitstream contains only a subset of the sub-pictures that were included in the original bitstream. Although the sub-picture information can be inferred when all sub-pictures are present, such inference may not be possible at the decoder when only a subset of the sub-pictures are present. As an example, an encoder may transmit only sub-pictures 3 of 9 and sub-pictures 4 of 9 to the decoder. If the sub-picture information is omitted, the decoder may not be able to determine which sub-pictures have been received and how such sub-pictures should be displayed. In such a case, the bitstream is considered to be a conforming bitstream since the missing data associated with the bitstream can be inferred. However, the extracted sub-bitstream is not conforming since some missing data associated with the sub-bitstream cannot be inferred.
[0047] Disclosed herein is a mechanism for preventing coding errors during sub-bitstream extraction. Specifically, when a sub-bitstream is extracted from a bitstream, an encoder and / or splicer encodes sub-picture information for at least a subset of the sub-bitstream's sub-pictures into the sub-bitstream's parameters. Additionally, the encoder / splice includes a flag indicating that the sub-picture information is included in the sub-bitstream. A decoder can read the flag, obtain the correct sub-picture information, and decode the sub-bitstream. Such sub-picture information may include a sub-picture ID in a syntax element and a length data element indicating the bit length of the sub-picture ID syntax element. Thus, the disclosed mechanism creates additional functionality for the encoder and / or decoder by avoiding coding errors related to sub-pictures. Additionally, the disclosed mechanism may improve coding efficiency by enabling sub-bitstream extraction rather than transmitting the entire bitstream. This may reduce processor, memory, and / or network resource usage in the encoder and / or decoder.
[0048] 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 using 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, allowing the decoder to consistently reconstruct the video signal.
[0049] 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 an audio component and a video component. The video component includes a series of image frames that, when viewed in sequence, give the visual impression of motion. The frames include pixels represented in terms of light, referred to herein as luma components (or luma samples), and color, referred to herein as chroma components (or color samples). In some examples, the frames may also include depth values to support three-dimensional displays.
[0050] In step 103, the video is partitioned into blocks. Partitioning involves subdividing pixels in 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 divided into coding tree units (CTUs), which are blocks of a given size (e.g., 64 pixels by 64 pixels). A CTU contains both luma and chroma samples. The coding tree may be used to divide 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 relatively uniform illumination values. Furthermore, the chroma component of a frame may be subdivided until each block contains relatively uniform color values. Thus, the partitioning mechanism varies depending on the content of the video frame.
[0051] In step 105, various compression mechanisms are used to compress the image blocks partitioned in step 103. For example, inter-prediction and / or intra-prediction may be used. Inter-prediction is designed to take advantage of the fact that common scene objects tend to appear in consecutive 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 refer to the reference frame. A pattern matching mechanism may be used to match objects across multiple frames. Furthermore, moving objects may be represented across multiple frames, for example, due to object motion or camera motion. As a particular example, a video may show a car moving across the screen across multiple frames. To describe such motion, a motion vector may be used. A motion vector is a two-dimensional vector that provides an offset from the coordinates of the object in a frame to the coordinates of the object in the reference frame. In this manner, 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.
[0052] Intra prediction encodes blocks within a common frame. Intra prediction exploits the fact that luma and chroma components tend to cluster within a frame. For example, a green patch in a part of a tree tends to be located adjacent to similar green patches. Intra prediction uses multi-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 / identical to 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) can be interpolated based on neighboring blocks at the end of the row. The planar mode effectively indicates a smooth transition of light / color across the row / column by using a relatively constant slope in changing values. The DC mode is used for boundary smoothing, indicating that the block is similar / identical to the average associated with the samples of all neighboring blocks associated with the angular direction of the directional prediction mode. Thus, intra prediction blocks can represent image blocks as various related prediction mode values instead of actual values. Additionally, inter-prediction blocks can represent image blocks as motion vector values instead of actual values. In either case, the prediction block may not represent the image block exactly in some cases. Any differences are stored in a residual block. A transform may be applied to the residual block to further compress the file.
[0053] 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 described above may result in the generation of blocky images at the decoder. Furthermore, the block-based prediction scheme may encode a block and then reconstruct the encoded 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 encoded file can be accurately reconstructed. Furthermore, these filters mitigate artifacts in the reconstructed reference block, such that the artifacts are less likely to generate additional artifacts in subsequent blocks that are encoded based on the reconstructed reference block.
[0054] Once the video signal has been partitioned, compressed, and filtered, the resulting data is encoded into a bitstream in step 109. The bitstream includes the data described above, as well as any signaling data desired to support proper video signal reconstruction 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 a memory for transmission to the decoder upon request. The bitstream may also be broadcast and / or multicast to multiple decoders. The generation of the bitstream is an iterative process. Thus, steps 101, 103, 105, 107, and 109 may occur sequentially and / or simultaneously across many frames and blocks. The order depicted in FIG. 1 is shown for clarity and ease of discussion and is not intended to limit the video coding process to any particular order.
[0055] The decoder receives the bitstream and starts the decoding process in step 111. Specifically, the decoder uses an entropy decoding scheme to convert the bitstream into corresponding syntax and video data. The decoder uses syntax data from the bitstream to determine the partitions of the frame in step 111. The partitioning should be consistent with the result of the block partitioning in step 103. The entropy encoding / decoding used 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 choices based on the spatial positioning of values in the input image(s). Signaling of the exact choice may use a number of bins. As used herein, a bin is a binary value (e.g., a bit value that can change depending on the context) that is treated as a variable. Entropy coding allows the encoder to discard any options that are clearly infeasible in 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 options (e.g., one bin for two options, two bins for three to four options, etc.). The encoder then encodes the codeword for the selected option. This scheme reduces the size of the codeword since it is desirable for the codeword to be large enough to uniquely indicate a selection from a small subset of allowable options as opposed to uniquely indicating a selection from a potentially large set of all possible options. The decoder then decodes the selection by determining the set of allowable options in a similar manner as the encoder. By determining the set of allowable options, the decoder can read the codeword and determine the selection made by the encoder.
[0056] 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 prediction block to reconstruct an image block according to the partitioning. The prediction block may include both intra-prediction blocks and inter-prediction blocks, as generated in the encoder in step 105. The reconstructed image block is then positioned within 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 described above.
[0057] In step 115, filtering is performed on the frames of the reconstructed video signal in a manner similar to step 107 in the encoder. 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 can be output to a display in step 117 for viewing by an end user.
[0058] 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 show components used in both an encoder and a decoder. The codec system 200 receives and partitions a video signal, as described with respect to steps 101 and 103 of the operational method 100, resulting in a partitioned video signal 201. The codec system 200 then compresses the partitioned video signal 201 into a coded bitstream when operating as an encoder, as described 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 described with respect to steps 111, 113, 115, and 117 in 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. All of the components of codec system 200 may 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 described next.
[0059] The partitioned video signal 201 is a captured video sequence that has been partitioned into blocks of pixels by a coding tree. The coding tree uses various partitioning modes to subdivide the blocks of pixels into smaller blocks of pixels. These blocks can then be further subdivided into smaller blocks. The blocks can be referred to as nodes on the coding tree. Large parent nodes are divided into smaller child nodes. The number of times a node is subdivided is called the depth of the node / coding tree. In some cases, the partitioned blocks can be included in a coding unit (CU). For example, a CU can be a subpart of a CTU that includes a luma block, red difference chroma (Cr) block(s), and blue difference chroma (Cb) block(s) along with corresponding syntax instructions for the CU. The partitioning modes can include a binary tree (BT), a triple tree (TT), and a quad tree (QT), which are used to split a node into two, three, or four child nodes of different shapes, respectively, depending on the partitioning mode used. The partitioned 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.
[0060] The general coder control component 211 is configured to make decisions related to the coding of images of a video sequence into a bitstream according to application constraints. For example, the general coder control component 211 manages the optimization of bitrate / bitstream size versus reconstruction quality. Such decisions may be made based on storage / bandwidth availability and image resolution requirements. The general coder control component 211 also manages buffer utilization in light of transmission rate to mitigate buffer underrun and overrun issues. To manage these issues, the general coder control component 211 manages partitioning, prediction, and filtering by other components. For example, the general coder control component 211 may dynamically increase compression complexity to increase resolution and increase bandwidth usage, or decrease compression complexity to decrease resolution and bandwidth usage. Thus, the general coder control component 211 controls other components of the codec system 200 to balance bitrate concerns and video signal reconstruction quality. The general coder control component 211 generates control data that controls the operation of other components. Control data is also forwarded to the header format and CABAC component 231 to be encoded in the bitstream to signal parameters for decoding at the decoder.
[0061] 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 provide temporal prediction. The codec system 200 may perform multiple coding passes, for example to select an appropriate coding mode for each block of video data.
[0062] The motion estimation component 221 and the motion compensation component 219 may be highly integrated, but are illustrated 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 closely match a block to be coded in terms of pixel differences. A predictive block is also called a reference block. Such pixel differences may be determined by sum of absolute differences (SAD), sum of squared differences (SSD), or other difference metrics. HEVC uses several coded objects including CTUs, coding tree blocks (CTBs), and CUs. For example, CTUs are divided into CTBs, which are then divided into CBs for inclusion in CUs. CUs can be encoded as prediction units (PUs) that contain prediction data and / or transform units (TUs) that contain transform residual data of the CUs. The motion estimation component 221 generates the motion vectors, PUs, and TUs by using 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 a current block / frame and select the reference block, motion vector, etc. with the best rate-distortion characteristics. The best rate-distortion characteristics balance both 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).
[0063] In some examples, the codec system 200 may calculate values of 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 of quarter-pixel positions, eighth-pixel positions, or other fractional pixel positions of a reference picture. Thus, the motion estimation component 221 may perform a motion search for whole pixel positions and fractional pixel positions and output a motion vector with fractional pixel accuracy. The motion estimation component 221 calculates a motion vector of a PU of a video block in an inter-coded slice by comparing the position of the PU with the position of a predictive block of a reference picture. The motion estimation component 221 outputs the calculated motion vector as motion data to the header formatting and CABAC component 231 for encoding and outputs the motion to the motion compensation component 219.
[0064] The motion compensation performed by the motion compensation component 219 may include fetching or generating a predictive block based on a motion vector determined by the motion estimation component 221. Again, in some examples, the motion estimation component 221 and the motion compensation component 219 may be functionally integrated. Upon receiving the motion vector for the PU of the current video block, the motion compensation component 219 may identify the location of 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.
[0065] The partitioned video signal 201 is also sent to an intra-picture estimation component 215 and an intra-picture prediction component 217. As with 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 illustrated separately for conceptual purposes. The intra-picture estimation component 215 and the intra-picture prediction component 217 intra-predict the current block relative to blocks in the current frame, instead of the inter-prediction performed by the inter-frame motion estimation component 221 and the motion compensation component 219, as described above. In particular, the intra-picture estimation component 215 determines an intra-prediction mode to use for encoding 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-picture prediction modes. The selected intra-prediction mode is then forwarded to the header formatting and CABAC component 231 for encoding.
[0066] For example, the intra picture estimation component 215 calculates rate-distortion values using a rate-distortion analysis for various tested intra prediction modes and selects the 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 unencoded block that was encoded to generate the encoded block, and the bit rate (e.g., number of bits) used to generate 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 the depth block of the depth map using a rate-distortion optimization (RDO) based depth modeling mode (DMM).
[0067] 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 in an encoder, or may read the residual block from a bitstream when implemented in 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.
[0068] 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 to generate a video block including 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 the 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 may include applying a scale factor to the residual information such that different frequency information is quantized with different granularities, 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 for encoding in the bitstream.
[0069] The scaling and inverse transform component 229 applies the inverse operation 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 example, for use as a reference block that may later become a predictive block for another current block. The motion estimation component 221 and / or 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. Filters are applied to the reconstructed reference block to mitigate artifacts generated during the scaling, quantization, and transformation. Such artifacts may otherwise cause inaccurate predictions (and create additional artifacts) when subsequent blocks are predicted.
[0070] 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 be applied to the residual block instead. As with 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 shown separately for conceptual purposes. The filter applied to the reconstructed reference block is applied to a particular spatial region and includes multiple parameters to adjust how such a filter is applied. The filter control analysis component 227 analyzes the reconstructed reference block to determine where such a filter should be applied and sets the corresponding parameters. Such data is forwarded to the header format and CABAC component 231 as filter control data for encoding. The in-loop filter component 225 applies such filters based on the filter control data. The filters may include deblocking filters, noise suppression filters, SAO filters, and adaptive loop filters. Such filters may be applied in the spatial / pixel domain (e.g., of reconstructed pixel blocks) or in the frequency domain, depending on the example.
[0071] 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 described above. When operating as a decoder, the decoded picture buffer component 223 stores and forwards the reconstructed and filtered blocks towards a display as part of the 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.
[0072] 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 towards the decoder. In particular, the header formatting and CABAC component 231 generates various headers for encoding control data, such as general control data and filter control data. Furthermore, prediction data, including intra prediction and motion data, and residual data in the form of quantized transform coefficient data are all encoded into 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), a definition of the encoding context for various blocks, an indication of the most probable intra prediction mode, an indication of partition information, etc. Such data may be encoded by using entropy coding. For example, the information may be encoded by using Context-Adaptive Variable Length Coding (CAVLC), CABAC, Syntax-Based Context-Adaptive Binary Arithmetic Coding (SBAC), Probabilistic Interval Partitioned Entropy (PIPE) coding, or another entropy coding technique. Following entropy coding, the coded bitstream may be transmitted to another device (e.g., a video decoder) or archived for later transmission or retrieval.
[0073] 3 is a block diagram illustrating an example video encoder 300. The video encoder 300 may be used 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 partitions an input video signal, resulting in a partitioned video signal 301, which is substantially similar to the partitioned video signal 201. The partitioned video signal 301 is then compressed and encoded into a bitstream by components of the encoder 300.
[0074] 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 format and CABAC component 231 .
[0075] 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 of 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.
[0076] 4 is a block diagram illustrating an example video decoder 400, which may be used to implement the decoding functionality of codec system 200 and / or to implement steps 111, 113, 115, and / or 117 of method of operation 100. Decoder 400 receives a bitstream, for example, from encoder 300, and generates a reconstructed output video signal based on the bitstream for display to an end user.
[0077] 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 use 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 a video signal, such as general control data, filter control data, partition information, motion data, 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.
[0078] 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 uses a prediction mode to locate a reference block within 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 the 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 uses 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 that can be reconstructed into frames via the partition information. Such frames may also be arranged in a sequence. The sequence is output to a display as a reconstructed output video signal.
[0079] 5 is a schematic diagram illustrating multiple sub-picture video streams 501, 502, and 503 extracted from a picture video stream 500. For example, each of the sub-picture video streams 501-503 and / or the picture video stream 500 may be encoded by an encoder, such as codec system 200 and / or encoder 300, in accordance with method 100. Additionally, the sub-picture video streams 501-503 and / or the picture video stream 500 may be decoded by a decoder, such as codec system 200 and / or decoder 400.
[0080] The picture video stream 500 includes multiple pictures that are presented over time. As shown in FIG. 5, the picture video stream 500 is configured for use in a virtual reality (VR) application. VR works by coding a sphere of video content that can be displayed as if the user were at the center of the sphere. Each picture contains the entire sphere. Meanwhile, only a portion of the picture, known as a viewport, is displayed to the user. For example, a user may use a head mounted display (HMD) that selects and displays a viewport of the sphere based on the user's head movements. This gives the impression of being physically present in the virtual space depicted by the video. To achieve this result, each picture of a video sequence contains the entire sphere of video data at a corresponding instant in time. However, only a small portion of the image (e.g., a single viewport) is displayed to the user. The remaining parts of the picture are discarded at the decoder without being rendered. The entire picture may be transmitted such that different viewports can be dynamically selected and displayed depending on the user's head movements.
[0081] In the illustrated example, the pictures of the picture video stream 500 can each be subdivided into sub-pictures based on the available viewports. Thus, each picture and corresponding sub-picture includes a temporal location (e.g., picture order) as part of the temporal presentation. The sub-picture video streams 501-503 are created when the sub-division is applied consistently over time. Such consistent sub-division produces the sub-picture video streams 501-503, each of which includes a set of sub-pictures of a predefined size, shape, and spatial location relative to the corresponding picture in the picture video stream 500. Furthermore, the set of sub-pictures in the sub-picture video streams 501-503 vary in temporal location over the presentation time. Thus, the sub-pictures of the sub-picture video streams 501-503 can be aligned in the time domain based on their temporal location. The sub-pictures from the sub-picture video streams 501-503 at each temporal location can then be merged in the spatial domain based on the predefined spatial location to reconstruct the picture video stream 500 for display. Specifically, the sub-picture video streams 501-503 can each be encoded into a separate sub-bitstream. When such sub-bitstreams are merged together, they result in a bitstream that includes the entire set of pictures across time. The resulting bitstream can be sent to a decoder for decoding and displayed based on the user's currently selected viewport.
[0082] One of the problems with VR video is that all of the sub-picture video streams 501-503 may be transmitted to the user in high quality (e.g., high resolution). This allows the decoder to dynamically select the user's current viewport and display the sub-picture(s) from the corresponding sub-picture video streams 501-503 in real time. However, the user may only see a single viewport, for example from the sub-picture video stream 501, while the sub-picture video streams 502-503 are discarded. Transmitting the sub-picture video streams 502-503 in such high quality may use a significant amount of bandwidth without providing a corresponding benefit to the user. To improve coding efficiency, the VR video may be encoded into multiple video streams 500, where each video stream 500 is encoded at a different quality / resolution. In this way, the decoder may transmit a request for the current sub-picture video stream 501. In response, the encoder (or intermediate slicer or other content server) can select the high quality sub-picture video stream 501 from the high quality video stream 500 and the low quality sub-picture video streams 502-503 from the low quality video stream 500. The encoder can then merge such sub-bitstreams together into a fully encoded bitstream for transmission to the decoder. In this way, the decoder receives a sequence of images where the current viewport is of high quality and the other viewports are of lower quality. Furthermore, the highest quality sub-pictures are generally displayed to the user (without head movement) and the lower quality sub-pictures are generally discarded, which balances functionality and coding efficiency.
[0083] If the user changes from watching Sub-picture video stream 501 to Sub-picture video stream 502, the decoder requests that the new Sub-picture video stream 502 be transmitted at higher quality. The encoder can then change the merging mechanism accordingly.
[0084] Picture video stream 500 is included to illustrate a practical use of sub-pictures. It should be noted that sub-pictures have many uses and this disclosure is not limited to VR technology. For example, sub-pictures may also be used in videoconferencing systems. In such cases, each user's video feed is included in a sub-picture bitstream, such as sub-picture video streams 501, 502, and / or 503. The system can receive such sub-picture video streams 501, 502, and / or 503 and combine them at different positions, resolutions, etc. to generate a complete picture video stream 500 for transmission back to the user. This allows the videoconferencing system to dynamically modify picture video stream 500 based on changing user input, for example by increasing or decreasing the size of sub-picture video streams 501, 502, and / or 503 to emphasize users who are currently speaking or de-emphasis users who are no longer speaking. Sub-pictures therefore have many applications that allow for dynamic modification of the picture video stream 500 at run-time based on changes in user behavior. This functionality can be achieved by extracting and / or combining sub-picture video streams 501, 502, and / or 503 from and / or into the picture video stream 500.
[0085] 6 is a schematic diagram illustrating an exemplary bitstream 600 split into sub-bitstreams 601. Bitstream 600 may include a picture video stream, such as picture video stream 500, and sub-bitstream 601 may include sub-picture video streams, such as sub-picture video streams 501, 502, and / or 503. For example, bitstream 600 and sub-bitstream 601 may be generated by codec system 200 and / or encoder 300 and / or decoder 400 for decoding by codec system 200. As another example, bitstream 600 and sub-bitstream 601 may be generated by an encoder in step 109 of method 100 for use by a decoder in step 111.
[0086] The bitstream 600 includes a sequence parameter set (SPS) 610, a number of picture parameter sets (PPS) 611, a number of slice headers 615, and image data 620. The SPS 610 includes sequence data common to all pictures in the video sequence included in the bitstream 600. Such data may include picture size, bit depth, coding tool parameters, bit rate limits, etc. The PPS 611 includes parameters that apply to the entire picture. Thus, each picture in the video sequence may reference the PPS 611. Note that while each picture references the PPS 611, a single PPS 611 may include data for multiple pictures in some examples. For example, multiple similar pictures may be coded according to similar parameters. In such a case, a single PPS 611 may include data for such similar pictures. The PPS 611 may indicate coding tools available for slices in the corresponding picture, quantization parameters, offsets, etc. The slice header 615 includes parameters specific to each slice in the picture. Thus, there may be one slice header 615 per slice in a video sequence. The slice header 615 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 615 may also be referred to as a tile group header in some contexts. Note that in some examples, the bitstream 600 may also include a picture header, which is a syntax structure that includes parameters that apply to all slices in a single picture. For this reason, the picture header and the slice header 615 may be used interchangeably in some contexts. For example, a particular parameter may be moved between the slice header 615 and the picture header depending on whether such a parameter is common to all slices in a picture.
[0087] The image data 620 includes video data encoded according to inter-, intra-, and / or inter-layer prediction, as well as corresponding transformed and quantized residual data. For example, a video sequence includes a number of pictures 621. A picture 621 is an array of luma samples and / or an array of chroma samples that generate a frame or a field thereof. A frame is a complete image intended to be fully or partially displayed to a user at a corresponding instant in a video sequence. A picture 621 includes one or more slices. A slice may be defined as an integer number of complete tiles or an integer number of consecutive complete CTU rows (e.g., within a tile) of the picture 621 that are exclusively contained in a single NAL unit. A slice is further divided into CTUs and / or CTBs. A CTU is a group of samples of a predefined size that can be partitioned by a coding tree. A CTB is a subset of a CTU and includes the luma or chroma components of the CTU. The CTUs / CTBs are further divided into coding blocks based on the coding tree. The coding blocks can then be encoded / decoded according to a prediction mechanism.
[0088] Picture 621 can be divided into multiple sub-pictures 623 and 624. Sub-pictures 623 and / or 624 are rectangular regions of one or more slices within picture 621. Thus, each of the slices, and its sub-divisions, can be assigned to a sub-picture 623 and / or 624. This allows different regions of picture 621 to be treated differently from a coding perspective depending on which sub-pictures 623 and / or 624 are included in such region.
[0089] Sub-bitstream 601 may be extracted from bitstream 600 according to sub-bitstream extraction process 605. Sub-bitstream extraction process 605 is a specified mechanism that removes NAL units from the bitstream that are not part of a target set resulting in an output sub-bitstream that includes NAL units included in the target set. NAL units include slices. Thus, sub-bitstream extraction process 605 retains a target set of slices and removes other slices. The target set may be selected based on sub-picture boundaries. In the illustrated example, slices included in subpicture 623 are included in the target set and slices included in subpicture 624 are not included in the target set. As such, sub-bitstream extraction process 605 generates sub-bitstream 601 that is substantially similar to bitstream 600 but includes subpicture 623 while excluding subpicture 624. Sub-bitstream extraction process 605 may be performed by an encoder and / or associated slicer configured to dynamically modify bitstream 600 based on user behavior / requests.
[0090] Thus, sub-bitstream 601 is an extracted bitstream that is the result of sub-bitstream extraction process 605 applied to input bitstream 600. Input bitstream 600 includes a set of sub-pictures. However, the extracted bitstream (e.g., sub-bitstream 601) includes only a subset of the sub-pictures of input bitstream 600 to sub-bitstream extraction process 605. In the illustrated example, the set of sub-pictures included in input bitstream 600 includes sub-pictures 623 and 624, while the subset of sub-pictures of sub-bitstream 601 includes sub-picture 623 but not sub-picture 624. It should be noted that any number of sub-pictures 623-624 may be used. For example, bitstream 600 may include N sub-pictures 623-624, and sub-bitstream 601 may include N-1 or fewer sub-pictures 623, where N is any integer value.
[0091] The sub-bitstream extraction process 605 may generate coding errors in some cases. For example, the sub-pictures 623-624 may be associated with sub-picture information, such as a sub-picture ID. The sub-picture ID uniquely identifies a corresponding sub-picture, such as the sub-picture 623 or 624. The sub-picture ID may then be used to indicate the location of the sub-pictures 623-624 relative to the picture 621 and / or to modify the sub-picture level coding process. In some cases, the sub-picture information may be inferred based on the location of the sub-pictures 623-624. Thus, the bitstream 600 may omit such sub-picture information associated with the sub-pictures 623 and 624 to reduce the amount of data in the bitstream 600 for increased coding efficiency. However, if the sub-picture 623 or the sub-picture 624 is not present, the decoder may not be able to infer such sub-picture information. Thus, a simple sub-bitstream extraction process 605 may be applied to a conforming bitstream 600 to produce a non-conforming sub-bitstream 601. A bitstream 600 / sub-bitstream 601 conforms when it conforms to a standard such as VVC, and therefore can be correctly decoded by any decoder that also conforms to the standard. As such, a simple sub-bitstream extraction process 605 can convert a decodable bitstream 600 into a non-decodable sub-bitstream 601.
[0092] To address this issue, this disclosure includes an improved sub-bitstream extraction process 605. Specifically, the sub-bitstream extraction process 605 encodes sub-picture IDs for the sub-picture(s) 623 in the sub-bitstream 601, even if such sub-picture IDs are omitted from the bitstream 600. For example, the sub-picture IDs may be included in an SPS sub-picture identifier (sps_subpic_id[i]) syntax structure 635. The sps_subpic_id[i] syntax structure 635 is included in the SPS 610 and includes i sub-picture IDs, where i is the number of sub-picture(s) 623 included in the sub-bitstream 601. Additionally, the sub-bitstream extraction process 605 may also encode the length in bits of a syntax element (e.g., sps_subpic_id[i] syntax structure 635) that includes one or more sub-picture IDs in the extracted bitstream. For example, the length may be included in the SPS Subpic ID Length Minus 1 (sps_subpic_id_len_minus1) syntax structure 633. The sps_subpic_id_len_minus1 syntax structure 633 may contain the length in bits of the sps_subpic_id[i] syntax structure 635 minus 1 (minus 1). The minus 1 coding approach encodes the value as 1 less than the actual value to save bits. A decoder can derive the actual value by adding 1. Thus, the sps_subpic_id_len_minus1 syntax structure 633 may also be referred to as sps_subpic_id_len_minus1+1. Thus, a decoder can use the sps_subpic_id_len_minus1 syntax structure 633 to determine the number of bits associated with the sps_subpic_id[i] syntax structure 635, and can therefore use the sps_subpic_id_len_minus1 syntax structure 633 to interpret the sps_subpic_id[i] syntax structure 635.The decoder can then decode the subpicture 623 based on the sps_subpic_id_len_minus1 syntax structure 633 and the sps_subpic_id[i] syntax structure 635.
[0093] In addition, the sub-bitstream extraction process 605 may encode / set a flag in the sub-bitstream 601 to indicate that sub-picture information related to the sub-picture 623 is present in the sub-bitstream 601. As a particular example, the flag may be encoded as a sub-picture information present flag (subpic_info_present_flag) 631. Thus, the subpic_info_present_flag 631 may be set to indicate that sub-picture information related to a subset of the sub-pictures is present in the extracted bitstream (sub-bitstream 601), such as the sps_subpic_id_len_minus1 syntax structure 633 and the sps_subpic_id[i] syntax structure 635. Additionally, the decoder may read subpic_info_present_flag 631 to determine that subpicture information related to a subset of subpictures is present in the extracted bitstream (sub-bitstream 601), such as sps_subpic_id_len_minus1 syntax structure 633 and sps_subpic_id[i] syntax structure 635. As a particular example, the encoder / slicer may require that a flag be set to 1 to specify that subpicture information is present for a coded layered video sequence (CLVS) and that each picture 621 of the CLVS contains more than one subpicture 623 and 624 when the extracted bitstream (sub-bitstream 601) is the result of a sub-bitstream extraction process 605 from the input bitstream 600. A CLVS is a sequence of encoded video data that includes one or more layers of a picture. A layer is a set of NAL units that all have a particular layer ID value. The pictures 621 may or may not be organized into multiple layers, where all pictures 621 of a corresponding layer have similar characteristics, such as size, resolution, signal-to-noise ratio (SNR), etc.
[0094] The foregoing information is now described in more detail below. HEVC may use regular slices, dependent slices, tiles, and wavefront parallel processing (WPP) as partitioning schemes. These partitioning schemes may be applied for maximum transmission unit (MTU) size matching, parallel processing, and end-to-end delay reduction. Each regular slice may be encapsulated in a separate NAL unit. Entropy coding dependency and in-picture prediction, including intra-sample prediction, motion information prediction, and coding mode prediction, may be disabled across slice boundaries. Thus, regular slices can be reconstructed independently from other regular slices in the same picture. However, slices may still have some interdependencies due to loop filtering operations.
[0095] Regular slice-based parallelization may not require significant inter-processor or inter-core communication. One exception is that inter-processor and / or inter-core data sharing may be important for motion compensation when decoding predictively coded pictures. Such a process may involve more processing resources than inter-processor or inter-core data sharing for in-picture prediction. However, for the same reasons, the use of regular slices may result in substantial coding overhead due to the bit cost of slice headers and due to the lack of prediction across slice boundaries. Furthermore, regular slices also serve as a mechanism for bitstream partitioning to meet MTU size requirements due to the in-picture independence of regular slices and the fact that each regular slice is encapsulated in a separate NAL unit. In many cases, the goals of parallelization and MTU size matching conflict with requirements on the slice layout of a picture.
[0096] Dependent slices have short slice headers and allow bitstream partitioning at treeblock boundaries without breaking in-picture prediction. Dependent slices provide division of regular slices into multiple NAL units, which reduces end-to-end delay by allowing parts of a regular slice to be transmitted before the encoding of the entire regular slice is finished.
[0097] In WPP, a picture is partitioned into a single row of CTBs. Entropy decoding and prediction may use data from the CTBs of other partitions. Parallel processing is possible through parallel decoding of CTB rows. The start of decoding of a CTB row may be delayed by one or two CTBs, depending on the example, to ensure that data related to the CTB above and to the right of the subject CTB is available before the subject CTB is decoded. This staggered start creates the appearance of a wavefront. This process supports parallelization with up to as many processors / cores as the picture contains CTB rows. Inter-processor / inter-core communication to enable in-picture prediction may be important, since in-picture prediction between adjacent treeblock rows in a picture is possible. WPP partitioning does not result in the generation of additional NAL units. Therefore, WPP may not be used for MTU size matching. However, if MTU size matching is required, regular slices can be used with WPP with constant coding overhead.
[0098] Tiles define horizontal and vertical boundaries that partition the picture into tile columns and rows. The scan order of the CTBs may be local within a tile, in the order of the tile's CTB raster scan. Thus, a tile may be completely decoded before decoding the top-left CTB of the next tile in the order of the tile raster scan of the picture. As with regular slices, tiles break not only the entropy decoding dependency, but also the in-picture prediction dependency. However, tiles may not be included in individual NAL units. Thus, tiles may not be used for MTU size matching. Each tile can be processed by one processor / core. Inter-processor / inter-core communication used for in-picture prediction between processing units decoding adjacent tiles may be limited to conveying a shared slice header when a slice contains more than one tile and loop filtering related to sharing of reconstructed samples and metadata. When more than one tile or WPP segment is included in a slice, the entry point byte offset for each tile or WPP segment other than the first tile or WPP segment of the slice may be signaled in the slice header.
[0099] For simplicity, HEVC uses certain restrictions on the application of the four different picture partitioning schemes. A coded video sequence may not contain both tiles and wavefronts in most profiles specified in HEVC. Furthermore, for each slice and / or tile, one or both of the following conditions must be met: All coded treeblocks in a slice are contained in the same tile. Furthermore, all coded treeblocks in a tile are contained in the same slice. In addition, a wavefront segment contains exactly one CTB row. When WPP is used, slices that start within a CTB row must end in the same CTB row.
[0100] In VVC, tiles define horizontal and vertical boundaries that partition a picture into columns and rows of tiles. VVC allows tiles to be further divided horizontally to form bricks. Tiles that are not further divided can also be considered to be bricks. The scan order of the CTBs is changed to be local within a brick (e.g., the order of the CTB raster scan of the brick). The current brick is completely decoded before decoding the top-left CTB of the next brick in the brick raster scan order of the picture.
[0101] A slice in VVC may contain one or more bricks. Each slice is encapsulated in a separate NAL unit. Entropy coding dependencies and in-picture prediction, including intra-sample prediction, motion information prediction, and coding mode prediction, may be disabled across slice boundaries. Thus, regular slices can be reconstructed independently from other regular slices in the same picture. VVC includes rectangular slices and raster scan slices. A rectangular slice may contain one or more bricks that occupy a rectangular region in a picture. A raster scan slice may contain one or more bricks that are in the raster scan order of the bricks in the picture.
[0102] VVC-based WPP is similar to HEVC WPP, except that HEVC WPP has two CTU delays, while VVC WPP has one CTU delay. For HEVC WPP, a new decoding thread can start decoding the first CTU of an assigned CTU row after the first two CTUs of the previous CTU row have already been decoded. For VVC WPP, a new decoding thread can start decoding the first CTU of an assigned CTU row after the first CTU of the previous CTU row has been decoded.
[0103] Exemplary signaling of tiles, bricks, and slices in a PPS is as follows: [Table 1-1] [Table 1-2] [Table 1-3]
[0104] The prior system has some problems. For example, when a bitstream is initially encoded, slices in a picture in the bitstream may be partitioned into rectangular slices. In this case, slice IDs may be omitted from the PPS. In this case, the value of signalled_slice_id_flag may be set equal to zero in the PPS of the bitstream. However, when one or more rectangular slices from a bitstream are extracted to form another bitstream, slice IDs should be present in the PPS of the bitstream generated from such an extraction process.
[0105] Generally, this disclosure describes handling of signaled slice IDs to aid in the bitstream extraction process. The description of this technique is based on VVC, but may also be applied to other video codec specifications.
[0106] An exemplary mechanism for addressing the problems listed above is as follows: A method is disclosed for extracting one or more slices from a picture of a bitstream, denoted as bitstream A, and generating a new bitstream B from the extraction process. Bitstream A includes at least one picture. The picture includes multiple slices. The method includes parsing a parameter set from bitstream A and rewriting the parameters to bitstream B. The value of signalled_slice_id_flag is set to 1 in the rewritten parameter set. When the signalled_slice_id_length_minus1 syntax element is present in the parameter set of bitstream A, the value of signalled_slice_id_flag is copied to the rewritten parameter set. When the signalled_slice_id_length_minus1 syntax element is not present in the parameter set of bitstream A, the value of signalled_slice_id_flag is set in the rewritten parameter set. For example, signalled_slice_id_flag may be set to Ceil(Log2(num_slices_in_pic_minus1 + 1))-1, where num_slices_in_pic_minus1 is equal to the number of slices in the picture of bitstream A minus one. One or more slices are extracted from bitstream A. An extracted bitstream B is then generated.
[0107] Exemplary PPS semantics are as follows: signalled_slice_id_flag set to 1 may specify that the slice ID of each slice is signaled. signalled_slice_id_flag set to zero may specify that the slice ID is not signaled. When rect_slice_flag is equal to zero, the value of signalled_slice_id_flag may be inferred to be equal to zero. In case of a bitstream that is the result of a sub-bitstream extraction and the result contains a subset of the slices originally contained in the picture, the value of signalled_slice_id_flag should be set equal to 1 for the PPS. signalled_slice_id_length_minus1 plus 1 may specify the number of bits used to represent the syntax element slice_id[i], when present, and the syntax element slice_address of the slice header. The value of signalled_slice_id_length_minus1 may range from 0 to 15, inclusive. If not present, the value of signalled_slice_id_length_minus1 may be inferred to be equal to Ceil(Log2(num_slices_in_pic_minus1 + 1))-1. If the result is a sub-bitstream extraction, and the result is a bitstream that contains a subset of the slices originally contained in the picture, the value of signalled_slice_id_length_minus1 for the PPS should remain unchanged.
[0108] 7 is a schematic diagram of an example video coding device 700. The video coding device 700 is suitable for implementing the disclosed examples / embodiments as described herein. The video coding device 700 includes a downstream port 720, an upstream port 750, and / or a transceiver unit (Tx / Rx) 710 including a transmitter and / or a receiver for communicating data upstream and / or downstream over a network. The video coding device 700 also includes a processor 730 including a logic unit and / or a central processing unit (CPU) for processing data and a memory 732 for storing data. The video coding device 700 may also include electrical, optical-to-electrical (OE) components, electrical-to-optical (EO) components, and / or wireless communication components coupled to the upstream port 750 and / or the downstream port 720 for communication of data over an electrical, optical, or wireless communication network. Video coding device 700 may also include input and / or output (I / O) devices 760 for communicating data to and from a user. I / O devices 760 may include output devices such as a display for displaying video data, speakers for outputting audio data, etc. I / O devices 760 may also include input devices such as a keyboard, mouse, trackball, etc., and / or corresponding interfaces for interacting with such output devices.
[0109] The processor 730 is implemented by hardware and software. The processor 730 may be implemented as one or more CPU chips, cores (e.g., multi-core processors), field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), and digital signal processors (DSPs). The processor 730 is in communication with downstream ports 720, Tx / Rx 710, upstream ports 750, and memory 732. The processor 730 includes a coding module 714. The coding module 714 may implement the disclosed embodiments described herein, such as methods 100, 800, and / or 900, which may use the bitstream 600 and / or sub-bitstream 601 including the picture video stream 500 and / or the sub-picture video streams 501-503. The coding module 714 may also implement any other method / mechanism described herein. Furthermore, coding module 714 may implement codec system 200, encoder 300, and / or decoder 400. For example, coding module 714 can be used to extract sub-bitstreams from a bitstream, include sub-picture information in the sub-bitstream during the extraction process, and / or include a flag in the sub-bitstream to indicate that the sub-bitstream includes sub-picture information. Thus, coding module 714 allows video coding device 700 to provide additional functionality and / or coding efficiency when coding video data. Thus, coding module 714 improves the functionality of video coding device 700 and addresses problems specific to video coding techniques. Furthermore, coding module 714 affects the transformation of video coding device 700 into different states. Alternatively, coding module 714 is implemented as instructions stored in memory 732 and executed by processor 730 (e.g., as a computer program product stored in a non-transitory medium).
[0110] Memory 732 may include one or more memory types such as a disk, a tape drive, a solid state drive, read only memory (ROM), random access memory (RAM), flash memory, ternary content addressable memory (TCMA), static random access memory (SRAM), etc. Memory 732 may be used as an overflow data storage device to store programs when the programs are selected for execution and to store instructions and data retrieved during program execution.
[0111] 8 is a flow chart of an example method 800 for encoding a video sequence into a bitstream, such as bitstream 600, and extracting a sub-bitstream, such as sub-bitstream 601, while mitigating ID errors. Method 800 may be used by an encoder, such as codec system 200, encoder 300, and / or video coding device 700, when performing method 100 to encode picture video stream 500 and / or sub-picture video streams 501-503.
[0112] Method 800 may begin when an encoder receives a video sequence including multiple pictures and determines, for example based on user input, to encode the video sequence into a bitstream. In step 801, the encoder encodes an input bitstream, such as picture video stream 500 and / or bitstream 600, including a set of subpictures. For example, the bitstream may include VR video data and / or videoconferencing video data. The set of subpictures may include multiple subpictures. Additionally, the subpictures may be associated with a subpicture ID.
[0113] In step 803, the encoder and / or associated slicer performs a sub-bitstream extraction process on the input bitstream to generate an extracted bitstream, such as the sub-picture video streams 501-503 and / or the sub-bitstream 601. The extracted bitstream includes only a subset of the sub-pictures of the input bitstream. Specifically, the extracted bitstream includes only the sub-pictures included in the set of sub-pictures of the input bitstream. Furthermore, the extracted bitstream excludes one or more of the sub-pictures from the set of sub-pictures of the input bitstream. Thus, the input bitstream may include the CLVS of a picture and the extracted bitstream may include the CLVS of the sub-pictures of the picture.
[0114] In step 805, the encoder encodes into the extracted bitstream one or more subpicture IDs for a subset of the subpictures of the extracted bitstream. For example, such subpicture IDs may be excluded from the input bitstream. Thus, the encoder may encode such subpicture IDs into the extracted bitstream to support decoding of the subpictures included in the extracted bitstream. For example, the subpicture IDs may be included / encoded in a sps_subpic_id[i] syntax structure in the extracted bitstream.
[0115] In step 807, the encoder encodes the length in bits of the syntax element that includes one or more subpicture IDs into the extracted bitstream. For example, the length of the subpicture IDs may be excluded from the input bitstream. Thus, the encoder may encode the length of the subpicture IDs into the extracted bitstream to support decoding of the subpictures included in the extracted bitstream. For example, the length may be included / encoded in a sps_subpic_id_len_minus1 plus 1 syntax structure in the extracted bitstream.
[0116] In step 809, the encoder may set a flag in the extracted bitstream to indicate that subpicture information related to a subset of subpictures is present in the extracted bitstream. The flag may indicate to the decoder that a subpicture ID and / or a subpicture ID length is present in the extracted bitstream. For example, the flag may be subpic_info_present_flag. In a particular example, the flag is required to be set to 1 to specify that subpicture information is present in the CLVS (e.g., included in the input bitstream and / or the extracted bitstream) and that each picture in the CLVS contains more than one subpicture when the extracted bitstream is the result of a subbitstream extraction process from the input bitstream. In some examples, the flag, the subpicture ID, and the length are encoded into the SPS in the extracted bitstream.
[0117] In step 811, the encoder stores the bitstream for communication to the decoder. In some examples, the bitstream can then be transmitted to the decoder. For example, the bitstream can be transmitted to the decoder upon request by the decoder, for example based on a user request.
[0118] 9 is a flow chart of an example method 900 for decoding a video sequence from a sub-bitstream, such as sub-bitstream 601, extracted from a bitstream, such as bitstream 600. Method 900 may be used by a decoder, such as codec system 200, decoder 400, and / or video coding device 700, when performing method 100 to decode picture video stream 500 and / or sub-picture video streams 501-503.
[0119] Method 900 may begin when a decoder begins to receive a sub-bitstream extracted from a bitstream, for example as a result of method 800. In step 901, the decoder receives an extracted bitstream. The extracted bitstream is the result of a sub-bitstream extraction process from an input bitstream that includes a set of sub-pictures. The extracted bitstream includes only a subset of the sub-pictures of the input bitstream to the sub-bitstream extraction process. Specifically, the extracted bitstream includes only the sub-pictures included in the set of sub-pictures of the input bitstream. Furthermore, the extracted bitstream excludes one or more of the sub-pictures from the set of sub-pictures of the input bitstream. Thus, the input bitstream may include the CLVS of the picture, and the extracted bitstream may include the CLVS of the sub-pictures of the picture. The received extracted bitstream may also be referred to as a sub-bitstream. For example, the extracted bitstream may include a sub-picture(s) that includes VR video data and / or videoconferencing video data.
[0120] In step 903, the decoder determines that a flag from the extracted bitstream is set to indicate that sub-picture information related to a subset of sub-pictures is present in the extracted bitstream. The flag may indicate that a sub-picture ID and / or a length of the sub-picture ID is present in the extracted bitstream. For example, the flag may be subpic_info_present_flag. In a particular example, the flag is required to be set to 1 to specify that sub-picture information is present in the CLVS (e.g., included in the input bitstream and / or the extracted bitstream) and that each picture in the CLVS contains more than one sub-picture when the extracted bitstream is the result of a sub-bitstream extraction process from the input bitstream.
[0121] In step 905, the decoder obtains the length in bits of the syntax element that includes one or more subpicture IDs. For example, the length of the subpicture IDs may be excluded from the input bitstream but included in the extracted bitstream. For example, the length may be included in a sps_subpic_id_len_minus1 plus 1 syntax structure in the received extracted bitstream.
[0122] In step 907, the decoder obtains one or more sub-picture IDs for the subset of sub-pictures based on the flags and / or based on the lengths. For example, the decoder can use the flags to determine that sub-picture IDs are present. The decoder can then use the lengths to determine the boundaries of the sub-picture ID data in the bitstream. For example, the sub-picture IDs may be excluded from the input bitstream but included in the extracted bitstream. For example, the sub-picture IDs may be included in a sps_subpic_id[i] syntax structure in the extracted bitstream. In some examples, the flags, sub-picture IDs, and lengths are obtained from an SPS in the extracted bitstream.
[0123] In step 909, the decoder may decode a subset of the sub-pictures in the extracted bitstream based on the sub-picture IDs obtained in step 907. The decoder may then forward the subset of the sub-pictures in step 911 for display as part of the decoded video sequence.
[0124] 10 is a schematic diagram of an example system 1000 for coding a video sequence of pictures in a bitstream, such as bitstream 600, and extracting a sub-bitstream, such as sub-bitstream 601, while mitigating ID errors. Thus, system 1000 may be used to code picture video stream 500 and / or sub-picture video streams 501-503. System 1000 may be implemented by encoders and decoders, such as codec system 200, encoder 300, decoder 400, and / or video coding device 700. Additionally, system 1000 may be used when implementing methods 100, 800, and / or 900.
[0125] The system 1000 includes a video encoder 1002. The video encoder 1002 comprises a first encoding module 1001 for encoding an input bitstream including a set of sub-pictures. The video encoder 1002 further includes a bitstream extraction module 1004 for performing a sub-bitstream extraction process on the input bitstream to generate an extracted bitstream including only a subset of the sub-pictures of the input bitstream. The video encoder 1002 further includes a second encoding module 1003 for encoding one or more sub-picture IDs for the subset of sub-pictures in the extracted bitstream into the extracted bitstream. The video encoder 1002 further includes a setting module 1005 for setting a flag in the extracted bitstream to indicate that sub-picture information related to the subset of sub-pictures is present in the extracted bitstream. The video encoder 1002 further includes a storage module 1007 for storing the bitstream for communication to a decoder. The video encoder 1002 further includes a transmission module 1009 for transmitting the bitstream towards a video decoder 1010. The video encoder 1002 may be further configured to perform any of the steps of the method 800.
[0126] The system 1000 also includes a video decoder 1010. The video decoder 1010 has a receiving module 1011 for receiving an extracted bitstream that is a result of a sub-bitstream extraction process from an input bitstream that includes a set of sub-pictures, where the extracted bitstream includes only a subset of the sub-pictures of the input bitstream to the sub-bitstream extraction process. The video decoder 1010 further has a determining module 1013 for determining that a flag from the extracted bitstream is set to indicate that sub-picture information related to the subset of sub-pictures is present in the extracted bitstream. The video decoder 1010 further has an obtaining module 1015 for obtaining one or more sub-picture IDs for the subset of sub-pictures based on the flag. The video decoder 1010 further has a decoding module 1017 for decoding the subset of sub-pictures based on the sub-picture IDs. The video decoder 1010 further has a transport module 1019 for transporting the subset of sub-pictures for display as part of a decoded video sequence. The video decoder 1010 may be further configured to perform any of the steps of the method 900.
[0127] A first component is directly coupled to a second component when there are no intervening components, other than lines, traces, 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 lines, traces, or other 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 subsequent number, unless otherwise specified.
[0128] It should also be understood that the steps of the exemplary methods described herein do not necessarily have to be performed in the order described, and the order of steps of such methods should be understood to be merely exemplary. Similarly, additional steps may be included in such methods, and certain steps may be omitted or combined in methods consistent with various embodiments of the present disclosure.
[0129] Although several embodiments are provided in this disclosure, it will be understood that the disclosed systems and methods can be embodied in many other specific forms without departing from the spirit or scope of the disclosure. The examples should be considered as illustrative and not limiting, and the intention is not to be limited to the details given herein. For example, various elements or components may be combined or integrated into another system or features may be omitted or not implemented.
[0130] 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 present 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.
Claims
1. receiving a bitstream, the bitstream including a picture parameter set (PPS), the PPS including a first flag, the first flag equal to 1 indicating that a slice ID is present in the PPS, and the first flag equal to 0 indicating that a slice ID is not present in the PPS; parsing the first flag from the PPS, the value of the first flag being equal to 1 when the bitstream is the result of a sub-bitstream extraction and the bitstream includes coded data for one or more rectangular slices that are a subset of slices originally included in the picture; and decoding the one or more rectangular slices based on the first flag. Decoding methods.
2. The PPS further includes a loop_filter_across_slices_enabled_flag indicating whether in-loop filtering operations across slice boundaries are enabled for the picture.
2. The decoding method according to claim 1.
3. The PPS further includes num_slices_in_pic_minus1, which specifies the number of the rectangular slices in each picture that references the PPS. A decoding method according to claim 1 or 2.
4. encoding a picture parameter set (PPS) into a bitstream, the PPS including a first flag, the first flag equal to 1 indicating that a slice ID is present in the PPS and the first flag equal to 0 indicating that a slice ID is not present in the PPS; encoding one or more rectangular slices into the bitstream; the value of the first flag is set equal to 1 when the bitstream is the result of a sub-bitstream extraction and the bitstream includes coded data of one or more rectangular slices that are a subset of slices originally included in the picture; The encoding method.
5. The PPS further includes a loop_filter_across_slices_enabled_flag indicating whether in-loop filtering operations across slice boundaries are enabled for the picture. The encoding method of claim 4.
6. The PPS further includes num_slices_in_pic_minus1, which specifies the number of the rectangular slices in each picture that references the PPS.
6. An encoding method according to claim 4 or 5.
7. 4. A decoder having a processor and a memory, the memory configured to store computer executable instructions, and the processor configured to execute the computer executable instructions to perform a method according to any one of claims 1 to 3.
8. 7. An encoder having a processor and a memory, the memory configured to store computer-executable instructions, and the processor configured to execute the computer-executable instructions to perform a method according to any one of claims 4 to 6.
9. A device for storing a bitstream, the device having at least one memory and a receiver or a transmitter, the receiver is configured to receive one or more bitstreams; or the transmitter configured to transmit one or more bitstreams; the at least one memory configured to store the one or more bitstreams; the bitstream includes a picture parameter set (PPS), the PPS including a first flag, the first flag equal to 1 indicating that a slice ID is present in the PPS and the first flag equal to 0 indicating that a slice ID is not present in the PPS; the value of the first flag is equal to 1 when the bitstream is the result of a sub-bitstream extraction and the bitstream includes coded data of one or more rectangular slices that are a subset of slices originally included in the picture; device.
10. The PPS further includes a loop_filter_across_slices_enabled_flag indicating whether in-loop filtering operations across slice boundaries are enabled for the picture. The device of claim 9.
11. The PPS further includes num_slices_in_pic_minus1, which specifies the number of the rectangular slices in each picture that references the PPS. A device according to claim 9 or 10.
12. 13. A method of storing a bitstream, comprising: receiving a bitstream; or transmitting a bitstream; storing the bitstream, the bitstream including a Picture Parameter Set (PPS), the PPS including a first flag, the first flag equal to 1 indicating that a slice ID is present in the PPS, and the first flag equal to 0 indicating that a slice ID is not present in the PPS; the value of the first flag is equal to 1 when the bitstream is the result of a sub-bitstream extraction and the bitstream includes coded data of one or more rectangular slices that are a subset of slices originally included in the picture; method.
13. The PPS further includes a loop_filter_across_slices_enabled_flag indicating whether in-loop filtering operations across slice boundaries are enabled for the picture. The method of claim 12.
14. The PPS further includes num_slices_in_pic_minus1, which specifies the number of the rectangular slices in each picture that references the PPS.
14. The method according to claim 12 or 13.
Citation Information
Patent Citations
Cross-component prediction for video coding and clipping for adaptive color conversion
JP2018507622A
