Video code stream generation method and decoding method, code stream storage method and electronic equipment
By introducing the consistency window usage flag and the reference picture resampling parameter into the video code stream, the problem of insufficient quality of scaling factors calculated based on the consistency window size in the existing technology is solved, and the quality of inter-frame prediction and video code stream are improved. flexibility.
Patent Information
- Application Number
- CN202410835396.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2020-09-16
- Filing Date
- 2020-09-22
- Publication Date
- 2024-10-01
AI Technical Summary
When existing video coding technology handles inter-frame prediction with different resolutions, the scaling factor calculated based on the consistency window size may not guarantee quality, especially in immersive media applications, and the consistency window offset mismatch leads to cross-frame prediction. Layer reference area calculation is difficult.
Ensure the flexibility of the video code stream by introducing an indication consistency window in the video code stream using flags and reference picture resampling parameters, including multiple reference area parameters, such as left and upper offsets, to calculate the scaling ratio of the reference picture and accuracy.
Improves the quality of inter-frame prediction during video encoding and decoding, is suitable for multi-layer scalability and scenarios with different resolutions, solves the problem of mismatch between consistency window size and picture size, and enhances the flexibility of video streams and accuracy.
Smart Images

Figure CN118741123A_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. Provisional Patent Application No. 62 / 905,319 filed on September 24, 2019 and U.S. Patent Application No. 17 / 022,727 filed on September 16, 2020, both of which are incorporated in their entirety into this application. Technical Field
[0003] The present application relates to video encoding and decoding, and more specifically to a method for generating and decoding a video code stream, a method for storing the code stream, and an electronic device. Background Art
[0004] Video encoding and decoding using inter-picture prediction with motion compensation is known. Uncompressed digital video may consist of a series of pictures, each picture having a certain spatial dimension, 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), for example, 60 pictures per second or 60 Hertz (Hz). Uncompressed video has significant bit rate requirements. For example, 1080p60 4:2:0 video (1920×1080 luma sample resolution at 60 Hz frame rate) with 8 bits per sample 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 video encoding and decoding can be to reduce redundancy in the input video signal through compression. Compression can help reduce the bandwidth or storage space requirements mentioned above, in some cases, by two or more orders of magnitude. Both lossless compression and lossy compression and combinations thereof can be used for video encoding and decoding. Lossless compression refers to a technique that can reconstruct an exact copy of the original signal from the compressed original signal. When lossy compression is used, the reconstructed signal may not be exactly the same as the original signal, but the distortion between the original signal and the reconstructed signal is small enough that the reconstructed signal can be used for the intended application. Lossy compression is widely used in video. The amount of distortion allowed by lossy compression 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 ratio can reflect that the higher the allowable / tolerable distortion, the higher the compression ratio that can be produced.
[0006] There are several broad categories of techniques that video encoders and decoders can use, including, for example, motion compensation, transforms, quantization, and entropy coding. Some of the techniques in these categories are described below.
[0007] Historically, video encoders and decoders have tended to operate on a given picture size, which in most cases is defined and kept constant for a Coded Video Sequence (CVS), Group of Pictures (GOP) or similar multi-picture temporal frame. For example, in MPEG-2, the system design changes the horizontal resolution (and thus the picture size) depending on factors such as scene activity, but only at I pictures, so this usually applies to GOPs. Resampling reference pictures to allow different resolutions to be used in CVS is known, for example from ITU-T Recommendation H.263 Annex P. However, since the picture size does not change here, only the reference picture is resampled, which may result in only a portion of the picture canvas being used (in the case of downsampling) or only a portion of the scene being captured (in the case of upsampling). In addition, H.263 Annex Q allows individual macroblocks to be resampled up or down by a factor of two (in each dimension). Again, the picture size remains unchanged. The size of the macroblock is fixed in H.263 and therefore does not need to be signaled.
[0008] Changes in picture size in predicted pictures have become more mainstream in modern video coding. For example, VP9 allows reference picture resampling and resolution changes for the entire picture. Similarly, certain proposals for VVC (including, for example, Hendry et al., "On adaptive resolution change (ARC) for VVC", Joint Video Team document JVET-M0135-v1, January 9-19, 2019, which is incorporated herein in its entirety) allow the entire reference picture to be resampled to a different (higher or lower) resolution. In this document, it is proposed that different candidate resolutions be encoded in a sequence parameter set and referenced by a per-picture syntax element in a picture parameter set.
[0009] In some techniques, the scaling factor of the reference picture resampling (RPR) can be derived based on the consistency window parameter. However, when the consistency window size is completely different from the decoded picture size with a large offset value, for immersive media applications, calculating the scaling factor based on the consistency window size may not guarantee the quality of inter-frame prediction with different resolutions. In addition, when RPR is used for multi-layer scalability, the consistency window offset may not be used to calculate the reference area across layers. Furthermore, when a sub-codestream for a specific area (sub-picture) is extracted from the entire codestream, the consistency window size may not match the picture size at all. Summary of the invention
[0010] An embodiment of the present application provides a method for generating a video bitstream, the method comprising: generating a video bitstream, the video bitstream comprising: (i) a flag indicating whether a consistency window is used for reference picture resampling; (ii) reference picture resampling parameters; wherein the flag indicates that the consistency window is not used for reference picture resampling; wherein, when it is determined that the flag indicates that the consistency window is not used for reference picture resampling, and it is determined to send a signal to notify the reference picture resampling parameters, the reference picture resampling parameters include multiple reference area parameters for calculating a scaling ratio of the reference picture resampling, the multiple reference area parameters at least including a reference area left offset and a reference area top offset; wherein the current picture is encoded using the reference picture resampling parameters including the multiple reference area parameters.
[0011] In an embodiment, the flag is signaled in a picture parameter set.
[0012] In one embodiment, when determining to signal a resampled picture size, a resampling ratio is determined based on the resampled picture size, wherein the video code stream further includes at least one of a width of the resampled picture size and a height of the resampled picture size.
[0013] In an embodiment, at least one of said width and said height is signaled in a picture parameter set.
[0014] In an embodiment, at least one of the width and the height is expressed as the number of luma samples included in at least one of the width and the height.
[0015] In an embodiment, at least one of the width and the height is determined based on at least one offset distance between a boundary of the current picture and predetermined brightness samples of a reference area.
[0016] In an embodiment, the at least one offset distance is signaled in a picture parameter set.
[0017] In one embodiment, the at least one offset distance comprises at least one of the following:
[0018] The horizontal offset distance between the left border of the current image and the upper left brightness sample of the reference area,
[0019] The vertical offset distance between the upper boundary of the current image and the upper left brightness sample of the reference area.
[0020] the horizontal offset distance between the right border of the current image and the lower right luminance sample of the reference region, and
[0021] The vertical offset distance between the bottom edge of the current image and the bottom-right luma sample of the reference region.
[0022] An embodiment of the present application provides a method for decoding a video code stream, the method comprising: receiving a video code stream, the video code stream comprising: (i) a flag indicating whether a consistency window is used for reference picture resampling; (ii) a reference picture resampling parameter; determining that the flag indicates that the consistency window is not used for reference picture resampling; parsing the reference picture resampling parameter, the reference picture resampling parameter comprising a plurality of reference area parameters for calculating a scaling ratio of the reference picture resampling, the plurality of reference area parameters comprising at least a reference area left offset and a reference area top offset; using the reference picture resampling parameter to calculate a scaling ratio of the reference picture resampling, and performing reference picture resampling on a current picture according to the scaling ratio of the reference picture resampling.
[0023] An embodiment of the present application 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 aforementioned video code stream generation method, or is decoded based on the aforementioned decoding method.
[0024] In one embodiment, an electronic device is provided, including a memory for storing computer-readable instructions; a processor for reading the computer-readable instructions and executing the above method according to the instructions of the computer-readable instructions. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Other features, properties and various advantages of the disclosed subject matter will become more apparent from the following detailed description and accompanying drawings, in which:
[0026] Figure 1 is a schematic diagram of a simplified block diagram of a communication system according to an embodiment.
[0027] Figure 2 is a schematic diagram of a simplified block diagram of a communication system according to an embodiment.
[0028] Figure 3 is a schematic diagram of a simplified block diagram of a decoder according to an embodiment.
[0029] Figure 4 is a schematic diagram of a simplified block diagram of an encoder according to an embodiment.
[0030] Figure 5 is a diagram of options for signaling ARC parameters according to an embodiment.
[0031] FIG. 6A to FIG. 6B is a diagram of an example of a syntax table according to an embodiment.
[0032] Figure 7 is a schematic diagram of signaling picture size and consistency window in PPS according to an embodiment.
[0033] Figure 8 is a schematic diagram of signaling picture size and consistency window in PPS according to an embodiment.
[0034] Fig. 9 is a flowchart of an example method for decoding an encoded video stream according to an embodiment.
[0035] Fig.10 is a schematic diagram of a computer system according to an embodiment. DETAILED DESCRIPTION
[0036] Figure 1 The present invention is a simplified block diagram of a communication system (100) according to an embodiment disclosed in the present application. The communication system (100) includes at least two terminal devices (110-120), and the at least two terminal devices can be interconnected with each other through a network (150). For unidirectional data transmission, a first terminal device (110) can encode video data at a local location for transmission to another terminal device (120) through the network (150). The second terminal device (120) can receive the encoded video data of another terminal device from the network (150), decode the encoded video data and display the recovered video data. Unidirectional data transmission is more common in applications such as media services.
[0037] Figure 1 A second pair of terminal devices (130, 140) is illustrated for supporting bidirectional transmission of encoded video, which may occur, for example, during a video conference. For bidirectional data transmission, each of the third terminal device (130) and the fourth terminal device (140) may encode video data collected at a local location for transmission to the other of the third terminal device (130) and the fourth terminal device (140) via a network (150). Each of the third terminal device (130) and the fourth terminal device (140) may also receive the encoded video data transmitted by the other of the third terminal device (130) and the fourth terminal device (140), decode the encoded video data, and display the recovered video data on a local display device.
[0038] exist Figure 1In the embodiment of the present invention, the first terminal device (110), the second terminal device (120), the third terminal device (130) and the fourth terminal device (140) may be servers, personal computers and smart phones, but the principles disclosed in the present application may not be limited thereto. The embodiments disclosed in the present application are applicable to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. The network (150) represents any number of networks that transmit encoded video data between the first terminal device (110), the second terminal device (120), the third terminal device (130) and the fourth terminal device (140), including, for example, wired and / or wireless communication networks. The communication network (150) may exchange data in circuit switching and / or packet switching channels. Representative networks may include telecommunication networks, local area networks, wide area networks and / or the Internet. For the purpose of discussion in the present application, unless explained below, the architecture and topology of the network (150) may be irrelevant to the operation disclosed in the present application.
[0039] As an example of the application of the subject matter disclosed in this application, Figure 2The placement of a video encoder and a video decoder in a streaming environment is shown. The subject matter disclosed in the present application 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. The streaming system may include an acquisition subsystem (213), which may include a video source (201) such as a digital camera, which creates, for example, an uncompressed video sample stream (202). The video sample stream (202) is depicted as a bold line to emphasize that it has a higher data volume than an encoded video code stream. Compared to the encoded video stream, the video sample stream (202) is depicted as a bold line to emphasize the high data volume of the video sample stream. The video sample stream (202) may be processed by an encoder (203) coupled to the digital camera (201). The encoder (203) 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 stream (204) is depicted as a thin line compared to the video sample stream (202) to emphasize that the encoded video stream (204) has a lower data volume than the video sample stream (202), which can be stored on a streaming server (205) for future use. At least one streaming client (206, 208) can access the streaming server (205) to retrieve a copy (207) and a copy (209) of the encoded video stream (204). The client (206) can include a video decoder (210) that decodes the incoming copy (207) of the encoded video stream and produces an output video sample stream (211) that can be presented on a display (212) or other presentation device (not depicted). In some streaming systems, the video streams (204, 207, 209) can be encoded according to certain video encoding / compression standards. Examples of such standards include ITU-T Recommendation H.265.The video coding standard under development is informally referred to as Next Generation Video Coding. The video coding standard under development is informally referred to as Versatile Video Coding (VVC), and the present application may be used in the context of the VVC standard.
[0040] Figure 3 It may be a block diagram of a video decoder (210) according to an embodiment disclosed in the present application.
[0041] The receiver (310) may receive at least one encoded video sequence to be decoded by the video decoder (210). In the same embodiment or another embodiment, the receiver (301) may receive one encoded video sequence 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 (312), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (310) may receive the encoded video data as well as other data, such as encoded audio data and / or auxiliary data streams that may be forwarded to their respective consuming entities (not shown). The receiver (310) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (315) may be coupled between the receiver (310) and the entropy decoder / parser (320) (hereinafter referred to as the "parser"). When the receiver (310) receives data from a storage / forward device with sufficient bandwidth and controllability or from an isochronous network, it may not be necessary to configure the buffer memory (315), or the buffer memory may be made smaller. For use on a best-effort packet network such as the Internet, a buffer memory (315) may also be required, and the buffer memory may be relatively large and may have an adaptive size.
[0042] The video decoder (210) may include a parser (320) to reconstruct symbols (321) from an entropy coded video sequence. The types of symbols include information for managing the operation of the video decoder (210) and potential information for controlling a display device such as a display screen (212) that is not part of the video decoder but may be coupled to the video decoder, such as Figure 3As shown in . The control information for the display device may be in the form of Supplemental Enhancement Information (SEI message) or Video Usability Information (VUI). The parser (320) 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, and the like. The parser (320) 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 (Group of Pictures, GOP), a picture, a sub-picture, a tile, a slice, a brick, a macroblock, a coding tree unit (Coding Tree Unit, CTU), a coding unit (Coding Unit, CU), a block, a transform unit (Transform Unit, TU), a prediction unit (Prediction Unit, PU), and the like. A tile may refer to a rectangular area of a CU / CTU within a special tile row in a picture. A brick may refer to a rectangular area of a CU / CTU row within a special tile. A slice may refer to at least one brick of a picture contained in a NAL unit. A sub-picture may refer to a rectangular area of at least one slice in a picture. The entropy decoder / parser may also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, etc.
[0043] The parser (320) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (315) to create symbols (321).
[0044] Depending on the type of coded video picture or portion of coded video picture (e.g., inter- and intra-pictures, inter- and intra-blocks) and other factors, the reconstruction of the symbol (321) may involve multiple different units. Which units are involved and how they are involved may be controlled by subgroup control information parsed by the parser (320) from the coded video sequence. For the sake of brevity, such subgroup control information flow between the parser (320) and the multiple units below is not described.
[0045] In addition to the functional blocks already mentioned, decoder 210 may be conceptually subdivided into several functional units as described below. In a practical embodiment operating under commercial constraints, many of these units closely interact with each other and may be integrated with each other. However, for the purpose of describing the disclosed subject matter, it is appropriate to conceptually subdivide into the functional units below.
[0046] The first unit is a sealer / inverse transform unit (351). The sealer / inverse transform unit (351) receives quantized transform coefficients as symbols (321) from the parser (320) and control information, including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (351) can output a block including sample values, which can be input into an aggregator (355).
[0047] In some cases, the output samples of the scaler / inverse transform unit (351) may belong to an intra-coded block; that is, a block that does not use predictive information from a previously reconstructed picture, but may use predictive information from a previously reconstructed portion of the current picture. Such predictive information may be provided by an intra-picture prediction unit (352). In some cases, the intra-picture prediction unit (352) uses surrounding reconstructed information extracted from the current (partially reconstructed) picture (358) to generate a block of the same size and shape as the block being reconstructed. In some cases, the aggregator (355) adds the prediction information generated by the intra-prediction unit (352) to the output sample information provided by the scaler / inverse transform unit (351) on a per-sample basis.
[0048] In other cases, the output samples of the scaler / inverse transform unit (351) may belong to an inter-frame coded and potentially motion compensated block. In this case, the motion compensated prediction unit (353) may access the reference picture memory (357) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (321), these samples may be added to the output of the scaler / inverse transform unit (351) (in this case referred to as residual samples or residual signals) by the aggregator (355) to generate output sample information. The motion compensation unit's retrieval of predicted samples from addresses within the reference picture memory may be controlled by motion vectors, and the motion vectors are provided to the motion compensation unit in the form of the symbols (321), for example, including X, Y and reference picture components. Motion compensation may also include interpolation of sample values extracted from the reference picture memory when using sub-sample accurate motion vectors, motion vector prediction mechanisms, and the like.
[0049] The output samples of the aggregator (355) may be used by various loop filtering techniques in a loop filter unit (356). The video compression techniques may include in-loop filter techniques controlled by parameters included in the encoded video bitstream and available to the loop filter unit (356) as symbols (321) from the parser (320), and may also be responsive to meta-information obtained during decoding of a previous (in decoding order) portion of an encoded picture or encoded video sequence, and to previously reconstructed and loop filtered sample values.
[0050] The output of the loop filter unit (356) may be a sample stream that may be output to a display device (212) and stored in a reference picture memory for subsequent inter-picture prediction.
[0051] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. For example, once a coded picture is fully reconstructed, and the coded picture is identified as a reference picture (e.g., by the parser (320)), the current reference picture (358) may become part of the reference picture buffer (357), and a new current picture memory may be reallocated before starting reconstruction of a subsequent coded picture.
[0052] The video decoder 210 may perform decoding operations according to a predetermined video compression technique, such as in ITU-T Recommendation H.265. The encoded video sequence may conform to the syntax specified by the video compression technique or standard used, in the sense that the encoded video sequence follows the syntax of the video compression technique or standard and the profile recorded in the video compression technique or standard. For compliance, the complexity of the encoded video sequence is also required to be within the range defined by the hierarchy of the video compression technique 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 defined by the Hypothetical Reference Decoder (HRD) specification and metadata of the HRD buffer management signaled in the encoded video sequence.
[0053] In an embodiment, the receiver (310) may receive additional (redundant) data along with the encoded video. The additional data may be part of the encoded video sequence. The additional data may be used by the video decoder (210) to properly decode the data and / or more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0054] Figure 4 It may be a block diagram of a video encoder (203) according to an embodiment disclosed in the present application.
[0055] The encoder (203) may receive video samples from a video source (201) (not a part of the encoder) that may capture video images to be encoded by the encoder (203).
[0056] The video source (201) may provide a source video sequence in the form of a digital video sample stream to be encoded by the encoder (203), wherein 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 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media service system, the video source (201) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (201) 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 pictures themselves may be constructed as a spatial pixel array, wherein each pixel may include at least one sample 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 samples.
[0057] According to an embodiment, the encoder (203) may encode and compress pictures of a source video sequence into an encoded video sequence (443) in real time or under any other time constraints required by the application. Implementing an appropriate encoding speed is a function of the controller (450). The controller (450) controls other functional units as described below and is functionally coupled to these units. For the sake of brevity, couplings are not shown in the figure. The parameters set by the controller (450) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology, etc.), picture size, GOP layout, maximum motion vector search range, etc. Those skilled in the art can easily identify other functions of the controller (450), which may be related to the video encoder (203) optimized for a certain system design.
[0058] Some video decoders operate in a coding loop that is readily recognizable to those skilled in the art. As a simplified description, the coding loop may include an encoder (430) (hereinafter referred to as the "source encoder"), which is responsible for the coding portion of creating symbols based on the input picture to be encoded and the reference picture, and a (local) decoder (433) embedded in the encoder (203), which reconstructs the symbols to create sample data in a manner similar to the way the (remote) decoder creates sample data (because in the video compression technology considered in this application, any compression between the symbols and the encoded video code stream is lossless). The reconstructed sample stream is input to a reference picture memory (434). Since the decoding of the symbol stream produces bit-accurate results that are independent of the decoder location (local or remote), the reference picture buffer contents are also bit-accurate 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, such as due to channel errors) is also used in some related technologies.
[0059] The operation of the "local" decoder (433) can be combined with the above Figure 3 The "remote" decoder (210) is identical to the one described in detail. However, additional brief reference is made to Figure 4 , when symbols are available and the entropy encoder (445) and the parser (320) are capable of losslessly encoding / decoding the symbols into an encoded video sequence, the entropy decoding portion of the video decoder (210), including the channel (312), the receiver (310), the buffer memory (315) and the parser (320), may not be fully implemented in the local decoder (433).
[0060] At this point, it can be observed that any decoder technology other than the parsing / entropy decoding present in the decoder must also be present in the corresponding encoder in substantially the same functional form. For this reason, the present application focuses on decoder operation. The description of encoder technology can be simplified because encoder technology is mutually inverse to the decoder technology described comprehensively. A more detailed description is only needed in certain areas and is provided below.
[0061] During operation, in some embodiments, the source encoder (430) may perform motion compensated predictive coding. The motion compensated predictive coding predictively encodes an input frame with reference to at least one previously encoded frame from a video sequence designated as a "reference frame." In this manner, the encoding engine (432) encodes the difference between a pixel block of an input frame and a pixel block of a reference frame that may be selected as a prediction reference for the input frame.
[0062] The local video decoder (433) may decode the encoded video data of the frame that may be designated as the reference frame based on the symbol created by the source encoder (430). The operation of the encoding engine (432) may be a lossy process. When the encoded video data is available at the video decoder ( Figure 4 When the video sequence is decoded at a remote location (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (433) replicates the decoding process that may be performed by the video decoder on the reference frame and may cause the reconstructed reference frame to be stored in the reference picture cache (434). In this way, the encoder (203) may store a copy of the reconstructed reference frame locally that has common content (absent transmission errors) with the reconstructed reference frame to be obtained by the remote video decoder.
[0063] The predictor (435) may perform a prediction search for the encoding engine (432). That is, for a new frame to be encoded, the predictor (435) may search the reference picture memory (434) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may serve as appropriate prediction references for the new frame. The predictor (435) may operate pixel-by-pixel based on sample blocks to find a suitable prediction reference. In some cases, based on the search results obtained by the predictor (435), it may be determined that the input picture may have prediction references taken from a plurality of reference pictures stored in the reference picture memory (434).
[0064] The controller (450) may manage encoding operations of the source encoder (430), including, for example, setting parameters and subgroup parameters for encoding video data.
[0065] The outputs of all the above functional units may be entropy encoded in an entropy encoder (445). The entropy encoder (445) 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.
[0066] The transmitter (440) may buffer the encoded video sequence created by the entropy encoder (445) in preparation for transmission over a communication channel (460), which may be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (440) may combine the encoded video data from the video encoder (430) with other data to be transmitted, such as encoded audio data and / or ancillary data streams (source not shown).
[0067] The controller (450) may manage the operation of the encoder (203). During encoding, the controller (450) 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 frame types:
[0068] An intra picture (I picture) may be a picture that can be encoded and decoded without using any other frame in the sequence as a prediction source. Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures. Those skilled in the art are aware of the variations of I pictures and their corresponding applications and features.
[0069] 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.
[0070] Bidirectional predictive pictures (B pictures), which can be pictures that can be encoded and decoded using intra prediction or inter 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 for reconstruction of a single block.
[0071] 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 according to the coding allocation applied to the block's corresponding picture. For example, blocks of an I picture may be non-predictively coded, or the blocks 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.
[0072] The video encoder (203) 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 (203) 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.
[0073] In an embodiment, the transmitter (440) may transmit additional data when transmitting the encoded video. The video encoder (430) may include such data as part of the encoded video sequence. The additional data may include other forms of redundant data such as temporal / spatial / SNR enhancement layers, redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.
[0074] Recently, compressed domain aggregation, or extracting multiple semantically independent picture parts into a single video picture, has attracted some attention. In particular, in the context of, for example, 360-degree codecs or certain video applications, multiple semantically independent source pictures (e.g., six cube faces for a cube-projected 360-degree scene, or a single camera input in the case of a multi-camera application setup) may require separate adaptive resolution settings to handle different scene activities at a given point in time. In other words, at a given point in time, the encoder may choose to use different resampling factors for different semantically independent pictures that make up the entire 360-degree or application scene. This in turn requires that reference picture resampling be performed on parts of the coded picture when merged into a single picture, and that adaptive resolution codec signaling is available.
[0075] The following introduces some terms that will be referred to in the rest of this specification.
[0076] "Sub-picture" may in some cases refer to a semantically grouped rectangular arrangement of samples, blocks, macroblocks, coded units, or similar entities that may be independently coded with varying resolutions. At least one sub-picture may form a picture. At least one coded sub-picture may form a coded picture. At least one sub-picture may be assembled into a picture, and at least one sub-picture may be extracted from a picture. In some circumstances, at least one coded sub-picture may be assembled into a coded picture in a compressed domain without transcoding it to a sample level, and in the same circumstances or in some other circumstances, at least one coded sub-picture may be extracted from a coded picture in a compressed domain.
[0077] Reference picture resampling or adaptive resolution change (ARC) may refer to a mechanism that allows the resolution of a picture or sub-picture within a coded video sequence to be changed, for example, by resampling a reference picture. RPR / ARC parameters hereinafter refer to control information required to perform adaptive resolution change, which may include, for example, filter parameters, scaling factors, resolution of output pictures and / or reference pictures, various control flags, and the like.
[0078] In an embodiment, encoding and decoding may be performed on a single, semantically independent coded video picture.Before describing the implications of encoding / decoding of multiple sub-pictures with independent RPR / ARC parameters and the additional complexity they imply, the options for signaling RPR / ARC parameters will be described.
[0079] refer to Figure 5 , an embodiment for signaling RPR / ARC parameters is shown.
[0080] Categories of RPR / ARC parameters may include:
[0081] - Upsampling factors and / or downsampling factors in the X and Y dimensions, either separately or combined
[0082] - Add upsampling factor and / or downsampling factor of the time dimension to indicate constant speed upscaling and / or downscaling of a given number of pictures
[0083] - Either of the above may involve encoding one or more possibly shorter syntax elements, which may point to a table containing the factor(s).
[0084] - Resolution: The resolution of the input picture, output picture, reference picture, coded picture, in samples, blocks, macroblocks, CUs, or any other suitable granularity, combined or separate, in X or Y dimensions. If more than one resolution is present (e.g., one for the input picture and one for the reference picture), then in some cases one set of values may be inferred from another. For example, the resolution may be gated using a flag. See below for more detailed examples.
[0085] - "Warping" coordinates: similar to the coordinates used in Annex P of the H.263 standard, which can have an appropriate granularity as described above. Annex P of the H.263 standard defines an efficient way to encode such warping coordinates, but it is conceivable that other, potentially more efficient methods can also be envisioned. For example, the variable-length reversible "Huffman" encoding of the warping coordinates of Annex P can be replaced by a binary encoding of an appropriate length, where the length of the binary codeword can be derived, for example, from the maximum picture size (possibly multiplied by a factor and offset by a value) to allow "warping" outside the boundaries of the maximum picture size.
[0086] - Upsampling filter parameters or downsampling filter parameters: In embodiments, only a single filter may be used for upsampling and / or downsampling. However, in embodiments, it may be desirable to allow greater flexibility in the design of the filters, which may be achieved by signaling filter parameters. Such parameters may be selected by an index into a list of possible filter designs, the filter may be fully specified (e.g., by a list of filter coefficients using an appropriate entropy coding technique), the filter may be selected implicitly by an upsampling ratio and / or a downsampling ratio, which in turn may be signaled according to any of the mechanisms mentioned above, etc.
[0087] In the following, this specification assumes that a finite set of upsampling factors and / or downsampling factors (using the same factors in the X and Y dimensions) indicated by codewords is encoded. The codewords can be variable-length encoded, for example, using Exp-Golomb coding common to certain syntax elements in video coding specifications (such as H.264 and H.265). A suitable mapping of values to upsampling factors / downsampling factors can be seen, for example, in Table 1:
[0088] Table 1
[0089] Codeword Exp-Golomb encoding Original resolution / target resolution 0 1 1 / 1 1 010 1 / 1.5 (50% zoom) 2 011 1.5 / 1 (50% smaller) 3 00100 1 / 2 (100% zoom) 4 00101 2 / 1 (reduced by 100%)
[0090] Many similar mappings can be designed, depending on the needs of the application and the capabilities of the upscaling and downscaling mechanisms available in the video compression technology or standard. This Table 1 can be extended to more values. The values can also be represented using entropy coding mechanisms other than Exp-Golomb codes, for example using binary encoding. Using binary encoding may have certain advantages when the resampling factors are of interest outside the video processing engine (most importantly the encoder and decoder) itself, such as the MANE (Media Aware Network Element). It should be noted that for cases where no change in resolution is required, a shorter Exp-Golomb code can be chosen; in the above Table 1, only a single bit. For this most common case, using Exp-Golomb codes can have an advantage in coding efficiency over using binary codes.
[0091] The number of entries in Table 1 and their semantics may be fully or partially configurable. For example, a basic form of Table 1 may be conveyed in a "higher layer" parameter set such as a sequence parameter set or a decoder parameter set. In an embodiment, one or more such tables may be defined in a video coding technology or standard and may be selected by, for example, a decoder or sequence parameter set.
[0092] The following describes how to include the upsampling factor / downsampling factor (ARC information) encoded as described above in a video coding technique or standard syntax. Similar considerations can be applied to one or several codewords that control the upsampling filter / downsampling filter. See the discussion below for when a filter or other data structure requires a relatively large amount of data.
[0093] like Figure 5 As shown, Annex P of the H.263 standard includes ARC information (502) in the form of four deformation coordinates in the picture header (501), more specifically, in the H.263PLUSPTYPE (503) header extension. This may be a wise design choice when a) there is a picture header available, and b) the ARC information is expected to change frequently. However, the overhead of using H.263-type signaling may be quite high, and the scaling factor of the picture boundary may not be relevant because the picture header may have a transient nature.
[0094] In the same or another embodiment, the signaling of ARC parameters may follow Figure 6A-6B A detailed example is outlined in . Figure 6A-6B Depicted is a syntax diagram using a representation that follows roughly the notation of C-type programming, such as used in video coding standards since at least 1993. Bold lines indicate syntax elements present in the codestream, non-bold lines typically indicate control flow or the setting of variables.
[0095] like Fig. 6A As shown, a tile group header (601), as an exemplary syntax structure of a header applicable to a (possibly rectangular) portion of a picture, may conditionally contain a variable length Exp-Golomb (Exponential Golomb) coded syntax element dec_pic_size_idx (602) (shown in bold). The presence of this syntax element in the tile group header can be gated by using adaptive resolution (603). Here, the value of the flag is not shown in bold, which means that the point at which the flag appears in the codestream is when it appears in the syntax table. Whether adaptive resolution is used for the picture or a portion thereof can be signaled in any high-level syntax structure inside or outside the codestream. In the example shown, as described below, the adaptive resolution is signaled in the sequence parameter set.
[0096] refer to Figure 6B, an excerpt of a sequence parameter set (610) is also shown. The first syntax element shown is adaptive_pic_resolution_change_flag (611). When true, this flag may indicate that adaptive resolution is used, which in turn may require specific control information. In this example, such control information is conditionally present based on the value of the flag, which is based on an if() statement in the sequence parameter set (612) and the tile group header (601).
[0097] When adaptive resolution is used, in this example, what is encoded is the output resolution in samples (613). Reference numeral 613 refers to both output_pic_width_in_luma_samples and output_pic_height_in_luma_samples, which together can define the resolution of the output picture. Elsewhere in the video coding technique or standard, certain restrictions on either value may be defined. For example, a level definition may limit the number of total output samples, which may be the product of the values of the two syntax elements described above. In addition, certain video coding techniques or standards, or external techniques or standards (e.g., system standards) may limit the range of values (e.g., one or both dimensions must be divisible by a power of 2) or aspect ratio (e.g., width and height must have a relationship such as 4:3 or 16:9). Such restrictions may be introduced to facilitate hardware implementation or for other reasons and are well known in the art.
[0098] In some applications, it is recommended that the encoder instruct the decoder to use a certain reference picture size, rather than implicitly assuming it to be the output picture size. In this example, the syntax element reference_pic_size_present_flag (614) enables the conditional presence of the reference picture size (615) (again, this number refers to both width and height).
[0099] Finally, a possible table of decoded picture width and height is shown. Such a table may be indicated, for example, by a table indication (num_dec_pic_size_in_luma_samples_minus1) (616). "Minus1" (minus 1) may refer to the interpretation of the value of this syntax element. For example, if the coded value is zero, there is one table entry. If the value is five, there are six table entries. For each "row" in the table, the decoded picture width and height are then contained in the syntax (617).
[0100] The presented table entry (617) can be indexed using the syntax element dec_pic_size_idx (602) in the tile group header, allowing each tile group to have a different decode size (effectively a scaling factor).
[0101] Some video coding techniques or standards, such as VP9, support spatial scalability by implementing some form of reference picture resampling (which is signaled in a very different way than disclosed in this application) in conjunction with temporal scalability to achieve spatial scalability. More specifically, certain reference pictures can be upsampled to a higher resolution using ARC-type techniques to form the basis of a spatial enhancement layer. These upsampled pictures can be refined using standard prediction mechanisms at a higher resolution to increase detail.
[0102] The embodiments discussed in this application can be used in such environments. In some cases, in the same or another embodiment, the value in the Network Abstract Layer (NAL) unit header (e.g., the Temporal ID field) can be used to indicate not only the temporal layer, but also the spatial layer. Doing so may have certain advantages for certain system designs; for example, an existing Selected Forwarding Unit (SFU) created and optimized for forwarding selected for the temporal layer based on the Temporal ID value in the NAL unit header can be used in a scalable environment without modification. To achieve this, it may be necessary to map between the coded picture size and the temporal layer indicated by the Temporal ID field in the NAL unit header.
[0103] In an embodiment, the consistency window size may be signaled in the PPS. When the consistency window size of the reference picture is different from the consistency window size of the current picture, the resampling ratio may be calculated using the consistency window parameters. The decoder may need to identify the consistency window size of each picture to determine whether a resampling process is required.
[0104] In an embodiment, the scale factor of the reference picture resampling (RPR) can be calculated based on the output width and output height between the current picture and the reference picture, which can be derived from the consistency window parameters. This allows a more accurate calculation of the scale factor than using the decoded picture size. This may be suitable for most video sequences, where the output picture size is almost the same as the decoded picture size, with a small padding area.
[0105] However, this may also cause various problems. For example, when the consistency window size is completely different from the decoded picture size with a large offset value, for immersive media applications (e.g., 360-degree cubemaps, stereo, point clouds), calculating the scaling factor based on the consistency window size may not guarantee the quality of inter-frame prediction with different resolutions. In extreme cases, there may be no co-located region of the current CU in the reference picture. When RPR is used for multi-layer scalability, the consistency window offset may not be used to calculate reference areas across layers. Note that in the HEVC scalability extension (SHVC), the reference area of each directly dependent layer can be explicitly signaled in the PPS extension. When a sub-codestream for a specific area (sub-picture) is extracted from the entire codestream, the consistency window size does not match the picture size at all. Note that once the codestream has been encoded, the consistency window parameters cannot be updated as long as the parameters are used to calculate the scaling.
[0106] Based on the potential issues described above, calculating the scaling factor based on the consistency window size may have corner cases that require alternative parameters. As a fallback, when the consistency window parameters cannot be used to calculate the scaling factor, the present application proposes signaling scaled reference region parameters that can be used to calculate RPR and scalability.
[0107] In the embodiments, reference Figure 7 , a conformance_window_flag may be signaled in the PPS. A conformance_window_flag equal to 1 may indicate that the next in the PPS is a conformance cropping window offset parameter. A conformance_window_flag equal to 0 may indicate that there is no conformance cropping window offset parameter.
[0108] In the embodiments, still refer to Figure 7 conf_win_left_offset, conf_win_right_offset, conf_win_top_offset, and conf_win_bottom_offset specify the samples of the picture that are output from the decoding process and refer to the PPS, and are output according to the rectangular area specified in the picture coordinates. When conformance_window_flag is equal to 0, the values of conf_win_left_offset, conf_win_right_offset, conf_win_top_offset, and conf_win_bottom_offset can be inferred to be equal to 0.
[0109] In an embodiment, a flag may be present in the PPS or another parameter set, which may indicate whether the resampled picture size (width and height) is explicitly signaled in the PPS or another parameter set. If the resampled picture size parameter is explicitly signaled, the resampling ratio between the current picture and the reference picture may be calculated based on the resampled picture size parameter.
[0110] In the embodiments, reference Figure 7 , use_conf_win_for_rpr_flag equal to 0 may indicate that resampled_pic_width_in_luma_samples and resampled_pic_height_in_luma_samples immediately follow at a suitable position, such as the next position in the PPS.
[0111] In an embodiment, use_conf_win_for_rpr_flag equal to 1 may indicate that resampling_pic_width_in_luma_samples and resampling_pic_height_in_luma_samples are not present.
[0112] In an embodiment, resampling_pic_width_in_luma_samples may specify the width of each reference picture of the reference PPS in units of luma samples for resampling. resampling_pic_width_in_luma_samples may not be equal to 0, may be an integer multiple of Max(8, MinCbSizeY), and may be less than or equal to pic_width_max_in_luma_samples.
[0113] In an embodiment, resampling_pic_height_in_luma_samples may specify the height of each reference picture of the reference PPS in units of luma samples for resampling. resampling_pic_height_in_luma_samples may not be equal to 0, may be an integer multiple of Max(8, MinCbSizeY), and may be less than or equal to pic_height_max_in_luma_samples.
[0114] When the syntax element resampling_pic_width_in_luma_samples is not present, it can be inferred that the value of resampling_pic_width_in_luma_samples is equal to PicOutputWidthL.
[0115] When the syntax element resampling_pic_height_in_luma_samples is not present, the value of resampling_pic_height_in_luma_samples may be inferred to be equal to PicOutputHeightL.
[0116] In an embodiment, an example of fractional interpolation processing with reference picture resampling may be as follows:
[0117] The variable fRefWidth may be set equal to the resampling_pic_width_in_luma_samples of the reference picture in luma samples.
[0118] The variable fRefHeight may be set equal to the resampling_pic_height_in_luma_samples of the reference picture in luma samples.
[0119] The motion vector mvLX may be set equal to (refMvLX-mvOffset).
[0120] If cIdx is equal to 0, the scaling factor and its fixed-point representation may be defined according to Equation 1 and Equation 2 below:
[0121] hori_scale_fp=((fRefWidth<<14)+(resampling_pic_width_in_luma_samples
[0122] >>1)) / resampling_pic_width_in_luma_samples(Equation 1)
[0123] vert_scale_fp=((fRefHeight<<14)+(resampling_pic_height_in_luma_samples
[0124] >>1)) / resampling_pic_height_in_luma_samples(Equation 2)
[0125] In the embodiments, reference Figure 8, use_conf_win_for_rpr_flag equal to 0 can specify that resampled_pic_width_in_luma_samples and resampled_pic_height_in_luma_samples follow the PPS. use_conf_wid_for_rpr_flag equal to 1 specifies that resampling_pic_width_in_luma_samples and resampling_pic_height_in_luma_samples do not exist.
[0126] In an embodiment, ref_region_left_offset may specify the horizontal offset from the top left luma sample of the reference region in the decoded picture. The value of ref_region_left_offset may be between -2 14 to 2 14 In the range of -1 (inclusive). When ref_region_left_offset does not exist, its value can be inferred to be equal to conf_win_left_offset.
[0127] In an embodiment, ref_region_top_offset may specify the vertical offset from the top left luma sample of the reference region in the decoded picture. The value of ref_region_top_offset may be between -2 14 to 2 14 In the range of -1 (inclusive). When ref_region_top_offset does not exist, its value can be inferred to be equal to conf_win_right_offset.
[0128] In an embodiment, ref_region_right_offset may specify the horizontal offset from the bottom right luma sample of the reference region in the decoded picture. The value of ref_region_right_offset may be between -2 14 to 2 14 In the range of -1 (inclusive). When ref_region_right_offset does not exist, its value can be inferred to be equal to conf_win_top_offset.
[0129] In an embodiment, ref_region_bottom_offset may specify the vertical offset from the bottom right luma sample of the reference region in the decoded picture. The value of ref_region_bottom_offset may be between -2 14 to 2 14In the range of -1 (inclusive). When ref_region_bottom_offset does not exist, it can be inferred that the value of ref_region_bottom_offset[ref_loc_offset_layer_id[i]] is equal to conf_win_bottom_offset.
[0130] The variables PicRefWidthL and PicRefHeightL may be derived as shown in Equation 3 and Equation 4, as shown below:
[0131] PicRefWidthL=pic_width_in_luma_samples-
[0132] SubWidthC*(ref_region_right_offset+ref_region_left_offset) (Equation 3)
[0133] PicRefHeightL=pic_height_in_pic_size_units-
[0134] SubHeightC*(ref_region_bottom_offset+ref_region_top_offset) (Equation 4)
[0135] The variable fRefWidth may be set equal to PicRefWidthL of the reference picture in luma samples.
[0136] The variable fRefHeight may be set equal to PicRefHeightL of the reference picture in luma samples.
[0137] The motion vector mvLX may be set equal to (refMvLX-mvOffset).
[0138] If cIdx is equal to 0, the scaling factor and its fixed-point representation can be defined as shown in Equation 5 and Equation 6, as follows:
[0139] hori_scale_fp=((fRefWidth<<14)+(PicRefWidthL>>1)) / PicRefWidthL (Equation 5)
[0140] vert_scale_fp=((fRefHeight<<14)+(PicRefHeightL>>1)) / PicRefHeight (Equation 6)
[0141] The upper left coordinate of the bounding block used for reference sample filling (xSbInt L ,ySbInt L ) can be set equal to (xSb+(mvLX[0]>>4), ySb+(mvLX[1]>>4)).
[0142] For each luma sample position (x L =0..sbWidth-1+brdExtSize,y L =0..sbHeight-1+brdExtSize), the corresponding predicted brightness sample value predSamplesLX[x L ][y L ]:
[0143] —Assume (refxSb L ,refySb L ) and (refx L , refy L ) is the luminance position pointed to by the motion vector (refMvLX, refMvLX) given in 1 / 16 sample units. The variable refxSb L ,refx L ,refySb L and refy L can be derived as shown in Equation 7 to Equation 10 as follows:
[0144] sbX L =(((xSb+ref_region_left_offset)<<4)+refMvLX[0])*hori_scale_fp (Equation 7)
[0145] refx L =((Sign(refxSb)*((Abs(refxSb)+128)>>8)
[0146] +x L *((hori_scale_fp+8)>>4))+32)>>6(Equation 8)
[0147] sb L =(((ySb+ref_region_top_offset)<<4)+refMvLX[1])*vert_scale_fp
[0148] (Equation 9)
[0149] refyL=((Sign(refySb)*((Abs(refySb)+128)>>8)+yL*((vert_scale_fp+8)>>4))
[0150] +32)>>6(Equation 10)
[0151] Fig. 9 is a flow chart of an example method 900 for decoding an encoded video stream. In some embodiments, Fig. 9 At least one method block of may be performed by decoder 210. In some embodiments, Fig. 9 At least one method block of may be performed by another device or a group of devices (such as the encoder 203) separate from the decoder 210 or including the decoder 210.
[0152] like Fig. 9 As shown, method 900 may include obtaining a flag indicating that a consistency window is not used for reference picture resampling (block 910).
[0153] like Fig. 9 As further shown in FIG. 9 , method 900 may include determining whether a resampled picture size is signaled based on a flag indicating that the consistency window is not used for reference picture resampling (block 920 ).
[0154] If it is determined that the second flag indicates that a resampled picture size is signaled ("YES" at block 920), method 900 may proceed to block 930 and then to block 950. At block 930, method 900 may include determining a resampling ratio based on the resampled picture size.
[0155] If it is determined that the second flag does not indicate that the consistency window is used for reference picture resampling ("NO" at block 920), method 900 may proceed to block 940 and then to block 950. At block 940, method 900 may include determining a resampling ratio based on the output picture size.
[0156] like Fig. 9 As further shown, method 900 may include performing reference picture resampling on the current picture using the resampling ratio (block 950).
[0157] In an embodiment, the flag may be signaled in a picture parameter set.
[0158] In an embodiment, the resampled picture size may be signaled in the encoded video code stream in the form of at least one of a width of the resampled picture size and a height of the resampled picture size.
[0159] In an embodiment, at least one of the width and the height may be signaled in a picture parameter set.
[0160] In an embodiment, at least one of the width and the height may be expressed as the number of luma samples included in at least one of the width and the height.
[0161] In an embodiment, at least one of the width and the height may be determined based on at least one offset distance between a boundary of the current picture and predetermined luminance samples of the reference region.
[0162] In an embodiment, at least one offset distance may be signaled in a picture parameter set.
[0163] In an embodiment, at least one offset distance may include at least one of: a horizontal offset distance between the left boundary of the current image and the upper left brightness sample of the reference area, a vertical offset distance between the upper boundary of the current image and the upper left brightness sample of the reference area, a horizontal offset distance between the right boundary of the current image and the lower right brightness sample of the reference area, and a vertical offset distance between the lower boundary of the current image and the lower right brightness sample of the reference area.
[0164] although Fig. 9 Example blocks of method 900 are shown, but in some embodiments, method 900 may include comparing Fig. 9 Additional blocks in addition to, fewer blocks than, different blocks from, or blocks arranged differently from those depicted in the method 900. Additionally or alternatively, two or more of the blocks of the method 900 may be executed in parallel.
[0165] Furthermore, the proposed methods may be implemented by a processing circuit (eg, at least one processor or at least one integrated circuit). In one example, at least one processor executes a program stored in a non-transitory computer-readable medium to perform at least one of the proposed methods.
[0166] The techniques described above may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable storage media. Fig.10 A computer system 1000 suitable for implementing certain embodiments of the disclosed subject matter is shown.
[0167] The computer software may be encoded using any suitable machine code or computer language, which may be subjected to assembly, compilation, linking or similar mechanisms to create code comprising instructions that may be executed by a computer central processing unit (CPU), graphics processing unit (GPU), etc., either directly or through interpretation, microcode execution, etc.
[0168] The instructions may be executed on various types of computers or computer components, including, for example, personal computers, tablets, servers, smart phones, gaming devices, Internet of Things devices, etc.
[0169] Fig.10 The components for computer system 1000 shown in the figure are exemplary in nature and are not intended to imply any limitation on the scope of use or functionality of computer software implementing embodiments of the present application. Nor should the configuration of components be interpreted as having any dependency or requirement on any one or combination of components shown in the exemplary embodiment of computer system 1000.
[0170] Computer system 1000 may include certain human-machine interface input devices. Such human-machine interface input devices may be responsive to input by one or more human users, for example, through tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, taps), visual input (e.g., gestures), olfactory input (not depicted). Human-machine interface devices may also be used to capture certain media that may not be directly related to a person's conscious input, such as audio (e.g., speech, music, ambient sound), images (e.g., scanned images, photographic images obtained from a still image camera), and videos (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
[0171] Input human interface devices may include one or more of the following (only one of each is depicted): keyboard 1001 , mouse 1002 , track pad 1003 , touch screen 1010 and associated graphics adapter 1050 , data gloves, joystick 1005 , microphone 1006 , scanner 1007 , camera 1008 .
[0172] The computer system 1000 may also include certain human-machine interface output devices. Such human-machine interface output devices may stimulate the senses of one or more human users through, for example, tactile output, sound, light, and smell / taste. Such human-machine interface output devices may include tactile output devices (e.g., tactile feedback of a touch screen 1010, a data glove, or a joystick 1005, but there may also be tactile feedback devices that do not serve as input devices), audio output devices (e.g., speakers 1009, headphones (not depicted)), visual output devices (e.g., screens 1010, including cathode ray tube (CRT) screens, liquid crystal display (LCD) screens, plasma screens, organic light emitting diode (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 output or output greater than three dimensions through, for example, stereographic output; virtual reality glasses (not depicted), holographic displays, and smoke boxes (not depicted)), and printers (not depicted).
[0173] The computer system 1000 may also include human-accessible storage devices and associated media for the storage devices, such as optical media, including CD / DVD ROM / RW 1020 with CD / DVD etc. media 1021, thumb drive 1022, removable hard drive or solid state drive 1023, legacy magnetic media such as tapes and floppy disks (not depicted), ROM / ASIC / PLD based specialized devices such as security protection devices (not depicted), and the like.
[0174] Those skilled in the art will also understand that the term "computer-readable medium" used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transient signals.
[0175] The computer system 1000 may also include an interface to one or more communication networks. The network 1055 may be, for example, wireless, wired, optical. The network may also be local, wide area, metropolitan, vehicle-mounted and industrial, real-time, delay-tolerant, and the like. Examples of networks include local area networks such as Ethernet, wireless LAN, cellular networks including global mobile communication systems (GSM), third generation (3G), fourth generation (4G), fifth generation (5G), long term evolution (LTE), etc., TV wired or wireless wide area digital networks including cable TV, satellite TV, and terrestrial broadcast TV, vehicle-mounted networks and industrial networks including CAN buses, etc. Some networks typically require an external network interface adapter 1054 attached to some general data ports or peripheral buses 1049 (e.g., a USB port of the computer system 1000); other networks are typically integrated into the core of the computer system 1000 by attaching to the system bus as described below (e.g., integrated into a PC computer system via an Ethernet interface, or integrated into a smart phone computer system via a cellular network interface). As an example, the network 1055 can be connected to the peripheral bus 1049 using the network interface 1054. By using any of these networks, the computer system 1000 can communicate with other entities. Such communications can be one-way receive only (such as broadcast TV), one-way send only (such as a CAN bus connected to certain CAN bus devices), or bidirectional, such as connecting to other computer systems using a local area digital network or a wide area digital network. Certain protocols and protocol stacks can be used on each of those networks and network interfaces as described above.
[0176] The above-mentioned human-machine interface device, human-accessible storage device, and network interface may be attached to the core 1040 of the computer system 1000 .
[0177] The core 1040 may include one or more central processing units (CPUs) 1041, graphics processing units (GPUs) 1042, dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) 1043, hardware accelerators for certain tasks 1044, and the like. These devices, along with read-only memory (ROM) 1045, random access memory 1046, and internal mass storage devices 1047 such as internal non-user accessible hard disk drives, solid-state drives (SSDs), etc., may be connected via a system bus 1048. In some computer systems, the system bus 1048 may be accessible via one or more physical plugs to enable expansion by additional CPUs, GPUs, and the like. Peripheral devices may be attached to the core's system bus 1048 directly or via a peripheral bus 1049. Architectures for peripheral buses include peripheral component interconnect (PCI), USB, and the like.
[0178] The CPU 1041, GPU 1042, FPGA 1043, and accelerator 1044 may execute certain instructions, which in combination may constitute the above-mentioned computer code. The computer code may be stored in ROM 1045 or RAM 1046. Transitional data may also be stored in RAM 1046, while permanent data may be stored, for example, in an internal mass storage device 1047. Fast storage and retrieval of any memory device may be achieved by using a cache memory, which may be closely associated with one or more CPUs 1041, GPUs 1042, mass storage devices 1047, ROM 1045, RAM 1046, etc.
[0179] The computer readable medium may have computer codes for performing various computer-implemented operations. The media and computer codes may be media and computer codes designed and constructed specifically for the purpose of this application, or may be of a type well known and available to technicians in the computer software field.
[0180] By way of example and not limitation, a computer system having architecture 1000 and in particular core 1040 may provide functionality resulting from the execution of software embodied in one or more tangible computer-readable media by a processor (including a CPU, GPU, FPGA, accelerator, etc.). Such computer-readable media may be media associated with the user-accessible mass storage device introduced above and certain storage devices of the non-temporary nature of core 1040 (e.g., core internal mass storage device 1047 or ROM 1045). Software implementing various embodiments of the present application may be stored in such devices and executed by core 1040. Depending on specific needs, the computer-readable medium may include one or more memory devices or chips. The software may enable core 1040, and in particular, the processors therein (including CPU, GPU, FPGA, etc.) to perform specific processes or specific parts of specific processes described herein, including limiting the storage in RAM 104 6 and modifying such data structures according to processes defined by software. Additionally or alternatively, the computer system may provide functionality produced by logic hardwired or otherwise embodied in circuits (e.g., accelerator 1044), which may operate in place of or in conjunction with software to perform specific processes or specific portions of specific processes described herein. Where appropriate, references to software may encompass logic, and vice versa. Where appropriate, references to computer-readable media may encompass circuits (e.g., integrated circuits (ICs)) storing software for execution, circuits embodying logic for execution, or both. The present application encompasses any suitable combination of hardware and software.
[0181] Although the present application describes several exemplary embodiments, various modifications, permutations and combinations, and various alternative equivalents are possible within the scope of the present application. Therefore, it should be understood that within the spirit and scope of the application, those skilled in the art can design various systems and methods that are not explicitly shown or described herein but can embody the principles of the present application.
Claims
1. A method for generating a video code stream, It is characterized in that The method comprises: Generate a video bitstream, the video bitstream comprising: (i) a flag indicating whether to use a consistency window for reference picture resampling; (ii) reference picture resampling parameters; wherein the flag indicates that the consistency window is not used for reference picture resampling; Wherein, when it is determined that the flag indicates that the consistency window is not used for reference picture resampling, and it is determined to signal the reference picture resampling parameters, the reference picture resampling parameters include a plurality of reference area parameters for calculating a scaling ratio of the reference picture resampling, and the plurality of reference area parameters include at least a reference area left offset and a reference area top offset; The current picture is encoded using the reference picture resampling parameters including the multiple reference area parameters.
2. The method according to claim 1, It is characterized in that The flag is signaled in the picture parameter set.
3. The method according to claim 1, It is characterized in that When determining to signal a resampled picture size, determining a resampling ratio based on the resampled picture size, The video code stream further includes at least one of a width of the resampled picture size and a height of the resampled picture size.
4. The method according to claim 3, It is characterized in that At least one of the width and the height is signaled in a picture parameter set.
5. The method according to claim 3, It is characterized in that At least one of the width and the height is expressed as the number of luma samples included in at least one of the width and the height.
6. The method according to claim 3, It is characterized in that At least one of the width and the height is determined based on at least one offset distance between a boundary of the current picture and predetermined luma samples of a reference region.
7. The method according to claim 6, It is characterized in that The at least one offset distance is signaled in a picture parameter set.
8. The method according to claim 6, It is characterized in that The at least one offset distance comprises at least one of the following: The horizontal offset distance between the left border of the current image and the upper left brightness sample of the reference area, The vertical offset distance between the upper boundary of the current image and the upper left brightness sample of the reference area. the horizontal offset distance between the right border of the current image and the lower right luminance sample of the reference region, and The vertical offset distance between the bottom edge of the current image and the bottom-right luma sample of the reference region.
9. A method for decoding a video code stream, It is characterized in that The method comprises: Receive a video bitstream, the video bitstream comprising: (i) a flag indicating whether to use a consistency window for reference picture resampling; (ii) reference picture resampling parameters; determining that the flag indicates that the consistency window is not used for reference picture resampling; Parsing the reference picture resampling parameters, the reference picture resampling parameters including a plurality of reference area parameters for calculating a scaling ratio of the reference picture resampling, the plurality of reference area parameters including at least a reference area left offset and a reference area top offset; The reference picture resampling parameters are used to calculate a scaling ratio of the reference picture resampling, and the reference picture resampling is performed on the current picture according to the scaling ratio of the reference picture resampling.
10. 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 method for generating a video code stream according to any one of claims 1 to 8, or is decoded based on the decoding method according to claim 9.
11. An electronic device, It is characterized in that The method comprises a memory for storing computer-readable instructions; a processor for reading the computer-readable instructions and executing the method according to any one of claims 1 to 9 as instructed by the computer-readable instructions.
