High-Level Syntax for Video Coding and Decoding

By placing APS ID-related syntax elements at the beginning of the picture and slice headers, the parsing complexity associated with the mandatory picture header in the VVC standard is reduced, enhancing decoding efficiency for streaming applications.

JP7561256B2Active Publication Date: 2024-10-03CANON KK
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023185011
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-03-05
Filing Date
2023-10-27
Publication Date
2024-10-03
Estimated Expiration
2041-02-26

AI Technical Summary

Technical Problem

The introduction of a mandatory picture header in the VVC standard results in increased parsing complexity due to a large number of parameters that need to be processed for decoding, which affects the overall bitrate of the bitstream.

Method used

The proposed solution involves setting syntax elements related to APS ID information at the beginning of the picture and slice headers, allowing for early parsing of these elements, thereby reducing the need to parse the rest of the header, especially for streaming applications.

Benefits of technology

This approach simplifies the parsing process without degrading coding performance, reducing complexity for streaming applications that require tracking APS ID usage to eliminate non-useful APS NAL units.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007561256000019
    Figure 0007561256000019
  • Figure 0007561256000020
    Figure 0007561256000020
  • Figure 0007561256000021
    Figure 0007561256000021
Patent Text Reader

Abstract

To provide a method for decoding video data from a bit stream with an improved structure of a picture header for simplifying a syntactic analysis.SOLUTION: A decoding method receives a bit stream which includes a picture header including a syntax element to be used when decoding one slice or more and a slice header including syntax elements to be used when decoding the slice. In the picture header, at least one syntax element showing whether or not a decoding tool can be used in a picture is analyzed; when the decoding tool is used in the picture, at least one APS ID-related syntax element is analyzed for the decoding tool in the picture header. In the slice header, before the syntax element related to other decoding tools, at least one syntax element showing to the slice whether or not the decoding tool is used is analyzed.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to video coding and decoding, and in particular to high-level syntax used in bitstreams. [Background technology]

[0002] Recently, the Joint Video Experts Team (JVET), a joint team formed by MPEG and ITU-T Study Group 16's VCEG, began research into a new video coding standard called Versatile Video Coding (VVC). The goal of VVC is to provide significant improvements in compression performance over the existing HEVC standard (i.e., typically double the previous standard) and to be completed in 2020. Primary target applications and services include, but are not limited to, 360-degree and high dynamic range (HDR) video. Overall, JVET evaluated responses from 32 organizations using formal subjective testing conducted by an independent testing laboratory. Several proposals demonstrated compression efficiency improvements of typically 40% or more compared to using HEVC. This was particularly evident for ultra-high-definition (UHD) video test material. Therefore, compression efficiency improvements are expected to far exceed the 50% target for the final standard.

[0003] The JVET Exploration Model (JEM) uses all of the HEVC tools and introduces a number of new tools. These changes required changes to the bitstream structure, especially the high-level syntax, which could affect the overall bitstream bitrate.

[0004] One significant change to the high-level syntax is the introduction of a "picture header" to the bitstream. A picture header is a header that specifies the syntax elements used to decode each slice within a particular picture (or frame). Thus, the picture header precedes the data associated with a slice in the bitstream, and each slice has its own "slice header." This structure is described in more detail below with reference to Figure 6.

[0005] Document JVET-P0239 of the 16th meeting: Geneva, CH, 1-11 October 2019, entitled "AHG17: Picture Header", proposed the introduction of a mandatory picture header in VVC, which was adopted as Generic Video Coding (Proposal 7), uploaded as document JVET_P2001.

[0006] However, this header has a large number of parameters, all of which must be parsed to use a particular decoding tool. Summary of the Invention

[0007] The present invention relates to improving the structure of picture headers to simplify this parsing process, which leads to reduced complexity without degrading coding performance.

[0008] In particular, by placing syntax elements related to APS ID information at the beginning of the picture header, these elements can be parsed first, which may eliminate the need to parse the rest of the header.

[0009] Similarly, if the slice header has syntax elements related to APS ID information, these are set at the beginning of the slice header.

[0010] In one example, it is proposed to move the syntax elements related to APS IDs to an earlier stage in the picture and slice headers. The purpose of this modification is to reduce the parsing complexity for some streaming applications that need to track APS IDs in picture and slice headers in order to remove unused APSs. The proposed modification does not affect BDR performance.

[0011] This reduces parsing complexity for streaming applications where the APS ID information may be all that is required from the header. Other streaming-related syntax elements may be moved towards the beginning of the header for the same reason.

[0012] It should be understood that the term "start" does not refer to the first entry of the respective header, as there may be multiple introductory syntax elements before the syntax elements related to APS ID information. The detailed description provides various examples, but the general definition is that syntax elements related to APS ID information are provided before syntax elements related to decoding tools. In one specific example, the syntax elements related to APS IDs for the ALF, LMCS, and scaling list are set immediately after the poc_msb_val syntax element.

[0013] According to a first aspect of the present invention, there is provided a method for decoding video data from a bitstream, the bitstream including video data corresponding to one or more slices. The bitstream includes a picture header including syntax elements used in decoding one or more slices and a slice header including syntax elements used in decoding the slice. The decoding includes parsing at least one syntax element in the picture header indicating whether a decoding tool or parameter may be used in the picture, where, when a decoding tool or parameter is used in the picture, at least one APS ID-related syntax element is parsed for the decoding tool or parameter in the picture header. The decoding further includes parsing at least one syntax element in the slice header indicating whether a decoding tool or parameter is used for the slice before syntax elements related to other decoding tools or parameters, and decoding the bitstream using the syntax element.

[0014] Therefore, information related to enabling or disabling decoding tools or parameters at the slice level, such as luma mapping with chroma scaling (LMCS) or scaling lists, is set at or near the beginning of the slice header, which allows for a simpler and faster parsing process, especially for streaming applications.

[0015] Parameters for another (further) decoding tool or parameter, including APS ID-related syntax elements, if enabled, can be parsed before the syntax element indicating whether to use the decoding tool or parameter for that slice (e.g., before the decoding tool or parameter related to the LMCS or scaling list). The APS ID-related syntax element can be related to the adaptive loop filtering APS ID.

[0016] This reduces the complexity of streaming applications that need to track APS ID usage to remove unusable APS NAL units. Although there are no APS IDs associated with certain decoding tools and parameters (e.g., LMCS or scaling list) in the slice header (e.g., syntax elements for APS IDs associated with LMCS or scaling list are not parsed in the slice header), when such decoding tools or parameters are disabled at the slice level, this affects the APS ID used for the current picture. For example, in a sub-picture extraction application, the APS ID should be transmitted in the picture header, but the extracted sub-picture contains only one slice. In that one slice, the decoding tool or parameter (e.g., LMCS or scaling list) may be disabled in the slice header. If the APS identified in the picture header is not used in another frame, the extraction application should remove the APS with the associated APS ID (e.g., LMCS or scaling list APS) because it is not needed for the extracted sub-picture. Therefore, the decision as to whether an APS needs to be removed can be made efficiently without first having to parse other data in the slice header.

[0017] The syntax elements in the slice header that indicate whether a decoding tool or parameter is used may immediately follow the syntax elements related to Adaptive Loop Filtering (ALF) parameters.

[0018] The decoding tool or parameter may be related to Luma Mapping with Chroma Scaling (LMCS). The syntax element indicating whether the decoding tool or parameter is used may be a flag indicating whether LMCS is used for the slice.

[0019] The decoding tool or parameter may be associated with a scaling list. The syntax element indicating whether the decoding tool or parameter is used may be a flag that signals whether a scaling list is used for the slice.

[0020] In one embodiment, a method for decoding video data from a bitstream is provided, the bitstream including video data corresponding to one or more slices, wherein the bitstream includes a picture header including syntax elements used when decoding the one or more slices, and a slice header including syntax elements used when decoding the slice, the method including: parsing, in the picture header, at least one syntax element indicating whether an LMCS or scaling list decoding tool may be used in the picture, wherein when an LMCS or scaling list decoding tool is used in the picture, at least one APS ID-related syntax element is parsed for the LMCS or scaling list decoding tool in the picture header; parsing, in the slice header, at least one syntax element indicating whether an LMCS or scaling list decoding tool is used for that slice before syntax elements related to other decoding tools, wherein, when an ALF APS ID syntax element is valid, it is parsed before the at least one syntax element indicating whether an LMCS or scaling list decoding tool is used for that slice; and decoding the video data from the bitstream using the syntax elements.

[0021] According to a second aspect of the present invention, there is provided a method for encoding video data into a bitstream, the bitstream including video data corresponding to one or more slices. The bitstream includes a header including syntax elements used in decoding the one or more slices, and a slice header including syntax elements used in decoding the slice. The encoding includes: encoding, in a picture header, at least one syntax element indicating whether a decoding tool or parameter may be used in a picture, wherein, when a decoding tool or parameter may be used in the picture, at least one APS ID-related syntax element is encoded for the decoding tool or parameter in the picture header; and encoding, in a slice header, before syntax elements related to other decoding tools or parameters, at least one syntax element indicating whether a decoding tool or parameter is used for the slice.

[0022] Parameters of another (further) decoding tool, including APS ID-related syntax elements, if enabled, are coded before the syntax element indicating whether to use the decoding tool or parameter for that slice (e.g., before the decoding tool or parameter-related LMCS or scaling list).

[0023] The APS ID related syntax elements for other decoding tools may be related to the adaptive loop filtering APS ID.

[0024] Encoding a bitstream according to this process provides reduced complexity for streaming applications that need to track APS ID usage to remove unhelpful APS NAL units. Although APS IDs associated with certain decoding tools and parameters (e.g., LMCS or scaling list) are not present in the slice header (e.g., syntax elements for APS IDs associated with LMCS or scaling list are not coded in the slice header), when such decoding tools or parameters are disabled at the slice level, this affects the APS ID used for the current picture. For example, in a subpicture extraction application, the APS ID should be transmitted in the picture header, but the extracted subpicture contains only one slice. In that one slice, the decoding tool or parameter (e.g., LMCS or scaling list) may be disabled in the slice header. If an APS identified in the picture header is not used in another frame, the extraction application should remove the APS with the associated APS ID (e.g., LMCS or scaling list APS) because it is not needed for the extracted subpicture. Thus, the decision as to whether an APS needs to be removed can be made efficiently without first having to parse other data in the slice header.

[0025] The slice header syntax element indicating whether a decoding tool or parameter is used is coded immediately after the ALF parameters.

[0026] The decoding tool or parameter may be associated with an LMCS. The encoded syntax element indicating whether the decoding tool or parameter is used may be a flag indicating whether an LMCS is used for the slice.

[0027] The decoding tool or parameter may be associated with a scaling list. The encoded syntax element indicating whether the decoding tool or parameter is used may be a flag that signals whether a scaling list is used for the slice.

