Video decoding and coding method and device, video code stream storage method and device and storage medium
By decoding or encoding the segmentation information and scaling window information of the sub-picture in the syntax structure of the video sequence, the problem of low intra prediction and motion compensation efficiency in the prior art is solved, and more efficient video encoding and decoding is achieved.
Patent Information
- Application Number
- CN202410929819.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-06-27
- Filing Date
- 2022-06-28
- Publication Date
- 2024-11-01
AI Technical Summary
Existing video encoding and decoding technologies have limitations in reducing redundancy and improving compression rates. Especially in the application of intra prediction and motion compensation technologies, it is difficult to effectively process complex video content, resulting in low encoding efficiency.
A video decoding method is proposed, which reconstructs or encodes the sub-pictures of videos by decoding or encoding the segmentation information and scaling window information in the syntax structure of a video sequence, thereby improving the encoding efficiency. The method includes using flags in the video sequence to indicate whether the segmentation information or zoom window information of the sub-picture is represented, and performing corresponding operations based on these flags.
Improves the efficiency of video encoding and decoding, reduces bandwidth and storage requirements, and is suitable for a variety of video applications, especially in high resolution and high frame rate video content.
Smart Images

Figure CN118890484A_ABST
Abstract
Description
[0001] This application is a divisional application of an actively modified version of a patent application with an application date of June 28, 2022, Chinese patent application number 202280005952.5, and invention name “Video decoding method, device and computer-readable storage medium”. Technical Field
[0002] The embodiments of the present application describe embodiments generally related to video encoding and decoding. Background Art
[0003] The background description provided herein is for the purpose of presenting the content of the embodiments of the present application in general. The extent to which the work of the inventors currently named described in this background technology section and various aspects of this specification has been performed does not indicate that it qualifies as prior art when the present application is filed, and it is never explicitly or implicitly admitted as prior art to the content of the embodiments of the present application.
[0004] Image and / or video encoding and decoding may be performed using inter-picture prediction with motion compensation. An uncompressed digital image and / or video may include a series of pictures, each picture having a spatial size of, for example, 1920×1080 luma samples and associated chroma samples. The series of pictures may have a fixed or variable picture rate (also informally referred to as a frame rate) of, for example, 60 pictures per second or 60 Hz. Uncompressed images and / or videos have specific bit rate requirements. For example, 1080p60 4:2:0 video with 8 bits per sample (at a 60 Hz frame rate, with a resolution of 1920×1080 luma samples) requires a bandwidth of nearly 1.5 Gbit / s. One hour of such video requires more than 600 GB of storage space.
[0005] One purpose of image and / or video encoding and decoding can be to reduce redundancy in input image and / or video signals by compression. Compression can help reduce the above-mentioned bandwidth and / or storage space requirements, in some cases by two orders of magnitude or more. Although the description herein uses video encoding / decoding as an illustrative example, the same technology can be applied to image encoding / decoding in a similar manner without departing from the spirit of the embodiments of the present application. Lossless compression and lossy compression and their combinations can be used. Lossless compression refers to a technology that can reconstruct an exact copy of the original signal from the compressed original signal. When lossy compression is used, the reconstructed signal may be different from the original signal, but the distortion between the original signal and the reconstructed signal is small enough to make the reconstructed signal usable for the intended application. In the case of video, lossy compression is widely used. The amount of distortion that can be tolerated depends on the application; for example, users of certain consumer streaming applications can tolerate higher distortion than users of television distribution applications. The achievable compression rate can reflect that higher allowable / tolerable distortion can produce higher compression rates.
[0006] Video encoders and decoders may utilize techniques from several broad categories including, for example, motion compensation, transforms, quantization, and entropy coding.
[0007] Video codec techniques may include a technique known as intra-coding. In intra-coding, sample values are represented without reference to samples or other data from previously reconstructed reference pictures. In some video codecs, pictures are spatially subdivided into blocks of samples. When all sample blocks are encoded in intra-mode, the picture may be an intra-picture. Intra-pictures and their derivatives (e.g., independent decoder refresh pictures) can be used to reset the decoder state and can therefore be used as the first picture in an encoded video stream and video session, or as a still image. Samples of intra-blocks can be transformed, and transform coefficients can be quantized before entropy coding. Intra-prediction can be a technique for minimizing sample values in the pre-transform domain. In some cases, the smaller the DC value after the transform and the smaller the AC coefficient, the fewer bits are required to represent the block after entropy coding at a given quantization step size.
[0008] Traditional intra-frame coding known, for example, from coding techniques such as MPEG-2 does not use intra-frame prediction. However, some newer video compression techniques include techniques that attempt to do so based on surrounding sample data and / or metadata that precede the data block in decoding order, for example, obtained during spatially adjacent encoding and / or decoding. Such techniques are hereinafter referred to as "intra-frame prediction" techniques. It should be noted that, at least in some cases, intra-frame prediction uses only reference data from the current picture being reconstructed, and does not use reference data from reference pictures.
[0009] Intra-frame prediction can take many different forms. When more than one such technique is available for use in a given video coding technique, the technique in use may be encoded in an intra-frame prediction mode. In some cases, a mode may have sub-modes and / or parameters, which may be encoded separately or contained in a mode codeword. Which codeword is used for a given mode, sub-mode, and / or parameter combination may affect the coding efficiency gain through intra-frame prediction, and therefore may affect the entropy coding technique used to convert the codeword into a bitstream.
[0010] H.264 introduced a certain intra prediction mode, which was refined in H.265 and further refined in newer coding techniques such as the Joint Exploration Model (JEM), Next Generation Video Coding (VVC), and Benchmark Set (BMS). Neighboring sample values belonging to samples that are already available can be used to form a prediction block. Sample values of neighboring samples are copied into the prediction block according to a certain direction. A reference to the direction in use can be encoded in the bitstream, or it can be predicted itself.
[0011] refer to Figure 1A , depicted at the bottom right is a subset of 9 prediction directions known from the 33 possible prediction directions of H.265 (corresponding to the 33 angular modes of the 35 intra modes). The point (101) where the arrows converge represents the sample being predicted. The arrows represent the direction along which the sample is predicted. For example, arrow (102) indicates that sample (101) is predicted from one or more samples at the top right at an angle of 45 degrees to the horizontal. Similarly, arrow (103) indicates that sample (101) is predicted from one or more samples at the bottom left of sample (101) at an angle of 22.5 degrees to the horizontal.
[0012] Still reference Figure 1A , a square block (104) of 4×4 samples is depicted in the upper left (indicated by the bold dashed line). The square block (104) includes 16 samples, each of which is labeled with "S", its position in the Y dimension (e.g., row index), and its position in the X dimension (e.g., column index). For example, sample S21 is the second sample in the Y dimension (starting from the top) and the first sample in the X dimension (starting from the left). Similarly, sample S44 is the fourth sample in the block (104) in both the Y and X dimensions. Since the size of the block is 4×4 samples, S44 is located in the lower right corner. Reference samples are also shown that follow a similar numbering scheme. The reference samples are labeled with R, their Y position (e.g., row index) and X position (column index) relative to the block (104). In H.264 and H.265, prediction samples adjacent to the block being reconstructed are used; there is no need to use negative values.
[0013] Intra picture prediction may start by copying reference sample values from neighboring samples according to a signaled prediction direction. For example, assume that the encoded video bitstream includes signaling that indicates a prediction direction consistent with arrow (102) for the block, i.e., predicting samples from one or more prediction samples at the top right and at a 45 degree angle to the horizontal. In this case, samples S41, S32, S23, and S14 are predicted from the same reference sample R05. Sample S44 is then predicted from reference sample R08.
[0014] In some cases, the values of multiple reference samples may be combined, such as by interpolation, to compute the reference sample; particularly when the directions are not evenly separated by 45 degrees.
[0015] As video coding technology continues to develop, the number of possible directions increases. In H.264 (2003), nine different directions can be represented. In H.265 (2013), this increased to 33 directions, and at the time of the present application embodiment, JEM / VVC / BMS can support up to 65 directions. Experiments have been conducted to identify the most likely directions, and some techniques in entropy coding are used to represent those possible directions with a small number of bits, accepting a certain cost for less likely directions. In addition, the direction itself can sometimes be predicted from the adjacent directions used in the adjacent blocks that have been decoded.
[0016] Figure 1B A schematic diagram (110) is shown depicting 65 intra prediction directions according to JEM to illustrate the increase in the number of prediction directions over time.
[0017] The mapping of intra-prediction direction bits representing directions in the coded video bitstream may vary from one video coding technique to another; for example, it may range from a simple direct mapping of prediction directions to intra-prediction modes, to codewords, to complex adaptive schemes involving most probable modes, and similar techniques. However, in all cases, there may be certain directions that are statistically less likely to occur in the video content than certain other directions. Since the goal of video compression is to reduce redundancy, in a well-designed video coding technique, those less likely directions will be represented by more bits than more likely directions.
[0018] Motion compensation may be a lossy compression technique, and may involve the following technique: a block of sample data from a previously reconstructed picture or portion thereof (reference picture) is used to predict a newly reconstructed picture or picture portion after being spatially shifted in a direction indicated by a motion vector (hereafter MV). In some cases, the reference picture may be the same as the picture currently being reconstructed. The MV may have two dimensions, X and Y, or three dimensions, with the third dimension indicating the reference picture being used (indirectly, the third dimension may be a temporal dimension).
[0019] In some video compression techniques, the MV applicable to a region of sample data may be predicted based on other MVs, for example, based on other MVs related to another region of sample data that is spatially adjacent to the region being reconstructed and that precede the MV in decoding order. Doing so can greatly reduce the amount of data required to encode the MV, thereby eliminating redundancy and increasing compression. MV prediction can work effectively, for example, because when encoding an input video signal obtained from a camera (called natural video), there is a statistical probability that a larger area than the area for which a single MV applies moves in a similar direction, so in some cases, similar motion vectors derived from MVs of adjacent areas can be used to predict the larger area. This makes the MV considered to be for a given area similar or identical to the MV predicted from the surrounding MVs, and then after entropy coding, the MV can be represented with fewer bits than when the MV is encoded directly. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., MV) derived from the original signal (i.e., sample stream). In other cases, the MV prediction itself can be lossy, for example due to rounding errors when calculating the predicted value based on multiple surrounding MVs.
[0020] Various MV prediction mechanisms are described in H.265 / HEVC (ITU-T Recommendation H.265, "High Efficiency Video Coding", December 2016). Among the various MV prediction mechanisms provided by H.265, this article describes a technique referred to below as "spatial merging".
[0021] refer to Figure 2, the current block (201) includes samples that have been found by the encoder during the motion search process, which can be predicted from a previous block of the same size that has been spatially offset. Instead of encoding the MV directly, the MV can be derived from metadata associated with one or more reference pictures, for example using the MV associated with any of the five surrounding samples labeled A0, A1 and B0, B1, B2 (corresponding to 202 to 206), which is derived from the nearest reference picture (in decoding order). In H.265, MV prediction can use prediction values from the same reference picture that is being used by neighboring blocks. Summary of the invention
[0022] The present application provides a method for video decoding, including:
[0023] Decoding at least one of a first flag and a second flag in a syntax structure of a first picture in a coded video sequence (CVS);
[0024] The first picture includes a first sub-picture, the first flag indicates whether first sub-picture segmentation information of the first picture is signaled in the syntax structure, and the second flag indicates whether first sub-picture scaling window information of the first sub-picture is signaled in the syntax structure; and
[0025] Reconstruct a sub-picture of the first picture based on the first flag indicating that the first sub-picture segmentation information of the first picture is represented by a signal in the syntax structure, or based on the second flag indicating that the sub-picture scaling window information of the first picture is represented by a signal in the syntax structure.
[0026] The embodiment of the present application also provides a video encoding method for generating a video code stream, comprising:
[0027] encoding at least one of a first flag and a second flag in a syntax structure of the first picture;
[0028] The first picture includes a first sub-picture, the first flag indicates whether first sub-picture segmentation information of the first picture is signaled in the syntax structure, and the second flag indicates whether first sub-picture scaling window information of the first sub-picture is signaled in the syntax structure;
[0029] The sub-picture of the first picture is encoded based on the first flag indicating that the first sub-picture segmentation information of the first picture is represented by a signal in the syntax structure, or based on the second flag indicating that the sub-picture scaling window information of the first picture is represented by a signal in the syntax structure.
[0030] The embodiment of the present application further provides a device for video decoding, which is used to decode a video code stream, including:
[0031] a memory for storing program instructions; and
[0032] The processor is used to call the program instructions stored in the memory to implement the video decoding method according to the embodiment of the present application.
[0033] The embodiment of the present application further provides a device for video encoding, which is used to generate a video code stream, including:
[0034] a memory for storing program instructions; and
[0035] The processor is used to call the program instructions stored in the memory to implement the video encoding method according to the embodiment of the present application.
[0036] An embodiment of the present application also provides a non-transitory computer-readable storage medium, which stores a program that can be run by at least one processor to execute a method for video decoding.
[0037] The embodiment of the present application also provides a method for storing a code stream, storing a video code stream on a non-volatile computer-readable storage medium, wherein the video code stream is generated according to the encoding method described in the embodiment of the present application, or is decoded based on the decoding method described in the embodiment of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Further features, properties and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings, in which:
[0039] Figure 1A is a schematic illustration of an exemplary subset of intra prediction modes.
[0040] Figure 1B is a diagram of exemplary intra prediction directions.
[0041] Figure 2 Shown is a current block (201) and surrounding samples according to one embodiment.
[0042] Figure 3 is a schematic illustration of a simplified block diagram of a communication system (300) according to one embodiment.
[0043] Figure 4 is a schematic illustration of a simplified block diagram of a communication system (400) according to one embodiment.
[0044] Figure 5 is a schematic illustration of a simplified block diagram of a decoder according to one embodiment.
[0045] Figure 6 is a schematic illustration of a simplified block diagram of an encoder according to one embodiment.
[0046] Figure 7 A block diagram of an encoder according to another embodiment is shown.
[0047] Figure 8 A block diagram of a decoder according to another embodiment is shown.
[0048] Fig. 9 An example of a slice header including references to a picture parameter set (PPS), a sequence parameter set (SPS), and a video parameter set (VPS) according to one embodiment of the present application is shown.
[0049] Fig.10 An exemplary image including multiple picture-in-pictures according to one embodiment of the present application is shown.
[0050] Fig.11 An example of enhanced display of a local area according to one embodiment of the present application is shown.
[0051] Fig.12 An exemplary system design with sub-pictures and multiple layers according to one embodiment of the present application is shown.
[0052] Fig.13 An example of a reference sub-picture zoom window in a reference picture and a sub-picture zoom window in a sub-picture according to an embodiment of the present application is shown.
[0053] Fig.14A An exemplary sub-picture layout update process within a coded video sequence (CVS) according to one embodiment of the present application is shown.
[0054] Fig. 14B An exemplary sub-picture layout update process in a CVS according to an embodiment of the present application is shown.
[0055] Fig.15 An exemplary sub-picture layout in different layers in a CVS according to an embodiment of the present application is shown.
[0056] Fig.16 A flow chart outlining an encoding process according to one embodiment of the present application is shown.
[0057] Fig.17 A flow chart outlining a decoding process according to one embodiment of the present application is shown.
[0058] Fig.18is a schematic diagram of a computer system according to one embodiment. DETAILED DESCRIPTION
[0059] Figure 3 A simplified block diagram of a communication system (300) according to an embodiment of an embodiment of the present application is shown. The communication system (300) includes a plurality of terminal devices that can communicate with each other via, for example, a network (350). For example, the communication system (300) includes a first pair of terminal devices (310) and (320) interconnected via the network (350). Figure 3 In the example of , the first terminal device performs unidirectional data transmission on (310) and (320). For example, the terminal device (310) can encode video data (e.g., a video picture stream collected by the terminal device (310)) for transmission to another terminal device (320) via the network (350). The encoded video data can be transmitted in the form of one or more encoded video code streams. The terminal device (320) can receive the encoded video data from the network (350), decode the encoded video data to restore the video picture, and display the video picture based on the restored video data. Unidirectional data transmission may be common in applications such as media services.
[0060] In another example, the communication system (300) includes a second pair of terminal devices (330) and (340) that perform bidirectional transmission of encoded video data, which bidirectional transmission can occur, for example, during a video conference. For bidirectional data transmission, in one example, each of the terminal devices (330) and (340) can encode video data (e.g., a video picture stream collected by the terminal device) for transmission to the other terminal device (330) and (340) via a network (350). Each of the terminal devices (330) and (340) can also receive the encoded video data transmitted by the other terminal device (330) and (340), and can decode the encoded video data to restore the video picture, and can display the video picture on an accessible display device based on the restored video data.
[0061] exist Figure 3In the example of, terminal device (310), terminal device (320), terminal device (330) and terminal device (340) may be shown as a server, a personal computer and a smart phone, but the principle of the embodiment of the present application may not be limited to this. The embodiment of the embodiment of the present application finds application on a laptop computer, a tablet computer, a media player and / or a dedicated video conferencing device. Network (350) represents any number of networks that transmit encoded video data between terminal device (310), terminal device (320), terminal device (330) and terminal device (340), including, for example, wired (wired) and / or wireless communication networks. Communication network (350) can exchange data in circuit switching channels and / or packet switching channels. Representative networks include telecommunication networks, local area networks, wide area networks and / or the Internet. For the purpose of this discussion, unless otherwise described below, the architecture and topology of network (350) may be irrelevant to the operation of the embodiment of the present application.
[0062] As examples of applications for the disclosed subject matter, Figure 4 The placement of the video encoder and video decoder in a streaming environment is shown. The disclosed subject matter is equally applicable to other video-enabled applications including, for example, video conferencing, digital TV, storing compressed video on digital media including CDs, DVDs, memory sticks, etc., and the like.
[0063] The streaming system may include an acquisition subsystem (413), which may include a video source (401) such as a digital camera, which creates, for example, an uncompressed video picture stream (402). In one example, the video picture stream (402) includes samples captured by a digital camera. The video picture stream (402), which is depicted as a thick line to emphasize the high amount of data compared to the encoded video data (404) (or the encoded video bitstream), can be processed by an electronic device (420), which includes a video encoder (403) coupled to the video source (401). The video encoder (403) may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video data (404) (or the encoded video bitstream), which is depicted as a thin line to emphasize the lower amount of data compared to the video picture stream (402), can be stored on a streaming server (405) for future use. One or more streaming client subsystems, such as Figure 4The client subsystem (406) and the client subsystem (408) in the streaming server (405) can access the copy (407) and the copy (409) of the encoded video data (404). The client subsystem (406) may include, for example, a video decoder (410) in an electronic device (430). The video decoder (410) decodes the incoming copy (407) of the encoded video data and generates an output video picture stream (411) that can be presented on a display (412) (e.g., a display screen) or other presentation device (not depicted). In some streaming systems, the encoded video data (404), (407) and (409) (e.g., a video bitstream) can be encoded according to certain video encoding / compression standards. Examples of these standards include ITU-T Recommendation H.265. In one example, the video coding standard under development is informally referred to as next-generation video coding (VVC). The disclosed subject matter can be used in the context of VVC.
[0064] It should be noted that the electronic device (420) and the electronic device (430) may include other components (not shown). For example, the electronic device (420) may include a video decoder (not shown), and the electronic device (430) may also include a video encoder (not shown).
[0065] Figure 5 A block diagram of a video decoder (510) according to an embodiment of the present application is shown. The video decoder (510) may be included in an electronic device (530). The electronic device (530) may include a receiver (531) (e.g., a receiving circuit). The video decoder (510) may be used to replace Figure 4 A video decoder (410) in an example of FIG.
[0066] The receiver (531) may receive one or more encoded video sequences to be decoded by the video decoder (510); in the same or another embodiment, one encoded video sequence may be decoded at a time, wherein the decoding of each encoded video sequence is independent of the other encoded video sequences. The encoded video sequence may be received from a channel (501), which may be a hardware / software link leading to a storage device storing the encoded video data. The receiver (531) may receive the encoded video data and other data, such as encoded audio data and / or auxiliary data streams, which may be forwarded to their respective consuming entities (not depicted). The receiver (531) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (515) may be coupled between the receiver (531) and the entropy decoder / parser (520) (hereinafter referred to as "parser (520)"). In some applications, the buffer memory (515) is part of the video decoder (510). In other applications, the buffer memory (515) may be located external to the video decoder (510) (not depicted). In still other applications, a buffer memory (not depicted) may be provided external to the video decoder (510) to, for example, prevent network jitter, and another additional buffer memory (515) may be provided internal to the video decoder (510) to, for example, handle playout timing. When the receiver (531) receives data from a store / forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer memory (515) may not be required, or the buffer memory may be made smaller. For use on a traffic packet network such as the Internet, the buffer memory (515) may be required, the buffer memory (515) may be relatively large, advantageously may have an adaptive size, and may be implemented at least in part in an operating system or similar element (not depicted) external to the video decoder (510).
[0067] The video decoder (510) may include a parser (520) to reconstruct symbols (521) from the encoded video sequence. The categories of these symbols include information for managing the operation of the video decoder (510) and potential information for controlling a presentation device such as a presentation device (512) (e.g., a display screen) that is not an integral part of the electronic device (530) but can be coupled to the electronic device (530), such as Figure 5As shown. The control information for the rendering device may be in the form of auxiliary enhancement information (SEI message) or video usability information (VUI) parameter set fragments (not depicted). The parser (520) may parse / entropy decode the received coded video sequence. The encoding of the coded video sequence may be performed according to a video coding technique or standard, and may follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, etc. The parser (520) may extract a subgroup parameter set for at least one subgroup of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a group of pictures (GOP), a picture, a tile, a slice, a macroblock, a coding unit (CU), a block, a transform unit (TU), a prediction unit (PU), etc. The parser (520) may also extract information such as transform coefficients, quantizer parameter values, motion vectors, etc. from the coded video sequence.
[0068] The parser (520) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (515), thereby creating symbols (521).
[0069] Depending on the type of coded video picture or part of coded video picture (e.g., inter-picture and intra-picture, inter-block and intra-block) and other factors, the reconstruction of symbol (521) may involve multiple different units. Which units are involved and how they are involved can be controlled by the parser (520) through subgroup control information parsed from the coded video sequence. For clarity, such subgroup control information flow between the parser (520) and the multiple units below is not depicted.
[0070] In addition to the functional blocks already mentioned, the video decoder (510) can be conceptually subdivided into a number of functional units as described below. In actual implementations operating under commercial constraints, many of these units interact closely with each other and may be at least partially integrated with each other. However, for the purposes of describing the disclosed subject matter, the conceptual subdivision into the following multiple functional units is appropriate.
[0071] The first unit is a sealer / inverse transform unit (551). The sealer / inverse transform unit (551) receives quantized transform coefficients as symbols (521) from the parser (520) and control information including which transform to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (551) may output a block including sample values, which may be input into an aggregator (555).
[0072] In some cases, the output samples of the scaler / inverse transform unit (551) may belong to an intra-coded block; that is, a block that does not use prediction information from a previously reconstructed picture, but may use prediction information from a previously reconstructed portion of the current picture. Such prediction information may be provided by an intra-picture prediction unit (552). In some cases, the intra-picture prediction unit (552) uses surrounding reconstructed information extracted from the current picture buffer (558) to generate a block of the same size and shape as the block being reconstructed. For example, the current picture buffer (558) buffers a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (555) adds the prediction information generated by the intra-prediction unit (552) to the output sample information provided by the scaler / inverse transform unit (551) on a per-sample basis.
[0073] In other cases, the output samples of the scaler / inverse transform unit (551) may belong to a block that is inter-coded and potentially motion compensated. In this case, the motion compensated prediction unit (553) may access the reference picture memory (557) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (521) belonging to the block, these samples may be added to the output of the scaler / inverse transform unit (551) (in this case, referred to as residual samples or residual signals) by the aggregator (555) to generate output sample information. The extraction of prediction samples by the motion compensated prediction unit (553) from the address in the reference picture memory (557) may be controlled by a motion vector, which may be provided to the motion compensated prediction unit (553) in the form of symbols (521), which may have, for example, an X component, a Y component, and a reference picture component. Motion compensation may also include interpolation of sample values extracted from the reference picture memory (557) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, etc.
[0074] The output samples of the aggregator (555) may be subjected to various loop filtering techniques in a loop filter unit (556). The video compression techniques may include in-loop filter techniques controlled by parameters included in the coded video sequence (also referred to as a coded video bitstream) and available to the loop filter unit (556) as symbols (521) from the parser (520), however, the video compression techniques may also be responsive to meta-information obtained during decoding of a previous (in decoding order) portion of a coded picture or coded video sequence, and to previously reconstructed and loop filtered sample values.
[0075] The output of the loop filter unit (556) may be a sample stream that may be output to a rendering device (512) and stored in a reference picture memory (557) for future inter-picture prediction.
[0076] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. For example, once the coded picture corresponding to the current picture is fully reconstructed, and the coded picture is identified as a reference picture (e.g., by the parser (520)), the current picture buffer (558) may become part of the reference picture memory (557), and a new current picture buffer may be reallocated before starting to reconstruct a subsequent coded picture.
[0077] The video decoder (510) may perform decoding operations according to a predetermined video compression technique in a standard such as ITU-T H.265 Recommendation. The encoded video sequence may conform to the syntax specified by the video compression technology or standard used in the sense that the encoded video sequence follows the syntax of the video compression technology or standard and the profile recorded in the video compression technology or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technology or standard as the only tools available for use under the profile. For compliance, the complexity of the encoded video sequence may also be required to be within the range defined by the hierarchy of the video compression technology or standard. In some cases, the hierarchy limits the maximum picture size, the maximum frame rate, the maximum reconstruction sampling rate (measured in, for example, mega samples per second), the maximum reference picture size, etc. In some cases, the limits set by the hierarchy may be further limited by the hypothetical reference decoder (HRD) specification and metadata of the HRD buffer management signaled in the encoded video sequence.
[0078] In one embodiment, the receiver (531) can receive additional (redundant) data when receiving the encoded video. The additional data can be included as part of the encoded video sequence. The additional data can be used by the video decoder (510) to properly decode the data and / or more accurately reconstruct the original video data. The additional data can take the form of, for example, temporal, spatial or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0079] Figure 6 A block diagram of a video encoder (603) according to an embodiment of the present application is shown. The video encoder (603) is included in an electronic device (620). The electronic device (620) includes a transmitter (640) (e.g., a transmission circuit). The video encoder (603) can be used to replace Figure 4 A video encoder (403) in an example.
[0080] The video encoder (603) can be used to obtain the video source (601) (not Figure 6In an example, the video source (601) is a part of the electronic device (620) to receive the video samples, and the video source (601) can capture the video images to be encoded by the video encoder (603). In another example, the video source (601) is a part of the electronic device (620).
[0081] The video source (601) may provide a source video sequence in the form of a digital video sample stream to be encoded by a video encoder (603), the digital video sample stream may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 YCrCB, RGB, ...), and any suitable sampling structure (e.g., YCrCb 4:2:0, YCrCb 4:4:4). In a media service system, the video source (601) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (601) may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of separate pictures that are given motion when viewed sequentially. The picture itself may be constructed as a spatial pixel array, wherein each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The relationship between pixels and samples may be easily understood by those skilled in the art. The following description focuses on the samples.
[0082] According to one embodiment, the video encoder (603) may encode and compress the pictures of the source video sequence into an encoded video sequence (643) in real time or under any other time constraints required by the application. Implementing the appropriate encoding speed is a function of the controller (650). In some embodiments, the controller (650) controls other functional units as described below and is functionally coupled to the other functional units described. For clarity, the coupling is not depicted in the figure. The parameters set by the controller (650) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization techniques, etc.), picture size, picture group (GOP) layout, maximum motion vector search range, etc. The controller (650) may be configured to have other suitable functions that are related to the video encoder (603) optimized for a certain system design.
[0083] In some embodiments, the video encoder (603) is configured to operate in an encoding loop. As an oversimplified description, in one example, the encoding loop may include a source encoder (630) (e.g., responsible for creating symbols, such as a symbol stream, based on an input picture to be encoded and a reference picture) and a (local) decoder (633) embedded in the video encoder (603). The decoder (633) reconstructs the symbols to create sample data in a manner similar to how the (remote) decoder may also create sample data (because in the video compression techniques considered in the disclosed subject matter, any compression between the symbols and the encoded video bitstream is lossless). The reconstructed sample stream (sample data) is input to a reference picture memory (634). Since the decoding of the symbol stream produces bit-accurate results that are independent of the decoder location (local or remote), the contents of the reference picture memory (634) are also bit-accurately corresponding between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction portion of the encoder are exactly the same as the sample values that the decoder will "see" when using the prediction during decoding. This basic principle of reference picture synchronization (and the drift that occurs when synchronization cannot be maintained, eg due to channel errors) is also used in some related techniques.
[0084] The operation of the "local" decoder (633) may be similar to that described above in conjunction with Figure 5 The "remote" decoder of the video decoder (510) described in detail is identical. However, additional brief reference is made to Figure 5 , since the symbols are available and the entropy encoder (645) and the parser (520) are able to losslessly encode / decode the symbols into an encoded video sequence, the entropy decoding portion of the video decoder (510) including the buffer memory (515) and the parser (520) may not be fully implemented in the local decoder (633).
[0085] In one embodiment, decoder techniques other than parsing / entropy decoding present in a decoder are present in a corresponding encoder in the same or substantially the same functional form. Therefore, the disclosed subject matter focuses on decoder operation. The description of encoder techniques can be simplified because encoder techniques are mutually inverse to the decoder techniques described comprehensively. In some areas, a more detailed description is provided below.
[0086] During operation, in some examples, the source encoder (630) may perform motion compensated predictive coding that predictively encodes an input picture by referencing one or more previously encoded pictures from a video sequence designated as "reference pictures." In this manner, the encoding engine (632) encodes the differences between pixel blocks of the input picture and pixel blocks of a reference picture that may be selected as a prediction reference for the input picture.
[0087] The local video decoder (633) may decode the encoded video data of the picture that may be designated as the reference picture based on the symbol created by the source encoder (630). The operation of the encoding engine (632) may advantageously be a lossy process. When the encoded video data may be decoded at the video decoder ( Figure 6 When the video encoder (603) is decoded from a remote video decoder (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (633) replicates the decoding process that may be performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture memory (634). In this way, the video encoder (603) may store a copy of the reconstructed reference picture locally that has common content (absent transmission errors) with the reconstructed reference picture to be obtained by the remote video decoder.
[0088] The predictor (635) may perform a prediction search for the encoding engine (632). That is, for a new picture to be encoded, the predictor (635) may search the reference picture memory (634) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may be used as appropriate prediction references for the new picture. The predictor (635) may operate on a pixel block by pixel block basis to find a suitable prediction reference. In some cases, as determined by the search results obtained by the predictor (635), the input picture may have prediction references taken from multiple reference pictures stored in the reference picture memory (634).
[0089] The controller (650) may manage encoding operations of the source encoder (630), including, for example, setting parameters and subgroup parameters for encoding video data.
[0090] The outputs of all the above functional units may be entropy encoded in an entropy encoder (645). The entropy encoder (645) performs lossless compression on the symbols generated by the various functional units according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc., thereby converting the symbols into a coded video sequence.
[0091] The transmitter (640) can buffer the encoded video sequence created by the entropy encoder (645) in preparation for transmission over a communication channel (660), which can be a hardware / software link to a storage device that can store the encoded video data. The transmitter (640) can combine the encoded video data from the video encoder (603) with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (source not shown).
[0092] The controller (650) may manage the operation of the video encoder (603). During encoding, the controller (650) may assign a certain coded picture type to each coded picture, but this may affect the coding techniques that can be applied to the corresponding picture. For example, a picture may generally be assigned to any of the following picture types:
[0093] An intra picture (I picture) may be a picture that can be encoded and decoded without using any other picture in the sequence as a prediction source. Some video codecs allow for different types of intra pictures, including, for example, independent decoder refresh ("IDR") pictures. Those skilled in the art are aware of these variations of I pictures and their corresponding applications and features.
[0094] A predictive picture (P picture) may be a picture that can be encoded and decoded using intra prediction or inter prediction, which uses at most one motion vector and a reference index to predict sample values for each block.
[0095] Bidirectional predictive pictures (B pictures), which can be pictures that can be encoded and decoded using intra-frame prediction or inter-frame prediction, which uses up to two motion vectors and reference indices to predict the sample values of each block. Similarly, multiple predictive pictures can use more than two reference pictures and associated metadata to reconstruct a single block.
[0096] The source picture may typically be spatially subdivided into blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples), and coded block by block. These blocks may be predictively coded with reference to other (already coded) blocks, which are determined by the coding allocation applied to the corresponding picture of the block. For example, blocks of an I picture may be non-predictively coded, or blocks of an I picture may be predictively coded (spatial prediction or intra prediction) with reference to already coded blocks of the same picture. Blocks of pixels of a P picture may be predictively coded by spatial prediction with reference to one previously coded reference picture or by temporal prediction. Blocks of a B picture may be predictively coded by spatial prediction with reference to one or two previously coded reference pictures or by temporal prediction.
[0097] The video encoder (603) may perform encoding operations according to a predetermined video encoding technique or standard, such as ITU-T H.265 Recommendation. In operation, the video encoder (603) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in an input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard used.
[0098] In one embodiment, the transmitter (640) may transmit additional data when transmitting the encoded video. The source encoder (630) may include such data as part of the encoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, other forms of redundant data such as redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.
[0099] The captured video may be taken as a plurality of source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often shortened to intra-prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits (temporal or other) correlations between pictures. In one example, a particular picture being encoded / decoded is divided into blocks, and the particular picture being encoded / decoded is referred to as the current picture. When a block in the current picture is similar to a reference block in a reference picture that was previously encoded in the video and is still buffered, the block in the current picture may be encoded by a vector called a motion vector. The motion vector points to a reference block in a reference picture, and in the case where multiple reference pictures are used, the motion vector may have a third dimension that identifies the reference picture.
[0100] In some embodiments, a bidirectional prediction technique may be used for inter-picture prediction. According to the bidirectional prediction technique, two reference pictures are used, for example, a first reference picture and a second reference picture that precede the current picture in the video in decoding order (but may be in the past and future, respectively, in display order). A block in the current picture may be encoded by a first motion vector pointing to a first reference block in the first reference picture and a second motion vector pointing to a second reference block in the second reference picture. The block may be predicted by a combination of the first reference block and the second reference block.
[0101] In addition, merge mode technology can be used for inter-picture prediction to improve coding efficiency.
[0102] According to some embodiments of the embodiments of the present application, predictions such as inter-picture prediction and intra-picture prediction are performed in units of blocks. For example, according to the HEVC standard, a picture in a video picture sequence is divided into coding tree units (CTUs) for compression, and the CTUs in the picture have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. Typically, a CTU includes three coding tree blocks (CTBs), which are a luminance CTB and two chrominance CTBs. Each CTU can be recursively divided into one or more coding units (CUs) in a quadtree. For example, a 64×64 pixel CTU can be divided into a 64×64 pixel CU, or 4 32×32 pixel CUs, or 16 16×16 pixel CUs. In one example, each CU is analyzed to determine a prediction type for the CU, such as an inter-prediction type or an intra-prediction type. The CU is divided into one or more prediction units (PUs) based on temporal and / or spatial predictability. Typically, each PU includes a luminance prediction block (PB) and two chrominance PBs. In one embodiment, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. Using a luma prediction block as an example of a prediction block, the prediction block includes a matrix of values (e.g., luma values) for pixels, such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, etc.
[0103] Figure 7 A diagram of a video encoder (703) according to another embodiment of an embodiment of the present application is shown. The video encoder (703) is configured to receive a processed block (e.g., a prediction block) of sample values within a current video picture in a video picture sequence, and encode the processed block into an encoded picture that is part of an encoded video sequence. In one example, the video encoder (703) is used instead of Figure 4 A video encoder (403) in an example.
[0104] In the HEVC example, the video encoder (703) receives a matrix of sample values for a processing block, such as a prediction block of 8×8 samples, etc. The video encoder (703) uses, for example, rate-distortion optimization to determine whether to use intra mode, inter mode, or bidirectional prediction mode to best encode the processing block. When the processing block is encoded in intra mode, the video encoder (703) may use intra prediction techniques to encode the processing block into an encoded picture; and when the processing block is encoded in inter mode or bidirectional prediction mode, the video encoder (703) may use inter prediction or bidirectional prediction techniques to encode the processing block into an encoded picture, respectively. In some video encoding techniques, the merge mode may be an inter-picture prediction submode, in which motion vectors are derived from one or more motion vector predictors without the aid of encoded motion vector components external to the predictor. In some other video encoding techniques, there may be motion vector components applicable to the subject block. In one example, the video encoder (703) includes other components, such as a mode decision module (not shown) for determining the mode of the processing block.
[0105] exist Figure 7 In the example of FIG. 7 , the video encoder ( 703 ) includes Figure 7 An inter-frame encoder (730), an intra-frame encoder (722), a residual calculator (723), a switch (726), a residual encoder (724), a general controller (721), and an entropy encoder (725) are shown coupled together.
[0106] The inter-frame encoder (730) is configured to receive samples of a current block (e.g., a processing block), compare the block with one or more reference blocks in a reference picture (e.g., blocks in a previous picture and a subsequent picture), generate inter-frame prediction information (e.g., redundant information description according to an inter-frame coding technique, motion vectors, merge mode information), and calculate an inter-frame prediction result (e.g., a predicted block) based on the inter-frame prediction information using any suitable technique. In some examples, the reference picture is a decoded reference picture decoded based on the encoded video information.
[0107] The intra encoder (722) is configured to receive samples of a current block (e.g., a processing block), compare the block with an encoded block in the same picture in some cases, generate quantization coefficients after transformation, and in some cases also generate intra prediction information (e.g., intra prediction direction information according to one or more intra coding techniques). In one example, the intra encoder (722) also calculates an intra prediction result (e.g., a predicted block) based on the intra prediction information and a reference block in the same picture.
[0108] The general controller (721) is configured to determine general control data and control other components of the video encoder (703) based on the general control data. In one example, the general controller (721) determines the mode of the block and provides a control signal to the switch (726) based on the mode. For example, when the mode is an intra-frame mode, the general controller (721) controls the switch (726) to select the intra-frame mode result for use by the residual calculator (723), and controls the entropy encoder (725) to select the intra-frame prediction information and include the intra-frame prediction information in the bitstream; and when the mode is an inter-frame mode, the general controller (721) controls the switch (726) to select the inter-frame prediction result for use by the residual calculator (723), and controls the entropy encoder (725) to select the inter-frame prediction information and include the inter-frame prediction information in the bitstream.
[0109] The residual calculator (723) is configured to calculate the difference (residual data) between the received block and the prediction result selected from the intra encoder (722) or the inter encoder (730). The residual encoder (724) is configured to operate based on the residual data to encode the residual data to generate a transform coefficient. In one example, the residual encoder (724) is configured to convert the residual data from the spatial domain to the frequency domain and generate a transform coefficient. The transform coefficient is then subjected to a quantization process to obtain a quantized transform coefficient. In various embodiments, the video encoder (703) also includes a residual decoder (728). The residual decoder (728) is configured to perform an inverse transform and generate decoded residual data. The decoded residual data can be used appropriately by the intra encoder (722) and the inter encoder (730). For example, the inter encoder (730) can generate a decoded block based on the decoded residual data and the inter prediction information, and the intra encoder (722) can generate a decoded block based on the decoded residual data and the intra prediction information. In some examples, the decoded blocks are processed appropriately to generate a decoded picture, and the decoded picture can be buffered in a memory circuit (not shown) and used as a reference picture.
[0110] The entropy encoder (725) is configured to format the codestream to include the encoded blocks. The entropy encoder (725) is configured to include various information according to a suitable standard such as the HEVC standard. In one example, the entropy encoder (725) is configured to include general control data, selected prediction information (e.g., intra-frame prediction information or inter-frame prediction information), residual information, and other suitable information in the codestream. It should be noted that according to the disclosed subject matter, when the block is encoded in the inter-frame mode or the merge sub-mode of the bidirectional prediction mode, there is no residual information.
[0111] Figure 8A diagram of a video decoder (810) according to another embodiment of the present application is shown. The video decoder (810) is configured to receive an encoded picture as part of an encoded video sequence and decode the encoded picture to generate a reconstructed picture. In one example, the video decoder (810) is used instead of Figure 4 A video decoder (410) in an example of FIG.
[0112] exist Figure 8 In the example of FIG. 8 , the video decoder ( 810 ) includes Figure 8 An entropy decoder (871), an inter-frame decoder (880), a residual decoder (873), a reconstruction module (874) and an intra-frame decoder (872) are shown coupled together.
[0113] The entropy decoder (871) may be configured to reconstruct certain symbols from the encoded picture, the symbols representing the syntax elements constituting the encoded picture. Such symbols may include, for example, a mode for encoding a block (e.g., intra mode, inter mode, bidirectional prediction mode, a merged sub-mode of the latter two, or another sub-mode), prediction information (e.g., intra prediction information or inter prediction information) that can identify certain samples or metadata used by the intra decoder (872) or the inter decoder (880) for prediction, respectively, residual information in the form of, for example, quantized transform coefficients, etc. In one example, when the prediction mode is inter or bidirectional prediction mode, the inter prediction information is provided to the inter decoder (880); and when the prediction type is an intra prediction type, the intra prediction information is provided to the intra decoder (872). The residual information may be subjected to inverse quantization and provided to the residual decoder (873).
[0114] The inter-frame decoder (880) is configured to receive the inter-frame prediction information and generate an inter-frame prediction result based on the inter-frame prediction information.
[0115] The intra decoder (872) is configured to receive intra prediction information and generate a prediction result based on the intra prediction information.
[0116] The residual decoder (873) is configured to perform inverse quantization to extract dequantized transform coefficients, and process the dequantized transform coefficients to convert the residual from the frequency domain to the spatial domain. The residual decoder (873) may also require certain control information (to include quantizer parameters (QP)), which may be provided by the entropy decoder (871) (data path not depicted because this is only low data volume control information).
[0117] The reconstruction module (874) is configured to combine the residual output by the residual decoder (873) with the prediction result (which may be output by the inter-frame prediction module or the intra-frame prediction module, as appropriate) in the spatial domain to form a reconstructed block, which may be part of a reconstructed picture, which in turn may be part of a reconstructed video. It should be noted that other suitable operations such as deblocking operations may be performed to improve visual quality.
[0118] It should be noted that the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using any suitable technology. In one embodiment, the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (403), video encoder (603) and video encoder (603) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using one or more processors that execute software instructions.
[0119] According to one embodiment of the embodiment of the present application, a code stream may include one or more coded video sequences (CVS). CVS may be encoded independently of other CVS. Each CVS may include one or more layers, and each layer may be a representation of a video with a specific quality (e.g., spatial resolution), or a representation of a specific component interpretation attribute (e.g., a depth map, a transparency map, or a perspective map). In the time dimension, each CVS may include one or more access units (AUs). Each AU may include one or more pictures of different layers corresponding to the same time instance. A coded layer video sequence (CLVS) is a layer-by-layer CVS that may include a sequence of picture units in the same layer. If the code stream has multiple layers, the CVS in the code stream may have one or more CLVS for each layer.
[0120] In one embodiment, the CVS includes a sequence of AUs, wherein the sequence of AUs includes an intra random access point (IRAP) AU, followed by zero or more AUs that are not IRAP AUs in decoding order. In one example, the zero or more AUs include all subsequent AUs, up to but not including any subsequent AU that is an IRAP AU. In one example, the CLVS includes a sequence of pictures and associated non-video coding layer (VCL) network abstraction layer (NAL) units of the CVS base layer.
[0121] The parameter set may be part of the video bitstream, or may be received by the decoder through other means (including out-of-band transmission using a reliable channel, hard coding in the encoder and decoder, etc.). The parameter set may include, but is not limited to, a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), etc.
[0122] High-level syntax structures may include VPS, SPS, PPS, Supplementary Enhancement Information (SEI) message, slice header, picture header, tile group header, etc.
[0123] The VPS may include information applicable to multiple layers and sub-layers. In one example, each layer of a video sequence references the same VPS.
[0124] The SPS may include information applicable to slices of a coded video sequence. The SPS may include one or more of the following: 1) a self-reference or identifier (ID); 2) information related to the decoder operating point (e.g., profile, level, picture size, number of sub-layers); 3) flags for enabling certain tools within the profile, and if the tool is enabled, associated coding tool parameters; 4) information limiting the flexibility of the structure and transform coefficient coding; 5) temporal scalability control; and 6) visual usability information (VUI).
[0125] The PPS may include syntax elements applicable to zero or more fully coded pictures, e.g., a fully coded picture is determined by syntax elements in a slice header. The PPS may include information that may vary from picture to picture. The PPS may include one or more of the following: 1) a self-reference or ID; 2) initial picture control information, e.g., an initial quantization parameter (QP), multiple flags indicating the use or presence of certain tools or control information in a slice header; and 3) tiling information.
[0126] The slice header may include information that may vary from slice to slice, and such picture-related information may be relatively small or only relevant to certain slices or picture types.
[0127] Fig. 9 An example of a slice header including references to a PPS, an SPS, and a VPS according to one embodiment of an embodiment of the present application is shown. The slice header references a PPS (e.g., pps_id: 4). The PPS (e.g., pps_id: 4) may include a reference to an SPS (e.g., sps_id: 1). The SPS (e.g., sps_id: 1) may include a reference to a VPS (e.g., vps_id: 0).
[0128] Each type of parameter set may include an extension mechanism, which allows the parameter set to be extended in future versions of the video coding technology or standard.
[0129] A sub-picture in a picture may refer to a rectangular arrangement of samples, blocks, macroblocks, CUs, or similar entities, where samples, blocks, macroblocks, CUs, or similar entities are semantically grouped and can be encoded independently at varying resolutions. One or more sub-pictures may form a picture. One or more encoded sub-pictures may form an encoded picture. One or more sub-pictures may be combined into a picture, and one or more sub-pictures may be extracted from a picture. In some environments, one or more encoded sub-pictures may be combined into an encoded picture in a compressed domain without having to be transcoded to the sample level. In one embodiment, one or more encoded sub-pictures may be extracted from an encoded picture in a compressed domain.
[0130] In one embodiment, a picture includes one or more sub-pictures. Each sub-picture may cover a partial area or the entire area of the picture. An area supported by one sub-picture may or may not overlap with another area supported by another sub-picture. An area covered by one or more sub-pictures may or may not cover the entire area of the picture. If a picture includes sub-pictures, the area supported by the sub-pictures may be the same as the area supported by the picture.
[0131] The sub-picture may be encoded by an encoding method similar to the encoding method used for the encoded picture, as described in the embodiments of the present application. The sub-picture may be encoded independently, or may be encoded according to another sub-picture or an encoded picture. A sub-picture may or may not have any parsing dependency with another sub-picture or an encoded picture.
[0132] The coded sub-pictures may be included in one or more layers. The coded sub-pictures in a layer may have different spatial resolutions. The original sub-pictures may be spatially resampled (e.g., upsampled or downsampled), encoded with different spatial resolution parameters, and included in the bitstream corresponding to the layer.
[0133] A sub-picture with (W, H) may be encoded and included in the encoded bitstream corresponding to layer 0, where W indicates the width of the sub-picture and H indicates the height of the sub-picture. An upsampled (or downsampled) sub-picture from a sub-picture with the original spatial resolution may be encoded and included in the encoded bitstream corresponding to layer k. The upsampled (or downsampled) sub-picture has a width of W×S w,k and height H×S h,k Parameter S w,k and S h,k Indicates the horizontal and vertical resampling rates, respectively.
[0134] An encoded sub-picture in a layer may have a different visual quality than the visual quality of an encoded sub-picture in another layer in the same sub-picture or a different sub-picture.
[0135] A coded sub-picture in a layer may be decoded independently without any parsing or decoding with respect to a coded sub-picture in another layer of the same local region. A sub-picture layer may be an independent sub-picture layer that may be decoded independently without reference to another sub-picture layer of the same local region. A coded sub-picture in an independent sub-picture layer may or may not have decoding or parsing dependencies with respect to a previously coded sub-picture in the same sub-picture layer, but a coded sub-picture may not have any dependencies with respect to a coded picture in another sub-picture layer.
[0136] A coded sub-picture in a layer may be decoded non-independently with respect to a coded sub-picture in another layer of the same local region having a parsing or decoding dependency. A sub-picture layer may be an independent sub-picture layer that may be decoded independently with reference to another sub-picture layer of the same local region. A coded sub-picture in a non-independent sub-picture may reference a coded sub-picture in the same sub-picture layer, a previously coded sub-picture in the same sub-picture layer, or both.
[0137] The coded sub-picture may include one or more independent sub-picture layers and one or more non-independent sub-picture layers. For a coded sub-picture, there may be at least one independent sub-picture layer. The value of the layer identifier (e.g., layer_id) of the independent sub-picture layer may be equal to 0, which may be present in the NAL unit header or another high-level syntax structure. The sub-picture layer with layer_id equal to 0 may be a base sub-picture layer.
[0138] A picture may include one or more foreground sub-pictures and one background sub-picture. An area supported by a background sub-picture may be equal to an area of the picture. An area supported by a foreground sub-picture may overlap an area supported by a background sub-picture. A background sub-picture may be a base sub-picture layer and a foreground sub-picture may be a non-base (e.g., enhancement) sub-picture layer. One or more non-base sub-picture layers may be decoded with reference to the same base layer. Each non-base sub-picture layer having a first layer_id may reference a non-base sub-picture layer having a second layer_id, wherein the first layer_id is greater than the second layer_id.
[0139] A picture may include one or more foreground sub-pictures, with or without background sub-pictures. Each sub-picture may have its own base sub-picture layer and one or more non-base (e.g., enhancement) layers. Each base sub-picture layer may be referenced by one or more non-base sub-picture layers.
[0140] Each coded sub-picture in a base or non-base sub-picture layer may be referenced by one or more non-base layer sub-pictures belonging to the same sub-picture and one or more non-base layer sub-pictures not in the same sub-picture.
[0141] A CVS may include a coded group of pictures. A CVS may include one or more coded sub-picture sequences (CSPS), wherein a CSPS may include a group of coded sub-pictures covering the same local area of a picture. A CSPS may have a temporal resolution that is the same as or different from the temporal resolution of a CVS.
[0142] The CSPS may be encoded and included in one or more layers. The CSPS may include one or more CSPS layers. By decoding one or more CSPS layers corresponding to the CSPS, a sub-picture sequence corresponding to the same local area may be reconstructed.
[0143] Embodiments of the present application include techniques for sub-picture reference picture resampling and scalability for video streaming.
[0144] Image / video coding techniques (e.g., VVC) have been developed for various applications, including ultra-high-definition (UHD) video streaming, immersive media solutions (e.g., 360-degree video, point cloud, 6 degrees of freedom), games, and / or e-sports. E-sports can be used for live and / or real-time streaming events. In one example, e-sports as an online application includes competitive video games in which multiple players compete against each other (e.g., teams compete). The game can be live streamed to fans. Through cloud-based game streaming solutions (e.g., Tencent's Start), e-sports allow professional players to play games remotely at the same time. Games with video and audio of commentators can be played to the audience in real time.
[0145] Computer generated (CG) test sequences have been studied, including mobile game content, such as multiplayer online battle arena (MOBA) games developed for mobile phones (e.g., Arena of Valor). CG content can have unique characteristics that are different from natural images captured by a camera. Certain encoding tools (e.g., IBC) dedicated to game content sequences have been developed and adopted. Useful functions and system interfaces have been developed, and a high-level syntax has been designed.
[0146] According to one embodiment of the present application, local enhancement of visual quality or resolution may be used.
[0147] Certain live videos of e-sports games may be displayed and viewed by viewers, such as images of commentators, players, scoreboards, game screens, etc. In order to display multiple images on the player's screen simultaneously, multiple picture-in-picture (PIP) windows may be advantageous for e-sports broadcasts. Fig.10 An exemplary image (or picture) (1000) including multiple PIPs in an e-sports broadcast according to one embodiment of the present application is shown.
[0148] The e-sports broadcast system can mix and / or switch multiple video inputs. The multiple video inputs may include video inputs associated with team players, commentators, and game videos. A main broadcast video (or main video) that mixes a subset (e.g., the most interesting input video) or the entire set of multiple video inputs into a video sequence can be encoded into a main code stream and can be streamed to remote viewers (e.g., all remote viewers). The main code stream may include popular input videos. Depending on the corresponding picture resolution or bit rate, the visual quality of each input video may be relatively low.
[0149] The single input video may be additionally encoded at a higher quality and / or higher resolution and optionally transmitted to the viewer as a separate stream. The single video may be independently encoded by referencing a main video, where the main video may include the single video as a PIP. In one example, the single video may be encoded as an enhancement layer (e.g., a base layer) of a local region of the main video by referencing a decoded picture in the main video. In one example, the enhancement layer may be independently encoded without any decoding dependency on the main video and transmitted as a simulcast.
[0150] Fig.11 An example of enhanced display of a local area according to an embodiment of the present application is shown. In terms of user experience, when a client or viewer (user or viewer) receives a main video (1101) and one or more enhanced videos of a local area, the viewer can select one of the main video and the one or more enhanced videos of the local area. Fig.11 , the local area may include area 0 covered by PIP 0, area 1 covered by PIP 1, area 2 covered by PIP 2, and area 3 covered by PIP 3. One or more enhanced videos of a local area may include PIP 0 enhanced video of area 0 in enhancement layer 1 (or enhancement layer 1 of PIP 0), PIP 1 enhanced video of area 1 in enhancement layer 1 (or enhancement layer 1 of PIP 1), PIP 1 enhanced video of area 1 in enhancement layer 2 (or enhancement layer 2 of PIP 1), PIP 2 enhanced video of area 2 in enhancement layer 1 (or enhancement layer 1 of PIP 2), PIP 2 enhanced video of area 2 in enhancement layer 2 (or enhancement layer 2 of PIP 2), PIP 3 enhanced video of area 3 in enhancement layer 1 (or enhancement layer 1 of PIP 3), PIP 3 enhanced video of area 3 in enhancement layer 2 (or enhancement layer 2 of PIP 3), and PIP 3 enhanced video of area 3 in enhancement layer 3 (or enhancement layer 3 of PIP 3).
[0151] If the viewer selects the main video (1101), the PIPs (e.g., all PIPs) within the background picture may be displayed, such as PIP 0 to PIP 3. If the viewer selects a specific PIP (e.g., one of one or more enhanced videos, such as enhancement layer 3 of PIP 3), the PIP (e.g., PIP 3) may be magnified and displayed with enhanced visual quality compared to the corresponding decoded area of the main video (1101). In one example, enhancement layer 3 of PIP 3 is selected by the viewer to be displayed at a higher spatial resolution than the spatial resolution of PIP 3 in the main video, the spatial resolution of enhancement layer 1 of PIP 3, and the spatial resolution of enhancement layer 2 of PIP 3.
[0152] if Fig.11 Replace the PIP in with the corresponding sub-image, then adjust the above Fig.11 The description of the PIP in the base layer. For example, the local area may be covered by the corresponding sub-picture. The main video may include the sub-picture in the base layer. One or more enhanced videos of the local area may be included in the bitstream. An example of an enhanced video of the local area is an enhanced video of the sub-picture of area 0 in enhancement layer 1.
[0153] Fig.12 An exemplary system design with sub-pictures and multiple layers according to an embodiment of an embodiment of the present application is shown. Multiple input videos (e.g., input video 0 to input video 3) can be mixed or combined into a main video (1200) by a video synthesizer (1210). An area (e.g., a rectangular area) of the main video (1200) corresponding to an input video (e.g., input video 0) can be encoded into a sub-picture (e.g., a VVC sub-picture based on VVC encoding), such as sub-picture 0. Reference Fig.12 , sub-picture 0 to sub-picture 3 correspond to input video 0 to input video 3 respectively.
[0154] The encoded code stream of the main video (1200) may include multiple sub-pictures (e.g., sub-picture 0 to sub-picture 3). The encoded code stream of the main video (1200) may include multiple sub-code streams corresponding to sub-pictures (e.g., sub-picture 0 to sub-picture 3). For example, sub-code stream 0 to sub-code stream 3 correspond to sub-picture 0 to sub-picture 3, respectively. The sub-code streams corresponding to the sub-pictures can be extracted from the main code stream and can be decoded independently. Each sub-code stream may include one or more layers with different qualities (e.g., different spatial resolutions or visual qualities). A sub-code stream may be referenced by another sub-code stream including a sub-picture layer with a higher resolution. Reference Fig.12, the sub-code stream 3 corresponding to the sub-picture 3 (1222) can be referenced by the enhanced sub-code stream 3 corresponding to the sub-picture 3 (1220) with enhanced resolution (e.g., higher resolution). For example, based on the sub-picture 3 (1222) in the base layer, the sub-picture 3 (1220) in the higher layer (e.g., layer 1) is predicted using inter-layer prediction.
[0155] When the spatial resolution of a sub-picture changes within a CVS, the sub-picture may be decoded by performing per-sub-picture reference picture resampling. Fig.13 An example of a reference sub-picture zoom window (1302) in a reference sub-picture (1301) and a sub-picture zoom window (1312) in a sub-picture (1311) according to an embodiment of the present application is shown. The sub-picture (1311) may be such as Fig.11 and Fig.12 One of the sub-pictures in the described picture. In one example, the sub-picture to be decoded (e.g., sub-picture (1311)) has a different spatial resolution or a different size than the reference sub-picture (e.g., reference sub-picture (1301)). Per-sub-picture reference picture resampling may be performed to match the spatial resolution or size of the sub-picture and the reference sub-picture. The reference sub-picture may be resampled based on the size of the sub-picture and the reference sub-picture.
[0156] In one example, the reference sub-picture is resampled based on the sizes of the sub-picture and the reference sub-picture and the sub-picture scaling window information of the sub-picture and / or the reference sub-picture scaling window information of the reference sub-picture. Fig.13 The sub-picture zoom window information of the sub-picture (1311) may indicate size information and / or position information of the sub-picture zoom window (1312). In one example, the sub-picture zoom window information of the sub-picture (1311) includes a first offset, and the first offset includes a left offset of the sub-picture zoom window (1312) relative to the sub-picture (1311). L , right offset O R , Upward offset O T and the lower offset O B The size and position of the sub-picture zoom window (1312) may be determined based on the first offset.
[0157] refer to Fig.13 The reference sub-picture scaling window information of the reference sub-picture (1301) may indicate size information and / or position information of the reference sub-picture scaling window (1302). In one example, the reference sub-picture scaling window information of the reference sub-picture (1301) includes a second offset, and the second offset includes a reference left offset of the reference sub-picture scaling window (1302) relative to the reference sub-picture (1301). REF,L , reference right offset O REF,R, Reference upper offset O REF,T and reference lower offset O REF,B The size and position of the reference sub-picture zoom window (1302) may be determined based on the second offset.
[0158] According to one embodiment of the embodiment of the present application, when there are more than one sub-picture in a picture, for example, sub-picture scaling window information of a sub-picture scaling window of a sub-picture may be represented by a signal. Sub-picture scaling window information may be represented by a signal. Sub-picture scaling window information may be represented by a signal in a syntax structure (e.g., a high-level syntax structure), such as a high-level syntax structure (e.g., PPS) within a CVS. In one example, sub-picture scaling window information of a sub-picture scaling window of each sub-picture may be represented by a signal. For sub-picture reference picture resampling in a layer or across layers, sub-picture scaling window information of each sub-picture may be represented by a signal, for example, in a high-level syntax structure (e.g., PPS), wherein each sub-picture has a different scaling ratio than a corresponding reference sub-picture.
[0159] The layout of the video can be customized. Many players can play in a collaborative and interactive game at the same time. At the same time, multiple viewers can follow the game in real time. For example, according to certain selection criteria, the observer can watch the combination of the view of the player supported by it, the observer view and / or the physical camera view. In some examples, the server can generate and transmit multiple layouts of multiple input videos according to the director's cut. The layout information can be represented by sub-picture segmentation information, such as in SPS, or otherwise transmitted as metadata in a file format. When each audience member selects a layout by preference, or customizes the layout in addition due to preference, the local area of the decoded picture (e.g., each local area) can be repositioned in the displayed picture according to the selected layout information. After the main video and one or more enhanced videos are decoded and reorganized, a customized video can be created, for example, in the cloud. This reorganization process for customizing the video can be processed in the cloud server, for example, by network-based media processing (NBMP). The combined video can be streamed to the client. The layout information can be generated by the user or the client. The layout information can be shared with other users to enjoy the same experience.
[0160] In some examples, each local area may be mapped to a corresponding sub-picture. The sub-picture layout may be signaled in the SPS. In some video coding standards (e.g., VVC version 1), the sub-picture layout can only be updated at the start of the CVS. In some embodiments, the same sub-picture layout is applied to the entire CVS. For example, the sub-picture layout will not be updated within the CVS. Flexible layout representations for game and e-sports content construction may be limited in some applications because the same sub-picture layout is used within the same CVS.
[0161] In order to achieve more flexible construction of output images or pictures in CVS, it may be desirable to update the sub-picture layout in real time. According to one embodiment of the present application, sub-picture layout information (or sub-picture segmentation information) indicating the sub-picture layout (or sub-picture segmentation layout) in the picture can be updated in CVS. Updating the sub-picture segmentation information can be applied to various applications, such as games, e-sports, immersive media, etc.
[0162] A sub-picture layout (or sub-picture segmentation layout) may be signaled. For example, the sub-picture layout may be indicated by sub-picture segmentation information in a high-level syntax structure applied to a picture within a CVS. The sub-picture segmentation information or sub-picture layout may indicate the position, spatial resolution, and / or sub-picture ID of the sub-picture in the picture within the CVS. The sub-picture layout may be updated (e.g., changed) within the CVS. For example, a first subset of pictures covered by a first syntax structure (e.g., a first high-level syntax structure) in the CVS has a first sub-picture layout. The first sub-picture layout is specified by the first sub-picture segmentation information in the first high-level syntax structure. A second subset of pictures covered by a second syntax structure (e.g., a second high-level syntax structure) in the CVS has a second sub-picture layout. The second sub-picture layout is specified by the second sub-picture segmentation information in the second high-level syntax structure.
[0163] In one example, the first sub-picture layout is different from the second sub-picture layout. A first number of sub-pictures in the first sub-picture layout may be different from a second number of sub-pictures in the second sub-picture layout. In one example, sub-pictures in the first sub-picture layout are not included in the second sub-picture layout. Two sub-pictures having the same sub-picture ID in the first sub-picture layout and the second sub-picture layout may have different spatial resolutions and / or positions.
[0164] In one example, the first sub-picture layout is the same as the second sub-picture layout.
[0165] Fig.14A An exemplary sub-picture layout update process (1400A) in a CVS according to an embodiment of the present application is shown.
[0166] The sub-picture layout (1401) may be indicated (e.g., specified) by first sub-picture segmentation information in a first PPS (e.g., PPS ID is 0). The first sub-picture segmentation information or the sub-picture layout (1401) may indicate the position, spatial resolution, and / or sub-picture ID of the sub-picture in one or more pictures in the first PPS. The sub-picture IDs of the sub-pictures in the sub-picture layout (1401) are 0 to 3, respectively, and the sub-pictures are referred to as sub-picture 0 to sub-picture 3.
[0167] The sub-picture layer (1401) may be updated to the sub-picture layout (1402) by the second PPS. The sub-picture layout (1402) may be indicated (e.g., specified) by second sub-picture segmentation information in a second PPS (e.g., PPS ID is 1). The second sub-picture segmentation information or the sub-picture layout (1402) may indicate a position, a spatial resolution, and / or a sub-picture ID of the sub-picture in one or more pictures in the second PPS. The sub-picture IDs of the sub-pictures in the sub-picture layout (1402) are sub-picture 0 to sub-picture 3. The sub-picture layout (1402) is different from the sub-picture layout (1401). For example, the spatial resolutions of sub-pictures 0 to sub-pictures 3 in the sub-picture layout (1402) are different from the corresponding spatial resolutions of sub-pictures 0 to sub-pictures 3 in the sub-picture layout (1401). The spatial resolution of sub-picture 0 (1421) in the sub-picture layout (1402) is higher than the spatial resolution of sub-picture 0 (1411) in the sub-picture layout (1401).
[0168] The sub-picture layer (1402) may be updated to a sub-picture layout (1403) by a third PPS. The sub-picture IDs of the sub-pictures in the sub-picture layout (1403) are sub-picture 0 to sub-picture 3. The third PPS may be different from the second PPS and / or the first PPS. In an example, the sub-picture layout (1403) is different from the sub-picture layout (1402). In an example, the sub-picture layout (1403) is the same as a previous sub-picture layout used in the CVS, such as the sub-picture layout (1401). In an example, the PPS ID of the third PPS is 2. In an example, the PPS ID of the third PPS is 0.
[0169] The sub-picture layout update process (1400A) can be performed within a CVS. A sub-picture layout of a picture in the CVS (e.g., indicated by a first syntax structure (e.g., a first PPS)) can be updated to generate a different sub-picture layout of another picture in the CVS (e.g., indicated by a second syntax structure (e.g., a second PPS)).
[0170] The sub-picture layout update process (1400A) performed within the CVS can enable changes in the layout of the build without delay or coding gain loss. The sub-picture layout can be updated at the picture level by, for example, signaling the sub-picture layout and / or sub-picture ID mapping information within the CVS (e.g., in the PPS). In order to minimize the coding efficiency loss when updating or changing the sub-picture layout, motion compensated prediction can be enabled within the same sub-picture, for example, through a sub-picture-specific scaling window, such as Fig.13 as described.
[0171] In one embodiment, the updated sub-picture segmentation information may be signaled in the PPS. To enable picture-level updates of the sub-picture segmentation information, the sub-picture segmentation information may optionally be signaled in the PPS. When the sub-picture segmentation information is updated, one or more sub-pictures with corresponding sub-picture IDs may appear or disappear. Fig. 14B FIG. 1400B shows an exemplary sub-picture layout update process (1400B) in a CVS according to an embodiment of the present application. Fig.14A The sub-picture layout (1401) indicated by the first PPS and Fig. 14B Sub-picture 0 to sub-picture 3 in .
[0172] In the sub-picture layout update process (1400B), the sub-picture layer (1401) is updated to a sub-picture layout (1404) through a fourth PPS. The sub-picture layout (1404) may be indicated (e.g., specified) by fourth sub-picture segmentation information in a fourth PPS (e.g., PPS ID is 3). The fourth sub-picture segmentation information or the sub-picture layout (1404) may indicate a position, a spatial resolution, and / or a sub-picture ID of a sub-picture in one or more pictures in the fourth PPS. The sub-picture IDs of the sub-pictures in the sub-picture layout (1404) are sub-picture 0 to sub-picture 2. The sub-picture layout (1404) is different from the sub-picture layout (1401). For example, the spatial resolutions of sub-picture 0 to sub-picture 2 in the sub-picture layout (1404) are different from the corresponding spatial resolutions of sub-picture 0 to sub-picture 2 in the sub-picture layout (1401). In addition, the number of sub-pictures in the sub-picture layout (1404) is 3, which is different from the number of sub-pictures (e.g., 4) in the sub-picture layout (1401). Sub-picture 3 in the sub-picture layout (1401) is not in the sub-picture layout (1404). Sub-picture 3 in the sub-picture layout (1401) disappears from the sub-picture layout (1404).
[0173] The sub-picture layer (1404) may be updated to a sub-picture layout (1405) by a fifth PPS (e.g., PPS ID is 4). In one example, the sub-picture layout (1405) is the same as the sub-picture layout (1401). The sub-picture layout (1405) is different from the sub-picture layout (1404). For example, sub-picture 3 that is not in the sub-picture layout (1404) appears in the sub-picture layout (1405).
[0174] When the sub-picture partitioning information is updated, size information (eg, spatial resolution) and / or position information (eg, vertical offset value and / or horizontal offset value) of each sub-picture may be changed.
[0175] In some examples of certain video coding techniques (e.g., version 1 VVC), all layers belonging to the same dependency tree may have the same sub-picture segmentation layout. According to one embodiment of the present application, the above constraints may be relaxed to support applications that can apply different sub-picture layouts on different layers. In one embodiment, the first sub-picture layout of the first layer may be different from the second sub-picture layout of the second layer. In one example, each layer has a different sub-picture layout.
[0176] Fig.15 1 shows exemplary sub-picture layouts (1501) and (1502) in different layers in a CVS according to an embodiment of the present application. Sub-picture layout (1501) and sub-picture 0 to sub-picture 3 in sub-picture layout (1501) can be respectively Fig.14A The sub-picture layout (1401) described in the CVS is the same as sub-pictures 0 to 3. The sub-picture layout (1501) can be applied to pictures in layer 0 in the CVS. The sub-picture layout (1502) can be applied to pictures in layer 1 in the CVS. The sub-picture layout (1502) corresponding to layer 1 is different from the sub-picture layout (1501) corresponding to layer 0. For example, sub-pictures 1 and 3 disappear from the sub-picture layout (1502). Sub-pictures 0 and 2 in the sub-picture layout (1502) have different spatial resolutions from sub-pictures 0 and 2 in the sub-picture layout (1501), respectively.
[0177] In some examples of certain video coding techniques (e.g., version 1 VVC), the combination of sub-picture segmentation and reference picture resampling is not supported. According to one embodiment of an embodiment of the present application, the above constraints may be relaxed to support quality and resolution enhancement by region. In one embodiment, sub-picture segmentation and reference picture resampling by sub-picture may be combined. In one example, the sub-picture segmentation information within the updated CVS is combined with the reference picture resampling by sub-picture. For example, the sub-picture segmentation information and the sub-picture scaling window information of the sub-picture scaling window of the sub-picture are signaled, for example, signaled in a high-level syntax structure such as a PPS.
[0178] According to one embodiment of the present application, a syntax structure (e.g., a high-level syntax structure) such as a parameter set may include an extension, such as a sub-picture reference picture resampling (RPR) extension, to indicate (i) sub-picture segmentation information and / or (ii) sub-picture scaling window information of a sub-picture scaling window. In one embodiment, the parameter set is a PPS, and the extension is referred to as a PPS sub-picture RPR extension, as shown in Tables 1 and 2 below.
[0179] Table 1 shows a part of an exemplary syntax structure of a PPS according to one embodiment of the present application.
[0180] Table 1: Syntactic structure of a part of PPS
[0181]
[0182]
[0183] Table 2 shows an exemplary syntax structure extension of PPS according to one embodiment of the present application.
[0184] Table 2: Example of picture parameter set sub-picture and reference picture resampling syntax
[0185]
[0186]
[0187] A syntax element, such as a flag (e.g., pps_subpic_rpr_extension_flag), may indicate whether a PPS sub-picture RPR extension (e.g., a pps_subpic_rpr_extension() syntax structure in Table 2) is present in the PPS RBSP syntax structure. A syntax element (e.g., pps_subpic_rpr_extension_flag) equal to 1 may specify that the pps_subpic_rpr_extension() syntax structure is present in the PPS RBSP syntax structure. A syntax element (e.g., pps_subpic_rpr_extension_flag) equal to 0 may specify that the pps_subpic_rpr_extension() syntax structure is not present. When not present, the value of the syntax element (e.g., pps_subpic_rpr_extension_flag) may be inferred to be equal to 0.
[0188] When a syntax element (eg, pps_subpic_rpr_extension_flag) is equal to 1, the pps_subpic_rpr_extension() syntax structure is present in the PPS RBSP syntax structure.
[0189] Table 2 shows an exemplary PPS RBSP syntax structure. Referring to Table 2, a first syntax element such as a first flag pps_subpic_update_info_present_flag may indicate whether sub-picture partitioning information (or sub-picture partitioning layout information) is present in the PPS. The first syntax element (e.g., pps_subpic_update_info_present_flag) being equal to 1 may specify that the sub-picture partitioning layout information is present in the PPS (e.g., signaled in the PPS). The first syntax element (e.g., pps_subpic_update_info_present_flag) being equal to 0 may specify that the sub-picture partitioning layout information is not present in the PPS.
[0190] A second syntax element, such as a second flag pps_subpic_scaling_win_info_present_flag, may indicate whether the sub-picture scaling window information is present in the PPS (e.g., signaled in the PPS). The second syntax element (e.g., pps_subpic_scaling_win_info_present_flag) being equal to 1 may specify that the sub-picture scaling window information is present in the PPS. The second syntax element (e.g., pps_subpic_scaling_win_info_present_flag) being equal to 0 may specify that the sub-picture scaling window information is not present in the PPS.
[0191] The syntax element pps_updated_num_subpics_minus1 plus 1 may specify the number of subpictures of each picture that references the PPS. The value of pps_updated_num_subpics_minus1 may be in the range of 0 to MaxSlicesPerAu-1, inclusive. In one example, MaxSlicesPerAu indicates the maximum number of slices per AU. When not present, the value of pps_updated_num_subpics_minus1 is inferred to be equal to sps_num_subpics_minus1.
[0192] The syntax element pps_independent_subpics_flag equal to 1 may specify that all sub-picture boundaries of each picture that references the PPS are to be treated as picture boundaries and that no loop filtering is to be performed on sub-picture boundaries. The syntax element pps_independent_subpics_flag equal to 0 does not impose such a constraint. When not present, the value of pps_independent_subpics_flag is inferred to be equal to 1.
[0193] The syntax element pps_subpic_same_size_flag equal to 1 may specify that all sub-pictures of each picture referencing the PPS have the same width specified by pps_subpic_width_minus1[0] and the same height specified by pps_subspic_height_minus1[0]. The syntax element pps_subpic_same_size_flag equal to 0 does not impose such a constraint. When absent, the value of pps_subpic_same_size_flag is inferred to be equal to 0.
[0194] In one example, the variable tmpWidthVal is equal to (pps_pic_width_in_luma_samples+CtbSizeY-1) / CtbSizeY, and the variable tmpHeightVal is equal to (pps_pic_height_in_luma_samples+CtbSizeY-1) / CtbSizeY.
[0195] The syntax element pps_subpic_ctu_top_left_x[i] may specify the horizontal position of the top left CTU of the i-th sub-picture, in units of CtbSizeY. The length of this syntax element is Ceil(Log2(tmpWidthVal)) bits.
[0196] When not present, the value of pps_subpic_ctu_top_left_x[i] can be inferred as follows:
[0197] – If pps_subpic_same_size_flag is equal to 0 or i is equal to 0, the value of pps_subpic_ctu_top_left_x[i] is inferred to be equal to 0.
[0198] – Otherwise, the value of pps_subpic_ctu_top_left_x[i] is inferred to be equal to (i % numSubpicCols)*(pps_subpic_width_minus1[0]+1).
[0199] When pps_subpic_same_size_flag is equal to 1, the variable numSubpicCols, which specifies the number of sub-picture columns in each picture in the CLVS, is derived as follows: numSubpicCols=tmpWidthVal / (pps_subpic_width_minus1[0]+1).
[0200] When pps_subpic_same_size_flag is equal to 1, the value of numSubpicCols*tmpHeightVal / (pps_subpic_height_minus1[0]+1)-1 may be equal to pps_updated_num_subpics_minus1.
[0201] The syntax element pps_subpic_ctu_top_left_y[i] may specify the vertical position of the top left CTU of the i-th sub-picture, in units of CtbSizeY. The length of this syntax element is Ceil(Log2(tmpHeightVal)) bits.
[0202] When not present, the value of pps_subpic_ctu_top_left_y[i] can be inferred as follows:
[0203] – If pps_subpic_same_size_flag is equal to 0 or i is equal to 0, the value of pps_subpic_ctu_top_left_y[i] is inferred to be equal to 0.
[0204] – Otherwise, the value of pps_subpic_ctu_top_left_y[i] is inferred to be equal to (i / numSubpicCols)*(pps_subpic_height_minus1[0]+1).
[0205] The syntax element pps_subpic_width_minus1[i] plus 1 specifies the width of the i-th sub-picture in units of CtbSizeY. The length of this syntax element is Ceil(Log2(tmpWidthVal)) bits.
[0206] When not present, the value of pps_subpic_width_minus1[i] is inferred as follows:
[0207] – If pps_subpic_same_size_flag is equal to 0 or i is equal to 0, the value of pps_subpic_width_minus1[i] is inferred to be equal to tmpWidthVal - pps_subpic_ctu_top_left_x[i] - 1.
[0208] – Otherwise, the value of pps_subpic_width_minus1[i] is inferred to be equal to pps_subpic_width_minus1[0].
[0209] When pps_subpic_same_size_flag is equal to 1, the value of tmpWidthVal%(pps_subpic_width_minus1[0]+1) may be equal to 0.
[0210] The syntax element pps_subpic_height_minus1[i] plus 1 specifies the height of the i-th sub-picture in units of CtbSizeY. The length of this syntax element is Ceil(Log2(tmpHeightVal)) bits.
[0211] When not present, the value of pps_subpic_height_minus1[i] may be inferred as follows:
[0212] – If pps_subpic_same_size_flag is equal to 0 or i is equal to 0, the value of pps_subpic_height_minus1[i] is inferred to be equal to tmpHeightVal - pps_subpic_ctu_top_left_y[i] - 1.
[0213] – Otherwise, the value of pps_subpic_height_minus1[i] is inferred to be equal to pps_subpic_height_minus1[0].
[0214] When pps_subpic_same_size_flag is equal to 1, the value of tmpHeightVal%(pps_subpic_height_minus1[0]+1) shall be equal to 0.
[0215] In one example, the code stream consistency requirement is that the shape of the sub-picture can be such that when each sub-picture is decoded, each sub-picture can have its complete left border and complete top border, including the picture border or including the border of the previously decoded sub-picture.
[0216] In one example, for each sub-picture with a sub-picture index i in the range of 0 to pps_num_subpics_minus1 (inclusive), the codestream conformance requirement is that all of the following conditions are true:
[0217] – The value of (pps_subpic_ctu_top_left_x[i]*CtbSizeY) should be less than (pps_pic_width_in_luma_samples-pps_conf_win_right_offset*SubWidthC).
[0218] – The value of ((pps_subpic_ctu_top_left_x[i]+pps_subpic_width_minus1[i]+1)*CtbSizeY) should be greater than (pps_conf_win_left_offset*SubWidthC).
[0219] – The value of (pps_subpic_ctu_top_left_y[i]*CtbSizeY) should be less than (pps_pic_height_in_luma_samples-pps_conf_win_bottom_offset*SubHeightC).
[0220] – The value of ((pps_subpic_ctu_top_left_y[i]+pps_subpic_height_minus1[i]+1)*CtbSize y) should be greater than (pps_conf_win_top_offset*SubHeightC).
[0221] The syntax element pps_subpic_treated_as_pic_flag[i] is equal to 1 and specifies that the i-th subpicture of each coded picture that references the PPS is to be treated as a picture during the decoding process (except for in-loop filtering operations). pps_subpic_treated_as_pic_flag[i] is equal to 0 and specifies that the i-th subpicture of each coded picture in the CLVS is not to be treated as a picture during the decoding process (except for in-loop filtering operations). When not present, the value of pps_subpic_treated_as_pic_flag[i] is inferred to be equal to 1.
[0222] The syntax element pps_loop_filter_across_subpic_enabled_flag[i] is equal to 1 to specify that in-loop filtering operations across sub-picture boundaries are enabled and may be performed across the boundaries of the i-th sub-picture in each coded picture in the CLVS. pps_loop_filter_across_subpic_enabled_flag[i] is equal to 0 to specify that in-loop filtering operations across sub-picture boundaries are disabled and not performed across the boundaries of the i-th sub-picture in each coded picture in the CLVS. When not present, the value of pps_loop_filter_across_subpic_enabled_pic_flag[i] is inferred to be equal to 0.
[0223] The syntax element pps_updated_subpic_id_len_minus1 plus 1 may specify the number of bits used to represent the syntax element pps_updated_subpic_id[i] (if present), and optionally the number of bits of the syntax element sh_subpic_id (if present). The value of pps_updated_subpic_id_len_minus1 may be in the range of 0 to 15, inclusive. The value of 1<<(pps_updated_subpic_id_len_minus1+1) may be greater than or equal to pps_updated_num_subpics_minus1+1.
[0224] The syntax element pps_updated_subpic_id_mapping_explicity_signalled_flag equal to 1 may specify that sub-picture ID mapping is explicitly signaled in the PPS referenced by the coded pictures of the CLVS. pps_updated_subpic_id_mapping_explicitly_signalled_flag equal to 0 may specify that sub-picture ID mapping is not explicitly signaled for the CLVS. When not present, the value of pps_updated_subpic_id_mapping_explicity_signalled_flag is inferred to be equal to 0.
[0225] The syntax element pps_updated_subpic_id_mapping_present_flag is equal to 1 and may specify that sub-picture ID mapping is signaled in the PPS when pps_updated_subpic_id_mapping_explicity_signalled_flag is equal to 1. pps_updated_subpic_id_mapping_present_flag is equal to 0 and may specify that sub-picture ID mapping is signaled in the PPS referenced by a coded picture of the CLVS when pps_subpic_id_mapping_explicity_signalled_flag is equal to 1.
[0226] The syntax element pps_updated_subpic_id[i] may specify the sub-picture ID of the i-th sub-picture. The length of the syntax element pps_updated_subpic_id[i] is pps_updated_subpic_id_len_minus1+1 bits.
[0227] The syntax elements pps_subpic_scaling_win_left_offset[i], pps_subpic_scaling_win_right_offset[i], pps_subpic_scaling_win_top_offset[i], and pps_subpic_scaling_win_bottom_offset[i] may specify the offsets to be applied to the sub-picture size of the i-th sub-picture for scaling calculations. Fig.13 The syntax elements pps_subpic_scaling_win_left_offset[i], pps_subpic_scaling_win_right_offset[i], pps_subpic_scaling_win_top_offset[i], and pps_subpic_scaling_win_bottom_offset[i] may respectively specify the left offset of the sub-picture scaling window (1312) relative to the sub-picture (1311). L , right offset O R , Upward offset O T and the lower offset O B .
[0228] When not present, the values of pps_subpic_scaling_win_left_offset[i], pps_subpic_scaling_win_right_offset[i], pps_subpic_scaling_win_top_offset[i], and pps_subpic_scaling_win_bottom_offset[i] are inferred to be equal to pps_scaling_win_left_offset, pps_scaling_win_right_offset, pps_scaling_win_top_offset, and pps_scaling_win_bottom_offset, respectively.
[0229] Depending on the values of a first syntax element (or a first flag) and a second syntax element (or a second flag) in a syntax structure (eg, a high-level syntax structure), such as the PPS in Table 2, various operations may be performed.
[0230] In one embodiment, the first flag indicates that sub-picture partitioning layout information of the picture is signaled. For example, when the first flag (eg, PPS_subpic_update_info_present_flag) is equal to 1, the first flag indicates that sub-picture partitioning layout information is signaled in the PPS. In one example, the picture includes a plurality of sub-pictures. Based on the sub-picture segmentation information (e.g., syntax elements pps_subpic_ctu_top_left_x[i], pps_subpic_ctu_top_left_y[i], pps_subpic_width_minus1[i], and pps_subpic_height_minus1[i]), a sub-picture layout of multiple sub-pictures in the picture may be determined, the sub-picture layout including a size (e.g., a width W of the sub-picture indicated by the syntax element pps_subpic_width_minus1[i] and a height H of the sub-picture indicated by pps_subpic_height_minus1[i]) and a position (e.g., indicated by the syntax elements pps_subpic_ctu_top_left_x[i] and pps_subpic_ctu_top_left_y[i]). In one example, a sub-picture identifier (ID) of each sub-picture in the picture is determined based on the sub-picture segmentation information in the PPS (e.g., syntax element pps_updated_subpic_id[i]). A first sub-picture of the plurality of sub-pictures may be reconstructed based on the sub-picture partitioning information (eg, the size and position of the first sub-picture). The sub-picture partitioning layout information may be updated within the CVS, eg, from a picture referencing a first PPS to another picture referencing a second PPS.
[0231] In one example, first sub-picture segmentation information is signaled in the first PPS, and second sub-picture segmentation information is signaled in the second PPS. The second sub-picture layout indicated by the second sub-picture segmentation information is different from the first sub-picture layout indicated by the first sub-picture segmentation information.
[0232] In one embodiment, the second flag indicates that sub-picture scaling window information of the sub-picture is signaled. For example, when the second syntax element (e.g., pps_subpic_scaling_win_info_present_flag) is equal to 1, the second flag indicates that the sub-picture scaling window information is signaled in the PPS. The reference sub-picture of the sub-picture may have a different spatial resolution (or a different size) than the spatial resolution of the sub-picture.
[0233] In one example, sub-picture scaling window information of a sub-picture is decoded from the PPS (e.g., syntax elements pps_subpic_scaling_win_left_offset[i], pps_subpic_scaling_win_right_offset[i], pps_subpic_scaling_win_top_offset[i], and pps_subpic_scaling_win_bottom_offset[i] in Table 2). The sub-picture may be reconstructed using per-sub-picture reference picture resampling based on the sub-picture scaling window information of the sub-picture.
[0234] For example, the syntax elements pps_subpic_scaling_win_left_offset[i], pps_subpic_scaling_win_right_offset[i], pps_subpic_scaling_win_top_offset[i], and pps_subpic_scaling_win_bottom_offset[i] indicate the first offset of the sub-picture scaling window (1312), for example, the left offset 0. L , right offset O R , Upward offset O T and the lower offset O B In one example, the width W of the sub-picture zoom window (1312) is S Determined as W S =W–(O L +O R ), where W is the width of the sub-picture. In one example, the height H of the sub-picture zoom window (1312) is S Determined to be H S =H–(O T +O B ), where H is the height of the sub-image.
[0235] The scaling ratios associated with the reference sub-picture (1301) and the sub-picture (1311) may be determined based on size information of a scaling window (eg, 1312) of the sub-picture (1311). Fig.13 The scaling ratio between the reference sub-image (1301) and the sub-image (1311) may be based on the width W of the sub-image scaling window (1312). S and the height H of the sub-picture zoom window (1312) SThe sub-picture may be determined based on the determined scaling ratios associated with the reference sub-picture (1301) and the sub-picture (1311). In one example, the sub-picture reference resampling is used to generate a scaled reference sub-picture that matches the spatial resolution (or size) of the sub-picture. The sub-picture may be decoded using the scaled reference sub-picture.
[0236] According to one embodiment, syntax elements indicating sub-picture partitioning information and sub-picture scaling window information may be combined in a syntax structure (eg, a high-level syntax structure) such as a PPS.
[0237] In one embodiment, the first flag indicates that sub-picture segmentation information is signaled in the PPS. The second flag indicates that sub-picture scaling window information of the sub-picture is signaled in the PPS. The sub-picture segmentation information can be decoded based on the PPS. The sub-picture scaling window information of the sub-picture can be decoded based on the PPS. As described above, size information (e.g., width W indicated by pps_subpic_width_minus1[i] and height H indicated by pps_subpic_height_minus1[i]) and position information (e.g., indicated by pps_subpic_ctu_top_left_x[i] and pps_subpic_ctu_top_left_y[i]) of the sub-picture can be determined based on the sub-picture segmentation information. The sub-picture may be reconstructed based on the sub-picture scaling window information of the sub-picture (eg, indicated by pps_subpic_scaling_win_left_offset[i], pps_subpic_scaling_win_right_offset[i], pps_subpic_caling_win_top_offset[i], and pps_subpic_caling_win_bottom_offset[i]), the size information of the sub-picture, and the position information of the sub-picture, as described above with reference to Fig.13 as described.
[0238] Fig.16A flow chart outlining an encoding process (1600) according to one embodiment of an embodiment of the present application is shown. In various embodiments, the process (1600) is performed by a processing circuit, such as a processing circuit in a terminal device (310), a terminal device (320), a terminal device (330), and a terminal device (340), and a processing circuit that performs the functions of a video encoder (e.g., (403), (603), (703)). In some embodiments, the process (1600) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1600). The process starts at (S1601) and proceeds to (S1610).
[0239] At (S1610), at least one of a first flag and a second flag in a syntax structure (e.g., a high-level syntax structure) of a first picture in an encoded video sequence may be determined. The first flag may indicate whether first sub-picture segmentation information of the first picture is signaled in the syntax structure. The second flag may indicate whether first sub-picture scaling window information of a first sub-picture in the first picture is signaled in the syntax structure. In an example, the syntax structure is a PPS, such as shown in Table 2. The first flag may be a first syntax element (e.g., pps_subpic_update_info_present_flag). The second flag may be a second syntax element (e.g., pps_subpic_scaling_win_info_present_flag).
[0240] At (S1620), a syntax element indicating the first sub-picture segmentation information may be generated based on the first flag indicating that the first sub-picture segmentation information is signaled in the syntax structure. In an example, the first flag indicates that the first sub-picture segmentation information is signaled in the syntax structure, for example, the value of pps_subpic_update_info_present_flag is equal to 1. A syntax element indicating the first sub-picture segmentation information may be generated, for example, a syntax element indicating a size, a position, and a sub-picture ID of a sub-picture in the first picture.
[0241] At (S1630), a syntax element indicating the first sub-picture scaling window information may be generated based on the second flag indicating that the first sub-picture scaling window information is signaled in the syntax structure. In an example, the second flag indicates that the first sub-picture scaling window information is signaled in the syntax structure, for example, the value of pps_subpic_scaling_win_info_present_flag is equal to 1. A syntax element indicating the first sub-picture scaling window information may be generated, for example, a syntax element indicating an offset of a sub-picture in the first picture.
[0242] At (S1640), the first sub-picture may be encoded based on the first flag and the second flag. If the first flag indicates that the first sub-picture partition information is signaled in the syntax structure, the first sub-picture may be encoded based on the first sub-picture partition information.
[0243] If the second flag indicates that the first sub-picture scaling window information is signaled in the syntax structure, the first sub-picture may be encoded based on the first sub-picture scaling window information.
[0244] If the first flag indicates that first sub-picture segmentation information is signaled in the syntax structure and the second flag indicates that first sub-picture scaling window information is signaled in the syntax structure, the first sub-picture may be encoded based on the first sub-picture segmentation information and the first sub-picture scaling window information.
[0245] The process (1600) may be appropriately adapted to various scenarios, and the steps in the process (1600) may be adjusted accordingly. One or more steps in the process (1600) may be adjusted, omitted, repeated, and / or combined. The process (1600) may be implemented in any suitable order. Additional steps may be added.
[0246] Fig.17 A flowchart outlining a decoding process (1700) according to one embodiment of an embodiment of the present application is shown. In various embodiments, the process (1700) is performed by a processing circuit, such as a processing circuit in a terminal device (310), a terminal device (320), a terminal device (330), and a terminal device (340), and a processing circuit that performs the functions of a video encoder (403), a processing circuit that performs the functions of a video decoder (410), a processing circuit that performs the functions of a video decoder (510), a processing circuit that performs the functions of a video encoder (603), etc. In some embodiments, the process (1700) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1700). The process starts at (S1701) and proceeds to (S1710).
[0247] At (S1710), at least one of a first flag (e.g., pps_subpic_update_info_present_flag) and a second flag (e.g., pps_subpic_scaling_win_info_present_flag) in a syntax structure (e.g., a high-level syntax structure) of a first picture in a coded video sequence (CVS) may be decoded. The first picture may include a first sub-picture. The first flag may indicate whether first sub-picture segmentation information of the first picture is signaled in the syntax structure. The second flag may indicate whether first sub-picture scaling window information of the first sub-picture is signaled in the syntax structure. In one embodiment, the syntax structure is a high-level syntax structure.
[0248] In one example, the syntax structure is a first picture parameter set (PPS) syntax structure.
[0249] At (S1720), the first sub-picture may be reconstructed based on (i) a first flag indicating that first sub-picture segmentation information is signaled in a syntax structure or (ii) a second flag indicating that first sub-picture scaling window information of the first sub-picture is signaled in a syntax structure.
[0250] In one example, at least one of the first flag and the second flag includes a first flag. The first flag indicates that first sub-picture partition information of the first picture is signaled in the syntax structure.
[0251] The first picture includes a plurality of sub-pictures, wherein the plurality of sub-pictures include a first sub-picture. A first sub-picture layout of the plurality of sub-pictures in the first picture may be determined based on the first sub-picture segmentation information. The first sub-picture layout may indicate (e.g., include) a position and a size of each of the plurality of sub-pictures in the first picture, such as described with reference to Table 2.
[0252] A sub-picture identifier (ID) of each sub-picture in the first picture may be determined based on the first sub-picture partitioning information in the syntax structure.
[0253] In one example, the syntax structure including the first sub-picture segmentation information is a first PPS. The second sub-picture segmentation information signaled in the second PPS syntax structure of the second picture in the CVS may be decoded, and the second sub-picture in the second picture may be reconstructed based on the second sub-picture segmentation information. The second sub-picture layout of the second picture may be different from the first sub-picture layout of the first picture.
[0254] At least one of the first flag and the second flag may include the second flag. The second flag may indicate that first sub-picture scaling window information of the first sub-picture is signaled in the syntax structure. The first sub-picture scaling window information of the first sub-picture may be decoded based on the syntax structure. The first sub-picture may be reconstructed using a sub-picture reference picture resampling based on the first sub-picture scaling window information of the first sub-picture.
[0255] Process (1700) proceeds to (S1799) and ends.
[0256] The process (1700) may be appropriately adapted to various scenarios, and the steps in the process (1700) may be adjusted accordingly. One or more steps in the process (1700) may be adjusted, omitted, repeated, and / or combined. The process (1700) may be implemented in any suitable order. Additional steps may be added.
[0257] In one example, a first picture is located in a first layer in a CVS. Second sub-picture segmentation information signaled in another syntax structure of a second picture located in a second layer in the CVS may be decoded. The second sub-picture segmentation information may be different from the first sub-picture segmentation information. A second sub-picture in the second picture may be reconstructed based on the second sub-picture segmentation information.
[0258] In one embodiment, at least one of the first flag and the second flag includes a first flag and a second flag. The first flag indicates that the first sub-picture segmentation information is signaled in the syntax structure. The second flag may indicate that the first sub-picture scaling window information of the first sub-picture is signaled in the syntax structure. The first sub-picture scaling window information of the first sub-picture may be decoded from the syntax structure. The size information and the position information of the first sub-picture may be determined based on the first sub-picture segmentation information. The first sub-picture may be reconstructed based on the first sub-picture scaling window information of the first sub-picture, the size information of the first sub-picture, and the position information of the first sub-picture.
[0259] The embodiments of the present application can be used alone or in any order. In addition, each of the method (or embodiment), encoder and decoder can be implemented by a processing circuit (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored in a non-transitory computer-readable medium.
[0260] The above techniques may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media. Fig.18 A computer system (1800) suitable for implementing certain embodiments of the disclosed subject matter is shown.
[0261] Computer software may be encoded using any suitable machine code or computer language that may be subjected to assembly, compilation, linking or similar mechanisms to create code comprising instructions that may be executed directly by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or through interpretation, microcode execution, etc.
[0262] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, Internet of Things devices, and the like.
[0263] Fig.18 The components of the computer system (1800) shown are exemplary in nature and are not intended to impose any limitation on the scope of use or functionality of computer software implementing embodiments of the present application. The configuration of components should not be interpreted as having any dependency or requirement related to any one or combination of components shown in the exemplary embodiment of the computer system (1800).
[0264] The computer system (1800) may include certain human-machine interface input devices. Such human-machine interface input devices may be responsive to input from one or more human users through, for example, tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, clapping), visual input (e.g., gestures), olfactory input (not depicted). Human-machine interface devices may also be used to capture certain media that are not necessarily directly related to human conscious input, such as audio (e.g., voice, music, ambient sounds), images (e.g., scanned images, captured images obtained from a still image camera), and videos (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
[0265] The human-machine interface input device may include one or more of the following (only one of each is shown): keyboard (1801), mouse (1802), touchpad (1803), touch screen (1810), data gloves (not shown), joystick (1805), microphone (1806), scanner (1807), camera (1808).
[0266] The computer system (1800) may also include certain human-computer interface output devices. Such human-computer interface output devices may stimulate one or more human user senses through, for example, tactile output, sound, light, and smell / taste. Such human-computer interface output devices may include tactile output devices (e.g., tactile feedback of a touch screen (1810), a data glove (not shown), or a joystick (1805), but may also be a tactile feedback device that is not an input device), audio output devices (e.g., speakers (1809), headphones (not depicted)), visual output devices (e.g., screens (1810) including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities, some of which are capable of outputting two-dimensional visual outputs or outputs in more than three dimensions through devices such as stereoscopic image output, virtual reality glasses (not depicted), holographic displays and smoke boxes (not depicted), and printers (not depicted).
[0267] The computer system (1800) may also include human-accessible storage devices and their associated media, such as optical media including CD / DVD ROM / RW (1820) with CD / DVD etc. media (1821), thumb drives (1822), removable hard drives or solid-state drives (1823), traditional magnetic media such as tapes and floppy disks (not depicted), dedicated ROM / ASIC / PLD based devices such as security dongles (not depicted), and the like.
[0268] Those skilled in the art should also understand that the term "computer-readable media" used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transitory signals.
[0269] The computer system (1800) may also include an interface (1854) to one or more communication networks (1855). The network may be, for example, a wireless network, a wired network, an optical network. The network may further be a local network, a wide area network, a metropolitan area network, a vehicle and industrial network, a real-time network, a delay-tolerant network, etc. Examples of networks include local area networks such as Ethernet, wireless LANs, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., television wired or wireless wide area digital networks including cable television, satellite television, and terrestrial broadcast television, vehicle and industrial networks including CANBus, etc. Some networks typically require an external network interface adapter attached to some general data port or peripheral bus (1849) (e.g., a USB port of the computer system (1800)); as described below, other network interfaces are typically integrated into the kernel of the computer system (1800) by attaching to the system bus (e.g., connected to an Ethernet interface in a PC computer system or connected to a cellular network interface in a smartphone computer system). The computer system (1800) can use any of these networks to communicate with other entities. Such communications may be one-way receive only (e.g., broadcast television), one-way send only (e.g., CANBus connected to certain CANBus devices), or bidirectional, for example, using a LAN or WAN digital network to connect to other computer systems. As described above, certain protocols and protocol stacks may be used on each of those networks and network interfaces.
[0270] The above-mentioned human-machine interface device, human-machine accessible storage device, and network interface may be attached to the kernel (1840) of the computer system (1800).
[0271] The kernel (1840) may include one or more central processing units (CPUs) (1841), graphics processing units (GPUs) (1842), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (1843), hardware accelerators (1844) for certain tasks, graphics adapters (1850), and the like. These devices, as well as read-only memory (ROM) (1845), random access memory (1846), internal mass storage (1847) such as internal non-user accessible hard drives, SSDs, and the like, may be connected via a system bus (1848). In some computer systems, the system bus (1848) may be accessed in the form of one or more physical plugs to enable expansion by additional CPUs, GPUs, and the like. Peripheral devices may be attached directly to the kernel's system bus (1848) or to the kernel's system bus (1848) via a peripheral bus (1849). In one example, a screen (1810) may be connected to a graphics adapter (1850). The architecture of the peripheral bus includes PCI, USB, and the like.
[0272] The CPU (1841), GPU (1842), FPGA (1843) and accelerator (1844) can execute certain instructions, which can be combined to form the above-mentioned computer code. The computer code can be stored in ROM (1845) or RAM (1846). Transition data can also be stored in RAM (1846), while permanent data can be stored, for example, in internal mass storage (1847). Fast storage and retrieval to any storage device can be performed by using a cache, which can be closely associated with the following: one or more CPUs (1841), GPUs (1842), mass storage (1847), ROM (1845), RAM (1846), etc.
[0273] The computer readable medium may have thereon computer code for performing various computer-implemented operations. The medium and computer code may be specially designed and constructed for the purposes of the embodiments of the present application, or the medium and computer code may be of a type known and available to those skilled in the art of computer software.
[0274] As an example, but not a limitation, a computer system having an architecture (1800), particularly a kernel (1840), may provide functionality due to one or more processors (including CPUs, GPUs, FPGAs, accelerators, etc.) executing software contained in one or more tangible computer-readable media. Such computer-readable media may be media associated with user-accessible mass storage as described above, as well as memories of certain non-temporary kernels (1840), such as kernel internal mass storage (1847) or ROM (1845). Software implementing various embodiments of the present application embodiments may be stored in such devices and executed by the kernel (1840). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software may enable the kernel (1840), particularly the processors therein (including CPUs, GPUs, FPGAs, etc.), to perform specific processes or specific parts of specific processes described herein, including defining data structures stored in RAM (1846) and modifying such data structures according to processes defined by the software. Additionally or alternatively, a computer system may provide functionality due to logic hardwired or otherwise embodied in a circuit (e.g., accelerator (1844)) that may replace software or operate in conjunction with software to perform a specific process or a specific portion of a specific process described herein. Where appropriate, a reference to a portion of software may include logic and vice versa. Where appropriate, a reference to a portion of a computer-readable medium may include a circuit (e.g., an integrated circuit (IC)) storing software for execution, a circuit embodying logic for execution, or both. Embodiments of the present application include any suitable combination of hardware and software.
[0275] Appendix A: Acronyms
[0276] JEM: Joint Exploration Model
[0277] VVC: Next Generation Video Coding
[0278] BMS: Benchmark Set
[0279] MV: Motion Vector
[0280] HEVC: High Efficiency Video Coding
[0281] SEI: Supplementary Enhancement Information
[0282] VUI: Video Availability Information
[0283] GOP: Group of Pictures
[0284] TU: Transform Unit
[0285] PU: prediction unit
[0286] CTU: Coding Tree Unit
[0287] CTB: Coding Tree Block
[0288] PB: prediction block
[0289] HRD: Hypothetical Reference Decoder
[0290] SNR: Signal to Noise Ratio
[0291] CPU: Central Processing Unit
[0292] GPU: Graphics Processing Unit
[0293] CRT: cathode ray tube
[0294] LCD: Liquid Crystal Display
[0295] OLED: Organic Light Emitting Diode
[0296] CD: compact disc
[0297] DVD: Digital Video Disc
[0298] ROM: Read Only Memory
[0299] RAM: Random Access Memory
[0300] ASIC: Application-Specific Integrated Circuit
[0301] PLD: Programmable Logic Device
[0302] LAN: Local Area Network
[0303] GSM: Global System for Mobile Communications
[0304] LTE: Long Term Evolution
[0305] CANBus: Controller Area Network Bus
[0306] USB: Universal Serial Bus
[0307] PCI: Peripheral Component Interconnect
[0308] FPGA: Field Programmable Gate Array
[0309] SSD: Solid State Drive
[0310] IC: Integrated Circuit
[0311] CU: Coding Unit
[0312] NIC: Neural Image Compression
[0313] RD: Rate Distortion
[0314] E2E: End to End
[0315] ANN: Artificial Neural Network
[0316] DNN: Deep Neural Network
[0317] CNN: Convolutional Neural Network
[0318] Although the embodiments of the present application have described multiple exemplary embodiments, there are modifications, permutations, and various replacement equivalents that fall within the scope of the embodiments of the present application. Therefore, it should be understood that those skilled in the art will be able to design many systems and methods that, although not explicitly shown or described herein, embody the principles of the embodiments of the present application and therefore fall within the spirit and scope of the embodiments of the present application.
Claims
1. A method for video decoding, It is characterized in that include: Decoding at least one of a first flag and a second flag in a syntax structure of a first picture in a coded video sequence (CVS); The first picture includes a first sub-picture, the first flag indicates whether first sub-picture segmentation information of the first picture is signaled in the syntax structure, and the second flag indicates whether first sub-picture scaling window information of the first sub-picture is signaled in the syntax structure; as well as Reconstruct a sub-picture of the first picture based on the first flag indicating that the first sub-picture segmentation information of the first picture is represented by a signal in the syntax structure, or based on the second flag indicating that the sub-picture scaling window information of the first picture is represented by a signal in the syntax structure.
2. The method according to claim 1, It is characterized in that The syntax structure is a first picture parameter set (PPS) syntax structure.
3. The method according to claim 1, It is characterized in that At least one of the first flag and the second flag includes the first flag indicating that the first sub-picture partition information of the first picture is signaled in the syntax structure.
4. The method according to claim 3, It is characterized in that The first picture includes a plurality of sub-pictures, and the plurality of sub-pictures include the first sub-picture; and the method further includes: Based on the first sub-picture segmentation information, a first sub-picture layout of the multiple sub-pictures in the first picture is determined, where the first sub-picture layout includes a position and a size of each sub-picture of the multiple sub-pictures in the first picture.
5. The method according to claim 4, It is characterized in that The method further comprises: A sub-picture identifier (ID) of each sub-picture in the first picture is determined based on the first sub-picture partitioning information in the syntax structure.
6. The method according to claim 4, It is characterized in that The syntax structure is a first picture parameter set (PPS) syntax structure; the method further comprising: decoding second sub-picture partitioning information signaled in a second PPS syntax structure for a second picture in the CVS; and A second sub-picture in the second picture is reconstructed based on the second sub-picture segmentation information, wherein a second sub-picture layout of the second picture is different from a first sub-picture layout of the first picture.
7. The method according to claim 1, It is characterized in that The first picture is located in the first layer of the CVS; The method further comprises: decoding second sub-picture partition information signaled in a third PPS syntax structure for a second picture in a second layer in the CVS, the second sub-picture partition information being different from the first sub-picture partition information; and Reconstruct a second sub-picture of the second picture based on the second sub-picture segmentation information.
8. The method according to claim 1, It is characterized in that at least one of the first mark and the second mark includes the second mark, The second flag indicates that the first sub-picture scaling window information of the first sub-picture is signaled in the syntax structure.
9. The method according to claim 8, It is characterized in that The method further comprises: decoding the first sub-picture scaling window information of the first sub-picture based on the grammatical structure; Reconstructing the first sub-picture includes reconstructing the first sub-picture using sub-picture reference picture resampling based on the first sub-picture scaling window information of the first sub-picture.
10. The method according to claim 8, It is characterized in that At least one of the first flag and the second flag further includes the first flag indicating that the first sub-picture partition information is signaled in the syntax structure; The method further comprises: Based on the syntax structure, decoding the first sub-picture scaling window information of the first sub-picture; and determining size information and position information of the first sub-picture based on the first sub-picture segmentation information, Reconstructing the first sub-picture includes: reconstructing the first sub-picture based on the first sub-picture scaling window information of the first sub-picture, the size information of the first sub-picture, and the position information of the first sub-picture.
11. A method for video encoding, It is characterized in that Used to generate video streams, including: encoding at least one of a first flag and a second flag in a syntax structure of the first picture; The first picture includes a first sub-picture, the first flag indicates whether first sub-picture segmentation information of the first picture is signaled in the syntax structure, and the second flag indicates whether first sub-picture scaling window information of the first sub-picture is signaled in the syntax structure; The sub-picture of the first picture is encoded based on the first flag indicating that the first sub-picture segmentation information of the first picture is represented by a signal in the syntax structure, or based on the second flag indicating that the sub-picture scaling window information of the first picture is represented by a signal in the syntax structure.
12. A device for video decoding, It is characterized in that Used to decode video streams, including: a memory for storing program instructions; and A processor, configured to call the program instructions stored in the memory to implement the video decoding method according to any one of claims 1 to 10.
13. A device for video encoding, It is characterized in that Used to generate video streams, including: a memory for storing program instructions; and A processor is used to call the program instructions stored in the memory to implement the video encoding method according to claim 11.
14. A non-transitory computer-readable storage medium storing a program, It is characterized in that The program can be run by at least one processor to execute the video decoding method according to any one of claims 1 to 10 to decode a video code stream, or execute the video encoding method according to claim 11 to generate a video code stream.
15. A method for storing a code stream, It is characterized in that A video code stream is stored on a non-volatile computer-readable storage medium, wherein the video code stream is generated according to the video encoding method according to claim 11, or is decoded based on the video decoding method according to any one of claims 1 to 10.
