Method and apparatus for prediction-related residual scaling for video coding
The prediction residual is directly scaled in the original domain through the prediction-related residual scaling method, which solves the problem of high sample point mapping complexity in LMCS and improves the efficiency and performance of video encoding and decoding.
Patent Information
- Application Number
- CN202310814377.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-06-24
- Filing Date
- 2021-06-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-06-24
AI Technical Summary
Existing video coding and decoding technologies, especially the luma mapping with chroma scaling (LMCS) design, have problems such as high sample point conversion complexity between the mapping domain and the original domain, increased computational complexity, and increased memory requirements, and The difficulty of coordinating the derivation of luma and chroma scaling factors results in inefficient encoding and decoding.
The prediction-related residual scaling (PDRS) method is proposed to directly scale the prediction residual in the original domain, avoid sample point mapping operations, simplify the encoding and decoding process, and reduce delay and storage requirements by adjusting the calculation method of the scaling factor.
It reduces the complexity and storage requirements of the encoding and decoding process, improves encoding and decoding efficiency, reduces latency, and achieves encoding and decoding performance similar to LMCS.
Smart Images

Figure CN116708802B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of U.S. Provisional Patent Application Serial No. 63 / 043,569, filed on June 24, 2020. The entire disclosure of the above application is incorporated herein by reference in its entirety for all purposes. Technical Field
[0003] The present disclosure relates generally to video coding and compression. More specifically, the present disclosure relates to systems and methods for performing video coding on coding units using prediction dependent residual scaling (PDRS). Background Art
[0004] This section provides background information related to the present disclosure. The information contained in this section should not necessarily be construed as prior art.
[0005] Any of a variety of video codec techniques may be used to compress the video data. Video coding may be performed according to one or more video codec standards. Some illustrative video codec standards include: Versatile Video Codec (VVC), Joint Exploration Test Model (JEM) codec, High Efficiency Video Codec (H.265 / HEVC), Advanced Video Codec (H.264 / AVC), and Moving Picture Experts Group (MPEG) codec.
[0006] Video codecs typically use prediction methods (e.g., inter-frame prediction, intra-frame prediction, etc.) that exploit the inherent redundancy in video images or sequences. One goal of video codec technology is to compress video data into a form that uses a lower bit rate while avoiding or minimizing the degradation of video quality. Summary of the invention
[0007] This section provides a general summary of the disclosure, and is not a comprehensive disclosure of its full scope or all of its features.
[0008] According to a first aspect of the present application, a plurality of prediction samples of a luminance component of a coding unit (CU) in a mapping domain are obtained, the coding unit is encoded in a combined inter and intra prediction (CIIP) mode under a luma mapping with chromascaling (LMCS) framework, a plurality of residual samples of the luminance component of the CU in the mapping domain are obtained, the plurality of prediction samples of the luminance component of the CU in the mapping domain are added to the plurality of residual samples in the mapping domain, a plurality of reconstructed samples of the luminance component in the mapping domain are generated, and the plurality of reconstructed samples of the luminance component are converted from the mapping domain to the original domain based on a plurality of predefined inverse mapping scaling factors.
[0009] According to the second aspect of the present application, a plurality of prediction samples of a luminance component of a coding unit CU in a mapping domain are obtained, and the coding unit is encoded through an inter-frame mode under a luminance mapping LMCS framework with chrominance scaling; a plurality of residual samples of the luminance component of the CU in the mapping domain are obtained; the plurality of prediction samples of the luminance component of the CU in the mapping domain are added to the plurality of residual samples in the mapping domain to obtain a plurality of reconstructed samples of the luminance component in the mapping domain; and based on a plurality of predefined inverse mapping scaling factors, the plurality of reconstructed samples of the luminance component are converted from the mapping domain to the original domain.
[0010] In one embodiment, obtaining a plurality of prediction samples of the luminance component of the CU in the mapping domain comprises: deriving a plurality of inter-frame prediction samples of the luminance component of the CU in the original domain from a temporal reference picture of the CU; and converting the plurality of inter-frame prediction samples of the luminance component from the original domain to the mapping domain based on a predefined codec bit depth and a plurality of predefined forward mapping scaling factors in a predefined forward mapping precision.
[0011] In one embodiment, based on a predefined codec bit depth and a predefined plurality of forward mapping scaling factors in a predefined forward mapping precision, converting a plurality of inter-frame prediction samples of a luminance component from an original domain to a mapped domain comprises converting the plurality of inter-frame prediction samples of the luminance component from an original domain to a mapped domain using the predefined plurality of forward mapping scaling factors without performing a cropping operation.
[0012] In one embodiment, the predefined forward mapping precision is 11 bits.
[0013] According to a third aspect of the present application, a computing device includes one or more processors, a memory, and a plurality of programs stored in the memory. When these programs are executed by one or more processors, these programs cause the computing device to perform the operations described above in the first aspect or the second aspect of the present application.
[0014] According to a fourth aspect of the present application, a non-transitory computer-readable storage medium stores a plurality of programs, which are used to be executed by a computing device having one or more processors. When these programs are executed by one or more processors, these programs cause the computing device to perform the operations described above in the first aspect or the second aspect of the present application.
[0015] According to a fifth aspect of the present application, a computer program product comprises instructions, which, when executed by one or more processors, cause the one or more processors to perform the operations described above in the first aspect or the second aspect of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Hereinafter, a set of illustrative, non-limiting embodiments of the present disclosure will be described in conjunction with the accompanying drawings. A person of ordinary skill in the relevant art may implement variations of structure, method, or function based on the examples given herein, and such variations are all included within the scope of the present disclosure. In the absence of conflicts, the teachings of different embodiments may, but need not, be combined with each other.
[0017] Figure 1 is a block diagram illustrating an illustrative block-based hybrid video encoder that can be used in conjunction with many video codec standards.
[0018] Figure 2 is a block diagram illustrating an illustrative video decoder that can be used in conjunction with many video codec standards.
[0019] Figure 3 is an illustration of block partitioning in multiple types of tree structures that can be used in conjunction with many video codec standards.
[0020] Figure 4 is a flowchart illustrating a decoding process in which LMCS is applied.
[0021] Figure 5 It is a diagram of the Bi-Directional Optical Flow (BDOF) process.
[0022] Figure 6 is a flow chart illustrating the workflow of chroma residual scaling in LMCS when decoder-side Motion Vector Refinemen (DMVR), BDOF and CIIP are all enabled.
[0023] Figure 7 is a flow chart illustrating the steps of the Prediction Dependent Residual Scaling (PDRS) process.
[0024] Figure 8is a flowchart illustrating the workflow of a decoding process when the PDRS process is applied in the LMCS process.
[0025] Fig. 9 is an illustration of the residual mapping error caused by using only prediction samples to derive the scaling factors.
[0026] Fig.10 is a flow chart illustrating the steps of the chroma sample reconstruction process.
[0027] Fig.11 is a flow chart illustrating the steps of a second chroma sample reconstruction process.
[0028] Fig.12 is a flow chart illustrating the workflow of the LMCS decoding process in one example of the second chroma sample reconstruction process, in which DMVR, BDOF and CIIP are not applied to generate luma prediction samples for chroma scaling.
[0029] Fig.13 is a flow chart illustrating the workflow of the LMCS decoding process in a second example of the second chroma sample reconstruction process, where an initial unidirectional prediction signal is applied to generate luma prediction samples for chroma scaling.
[0030] Fig.14 is a flow chart illustrating the steps of the chroma residual sample reconstruction process.
[0031] Fig.15 is a flow chart illustrating the workflow of the LMCS decoding process in one or more embodiments of the chroma residual sample reconstruction process.
[0032] Fig.16 is a flowchart illustrating the workflow of the LMCS decoding process in another embodiment of the chroma residual sample reconstruction process.
[0033] Fig.17 is a flow chart illustrating the steps of the second chroma residual sample reconstruction process.
[0034] Fig.18 is a flow chart illustrating the steps of a non-cropped chroma residual scaling factor derivation process.
[0035] Fig.19 is an illustration of the areas involved in an example of a non-cropped chroma residual scaling factor derivation process.
[0036] Fig. 20 is a flow chart illustrating the steps of a non-cropped chroma sample decoding process.
[0037] Fig.21 is a flow chart illustrating the steps of one or more embodiments of a non-cropped chroma sample decoding process.
[0038] Fig. 22 is a flow chart illustrating the steps of one or more embodiments of a non-cropped chroma sample decoding process.
[0039] Fig.23 is a flow chart illustrating the steps of the first aspect of the present disclosure.
[0040] Fig.24 is a flowchart illustrating the steps of one or more embodiments of the first aspect of the present disclosure.
[0041] Fig.25 is a flowchart illustrating the steps of one or more embodiments of the first aspect of the present disclosure.
[0042] Fig.26 is a flowchart illustrating the steps of one or more embodiments of the first aspect of the present disclosure.
[0043] Fig. 27 is a block diagram illustrating an exemplary apparatus for video encoding and decoding according to some embodiments of the present disclosure. DETAILED DESCRIPTION
[0044] The terms used in this disclosure are intended to describe specific embodiments rather than to limit the disclosure. As used in this disclosure and the appended claims, the singular forms "a", "an", and "the" also refer to the plural forms unless the context clearly implies otherwise. It should also be understood that the term "and / or" as used herein refers to any or all possible combinations of one or more associated listed items.
[0045] It should be understood that although the terms "first", "second", "third", etc. may be used herein to describe various information, such information should not be limited by these terms. These terms are only used to distinguish one type of information from another type of information. For example, without departing from the scope of the present disclosure, the first information may be referred to as the second information; and similarly, the second information may also be referred to as the first information. As used herein, the term "if" may be understood to mean "when..." or "upon..." or "in response to", depending on the context.
[0046] Throughout this specification, references to "one embodiment," "an embodiment," "another embodiment," etc. in the singular or plural mean that one or more specific features, structures, or characteristics described in conjunction with the embodiment are included in at least one embodiment of the present disclosure. Thus, throughout this specification, the phrases "in one embodiment" or "in an embodiment," "in another embodiment," etc., appearing in the singular or plural in various places do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics in one or more embodiments may be combined in any suitable manner.
[0047] The first version of the HEVC standard was finalized in October 2013, providing approximately 50% bitrate savings or equivalent perceptual quality compared to the previous generation video codec standard H.264 / MPEG AVC. Although the HEVC standard provides significant codec improvements over its predecessor, there is evidence that codec efficiency superior to HEVC can be achieved with additional codec tools. Based on this, both VCEG and MPEG have begun exploring new codec technologies for future video codec standardization. In October 2015, ITU-T VECG and ISO / IEC MPEG established a Joint Video Exploration Team (JVET) to begin important research on advanced technologies that can achieve significant improvements in codec efficiency. By integrating several additional codec tools on top of the HEVC Test Model (HM), JVET maintains a reference software called the joint exploration model (JEM).
[0048] In October 2017, ITU-T and ISO / IEC issued a joint call for proposals (CfP) on video compression with capabilities beyond HEVC. In April 2018, at the 10th JVET meeting, 23 CfP responses were received and evaluated, showing a compression efficiency gain of about 40% over HEVC. Based on such evaluation results, JVET launched a new project to develop a new generation of video codec standards, which was named Versatile Video Coding (VVC). In the same month, a reference software called the VVC test model (VTM) was established to demonstrate a reference implementation of the VVC standard.
[0049] The prediction methods used in video codecs typically include performing spatial (intra-frame) prediction and / or temporal (inter-frame) prediction to reduce or remove redundancy inherent in video data, and are typically associated with block-based video codecs. Similar to HEVC, VVC is built on a block-based hybrid video codec framework.
[0050] In block-based video codecs, the input video signal is processed block by block. For each block, spatial prediction and / or temporal prediction can be performed. In newer video codec standards (such as the current VVC design), blocks can be further partitioned based on a multi-type tree structure, which includes not only quadtrees but also binary and / or ternary trees. This allows for better adaptation to changing local characteristics.
[0051] Spatial prediction (also called "intra prediction") uses pixels from samples of already coded neighboring blocks in the same video picture / slice (which are called reference samples) to predict the current block. Spatial prediction reduces the spatial redundancy inherent in video signals.
[0052] During the decoding process, the video bitstream is first entropy decoded at the entropy decoding unit. The codec mode and prediction information are sent to the spatial prediction unit (when intra-coded) or the temporal prediction unit (when inter-coded) to form a prediction block. The residual transform coefficients are sent to the dequantization unit and the inverse transform unit to reconstruct the residual block. The prediction block and the residual block are then added together. The reconstructed block may be further loop filtered before it is stored in the reference picture repository. The reconstructed video in the reference picture repository is then sent out to drive the display device and used to predict future video blocks.
[0053] In newer video codec standards (such as the current VVC design), a codec tool called Luma Mapping with Chroma Scaling (LMCS) can be applied before loop filtering. LMCS aims to adjust the dynamic range of the input signal to improve codec efficiency.
[0054] However, with the current design of LMCS, the mapping accuracy of inter-prediction samples of the luma component may exceed the dynamic range of the intra-codec depth.
[0055] Conceptually, many video codec standards are similar, including those mentioned previously in the Background section. For example, almost all video codec standards use block-based processing and share similar video code block diagrams to achieve video compression.
[0056] Figure 1 A block diagram of an illustrative block-based hybrid video encoder 100 is shown, which can be used in conjunction with many video codec standards. In the encoder 100, a video frame is segmented into multiple video blocks for processing. For each given video block, a prediction is formed based on an inter-frame prediction method or an intra-frame prediction method. In inter-frame prediction, one or more prediction values are formed through motion estimation and motion compensation based on pixels from a previously reconstructed frame. In intra-frame prediction, prediction values are formed based on pixels reconstructed in the current frame. Through mode decision, the best prediction value can be selected to predict the current block.
[0057] The prediction residual representing the difference between the current video block and its predicted value is sent to the transform circuit 102. The transform coefficients are then sent from the transform circuit 102 to the quantization circuit 104 for entropy reduction. The quantized coefficients are then fed into the entropy coding circuit 106 to generate a compressed video bitstream. Figure 1As shown, prediction related information 110 (such as video block segmentation information, motion vector, reference picture index and intra prediction mode) from the intra prediction circuit 112 and / or the inter prediction circuit is also fed through the entropy encoding circuit 106 and saved into the compressed video bitstream 114.
[0058] In the encoder 100, decoder-related circuits are also required to reconstruct pixels for prediction purposes. First, the prediction residual is reconstructed by the inverse quantization circuit 116 and the inverse transform circuit 118. The reconstructed prediction residual is combined with the block prediction value 120 to generate unfiltered reconstructed pixels for the current video block.
[0059] Temporal prediction (also called "inter prediction" or "motion compensated prediction") uses reconstructed pixels from already coded video pictures to predict the current video block. Temporal prediction reduces the temporal redundancy inherent in video signals. The temporal prediction signal for a given CU is usually signaled by one or more motion vectors (MVs), which indicate the amount and direction of motion between the current CU and its temporal reference. In addition, if multiple reference pictures are supported, a reference picture index is additionally sent, which is used to identify which reference picture in the reference picture repository the temporal prediction signal comes from.
[0060] After spatial and / or temporal prediction is performed, the intra / inter mode decision circuit system 121 in the encoder 100 selects the best prediction mode, for example based on a rate-distortion optimization method. The block prediction value 120 is then subtracted from the current video block; and the resulting prediction residual is decorrelated using the transform circuit 102 and the quantization circuit 104. The resulting quantized residual coefficients are dequantized by the dequantization circuit 116 and inversely transformed by the inverse transform circuit 118 to form a reconstructed residual, which is then added back to the prediction block to form a reconstructed signal for the CU. Before the reconstructed CU is placed in the reference picture storage of the picture buffer 117 and used to encode future video blocks, loop filtering 115, such as a deblocking filter, sample adaptive offset (SAO), and / or an adaptive in-loop filter (ALF), can be further applied to the reconstructed CU. To form the output video bitstream 114, the coding mode (inter or intra), prediction mode information, motion information, and quantized residual coefficients are all sent to the entropy coding unit 106 to be further compressed and packed to form a bitstream.
[0061] For example, deblocking filters are available in the current versions of AVC, HEVC, and VVC. In HEVC, an additional loop filter called sample adaptive offset (SAO) is defined to further improve the coding efficiency. In the current version of the VVC standard, another loop filter called adaptive loop filter (ALF) is being actively studied and has a great chance of being included in the final standard.
[0062] These loop filter operations are optional. Performing these operations helps improve codec efficiency and visual quality. They can also be turned off as a decision presented by the encoder 100 to save computational complexity.
[0063] It should be noted that intra prediction is usually based on unfiltered reconstructed pixels, while inter prediction is based on filtered reconstructed pixels if the encoder 100 turns on these filter options.
[0064] Figure 2 is a block diagram illustrating an illustrative video decoder 200 that can be used in conjunction with many video codec standards. The decoder 200 is similar to Figure 1 The reconstructed relevant part in the encoder 100. In the decoder 200 ( Figure 2 ), an incoming video bitstream 201 is first decoded by an entropy decoding circuit 202 to derive quantized coefficient levels and prediction related information. The quantized coefficient levels are then processed by an inverse quantization circuit 204 and an inverse transform circuit 206 to obtain a reconstructed prediction residual. A block prediction value mechanism implemented in an intra / inter mode selector 212 is configured to perform intra prediction 208 or motion compensation 210 based on the decoded prediction information. The reconstructed prediction residual from the inverse transform circuit 206 and the prediction output generated by the block prediction value mechanism are added using an adder 214 to obtain a set of unfiltered reconstructed pixels.
[0065] The reconstructed block may further pass through a loop filter 209 before it is stored in a picture buffer 213, which acts as a reference picture repository. The reconstructed video in the picture buffer 213 may then be sent out to drive a display device, as well as used to predict future video blocks. When the loop filter 209 is turned on, a filtering operation is performed on these reconstructed pixels to derive a final reconstructed video output 222.
[0066] In video codec standards such as HEVC, blocks can be partitioned based on quadtrees. In newer video codec standards (such as the current VVC), more partitioning methods are used, and a coding tree unit (CTU) can be split into CUs based on quadtrees, binary trees, or ternary trees to adapt to changing local characteristics. In most codec modes in the current VVC, there is no separation of CUs, prediction units (PUs), and transform units (TUs), but each CU is always used as a basic unit for both prediction and transformation without further partitioning. However, in some specific codec modes (such as intra-frame sub-partitioning codec modes), each CU can still contain multiple TUs. In a multi-type tree structure, a CTU is first partitioned by a quadtree structure. Then, each quadtree leaf node can be further partitioned by a binary tree structure and a ternary tree structure.
[0067] Figure 3 Five types of partitioning used in the current VVC are shown, namely, quad partitioning 301, horizontal binary partitioning 302, vertical binary partitioning 303, horizontal ternary partitioning 304, and vertical ternary partitioning 305. In the case of using a multi-type tree structure, a CTU is first partitioned by a quadtree structure. Then, each quadtree leaf node can be further partitioned by a binary tree structure and a ternary tree structure.
[0068] use Figure 3 One or more of the exemplary block partitions 301, 302, 303, 304, or 305 may be used Figure 1 The configuration shown is used to perform spatial prediction and / or temporal prediction. Spatial prediction (or "intra-frame prediction") uses pixels from samples of already coded neighboring blocks in the same video picture / slice (which are called reference samples) to predict the current video block. Spatial prediction reduces the spatial redundancy inherent in the video signal.
[0069] In newer video codec standards (such as the current VVC), a new codec tool is added: Luma Mapping with Chroma Scaling (LMCS). LMCS is added as a new codec tool that is applied before loop filters (e.g., deblocking filter, SAO, and ALF).
[0070] Generally speaking, LMCS has two main modules: first, the loop mapping of the luma component based on an adaptive piecewise linear model; second, the luma-dependent chroma residual scaling.
[0071] Figure 4 A modified decoding process in which LMCS is applied is shown. Figure 4In the example, some blocks represent decoding modules implemented in the mapping domain, which include entropy decoding 401, inverse quantization 402, inverse transform 403, luma intra prediction 404, and luma sample reconstruction 405 (ie, luma prediction sample Y'). pred and brightness residual sample Y' res Add together to generate the reconstructed brightness sample Y' recon ). Some other blocks indicate decoding modules implemented in the original (ie, non-mapped) domain, including motion compensated prediction 409, chroma intra prediction 412, chroma sample reconstruction 413 (ie, chroma prediction sample C pred and chroma residual sample C res Add to generate the reconstructed chrominance sample point C recon ) and loop filter processing 407 (covering deblocking, SAO and ALF). Another group of blocks represents the new operation modules introduced by LMCS, including forward mapping 410 and inverse (or backward) mapping 406 of luma samples, and chroma residual scaling 411. In addition, as Figure 4 As shown, all reference pictures stored in decoded picture buffers (DPB) 408 (for luma) and 415 (for chroma) are in the original domain.
[0072] The loop mapping of LMCS aims to adjust the dynamic range of the input signal to improve the coding efficiency. The loop mapping of luma samples in the existing LMCS design is based on two mapping functions: a forward mapping function FwdMap and a corresponding inverse mapping function InvMap. The forward mapping function is signaled from the encoder to the decoder using a piecewise linear model with 16 equal-sized segments. The inverse mapping function can be directly derived from the forward mapping function and therefore does not need to be signaled.
[0073] The parameters of the brightness mapping model are signaled at the slice level. First, a presence flag is signaled to indicate whether a brightness mapping model is to be signaled for the current slice. If a brightness mapping model exists in the current slice, the corresponding piecewise linear model parameters are further signaled. Based on the piecewise linear model, the dynamic range of the input signal is divided into 16 equal-sized segments in the original domain, and each segment is mapped to a corresponding segment. For a given segment in the original domain, its corresponding segment in the mapping domain may have the same or different sizes. The size of each segment in the mapping domain is indicated by the number of codewords (i.e., mapped sample values) of the segment. For each segment in the original domain, linear mapping parameters can be derived based on the number of codewords in its corresponding segment in the mapping domain. For example, when the input is in 10-bit depth, each of the 16 segments in the original domain has 64 pixel values. If each segment in the mapping domain also has 64 codewords assigned to it, it indicates a simple one-to-one mapping (i.e., a mapping in which each sample value does not change). The number of signaled codewords for each partition in the mapping domain is used to calculate the scaling factor and the mapping function is adjusted accordingly for the partition. Additionally, at the slice level, another LMCS control flag is signaled to enable / disable LMCS for the slice.
[0074] For each segment, define the corresponding piecewise linear model as described in the box immediately following this paragraph:
[0075]
[0076] like Figure 4 As shown in the figure, during the LMCS process, operations need to be performed in two different domains. For each CU encoded in inter-frame prediction mode ("inter CU"), its motion compensated prediction is performed in the original domain. However, because the reconstruction of the luma component (i.e., the addition of luma prediction samples and luma residual samples) is performed in the mapped domain, it is necessary to convert Y' pred Before being used for pixel reconstruction 405, the motion-compensated brightness prediction Y pred Mapping from the original domain to the value Y′ in the mapped domain pred (i.e. Y′ pred =FwdMap(Y pred )). On the other hand, for each CU encoded by intra prediction mode ("intra CU"), in Y' pred Before being used for pixel reconstruction 405, given the mapping domain (such as Figure 4 In the case of performing intra prediction 404 in FIG. 4 , no mapping of the prediction samples is required. Finally, when generating the reconstructed luminance sample Y′ reconAfterwards, a backward mapping function 406 is applied to reconstruct the luma samples Y′ before proceeding to the luma DPB 408. recon Convert back to the original domain value Y recon , that is, Y rcon =InvMap(Y′ recon ). Unlike the forward mapping 410 of prediction samples which only needs to be applied for inter CUs, the backward mapping 406 of reconstructed samples needs to be applied to both inter CUs and intra CUs.
[0077] In summary, at the decoder side, the loop brightness mapping of the current LMCS is implemented in this way: if necessary, the brightness prediction sample Y is first converted to pred Convert to the mapping domain: Y′ pred =FwdMap(Y pred ). The mapped prediction samples are then added to the decoded luma residual to form the reconstructed luma samples in the mapped domain: recon =Y′ pred +Y′ res Finally, an inverse mapping is applied to reconstruct the luma samples Y′ recon Convert back to original domain: Y recon =InvMap(Y′ recon ). At the encoder side, since the luma residuals are encoded in the mapping domain, they are generated as the difference between the mapped luma original samples and the mapped luma prediction samples: Y′ res =FwdMap(Y org )-FwdMap(Y pred ).
[0078] The second step of LMCS (luminance-dependent chroma residual scaling) is designed to compensate for the mutual influence of quantization precision between the luma signal and its corresponding chroma signal when loop mapping is applied to the luma signal. Whether chroma residual scaling is enabled or disabled is also signaled in the slice header. If luma mapping is enabled and if binary tree partitioning of luma and chroma components is disabled for the current slice, an additional flag is signaled to indicate whether luma-dependent chroma residual scaling is applied. When luma mapping is not used or binary tree partitioning is enabled for the current slice, luma-dependent chroma residual scaling is always disabled. Additionally, chroma residual scaling is always disabled for CUs containing less than or equal to four chroma samples.
[0079] For both intra CUs and inter CUs, the scaling parameters used to scale the chroma residuals depend on the average of the corresponding mapped luma prediction samples. The scaling parameters are derived as described in the box immediately following this paragraph:
[0080]
[0081] Figure 4 The calculation of the average value of the luma prediction samples for luma-related chroma residual scaling is also illustrated. For inter-frame CUs, the forward-mapped luma prediction Y′ is pred and the scaled chrominance residual C resScale are fed together into the chroma residual scaling 411 to derive the chroma residual C res , chromaticity residual C res and chrominance prediction C pred are fed together into the chrominance reconstruction 413 in order to derive the reconstructed chrominance values C recon For an intra CU, intra prediction 404 generates Y′ which is already in the mapped domain. pred , and it is fed into the chroma residual scaling 411 in a similar manner as for the inter CU.
[0082] Unlike brightness mapping performed based on sample points, C ScaleInv It is fixed for the entire chroma CU. ScaleInv In this case, chroma residual scaling is applied as described in the box immediately following this paragraph.
[0083]
[0084] In newer video codec standards (such as the current VVC), new codec tools are introduced, and some examples of the new codec tools are: Bidirectional Optical Flow (BDOF), Decoder-side Motion Vector Refinement (DMVR), Joint Inter-Intra Prediction (CIIP), Affine Mode, and Prediction Refinement (PROF) using Optical Flow for Affine Mode.
[0085] In the current VVC, Bidirectional Optical Flow (BDOF) is applied to refine the prediction samples of the bidirectionally predicted code blocks.
[0086] Figure 5 is an illustration of the BDOF process. BDOF is a sample-by-sample motion refinement performed on top of block-based motion compensated prediction when bidirectional prediction is used. After applying BDOF within a 6×6 window Ω around the sub-block, the motion refinement (v) of each 4×4 sub-block 501 is calculated by minimizing the difference between reference picture list 0 (L0) and reference picture list 1 (L1) prediction samples 502 and 503. x , v y ).
[0087] Specifically, the motion refinement (v x , v y ) value.
[0088]
[0089] The value S in the box immediately above 1 , S 2 , S 3 , S 5 and S 6 is further calculated as described in the box immediately following this paragraph.
[0090]
[0091] The value I in the box immediately above (k) (i, j) is the sample value at coordinate (i, j) of the prediction signal in list k (k=0, 1), which is generated with intermediate high precision (ie, 16 bits); and the value and The horizontal and vertical gradients of a sample point are obtained by directly calculating the difference between its two adjacent sample points. and The value of is calculated as described in the box immediately following this paragraph.
[0092]
[0093] Based on the derived motion refinement (the motion refinement is based on the derived motion refinement (v x , v y ) is derived by equation (1) described in the box with the value of ), and the final bidirectional prediction samples of the CU are calculated by interpolating the L0 / L1 prediction samples along the motion trajectory based on the optical flow model, as indicated in the box immediately following this paragraph.
[0094]
[0095] Based on the bit depth control method described above, it is ensured that the maximum bit depth of the intermediate parameters of the entire BDOF process does not exceed 32 bits, and the maximum input of the multiplication is within 15 bits, that is, a 15-bit multiplier is sufficient for the BDOF implementation.
[0096] DMVR is a bi-directional prediction technique used to merge blocks with two initial signaled MVs that can be further refined by using bilateral matching prediction.
[0097] Specifically, in DMVR, bilateral matching is used to derive the motion information of the current CU by finding the best match between two blocks along the motion trajectory of the current CU in two different reference pictures. The cost function used in the matching process is the sum of absolute differences (SAD) of row subsampling. After the matching process is completed, the refined MV is used for motion compensation in the prediction stage, and the temporal motion vector prediction of the subsequent picture and the unrefined MV are used for motion vector prediction between the motion vector of the current CU and the motion vector of its spatial neighbors.
[0098] Under the assumption of continuous motion trajectory, the motion vectors MV0 and MV1 pointing to the two reference blocks should be proportional to the temporal distance between the current picture and the two reference pictures (i.e., TD0 and TD1). As a special case, when the current picture is temporally between the two reference pictures and the temporal distance from the current picture to the two reference pictures is the same, bilateral matching becomes mirror-based bidirectional MV.
[0099] In the current VVC, inter-frame and intra-frame prediction methods are used in a hybrid video coding scheme, in which each PU is only allowed to select inter-frame prediction or intra-frame prediction to exploit correlations in the temporal domain or the spatial domain (not both at the same time). However, as pointed out in previous literature, the residual signals generated by the inter-frame prediction block and the intra-frame prediction block may exhibit very different characteristics from each other. Therefore, if these two predictions can be combined in an efficient manner, a more accurate prediction can be expected to reduce the energy of the prediction residual and thus improve the coding efficiency. Additionally, in natural video content, the motion of moving objects may be complex. For example, there may be areas that contain both old content (e.g., objects included in previously coded pictures) and new content that appears (e.g., objects excluded in previously coded pictures). In this scenario, neither inter-frame prediction nor intra-frame prediction can provide an accurate prediction of the current block.
[0100] In order to further improve the prediction efficiency, joint inter-frame intra prediction (CIIP) is adopted in the VVC standard. Joint inter-frame intra prediction (CIIP) combines intra prediction and inter prediction of a CU encoded by merge mode. Specifically, for each merged CU, an additional flag is signaled to indicate whether CIIP is enabled for the current CU. When the flag is equal to 1, CIIP only applies the planar mode to generate intra prediction samples for luminance and chrominance components. Additionally, equal weights (i.e., 0.5) are applied to average the inter prediction samples and intra prediction samples as the final prediction samples of the CIIP CU.
[0101] VVC also supports affine mode for motion compensated prediction. In HEVC, only the translational motion model is applied for motion compensated prediction. In the real world, there are many kinds of motion, such as zooming in / out, rotation, perspective motion, and other irregular motions. In VVC, affine motion compensated prediction is applied by signaling a flag for each inter-frame code block to indicate whether the translational motion model or the affine motion model is applied for inter-frame prediction. In the current VVC design, for one affine code block, two affine modes are supported, including a four-parameter affine mode and a six-parameter affine mode.
[0102] The four-parameter affine model has the following parameters: two parameters for translational motion in the horizontal and vertical directions, one parameter for scaling motion in both directions, and one parameter for rotational motion in both directions. The horizontal scaling parameter is equal to the vertical scaling parameter. The horizontal rotation parameter is equal to the vertical rotation parameter. In order to achieve better adaptation of motion vectors and affine parameters, in VVC, these affine parameters are transformed into two MVs (also called control point motion vectors (CPMVs)) located at the upper left and upper right corners of the current block. The affine motion field of a block consists of two control point MVs (V 0 , V 1 )describe.
[0103] Based on the control point motion vectors, the motion field (v x , v y ) is calculated as described in the box immediately following this paragraph.
[0104]
[0105] The six-parameter affine mode has the following parameters: two parameters for translation motion in the horizontal and vertical directions, one parameter for scaling motion in the horizontal direction and one parameter for rotation motion, one parameter for scaling motion in the vertical direction and one parameter for rotation motion. The six-parameter affine motion model is encoded and decoded at three CPMVs using three MVs.
[0106] The three control points of a six-parameter affine block are located at the upper left, upper right, and lower left corners of the block. The motion at the upper left control point is associated with translational motion, and the motion at the upper right control point is associated with rotation and scaling motion in the horizontal direction, and the motion at the lower left control point is associated with rotation and scaling motion in the vertical direction. Compared with the four-parameter affine motion model, the rotation and scaling motion in the horizontal direction of the six-parameter affine motion model can be different from the rotation and scaling motion in the vertical direction.
[0107] Assume (V 0 , V1 , V 2 ) is the MV of the upper left corner, upper right corner and lower left corner of the current block, then the motion vector (v x , v y ) is derived using three MVs at the control points, as described in the box immediately following this paragraph.
[0108]
[0109] In order to improve the accuracy of affine motion compensation, the current VVC is studying the use of prediction refinement with optical flow (PROF), which uses the prediction refinement of optical flow to refine the sub-block-based affine motion compensation based on the optical flow model. Specifically, after performing sub-block-based affine motion compensation, the brightness prediction sample of an affine block is modified by a sample refinement value derived from the optical flow equation. The operation of PROF can be summarized in detail into the following four steps.
[0110] In step one, sub-block based affine motion compensation is performed to generate sub-block predictions I(i, j) using the sub-block MVs derived in equation (6) above for the four-parameter affine model and in equation (7) above for the six-parameter affine model.
[0111] In step 2, the spatial gradient g of each prediction sample point x (i, j) and g y (i, j) is calculated as described in the box immediately following this paragraph.
[0112]
[0113] Still in step 2, in order to calculate the gradient, an additional row / column of prediction samples need to be generated on each side of a sub-block. In order to reduce memory bandwidth and complexity, the samples on the extended boundary are copied from the nearest integer pixel position in the reference picture to avoid additional interpolation processes.
[0114] In step three, the brightness prediction refinement value is calculated as described in the box immediately following this paragraph.
[0115]
[0116] Additionally, in the current PROF design, after adding prediction refinements to the original prediction samples, a clipping operation is performed as a fourth step to clip the values of the refined prediction samples to within 15 bits, as described in the box immediately following this paragraph.
[0117]
[0118] Because the affine model parameters and the pixel positions relative to the sub-block center do not change from sub-block to sub-block, Δv(i, j) can be calculated for the first sub-block and reused for other sub-blocks in the same CU. Assuming that Δx and Δy are the horizontal and vertical offsets from the sample position (i, j) to the center of the sub-block to which the sample belongs, Δv(i, j) can be derived as described in the box immediately following this paragraph.
[0119]
[0120] Based on the above affine sub-block MV derivation equations (6) and (7), the MV difference Δv(i, j) can be derived as described in the box immediately following this paragraph.
[0121]
[0122] According to the current LMCS design, chroma residual samples are scaled based on their corresponding luma prediction samples. When newer codecs are enabled for an inter CU, the luma prediction samples used to scale chroma residual samples by LMCS in this inter CU are obtained at the end of successive applications of these newer codecs.
[0123] Figure 6 606 together with the luma intra prediction value 622 from the luma intra prediction value 605, is fed into the averaging 606 to produce an average luma prediction value 623, which is fed into the chroma residual scaling 607 together with the chroma residual 608, so that the chroma residual scaling 607, the chroma prediction 610 and the chroma reconstruction 609 can cooperate to produce the final result.
[0124] Current LMCS designs present three challenges to the video decoding process. First, the mapping between different domains (different domain mappings) requires additional computational complexity and on-chip memory. Second, the fact that luma and chroma scaling factor derivations use different luma prediction values introduces additional complexity. Third, the interaction between LMCS and newer codecs introduces latency into the decoding process, i.e., the latency problem associated with LMCS.
[0125] First, in current LMCS designs, both the reconstructed samples in the original domain and the reconstructed samples in the mapped domain are used at various decoding modules. As a result, these samples usually need to be converted from one domain to another between different decoding modules, which may cause both higher computational complexity and more on-chip memory.
[0126] Specifically, for intra mode, CIIP mode and IBC mode, the mapped domain reference samples from the neighboring reconstructed areas of a current CU are used to generate the prediction samples. However, for inter mode, the original domain reconstructed samples of the temporal reference picture are used as reference to perform motion compensated prediction. The reconstructed samples stored in the DPB are also in the original domain. Figure 4 As shown, such a mixed representation of reconstructed samples under different prediction modes brings additional forward and inverse brightness mapping operations.
[0127] For example, for inter CUs, since the luma reconstruction operation (i.e., adding the prediction samples and the residual samples together) is performed in the mapped domain, the inter-prediction luma samples generated in the original domain need to be converted to the mapped domain before being used for luma sample reconstruction. In another example, for both intra and inter CUs, inverse (or backward) mapping is always applied to convert the reconstructed luma samples from the mapped domain to the original domain before storing them in the DPB. This design not only increases the computational complexity due to the additional forward / inverse mapping operations, but also requires more on-chip memory to maintain multiple versions of the reconstructed samples.
[0128] Based on the above discussion, in some LMCS designs, luma mapping and luma-dependent chroma residual scaling are performed to encode and decode luma and chroma components respectively. In an actual hardware implementation, the forward and inverse (or backward) mapping functions FwdMap and InvMap can be implemented using a look-up table (LUT) or real-time calculation. When a LUT-based solution is used, the possible output elements from the functions FwdMap, InvMap, and cScaleInv can be pre-calculated and pre-stored as a LUT, which can then be used for luma mapping and chroma residual scaling operations for all CUs in the current strip. Assuming the input video is 10 bits, there are 2 in each LUT for FwdMap and InvMap. 10 = 1024 elements, and each element in the LUT has 10 bits. Therefore, the total storage of the LUT for forward and reverse luminance mapping is equal to 2*1024*10=20480 bits=2560 bytes. On the other hand, in order to derive the chrominance scaling parameter C ScaleInv, a 16-entry LUT table cScaleInv needs to be maintained at the encoder and decoder, and each chroma scaling parameter is stored in 32 bits. Accordingly, the memory size for storing LUT cScaleInv is equal to 16*32=512 bits=64 bytes. The difference between 2560 and 64 shows the size of the additional on-chip memory required for the forward and inverse (backward) mapping operations.
[0129] In addition, in newer video codec standards (such as the current VVC), both intra prediction and deblocking filters use the reconstructed samples of the above-mentioned neighboring blocks. Therefore, an extra row of reconstructed samples in the width of the current picture / strip needs to be kept in a buffer, which is also called a "row buffer" in video codecs. The reconstructed samples in the row buffer are used as a reference for intra prediction and deblocking operations for CUs in the first row inside a CTU. According to the existing LMCS design, intra prediction and deblocking filters use reconstructed samples in different domains. Therefore, in order to store both the original and mapped domain reconstructed samples, additional on-chip memory becomes necessary, which may approximately double the row buffer size.
[0130] In addition to increasing the row buffer size, another implementation option to avoid doubling the row buffer size is to perform the domain mapping operation in real time. However, this comes at the expense of a non-negligible increase in computational complexity.
[0131] Therefore, current designs of LMCS would require additional computational complexity and on-chip memory due to the required mapping between different domains.
[0132] Second, with the proposed adaptive luma residual scaling, now both luma and chroma components perform scaling operations on their prediction residuals. Although both luma and chroma scaling factor derivation methods in the current design of LMCS use luma prediction sample values to derive corresponding scaling factors, there are differences between their corresponding operations.
[0133] For luma residual scaling, the scaling factor is derived sample by sample by allowing each luma residual sample to have its own scaling factor. However, for chroma residual scaling, the scaling factor is fixed for the entire CU, i.e., all chroma residual samples within a CU share the same scaling factor, which is calculated based on the average of the mapped luma prediction samples.
[0134] Furthermore, two different LUTs are used to calculate the scaling factors for luma and chroma residuals. Specifically, the input to the luma LUT is the mapping model segment index of the original luma prediction sample value, while the input to the chroma LUT is the mapping model segment index of the average value of the mapped luma prediction samples. In some examples, it becomes possible to use only one LUT to scale both luma and chroma residuals without mapping the luma prediction samples to a mapping domain.
[0135] This difference introduces additional complexity into the encoding and decoding process, and a coordinated approach for luma and chroma scaling factor derivation is desirable. Therefore, in order to achieve a unified design, some methods can be proposed to coordinate the scaling methods of luma and chroma residuals.
[0136] Third, as discussed above with regard to “luminance-dependent chroma residual scaling”, according to the current LMCS design, the chroma residual samples are scaled based on their corresponding luma prediction samples. This means that the chroma residual samples of a LMCS CU cannot be reconstructed until all luma prediction samples of the CU are fully generated. In addition, as mentioned earlier, DMVR, BDOF, and CIIP can be applied to improve the efficiency of inter-frame prediction. Figure 6 As shown, for the current design of chroma residual scaling for LMCS, newer codec tools (such as all three modules of DMVR, BDOF, and CIIP) can be called sequentially to generate luma prediction samples, which are then used to determine the scaling factor of the chroma residual. Given the high computational complexity of these three modules, waiting until they are successfully completed before performing chroma residual scaling for LMCS may cause severe delays in the decoding of chroma samples. For affine CUs, the PROF process may also have delay issues because each affine CU may perform the PROF process followed by LMCS, which may also cause delay issues in the decoding of chroma samples.
[0137] Furthermore, in the current design of LMCS, unnecessary clipping operations are performed during the chroma residual scaling factor derivation process, further increasing the additional requirements on computational complexity and on-chip memory.
[0138] The present disclosure aims to solve or alleviate these challenges brought by the current design of LMCS. More specifically, the present disclosure discusses a solution for hardware codec implementation that can reduce the complexity of LMCS while maintaining codec gain.
[0139] Instead of using the existing LMCS framework that converts prediction / reconstruction samples through a mapping operation, a new method called prediction-dependent residual scaling (PDRS) is proposed to directly scale the prediction residual without sample mapping. The proposed method can achieve similar effects and codec efficiency as LMCS, but with much lower implementation complexity.
[0140] During the PDRS process, Figure 7 As shown, luma prediction samples for decoding luma residual samples are obtained (701), scaling factors are derived using the luma prediction samples (702), the luma residual samples are scaled using the scaling factors (703), and reconstructed luma samples are calculated by adding the luma prediction samples and the scaled luma residual samples (704).
[0141] In some examples, an adaptive luma residual scaling method is proposed to reduce the implementation complexity of LMCS. Specifically, unlike the existing LMCS method that directly converts the predicted / reconstructed luma samples to the mapping domain before calculating the luma prediction residual, in the method of the proposed PDRS process, the luma prediction residual samples are derived in the same way as in the conventional prediction process in the original domain without any mapping operation, followed by a scaling operation on the luma prediction residual. The scaling of the luma prediction residual depends on the corresponding luma prediction sample value and the piecewise linear model. As a result, the forward and reverse luma mapping operations in the current LMCS design can be completely discarded, and all prediction and reconstruction samples involved during the decoding process are kept in the original sample domain. Based on the above characteristics, the proposed method is named prediction-related residual scaling. In addition, in order to improve the latency of chroma residual scaling derivation, some methods can be proposed to completely or partially exclude DMVR, BDOF and CIIP operations from the generation of luma prediction samples, where the luma prediction samples are used to calculate the scaling parameters of the chroma residual samples.
[0142] Figure 8 804, 809, 812, and 816, reconstruction 806 and 813, and all loop filters 807 and 814) operate in the original domain. Specifically, in order to reconstruct the luma samples, the proposed method in the PDRS process only needs to convert the luma prediction residual samples Y res To scale them back to their original amplitude levels, and then add them to the brightness prediction samples Y pred superior.
[0143] Using the PDRS process, the forward and reverse luma sample mapping operations in the existing LMCS design are completely removed. This not only saves / reduces the computational complexity, but also reduces the size of the potential storage library for storing LMCS parameters. For example, when a LUT-based solution is used to implement luma mapping, the storage library previously used to store the two mapping LUTs FwdMap[] and InvMap[] (approximately 2560 bytes) is no longer required in the proposed method. In addition, unlike the existing luma mapping methods that need to store reconstructed luma samples in both the original and mapped domains, the method proposed in the PDRS process only generates and maintains all prediction and reconstruction samples in the original domain. Accordingly, compared with the existing luma mapping, the method proposed in the PDRS process can effectively reduce the size of the line buffer used to store the reconstructed samples for intra-frame prediction and deblocking by half.
[0144] According to one or more embodiments of the PDRS process, the luma prediction samples and the luma residual samples are from the same collocated position in a luma prediction block and its associated residual block.
[0145] According to one or more embodiments of the PDRS process, deriving a scaling factor using luma prediction samples includes dividing a full range of possible luma prediction sample values into a plurality of luma prediction sample segments, calculating a scaling factor for each of the plurality of luma prediction sample segments based on a predefined piecewise linear model, and determining a scaling factor for the luma prediction sample based on the scaling factors of the plurality of luma prediction sample segments.
[0146] In one example, determining the scaling factor of the luma prediction sample based on the scaling factors of the plurality of luma prediction sample segments includes: allocating the luma prediction sample to one of the plurality of luma prediction sample segments, and calculating the scaling factor of the luma prediction sample as the scaling factor of the allocated luma prediction sample segment.
[0147] In this example, the plurality of luma prediction sample segments include 16 segments in a predefined 16-segment LUT table scaleForward, and a predefined piecewise linear model for calculating a scaling factor for each of the plurality of luma prediction sample segments includes 16 values corresponding to the 16 segments in the predefined LUT table scaleForward.
[0148] In order to maintain the accuracy of the operation, the scaling parameters used to scale / descale the luma residual samples can be determined based on their corresponding collocated luma prediction samples. Y is the value of a brightness prediction sample, and the scaling factor of its corresponding residual sample is calculated by the following steps.
[0149] In the same example, the scaling factor (e.g., the brightness residual scaling factor Scale Y ) is calculated based on the allocated luma prediction sample segment, as described in the box immediately following this paragraph.
[0150]
[0151] In the same example, given a brightness scaling factor Scale Y In this case, the luma residual sample scaling method can be applied as described in the box immediately following this paragraph.
[0152]
[0153] The motivation behind this example is that the forward mapping in current LMCS is based on a piecewise linear model. If both the original luma sample and the luma prediction sample are located in the same segment (i.e., the same segment defined by the two pivot points InputPivot[i] and InputPivot[i+1]), then the two forward mapping functions for the original and predicted luma samples become exactly the same. Accordingly, it results in Y′ res =FwdMap(Y org )-FwdMap(Y pred )=FwdMap(Y org -Y pred )==FwdMap(Y res ). By applying the inverse mapping on both sides of this equation, the corresponding decoder-side reconstruction operation can be expressed as: recon =Y pred +InvMap(Y′ res ).
[0154] In other words, in the case where both the original luma samples and the luma prediction samples are located at the same segment, the luma mapping method in LMCS can be implemented by a residual scaling operation in the decoding process, as implemented in this possible implementation, for example, Figure 8 shown.
[0155] Although this conclusion is derived based on the assumption that both the original luma sample and the luma prediction sample are located in the same segment defined by the two pivot points InputPivot[i] and InputPivot[i+1], even when the original luma sample and the luma prediction sample are located in different segments of the piecewise linear model, this possible implementation of the example can still be used as a simplification and / or approximation for the existing luma mapping operation in VVC in any case. Experimental results show that this simplification and / or approximation has little impact on the encoding and decoding performance.
[0156] To reiterate, this example is based on the assumption that both the original and predicted luma sample values are in the same region of the piecewise linear model. In this case, the forward / inverse mapping functions applied to the original and predicted luma samples are the same; therefore, it is safe to calculate the corresponding residual scaling factors based only on the luma prediction samples.
[0157] However, when the predicted samples of a CU are not accurate enough (e.g., for an intra-predicted CU, where samples far from the reference samples are usually not predicted very accurately), the predicted samples and the original samples are usually located in different regions of the piecewise linear model. In this case, the scaling factors derived based on the predicted sample values may not be reliable in reflecting the original mapping relationship between the residual samples in the original (i.e., non-mapped) domain and the residual samples in the mapped domain.
[0158] Fig. 9 is an illustration of the residual mapping error caused by using only prediction samples to derive the scaling factors. Fig. 9 In , the triangle solid points represent the pivot control points of different segments in the piecewise linear function, and the circle solid points represent the original and predicted sample values; Y org and Y pred are the original and predicted samples in the original (i.e., non-mapped) domain; Y′ org and Y′ pred They are Y org and Y pred The mapping sample points of Y res and Y′ res is the corresponding residual in the original domain and the mapped domain when the existing sample-based brightness mapping method in VVC is applied; Y′ resScale is the mapping residual sample derived based on the proposed brightness residual scaling scheme. Fig. 9 As shown, because the original samples and the predicted samples are not in the same segment of the piecewise linear model, the scaling factors derived based on the predicted samples may not be accurate enough to generate an approximation to the original residual (i.e., Y′) in the mapping domain. res ) of the scaled residual (i.e., Y′ resScale ).
[0159] In the second example, the assumption that both original and predicted luma sample values are located in the same segment of the piecewise linear model is not required.
[0160] In this second example, in order to improve the accuracy of the residual scaling factor, instead of deriving the scaling factor directly from the segment of the piecewise linear model where the luminance prediction sample is located, the scaling factor is calculated as the average of the scaling factors of N (N is a positive integer) adjacent segments.
[0161] In the second example, determining the scaling factor of the luma prediction sample based on the scaling factors of the plurality of luma prediction sample segments includes allocating the luma prediction sample to one of the plurality of luma prediction sample segments, and calculating the scaling factor of the luma prediction sample as an average of scaling factors of a plurality of luma prediction sample segments adjacent to the allocated luma prediction sample segment.
[0162] More specifically, in one possible implementation of this second example, the scaling factor may be calculated based on the allocated luma prediction sample segment, as described in the following steps. For example, at the decoder side, at a given luma prediction sample Pred Y and brightness residual Y′ res In the case of res The scaling factor is calculated as follows.
[0163] (1) Find or obtain Pred in the original domain Y The corresponding segment index Idx of the piecewise linear model Y .
[0164] (2) If Y′ res ≥0, the brightness residual scaling factor is calculated as follows:
[0165]
[0166] (3) Otherwise (i.e., Y′ res <0), the brightness residual scaling factor is calculated as follows:
[0167]
[0168] Where scaleForward[i] (i=0...15) is a predefined 16-segment LUT, which is calculated as:
[0169] scaleForward[i]=(OrgCW< <SCALE_FP_PREC) / SignaledCW[i]
[0170] where OrgCW and SignaledCW[i] are the number of codewords in the i-th segment in the original and mapped domains, respectively, and SCALE_FP_PREC is the precision of the scaling factor.
[0171] In a second possible implementation of this second example, which is otherwise identical to the implementation described above, the scaling factor may be calculated based on the allocated luma prediction sample segments, as described in the box immediately following this paragraph:
[0172]
[0173] The above two possible implementations of this second example differ only in the selection of the N luma prediction sample domain value segments based on the allocated segments.
[0174] In a chroma sample reconstruction process, if Fig.10 As shown, a luma prediction sample value for a luma residual sample and a chroma residual sample at a decoding input position is obtained (1001), then a luma prediction sample associated with the luma residual sample is obtained (1002), then a chroma prediction sample associated with the chroma residual sample is obtained (1003), the luma prediction sample is used to derive a first scaling factor for the luma residual sample and a second scaling factor for the chroma residual sample (1004), the luma residual sample is scaled using the first scaling factor (1005), the chroma residual sample is scaled using the second scaling factor (1006), a reconstructed luma sample is calculated by adding the luma prediction sample and the scaled luma residual sample (1007), and a reconstructed chroma sample is calculated by adding the chroma prediction sample and the scaled chroma residual sample (1008).
[0175] The chroma sample reconstruction process aims to coordinate the scaling methods of luma and chroma residuals to achieve a more unified design.
[0176] According to one or more embodiments of the chroma sample reconstruction process, the luma prediction sample value is the average value of all luma prediction samples in the coding unit (CU) containing the input position. In these embodiments, a chroma scaling derivation method is used to calculate a scaling factor for luma residual, and more specifically, instead of deriving a scaling factor for each luma residual sample separately, a shared scaling factor calculated based on the average value of the luma prediction samples is used to scale the luma residual samples of the entire CU.
[0177] According to another embodiment of the chroma sample reconstruction process, the luma prediction sample value is the average value of all luma prediction samples in a predefined sub-block subdivided from a coding unit (CU) containing an input position. In this embodiment, a sub-block-based method can be proposed to derive scaling factors for luma and chroma residuals. Specifically, a CU is first equally divided into a plurality of M×N sub-blocks; then for each sub-block, all or part of the luma prediction samples are used to derive a corresponding scaling factor, which is used to scale both the luma and chroma residuals of the sub-block. Compared with the first method, the second method can improve the spatial accuracy of the estimated scaling factor because the luma prediction samples with low correlation outside the sub-block are excluded from the calculation of the scaling factor of the sub-block. At the same time, the second method can also reduce the delay of luma and chroma residual reconstruction in the case where the scaling of luma and chroma residuals in a sub-block can start immediately after the luma prediction of the sub-block is completed (i.e., without waiting for the luma prediction samples of the entire CU to be fully generated).
[0178] According to a third embodiment of the chroma sample reconstruction process, the luma prediction sample domain value includes collocated luma prediction samples. In this embodiment, the luma residual scaling method is extended to scale the chroma residual, and a different scaling factor for each chroma residual sample is derived based on the collocated luma prediction sample value of each chroma residual sample.
[0179] In the above embodiment of the chroma sample reconstruction process, it is proposed to use the same LUT used to calculate the luma scaling factor for the chroma residual scaling. In one example, in order to derive the CU-level scaling factor Scale for the chroma residual C , you can follow the following:
[0180] (1) Calculate the average value of the brightness prediction samples in the CU (which are represented in the original domain), expressed as avg Y .
[0181] (2) Find or get avg Y The corresponding segment index Idx of the piecewise linear model Y .
[0182] (3) Calculate Scale C The values are as follows:
[0183] Scale C =scaleForward[Idx Y ]
[0184] Where scaleForward[i] (i=0...15) is a predefined 16-segment LUT, which is calculated as:
[0185] scaleForward[i]=(OrgCW< <SCALE_FP_PREC) / SignaledCW[i]
[0186] where OrgCW and SignaledCW[i] are the number of codewords in the i-th segment in the original and mapped domains, respectively, and SCALE_FP_PREC is the precision of the scaling factor.
[0187] The above example can be easily extended to the case where a scaling factor for the chroma residual is derived for each sub-block of the current CU. In this case, in the first step above, avgY will be calculated as the average of the luma prediction samples in the original domain of the sub-block, while steps 2 and 3 remain unchanged.
[0188] In the second chroma sample reconstruction process, if Fig.11As shown, a plurality of luma prediction samples (1101) are obtained by skipping a plurality of predefined intermediate luma prediction stages during a luma prediction process for a coding unit (CU), scaling factors (1102) for chroma residual samples in the CU are derived using the obtained plurality of luma prediction samples, the chroma residual samples in the CU are scaled using the scaling factors (1103), and reconstructed chroma samples (1104) are calculated by adding the chroma prediction samples in the CU and the scaled chroma residual samples.
[0189] According to one or more embodiments of the second chroma sample reconstruction process, the predefined intermediate luma prediction stage includes one or more bidirectional prediction modules of decoder-side motion vector derivation (DMVR), bidirectional optical flow (BDOF), and joint inter-frame intra-frame prediction (CIIP). In these embodiments, in order to solve the delay problem, the inter-frame prediction samples derived before the DMVR, BDOF / PROF, CIIP intra-frame / inter-frame joint process are used to derive the scaling factor for the chroma residual.
[0190] Fig.12 1 is a flowchart illustrating the workflow of the LMCS decoding process in one example of this embodiment of the second chroma sample reconstruction process, in which DMVR, BDOF and CIIP are not applied to generate luma prediction samples for chroma scaling. Here, instead of waiting for the luma intra prediction portion 1205 of DMVR 1203, BDOF 1204 and / or CIIP to be fully completed, the chroma residual scaling process 1208 can be started once the prediction samples 1221 and 1222 based on the initial L0 and L1 luma predictions 1201 and 1202 become available.
[0191] exist Fig.12 In the example, before DMVR 1203 , BDOF 1204 and / or CIIP 1205 , in addition to the original averaging operation 1206 , an additional averaging operation 1211 is required to combine the initial L0 and L1 prediction samples 1221 and 1222 .
[0192] To reduce complexity, in a second example of this embodiment of the second chroma sample reconstruction process, the initial L0 prediction samples may always be used to derive the scaling factors for the chroma residual.
[0193] Fig.131304, and / or CIIP 1305.
[0194] In a third example of this embodiment of the second chroma sample reconstruction process, an initial prediction signal (L0 or L1) is selected in an adaptive manner as a luma prediction sample, and the luma prediction sample is used to derive the chroma residual scaling factor. In a possible implementation of this example, between the initial prediction signals (L0 or L1), one whose reference picture has a smaller picture order count (POC) distance relative to the current picture is selected to derive the chroma residual scaling factor.
[0195] In another embodiment of the second chroma sample reconstruction process, it is proposed to disable only DMVR and BDOF / PROF, and enable CIIP to generate inter-frame prediction samples for determining the chroma residual scaling factor. Specifically, in this method, for CIIP, the inter-frame prediction samples derived before DMVR and BDOF / PROF are first averaged and then combined with the intra-frame prediction samples; finally, the combined prediction samples are used as prediction samples to determine the chroma residual scaling factor.
[0196] In yet another embodiment of the second chroma sample reconstruction process, it is proposed to disable only BDOF / PROF, while retaining DMVR and CIIP to generate prediction samples for determining the chroma residual scaling factors.
[0197] In yet another embodiment of the second chroma sample reconstruction process, it is proposed to keep BDOF / PROF and CIIP while disabling DMVR when deriving luma prediction samples for determining chroma residual scaling factors.
[0198] In addition, it is worth mentioning that although the methods in the above embodiments of the second chroma sample reconstruction process are illustrated as being designed to reduce the latency of chroma prediction residual scaling, these methods can also be used to reduce the latency of luma prediction residual scaling. For example, all these methods can also be applied to the PDRS method explained in the "Luminance Mapping Based on Prediction Related Residual Scaling" section.
[0199] According to the existing DMVR design, in order to reduce the computational complexity, a 2-tap bilinear filter is used instead of the default 8-tap interpolation to generate the prediction samples for DMVR motion refinement. After the refined motion is determined, the default 8-tap filter will be applied to generate the final prediction samples of the current CU. Therefore, in order to reduce the chroma residual decoding delay caused by DMVR, it is proposed to use the luminance prediction samples generated by the bilinear filter (if the current CU is bidirectionally predicted, it is the average of the L0 and L1 prediction samples) to determine the scaling factor of the chroma residual.
[0200] According to a chroma residual sample reconstruction process, such as Fig.14 As shown, one or more luma prediction sample values are selected from the output of a bilinear filter of a decoder-side motion vector derivation (DMVR) (1401), the one or more selected luma prediction sample values are adjusted to another one or more luma prediction sample values having a bit depth that is the same as the original codec bit depth of an input video (1402), a scaling factor is derived using the luma prediction sample values having the same bit depth as the original codec bit depth of the input video to decode one or more chroma residual samples (1403), one or more chroma residual samples are scaled using the scaling factor (1404), and one or more chroma residual samples are reconstructed by adding the one or more scaled chroma residual samples to their corresponding chroma prediction samples (1405).
[0201] In one or more embodiments of the chroma residual sample reconstruction process, selecting one or more luma prediction sample values from the output of the bilinear filter of the DMVR includes: selecting L0 and L1 luma prediction samples from the output of the bilinear filter of the DMVR.
[0202] Fig.15 1 is a flow chart illustrating the workflow of the LMCS decoding process in one such embodiment of the chroma residual sample reconstruction process. The L0 and L1 prediction samples 1521 and 1522 from the output of the bilinear filter 1512 component of the DMVR 1503 are fed into the averaging 1511 to derive the chroma residual scaling input 1523, which will be used in the chroma residual scaling 1507 to decode one or more chroma residual samples.
[0203] In these embodiments, there is a problem of bit code depth. In order to reduce the internal storage size used by DMVR, the intermediate L0 and L1 prediction samples generated by the bilinear filter of DMVR have 10-bit precision. This is different from the representation bit depth of the immediate prediction samples of conventional bidirectional prediction (which is equal to 14 bits). Therefore, the intermediate prediction samples output from the bilinear filter cannot be directly used to determine the chroma residual scaling factor due to their different precision.
[0204] To address this problem, it is proposed to first align the DMVR intermediate bit depth with the intermediate dual depth used for conventional motion compensated interpolation, i.e., increase the bit depth from 10 bits to 14 bits. Thereafter, the existing averaging process applied to generate the conventional bidirectional prediction signal can be reused to generate the corresponding prediction samples for determining the chroma residual scaling factor.
[0205] In one example of these embodiments, adjusting one or more selected luma prediction sample values to another one or more luma prediction sample values having the same bit depth as the original codec bit depth of the input video includes: increasing the internal bit depth of the L0 and L1 luma prediction samples of the output of the bilinear filter from the DMVR to 14 bits by left shifting, obtaining a 14-bit average luma prediction sample value by averaging the 14-bit shifted L0 and L1 luma prediction sample values, and converting the 14-bit average luma prediction sample value by right shifting to change the internal bit depth of the 14-bit average luma prediction sample value to the original codec bit depth of the input video.
[0206] More specifically, in this example, the chroma scaling factor is determined by the steps described in the box immediately following this paragraph.
[0207]
[0208] In other embodiments of the chroma residual sample reconstruction process, selecting one or more luma prediction sample values from the output of the bilinear filter of the DMVR and adjusting the one or more selected luma prediction sample values to another one or more luma prediction sample values having the same bit depth as the original codec bit depth of the input video includes: selecting a luma prediction sample from L0 and L1 luma prediction samples in the output of the bilinear filter of the DMVR, adjusting the one selected luma prediction sample by shifting to change the internal bit depth of the one selected luma prediction value to the original codec bit depth of the input video, and using the adjusted luma prediction sample as a luma prediction sample having the same bit depth as the original codec bit depth of the input video.
[0209] Fig.16 is a flow chart illustrating the workflow of the LMCS decoding process in one such other embodiment of the chroma residual sample reconstruction process. The L0 prediction samples 1621 from the output of the bilinear filter 1612 component of the DMVR 1603 are used in the chroma residual scaling 1607 to decode one or more chroma residual samples. In this embodiment, it is proposed to directly use the initial unidirectional prediction samples (i.e., the L0 prediction samples) to derive the scaling factors for the chroma residual.
[0210] In one example of one such other embodiment of the chroma residual sample reconstruction process, assuming that the current CU is bi-directionally predicted, the chroma scaling factor is determined by shifting the luma samples output from the bilinear filter to the original codec bit depth of the input video, as described in the box immediately following this paragraph.
[0211]
[0212] Finally, instead of generating luma prediction samples, it is proposed to directly use reference samples (i.e., samples at integer positions obtained from external reference pictures) to determine the scaling factors for the chroma residuals. In one or more embodiments, it is proposed to use the average of the reference samples in L0 and L1 to determine the chroma residual scaling factors. In another embodiment, it may be proposed to use only reference samples in one direction (e.g., list L0) to calculate the chroma residual scaling factors.
[0213] According to the second chroma residual sample reconstruction process, Fig.17 As shown, one or more luma reference sample values are selected from a reference picture (1701), one or more selected luma reference sample values are transformed into luma sample values (1702), a scaling factor is derived using the transformed luma sample values (1703), one or more chroma residual samples are scaled using the scaling factor (1704), and one or more chroma residual samples are reconstructed by adding the one or more scaled chroma residual samples to their corresponding chroma prediction samples (1705).
[0214] In one or more embodiments of the second chroma residual sample reconstruction process, selecting one or more luma reference sample values from a reference picture and transforming the one or more selected luma reference sample values into luma sample values includes obtaining both L0 and L1 luma reference sample values from L0 and L1 reference pictures, and averaging the L0 and L1 luma reference sample values as the transformed luma sample values.
[0215] In other embodiments of the second chroma residual sample reconstruction process, selecting one or more luma reference sample values from the reference picture and transforming the one or more selected luma reference sample values into luma sample values includes: selecting a luma reference sample value from L0 and L1 luma reference sample values from L0 and L1 reference pictures, and using the one selected luma reference sample value as the transformed luma sample value.
[0216] According to the existing LMCS design, the reconstructed luminance samples adjacent to the 64×64 region where the current CU is located are used to calculate the chrominance residual scaling factor of the CU in the region. In addition, before calculating the average value, a clipping operation, Clip1(), is applied to clip the reconstructed luminance adjacent samples to the dynamic range of the internal bit depth (i.e., within the range [0, (1<<bitDepth)-1]).
[0217] Specifically, the method first obtains 64 left adjacent luminance samples and 64 top adjacent luminance samples of the corresponding 64×64 area to which the current CU belongs; then calculates the average value of the left and top adjacent samples, i.e., avgY, and finds the segment index Y of avgY in the LMCS piecewise linear model. ldx ; and finally derive the chroma residual C ScaleInv =cScaleInv[Y ldx ].
[0218] Specifically, in the current VVC draft, how to derive the corresponding average brightness is described as follows, where a clipping operation Clip1() is applied, as shown with enlarged fonts:
[0219] For the export of the variable varScale, the following sequential steps apply:
[0220] The variable invAvgLuma is exported as follows:
[0221] - The array recLuma[i] (i=0...(2*sizeY 1)) and the variable cnt are derived as follows:
[0222] -The variable cnt is set equal to 0.
[0223] - When availL is equal to TRUE, the array recLuma[i] (i=0...sizeY-1) is set equal to
[0224] currPic[xCuCb-1][Min(yCuCb+i, pic_height_in_luma_samples-1)] where i=0..sizeY-1, and cnt is set equal to sizeY.
[0225] - When availT is equal to TRUE, the array recLuma[cnt+i] (i=0...sizeY-1) is set equal to
[0226] currPic[Min(xCuCb+i, pic_width_in_luma_samples-1)][yCuCb-1] where i=0...sizeY-1, and cnt is set equal to (cnt+sizeY).
[0227] -The variable invAvgLuma is exported as follows:
[0228] - If cnt is greater than 0, the following applies:
[0229]
[0230] - Otherwise (cnt equals 0), the following applies:
[0231] invAvgLuma=1<<(BitDepth-1)
[0232] In the above description, sizeY is 64; recLuma[i] is the reconstructed sample of the top and left adjacent luma samples; and invAvgLuma is the calculated luma average.
[0233] However, at the reconstruction process, after adding the prediction samples to the residual samples of a CU, the resulting sample values have been clipped to the dynamic range of the internal bit depth. This means that all neighboring reconstructed luma samples around the current 64×64 region are guaranteed to be within the range of the internal bit depth. Therefore, their average value, i.e., avgY, cannot exceed this range either. As a result, the existing clipping (i.e., Clip1()) is unnecessary for calculating the corresponding chroma residual scaling factors. In order to further reduce the complexity and memory requirements of the LMCS design, it is proposed to remove the clipping operation when calculating the average value of the neighboring reconstructed luma samples to derive the chroma residual scaling factors.
[0234] Fig.18 is a flow chart illustrating the steps of the non-cropped chroma residual scaling factor derivation process. Fig.18 In the method, during decoding of a CU, a plurality of reconstructed luma samples from a first predetermined area are selected, the first predetermined area being adjacent to a second predetermined area where the CU is located (1801), an average value of the plurality of reconstructed luma samples is calculated (1802), and when deriving a chroma residual scaling factor for a decoded CU, the average value of the plurality of reconstructed luma samples is directly used without any clipping (1803).
[0235] In one or more embodiments of the non-cropped chroma residual scaling factor derivation process, the average of the plurality of reconstructed luma samples is an arithmetic mean of the plurality of reconstructed luma samples.
[0236] In one or more embodiments of the non-cropped chroma residual scaling factor derivation process, when deriving the chroma residual scaling factor for the decoded CU, the average value of multiple reconstructed luma samples is directly used without any cropping, including: identifying the segment index of the average value in a predefined piecewise linear model, and deriving the chroma residual scaling factor for the decoded CU based on the slope of the linear model of the segment.
[0237] In one or more embodiments of the non-cropped chroma residual scaling factor derivation process, a plurality of reconstructed luma samples in the first predetermined region are generated by generating luma prediction samples and luma residual samples in the first predetermined region, adding the luma residual samples to the luma prediction samples, and clipping the added luma samples to a dynamic range of a codec bit depth.
[0238] In one or more embodiments of the non-cropped chroma residual scaling factor derivation process, the plurality of reconstructed luma samples are a plurality of forward mapped inter-frame luma reconstruction samples.
[0239] In one or more embodiments of the non-cropped chroma residual scaling factor derivation process, the second predetermined area is a 64×64 area where the CU is located.
[0240] In one example, if Fig.19 As shown, the first predetermined region may include top adjacent samples in the 1×64 region 1902 directly above the second predetermined region 1904. Alternatively or additionally, the first predetermined region may include left adjacent samples in the 64×1 region 1903 directly to the left of the second predetermined region 1904.
[0241] According to the existing LMCS design, reconstructed samples in both the original domain and the mapped domain are used for CUs encoded in different modes. Accordingly, multiple LMCS transformations are involved in the current encoding / decoding process to transform the prediction and reconstructed luma samples between the two domains.
[0242] Specifically, for intra mode, CIIP mode and IBC mode, the reference samples from the neighboring reconstruction area of a current CU used to generate intra prediction samples are kept in the mapped domain. In contrast, for CIIP mode and all inter modes, the motion compensated prediction samples generated from the temporal reference pictures are in the original domain. Because the luma reconstruction operation is performed in the mapped domain, those inter prediction samples of the luma component need to be converted to the mapped domain before adding to the residual samples. On the other hand, for both intra and inter modes, inverse mapping is always applied to convert the reconstructed luma samples from the mapped domain back to the original domain.
[0243] In addition, after the inter - predicted samples are transformed to the mapped domain, a clipping operation, i.e., Clip1(), is applied to clip the inter - predicted samples to the dynamic range of the internal bit - depth (i.e., within the range [0, (1<<bitDepth)-1]). At the same time, for both intra and inter modes, after the reconstructed luma samples are transformed back to the original domain, the same clipping operation is also applied to the reconstructed luma samples.
[0244] However, based on the existing LMCS design, there is a bit - stream limitation that ensures the generated samples from the forward LMCS are always within the dynamic range of the internal bit - depth. This means that the mapped luma prediction samples of an inter - CU cannot exceed this dynamic range. Therefore, the existing clipping operation applied to the mapped luma prediction samples in the inter - mode is redundant. As an example, it can be proposed to remove the clipping operation after the forward transformation of the inter - predicted samples in the inter - mode and the CIIP mode. In another example, it can be proposed to remove the clipping operation from the inverse LMCS mapping process when transforming the reconstructed luma samples from the mapped domain back to the original domain.
[0245] More specifically, in the current VVC draft, the inverse mapping process for luma samples is described as follows, where the clipping operation Clip1() in Equation (1242) is applied, as shown in enlarged font:
[0246] 8.8.2.2 Inverse mapping process for luma samples
[0247] The input of this process is the luma sample lumaSample.
[0248] The output of this process is the modified luma sample invLumaSample.
[0249] The value of invLumaSample is derived as follows:
[0250] - If the slice_lmcs_enabled_flag of the slice containing the luma sample lumaSample is equal to 1, the following ordered steps are applied:
[0251] 1. The variable idxYInv is derived by calling the identification of the piece - wise function indexing process for luma samples specified in Clause 8.8.2.3, where lumaSample is the input and idxYInv is the output.
[0252] 2. The variable invSample is derived as follows:
[0253] invSample = InputPivot[idxYInv]+(InvScaleCoeff[idxYInv]*
[0254] (lumaSample-LmcsPivot[idxYInv])+(1<<10))>>11(1241)
[0255] 3. The inverse mapped luminance sample invLumaSample is exported as follows:
[0256] invLumaSample=Clip 1(invSample)(1242)
[0257] Otherwise, invLumaSample is set equal to lumaSample.
[0258] Furthermore, in the current VVC draft, the weighted sample prediction process for combined merging and intra prediction is described as follows, where a clipping operation Clip1() is applied, as shown with enlarged fonts:
[0259] 8.5.6.7 Weighted Sample Prediction Process for Combined Merging and Intra Prediction
[0260] The inputs to this process are:
[0261] - luma position (xCb, yCb), which specifies the top left corner sample of the current luma code block relative to the top left corner luma sample of the current picture,
[0262] -The width of the current code block cbWidth,
[0263] -The height of the current code block cbHeight,
[0264] - two (cbWidth)×(cbHeight) arrays predSamplesInter and predSamplesIntra,
[0265] - The variable cIdx that specifies the color component index.
[0266] The output of this process is a (cbWidth)×(cbHeight) array of predicted sample values, predSamplesComb.
[0267] The variable scallFact is exported as follows:
[0268] scallFactX=(cIdx==0||SubWidthC==1)? 0:1 (1026)
[0269] scallFactY=(cIdx==0||SubHeightC==1)? 0:1 (1027)
[0270] The adjacent luminance positions (xNbA, yNbA) and (xNbB, yNbB) are set to be equal to, respectively,
[0271] (xCb - 1, yCb - 1+(cbHeight << scallFactY)) and
[0272] (xCb - 1+(cbWidth << scallFactX), yCb - 1).
[0273] For X replaced by A or B, the variables availableX and isIntraCodedNeighbourX are derived as follows:
[0274] - Invoke the derivation process of adjacent block availability specified in Clause 6.4.4, where the inputs are: the position (xCurr, yCurr) set to be equal to (xCb, yCb), the adjacent position (xNbY, yNbY) set to be equal to (xNbX, yNbX), checkPredModeY set to be equal to FALSE, and cIdx set to be equal to 0, and the output is assigned to availableX.
[0275] - The variable isIntraCodedNeighbourX is derived as follows:
[0276] - If availableX is equal to TRUE and
[0277] CuPredMode[0][xNbX][yNbX] is equal to MODE_INTRA, then isIntraCodedNeighbourX is set to be equal to TRUE.
[0278] - Otherwise, isIntraCodedNeighbourX is set to be equal to FALSE.
[0279] The weight w is derived as follows:
[0280] - If both isIntraCodedNeighbourA and isIntraCodedNeighbourB are equal to TRUE, then w is set to be equal to 3.
[0281] - Otherwise, if both isIntraCodedNeighbourA and isIntraCodedNeighbourB are equal to FALSE, then w is set to be equal to 1.
[0282] - Otherwise, w is set to be equal to 2.
[0283] When cIdx is equal to 0 and slice_lmcs_enabled_flag is equal to 1, predSamplesInter[x][y] (x=0..cbWidth-1 and y=0..cbHeight-1) is modified as follows:
[0284] idxY=predSamplesInter[x][y]>>Log2(OrgCW)
[0285] predSamplesInter[x][y]=Clip 1(LmcsPivot[idxY]+
[0286] (ScaleCoeff[idxY]*(predSamplesInter[x][y]-
[0287] InputPivot[idxY])+(1<<10))>>11) (1028)
[0288] The predicted samples predSamplesComb[x][y] (x=0..cbWidth-1 and y=0..cbHeight-1) are derived as follows:
[0289] predSamplesComb[x][y]=(w*predSamplesIntra[x][y]+
[0290] (4-w)*predSamplesInter[x][y]+2)>>2(1029)
[0291] Furthermore, in the current VVC draft, picture reconstruction with a mapping process for luma samples is described as follows, where a clipping operation Clip1() is applied, as shown with enlarged fonts:
[0292] 8.7.5.2 Image reconstruction with mapping process for luma samples
[0293] The inputs to this process are:
[0294] - The position of the upper left corner sample of the current block relative to the upper left corner sample of the current picture (xCurr, yCurr),
[0295] - variable nCurrSw that specifies the block width,
[0296] - variable nCurrSh that specifies the block height,
[0297] -Specifies the (nCurrSw)×(nCurrSh) array predSamples of the luminance prediction samples of the current block,
[0298] -Specifies the (nCurrSw)×(nCurrSh) array resSamples of luma residual samples for the current block.
[0299] The output of this process is the reconstructed luminance picture sample array recSamples.
[0300] The (nCurrSw)×(nCurrSh) array of mapped predicted luminance samples predMapSamples is derived as follows:
[0301] - predMapSamples[i][j] is set equal to predSamples[i][j] for i=0..nCurrSw-1, j=0..nCurrSh-1 if one of the following conditions is true:
[0302] -CuPredMode[0][xCurr][yCurr] is equal to MODE_INTRA.
[0303] -CuPredMode[0][xCurr][yCurr] is equal to MODE_IBC.
[0304] -CuPredMode[0][xCurr][yCurr] is equal to MODE_PLT.
[0305] - CuPredMode[0][xCurr][yCurr] is equal to MODE_INTER, and ciip_flag[xCurr][yCurr] is equal to 1.
[0306] - Otherwise (CuPredMode[0][xCurr][yCurr] is equal to MODE_INTER and ciip_flag[xCurr][yCurr] is equal to 0), the following applies:
[0307] idxY=predSamples[i][j]>>Log2(OrgCW)
[0308] predMapSamples[i][j]=Clip 1(LmcsPivot[idxY]
[0309] +(ScaleCoeff[idxY]*(predSamples[i][j]-
[0310] InputPivot[idx Y])+(1<<l0))> >11 (1232)
[0311] where i = 0..nCurrSw-1, j = 0..nCurrSh-1)
[0312] The reconstructed luminance image samples recSamples are exported as follows:
[0313] recSamples[xCurr+i][yCurr+j]=Clip 1(predMapSamples[i][j]+resSamples[i][j]])(1233)
[0314] Where i = 0..nCurrSw-1, j = 0..nCurrSh-1
[0315] In existing LMCS designs, these redundant pruning operations cause additional computational complexity and on-chip memory requirements. In order to further reduce the complexity and memory requirements of LMCS designs, it is proposed to remove these redundant pruning operations.
[0316] According to Fig. 20 The illustrated non-cropped chroma sample decoding process obtains a plurality of reconstructed samples of a luminance component in a mapped domain (2001) during decoding of a coding unit (CU) encoded by an inter mode or a joint inter-intra prediction (CIIP) mode under a luminance mapping with chroma scaling (LMCS) framework, obtains a plurality of converted samples of the luminance component in an original domain by converting the plurality of reconstructed samples of the luminance component from the mapped domain to an original domain (2002), and uses the plurality of converted samples of the luminance component in the original domain when deriving chroma scaling factors for chroma samples of the decoded CU without cropping (2003).
[0317] In one or more embodiments of the non-cropped chroma sample decoding process, as Fig.21 As shown in the figure, when the CU is encoded and decoded by the inter-frame mode, obtaining multiple reconstructed samples of the luminance component in the mapping domain includes: calculating multiple inter-frame prediction samples of the luminance component in the original domain (2101), converting the multiple inter-frame prediction samples of the luminance component from the original domain to the mapping domain without cropping to obtain multiple converted inter-frame prediction samples of the luminance component in the mapping domain (2102), and adding the multiple converted inter-frame prediction samples of the luminance component in the mapping domain to the multiple residual samples of the luminance component in the mapping domain, thereby generating multiple reconstructed samples of the luminance component in the mapping domain (2103).
[0318] In one or more other embodiments of the non-cropped chroma sample decoding process, such as Fig. 22As shown in the figure, when the CU is encoded and decoded by the CIIP mode, obtaining multiple reconstructed samples of the luminance component in the mapping domain includes: calculating multiple inter-frame prediction samples of the luminance component in the original domain (2201), converting the multiple inter-frame prediction samples of the luminance component from the original domain to the mapping domain without cropping to obtain multiple converted inter-frame prediction samples of the luminance component in the mapping domain (2202), calculating multiple intra-frame prediction samples of the luminance component in the mapping domain (2203), deriving the prediction samples of the luminance component in the mapping domain by weighted averaging the multiple converted inter-frame prediction samples and the multiple intra-frame prediction samples (2204), and adding the derived prediction samples of the luminance component in the mapping domain to the multiple residual samples of the luminance component in the mapping domain, thereby generating multiple reconstructed samples of the luminance component in the mapping domain (2205).
[0319] When the current LMCS is enabled, forward and backward luminance mapping is performed using a LUT table defined with 11-bit precision. For example, taking forward luminance mapping as an example, the current forward mapping scaling factor is defined as follows:
[0320] ScaleCoeff[i]=(lmcsCW[i]*(1<<11)+(1<<(Log2(OrgCW)-1)))>>(Log2(OrgCW))
[0321] Where lmcsCW is the length of one segment in the mapped luma domain, and OrgCW is the length of one segment in the original luma domain, which is equal to 1<<(BitDepth-4).
[0322] However, note that this 11-bit precision is sufficient only for intra-codec bit depths less than 16 bits. When the intra-codec bit depth is 16 bits, the value of Log2(OrgCW) will be 12. In this case, the 11-bit precision increase is not enough to support the scaling factor derivation. This may result in the mapped predicted luma sample values after forward luma mapping exceeding the dynamic range of the intra-codec bit depth, even if the current consistency (bitstream consistency) is applied, i.e., the sum of the lengths of the mapped segments in the luma domain is less than or equal to (1<<BitDepth)-1.
[0323] Based on this consideration, two solutions are proposed.
[0324] In one solution, it is proposed to always apply the cropping operation to the mapped luma prediction samples for both inter mode and CIIP mode.In addition to this, the current bitstream conformance can be removed.
[0325] Under this solution, the weighted sample prediction process for combined merge and intra prediction becomes as follows: As compared to the specification of the same process in the current VVC draft, the clipping operation Clip1() is always applied in equation (1028a), so that the mapped luma prediction samples will contain the clipped values.
[0326] 8.5.6.7 Weighted Sample Prediction Process for Combined Merging and Intra Prediction
[0327] The inputs to this process are:
[0328] When cIdx is equal to 0 and slice_lmcs_enabled_flag is equal to 1, predSamplesInter[x][y] (where x=0..cbWidth-1 and y=0..cbHeight-1) is modified as follows:
[0329] idxY=predSamplesInter[x][y]>>Log2(OrgCW)
[0330] predSamplesInter[x][y]=Clip 1(LmcsPivot[idxY]+
[0331] (ScaleCoeff[idxY]*(predSamplesInter[x][y]-InputPivot[idxY])+(1<<10))>>11)(1028a)
[0332] The predicted samples predSamplesComb[x][y] (where x=0..cbWidth-1 and y=0..cbHeight-1) are derived as follows:
[0333] predSamplesComb[x][y]=(w*predSamplesIntra[x][y]+
[0334] (4-w)*predSamplesInter[x][y]+2)>>2(1029a)
[0335] Also under this solution, picture reconstruction with the mapping process for luma samples will become as follows: As compared with the specification of the same process in the current VVC draft, a clipping operation Clip1() is added so that the mapped luma prediction samples will contain clipping values.
[0336] 8.7.5.2 Image reconstruction with mapping process for luma samples
[0337] The inputs to this process are:
[0338] - The position of the upper left corner sample of the current block relative to the upper left corner sample of the current picture (xCurr, yCurr),
[0339] - variable nCurrSw that specifies the block width,
[0340] - variable nCurrSh that specifies the block height,
[0341] -Specifies the (nCurrSw)×(nCurrSh) array predSamples of the luminance prediction samples of the current block,
[0342] -Specifies the (nCurrSw)×(nCurrSh) array resSamples of luma residual samples for the current block.
[0343] The output of this process is the reconstructed luminance picture sample array recSamples.
[0344] The (nCurrSw)×(nCurrSh) array of mapped predicted luminance samples predMapSamples is derived as follows:
[0345] - predMapSamples[i][j] is set equal to predSamples[i][j] for i=0..nCurrSw-1, j=0..nCurrSh-1 if one of the following conditions is true:
[0346] -CuPredMode[0][xCurr][yCurr] is equal to MODE_INTRA.
[0347] -CuPredMode[0][xCurr][yCurr] is equal to MODE_IBC.
[0348] -CuPredMode[0][xCurr][yCurr] is equal to MODE_PLT.
[0349] - CuPredMode[0][xCurr][yCurr] is equal to MODE_INTER, and ciip_flag[xCurr][yCurr] is equal to 1.
[0350] - Otherwise (CuPredMode[0][xCurr][yCurr] is equal to MODE_INTER and ciip_flag[xCurr][yCurr] is equal to 0), the following applies:
[0351] idxY=predSamples[i][j]>>Log2(OrgCW)
[0352] predMapSamples[i][j]=Clip 1(LmcsPivot[idxY]
[0353] +(ScaleCoeff[idxY]*(predSamples[i][j]-
[0354] InputPivot[idxY])+(1<<10))>>11(1232a)
[0355] where i = 0..nCurrSw-1, j = 0..nCurrSh-1)
[0356] The reconstructed luminance image samples recSamples are exported as follows:
[0357] recSamples[xCurr+i][yCurr+j]=Clip 1(predMapSamples[i][j]+resSamples[i][j]])(1233a)
[0358] Where i = 0..nCurrSw-1, j = 0..nCurrSh-1
[0359] In a second solution, it is proposed to increase the precision of the derivation of the scaling factors of the LMCS to more than 11 bits (denoted as M bits).
[0360] Under this second solution, the forward brightness map becomes as follows:
[0361] ScaleCoeff[i]=(lmcsCW[i]*(1< <M)+(1<<(Log2(OrgCW)-1)))> >(Log2(OrgCW))
[0362] idxY=predSamples[i][j]>>Log2(OrgCW)
[0363] predMapSamples[i][j]=LmcsPivot[idxY]+
[0364] (ScaleCoeff[idxY]*(predSamples[i][j]-
[0365] InputPivot[idxY])+(1<<(M-1)))>>M(1219)
[0366] Where i = 0..nCurrSw-1, j = 0..nCurrSh-1
[0367] In one embodiment of the second solution, it is proposed to increase the precision of the derivation of scaling factors for both forward and inverse luminance mapping.In another embodiment of the second solution, it is proposed to increase the precision of the derivation of scaling factors for the forward luminance mapping only.
[0368] When either of the above two solutions is applied, the current cropping operation applied to the mapped luma prediction samples of the inter mode and CIIP mode can also be safely removed.
[0369] According to the first aspect of the present disclosure, Fig.23 As shown in the figure, a plurality of prediction samples (2301) of the luminance component of the CU encoded and decoded in the inter-frame mode or the CIIP mode in the mapping domain are obtained, a plurality of residual samples (2302) of the luminance component of the CU in the mapping domain are received from the bitstream, the plurality of prediction samples in the mapping domain are added to the plurality of residual samples in the mapping domain, thereby generating a plurality of reconstructed samples (2303) of the luminance component in the mapping domain, and the plurality of reconstructed samples of the luminance component are converted from the mapping domain to the original domain based on a plurality of predefined inverse mapping scaling factors (2304).
[0370] In one or more embodiments of the first aspect of the present disclosure, Fig.24 As shown in the figure, encoding and decoding the CU through the inter-frame mode, and obtaining multiple prediction samples of the brightness component of the CU in the mapping domain includes: deriving multiple inter-frame prediction samples of the brightness component of the CU in the original domain from the temporal reference picture of the CU (2401), and then based on a predefined codec bit depth and a predefined multiple forward mapping scaling factors in a predefined forward mapping accuracy, converting the multiple inter-frame prediction samples of the brightness component from the original domain to the mapping domain (2402).
[0371] In one or more other embodiments of the first aspect of the present disclosure, Fig.25 As shown in the figure, the CU is encoded and decoded by the CIIP mode, and obtaining multiple prediction samples of the CU's brightness component in the mapping domain includes: deriving multiple inter-frame prediction samples of the CU's brightness component in the original domain from the CU's temporal reference picture (2501), converting the multiple inter-frame prediction samples of the brightness component from the original domain to the mapping domain based on a predefined codec bit depth and a predefined multiple forward mapping scaling factors in a predefined forward mapping accuracy (2502), calculating multiple intra-frame prediction samples of the CU's brightness component in the mapping domain (2503), and deriving the prediction samples of the CU's brightness component in the mapping domain as a weighted average of the converted multiple inter-frame prediction samples and multiple intra-frame prediction samples (2504).
[0372] In one example, if Fig.26 As shown, based on a predefined codec bit depth and a predefined plurality of forward mapping scaling factors in a predefined forward mapping precision, converting a plurality of inter-frame prediction samples of a luma component from an original domain to a mapped domain includes: converting a plurality of inter-frame prediction samples of a luma component from an original domain to a mapped domain using a predefined plurality of forward mapping scaling factors (2601), determining whether a cropping operation is required based on the predefined codec bit depth and the predefined forward mapping precision (2602), in response to determining that a cropping operation is required, cropping the plurality of inter-frame prediction samples of the luma component in the mapped domain to a predefined codec bit depth (2603), and in response to determining that a cropping operation is not required, avoiding cropping of the plurality of inter-frame prediction samples of the luma component (2604).
[0373] In one or more examples, determining whether a cropping operation is required includes determining that a cropping operation is required when a predefined codec bit depth is greater than a predefined forward mapping precision.
[0374] In one or more examples, determining whether a cropping operation is required includes determining that a cropping operation is not required when a predefined codec bit depth is less than or equal to a predefined forward mapping precision.
[0375] In one or more examples, determining whether a cropping operation is required includes determining that a cropping operation is required regardless of a predefined codec bit depth and a predefined forward mapping precision.
[0376] In one or more instances, determining whether a cropping operation is required includes determining that a cropping operation is not required regardless of a predefined codec bit depth and a predefined forward mapping precision.
[0377] In one or more instances, the predefined forward mapping precision is 15 bits.
[0378] In one or more instances, the predefined forward mapping precision is 11 bits.
[0379] Fig. 27 2700 is a block diagram illustrating an apparatus for video encoding and decoding according to some embodiments of the present disclosure. Apparatus 2700 may be a terminal such as a mobile phone, a tablet computer, a digital broadcast terminal, a tablet device, or a personal digital assistant.
[0380] like Fig. 27 As shown, device 2700 may include one or more of the following components: a processing component 2702 , a memory 2704 , a power component 2706 , a multimedia component 2708 , an audio component 2710 , an input / output (I / O) interface 2712 , a sensor component 2714 , and a communication component 2716 .
[0381] The processing component 2702 generally controls the overall operation of the device 2700, such as operations related to display, phone calls, data communications, camera operations, and recording operations. The processing component 2702 may include one or more processors 2720 for executing instructions to complete all or part of the steps of the above method. In addition, the processing component 2702 may include one or more modules to facilitate interaction between the processing component 2702 and other components. For example, the processing component 2702 may include a multimedia module to facilitate interaction between the multimedia component 2708 and the processing component 2702.
[0382] The memory 2704 is configured to store different types of data to support the operation of the device 2700. Examples of such data include instructions for any application or method operating on the device 2700, contact data, phone book data, messages, pictures, videos, etc. The memory 2704 may include any type of temporary or non-temporary storage medium or a combination thereof, and the memory 2704 may be a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk. The non-temporary storage medium may be, for example, a hard disk drive (HDD), a solid state drive (SSD), a flash memory, a hybrid drive or a solid state hybrid drive (SSHD), a read-only memory (ROM), a compact disk read-only memory (CD-ROM), a magnetic tape, a floppy disk, etc.
[0383] The power supply component 2706 provides power to the various components of the device 2700. The power supply component 2706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 2700.
[0384] Multimedia component 2708 includes a screen that provides an output interface between device 2700 and a user. In some examples, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen that receives input signals from a user. The touch panel may include one or more touch sensors for sensing touch, sliding, and gestures on the touch panel. The touch sensor can not only sense the boundaries of a touch or sliding action, but also detect the duration and pressure associated with the touch or sliding operation. In some examples, multimedia component 2708 may include a front camera and / or a rear camera. When device 2700 is in an operating mode such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data.
[0385] The audio component 2710 is configured to output and / or input audio signals. For example, the audio component 2710 includes a microphone (MIC). When the device 2700 is in an operating mode such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 2704 or sent via the communication component 2716. In some examples, the audio component 2710 further includes a speaker for outputting an audio signal.
[0386] I / O interface 2712 provides an interface between processing component 2702 and peripheral interface modules. The above peripheral interface modules can be keyboards, click wheels, buttons, etc. These buttons can include but are not limited to home buttons, volume buttons, start buttons, and lock buttons.
[0387] Sensor assembly 2714 includes one or more sensors for providing different aspects of status assessment for device 2700. For example, sensor assembly 2714 can detect the on / off state of device 2700 and the relative position of components. For example, the components are the display and keyboard of device 2700. Sensor assembly 2714 can also detect position changes of device 2700 or components of device 2700, the presence or absence of user contact on device 2700, the orientation or acceleration / deceleration of device 2700, and temperature changes of device 2700. Sensor assembly 2714 may include a proximity sensor configured to detect the presence of a nearby object without any physical touch. Sensor assembly 2714 may further include an optical sensor, such as a CMOS or CCD image sensor used in imaging applications. In some examples, sensor assembly 2714 may further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0388] Communication component 2716 is configured to facilitate wired or wireless communication between device 2700 and other devices. Device 2700 can access a wireless network based on communication standards such as WiFi, 4G or a combination thereof. In one example, communication component 2716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one example, communication component 2716 may further include a near field communication (NFC) module for facilitating short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data organization (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0389] In one example, the apparatus 2700 may be implemented by one or more of an application specific integrated circuit system (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components to perform the above method.
[0390] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored or transmitted on a computer-readable medium as one or more instructions or codes, and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium (such as a data storage medium) or a communication medium, including, for example, any medium that facilitates the transfer of a computer program from one place to another according to a communication protocol. In this way, a computer-readable medium may generally correspond to (1) a tangible, non-temporary computer-readable storage medium, or (2) a communication medium such as a signal or carrier wave. A data storage medium may be any available medium that one or more computers or one or more processors can access to retrieve instructions, codes, and / or data structures for implementing the embodiments described in this application. A computer program product may include a computer-readable medium.
[0391] In addition, the above method can be implemented using device 2700. The present disclosure may include dedicated hardware implementations, such as application-specific integrated circuit systems, programmable logic arrays, and other hardware devices. Hardware implementations may be constructed to implement one or more methods described herein. Examples of devices and systems that may include various implementations may include a wide range of electronic and computing systems. One or more examples described herein may use two or more specific interconnected hardware modules or devices and related control and data signals to implement functions, and related control and data signals may be transmitted between modules or through modules, or as part of an application-specific integrated circuit system. Accordingly, the disclosed device or system may include software, firmware, and hardware implementations. The terms "module," "submodule," "circuit," "subcircuit," "circuit system," "subcircuit system," "unit," or "subunit" may include a memory (shared, dedicated, or group) that stores code or instructions that may be executed by one or more processors. The module referred to herein may include one or more circuits with or without stored code or instructions. A module or circuit may include one or more connected components.
[0392] In view of the specification and practice of the invention disclosed herein, other embodiments of the present invention will be obvious to those skilled in the art. This application is intended to cover any modification, use or adaptation of the present invention, which follows the general principles of the present invention and includes deviations from the present disclosure as falling into the known or common practice in the art. It is intended that this specification and examples are considered to be exemplary only, and the true scope and spirit of the present invention are indicated by the appended claims.
[0393] It will be appreciated that the invention is not limited to the exact examples described above and illustrated in the accompanying drawings and that various modifications and changes may be made without departing from the scope thereof. It is intended that the scope of the invention be limited only by the appended claims.
Claims
1. A method for video encoding, include: Divide the current picture into one or more coding units CU; Based on a plurality of predefined forward mapping scaling factors in a predefined forward mapping precision, obtaining a plurality of prediction samples of a luminance component of a current CU in a mapping domain, wherein the predefined forward mapping precision is greater than 11 bits, and the current CU is encoded by a joint inter-frame intra-frame prediction CIIP mode under a luminance mapping LMCS framework with chroma scaling; Obtain a plurality of residual sample points of the brightness component of the current CU in the mapping domain; Add the multiple predicted sample points of the brightness component of the current CU in the mapping domain to the multiple residual sample points in the mapping domain to obtain multiple reconstructed sample points of the brightness component in the mapping domain; converting the plurality of reconstructed samples of the luma component from a mapped domain to an original domain based on a plurality of predefined inverse mapping scaling factors; as well as Form a video bit stream output.
2. The method according to claim 1, wherein the plurality of prediction samples of the brightness component of the current CU in the mapping domain are obtained include: Deriving a plurality of inter-frame prediction samples of the luminance component of the current CU in the original domain from a temporal reference picture of the current CU; Obtaining converted inter-frame prediction samples by converting the plurality of inter-frame prediction samples of the luma component from the original domain to the mapped domain based on the plurality of forward mapping scaling factors; Calculate a plurality of intra-frame prediction samples of the luminance component of the current CU in the mapping domain; as well as The plurality of prediction samples of the luminance component of the current CU in the mapping domain are derived as a weighted average of the converted inter-frame prediction samples and the plurality of intra-frame prediction samples.
3. The method of claim 2, wherein the plurality of inter-frame prediction samples of the luma component are converted from the original domain to the mapped domain based on the plurality of forward mapping scaling factors. include: The plurality of inter-frame prediction samples of the luma component are converted from the original domain to the mapped domain without clipping using the plurality of forward mapping scaling factors.
4. A computing device, include: one or more processors; a non-transitory memory coupled to the one or more processors; as well as A plurality of programs stored in the non-transitory memory, when executed by the one or more processors, cause the computing device to perform the method of any one of claims 1-3 to obtain a corresponding video bitstream.
5. A computer program product, comprising instructions, which, when executed by one or more processors, cause the one or more processors to perform the method of any one of claims 1-3 to obtain a corresponding video bitstream.
6. A non-transitory computer-readable storage medium storing a plurality of programs for execution by a video encoding device having one or more processors, in, When executed by the one or more processors, the plurality of programs cause the video encoding device to perform the method according to any one of claims 1-3 to obtain a corresponding video bitstream.