[0028] In an embodiment according to a second aspect, there is provided a method for encoding video data into a bitstream, the bitstream including video data corresponding to one or more slices, wherein the bitstream includes a picture header including syntax elements used when decoding the one or more slices, and a slice header including syntax elements used when decoding the slice, the method including: encoding, in the picture header, at least one syntax element indicating whether an LMCS or a scaling list decoding tool may be used in the picture, wherein when an LMCS or a scaling list decoding tool is used in the picture, at least one APS ID-related syntax element is encoded for the LMCS or scaling list decoding tool in the picture header; encoding, in the slice header, at least one syntax element indicating whether an LMCS or a scaling list decoding tool is used for that slice before syntax elements related to other decoding tools, wherein, when an ALF APS ID syntax element is enabled, it is encoded before the at least one syntax element indicating whether an LMCS or a scaling list decoding tool is used for that slice; and encoding the video data into the bitstream using the syntax elements.

[0029] In a third aspect according to the present invention there is provided a decoder for decoding video data from a bitstream, the decoder being configured to perform a method according to any implementation of the first aspect.

[0030] In a fourth aspect according to the present invention there is provided an encoder for encoding video data into a bitstream, the encoder being configured to perform a method according to any implementation of the second aspect.

[0031] In a fifth aspect of the present invention, there is provided a computer program that, when executed, causes the method of either the first or second aspect to be performed. The program may be provided by itself or may be carried on, by, or within a carrier medium. The carrier medium may be non-transitory, for example, a storage medium, particularly a computer-readable storage medium. The carrier medium may also be transitory, for example, a signal or other transmission medium. The signal may be transmitted over any suitable network, including the Internet.

[0032] In a sixth aspect according to the present invention, there is provided a method for parsing a bitstream including video data corresponding to one or more slices, the bitstream including a picture header including syntax elements used in decoding the one or more slices and a slice header including syntax elements used in decoding the slice, comprising: parsing, in the picture header, at least one syntax element indicating whether a decoding tool or parameter may be used in the slice, wherein, if a decoding tool or parameter is used in the picture, at least one APS ID-related syntax element is parsed for the decoding tool in the picture header, and not parsing, in the slice header, at least one syntax element indicating whether a decoding tool or parameter is used for the slice prior to syntax elements related to other decoding tools or parameters.

[0033] Compared to when flags or information are set at the slice level in the decoding tools or parameters (LMCS or scaling list), this method reduces complexity because the slice header does not need to be parsed for LMCS.

[0034] The decoding tool or parameter may be related to a luma mapping with chroma scaling (LMCS). Alternatively, or additionally, the decoding tool or parameter may be related to a scaling list.

[0035] In a seventh aspect according to the present invention there is provided a method of streaming image data comprising parsing a bitstream according to the sixth aspect.

[0036] In an eighth aspect, there is provided a device configured to perform a method according to the sixth aspect.

[0037] In a ninth aspect, a computer program is provided which, when executed, causes the method of the sixth aspect to be performed. The program may be provided by itself or may be carried on, by, or within a carrier medium. The carrier medium may be non-transitory, for example, a storage medium, particularly a computer-readable storage medium. The carrier medium may also be transitory, for example, a signal or other transmission medium. The signal may be transmitted over any suitable network, including the Internet. Further features of the present invention are characterized by the independent and dependent claims.

[0038] In a tenth aspect, a bitstream is provided, the bitstream including video data corresponding to one or more slices, wherein the bitstream includes a picture header including syntax elements used in decoding the one or more slices and a slice header including syntax elements used in decoding the slice, wherein the bitstream has at least one syntax element encoded in the picture header indicating whether an LMCS or scaling list decoding tool is used in the picture, and wherein if an LMCS or scaling list decoding tool is used in the picture, at least one APS ID-related syntax element is encoded for the LMCS or scaling list decoding tool in the picture header, and in the slice header, at least one syntax element indicating whether an LMCS or scaling list decoding tool is used for that slice is encoded before syntax elements related to other decoding tools, and wherein an ALF APS ID syntax element, if valid, is parsed before the at least one syntax element indicating whether an LMCS or scaling list decoding tool is used for that slice, and wherein the video data may be decoded from the bitstream using said syntax elements.

[0039] In an eleventh aspect, there is provided a method of decoding a bitstream according to the tenth aspect.

[0040] The bitstream of the tenth aspect may be embodied by a signal carrying the bitstream, which may be carried on a transitory medium (data on a wireless or wired data carrier, e.g., digitally downloaded or streamed data over the Internet) or a non-transitory medium (e.g., physical medium such as a (Blu-ray) disc, memory, etc.).

[0041] In another aspect, a method for encoding / decoding video data from a bitstream is provided, the method including: encoding / parsing, in a picture header, a syntax element indicating whether an LMCS or scaling list decoding tool may be used in a picture; and encoding / parsing, in a slice header, at least one syntax element indicating whether an LMCS or scaling list decoding tool is used for the slice prior to syntax elements related to other decoding tools. The other decoding tools may be low-level decoding tools and do not include ALF. An adaptive loop filtering APS ID syntax element may be encoded / parsed (e.g., when valid) before the at least one syntax element indicating whether an LMCS or scaling list decoding tool is used for the slice. Video data may be encoded / decoded to / from the bitstream according to the syntax elements. The method may further include encoding / decoding, to / from the picture header, at least one syntax element indicating whether an LMCS or scaling list decoding tool may be used in the picture, where if an LMCS or scaling list decoding tool is used in the picture, a device may be configured to perform the method. Computer programs may contain instructions that, when executed, cause a method to be performed (eg, by one or more processors).

[0042] Any feature of one aspect of the invention may be applied to other aspects of the invention in any appropriate combination, in particular method aspects may be applied to apparatus aspects and vice versa.

[0043] Furthermore, features implemented in hardware may be implemented in software and vice versa, and any references herein to software and hardware features should be construed accordingly.

[0044] Any apparatus features as described herein may be provided as method features, and vice versa. As used herein, means-plus-function features may alternatively be expressed in terms of their corresponding structure, such as a suitably programmed processor and associated memory.

[0045] It is also to be understood that specific combinations of the various features described and defined in any embodiment of the present invention can be implemented and / or provided and / or used independently. [Brief explanation of the drawings]

[0046] Reference will now be made, by way of example, to the accompanying drawings in which: [Figure 1] FIG. 1 is a diagram illustrating the coding structure used in HEVC and VVC. [Figure 2] FIG. 2 is a block diagram that schematically illustrates a data communications system in which one or more embodiments of the present invention may be implemented. [Figure 3] FIG. 3 is a block diagram illustrating components of a processing device capable of implementing one or more embodiments of the present invention. [Figure 4] FIG. 4 is a flow chart illustrating steps of an encoding method according to an embodiment of the invention. [Figure 5] FIG. 5 is a flow chart illustrating the steps of a decoding method according to an embodiment of the present invention. [Figure 6] FIG. 6 shows the structure of a bitstream in an exemplary coding system VVC. [Figure 7] Figure 7 shows LMCS (Luma Modeling Chroma Scaling). [Figure 8] Figure 8 shows the sub-tools of LMCS. [Figure 9] FIG. 9 shows a system comprising an encoder or decoder and a communication network according to an embodiment of the present invention. [Figure 10]FIG. 10 is a schematic block diagram of a computing device for implementing one or more embodiments of the present invention. [Figure 11] FIG. 11 is a diagram illustrating a network camera system. [Figure 12] FIG. 12 is a diagram illustrating a smartphone. DETAILED DESCRIPTION OF THE INVENTION

[0047] Figure 1 relates to the coding structure used in the High Efficiency Video Coding (HEVC) video standard. A video sequence 1 consists of a sequence of digital images i. Each such digital image is represented by one or more matrices. The matrix coefficients represent pixels.

[0048] An image 2 of a sequence can be divided into slices 3. Slices can sometimes constitute the entire image. These slices are divided into non-overlapping coding tree units (CTUs). A coding tree unit (CTU) is the basic processing unit of the High Efficiency Video Coding (HEVC) video standard and structurally corresponds conceptually to the macroblock unit used in some previous video standards. A CTU is sometimes also called a maximal coding unit (LCU). A CTU has luma and chroma component parts, each of which is called a coding tree block (CTB). These different color components are not shown in FIG. 1.

[0049] A CTU is typically 64 pixels by 64 pixels in size. Each CTU may be recursively divided into successively smaller variable-sized coding units (CUs) 5 using quadtree decomposition.

[0050] A coding unit is a basic coding element and consists of two types of subunits called PUs (Prediction Units) and TUs (Transform Units). The maximum size of a PU or TU is equal to the CU size. A prediction unit corresponds to a partition of a CU for prediction of pixel values. As shown by 606, various different partitions of a CU into PUs are possible, including a partition into four square PUs and two different partitions into two rectangular PUs. A transform unit is a basic unit that performs spatial transformation using DCT. A CU can be divided into TUs based on a quadtree representation 607.

[0051] Each slice is embedded in one network abstraction layer (NAL) unit. Furthermore, the coding parameters of a video sequence are stored in a dedicated NAL unit called a parameter set. HEVC and H.264 / AVC use two types of parameter set NAL units: the sequence parameter set (SPS) NAL unit, which collects all parameters that do not change during the entire video sequence. Typically, it handles coding profiles, video frame sizes, and other parameters. The picture parameter set (PPS) NAL unit contains parameters that can change from one picture (or frame) of a sequence to another. HEVC also includes the video parameter set (VPS) NAL unit, which contains parameters that describe the overall structure of the bitstream. The VPS is a new type of parameter set defined in HEVC that applies to all layers of the bitstream. A layer can contain multiple temporal sublayers; all Version 1 bitstreams are limited to one layer. HEVC has specific layer extensions for scalability and multiview, which allow multiple layers with a backward-compatible Version 1 base layer.

[0052] 2 illustrates a data communication system in which one or more embodiments of the present invention may be implemented. The data communication system includes a transmitting device, in this case a server 201, operable to transmit data packets of a data stream to a receiving device, in this case a client terminal 202, via a data communication network 200. The data communication network 200 may be a wide area network (WAN) or a local area network (LAN). Such a network may be, for example, a wireless network (Wifi / 802.11a or b or g), an Ethernet network, an Internet network, or a hybrid network made up of multiple different networks. In certain embodiments of the present invention, the data communication system may be a digital television broadcasting system in which a server 201 transmits the same data content to multiple clients.

[0053] The data stream 204 provided by the server 201 may consist of multimedia data representing video and audio data. The audio and video data streams may, in some embodiments of the present invention, be captured by the server 201 using a microphone and a camera, respectively. In some embodiments, the data streams may be stored on the server 201, or may be received by the server 201 from another data provider, or may be generated at the server 201. The server 201, in particular, comprises an encoder for encoding the video and audio streams to provide a compressed bitstream for transmission, which is a more compact representation of the data presented as input to the encoder.

[0054] In order to obtain a better ratio between the quality of the transmitted data and the amount of the transmitted data, the compression of the video data may for example be according to the HEVC format or the H.264 / AVC format.

[0055] Client 202 receives the transmitted bitstream, decodes the reconstructed bitstream, and plays the video images on a display device and the audio data through a loudspeaker.

