This application is the National Phase application of PCT Application No. PCT/EP2021/055661, filed on Mar. 5, 2021. This application claims the benefit under 35 U.S.C. § 119(a)-(d) of United Kingdom Patent Application No. 2003562.2, filed on Mar. 11, 2020 and United Kingdom Patent Application No. 2005741.0, filed on Apr. 20, 2020. The above cited patent applications are incorporated herein by reference in their entirety.
The present invention relates to video coding and decoding, and in particular to the high level syntax used in the bitstream.
Recently, the Joint Video Experts Team (JVET), a collaborative team formed by MPEG and ITU-T Study Group 16's VCEG, commenced work on a new video coding standard referred to as Versatile Video Coding (VVC). The goal of VVC is to provide significant improvements in compression performance over the existing HEVC standard (i.e., typically twice as much as before) and to be completed in 2020. The main target applications and services include—but not limited to—360-degree and high-dynamic-range (HDR) videos. In total, JVET evaluated responses from 32 organizations using formal subjective tests conducted by independent test labs. Some proposals demonstrated compression efficiency gains of typically 40% or more when compared to using HEVC. Particular effectiveness was shown on ultra-high definition (UHD) video test material. Thus, we may expect compression efficiency gains well-beyond the targeted 50% for the final standard.
The JVET exploration model (JEM) uses all the HEVC tools and has introduced a number of new tools. These changes have necessitated a change to the structure of the bitstream, and in particular to the high-level syntax which can have a impact on the overall bitrate of the bitstream.
The present invention relates to an improvement to the high level syntax structure, which leads to a reduction in complexity without any degradation in coding performance.
According to a first aspect of the invention there is provided a method of decoding video data from a bitstream, the bitstream comprising video data corresponding to one or more slices, wherein the bitstream comprises a picture header comprising syntax elements to be used when decoding one or more slices, and a slice header comprising syntax elements to be used when decoding a slice, and the decoding comprises in a case where information which can be signalled in the picture header or in the slice header is signalled in the picture header, imposing (e.g. applying a constraint) that the picture header is not in the slice header; and decoding said bitstream using said syntax elements.
Optionally, the decoding further comprises parsing a first syntax element indicating whether said information is to be signalled in a picture header and permitting the parsing of the information which may be signalled in a slice header and a picture header in only one of the slice header or picture header based on the first syntax element.
Optionally, the first syntax element is a information in picture parameter set flag or an information in picture header flag.
Optionally, parsing of the information in the slice header is not permitted in the case that the first syntax element indicates that the information is signalled in the picture header.
Optionally, the method further comprises parsing a second syntax element indicating whether the picture header is in the slice header or not, wherein it is a requirement of bitstream conformance that the second syntax element indicates that the picture header is not in the slice header in the case that the first syntax element indicates that the information is signalled in the picture header.
Optionally, the information includes one or more of quantization parameter value information, reference picture list information, deblocking filter information, sample adaptive offset (SAO) information, weighted prediction information and adaptive loop filtering (ALF) information.
Optionally, the information includes all information that may be signaled in a picture header and a slice header.
Optionally, the reference picture list information includes one or more of a slice_collocated_from_l0_flag, a slice_collocated_ref_idx, a ph_collocated_from_l0_flag and a ph_collocated_ref_idx.
According to a second aspect of the invention there is provided a method of encoding video data into a bitstream, the video data corresponding to one or more slices, wherein the bitstream comprises a picture header comprising syntax elements to be used when decoding one or more slices, and a slice header comprising syntax elements to be used when decoding a slice, and the encoding comprises in a case information which can be signalled in the picture header or in the slice header is signalled in the picture header; signalling that the picture header is not in the slice header, and encoding said video data using said syntax elements.
Optionally, the encoding further comprises encoding a first syntax element indicating whether said information is to be signalled in a picture header and permitting the encoding of the information which may be signalled in a slice header and a picture header in only one of the slice header or picture header based on the first syntax element.
Optionally, the first syntax element is an information in picture parameter set flag or an information in picture header flag.
Optionally, encoding of the information in the slice header is not permitted in the case that the first syntax element indicates that the information is signalled in the picture header.
Optionally, the method further comprises encoding a second syntax element indicating whether the picture header is in the slice header or not, wherein it is a requirement of bitstream conformance that the second syntax element indicates that the picture header is not in the slice header in the case that the first syntax element indicates that the information is signalled in the picture header.
Optionally, the information includes one or more of quantization parameter value information, reference picture list information, deblocking filter information, sample adaptive offset (SAO) information, weighted prediction information and adaptive loop filtering (ALF) information.
Optionally, the information includes all information that may be signaled in a picture header and a slice header.
Optionally, the reference picture list information includes one or more of a slice_collocated_from_l0_flag, a slice_collocated_ref_idx, a ph_collocated_from_l0_flag and a ph_collocated_ref_idx.
In an alternative aspect of the invention there is provided a method of decoding video data from a bitstream, the bitstream comprising video data corresponding to one or more slices, wherein the bitstream comprises a picture header comprising syntax elements to be used when decoding one or more slices, and a slice header comprising syntax elements to be used when decoding a slice, and the decoding comprises in a case where information which can be signalled in the picture header or in the slice header is signalled in the slice header, imposing that the picture header is not in the slice header; and decoding said bitstream using said syntax elements.
According to another aspect of the present invention, there is provided a method of decoding video data from a bitstream, the bitstream comprising video data corresponding to one or more slices, wherein the bitstream comprises a picture header comprising syntax elements to be used when decoding one or more slices, and a slice header comprising syntax elements to be used when decoding a slice, and the decoding comprises treating as not applicable, in combination, (a) a syntax element indicating that tool information is signalled in a picture header rather than in a slice header and (b) a syntax element indicating that a picture header is signalled in a slice header; and decoding said bitstream using said syntax elements. The decoding does not occur when said syntax elements (a) and (b) treated as not applicable in combination are present.
According to a related aspect of the present invention, a bitstream comprises: video data corresponding to one or more slices; a picture header comprising syntax elements to be used when decoding one or more slices; and a slice header comprising syntax elements to be used when decoding a slice. The bitstream has a constraint that there must not be present therein, in combination, (a) a syntax element indicating that tool information is signalled in a picture header rather than in a slice header and (b) a syntax element indicating that the (a) picture header is signalled in a slice header. The tool information may be any one of quantization parameter value information, reference picture list information, deblocking filter information, sample adaptive offset (SAO) information, weighted prediction information and adaptive loop filtering (ALF) information. In a related aspect there is provided a method of decoding said bitstream In another related aspect there is provided a decoder configured to decode said bitstream. The bitstream may be constrained for conformity with a video coding standard. In an embodiment, said video coding standard is the Versatile Video Coding standard. The constraint may be applied systematically throughout the bitstream. For example, in embodiments, the constraint is applied for any or all of sequences, pictures and slices in a bitstream.
According to another aspect of the present invention, there is provided a method of decoding video data from a bitstream, the bitstream comprising video data corresponding to one or more slices, wherein the bitstream comprises a picture header comprising syntax elements to be used when decoding one or more slices, and a slice header comprising syntax elements to be used when decoding a slice, and the decoding comprises treating as not applicable, in combination, (a) a syntax element indicating that tool information is signalled in a slice header rather than in a picture header and (b) a syntax element indicating that a picture header is signalled in a slice header; and decoding said bitstream using said syntax elements. The decoding does not occur when said syntax elements (a) and (b) treated as not applicable in combination are present.
According to another aspect of the present invention, there is provided a method of decoding video data from a bitstream, the bitstream comprising video data corresponding to one or more slices, wherein the bitstream comprises a picture header comprising syntax elements to be used when decoding one or more slices, and a slice header comprising syntax elements to be used when decoding a slice, wherein a picture header is to be signalled in a slice header and wherein the parsing of information which may otherwise be signalled in a slice header and a picture header, in only one of the slice header or picture header are constrained; and the decoding comprises in case where a syntax element (xxx_info_in_ph_flag), indicates the presence of tool information in the picture header (e.g. when xxx_info_in_ph_flag=1), the picture header is not signalled in a slice header (e.g. force picture_header_in_slice_header_flag to be 0).
According to a related aspect of the present invention, a bitstream comprises: video data corresponding to one or more slices; a picture header comprising syntax elements to be used when decoding one or more slices; and a slice header comprising syntax elements to be used when decoding a slice. The bitstream has a constraint that there must not be present therein, in combination, (a) a syntax element indicating that tool information is signalled in a slice header rather than in a picture header and (b) a syntax element indicating that a picture header is signalled in a slice header.
According to another aspect of the present invention, there is provided a method of decoding video data from a bitstream, the bitstream comprising video data corresponding to one or more slices, wherein the bitstream comprises a picture header comprising syntax elements to be used when decoding one or more slices, and a slice header comprising syntax elements to be used when decoding a slice, wherein a picture header is to be signalled in a slice header and wherein the parsing of information which may otherwise be signalled in a slice header and a picture header, in only one of the slice header or picture header are constrained; and the decoding comprises in case where a syntax element (xxx_info_in_ph_flag), indicates the absence of tool information in the picture header (e.g. when xxx_info_in_ph_flag=0), the picture header is not signalled in a slice header (e.g. force picture_header_in_slice_header_flag to be 0).
In a first further aspect of the invention, there is provided method of decoding video data from a bitstream, the bitstream comprising video data corresponding to one or more slices, wherein the bitstream comprises a picture header comprising syntax elements to be used when decoding one or more slices, and a slice header comprising syntax elements to be used when decoding a slice, and the decoding comprises, in a case where a picture header is to be signalled in a slice header, permitting parsing of information which may otherwise be signalled in a slice header and a picture header, in only one of the slice header or picture header; and decoding said bitstream using said syntax elements.
When the picture header is in the slice header this implies only one slice is present for the current picture. Thus, having the information transmitted or transmittable for both slice and picture doesn't increase the flexibility for encoder or decoder as the parameters will be the same. In other words, if the information is in the picture header, corresponding information in the slice header will be redundant. Similarly, if the information is in the slice header, corresponding information in the picture header will be redundant. By only permitting the information to be in the picture header or the slice header, in a case where the picture header is in the slice header, the decoder implementation may be simplified by limiting the redundancies in the signaling. Accordingly, the parsing may be simplified without any loss in coding efficiency.
The decoding may further comprise parsing a first syntax element indicating whether a picture header is to be signalled in a slice header and permitting the parsing of the information which may be signalled in a slice header and a picture header in only one of the slice header or picture header based on the first syntax element. The first syntax element may be a picture header in slice header flag.
Optionally, the parsing of the information in the slice header is not permitted in the case that the first syntax element indicates that the picture header is signalled in the slice header. A second syntax element may be parsed indicating whether the information is in a picture header or not, wherein it is a requirement of bitstream conformance that the second syntax element indicates that the information is signalled in the picture header in the case that the first syntax element indicates that the picture header is signalled in the slice header.
Alternatively, the signalling of the information in the picture header is not permitted in the case that the first syntax element indicates that the picture header is signalled in the slice header. The method may further comprise parsing a second syntax element indicating whether the information is in a picture header or not, wherein it is a requirement of bitstream conformance that the second syntax element indicates that the information is in the picture header in the case that the first syntax element indicates that the picture header is signalled in the slice header. The second syntax element may be an information in picture parameter set flag, wherein the information is in the picture header when the flag is set and the information is in the slice header or not present when not set.
According to embodiments, the information may include one or more of quantization parameter value information, reference picture list information, deblocking filter information, sample adaptive offset (SAO) information, weighted prediction information and adaptive loop filtering (ALF) information. For example, all of the quantization parameter value information, reference picture list information, deblocking filter information, sample adaptive offset (SAO) information, weighted prediction information and adaptive loop filtering (ALF) information.
Optionally, the information includes all information that may be signaled in a picture header and a slice header.
The reference picture list information may include one or more of the following syntax elements slice_collocated_from_l0 flag, a slice_collocated_ref_idx, a ph_collocated_from_l0_flag and a ph_collocated_ref_idx.
A number of weights for weighted prediction that may be parsed may be restricted in the case where a picture header is to be signalled in a slice header.
According to a second further aspect of the invention, there is provided a method of encoding video data into a bitstream, the video data corresponding to one or more slices, wherein the bitstream comprises a picture header comprising syntax elements to be used when decoding one or more slices, and a slice header comprising syntax elements to be used when decoding a slice, and the encoding comprises in a case where a picture header is to be signalled in a slice header, permitting encoding of information which may otherwise be signalled in a slice header and a picture header, in only one of the slice header or picture header, and encoding said video data using said syntax elements.
When the picture header is in the slice header this implies only one slice is present for the current picture. Thus, having the information transmitted or transmittable for both slice and picture doesn't increase the flexibility for encoder or decoder as the parameters will be the same. In other words, if the information is in the picture header, corresponding information in the slice header will be redundant. Similarly, if the information is in the slice header, corresponding information in the picture header will be redundant. By only permitting the information to be in the picture header or the slice header, in a case where the picture header is in the slice header, the decoder implementation may be simplified by limiting the redundancies in the signaling. Accordingly, the encoding may be simplified without any loss in coding efficiency and the signalling cost reduced (because the relevant information is only included once in the bitstream).
The encoding may further comprise encoding a first syntax element indicating whether a picture header is to be signalled in a slice header and permitting the encoding of the information which may be signalled in a slice header and a picture header in only one of the slice header or picture header based on the first syntax element.
The first syntax element may be a picture_header_in_slice_header_flag.
Encoding the information in the slice header may not be permitted in the case that the first syntax element indicates that the picture header is signalled in the slice header.
A second syntax element may be encoded indicating whether the information is in a picture header or not, wherein it is a requirement of bitstream conformance that the second syntax element indicates that the information is in the picture header in the case that the first syntax element indicates that the picture header is signalled in the slice header.
Alternatively, signalling of the information in the picture header is not permitted in the case that the first syntax element indicates that the picture header is signalled in the slice header.
A second syntax element may be encoded indicating whether the information is in a picture header or not, wherein it is a requirement of bitstream conformance that the second syntax element indicates that the information is in the picture header in the case that the first syntax element indicates that the picture header is signalled in the slice header.
The second syntax element may be an information in picture parameter set flag or an information in picture header flag, wherein the information is signalled in the picture header when the flag is set and the information is signalled in the slice header or not present when not set.
The information may include one or more of quantization parameter value information, reference picture list information, deblocking filter information, sample adaptive offset (SAO) information, weighted prediction information and adaptive loop filtering (ALF) information. Optionally, the information includes all information that may be signaled in a picture header and a slice header. For example, all of the quantization parameter value information, reference picture list information, deblocking filter information, sample adaptive offset (SAO) information, weighted prediction information and adaptive loop filtering (ALF) information.
The reference picture list information includes one or more of a slice_collocated_from_l0_flag, a slice_collocated_ref_idx, a ph_collocated_from_l0_flag and a ph_collocated_ref_idx.
Optionally, a number of weights for weighted prediction may be restricted in the case where a picture header is to be signalled in a slice header.
In a third further aspect according to the invention, there is provided a method of decoding a bitstream containing video data corresponding to one or more slices, wherein the bitstream comprises a picture header comprising syntax elements to be used when decoding one or more slices, and a slice header comprising syntax elements to be used when decoding a slice, and said method comprising parsing, in the slice header a syntax element indicating whether a picture header is signalled in a slice header, wherein ALF APS ID related syntax element is parsed prior to the syntax element indicating whether a picture header is signalled in a slice header. The ALF APS ID related information may be parsed near or at the beginning of the slice header.
In a fourth further aspect according to the invention there is provided a method of encoding a video data comprising one or more slices into a bitstream, wherein the bitstream comprises a picture header comprising syntax elements to be used when decoding one or more slices, and a slice header comprising syntax elements to be used when decoding a slice, and said method comprises parsing, in the slice header a syntax element indicating whether a picture header is signalled in a slice header; wherein ALF APS ID related syntax element is encoded prior to the syntax element indicating whether a picture header is signalled in a slice header. The ALF APS ID related information may be encoded near or at the beginning of the slice header.
In a fifth further aspect of the invention, there is provided a method of decoding video data from a bitstream, the bitstream comprising video data corresponding to one or more slices, wherein the bitstream comprises a picture header comprising syntax elements to be used when decoding one or more slices, and a slice header comprising syntax elements to be used when decoding a slice, and the decoding comprises, in a case where a picture header is to be signalled in a slice header, restricting a number of weights signalled for a weighted prediction mode; and decoding said bitstream using said syntax elements. In a case where a picture header is to be signalled in a slice header, parsing of information which may otherwise be signalled in a slice header and a picture header may be permitted in only one of the slice header or picture header.
In a sixth further aspect according to the invention, there is provided a method of encoding video data from a bitstream, the bitstream comprising video data corresponding to one or more slices, wherein the bitstream comprises a picture header comprising syntax elements to be used when decoding one or more slices, and a slice header comprising syntax elements to be used when decoding a slice, and the encoding comprises, in a case where a picture header is to be signalled in a slice header, restricting a number of weights encoded for a weighted prediction mode; and encoding said bitstream using said syntax elements. In a case where a picture header is to be signalled in a slice header, encoding of information which may otherwise be signalled in a slice header and a picture header, may be permitted in only one of the slice header or picture header.
According to a seventh further aspect of the invention, there is provided a decoder for decoding video data from a bitstream, the decoder being configured to perform the method of any of the first, third or fifth further aspects.
According to an eighth further aspect of the invention there is provided an encoder for encoding video data into a bitstream, the encoder being configured to perform the method of any of second, fourth or sixth further aspects.
According to a ninth further aspect of the invention, there is provided a computer program which upon execution causes the method of any of the first to sixth further aspects to be performed. The program may be provided on its own or may be carried on, by or in a carrier medium. The carrier medium may be non-transitory, for example a storage medium, in particular 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 via any suitable network, including the Internet. Further features of the invention are characterised by the independent and dependent claims.
According to a first yet further aspect there is provided a method of decoding video data from a bitstream, the bitstream comprising video data corresponding to one or more slices, wherein the bitstream comprises a picture header comprising syntax elements to be used when decoding one or more slices, and a slice header comprising syntax elements to be used when decoding a slice, and the bitstream is constrained so that in a case where the bitstream includes a first syntax element having a value indicating that information which can be signalled in the picture header or in the slice header is signalled in the picture header, the bitstream also includes a second syntax element having a value indicating that the picture header is not in the slice header, the method comprising: decoding said bitstream using said syntax elements. The bitstream may be constrained for conformity with a video coding standard. In an embodiment, said video coding standard is the Versatile Video Coding standard. The second syntax element may be a picture header in slice header syntax element. The first syntax element may be a flag indicating the signalling in the picture header of one or more of quantization parameter value information, reference picture list information, deblocking filter information, sample adaptive offset (SAO) information, weighted prediction information and adaptive loop filtering (ALF) information. The bitstream constraint may be applied systematically. For example, in embodiments, the constraint is applied for any or all of sequences, pictures and slices in a bitstream.
According to a second yet further aspect, there is provided a method for encoding or decoding video data into or from a bitstream, said method comprising applying a constraint relating to whether a picture header is permitted in a slice header based on if information which can be signalled in the picture header or in the slice header is signalled in the picture header. According to a third yet further aspect, there is provided a device configured to perform the method of the second yet further aspect. According to a fourth yet further aspect, there is provided a computer program comprising instructions which upon execution cause the method of the second yet further aspect to be performed.
Any feature in 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.
Furthermore, features implemented in hardware may be implemented in software, and vice versa. Any reference to software and hardware features herein should be construed accordingly
Any apparatus feature as described herein may also be provided as a method feature, and vice versa. As used herein, means plus function features may be expressed alternatively in terms of their corresponding structure, such as a suitably programmed processor and associated memory.
It should also be appreciated that particular combinations of the various features described and defined in any aspects of the invention can be implemented and/or supplied and/or used independently.
Reference will now be made, by way of example, to the accompanying drawings, in which:
An image 2 of the sequence may be divided into slices 3. A slice may in some instances constitute an 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 conceptually corresponds in structure to macroblock units that were used in several previous video standards. A CTU is also sometimes referred to as a Largest Coding Unit (LCU). A CTU has luma and chroma component parts, each of which component parts is called a Coding Tree Block (CTB). These different color components are not shown in
A CTU is generally of size 64 pixels×64 pixels. Each CTU may in turn be iteratively divided into smaller variable-size Coding Units (CUs) 5 using a quadtree decomposition.
Coding units are the elementary coding elements and are constituted by two kinds of sub-unit called a Prediction Unit (PU) and a Transform Unit (TU). The maximum size of a PU or TU is equal to the CU size. A Prediction Unit corresponds to the partition of the CU for prediction of pixels values. Various different partitions of a CU into PUs are possible as shown by 606 including a partition into 4 square PUs and two different partitions into 2 rectangular PUs. A Transform Unit is an elementary unit that is subjected to spatial transformation using DCT. A CU can be partitioned into TUs based on a quadtree representation 607.
Each slice is embedded in one Network Abstraction Layer (NAL) unit. In addition, the coding parameters of the video sequence are stored in dedicated NAL units called parameter sets. In HEVC and H.264/AVC two kinds of parameter sets NAL units are employed: first, a Sequence Parameter Set (SPS) NAL unit that gathers all parameters that are unchanged during the whole video sequence. Typically, it handles the coding profile, the size of the video frames and other parameters. Secondly, a Picture Parameter Set (PPS) NAL unit includes parameters that may change from one image (or frame) to another of a sequence. HEVC also includes a Video Parameter Set (VPS) NAL unit which contains parameters describing the overall structure of the bitstream. The VPS is a new type of parameter set defined in HEVC, and applies to all of the layers of a bitstream. A layer may contain multiple temporal sub-layers, and all version 1 bitstreams are restricted to a single layer. HEVC has certain layered extensions for scalability and multiview and these will enable multiple layers, with a backwards compatible version 1 base layer.
The data stream 204 provided by the server 201 may be composed of multimedia data representing video and audio data. Audio and video data streams may, in some embodiments of the invention, be captured by the server 201 using a microphone and a camera respectively. In some embodiments data streams may be stored on the server 201 or received by the server 201 from another data provider, or generated at the server 201. The server 201 is provided with an encoder for encoding video and audio streams in particular to provide a compressed bitstream for transmission that is a more compact representation of the data presented as input to the encoder.
In order to obtain a better ratio of the quality of transmitted data to quantity of transmitted data, the compression of the video data may be for example in accordance with the HEVC format or H.264/AVC format.
The client 202 receives the transmitted bitstream and decodes the reconstructed bitstream to reproduce video images on a display device and the audio data by a loud speaker.
Although a streaming scenario is considered in the example of
In one or more embodiments of the invention a video image is transmitted with data representative of compensation offsets for application to reconstructed pixels of the image to provide filtered pixels in a final image.
Optionally, the apparatus 300 may also include the following components:
The apparatus 300 can be connected to various peripherals, such as for example a digital camera 320 or a microphone 308, each being connected to an input/output card (not shown) so as to supply multimedia data to the apparatus 300.
The communication bus provides communication and interoperability between the various elements included in the apparatus 300 or connected to it. 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 apparatus 300 directly or by means of another element of the apparatus 300.
The disk 306 can be replaced by any information medium such as for example a compact disk (CD-ROM), rewritable or not, a ZIP disk or a memory card and, in general terms, by an information storage means that can be read by a microcomputer or by a microprocessor, integrated or not into the apparatus, possibly removable and adapted to store one or more programs whose execution enables the method of encoding a sequence of digital images and/or the method of decoding a bitstream according to the invention to be implemented.
The executable code may be stored either in read only memory 306, on the hard disk 304 or on a removable digital medium such as for example a disk 306 as described previously. According to a variant, the executable code of the programs can be received by means of the communication network 303, via the interface 302, in order to be stored in one of the storage means of the apparatus 300 before being executed, such as the hard disk 304.
The central processing unit 311 is adapted to control and direct the execution of the instructions or portions of software code of the program or programs according to the invention, instructions that are stored in one of the aforementioned storage means. On powering up, the program or programs that are stored in a non-volatile memory, for example on the hard disk 304 or in the read only memory 306, are transferred into the random access memory 312, which then contains the executable code of the program or programs, as well as registers for storing the variables and parameters necessary for implementing the invention.
In this embodiment, the apparatus is a programmable apparatus which uses software to implement the invention. However, alternatively, the present invention may be implemented in hardware (for example, in the form of an Application Specific Integrated Circuit or ASIC).
An original sequence of digital images i0 to in 401 is received as an input by the encoder 400. Each digital image is represented by a set of samples, known as pixels.
A bitstream 410 is output by the encoder 400 after implementation of the encoding process. The bitstream 410 comprises a plurality of encoding units or slices, each slice comprising a slice header for transmitting encoding values of encoding parameters used to encode the slice and a slice body, comprising encoded video data.
The input digital images i0 to in 401 are divided into blocks of pixels by module 402. The blocks correspond to image portions and may be of variable sizes (e.g. 4×4, 8×8, 16×16, 32×32, 64×64, 128×128 pixels and several rectangular block sizes can be also considered). A coding mode is selected for each input block. Two families of coding modes are provided: coding modes based on spatial prediction coding (Intra prediction), and coding modes based on temporal prediction (Inter coding, Merge, SKIP). The possible coding modes are tested.
Module 403 implements an Intra prediction process, in which the given block to be encoded is predicted by a predictor computed from pixels of the neighbourhood of said block to be encoded. An indication of the selected Intra predictor and the difference between the given block and its predictor is encoded to provide a residual if the Intra coding is selected.
Temporal prediction is implemented by motion estimation module 404 and motion compensation module 405. Firstly, a reference image from among a set of reference images 416 is selected, and a portion of the reference image, also called reference area or image portion, which is the closest area to the given block to be encoded, is selected by the motion estimation module 404. Motion compensation module 405 then predicts the block to be encoded using the selected area. The difference between the selected reference area and the given block, also called a residual block, is computed by the motion compensation module 405. The selected reference area is indicated by a motion vector.
Thus, in both cases (spatial and temporal prediction), a residual is computed by subtracting the prediction from the original block.
In the INTRA prediction implemented by module 403, a prediction direction is encoded. In the temporal prediction, at least one motion vector is encoded. In the Inter prediction implemented by modules 404, 405, 416, 418, 417, at least one motion vector or data for identifying such motion vector is encoded for the temporal prediction.
Information relative to the motion vector and the residual block is encoded if the Inter prediction is selected. To further reduce the bitrate, assuming that motion is homogeneous, the motion vector is encoded by difference with respect to a motion vector predictor. Motion vector predictors of a set of motion information predictors is obtained from the motion vectors field 418 by a motion vector prediction and coding module 417.
The encoder 400 further comprises a selection module 406 for selection of the coding mode by applying an encoding cost criterion, such as a rate-distortion criterion. In order to further reduce redundancies a transform (such as DCT) is applied by transform module 407 to the residual block, the transformed data obtained is then quantized by quantization module 408 and entropy encoded by entropy encoding module 409. Finally, the encoded residual block of the current block being encoded is inserted into the bitstream 410.
The encoder 400 also performs decoding of the encoded image in order to produce a reference image for the motion estimation of the subsequent images. This enables the encoder and the decoder receiving the bitstream to have the same reference frames. The inverse quantization module 411 performs inverse quantization of the quantized data, followed by an inverse transform by reverse transform module 412. The reverse intra prediction module 413 uses the prediction information to determine which predictor to use for a given block and the reverse motion compensation module 414 actually adds the residual obtained by module 412 to the reference area obtained from the set of reference images 416.
Post filtering is then applied by module 415 to filter the reconstructed frame of pixels. In the embodiments of the invention an SAO loop filter is used in which compensation offsets are added to the pixel values of the reconstructed pixels of the reconstructed image
The decoder 60 receives a bitstream 61 comprising encoding units, each one being composed of a header containing information on encoding parameters and a body containing the encoded video data. The structure of the bitstream in VVC is described in more detail below with reference to
The mode data indicating the coding mode are also entropy decoded and based on the mode, an INTRA type decoding or an INTER type decoding is performed on the encoded blocks of image data.
In the case of INTRA mode, an INTRA predictor is determined by intra reverse prediction module 65 based on the intra prediction mode specified in the bitstream.
If the mode is INTER, the motion prediction information is extracted from the bitstream so as to find the reference area used by the encoder. The motion prediction information is composed of the reference frame index and the motion vector residual. The motion vector predictor is added to the motion vector residual in order to obtain the motion vector by motion vector decoding module 70.
Motion vector decoding module 70 applies motion vector decoding for each current block encoded by motion prediction. Once an index of the motion vector predictor, for the current block has been obtained the actual value of the motion vector associated with the current block can be decoded and used to apply reverse motion compensation by module 66. The reference image portion indicated by the decoded motion vector is extracted from a reference image 68 to apply the reverse motion compensation 66. The motion vector field data 71 is updated with the decoded motion vector in order to be used for the inverse prediction of subsequent decoded motion vectors.
Finally, a decoded block is obtained. Post filtering is applied by post filtering module 67. A decoded video signal 69 is finally provided by the decoder 60.
A bitstream 61 according to the VVC coding system is composed of an ordered sequence of syntax elements and coded data. The syntax elements and coded data are placed into Network Abstraction Layer (NAL) units 601-608. There are different NAL unit types. The network abstraction layer provides the ability to encapsulate the bitstream into different protocols, like RTP/IP, standing for Real Time Protocol/Internet Protocol, ISO Base Media File Format, etc. The network abstraction layer also provides a framework for packet loss resilience.
NAL units are divided into Video Coding Layer (VCL) NAL units and non-VCL NAL units. The VCL NAL units contain the actual encoded video data. The non-VCL NAL units contain additional information. This additional information may be parameters needed for the decoding of the encoded video data or supplemental data that may enhance usability of the decoded video data. NAL units 606 correspond to slices and constitute the VCL NAL units of the bitstream.
Different NAL units 601-605 correspond to different parameter sets, 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 whole video, and thus the whole bitstream. The DPS NAL unit may define parameters more static than the parameters in the VPS. In other words, the parameters of DPS change less frequently than the parameter of the VPS.
The Sequence Parameter Set (SPS) NAL unit 603 contains parameters defined for a video sequence. In particular, the SPS NAL unit may define the sub pictures layout and associated parameters of the video sequences. The parameters associated to each subpicture specifies the coding constraints applied to the subpicture. In particular, it comprises a flag indicating that the temporal prediction between subpictures is restricted to the data coming from the same subpicture. Another flag may enable or disable the loop filters across the subpicture boundaries.
The Picture Parameter Set (PPS) NAL unit 604, PPS contains parameters defined for a picture or a group of pictures. The Adaptation Parameter Set (APS) NAL unit 605, contains parameters for loop filters typically the Adaptive Loop Filter (ALF) or the reshaper model (or luma mapping with chroma scaling (LMCS) model) or the scaling matrices that are used at the slice level.
The syntax of the PPS as proposed in the current version of VVC comprises syntax elements that specifies the size of the picture in luma samples and also the partitioning of each picture in tiles and slices.
The PPS contains syntax elements that make it possible to determine the slices location in a frame. Since a subpicture forms a rectangular region in the frame, it is possible to determine the set of slices, the parts of tiles or the tiles that belong to a subpicture from the Parameter Sets NAL units. The PPS as with the APS have an ID mechanism to limit the amount of same PPS's transmitted.
The main difference between the PPS and Picture Header is it transmission, the PPS is generally transmitted for a group of pictures compared to the PH which is systematically transmitted for each Picture. Accordingly, the PPS compared to the PH contains parameters which can be constant for several picture.
The bitstream may also contain Supplemental Enhancement Information (SEI) NAL units (not represented in
The Access Unit Delimiter (AUD) NAL unit 607 separates two access units. An access unit is a set of NAL units which may comprise one or more coded pictures with the same decoding timestamp. This optional NAL unit contains only one syntax element in current VVC specification: pic_type, this syntax element. indicates that the slice_type values for all slices of the coded pictures in the AU. If pic_type is set equal to 0, the AU contain only Intra slice. If equal to 1, it contains P and I slices. If equal to 2 it contains B, P or Intra slice
This NAL unit contains only one syntax element the pic-type.
In JVET-Q2001-vD the pic_type is defined as follow:
“pic_type indicates that the slice_type values for all slices of the coded pictures in the AU containing the AU delimiter NAL unit are members of the set listed in Table 2 for the given value of pic_type. The value 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.”
The rbsp_trailing_bits( ) is a function which adds bits in order to be aligned to the end of a byte. So after, this function, the amount of bitstream parsed is an integer number of bytes.
The PH NAL unit 608 is the Picture Header NAL unit which groups parameters common to a set of slices of one coded picture. The picture may refer to one or more APS to indicate the AFL parameters, reshaper model and the scaling matrices used by the slices of the Picture.
Each of the VCL NAL units 606 contains a slice. A slice may correspond to the whole picture or sub picture, a single tile or a plurality of tiles or a fraction of a tile. For example the slice of the
The syntax of the PPS as proposed in the current version of VVC comprises syntax elements that specifies the size of the picture in luma samples and also the partitioning of each picture in tiles and slices.
The PPS contains syntax elements that make it possible to determine the slices location in a frame. Since a subpicture forms a rectangular region in the frame, it is possible to determine the set of slices, the parts of tiles or the tiles that belong to a subpicture from the Parameter Sets NAL units.
NAL Unit Slice
The NAL unit slice layer contains the slice header and the slice data as illustrated in Table 3.
APS
The Adaptation Parameter Set (APS) NAL unit 605, is defined in Table 4 showing the syntax elements.
As depicted in table Table 4, there are 3 possible types of APS given by the aps_params_type syntax element:
These three types of APS parameters are discussed in turn below
ALF APS
The ALF parameters are described in Adaptive loop filter data syntax elements (Table 5). First, four flags are dedicated to specify whether or not the ALF filters are transmitted for Luma and/or for Chroma and if the CC-ALF (Cross Component Adaptive Loop Filtering) is enabled for Cb component and Cr component. If the Luma filter flag is enabled, another flag is decoded to know if the clip values are signalled (alf_luma_clip_flag). Then the number of filters signalled is decoded using the alf_luma_num_filters_signalled_minus1 syntax element. If needed, the syntax element representing the ALF coefficients delta “alf_luma_coeff_delta_idx” is decoded for each enabled filter. Then absolute value and the sign for each coefficient of each filter are decoded.
If the alf_luma_clip_flag is enabled, the clip index for each coefficient of each enabled filter is decoded.
In the same way, the ALF chroma coefficients are decoded if needed.
If CC-ALF is enabled for Cr or Cb the number of filter are decoded (alf_cc_cb_filters_signalled_minus1or alf_cc_cr_filters_signalled_minus1) and the related coefficients are decoded (alf_cc_cb_mapped_coeff_abs and alf_cc_cb_coeff_sign or respectively alf_cc_cr_mapped_coeff_abs and alf_cc_cr_coeff_sign)
LMCS Syntax Elements for Both Luma Mapping and Chroma Scaling
The Table 6 below gives all the LMCS syntax elements which are 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 APS's can be used in a coded video sequence, however, only a single LMCS APS can be used for a given picture.
These parameters are used to build the forward and inverse mapping functions for Luma and the scaling function for Chroma.
Scaling List APS
The scaling list offers the possibility to update the quantization matrix used for quantification. In VVC this scaling matrix is signalled in the APS as described in Scaling list data syntax elements (Table 7 Scaling list data syntax). The first syntax element specifies if the scaling matrix is used for the LFNST (Low Frequency Non-Separable Transform) tool based on the flag scaling_matrix_for_lfist_disabled_flag. The second one is specified if the scaling list are used for Chroma components (scaling_list_chroma_present_flag). Then the syntax elements needed to build 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).
Picture Header
The picture header is transmitted at the beginning of each picture before the other Slice Data. This is very large compared to the previous headers in the previous drafts of the standard. A complete description of all these parameters can be found in JVET-Q2001-vD. Table 9 shows these parameters in the current picture header decoding syntax.
The related syntax elements which can be decoded are related to:
Then the ph_inter_slice_allowed_flag is decoded to identify that the Inter slice is allowed.
When they are allowed, the flag ph_intra_slice_allowed_flag is decoded to know if the Intra slice are allowed for the current picture.
Then the non_reference_picture_flag, the ph_pic_parameter_set_id indicating the PPS ID and the picture order count ph_pic_order_cnt_lsb are decoded. The picture order count gives the number of the current picture.
If the picture is a GDR or an IRAP picture, the flag no_output_of_prior_pics_flag is decoded.
And if the picture is a GDR the recovery_poc_cnt is decoded. Then ph_poc_msb_present_flag and poc_msb_val are decoded if needed.
ALF
After these parameters describing important information on the current picture, the set of ALF APS id syntax elements are decoded if ALF is enabled at SPS level and if ALF is enabled at picture header level. ALF is enabled at SPS level thanks to the sps_alf_enabled_flag flag. And ALF signalling is enabled at picture header level thanks to the alf_info_in_ph_flag equal to 1 otherwise (alf_info_in_ph_flag equal to 0) ALF is signalled at slice level.
The alf_info_in_ph_flag is defined as the following:
“alf_info_in_ph_flag equal to 1 specifies that ALF information is present in the PH syntax structure and not present in slice headers referring to the PPS that do not contain a PH syntax structure. alf_info_in_ph_flag equal to 0 specifies that ALF information is not present in the PH syntax structure and may be present in slice headers referring to the PPS that do not contain a PH syntax structure.”
First the ph_alf_enabled_present_flag is decoded to determine whether or not if the ph_alf_enabled_flag should be decoded. If the ph_alf_enabled_flag is enabled, ALF is enabled for all slices of the current picture.
If ALF is enabled, the amount of ALF APS id for luma is decoded using the pic_num_alf_aps_ids_luma syntax element. For each APS id, the APS id value for luma is decoded “ph_alf_aps_id_luma”.
For chroma the syntax element, ph_alf_chroma_idc is decoded to determine whether or not ALF is enabled for Chroma, for Cr only, or for Cb only. If it is enabled, the value of the APS ID for Chroma is decoded using the ph_alf_aps_id_chroma syntax element.
In the way the APS ID for CC-ALF method are decoded if needed for Cb and/or CR components
LMCS
The set of LMCS APS ID syntax elements is then decoded if LMCS was enabled at SPS level. First the ph_lmcs_enabled_flag is decoded to determine whether or not LMCS is enabled for the current picture. If LMCS is enabled, the ID value is decoded ph_lmcs_aps_id. For Chroma only the ph_chroma_residual_scale_flag is decoded to enable or disable the method for Chroma.
Scaling List
The set of scaling list APS ID is then decoded if the scaling list is enabled at SPS level. The ph_scaling_list_present_flag is decoded to determine whether or not the scaling matrix is enabled for the current picture. And the value of the APS ID, ph_scaling_list_aps_id, is then decoded.
Subpicture
The Subpicture parameters are enabled when they are enabled at SPS and if the subpicture id signalling is disabled. It also contains some information on virtual boundaries. For the sub picture parameters eight syntax elements are defined:
The pred_weight_table( ) contains the weighted prediction parameters for List L0 and for list L1 when bi-prediction weighted prediction is enabled. When the weighted prediction parameters are transmitted in the picture header the number of weights for each list are explicitly transmitted as depicted in the pred_weight_table( ) syntax table Table 8.
Delta QP
When the picture is Intra the ph_cu_qp_delta_subdiv_intra_slice and the ph_cu_chroma_qp_offset_subdiv_intra_slice are decoded if needed. And if Inter slice is allowed the ph_cu_qp_delta_subdiv_inter_slice and the ph_cu_chroma_qp_offset_subdiv_inter_slice are decoded if needed. Finally, the picture header extension syntax elements are decoded if needed.
All parameters alf_info_in_ph_flag, rpl_info_in_ph_flag, qp_delta_info_in_ph_flag sao_info_in_ph_flag, dbf_info_in_ph_flag, wp_info_in_ph_flag are signalled in the PPS.
Slice Header
The Slice header is transmitted at the beginning of each slice. The slice header contains about 65 syntax elements. This is very large compared to the previous slice header in earlier video coding standards. A complete description of all the slice header parameters can be found in JVET-Q2001-vD. Table 10 shows these parameters in a current slice header decoding syntax.
First the picture_header_in_slice_header_flag is decoded to know if the picture_header_structure( ) is present in the slice header.
The slice_subpic_id if needed, is then decoded to determine the sub picture id of the current slice. Then the slice_address is decoded to determine the address of the current slice. The num_tiles_in_slice_minus1 is then decoded if the number of tiles in the current picture is greater than one.
Then the slice_type is decoded.
If ALF is enabled at SPS level (sps_alf_enabled_flag) and if ALF is signalled in the slice header (alf_info_in_ph_flag equal to 0), then ALF information is decoded. This includes a flag indicating that ALF is enabled for the current slice (slice_alf_enabled_flag). If it is enabled, the number of APS ALF ID for luma (slice_num_alf_aps_ids_luma) is decoded, then the APS ID are decoded (slice_alf_aps_id_luma[i]). Then the slice_alf_chroma_idc is decoded to know if ALF is enabled for the Chroma components and which chroma component it is enabled. Then the APS ID for Chroma is decoded slice_alf_aps_id_chroma if needed. In the same way, the slice_cc_alf_cb_enabled_flag is decoded, if needed, to know if the CC ALF method is enabled. IF CC ALF is enabled, the related APS ID for CR and/or CB are decoded if CC ALF is enabled for CR and/or CB.
If the colour planes are transmitted independently (separate_colour_plane_flag equals to 1) the colour_plane_id is decoded.
When the reference picture lists are not transmitted in the picture header (rpl_info_in_ph_flag equal to 0) and when the Nal unit is not an IDR or if the reference pictures lists are transmitted for IDR pictures (sps_idr_rpl_present_flag equals to 1) then the Reference picture lists parameters are decoded; these are similar to those in the picture header.
If the reference picture lists are transmitted in the picture header (rpl_info_in_ph_flag equal to 1) or the Nal unit is not an IDR or if the reference picture lists are transmitted for IDR pictures (sps_idr_rpl_present_flag equals to 1) and if the number of reference for at least one list is superior to 1, the override flag num_ref_idx_active_override_flag is decoded.
If this flag is enabled the reference index for each list are decoded.
When the slice type is not intra and if needed the cabac_init_flag is decoded. If the reference picture lists are transmitted in the slice header and come other conditions, the slice_collocated_from_l0_flag and the slice_collocated_ref_idx are decoded. These data are related to the CABAC coding and the motion vector collocated.
In the same way, when the slice type is not Intra, the parameters of the weighted prediction pred_weight_table( ) are decoded.
The slice_qp_delta is decoded bif the delta QP information is transmitted in the slice header (qp_delta_info_in_ph_flag equal to 0). If needed the syntax elements, slice_cb_qp_offset, slice_cr_qp_offset, slice_joint_cbcr_qp_offset, cu_chroma_qp_offset_enabled_flag are decoded.
If the SAO information are transmitted in the slice header (sao_info_in_ph_flag equal to 0) and if it is enabled at SPS level (sps_sao_enabled_flag), the enabled flags for SAO are decoded for both luma and chroma: slice_sao_luma_flag, slice_sao_chroma_flag.
Then the deblocking filter parameters are decoded if they are signalled in the slice header (dbf_info_in_ph_flag equal to 0).
The flag slice_ts_residual_coding_disabled_flag is systematically decoded to know if the Transform Skip residual coding method is enabled for the current slice.
If LMCS was enabled in the picture header (ph_lmcs_enabled_flag equal 1), the flag slice_lmcs_enabled_flag is decoded.
In the same way, if the scaling list was enabled in the picture header (phpic_scaling_list_presentenabled_flag equal 1), the flag slice_scaling_list_present_flag is decoded.
Then other parameters are decoded if needed.
Picture Header in the Slice Header
In a particular signalling way, the picture header 708 can be signalled inside the slice header 710 as depicted in the
The flag picture_header_in_slice_header_flag is defined as the following: “picture_header_in_slice_header_flag equal to 1 specifies that the PH syntax structure is present in the slice header. picture_header_in_slice_header_flag equal to 0 specifies that the PH syntax structure is not present in the slice header.
It is a requirement of bitstream conformance that the value of picture_header_in_slice_header_flag shall be the same in all coded slices in a CLVS.
When picture_header_in_slice_header_flag is equal to 1 for a coded slice, it is a requirement of bitstream conformance that no VCL NAL unit with nal_unit_type equal to PH_NUT shall be present in the CLVS.
When picture_header_in_slice_header_flag is equal to 0, all coded slices in the current picture shall have picture_header_in_slice_header_flag is equal to 0, and the current PU shall have a PH NAL unit.
The picture_header_structure( ) contains syntax elements of the picture_rbsp( ) except the stuffing bits rbsp_trailing_bits( ).”
Interaction Between Picture Header in Slice Header and Tools Signalling in Picture Header and Slice Header
The QP Delta information, the reference picture lists parameters, the deblocking filter parameters, the sample adaptive offsets parameters, the weighted prediction parameters and the ALF parameters can be transmitted in the picture header or in the slice header thanks to the respective flags:
qp_delta_info_in_ph_flag
rpl_info_in_ph_flag
dbf_info_in_ph_flag
sao_info_in_ph_flag
wp_info_in_ph_flag
alf_info_in_ph_flag
These flags are transmitted in the PPS.
As shown in Table 11 Summary of XXX signalling according to the flags , by considering “xxx” for one of the mentioned tools, xxx can be signalled in the slice header when xxx_info_in_ph_flag is set equal to 0 with the current syntax. In other words, we use the shorthand XXX or xxx in the subsequent description to refer to the information types (examples of which are given above) that may be signalled in both the picture header and the slice header.
When the picture header is in the slice header this implies only one slice is present for the current picture. Thus, having the information transmitted or transmittable for both slice and picture doesn't increase the flexibility for encoder or decoder as the parameters will be the same. In other words, if the information is in the picture header, corresponding information in the slice header will be redundant. Similarly, if the information is in the slice header, corresponding information in the picture header will be redundant. Embodiments described herein simplify the decoder implementation by limiting the redundancies in the signaling of the same coding. In particular, in embodiments, the information is permitted to be in the picture header but not the slice header when the picture header is signalled in the slice header.
Streaming Applications
Some streaming applications only extract certain parts of the bitstream. These extractions can be spatial (as the sub-picture) or temporal (a subpart of the video sequence). Then these extracted parts can be merged with other bitstreams. Some other reduce the frame rate by extracting only some frames. Generally, the main aim of these streaming applications is to use the maximum of the allowed bandwidth to produce the maximum quality to the end user.
In VVC, the APS ID numbering has been limited for frame rate reduction, in order that a new APS id number for a frame can't be used for a frame at an upper level in the temporal hierarchy. However, for streaming applications which extract parts of the bitstream the APS ID needs to be tracked to determine which APS should be keep for a sub part of the bitstream as the frame (as IRAP) don't reset the numbering of the APS ID.
LMCS (Luma Mapping with Chroma Scaling)
The Luma Mapping with Chroma scaling (LMCS) technique is a sample value conversion method applied on a block before applying the loop filters in a video decoder like VVC.
The LMCS can be divided into two sub-tools. The first one is applied on Luma block while the second sub-tool is applied on Chroma blocks as described below:
Like most other tools in video coder like VVC, LMCS can be enabled/disabled at the sequence level using an SPS flag. Whether chroma residual scaling is enabled or not is also signalled at the slice level. If luma mapping is enabled, an additional flag is signalled to indicate if luma-dependent chroma residual scaling is enabled or not. When luma mapping is not used, luma-dependent chroma residual scaling is fully disabled. In addition, luma-dependent chroma residual scaling is always disabled for the chroma blocks whose size is less than or equal to 4.
Luma Mapping by Using Piece Wise Linear Model.
The luma mapping sub-tool is using a piecewise linear model. It means that the piecewise linear model separates the input signal dynamic range into 16 equal sub-ranges, and for each sub-range, its linear mapping parameters are expressed using the number of codewords assigned to that range.
Semantics for Luma Mapping
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 shall be in the range of 0 to 15, inclusive.
The syntax element lmcs_delta_max_bin_idx specifies the delta value between 15 and the maximum bin index LmcsMaxBinIdx used in the luma mapping with chroma scaling construction process. The value of lmcs_delta_max_bin_idx shall be in the range of 0 to 15, inclusive. The value of LmcsMaxBinIdx is set equal to 15−lmcs_delta_max_bin_idx. The value of LmcsMaxBinIdx shall be greater than or equal to lmcs_min_bin_idx.
The syntax element lmcs_delta_cw_prec_minus1 plus 1 specifies the number of bits used for the representation of the syntax lmcs_delta_abs_cw[i].
The syntax element lmcs_delta_abs_cw[i] specifies the absolute delta codeword value for the ith bin.
The syntax element lmcs_delta_sign_cw_flag[i] specifies the sign of the variable lmcsDeltaCW[i]. When lmcs_delta_sign_cw_flag[i] is not present, it is inferred to be equal to 0.
LMCS Intermediate Variables Computation for Luma Mapping
In order to apply the forward and inverse Luma mapping processes, some intermediate variables and data arrays are needed.
First of all, the variable OrgCW is derived as follows:
OrgCW=(1<<BitDepth)/16
Then, the variable lmcsDeltaCW[i], with i=lmcs_min_bin_idx . . . LmcsMaxBinIdx, is computed as follows:
lmcsDeltaCW[i]=(1−2*lmcs_delta_sign_cw_flag[i])*lmcs_delta_abs_cw[i]
The new variable lmcsCW[i] is derived as follows:
The value of lmcsCW[i] shall be in the range of (OrgCW>>3) to (OrgCW<<3−1), inclusive.
else
InvScaleCoeff[i]=OrgCW*(1<<11)/lmcsCW[i]
Forward Luma Mapping
As illustrated by
The predMapSamples[i][j] is computed as follows:
First of all, an index idxY is computed from the prediction sample
predSamples[i][j], at location (i, j)
idxY=predSamples[i][j]>>Log 2(OrgCW)
Then predMapSamples[i][j] is derived as follows by using the intermediate variables idxY, LmcsPivot[idxY] and InputPivot[idxY] of section 0:
predMapSamples[i][j]=LmcsPivot[idxY]+(ScaleCoeff[idxY]*(predSamples[i][j]−InputPivot[idxY])+(1<<10))>>11
Luma Reconstruction Samples
The reconstruction process is obtained from the predicted luma sample predMapSample[i][j] and the residual luma samples resiSamples[i][j].
The reconstructed luma picture sample recSamples [i][j] is simply obtained by adding predMapSample[i][j] to resiSamples[i][j] as follows:
recSamples[i][j]=Clip1(predMapSamples[i][j]+resiSamples[i][i]])
In this above relation, the Clip 1 function is a clipping function to make sure that the reconstructed sample is between 0 and 1<<BitDepth−1.
Inverse Luma Mapping
When applying the inverse luma mapping according to
First, an index idxY is computed from the reconstruction sample
recSamples[i][j], at location (i,j)
idxY=recSamples[i][j]>>Log 2(OrgCW)
The inverse mapped luma sample invLumaSample[i][j] is derived as follows based on the:
invLumaSample[i][j]=InputPivot[idxYInv]+(InvScaleCoeff[idxYInv]*(recSample[i][j]−LmcsPivot[idxYInv])+(1<<10))>>11
A clipping operation is then done to get the final sample:
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 shall be in the range of 0 and 7, inclusive. When not present, lmcs_delta_abs_crs is inferred to be equal to 0.
The syntax element lmcs_delta_sign_crs_flag specifies the sign of the variable lmcsDeltaCrs. When not present, lmcs_delta_sign_crs_flag is inferred to be equal to 0.
LMCS Intermediate Variable Computation for Chroma Scaling
To apply the Chroma scaling process, some intermediate variables are needed.
The variable lmcsDeltaCrs is derived as follows:
lmcsDeltaCrs=(1−2*lmcs_delta_sign_crs_flag)*lmcs_delta_abs_crs
The variable ChromaScaleCoeff[i], with i=0 . . . 15, is derived as follows:
if(lmcsCW[i]==0)
ChromaScaleCoeff[i]=(1<11)
else
ChromaScaleCoeff[i]=OrgCW*(1<<11)/(lmcsCW[i]+lmcsDeltaCrs)
Chroma Scaling Process
In a first step, the variable invAvgLuma is derived in order to compute the average luma value of reconstructed Luma samples around the current corresponding Chroma block. The average Luma is computed from left and top luma block surrounding the corresponding Chroma block If no sample is available the variable invAvgLuma is set as follows:
invAvgLuma=1<<(BitDepth−1)
Based on the intermediate arrays LmcsPivot[ ] of section 0, the variable idxYInv is then derived as follows:
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:
varScale=ChromaScaleCoeff[idxYInv]
When a transform is applied on the current Chroma block, the reconstructed Chroma picture sample array recSamples is derived as follows
recSamples[i][j]=Clip1(predSamples[i][j]+Sign(resiSamples[i][j])*((Abs(resiSamples[i][j])*varScale+(1<<10))>>11))
If no transform has been applied for the current block, the following applies:
recSamples[i][j]=Clip1(predSamples[i][j])
Encoder Consideration
The basic principle of an LMCS encoder is to first assign more codewords to ranges where those dynamic range segments have lower codewords than the average variance. In an alternative formulation of this, the main target of LMCS is to assign fewer codewords to those dynamic range segments that have higher codewords than the average variance. In this way, smooth areas of the picture will be coded with more codewords than average, and vice versa.
All the parameters (see Table 6) of the LMCS tools which are stored in the APS are determined at the encoder side. The LMCS encoder algorithm is based on the evaluation of local luma variance and is optimizing the determination of the LMCS parameters according to the basic principle described above. The optimization is then conducted to get the best PSNR metrics for the final reconstructed samples of a given block.
Embodiments where Information is Signalled in the Picture Header and not in the Slice Header
In embodiments, the signalling of an information which can be signalled into the picture header or in the slice header is signalled in the picture header and not in the slice header when the picture header is signalled in the slice header. In an equivalent way, the picture header is not signalled in the slice header when the signalling of an information, which can be signalled into the picture header or in the slice header, is signalled in the slice header. In another equivalent way, the picture header is signalled in the slice header when the signalling of an information, which can be signalled into the picture header or in the slice, is signalled in the picture header. Table 12 illustrates an implementation of embodiments where a tool name is replaced by XXX. In this table, the signalling of parameters is not authorized in the slice header when the picture header is signalled in the slice header.
In one embodiment, the following condition is added in the semantics of xxx_info_in_ph_flag:
“When slice headers referring to the PPS contains the PH syntax structure, it is a requirement of bitstream conformance that XXX_info_in_ph_flag shall be equal to 1.”
And/or
“When XXX_info_in_ph_flag is equal to 0, the picture_header_in_slice_header_flag shall be equal to 0”
When the picture header is in the slice header this implies only one slice is present for the current picture. Thus, having the information transmitted or transmittable for both slice and picture doesn't increase the flexibility for encoder or decoder as the parameters will be the same. In other words, if the information is in the picture header, corresponding information in the slice header will be redundant. Similarly, if the information is in the slice header, corresponding information in the picture header will be redundant. By enforcing a condition so that such information may be in the picture header and not in the slice header in a case where the picture header is in the slice header, the decoder implementation may be simplified by limiting the redundancies in the signaling.
QP (Quantization Parameter) Delta
In an embodiment, the QP delta signalling is avoided in the slice header when the picture header is signalled in the slice header. In an equivalent way, the picture header is not signalled in the slice header when the QP delta signalling, is signalled in the slice header. In another equivalent way, the picture header is signalled in the slice header when the QP delta is signalled in the picture header. In other words, the tool XXX mentioned above is QP Delta.
Table 13 illustrates a way that this may be implemented so that signalling of QP delta information is not authorized (i.e. not permitted) when the picture header is signalled in the slice header.
When the picture header is in the slice header (implying only one slice is present for the current picture) the information being transmittable in slice and picture header doesn't increase the flexibility for encoder or decoder as the parameters will be the same. So to reduce the decoder implementation complexity it is better to have only one possible signaling QP delta information in one of the slice or picture header to code the same coding possibility, in this case the QP delta parameters (qp_delta_info).
In an implementation of the first embodiment following condition may be added in the semantics of qp_delta_info_in_ph_flag:
“When slice headers referring to the PPS contain the PH syntax structure, it is a requirement of bitstream conformance that qp_delta_info_in_ph_flag shall be equal to 1.”
And/or
“When qp_delta_info_in_ph_flag is equal to 0, the picture_header_in_slice_header_flag shall be equal to 0”
In another embodiment, the decoding QP delta parameters in the slice header are authorized only when the value of the flag picture_header_in_slice_header_flag is set equal to 0 as depicted in Table 14. Modifications to the syntax are shown in underline. In this table, the slice_qp_delta information of the slice header can be decoded if QP delta information is signalled at slice level (qp_delta_info_in_ph_flag equal to 0) and if the picture header is not transmitted in the slice header (picture_header_in_slice_header_flag equal to 0).
In an embodiment, the decoding QP delta parameters in the Picture header are systematically authorized when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 15. According to this table, the QP delta information of the slice header can be decoded only if QP delta information is signalled in the picture header (qp_delta_info_in_ph_flag equal to 1) or if the picture header is transmitted in the slice header (picture_header_in_slice_header_flag equal to 1).
Reference Picture List (RPL)
In one embodiment, the signalling of reference picture lists is avoided in the slice header when the picture header is signalled in the slice header. In an equivalent way, the picture header is not signalled in the slice header when the signalling of reference picture lists, is signalled in the slice header. In another equivalent way, the picture header is signalled in the slice header when the signalling of reference picture lists is signalled in the picture header. In other words, the tool XXX mentioned above is RPL In other words, the tool XXX mentioned above is RPL.
Table 16 illustrates shows an implementation of this embodiment where RPL signalling is not authorized when the picture header is signalled in the slice header.
When the picture header is in the slice header (implying only one slice is present for the current picture) the information being transmittable in slice and picture header doesn't increase the flexibility for encoder or decoder as the parameters will be the same. According to this embodiment, the decoder implementation complexity is reduced because it is better to have only one possible signaling of information, in one of the slice or picture header to code the same coding possibility, in this case the reference picture list (RPL) information (rpl_info).
In an embodiment, the following condition is added in the semantics of rpl_info_in_ph_flag:
“When slice headers referring to the PPS contain the PH syntax structure, it is a requirement of bitstream conformance that rpl_info_in_ph_flag shall be equal to 1.”
And/or
“When rpl_info_in_ph_flag is equal to 0, the picture_header_in_slice_header_flag shall be equal to 0”
In an embodiment, the decoding of reference picture lists parameters in the slice header is authorized only when the value of the flag picture_header_in_slice_header_flag is set equal to 0 as depicted in Table 17. In this table, the ref_pic_lists( ) information of the slice header can be decoded if the reference picture lists information is signalled at slice level (rpl_info_in_ph_flag equal to 0) and if the picture header is not transmitted in the slice header (picture_header_in_slice_header_flag equal to 0).
In an embodiment, the temporal parameters slice_collocated_from_l0_flag and slice_collocated_ref_idx can't be decoded when the picture header is in the slice header as depicted in Table 17.
!picture_header_in_slice_header_flag) {
In an embodiment, the decoding of RPL parameters in the Picture header is systematically authorized when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 18. In this table the RPL information of the picture header can be decoded only if RPL information is signalled at picture level (rpl_info_in_ph_flag equal to 1) or if the picture header is transmitted in the slice header (picture_header_in_slice_header_flag equal to 1).
In an embodiment, the temporal parameters ph_collocated_from_l0_flag and ph_collocated_ref_idx can be decoded when the picture header is in the slice header as depicted in Table 18.
picture_header_in_slice_header_flag ) {
Deblocking Filter (DBF)
In an embodiment, the signalling of deblocking filter parameters is avoided in the slice header when the picture header is signalled in the slice header. In an equivalent way, the picture header is not signalled in the slice header when the signalling of deblocking filter parameters, is signalled in the slice header. In another equivalent way, the picture header is signalled in the slice header when the signalling of deblocking filter parameters is signalled in the picture header. In other words, the tool XXX mentioned above is DBF. In other words, the tool XXX mentioned above is DBF.
Table 19 illustrates an implementation according to this embodiment where DBF signalling is not authorized when the picture header is signalled in the slice header.
When the picture header is in the slice header, as only one slice is present for the current picture, the information transmitted in slice or picture doesn't increase the flexibility for encoder or decoder as the parameters are the same. So to reduce the decoder implementation complexity it is better to have only one possible signaling of DBF information to code the same coding possibility.
In an embodiment, the following condition is added in the semantics of dbf_info_in_ph_flag:
“When slice headers referring to the PPS contain the PH syntax structure, it is a requirement of bitstream conformance that dbf_info_in_ph_flag shall be equal to 1.”
And/or
“When dbf_info_in_ph_flag is equal to 0, the picture_header_in_slice_header_flag shall be equal to 0”
In an embodiment, the DBF parameters in the slice header are authorized only when the value of the flag picture_header_in_slice_header_flag is set equal to 0 as depicted in Table 20. In this table, the slice_deblocking_filter_override_flag flag of the slice header can be decoded if DBF information is signalled at slice level (dbf_info_in_ph_flag equal to 0) and if the picture header is not transmitted in the slice header (picture_header_in_slice_header_flag equal to 0).
!picture_header_in_slice_header_flag)
In an embodiment, the DBF parameters in the picture header is systematically authorized when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 21. In this table the DBF information of the slice header can be decoded only if DBF information is signalled in the picture header (dbf_info_in_ph_flag equal to 1) or if the picture header is transmitted in the slice header (picture_header_in_slice_header_flag equal to 1).
picture_header_in_slice_header_flag ) ) {
SAO (Sample Adaptive Offset)
In one embodiment, the SAO signalling is avoided in the slice header when the picture header is signalled in the slice header. In an equivalent way, the picture header is not signalled in the slice header when the SAO signalling, is signalled in the slice header. In another equivalent way, the picture header is signalled in the slice header when the SAO signalling is signalled in the picture header. In other words, the tool XXX mentioned above is SAO.
Table 22 illustrates this embodiment where SAO signalling is not authorized when the picture header is signalled in the slice header.
When the picture header is in the slice header, as only one slice is present for the current picture, the information transmitted in slice or picture doesn't increase the flexibility for encoder or decoder as the parameters are the same. So to reduce the decoder implementation complexity it is better to have only one possible signaling of SAO information to code the same coding possibility.
In an embodiment, the following condition is added in the semantics of sao_info_in_ph_flag:
“When slice headers referring to the PPS contain the PH syntax structure, it is a requirement of bitstream conformance that sao_info_in_ph_flag shall be equal to 1.”
And/or
“When sao_info_in_ph_flag is equal to 0, the picture_header_in_slice_header_flag shall be equal to 0”
In an embodiment, the decoding SAO parameters in the slice header is authorized only when the value of the flag picture_header_in_slice_header_flag is set equal to 0 as depicted in
Table 23. In this table the slice_sao_luma_flag flag of the slice header can be decoded if SAO information is signalled at slice level (sao_info_in_ph_flag equal to 0) and if the picture header is not transmitted in the slice header (picture_header_in_slice_header_flag equal to 0).
!picture_header_in_slice_header_flag ) {
In an embodiment, the decoding SAO parameters in the Picture header is systematically authorized when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 24. In this table the SAO information of the slice header can be decoded only if SAO information is signalled in the picture header (sao_info_in_ph_flag equal to 1) or if the picture header is transmitted in the slice header (picture_header_in_slice_header_flag equal to 1).
picture_header_in_slice_header_flag)) {
Weighted Prediction (WP)
In one embodiment, the signalling of the weighted prediction is avoided in the slice header when the picture header is signalled in the slice header. In an equivalent way, the picture header is not signalled in the slice header when the signalling of the weighted prediction, is signalled in the slice header. In another equivalent way, the picture header is signalled in the slice header when the signalling of the weighted prediction is signalled in the picture header. In other words, the tool XXX mentioned above is WP.
As shown in Table 25, WP parameters can be signalled in the slice header when wp_info_in_ph_flag is set equal to 0 with the current syntax.
Table 25 illustrates an implementation of this embodiment where WP signalling is not authorized when the picture header is signalled in the slice header.
When the picture header is in the slice header, as only one slice is present for the current picture, the information transmitted in slice or picture doesn't increase the flexibility for encoder or decoder as the parameters are the same. So to reduce the decoder implementation complexity it is better to have only one possible signaling of WP info to code the same coding possibility.
In an embodiment, the following condition is added in the semantics of wp_info_in_ph_flag:
“When slice headers referring to the PPS contain the PH syntax structure, it is a requirement of bitstream conformance that wp_info_in_ph_flag shall be equal to 1.”
And/or
“When wp_info_in_ph_flag is equal to 0, the picture_header_in_slice_header_flag shall be equal to 0”
In an embodiment, the decoding WP parameters in the slice header is authorized only when the value of the flag picture_header_in_slice_header_flag is set equal to 0 as depicted in Table 26. In this table the pred_weight_table( ) function containing weighted prediction parameters can be decoded if WP information is signalled at slice level (wp_info_in_ph_flag equal to 0) and if the picture header is not transmitted in the slice header (picture_header_in_slice_header_flag equal to 0).
In an embodiment, the decoding WP parameters in the Picture header are systematically authorized when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 27. In this table the WP information can be decoded only if WP information is signalled in the picture header (wp_info_in_ph_flag equal to 1) or if the picture header is transmitted in the slice header (picture_header_in_slice_header_flag equal to 1).
picture_header_in_slice_header_flag) )
ALF
In one embodiment, the signalling of ALF is avoided in the slice header when the picture header is signalled in the slice header. In an equivalent way, the picture header is not signalled in the slice header when the signalling of ALF, is signalled in the slice header. In another equivalent way, the picture header is signalled in the slice header when the signalling of ALF is signalled in the picture header. In other words, the tool XXX mentioned above is ALF.
Indeed, currently when the picture header is signalled in the slice header (picture_header_in_slice_header_flag=1) and when the ALF is signalled in the slice header (alf_info_in_ph_flag=0), all the parameters of the picture header should be parsed before obtaining the ALF APS ID. Consequently, it increases the complexity of the parsing for some streaming applications as all variables of PPS, SPS, picture header etc. should be keep in memory to parse the ALF APS ID.
Moreover, when the picture header is in the slice header, as only one slice is present for the current picture, the information transmitted in slice or picture doesn't increase the flexibility for encoder or decoder as the parameters are the same. So to reduce the decoder implementation complexity it is better to have only one possible signaling to code the same coding possibility. Table 28 illustrates this embodiment where ALF signalling is not authorized when the picture header is signalled in the slice header.
In an embodiment, the following condition is added in the semantics of aif_info_in_ph_flag:
“When slice headers referring to the PPS contain the PH syntax structure, it is a requirement of bitstream conformance that alf_info_in_ph_flag shall be equal to 1.”
And/or
“When alf_info_in_ph_flag is equal to 0, the picture_header_in_slice_header_flag shall be equal to 0”
In an embodiment, the decoding ALF parameters in the slice header is authorized only when the value of the flag picture_header_in_slice_header_flag is set equal to 0 as depicted in Table 29. In this table the ALF information of the slice header can be decoded only if ALF is enabled at SPS level (sps_alf_enabled_flag equal to 1) and if ALF information is signalled at slice level (alf_info_in_ph_flag equal to 0) and if the picture header is not transmitted in the slice header (picture_header_in_slice_header_flag equal to 0).
!picture_header_in_slice_header_flag ) {
In an embodiment, the decoding ALF parameters in the Picture header is systematically authorized when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 30. In this table the ALF information of the slice header can be decoded only if ALF is enabled at SPS level (sps_alf_enabled_flag equal to 1) and if ALF information is signalled at picture level (alf_info_in_ph_flag equal to 1) or if the picture header is transmitted in the slice header (picture_header_in_slice_header_flag equal to 1).
All Tools/Parameters
In one embodiment, when the picture header is signalled in the slice header, all tools (and/or parameters) which can be signalled in the picture header or in the slice header are restricted to being signalled in the picture header. As mention in the above description, in an embodiment, the related tools are: QP delta information, reference picture lists, deblocking filter, SAO Weighted prediction and ALF. Other tools may be possible, however, where they are able to be signalled in both the slice and picture header.
This can be expressed by adding the following constraint:
“When at least one of the flags rpl_info_in_ph_flag, dbf_info_in_ph_flag, sao_info_in_ph_flag, alf_info_in_ph_flag, wp_info_in_ph_flag, qp_delta_info_in_ph_flag is set equal to 0, the value of picture_header_in_slice_header_flag shall be equal to 0.”
And/Or by adding:
“When picture_header_in_slice_header_flag is equal to 1, the flags rpl_info_in_ph_flag, dbf_info_in_ph_flag, sao_info_in_ph_flag, wp_info_in_ph_flag, qp_delta_info_in_ph_flag shall be equal to 1.”
And/Or by adding to each XXX_info_in_ph_flag the following constraint:
“When slice headers referring to the PPS contain the PH syntax structure, it is a requirement of bitstream conformance that XXX_info_in_ph_flag shall be equal to 1.”
When all these parameters are signalled in the same header it reduces the decoder implementation complexity as it is better to have only one possible signaling to code the same coding possibility.
Signalling Order Embodiment
In one alternatives embodiment of the previous ones related to ALF, the information related to ALF APS ID in the slice header is set before the picture header structure as depicted in Table 31. With this embodiment, when ALF is signalled in the slice header and when the picture header is signalled in the slice header, the APS ID can be obtained quickly without parsed all the parameters of the picture header.
Number of Weights Embodiment
In an embodiment when the picture header is in the slice header, the number of weights for the weighted prediction for each list L0 L1 is decoded as depicted in the partial table of syntax element Table 32. Accordingly, the signalling of the number of weights may be restricted to the picture header.
picture_header_in_slice_header_flag) )
Summary of Embodiments where Information is Signalled in the Slice Header and not in the Picture Header
In one embodiment, the signalling of an information which can be signalled into the picture header or in the slice header is signalled in the slice header and not in the picture header when the picture header is signalled in the slice header. In an equivalent way, the picture header is not signalled in the slice header when the signalling of an information, which can be signalled into the picture header or in the slice header, is signalled in the picture header. In another equivalent way, the picture header is signalled in the slice header when the signalling of an information, which can be signalled into the picture header or in the slice header, is signalled in the slice header. Table 33 illustrates this embodiment where a tool (or parameter) name is replaced by XXX. In this table, the signalling of parameters is not authorized in the picture header when the picture header is signalled in the slice header.
In one embodiment, the following condition is added in the semantics of xxx_info_in_ph_flag:
“When slice headers referring to the PPS contain the PH syntax structure, it is a requirement of bitstream conformance that XXX_info_in_ph_flag shall be equal to 0.”
And/or
“When XXX_info_in_ph_flag is equal to 1, the picture_header_in_slice_header_flag shall be equal to 0”
When the picture header is in the slice header this implies only one slice is present for the current picture. Thus, having the information transmitted or transmittable for both slice and picture doesn't increase the flexibility for encoder or decoder as the parameters will be the same. In other words, if the information is in the picture header, corresponding information in the slice header will be redundant. Similarly, if the information is in the slice header, corresponding information in the picture header will be redundant. Embodiments described herein simplify the decoder implementation by limiting the redundancies in the signaling of the same coding. In particular, in embodiments, the information is permitted to be in the slice header but not the picture header when the picture header is signalled in the slice header.
QP Delta
In one embodiment the tool XXX is the QP delta. In an embodiment, the decoding QP delta parameters in the slice header is authorized when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 33. In an equivalent way, picture_header_in_slice_header_flag is set equal to 0, when the QP delta parameters are signalled in the picture header as depicted in Table 33. In another equivalent way, the picture_header_in_slice_header_flag is set equal to 1, when the QP delta parameters are signalled in the slice header as depicted in Table 33. In this table the slice_qp_delta information of the slice header can be decoded if QP delta information is signalled at slice level (qp_delta_info_in_ph_flag equal to 0) or if the picture header is transmitted in the slice header (picture_header_in_slice_header_flag equal to 1).
This can be obtained by adding to the semantics:
“When slice headers referring to the PPS contain the PH syntax structure, it is a requirement of bitstream conformance that qp_delta_info_in_ph_flag shall be equal to 0.”
And/or
“When qp_delta_info_in_ph_flag is equal to 1, the picture_header_in_slice_header_flag shall be equal to 0”
In an embodiment, the decoding QP delta parameters in the picture header is systematically avoided when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 35. In this table the QP delta information of the picture header can be decoded only if QP delta information is signalled in the picture header (qp_delta_info_in_ph_flag equal to 1) and if picture_header_in_slice_header_flag is set equal to 0.
RPL (Reference Picture List)
In one embodiment the tool XXX is the reference picture lists. In an embodiment, the decoding of reference picture lists parameters in the slice header is authorized only when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 33. In an equivalent way, picture_header_in_slice_header_flag is set equal to 0, when the reference picture lists parameters are signalled in the picture header as depicted in Table 33. In another equivalent way, the picture_header_in_slice_header_flag is set equal to 1, when the reference picture lists parameters are signalled in the slice header as depicted in Table 33. In this table, the ref_pic_lists( ) information of the slice header can be decoded if the reference picture lists information is signalled at slice level (rpl_info_in_ph_flag equal to 0) and if the picture header is transmitted in the slice header (picture_header_in_slice_header_flag equal to 1).
In an embodiment, the temporal parameters slice_collocated_from_l0_flag and slice_collocated_ref_idx can be decoded when the picture header is in the slice header as depicted in Table 34.
In an embodiment, the decoding of RPL parameters in the Picture header is systematically avoided when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 35. In this table the RPL information of the picture header can be decoded only if RPL information is signalled at picture level (rpl_info_in_ph_flag equal to 1) and if picture_header_in_slice_header_flag is set equal to 0.
In an embodiment, the temporal parameters ph_collocated_from_l0_flag and ph_collocated_ref_idx can't be decoded when the picture header is in the slice header as depicted in Table 35.
Deblocking Filter (DBF)
In one embodiment the tool XXX is the deblocking filter (DBF). In one alternative or additional embodiment, the DBF parameters in the slice header are authorized when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 33. In an equivalent way, picture_header_in_slice_header_flag is set equal to 0, when the DBF parameters are signalled in the picture header as depicted in Table 33. In another equivalent way, the picture_header_in_slice_header_flag is set equal to 1, when the DBF parameters are signalled in the slice header as depicted in Table 33. In this table the slice_deblocking_filter_override_flag flag of the slice header can be decoded if DBF information is signalled at slice level (dbf_info_in_ph_flag equal to 0) or if the picture header is transmitted in the slice header (picture_header_in_slice_header_flag equal to 1).
In an embodiment, the DBF parameters in the picture header are systematically avoided when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 35. In this table the DBF information of the picture header can be decoded only if DBF information is signalled in the picture header (dbf_info_in_ph_flag equal to 1) and if picture_header_in_slice_header_flag is equal to 0.
Sample Adaptive Offset (SAO)
In one embodiment the tool XXX is SAO (Sample Adaptive Offset). In one alternative or additional embodiment, the SAO parameters in the slice header are authorized only when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 33. In an equivalent way, picture_header_in_slice_header_flag is set equal to 0, when the SAO parameters are signalled in the picture header as depicted in Table 33. In another equivalent way, the picture_header_in_slice_header_flag is set equal to 1, when the SAO parameters are signalled in the slice header as depicted in Table 33. In this table the slice_sao_luma_flag flag of the slice header can be decoded if SAO information is signalled at slice level (sao_info_in_ph_flag equal to 0) and if the picture header is transmitted in the slice header (picture_header_in_slice_header_flag equal to 1).
In an embodiment, the SAO parameters in the picture header are systematically avoided when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 35. In this table the SAO information of the picture header can be decoded only if SAO information is signalled in the picture header (sao_info_in_ph_flag equal to 1) and if picture_header_in_slice_header_flag is set equal to 0.
WP (Weighted Prediction)
In one embodiment the tool XXX is the WP (Weighted prediction). In an embodiment, the WP parameters in the slice header are authorized only when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 33. In an equivalent way, picture_header_in_slice_header_flag is set equal to 0, when the WP parameters are signalled in the picture header as depicted in Table 33. In another equivalent way, the picture_header_in_slice_header_flag is set equal to 1, when the WP parameters are signalled in the slice header as depicted in Table 33. In this table the pred_weight_table( ) function containing weighted prediction parameters can be decoded if WP information is signalled at slice level (wp_info_in_ph_flag equal to 0) or if the picture header is transmitted in the slice header (picture_header_in_slice_header_flag equal to 1).
In one additional embodiment, the decoding WP parameters in the Picture header is systematically avoided when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 35. In this table the WP information can be decoded only if WP information is signalled in the picture header (wp_info_in_ph_flag equal to 1) and if picture_header_in_slice_header_flag is set equal to 0.
ALF (Adaptive Loop Filter)
In one embodiment the tool XXX is the ALF (Adaptive loop filter). In an embodiment, the decoding ALF parameters in the slice header is authorized only when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 33. In an equivalent way, picture_header_in_slice_header_flag is set equal to 0, when the ALF parameters are signalled in the picture header as depicted in Table 33. In another equivalent way, the picture_header_in_slice_header_flag is set equal to 1, when the ALF parameters are signalled in the slice header as depicted in Table 33 In this table the ALF information of the slice header can be decoded only if ALF is enabled at SPS level (sps_alf_enabled_flag equal to 1) and if ALF information is signalled at slice level (alf_info_in_ph_flag equal to 0) or if the picture header is transmitted in the slice header (picture_header_in_slice_header_flag equal to 1).
In an embodiment, the decoding ALF parameters in the picture header is systematically avoided when the value of the flag picture_header_in_slice_header_flag is set equal to 1 as depicted in Table 35. In this table the ALF information of the slice header can be decoded only if ALF is enabled at SPS level (sps_alf_enabled_flag equal to 1) and if ALF information is signalled at picture level (alf_info_in_ph_flag equal to 1) and if picture_header_in_slice_header_flag is set equal to 0.
picture_header_in_slice_header_flag) ) {
picture_header_in_slice_header_flag) ) {
picture_header_in_slice_header_flag) )
!picture_header_in_slice_header_flag) ) {
!picture_header_in_slice_header_flag ) {
&& !picture_header_in_slice_header_flag)
!picture_header_in_slice_header_flag ) {
!picture_header_in_slice_header_flag ) {
All Tools/Parameters
In an embodiment, when the picture header is signalled in the slice header, all tools (and/or parameters) which can be signalled in the picture header or in the slice header are signalled in the slice header. As mention in the above description in an embodiment, the related tools are: QP delta information, reference picture lists, deblocking filter, SAO Weighted prediction and ALF. Other tools may be possible, however, where they are able to be signalled in both the slice and picture header.
This can be expressed by adding the following constraint:
“When at least one of the flags rpl_info_in_ph_flag, dbf_info_in_ph_flag, sao_info_in_ph_flag, alf_info_in_ph_flag, wp_info_in_ph_flag, qp_delta_info_in_ph_flag is set equal to 1, the value of picture_header_in_slice_header_flag shall be equal to 0.”
And/Or by adding:
“When picture_header_in_slice_header_flag is equal to 1, the flags rpl_info_in_ph_flag, dbf_info_in_ph_flag, sao_info_in_ph_flag, wp_info_in_ph_flag, qp_delta_info_in_ph_flag shall be equal to 0.”
And/Or by adding to each XXX_info_in_ph_flag the following constraint:
“When slice headers referring to the PPS contain the PH syntax structure, it is a requirement of bitstream conformance that XXX_info_in_ph_flag shall be equal to 0.”
When all these parameters are signalling in the same header it reduces the decoder implementation complexity as it is better to have only one possible signaling for tools or parameters where they will inevitably have the same values or properties.
Implementations
Any step of the method/process according to the invention or functions described herein may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the steps/functions may be stored on or transmitted over, as one or more instructions or code or program, or a computer-readable medium, and executed by one or more hardware-based processing unit such as a programmable computing machine, which may be a PC (“Personal Computer”), a DSP (“Digital Signal Processor”), a circuit, a circuitry, a processor and a memory, a general purpose microprocessor or a central processing unit, a microcontroller, an ASIC (“Application-Specific Integrated Circuit”), a field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Accordingly, the term “processor” as used herein may refer to any of the foregoing structure or any other structure suitable for implementation of the techniques describe herein.
Embodiments of the present invention can also be realized by wide variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC) or a set of JCs (e.g. a chip set). Various components, modules, or units are described herein to illustrate functional aspects of devices/apparatuses configured to perform those embodiments, but do not necessarily require realization by different hardware units. Rather, various modules/units may be combined in a codec hardware unit or provided by a collection of interoperative hardware units, including one or more processors in conjunction with suitable software/firmware.
Embodiments of the present invention can be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium to perform the modules/units/functions of one or more of the above-described embodiments and/or that includes one or more processing unit or circuits for performing the functions of one or more of the above-described embodiments, and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiments and/or controlling the one or more processing unit or circuits to perform the functions of one or more of the above-described embodiments. The computer may include a network of separate computers or separate processing units to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a computer-readable medium such as a communication medium via a network or a tangible storage medium. The communication medium may be a signal/bitstream/carrier wave. The tangible storage medium is a “non-transitory computer-readable storage medium” which may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like. At least some of the steps/functions may also be implemented in hardware by a machine or a dedicated component, such as an FPGA (“Field-Programmable Gate Array”) or an ASIC (“Application-Specific Integrated Circuit”).
It is also understood that according to another embodiment of the present invention, a decoder according to an aforementioned embodiment is provided in a user terminal such as a computer, a mobile phone (a cellular phone), a table or any other type of a device (e.g. a display apparatus) capable of providing/displaying a content to a user. According to yet another embodiment, an encoder according to an aforementioned embodiment is provided in an image capturing apparatus which also comprises a camera, a video camera or a network camera (e.g. a closed-circuit television or video surveillance camera) which captures and provides the content for the encoder to encode. Two such examples are provided below with reference to
Network Camera
The network camera 2102 includes an imaging unit 2106, an encoding unit 2108, a communication unit 2110, and a control unit 2112.
The network camera 2102 and the client apparatus 2104 are mutually connected to be able to communicate with each other via the network 200.
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)), and captures an image of an object and generates image data based on the image. This image can be a still image or a video image.
The encoding unit 2108 encodes the image data by using said encoding methods described above
The communication unit 2110 of the network camera 2102 transmits the encoded image data encoded by the encoding unit 2108 to the client apparatus 2104.
Further, the communication unit 2110 receives commands from client apparatus 2104. The commands include commands to set parameters for the encoding of the encoding unit 2108.
The control unit 2112 controls other units in the network camera 2102 in accordance with the commands received by the communication unit 2110.
The client apparatus 2104 includes a communication unit 2114, a decoding unit 2116, and a control unit 2118.
The communication unit 2114 of the client apparatus 2104 transmits the commands to the network camera 2102.
Further, the communication unit 2114 of the client apparatus 2104 receives the encoded image data from the network camera 2102.
The decoding unit 2116 decodes the encoded image data by using said decoding methods described above.
The control unit 2118 of the client apparatus 2104 controls other units in the client apparatus 2104 in accordance with the user operation or commands received by the communication unit 2114.
The control unit 2118 of the client apparatus 2104 controls a display apparatus 2120 so as to display an image decoded by the decoding unit 2116.
The control unit 2118 of the client apparatus 2104 also controls a display apparatus 2120 so as to display GUI (Graphical User Interface) to designate values of the parameters for the network camera 2102 includes the parameters for the encoding of the encoding unit 2108.
The control unit 2118 of the client apparatus 2104 also controls other units in the client apparatus 2104 in accordance with user operation input to the GUI displayed by the display apparatus 2120.
The control unit 2119 of the client apparatus 2104 controls the communication unit 2114 of the client apparatus 2104 so as to transmit the commands to the network camera 2102 which designate values of the parameters for the network camera 2102, in accordance with the user operation input to the GUI displayed by the display apparatus 2120.
Smart Phone
The smart phone 2200 includes a communication unit 2202, a decoding unit 2204, a control unit 2206, display unit 2208, an image recording device 2210 and sensors 2212.
the communication unit 2202 receives the encoded image data via network 200.
The decoding unit 2204 decodes the encoded image data received by the communication unit 2202.
The decoding unit 2204 decodes the encoded image data by using said decoding methods described above.
The control unit 2206 controls other units in the smart phone 2200 in accordance with a user operation or commands received by the communication unit 2202.
For example, the control unit 2206 controls a display unit 2208 so as to display an image decoded by the decoding unit 2204.
While the present invention has been described with reference to embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. It will be appreciated by those skilled in the art that various changes and modification might be made without departing from the scope of the invention, as defined in the appended claims. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and/or all of the steps of any method or process so disclosed, may be combined in any combination, except combinations where 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) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise. Thus, unless expressly stated otherwise, each feature disclosed is one example only of a generic series of equivalent or similar features.
It is also understood that any result of comparison, determination, assessment, selection, execution, performing, or consideration described above, for example a selection made during an encoding or filtering process, may be indicated in or determinable/inferable from data in a bitstream, for example a flag or data indicative of the result, so that the indicated or determined/inferred result can be used in the processing instead of actually performing the comparison, determination, assessment, selection, execution, performing, or consideration, for example during a decoding process.
In the claims, the word “comprising” does not exclude other elements or steps, and the indefinite article “a” or “an” does 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 advantageously used.
Reference numerals appearing in the claims are by way of illustration only and shall have no limiting effect on the scope of the claims.
| Number | Date | Country | Kind |
|---|---|---|---|
| 2003562 | Mar 2020 | GB | national |
| 2005741 | Apr 2020 | GB | national |
| Filing Document | Filing Date | Country | Kind |
|---|---|---|---|
| PCT/EP2021/055661 | 3/5/2021 | WO |
| Publishing Document | Publishing Date | Country | Kind |
|---|---|---|---|
| WO2021/180595 | 9/16/2021 | WO | A |
| Number | Name | Date | Kind |
|---|---|---|---|
| 11632569 | Li | Apr 2023 | B2 |
| 11683522 | Li | Jun 2023 | B2 |
| 11716478 | Li | Aug 2023 | B2 |
| 12063362 | Zhang | Aug 2024 | B2 |
| 20050053158 | Regunathan | Mar 2005 | A1 |
| 20140092991 | Sullivan | Apr 2014 | A1 |
| 20160103898 | Zheng | Apr 2016 | A1 |
| 20210136419 | Hsiang | May 2021 | A1 |
| 20220256201 | Chen | Aug 2022 | A1 |
| 20220394263 | Li | Dec 2022 | A1 |
| Number | Date | Country |
|---|---|---|
| 104662906 | May 2015 | CN |
| 107211122 | Sep 2017 | CN |
| 2590634 | Jul 2021 | GB |
| 2012109990 | Aug 2012 | WO |
| 2019245712 | Dec 2019 | WO |
| 2021169969 | Sep 2021 | WO |
| Entry |
|---|
| Benjamin Bross, et al., Versatile Video Coding (Draft 8), Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 17th Meeting: Brussels, BE, Jan. 7-17, 2020, Doc. No. JVET-Q2001-v7. |
| Hendry, et al., [AHG9]: On picture level and slice level tool parameters, Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 17th Meeting, Brussels, BE, Jan. 7-17, 2020, Doc. No. JVET-Q0200-v-2, XP030222889. |
| Jonatan Samuelsson, et al., AHG: Picture Header in Slice Header, Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 17th Meeting, Brussels, BE, Jan. 7-17, 2020, Doc. No. JVET-Q0775, XP030224172. |
| Benjamin Bross, et al., Versatile Video Coding (Draft 8), Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 7th Meeting, Brussels, BE, Jan. 7-17, 2020, Doc. No. JVET-Q2001-vD. |
| Fan Rong, Video Quality Assessment Algorithm of H.264 Based On Region of Interest, Dissertation for Master's Degree in Engineering, Harbin Institute of Technology, Jul. 2014, pp. 1-58, English abstract is on fifth page. |
| Number | Date | Country | |
|---|---|---|---|
| 20230108509 A1 | Apr 2023 | US |