[0056] In the example of Figure 2, a streaming scenario is considered, but it will be appreciated that in some embodiments of the present invention, data communication between the encoder and decoder may be performed using a media storage device, such as an optical disc, for example.

[0057] In one or more embodiments of the present invention, a video image is transmitted along with data representing a compensation offset to be applied to the reconstructed pixels of the image to provide filtered pixels in the final image.

[0058] 3 shows a schematic diagram of a processing device 300 configured to implement at least one embodiment of the present invention. The processing device 300 may be a device such as a microcomputer, a workstation, or a light portable device. The device 300 may include: a central processing unit, such as a microprocessor, denoted by CPU 311 a read-only memory 306, denoted ROM, for storing the computer program for implementing the invention; a random access memory 312, denoted RAM, storing the executable code of the methods of the embodiments of the invention, as well as registers adapted to record variables and parameters necessary for implementing the method for encoding a sequence of digital images and / or the method for decoding a bitstream according to an embodiment of the invention; a communications interface 302 connected to a communications network 303 over which the digital data to be processed is transmitted or received; and a communication bus 313 connected to the

[0059] Optionally, the device 300 may also include the following components: - data storage means 304, such as a hard disk, for storing computer programs for implementing the methods of one or more embodiments of the present invention and data used or generated during the implementation of one or more embodiments of the present invention; a disk drive 305 for a disk 306, the disk drive being adapted to read data from the disk 306 or to write data to said disk; A screen 309 that serves as a graphical interface with the user and / or displays data, by means of a keyboard 310 or any other pointing means.

[0060] The device 300 may be connected to various peripheral devices, such as a digital camera 320 or a microphone 308, each connected to an input / output card (not shown) to provide multimedia data to the device 300.

[0061] The communication bus provides communication and interoperability between the various elements included in or connected to the device 300. The representation of the bus is not limiting, and in particular the central processing unit is operable to communicate instructions to any element of the device 300, either directly or by another element of the device 300.

[0062] The disk 306 may be replaced by any information carrier, such as a compact disk (CD-ROM), a rewritable or non-rewritable ZIP disk or memory card, and generally speaking by any information storage means readable by a microcomputer or microprocessor, integrated or not integrated into the device, possibly removable, and adapted to store one or more programs whose execution makes it possible to carry out the method for encoding a sequence of digital images and / or the method for decoding a bitstream according to the invention.

[0063] The executable code may be stored either in the read-only memory 306, on the hard disk 304 or on a removable digital medium as previously described, such as for example the disk 306. According to a variant, the executable code of the program may be received via the interface 302 and by the communications network 303, to be stored in one of the storage means of the device 300 before being executed, such as the hard disk 304.

[0064] The central processing unit 311 is adapted to control and direct the execution of instructions or parts of the software code of the program or programs according to the invention by instructions stored in one of the aforementioned storage means. On power-up, the program or programs stored in a non-volatile memory, for example on the hard disk 304 or on the read-only memory 306, are transferred to the random access memory 312, which contains the executable code of the program or programs, as well as registers for storing variables and parameters necessary to implement the invention.

[0065] In this embodiment, the device is a programmable device that uses software to implement the invention, however, the invention may alternatively be implemented in hardware (e.g., in the form of an application specific integrated circuit or ASIC).

[0066] 4 shows a block diagram of an encoder according to at least one embodiment of the present invention, the encoder being represented by connected modules, each module adapted to perform, e.g., in the form of program instructions to be executed by CPU 311 of device 300, at least one corresponding step of a method for implementing at least one embodiment of encoding images of a sequence of images according to one or more embodiments of the present invention.

[0067] An original sequence of digital images i0 to in401 is received as input by encoder 400. Each digital image is represented by a set of samples known as pixels.

[0068] A bitstream 410 is output by the encoder 400 after the encoding process is performed. The bitstream 410 comprises a number of coding units or slices, each of which comprises a slice header for transmitting coded values ​​of coding parameters used to code the slice, and a slice body comprising coded video data.

[0069] The input digital image i0 to in401 is divided into blocks of pixels by module 402. The blocks correspond to image portions and may be of variable size (e.g., 4x4, 8x8, 16x16, 32x32, 64x64, 128x128 pixels, and several rectangular block sizes can also be considered). A coding mode is selected for each input block. Two families of coding modes are provided: coding modes based on spatial predictive coding (intra prediction) and coding modes based on temporal prediction (inter coding, merge, skip). Possible coding modes are tested.

[0070] The module 403 performs an intra prediction process in which a given block to be coded is predicted by a predictor calculated from pixels in the neighborhood of said block to be coded. An indication of the selected intra predictor and the difference between the given block and its predictor are coded to provide a residual when intra coding is selected.

[0071] Temporal prediction is performed by a motion estimation module 404 and a motion compensation module 405. First, a reference image is selected from a set of reference images 416, and a portion of the reference image, also called a reference area or image portion, that is the area closest to a given block to be coded, is selected by the motion estimation module 404. Then, the motion compensation module 405 uses the selected area to predict the block to be coded. The difference between the selected reference area and the given block, also called a residual block, is calculated by the motion compensation module 405. The selected reference area is indicated by a motion vector.

[0072] Therefore, in both cases (spatial and temporal prediction), the residual is calculated by subtracting the prediction from the original block.

[0073] In the intra prediction performed by module 403, the prediction direction is coded. In the temporal prediction, at least one motion vector is coded. In the inter prediction performed by modules 404, 405, 416, 418, 417, at least one motion vector or data for identifying such a motion vector is coded for the temporal prediction.

[0074] If inter-prediction is selected, the motion vector and information about the residual block are coded. To further reduce the bit rate, assuming uniform motion, the motion vector is coded by the difference to the motion vector predictor. The motion vector predictor of the set of motion information predictors is obtained from the motion vector field 418 by the motion vector prediction and coding module 417.

[0075] The encoder 400 further comprises a selection module 406 that selects a coding mode by applying a coding cost criterion, such as a rate-distortion criterion. To further reduce redundancy, a transform (such as a DCT) is applied to the residual block by a transform module 407, and the resulting transformed data is quantized by a quantization module 408 and entropy coded by an entropy coding module 409. Finally, the coded residual block of the current block being coded is inserted into a bitstream 410.

[0076] The encoder 400 also decodes the coded images to recover reference images for motion estimation of subsequent images. This allows the encoder and decoder receiving the bitstream to have the same reference frame. An inverse quantization module 411 performs inverse quantization of the quantized data, followed by inverse transformation by an inverse transform module 412. An inverse intra prediction module 413 uses the prediction information to decide which predictor to use for a given block, and an inverse motion compensation module 414 actually adds the residual obtained by module 412 to a reference region obtained from a set of reference images 416.

[0077] Post-filtering is then applied by module 415 to filter the frame of reconstructed pixels. In an embodiment of the invention, an SAO loop filter is used in which a compensation offset is added to the pixel values ​​of the reconstructed pixels of the reconstructed image.

[0078] 5 shows a block diagram of a decoder 60 that may be used to receive data from an encoder, according to one embodiment of the present invention. The decoder is represented by connected modules, each adapted to perform a corresponding step of a method realized by the decoder 60, for example in the form of program instructions executed by the CPU 311 of the device 300.

[0079] The decoder 60 receives a bitstream 61 containing coding units, each of which consists of a header containing information about coding parameters and a body containing the coded video data. The structure of a bitstream in VVC is explained in more detail below with reference to Figure 6. As explained with reference to Figure 4, the coded video data is entropy coded, and the index of the motion vector predictor is coded with a predetermined number of bits for a given block. The received coded video data is entropy decoded by module 62. The residual data is then inverse quantized by module 63, and then an inverse transform is applied by module 64 to obtain pixel values.

[0080] Mode data indicating the coding mode is also entropy decoded, and based on the mode, intra-type or inter-type decoding is performed on the coded block of image data.

[0081] For intra modes, the intra predictor is determined by the intra inverse prediction module 65 based on the intra prediction mode specified in the bitstream.

[0082] If the mode is inter, motion prediction information is extracted from the bitstream to find the reference region used by the encoder. The motion prediction information consists of a reference frame index and a motion vector residual. The motion vector predictor is added to the motion vector residual to obtain a motion vector by the motion vector decoding module 70.

[0083] A motion vector decoding module 70 applies motion vector decoding for each current block coded by motion prediction. Once the motion vector predictor index is obtained for the current block, the actual value of the motion vector associated with the current block may be decoded and used to apply inverse motion compensation by module 66. The reference image portion indicated by the decoded motion vector is extracted from reference image 68 and inverse motion compensation 66 is applied. Motion vector field data 71 is updated with the decoded motion vector for use in inverse prediction of subsequent decoded motion vectors.

[0084] Finally, the decoded blocks are obtained. Post-filtering is applied by a post-filtering module 67. A decoded video signal 69 is finally provided by the decoder 60.

[0085] FIG. 6 shows the structure of a bitstream in an exemplary coding system VVC, as described in JVET_P2001-VE.

[0086] A bitstream 61 from a VVC coding system consists of an ordered sequence of syntax elements and coded data. The syntax elements and coded data are arranged in Network Abstraction Layer (NAL) units 601-608. There are different NAL unit types. The Network Abstraction Layer provides the ability to encapsulate the bitstream in different protocols such as RTP / IP, Real Time Protocol / Internet Protocol, ISO Base Media File Format, etc. The Network Abstraction Layer also provides a framework for packet loss resilience.

[0087] NAL units are divided into Video Coding Layer (VCL) NAL units and non-VCL NAL units. VCL NAL units contain the actual coded video data. Non-VCL NAL units contain additional information, which may be parameters required for decoding the coded video data or supplementary data that may improve the usability of the decoded video data. NAL units 606 correspond to slices and constitute the VCL NAL units of the bitstream.

[0088] Different NAL units 601-605 correspond to different parameter sets, and these NAL units are non-VCL NAL units. The decoder parameter set (DPS) NAL unit 301 contains parameters that are constant for a given decoding process. The video parameter set (VPS) NAL unit 602 contains parameters defined for the entire video, and therefore the entire bitstream. The DPS NAL unit can define parameters that are more static than those in the VPS. In other words, the parameters in the DPS change less frequently than the parameters in the VPS.

[0089] The sequence parameter set (SPS) NAL unit 603 contains parameters defined for a video sequence. In particular, the SPS NAL unit can define the subpicture layout and associated parameters of a video sequence. The parameters associated with each subpicture specify the coding constraints that apply to the subpicture. In particular, it includes a flag that indicates that temporal prediction between subpictures is limited to data coming from the same subpicture. Another flag can enable or disable loop filtering across subpicture boundaries.

[0090] Picture Parameter Set (PPS) NAL unit 604, where PPS contains parameters defined for a picture or group of pictures. Adaptation Parameter Set (APS) NAL unit 605 contains parameters for loop filters, typically adaptive loop filtering (ALF) or reshaper models (or luma mapping models with chroma scaling (LMCS)) or scaling matrices used at the slice level.

[0091] The syntax of the PPS as proposed in the current version of VVC includes syntax elements that specify the size of the picture in luma samples and the division of each picture into tiles and slices.

[0092] The PPS contains syntax elements that allow determining the location of slices within a frame. Since subpictures form rectangular regions within a frame, it is possible to determine the set of slices, portions of tiles, or tiles that belong to a subpicture from the parameter set NAL unit. The PPS, as an APS, has an ID mechanism to limit the amount of identical PPSs transmitted.

[0093] The main difference between the PPS and the picture header is that the PPS is transmitted for a group of pictures, as opposed to the PH, which is transmitted systematically for each picture. Therefore, the PPS, as compared to the PH, contains parameters that may be constant for several pictures.

[0094] The bitstream may also contain Supplemental Enhancement Information (SEI) NAL units (not shown in FIG. 6). The periodicity with which these parameter sets occur within the bitstream is variable. A VPS defined for the entire bitstream may occur only once within the bitstream. Conversely, an APS defined for a slice may occur once for each slice within each picture. In practice, different slices may rely on the same APS, and therefore there are generally fewer APSs than slices within each picture. In particular, APSs are defined in the picture header. However, ALF APSs can be refined in the slice header.

[0095] An access unit delimiter (AUD) NAL unit 607 separates two access units. An access unit is a set of NAL units that can comprise one or more coded pictures with the same decoding timestamp. This optional NAL unit contains only one syntax element, pic_type, in the current VVC specification. This syntax element indicates the slice_type values ​​of all slices of coded pictures within the AU. If pic_type is set equal to 0, the AU contains only intra slices. If it is equal to 1, it contains P and I slices. If it is equal to 2, it contains B, P, or intra slices.

[0096] This NAL unit contains only one syntax element, pic-type. Table 1 Syntax AUD

[0097] [Table 1]

[0098] In JVET-P2001-vE, pic_type is defined as follows:

[0099] "pic_type indicates that the slice_type values ​​for all slices of the coded picture within the AU containing the AU delimiter NAL unit are members of the set listed in Table 2 for a given value of pic_type. Values ​​of pic_type shall be equal to 0, 1, or 2 in bitstreams conforming to this version of this specification. Other values ​​of pic_type are reserved for future use by ITU-T|ISO / IEC. Decoders conforming to this version of this specification shall ignore reserved values ​​of pic_type." Table 2 Interpretation of pic_type

[0100] [Table 2]

[0101] The PH NAL unit 608 is a picture header NAL unit that groups parameters common to a set of slices of one coded picture. A picture may reference one or more APSs to indicate the AFL parameters, reshaper models, and scaling matrices used by the slices of the picture.

[0102] Each VCL NAL unit 606 contains a slice. A slice can correspond to an entire picture or subpicture, a single tile, multiple tiles, or a portion of a tile. For example, the slice in Figure 3 contains several tiles 620. A slice consists of a slice header 610 and a raw byte sequence payload RBSP 611 that contains coded pixel data encoded as coding blocks 640.

[0103] The syntax of the PPS as proposed in the current version of VVC includes syntax elements that specify the size of the picture in luma samples and the division of each picture into tiles and slices.

[0104] The PPS contains syntax elements that allow determining the location of slices within a frame. Since a subpicture forms a rectangular region within a frame, it is possible to determine from the parameter set NAL unit the set of slices, portions of tiles, or tiles that belong to a subpicture.

[0105] NAL unit slice The NAL unit slice layer includes a slice header and slice data as shown in Table 3.

[0106] Table 3 Slice layer syntax

[0107] [Table 3]

[0108] APS The adaptation parameter set (APS) NAL unit 605 is defined in Table 4, which shows the syntax elements.

[0109] There are three possible types of APS given by the aps_params_type syntax element, as shown in Table 4. ALF_AP: For ALF parameters LMCS parameter LMCS_APS SCALING_APS for scaling list relative parameters Table 4. Adaptation parameter set syntax

[0110] [Table 4]

[0111] These three types of APS parameters are described in turn below.

[0112] ALF APS The ALF parameters are described in the Adaptive Loop Filter Data syntax element (Table 5). First, two flags are used to specify whether ALF filters are sent for luma and / or chroma. If the luma filter flag is enabled, another flag is decoded to know whether the clip value is signaled (alf_luma_clip_flag). Next, the number of filters signaled is decoded using the alf_luma_num_filters_signalled_minus1 syntax element. Optionally, a syntax element representing the ALF coefficient delta "alf_luma_coeff_delta_idx" is decoded for each enabled filter. Then, the magnitude and sign of each coefficient of each filter are decoded.

[0113] If alf_luma_clip_flag is enabled, the clip index of each coefficient of each enabled filter is decoded.

[0114] Similarly, the ALF chroma coefficients are decoded as needed.

[0115] Table 5. Adaptive Loop Filter Data Syntax

[0116] [Table 5]

[0117] [Table 6]

[0118] LMCS syntax elements for both luma mapping and chroma scaling Table 6 below lists all LMCS syntax elements coded in the adaptation parameter set (APS) syntax structure when the aps_params_type parameter is set to 1 (LMCS_APS). Up to four LMCS APSs can be used in a coded video sequence, but only a single LMCS APS can be used for a given picture.

[0119] These parameters are used to construct the forward and backward mapping functions for luma and the scaling function for chroma.

[0120] Table 6. Luma mapping using chroma scaling data syntax

[0121] [Table 7]

[0122] Scaling List APS The scaling list provides the possibility to update the quantization matrix used for quantization. In VVC, this scaling matrix is ​​s in the APS as described in the scaling list data syntax element (Table 7). This syntax specifies whether to use the scaling matrix for the LFNST (Low Frequency Non-Separable Transform) tool based on the flag scaling_matrix_for_lfnst_disabled_flag. Then, the syntax elements required to construct the scaling matrix are decoded (scaling_list_copy_mode_flag, scaling_list_pred_mode_flag, scaling_list_pred_id_delta, scaling_list_dc_coef, scaling_list_delta_coef).

[0123] Table 7. Scaling List Data Syntax

[0124] [Table 8]

[0125] Picture Header The picture header is transmitted at the beginning of each picture. The picture header table syntax currently contains 82 syntax elements and approximately 60 test conditions or loops. This is significantly larger than the previous header in previous drafts of the standard. A complete description of all these parameters can be found in JVET_P2001-VE. Table 8 shows these parameters in the current picture header decoding syntax. In this simplified table version, some syntax elements have been grouped together for readability.

[0126] The associated syntax elements that can be decoded are as follows: Use of this picture, reference frame, or otherwise Output Frame Use subpictures where appropriate Reference picture list if needed Color planes as needed Split update when override flag is enabled Delta QP parameters if necessary Movement information parameters as needed ALF parameters as needed SAO parameters as needed Quantization parameters if necessary LMCS parameters as needed Scaling list parameters as needed Picture header extension if needed The first three flags of the fixed length are non_reference_picture_flag, gdr_pic_flag, and no_output_of_prior_pics_flag, which provide information related to picture characteristics in the bitstream.

[0127] Next, if gdr_pic_flag is valid, recovery_poc_cnt is decoded.

[0128] The PPS parameters "PS_parameters()" sets the PPS ID and some other information as needed. It contains three syntax elements: ph_pic_parameter_set_id ph_poc_msb_present_flag poc_msb_val The subpic_parameter() subpic_parameter is valid if it is enabled in the SPS and if the subpicture id notification is disabled. It also contains some information about the virtual bounds. Eight syntax elements are defined for the subpicture parameter: · ph_subpic_id_signalling_present_flag ph_subpic_id_len_minus1 ph_subpic_id · ph_loop_filter_across_virtual_boundaries_disabled_present_flag · ph_num_ver_virtual_boundaries · ph_virtual_boundaries_pos_x · ph_num_hor_virtual_boundaries · ph_virtual_boundaries_pos_y Next, if the sequence contains separate color planes, the color plane id "color_plane_id" is decoded, followed by the pic_output_flag, if present.

[0129] Next, the parameters of the reference picture list are decoded, and "reference_picture_list_parameters()" contains the following syntax elements: pic_rpl_present_flag pic_rpl_sps_flag pic_rpl_idx pic_poc_lsb_lt · pic_delta_poc_msb_present_flag pic_delta_poc_msb_cycle_lt If necessary, another group of syntax elements related to the reference picture list structure "ref_pic_list_struct", which contains eight other syntax elements, can also be decoded.

[0130] The set of partitioning parameters "partitioning_parameters()" is decoded as needed and includes the following 13 syntax elements: · partition_constraints_override_flag · pic_log2_diff_min_qt_min_cb_intra_slice_luma · pic_log2_diff_min_qt_min_cb_inter_slice · pic_max_mtt_hierarchy_depth_inter_slice · pic_max_mtt_hierarchy_depth_intra_slice_luma · pic_log2_diff_max_bt_min_qt_intra_slice_luma · pic_log2_diff_max_tt_min_qt_intra_slice_luma · pic_log2_diff_max_bt_min_qt_inter_slice · pic_log2_diff_max_tt_min_qt_inter_slice · pic_log2_diff_min_qt_min_cb_intra_slice_chroma · pic_max_mtt_hierarchy_depth_intra_slice_chroma · pic_log2_diff_max_bt_min_qt_intra_slice_chroma · pic_log2_diff_max_tt_min_qt_intra_slice_chroma After these split parameters, the four delta QP syntax elements "Delta_QP_Parameters()" may be decoded as needed. · pic_cu_qp_delta_subdiv_intra_slice · pic_cu_qp_delta_subdiv_inter_slice · pic_cu_chroma_qp_offset_subdiv_intra_slice · pic_cu_chroma_qp_offset_subdiv_inter_slice The pic_joint_cbcr_sign_flag is decoded if necessary, followed by a set of three SAO syntax elements "SAO_parameters()". · pic_sao_enabled_present_flag pic_sao_luma_enabled_flag · pic_sao_chroma_enabled_flag Next, if ALF is enabled at the SPS level, a set of ALF APS id syntax elements is decoded.

[0131] First, decode pic_alf_enabled_present_flag to determine whether pic_alf_enabled_flag should be decoded. If pic_alf_enabled_flag is enabled, ALF is enabled for all slices of the current picture.

[0132] If ALF is enabled, the amount of ALF APS ids for luma is decoded using the pic_num_alf_aps_ids_luma syntax element. For each APS id, the luma APS id value is decoded to "pic_alf_aps_id_luma".

[0133] For chroma, the syntax element pic_alf_chroma_idc is decoded to determine if ALF is enabled for chroma, Cr only, or Cb only. If enabled, the value of the APS Id for chroma is decoded using the pic_alf_aps_id_chroma syntax element.

[0134] After the ALF APS id parameter is set, the quantization parameters in the picture header are decoded if necessary. pic_dep_quant_enabled_flag · sign_data_hiding_enabled_flag The set of three deblocking filter syntax elements "deblocking_filter_parameters()" is decoded as needed. · pic_deblocking_filter_override_present_flag · pic_deblocking_filter_override_flag · pic_deblocking_filter_disabled_flag pic_beta_offset_div2 pic_tc_offset_div2 The set of LMCS APS ID syntax elements is then decoded if LMCS is enabled in the SPS. First, pic_lmcs_enabled_flag is decoded to determine if LMCS is enabled for the current picture. If LMCS is enabled, the Id value is the decoded pic_lmcs_aps_id. For chroma, only pic_chroma_residual_scale_flag is decoded to enable or disable the method for chroma.

[0135] A set of scaling list APS IDs is decoded if the scaling list is enabled at the SPS level. pic_scaling_list_present_flag is decoded to determine whether the scaling matrix is ​​enabled for the current picture. Then, the APS ID value pic_scaling_list_aps_id is decoded. If the scaling list is enabled at the sequence level, i.e., SPS level (sps_scaling_list_enabled_flag is equal to 1), and also enabled at the picture header level (pic_scaling_list_present_flag is equal to 1), a flag slice_scaling_list_present_flag is extracted from the slice header bitstream, which indicates whether the scaling list is enabled for the current slice.

[0136] Finally, the picture header extension syntax elements are decoded as needed.

[0137] Table 8 Partial Picture Header

[0138] [Table 9]

[0139] [Table 10]

[0140] Slice Header A slice header is transmitted at the beginning of each slice. The slice header table syntax currently contains 57 syntax elements, which is significantly larger than the previous slice header in previous versions of the standard. A complete description of all slice header parameters can be found in JVET_P2001-VE. Table 9 shows these parameters in the current picture header decoding syntax. In this simplified table version, some syntax elements have been grouped together to make the table easier to read.

[0141] Table 9 Partial slice header

[0142] [Table 11]

[0143] [Table 12]

[0144] First, slice_pic_order_cnt_lsb is decoded to determine the POC of the current slice.

[0145] Next, slice_subpic_id is decoded if necessary to determine the subpicture id of the current slice. Next, slice_address is decoded to determine the address of the current slice. Next, num_tiles_in_slice_minus1 is decoded if the number of tiles in the current picture is greater than 1.

[0146] Then the slice_type is decoded.

[0147] A set of reference picture list parameters is decoded, which are similar to the parameters in the picture header.

[0148] If the slice type is not intra, and if necessary, cabac_init_flag and / or collocated_from_l0_flag and collocated_ref_idx are decoded. These data relate to CABAC coding and collocated motion vectors.

[0149] Similarly, if the slice type is not intra, the parameters of the weighted prediction pred_weight_table() are decoded.

[0150] In slice_quantization_parameters(), slice_qp_delta is systematically decoded before other parameters such as QP offset, if necessary. slice_cb_qp_offset, slice_cr_qp_offset, slice_joint_cbcr_qp_offset, cu_chroma_qp_offset_enabled_flag

[0151] Enabled flags for SAO are decoded for both luma and chroma: slice_sao_luma_flag, slice_sao_chroma_flag, if signaled in the picture header.

[0152] The APS ALF ID is then decoded if necessary, and the same data restrictions as for the picture header are applied.

[0153] The deblocking filter parameters are then decoded before any other data (slice_deblocking_filter_parameters()).

[0154] Similar to the picture header, the ALF APS ID is set at the end of the slice header.

[0155] APS in picture header As shown in Table 8, the APS ID information for the three tools ALF, LMCS and scaling list is at the end of the picture header syntax element.

[0156] Streaming Applications Some streaming applications extract only specific portions of a bitstream. These extractions can be spatial (as subpictures) or temporal (subparts of a video sequence). These extracted portions can then be merged with other bitstreams. Some others reduce the frame rate by extracting only a few frames. In general, the main goal of these streaming applications is to provide the maximum quality to the end user using the maximum amount of allowed bandwidth.

[0157] In VVC, APS ID numbering is limited for frame rate reduction so that new APS id numbers for a frame cannot be used for frames at higher levels in the temporal hierarchy. However, streaming applications that extract portions of the bitstream need to keep track of APS IDs to determine which APSs should be retained for a sub-portion of the bitstream, since frames (as IRAPs) do not reset the APS ID numbering.

[0158] LMCS (Luma Mapping with Chroma Scaling) The luma mapping with chroma scaling (LMCS) technique is a sample value transformation method that is applied to blocks before applying the loop filter in video decoders such as VVC.

[0159] LMCS can be split into two subtools: the first subtool is applied to the luma block, and the second subtool is applied to the chroma block, as explained below.

[0160] 1) The first sub-tool is in-loop mapping of the luma component based on an adaptive piecewise linear model. In-loop mapping of the luma component adjusts the dynamic range of the input signal by redistributing codewords across the dynamic range to improve compression efficiency. Luma mapping utilizes a forward mapping function to the "mapped domain" and a corresponding inverse mapping function back to the "input domain."

[0161] 2) The second sub-tool is related to the chroma component where luma-dependent chroma residual scaling is applied. The chroma residual scaling is designed to compensate for the interaction between the luma signal and its corresponding chroma signal. The chroma residual scaling depends on the average value of the top and / or left reconstructed neighboring luma samples of the current block.

[0162] Like most other tools in video coders such as VVC, LMCS can be enabled / disabled at the sequence level using the SPS flag. Whether chroma residual scaling is enabled is also signaled at the picture level. If luma mapping is enabled at the picture level, an additional flag is signaled to indicate whether luma-dependent chroma residual scaling is enabled. When luma mapping is not used at the SPS level, luma-dependent chroma residual scaling is completely disabled for all pictures that reference the SPS. In addition, luma-dependent chroma residual scaling is always disabled for chroma blocks whose size is 4 or less. When LMCS is enabled at the SPS level, a flag, pic_lmcs_enabled_flag, is decoded in the picture header to know whether LMCS is enabled for the current picture. When LMCS is enabled at the picture level (pic_lmcs_enabled_flag is equal to 1), another flag, slice_lmcs_enabled_flag, is decoded for each slice. This flag indicates whether LMCS is enabled for the current slice with the parameters decoded in the picture header. There is no APS ID information for the LMCS in the slice header, so there is only information about whether the LMCS is enabled or disabled.

[0163] Figure 7 illustrates the principles of LMCS, as described above for the luma mapping subtool. The hatched blocks in Figure 7 are new LMCS functional blocks that include forward and backward mapping of the luma signal. It is important to note that when using LMCS, several decoding operations are applied in the "mapped domain." These operations are represented by the dashed blocks in Figure 7. Typically, these correspond to inverse quantization, inverse transform, luma intra-prediction, and reconstruction steps, which consist of adding luma prediction with the luma residual. Conversely, the solid blocks in Figure 7 indicate where decoding processes are applied in the original (i.e., unmapped) domain, including deblocking, loop filtering such as ALF and SAO, motion-compensated prediction, and storing the decoded picture as a reference picture (DPB).

[0164] Figure 8 shows a diagram similar to Figure 7, but this time for the chroma scaling subtool of the LMCS tool. The hatched blocks in Figure 8 are new LMCS functional blocks that contain the luma-dependent chroma scaling process. However, there are some important differences for chroma compared to the luma case. Here, only the inverse quantization and inverse transform, represented by the dashed blocks, are performed in the "mapped domain" for chroma samples. All other steps, such as intra-chroma prediction, motion compensation, and loop filtering, are performed in the original domain. As shown in Figure 8, there is only the scaling process; there is no forward or reverse processing for luma mapping.

[0165] Luma mapping using piecewise linear models

[0166] The luma mapping sub-tool uses a piecewise linear model, which means that it separates the input signal dynamic range into 16 equal sub-ranges, and for each sub-range, its linear mapping parameters are expressed in terms of the number of codewords assigned to that range.

[0167] Luma mapping semantics The syntax element lmcs_min_bin_idx specifies the minimum bin index used in the luma mapping with chroma scaling (LMCS) construction process. The value of lmcs_min_bin_idx must be in the range of 0 to 15.

[0168] The syntax element lmcs_delta_max_bin_idx specifies the delta value between 15 and the maximum bin index LmcsMaxBinIdx used in luma mapping with the chroma scaling construction process. The value of lmcs_delta_max_bin_idx must be in the range of 0 to 15. The value of LmcsMaxBinIdx is set equal to 15 - lmcs_delta_max_bin_idx. The value of LmcsMaxBinIdx must be greater than or equal to lmcs_min_bin_idx.

[0169] The syntax element lmcs_delta_cw_prec_minus1+1 specifies the number of bits used to represent the syntax element lmcs_delta_abs_cw[i].

[0170] The syntax element lmcs_delta_abs_cw[i] specifies the absolute delta codeword value for the ith bin.

[0171] The syntax element lmcs_delta_sign_cw_flag[i] specifies the sign of the variable lmcsDeltaCW[i]. If lmcs_delta_sign_cw_flag[i] is not present, it is inferred to be equal to 0.

[0172] LMCS intermediate variable operations for luma mapping To apply the forward and backward luma mapping process, several intermediate variables and data arrays are required.

[0173] First, the variable OrgCW is derived as follows:

[0174] OrgCW=(1< <BitDepth) / 16 Next, the variable lmcsDeltaCW[i], where i=lmcs_min_bin_idx...LmcsMaxBinIdx, is calculated as follows:

[0175] lmcsDeltaCW[i]=(1-2*lmcs_delta_sign_cw_flag[i])*lmcs_delta_abs_cw[i] The new variable lmcsCW[i] is derived as follows: - For i=0…lmcs_min_bin_idx-1, lmcsCW[i] is set equal to 0. - For i=lmcs_min_bin_idx…LmcsMaxBinIdx, the following applies:

[0176] lmcsCW[i]=OrgCW+lmcsDeltaCW[i] The value of lmcsCW[i] is in the range of (OrgCW>>3) to (OrgCW<<<3-1). - lmcsCW[i] is set equal to 0, for i=LmcsMaxBinIdx+1…15.

[0177] The variable InputPivot[i], for i=0...16, is derived as follows:

[0178] InputPivot[i]=i*OrgCW The variables LmcsPivot[i], where i=0...16, and the variables ScaleCoeff[i] and InvScaleCoeff[i], where i=0...15, are calculated as follows:

[0179] LmcsPivot[0]=0; for(i=0;i<=15;i++){ LmcsPivot[i+1]=LmcsPivot[i]+lmcsCW[i] ScaleCoeff[i]=(lmcsCW[i]*(1<<11)+(1<<(Log2(OrgCW)-1)))>>(Log2(OrgCW)) if(lmcsCW[i]==0) InvScaleCoeff[i]=0 else InvScaleCoeff[i]=OrgCW*(1<<11) / lmcsCW[i] Forward Luma Mapping As shown in FIG. 7, when LMCS is applied to luma, the luma map samples, called predMapSamples[i][j], are obtained from the prediction samples predSamples[i][j].

[0180] predMapSamples[i][j] is calculated as follows:

[0181] First, at position (i, j), calculate the index idxY from the predicted samples predSamples[i][j]. idxY=predSamples[i][j]>>Log2(OrgCW) Next, using the intermediate variables idxY, LmcsPivot[idxY] and InputPivot[idxY] from section 0, derive predMapSamples[i][j] as follows:

[0182] predMapSamples[i][j]=LmcsPivot[idxY] +(ScaleCoeff[idxY]*(predSamples[i][j]-InputPivot[idxY])+(1<<10))>>11 Luma Reconstruction Sample The reconstruction process is obtained from the predicted luma samples predMapSample[i][j] and the residual luma samples resiSamples[i][j].

[0183] The reconstructed luma picture sample recSamples[i][j] is simply obtained by adding predMapSample[i][j] to resiSamples[i][j] as follows.

[0184] recSamples[i][j]=Clip1(predMapSamples[i][j]+resiSamples[i][j]]) In the above relationship, the Clip1 function is a clipping function to ensure that the reconstructed sample is between 0 and 1<<BitDepth-1.

[0185] Inverse luma mapping When applying the inverse luma mapping according to FIG. 7, the following operations are applied to each sample recSample[i][j] of the current block being processed.

[0186] First, at position (i, j), the index idxY is calculated from the reconstructed sample recSamples[i][j]. idxY=recSamples[i][j]>>Log2(OrgCW) The inverse mapped luma sample invLumaSample[i][j] is derived as follows based on the following.

[0187] invLumaSample[i][j]=InputPivot[idxYInv]+(InvScaleCoeff[idxYInv]* (recSample[i][j]-LmcsPivot[idxYInv])+(1<<10))>>11 Next, a clipping operation is performed to obtain the final sample.

[0188] finalSample[i][j]=Clip1(invLumaSample[i][j]) Chroma scaling LMCS semantics for chroma scaling The syntax element lmcs_delta_abs_crs in Table 6 specifies the absolute codeword value of the variable lmcsDeltaCrs. The value of lmcs_delta_abs_crs is in the range of 0 and 7. If not present, lmcs_delta_abs_crs is inferred to be equal to 0.

[0189] The syntax element lmcs_delta_sign_crs_flag specifies the sign of the variable lmcsDeltaCrs. If not present, lmcs_delta_sign_crs_flag is inferred to be equal to 0.

[0190] LMCS intermediate variable calculation for chroma scaling To apply the chroma scaling process, several intermediate variables are needed.

[0191] The variable lmcsDeltaCrs is derived as follows:

[0192] lmcsDeltaCrs=(1-2*lmcs_delta_sign_crs_flag)*lmcs_delta_abs_crs The variable ChromaScaleCoeff[i], where i=0...15, is derived as follows:

[0193] if(lmcsCW[i]==0) ChromaScaleCoeff[i]=(1<<11) else ChromaScaleCoeff[i]=OrgCW*(1<<11) / (lmcsCW[i]+lmcsDeltaCrs) Chroma Scaling Process In the first step, the variable invAvgLuma is derived to calculate the average luma value of the reconstructed luma samples around the current corresponding chroma block. The average luma is calculated from the left and top luma blocks surrounding the corresponding chroma block. If no samples are available, the variable invAvgLuma is set as follows:

[0194] invAvgLuma=1<<(BitDepth-1) Based on the intermediate array LmcsPivot[] in section 0, the variable idxYInv is derived as follows:

[0195] For (idxYInv=lmcs_min_bin_idx;idxYInv<=LmcsMaxBinIdx;idxYInv++){ if(invAvgLuma <LmcsPivot[idxYInv+1]) break } IdxYInv=Min(idxYInv,15) The variable varScale is derived as follows:

[0196] varScale=ChromaScaleCoeff[idxYInv] When the transform is applied to the current chroma block, the reconstructed chroma picture sample array recSamples is derived as follows:

[0197] recSamples[i][j]=Clip1(predSamples[i][j]+ Sign(resiSamples[i][j])*((Abs(resiSamples[i][j])*varScale+(1<<10))>>11)) If no transformations have been applied to the current block, the following applies:

[0198] recSamples[i][j]=Clip1(predSamples[i][j]) Encoder Considerations The basic principle of an LMCS encoder is to assign more codewords to those dynamic range segments whose codewords are lower than the average variance. In this alternative formulation, the main goal of LMCS is to assign fewer codewords to those dynamic range segments whose codewords are higher than the average variance. In this way, smooth regions of a picture are coded with more codewords than average, and vice versa.

[0199] All parameters of the LMCS tool stored in the APS (see Table 6) are determined on the encoder side. The LMCS encoder algorithm is based on the evaluation of the local luma variance and optimizes the decision of the LMCS parameters according to the basic principles mentioned above. Then, optimization is performed to obtain the best PSNR metric for the final reconstructed samples of a given block.

[0200] As will be discussed later, parsing complexity can be reduced by placing the APS ID information at the beginning of the slice / picture header, allowing APS ID-related syntax elements to be parsed before syntax elements related to decoding tools.

[0201] Picture Header The following discussion provides details or alternatives to the following table of syntax elements for the picture header. Table 10 shows an example of a modified picture header where the APS ID information for LMCS, ALF, and scaling list is set closer to the beginning of the picture header to solve the parsing problems of the prior art (see Table 8 above). This change is indicated by strikethrough and underlined text. Using this table of syntax elements, tracking of APS IDs has lower complexity.

[0202] Table 10 Partial Picture Header Indicating Modification of APS ID Information

[0203] [Table 13]

[0204] [Table 14]

[0205] [Table 15]

[0206] APS ID-related syntax elements may include one or more of the following: APS ID LMCS APS ID scaling list APS scaling list containing information to validate the scaling matrix for the LNST method APS ID ALF List APS ALF list containing information about clipping value notifications In one example, the APS ID related syntax elements are set at or near the beginning of the picture header.

[0207] The advantage of this feature is that it reduces the complexity of streaming applications that need to track APS ID usage to remove non-useful APS NAL units.

[0208] As mentioned earlier, the term "beginning" does not necessarily mean "first", as some syntax elements come before APS ID-related syntax elements. These are explained in order below.

[0209] The set of APS ID-related syntax elements is set after one or more of the following: Syntax elements useful for streaming applications that need to parse a bitstream to cut, split, or extract parts of a video sequence without the parser's parameters A syntax element (e.g., non_reference_picture_flag) that indicates that the current picture is never used as a reference picture, which, when equal to 1, indicates that the picture is never used as a reference picture. This information is useful for many streaming applications, so it is recommended to set this flag before any set of APS ID LMCS syntax elements. A syntax element (e.g., gdr_pic_flag syntax) that indicates that the current picture is a gradual decoding refresh picture, which, when equal to 1, indicates that the current picture is a GDR picture. This type of picture means that the bitstream is independent of the previous picture. This is important information for many streaming applications. For the same reason, the APS ID LMCS syntax element set must follow the recovery_poc_cnt syntax element, which is decoded when gdr_pic_flag is enabled. Syntax elements (e.g., no_output_of_prior_pics_flag) that indicate changes to previously decoded pictures in the decoded picture buffer, which affect the Decoded Picture Buffer (DBP). This is important information for many applications. ph_pic_parameter_set_id and / or other syntax elements related to PPS information. In fact, the PPS id is required for many applications. · Syntax elements related to subpicture information. In fact, these information are important for bitstream extraction for some streaming applications. · Picture type information transmitted in the picture header. In fact, the picture type is important information for many applications.

[0210] In a particularly advantageous example, a set of APS ID-related syntax elements is placed after the syntax elements at the beginning of the picture header, which have fixed-length codewords without any conditions for their decoding. The fixed-length codewords correspond to syntax elements with descriptor u(N) in the table of syntax elements, where N is an integer value.

[0211] Compared to the current VVC specification, this corresponds to the non_reference_picture_flag, gdr_pic_flag, and no_output_of_prior_pics_flag flags.

[0212] The advantage of this is for streaming applications that can easily bypass these first codewords, since the number of bits is always the same at the beginning of the picture header and goes directly to the useful information for the corresponding application. Therefore, the decoder can parse the APS ID related syntax elements directly from the header, since they are always in the same bit position in the header.

[0213] In a variant that reduces parsing complexity, the set of APS ID-related syntax elements is set after syntax elements at the beginning of the picture header that do not require one or more values ​​from another header. Parsing such syntax elements does not require other variables for their parsing, reducing parsing complexity.

[0214] In one variation, the APS ID scaling list syntax element set is set at the beginning of the picture header.

[0215] The advantage of this variant is that it reduces the complexity of streaming applications that need to track APS ID usage to remove non-useful APS NAL units.

[0216] It should be understood that the above types of APS ID related syntax elements can be treated individually or in combination. A non-exhaustive list of particularly advantageous combinations is set out below.

[0217] The APS ID LMCS syntax element set and the APS ID scaling list syntax element set are placed at or near the beginning of the picture header, optionally following any information useful to streaming applications.

[0218] The APS ID LMCS syntax element set and the APS ID ALF syntax element set occur at the beginning of the picture header, optionally following information useful to streaming applications.

[0219] The APS ID LMCS syntax element set, the APS ID scaling list syntax element set, and the APS ID ALF syntax element set are placed at or near the beginning of the picture header, optionally after information useful to streaming applications.

[0220] In one embodiment, APS ID related syntax elements (APS LMCS, APS scaling list, and / or APS ALF) are set before low level tool parameters.

[0221] This results in reduced complexity for some streaming applications that need to keep track of a different APS ID for each picture. Indeed, the information related to the low-level tools is necessary for parsing and decoding slice data, but is not necessary for such applications that only extract the bitstream without decoding. Examples of low-level tools are provided in BROW. A set of deblocking filter parameters; these parameters are for the deblocking filter that is only needed for slice data decoding. A set of quantization parameters; these parameters are needed for parsing and decoding the slice data. A set of SAO parameters; these parameters are required for parsing and decoding the slice data. · pic_joint_cbcr_sign_flag flags; these parameters are required for parsing and decoding slice data. A set of motion parameters; these parameters are required for parsing and decoding the slice data. A set of QP offset parameters; these parameters are required for parsing and decoding the slice data. A set of segmentation parameters; these parameters are required for parsing and decoding the slice data. A set of reference picture list parameters; these parameters are required for parsing and decoding the slice data. · pic_output_fl flags; these parameters are required for decoding slice data. · colour_plane_id flags; these parameters are required for parsing and decoding slice data.

[0222] It should be understood that the above types of APS ID related syntax elements can be treated individually or in combination. A non-exhaustive list of particularly advantageous combinations is set out below.

[0223] The APS ID LMCS syntax element set and the APS ID scaling list syntax element set are set before the low-level tool syntax elements.

[0224] The APS ID LMCS syntax element set and the APS ID ALF syntax element set are set before the low-level tool syntax elements.

[0225] The APS ID LMCS syntax element set, the APS ID scaling list syntax element set, and the APS ID ALF syntax element set are set before the low-level tool syntax elements.

[0226] Resync Picture The bitstream has some resynchronization frames or slices. These frames allow the bitstream to be read without considering previous decoding information. For example, a clean random access picture (CRA picture) does not reference any pictures other than itself for inter prediction in its decoding process. This means that the slices of this picture are intra or IBC. In VVC, a CRA picture is an IRAP (Intra Random Access Point) picture, where each VCL NAL unit has nal unit_type equal to CRA_NUT.

[0227] In VVC, these resynchronization frames can be IRAP or GDR pictures.

[0228] However, IRAP or GDR pictures, or IRAP slices for some configurations, may have APS IDs in their picture headers that originate from previously decoded APSs, so it is necessary to keep track of the APS IDs at the actual random access points, or if the bitstream is split.

[0229] One way to improve this problem is to reset all APS IDs when an IRAP or GDR picture is decoded, and / or not allow an APS to be derived from another decoded APS. The APS may be for an LMCS, a scaling list, or an ALF. Thus, the decoder determines whether a picture is relevant to the resynchronization process, and if so, the decoding includes resetting the APS ID.

[0230] In a variant, if one slice in a picture is an IRAP, all APS IDs are reset.

[0231] An APS ID reset means that the decoder considers all previous APSs to be no longer valid, and consequently there are no APS ID values ​​that refer to any previous APSs.

[0232] This resynchronization process is particularly advantageous when combined with the syntax structure described above, as the APS ID information can be more easily parsed and decoded, allowing for fast and efficient resynchronization when required.

[0233] Embodiment APS ID related information in slice header The following description is of an embodiment related to a modification of the table of syntax elements in the slice header, where the APS ID information for ALF is placed closer to the beginning of the slice header to solve the parsing problem mentioned above. The modified slice header in Table 11 is based on the current slice header description of syntax elements (see Table 9 above) with the changes indicated by strikethrough and underline.

[0234] Table 11 Partial slice header indicating changes

[0235] [Table 16]

[0236] [Table 17]

[0237] [Table 18]

[0238] APS ID ALF at the beginning of the slice header In one embodiment, the APS ID ALF syntax element set is located at or near the beginning of the slice header, as shown in Table 11. In particular, the ALF APS includes at least syntax elements related to reporting clipping values.

[0239] This reduces the complexity of streaming applications that need to track APS ID usage to remove non-useful APS NAL units.

[0240] The set of APS ID ALF syntax elements can be followed by syntax elements useful for streaming applications that require extracting, splitting, cutting, or parsing portions of a video sequence without parser parameters. Examples of such syntax elements are shown below. The slice_pic_order_cnt_lsb syntax element indicates the POC of the current slice. This information is useful for many streaming applications, so it is preferable to set this flag before any set of APS ID ALF syntax elements. A slice_subpic_id syntax element indicating the subpicture ID of the current slice. This information is useful for many streaming applications, so it is preferable to set this flag before any set of APS ID ALF syntax elements. A slice_address syntax element indicating the address of the slice. This information is useful for many streaming applications, so it is preferable to set this flag before any set of APS ID ALF syntax elements. · num_tiles_in_slice_minus syntax element. It is preferable to set this flag before any set of APS ID ALF syntax elements, as this information is useful for many streaming applications. A slice_type element indicating the type of the current slice. This information is useful for many streaming applications, so it is preferable to set this flag before any set of APS ID ALF syntax elements.

[0241] In one embodiment, if the ALF APS includes at least syntax elements related to reporting clipping values, the APS ID ALF syntax element set before the low-level tool parameters in the slice header.

[0242] This results in reduced complexity for some streaming applications that need to keep track of different APS ALF APS IDs for each picture. Indeed, the information related to low-level tools is necessary for parsing and decoding slice data, but is not necessary for such applications that only extract the bitstream without decoding. An example of such a syntax element is shown below: A set of reference picture list parameters in the slice header. These parameters are in fact required for slice data decoding. Set the CABAC initialization flag in the slice header. In fact, this flag is only for decoding slice data. A set of collocated prediction parameters in the slice header. These parameters are in fact required for the slice data decoding. A set of weighted prediction parameters in the slice header. These parameters are actually needed for the slice data decoding. A set of quantization parameter update parameters in the slice header. These parameters are actually required for slice data decoding. The SAO enable flag is set in the slice header. In fact, these parameters are required for slice data decoding.

[0243] It should be understood that the above features may be provided in combination with one another. As with the particular combinations described above, doing so may provide particular advantages suited to a particular implementation, such as increased flexibility or specification of a "worst case" example. In other instances, complexity requirements may have a higher priority than rate reduction (for example), and such features may be implemented separately.

[0244] As shown in Table 11, according to an embodiment, information related to enabling or disabling LMCS at the slice level is set at or near the beginning of the slice header.

[0245] This reduces the complexity of streaming applications that need to track APS ID usage to remove non-useful APS NAL units. Although there is no APS ID associated with an LMCS in the slice header, when it is disabled (i.e., at the slice level with a flag), this affects the APS ID used for the current picture. For example, in the case of sub-picture extraction, the APS ID should be transmitted in the picture header, but the extracted sub-picture contains only one slice whose LMCS may be disabled in the slice header. If this APS is not used in another frame, the extraction application must remove the APS LMCS with the associated APS ID, as it is not needed for the extracted sub-picture.

[0246] Flags related to enabling or disabling LMCS at the slice level are preferably set closely to ALF-related information and set after these ALF syntax elements in the slice header syntax table. For example, as shown in Table 11, the LMCS flag may immediately follow the ALF syntax elements (if enabled). Therefore, the LMCS syntax can be set (parsed) after syntax elements useful for streaming applications, which need to extract, split, cut, or parse portions of a video sequence without having to parse all tool parameters. Examples of such syntax elements are described above.

[0247] As shown in Table 11, in one embodiment of the present invention, information about enabling or disabling scaling lists at the slice level is set at or near the beginning of the slice header.

[0248] As with LMCS, this reduces the complexity for streaming applications that need to track APS ID usage to remove unhelpful APS NAL units. Although there is no APS ID associated with a scaling list in the slice header, if it is disabled (i.e., by information such as a flag set at the slice level), this affects the APS ID used for the current picture. For example, in the case of subpicture extraction, the APS ID should be sent in the picture header, but the extracted subpicture contains only one slice whose scaling list can be disabled in the slice header. If this APS is never used in another frame, the extraction application should delete the APS scaling list with the associated APS ID, as it is not needed for the extracted subpicture.

[0249] Flags related to enabling or disabling scaling lists at the slice level are set closely to ALF-related information, preferably after these ALF syntax elements in the slice header syntax table, and more preferably after LMCS-related information (e.g., information for enabling or disabling LMCS at the slice level). Therefore, flags related to enabling or disabling scaling lists may be set after syntax elements useful for streaming applications, which need to extract, split, cut, or parse portions of a video sequence without having to parse all tool parameters. Examples of such syntax elements are described above. Therefore, the setting / parsing of syntax elements related to LMCS and / or scaling lists may be performed before the low-level tool parameters already described above, in addition to the APS ID ALF syntax element.

[0250] In one embodiment, the streaming application does not look at the LMCS flag (slice_lmcs_enabled_flag) at the slice level and selects the correct APS. Compared to the previous embodiment, this reduces complexity because the slice header does not need to be parsed for LMCS. However, it potentially increases the bitrate because some APSs for LMCS are transmitted even if they are not used for the decoding process. However, this depends on the streaming application. For example, in bitstream encapsulation into a file format, there is no possibility that an APS LMCS signaled in the picture header is not used in any slice. In other words, the bitstream encapsulation can ensure that an APS LMCS is used in at least one slice.

[0251] In an embodiment, additionally or alternatively, the streaming application does not look at the scaling list (slice_scaling_list_present_flag) flag at the slice level and selects the correct APS associated with the scaling list. Compared to the previous embodiment, the slice header does not need to be parsed for the scaling list, which reduces complexity. However, the bitrate may increase because some APS for the scaling list is transmitted even if it is not used in the decoding process. However, this depends on the streaming application. For example, in bitstream encapsulation into a file format, there is no possibility that an APS scaling list signaled in a picture header will never be used in any slice. In other words, the bitstream encapsulation can ensure that the APS scaling list is used in at least one slice.

[0252] In the above embodiment, LMCS and scaling lists are referenced as tools to which the method can be applied. However, the present invention is not limited to just LMCS and scaling lists. The present invention is applicable to any decoding tool or parameter that is enabled at the picture level, resulting in an APS or other parameter, but is then disabled at the slice level.

[0253] Implementation of the invention 9 illustrates a system 191-195 including at least one of the encoder 150 or the decoder 100 and a communication network 199 according to an embodiment of the present invention. According to one embodiment, the system 195 is for processing and providing content (e.g., video and audio content for displaying / outputting or streaming the video / audio content) to a user who can access the decoder 100 via a user interface of a user terminal including the decoder 100 or a user terminal capable of communicating with the decoder 100. Such a user terminal may be a computer, a mobile phone, a tablet, or any other type of device capable of providing / displaying (provided / streamed) content to a user. The system 195 obtains / receives the bitstream 101 (in the form of a continuous stream or signal—e.g., while previous video / audio is being displayed / output) via a communication network 200. According to one embodiment, the system 191 is for processing content and storing the processed content, e.g., the processed video and audio content for later display / output / streaming. The system 191 obtains / receives content comprising an original image sequence 151 that has been received and processed (including filtering by a deblocking filter according to the present invention) by an encoder 150, which generates a bitstream 101 that is communicated to the decoder 100 via a communications network 191. The bitstream 101 is then communicated to the decoder 100 in several ways, for example being pre-generated by the encoder 150 and stored as data in a storage device (e.g., a server or cloud storage) within the communications network 200 until a user requests the content (i.e., bitstream data) from the storage device, at which point the data is communicated / streamed from the storage device to the decoder 100.The systems 191-195 may also comprise a content providing device for receiving and processing user requests for content so as to deliver / stream content information (e.g., content titles and other meta / storage location data for identifying, selecting, and requesting content) of content stored in the storage device to the user (e.g., by communicating data for a user interface to be displayed on the user terminal), and deliver / stream the requested content from the storage device to the user terminal. Alternatively, the encoder 150 generates the bitstream 101 when a user requests content and communicates / streams it directly to the decoder 100. The decoder 100 then receives the bitstream 101 (or signal) and performs filtering with a deblocking filter according to the present invention to obtain / generate a video signal 109 and / or audio signal, which is used by the user terminal to provide the requested content to the user.

[0254] Any step of a method / process according to the present invention or function described herein may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the step / function may be stored or transmitted as one or more instructions, code, or program, or a computer-readable medium, and executed by one or more hardware-based processing units, such as a PC ("personal computer"), a DSP ("digital signal processor"), a circuit, a processor and memory, a general-purpose microprocessor or central processing unit, a microcontroller, an ASIC ("application-specific integrated circuit"), a field-programmable logic array (FPGA), or other equivalent integrated or discrete logic circuitry, programmable computing machine, etc. Thus, the term "processor" as used herein may refer to any of the foregoing structures or any other structure suitable for implementing the techniques described herein.

[0255] Embodiments of the present invention may be implemented by a wide variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC), or a set of JCs (e.g., a chipset). Various components, modules, or units are described herein to illustrate functional aspects of a device / apparatus configured to implement the embodiments, but do not necessarily require implementation by different hardware units. Rather, the various modules / units may be combined in a codec hardware unit or may be provided by a collection of interoperating hardware units including one or more processors along with appropriate software / firmware.

[0256] Embodiments of the present invention can be realized by a computer of a system or device that reads and executes computer-executable instructions (e.g., one or more programs) recorded on a storage medium to perform one or more modules / units / functions of the above-described embodiments and / or one or more processing units or circuits to perform one or more functions of the above-described embodiments, and by a method executed by the computer of the system or device, for example, by reading and executing the computer-executable instructions from a storage medium to perform one or more functions of the above-described embodiments and / or by controlling one or more processing units or circuits to perform one or more functions of the above-described embodiments. The computer may include separate computers or a network of separate processing units to read and execute the computer-executable instructions. The computer-executable instructions may be provided to the computer from a computer-readable medium, such as a communication medium, for example, via a network or a tangible storage medium. The communication medium may be a signal / bitstream / carrier wave. The tangible storage medium may be, for example, a hard disk, a random access memory (RAM), a read-only memory (ROM), a storage device in a distributed computing system, an optical disc (compact disc (CD), digital versatile disc (DVD), or Blu-ray disc (BD)). TMThe "non-transitory computer-readable storage medium" may include one or more of a memory card, a flash memory device, a memory card, etc. At least some of the steps / functions may also be implemented in hardware by a machine or dedicated components such as an FPGA ("Field Programmable Gate Array") or an ASIC ("Application Specific Integrated Circuit").

[0257] 10 is a schematic block diagram of a computing device 2000 for implementing one or more embodiments of the present invention. The computing device 2000 can be a device such as a microcomputer, a workstation, or a light portable device. The computing device 2000 includes a communication bus connected to: a central processing unit (CPU) 2001, such as a microprocessor; a random access memory (RAM) 2002 for storing executable code for the methods of embodiments of the present invention and registers adapted to record variables and parameters required to implement the methods for encoding or decoding at least a portion of an image according to embodiments of the present invention, the memory capacity of which can be expanded, for example, by an optional RAM connected to an expansion port; a read-only memory (ROM) 2003 for storing computer programs for implementing embodiments of the present invention; and a network interface (NET) 2004, which is typically connected to a communication network over which digital data to be processed is transmitted or received. The network interface (NET) 2004 can be a single network interface or can consist of a set of different network interfaces (e.g., wired and wireless interfaces, or different types of wired or wireless interfaces). Data packets are written to the network interface for transmission or read from the network interface for reception under the control of software applications running on the CPU 2001; a user interface (UI) 2005 may be used to receive input from a user or display information to a user; a hard disk (HD) 2006 may be provided as mass storage; and an input / output module (IO) 2007 may be used to send and receive data to external devices such as video sources and displays. Executable code may be stored in either the ROM 2003, the HD 2006, or on a removable digital medium such as a disk.According to a variant, the executable code of the program can be received by means of a communications network via NET 2004, in order to be stored in one of the storage means of the communications device 2000, such as HD 2006, before being executed. The CPU 2001 is adapted to control and direct the execution of instructions or parts of the software code of a program or group of programs according to an embodiment of the invention, stored in one of the aforementioned storage means. After power-on, the CPU 2001 can execute instructions for a software application, for example from the main RAM memory 2002, after these instructions have been loaded from the program ROM 2003 or the HD 2006. Such a software application, when executed by the CPU 2001, causes the steps of the method according to the invention to be carried out.

[0258] It will also be appreciated that according to other embodiments of the present invention, a decoder according to the aforementioned embodiments is provided in a user terminal such as a computer, a mobile phone (cell phone), a table, or any other type of device (e.g., a display device) that can provide / display content to a user. According to yet another embodiment, an encoder according to the aforementioned embodiments is provided in an image capture device that also comprises a camera, video camera, or network camera (e.g., a closed-circuit television or video surveillance camera) that captures and provides content for the encoder to encode. Two such examples are provided below with reference to Figures 11 and 12. Network Camera FIG. 11 is a diagram illustrating a network camera system 2100 including a network camera 2102 and a client device 2104 .

[0259] The network camera 2102 includes an imaging unit 2106 , an encoding unit 2108 , a communication unit 2110 , and a control unit 2112 .

[0260] The network camera 2102 and the client device 2104 are connected to each other via the network 200 so that they can communicate with each other.

[0261] The imaging unit 2106 includes a lens and an image sensor (e.g., a charge-coupled device (CCD) or a complementary metal-oxide semiconductor (CMOS)) to capture an image of an object and generate image data based on the image, which may be a still image or a video image.

[0262] The encoding unit 2108 encodes the image data using the encoding method described above.

[0263] The communication unit 2110 of the network camera 2102 transmits the encoded image data encoded by the encoding unit 2108 to the client device 2104 .

[0264] The communication unit 2110 also receives commands from the client device 2104. The commands include commands to set parameters for encoding in the encoding unit 2108.

[0265] The control unit 2112 controls the other units in the network camera 2102 according to the commands received by the communication unit 2110 .

[0266] The client device 2104 includes a communication unit 2114 , a decoding unit 2116 , and a control unit 2118 .

[0267] The communication unit 2114 of the client device 2104 sends a command to the network camera 2102 .

[0268] Additionally, the communication unit 2114 of the client device 2104 receives the encoded image data from the network camera 2102 .

[0269] The decoding unit 2116 decodes the coded image data using the decoding method described above.

[0270] The control unit 2118 of the client device 2104 controls other units within the client device 2104 according to user operations or commands received by the communication unit 2114 .

[0271] The control unit 2118 of the client device 2104 controls the display device 2120 to display the images decoded by the decoding unit 2116 .

[0272] In addition, the control unit 2118 of the client device 2104 controls the display device 2120 to display a GUI (Graphical User Interface) for specifying values ​​of parameters of the network camera 2102, including parameters for encoding by the encoding unit 2108.

[0273] Furthermore, the control unit 2118 of the client device 2104 controls other units within the client device 2104 in response to user operations input to the GUI displayed on the display device 2120 .

[0274] The control unit 2118 of the client device 2104 controls the communication unit 2114 of the client device 2104 to send a command to the network camera 2102 specifying the value of a parameter of the network camera 2102 in response to a user operation input to the GUI displayed by the display device 2120.

[0275] Smartphone FIG. 12 is a diagram illustrating a smartphone 2200.

[0276] The smartphone 2200 includes a communication unit 2202 , a decoding unit 2204 , a control unit 2206 , a display unit 2208 , an image recording device 2210 , and a sensor group 2212 .

[0277] The communication unit 2202 receives the encoded image data via the network 200 .

[0278] The decoding unit 2204 decodes the encoded image data received by the communication unit 2202 .

[0279] The decoding unit 2204 decodes the coded image data using the decoding method described above.

[0280] The control unit 2206 controls other units within the smartphone 2200 in response to user operations or commands received by the communication unit 2202 .

[0281] For example, the control unit 2206 controls the display unit 2208 to display the image decoded by the decoding unit 2204 .

[0282] While the present invention has been described with reference to embodiments, it should be understood that the invention is not limited to the disclosed embodiments. Those skilled in the art will recognize that various changes and modifications can be made without departing from the scope of the present invention, as defined by the appended claims. All features disclosed in this specification (including any accompanying claims, abstract, and drawings), and / or all steps of any method or process so disclosed, may be combined in any combination, except combinations in which at least some of such features and / or steps are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract, and drawings), unless otherwise specified, may be replaced by an alternative feature serving the same, equivalent, or similar purpose. Thus, unless otherwise specified, each feature disclosed is merely one example of a generic series of equivalent or similar features.

[0283] It will also be understood that any result of the above-mentioned comparison, determination, evaluation, selection, execution, performance, or consideration, e.g., a selection made during an encoding or filtering process, may be indicated in or determinable / inferable from data in the bitstream, e.g., flags or data indicating the result, and such that the indicated or determined / inferred result may be used in processing, e.g., during a decoding process, in place of actually performing the comparison, determination, evaluation, selection, execution, performance, or consideration.

[0284] In the claims, the word "comprise" does not exclude other elements or steps, and the indefinite articles "a" or "an" do not exclude a plurality. The mere fact that different features are recited in mutually different dependent claims does not indicate that a combination of these features cannot be used to advantage.

[0285] Reference signs appearing in the claims are by way of illustration only and shall have no limiting effect on the scope of the claims.

Claims

1. 1. A method for decoding image data from a bitstream, comprising: wherein the bitstream includes a picture header including syntax elements used when decoding a picture, which may include one or more slices, and a slice header including syntax elements used when decoding a slice; Here, the method of decoding comprises: parsing in the picture header a syntax element indicating whether Luma Mapping with Chroma Scaling (LMCS) may be used in the picture; parsing at least a syntax element related to an ID of an LMCS Adaptation Parameter Set (APS) in the picture header when the LMCS may be used in the picture; When the LMCS may be used in the picture, parsing at least a syntax element for identifying whether the LMCS is used in the slice immediately after a syntax element for an Adaptive Loop Filter (ALF) APS ID in the slice header and before one or more syntax elements including a syntax element related to SAO; decoding the image data from the bitstream using the decoded syntax elements; The method according to claim 1, further comprising:

2. 2. The method of claim 1, wherein the syntax element for specifying whether the LMCS is used in the slice is a flag.

3. 1. A method for encoding image data into a bitstream, comprising the steps of: wherein the bitstream includes a picture header including syntax elements used when decoding a picture, which may include one or more slices, and a slice header including syntax elements used when decoding a slice; The encoding method includes: encoding in the picture header a syntax element indicating whether Luma Mapping with Chroma Scaling (LMCS) may be used in the picture; encoding in the picture header at least a syntax element related to an ID of an LMCS Adaptation Parameter Set (APS) when the LMCS may be used in the picture; When the LMCS may be used in the picture, encoding at least a syntax element for specifying whether the LMCS is used in the slice immediately after a syntax element related to an ALF (Adaptive Loop Filter) APS ID and before one or more syntax elements including a syntax element related to SAO in the slice header; The method according to claim 1, further comprising:

4. 4. The method of claim 3, wherein the syntax element for specifying whether the LMCS is used in the slice is a flag.

5. A decoder for decoding image data from a bitstream, the decoder being configured to perform the method of claim 1.

6. An encoder for encoding image data into a bitstream, the encoder being configured to perform the method of claim 3.

7. A computer program product causing a computer to carry out the method according to claim 1.

8. A computer program product causing a computer to carry out the method according to claim 3.

Citation Information

Patent Citations

  • Constraints for High-Level Syntax Elements

    JP2023515185A

  • Image coding method, image decoding method, image coding apparatus, image decoding apparatus, and image coding and decoding apparatus

    US20130101034A1

  • Image encoding method, image decoding method, image encoding device, image decoding device, and image encoding and decoding device

    WO2013057884A1

  • Constrains for high level syntax elements

    WO2021170091A1