Method and apparatus for harmonizing multiple sign bit hiding and residual sign prediction

11265535 · 2022-03-01

Assignee

Inventors

Cpc classification

International classification

Abstract

The present invention relates to an improved apparatus and method for harmonizing both Sign Bit Hiding (SBH) and Residual Sign Prediction (RSP) techniques in video coding. In order to improve coding efficiency, a list of transform coefficients, to which RSP is to be applied is prepared in advance of selecting a coefficient to which SBH is applied. Thereby, the RSP list can be populated in such a manner that the highest coding efficiency may be expected. Subsequently, one or more coefficients for applying SBH are selected so as not to be included in the list.

Claims

1. An apparatus for encoding signs of a set of transform coefficients of a signal, the apparatus comprising processing circuitry which is configured to: perform a residual sign prediction sub-procedure comprising determining a list of transform coefficients, comprising a first plurality of transform coefficients out of the set of transform coefficients, according to a first predetermined rule; select a further transform coefficient, which is out of the set of transform coefficients and not being included in the list, according to a second predetermined rule; after performing the residual sign prediction sub-procedure, perform sign bit hiding, which comprises embedding a sign of the further transform coefficient in a result of a predetermined function of transform coefficient values in the set of transform coefficients; perform an estimation procedure determining a respective estimated sign, which estimates a respective sign, of each of the transform coefficients in the list; determine, for each transformation coefficient of the first plurality of transform coefficients, a binary value indicating whether or not the respective sign of the transform coefficient coincides with the respective estimated sign of the transform coefficient; and encode a sequence of binary values, comprising the binary value determined for each of the first plurality of transform coefficients, using an entropy coding technique.

2. The apparatus according to claim 1, wherein the estimation procedure comprises: reconstructing boundary pixels of a block of an image corresponding to the set of transform coefficients in a spatial domain for each of a plurality of hypothetical combinations of signs of the first plurality of transform coefficients; evaluating a predetermined spatial domain function indicating a smoothness of pixel values across block boundaries between the reconstructed boundary pixels and pixels of adjacent blocks for each of the hypothetical combinations of signs; selecting a hypothetical combination of signs, of the hypothetical combinations of signs, for which the predetermined spatial domain function indicates a maximum of smoothness as the respective estimated sign of each of the transform coefficients in the list.

3. The apparatus according to claim 1, wherein the estimation procedure for estimating the signs of the transform coefficients in the list comprises: estimating the signs based on a cost function comprising transformed difference between adjacent pixels neighboring a current image block corresponding to the set of transform coefficients and a prediction of the adjacent pixels calculated based on a prediction signal of the image block.

4. The apparatus according to claim 1, wherein the second predetermined rule defines to select, as the further transform coefficient, a most low-frequency non-zero transform coefficient not belonging to the first plurality of transform coefficients included in the list.

5. The apparatus according to claim 1, wherein the processing circuitry is further configured to encode signs of a second plurality of transform coefficients of the set by a predetermined entropy encoding procedure, the second plurality of transform coefficients comprising all remaining non-zero transform coefficients not belonging to the first plurality of transform coefficients comprised in the list and being different from the selected further transform coefficient.

6. The apparatus according to claim 1, wherein the list comprises two sub-lists, the sub-lists being divided from each other by a threshold such that a first sub-list, of the sub-lists, comprises the transform coefficients of the list having absolute values greater than the threshold and a second sub-list, of the sub-lists, comprises the transform coefficients of the list having absolute values equal to or below the threshold.

7. The apparatus according to claim 6, wherein the sequences of binary values indicating the coincidence with the estimated sign determined for each of the transform coefficients of the two sub-lists are encoded with different contexts of entropy encoding, respectively.

8. The apparatus according to claim 1, wherein the result of the predetermined function may assume two different values so that a first sign value corresponds to a first result value and a second sign value corresponds to a second result value, and the embedding the sign of the further transform coefficient comprises: determining whether the predetermined function of the transform coefficients has the result value corresponding to the sign of the further transform coefficient; and based on determining that the predetermined function does not have the result corresponding to the sign of the further transform coefficient, modifying a value of one of the transform coefficients so that the predetermined function of the transform coefficients has the result corresponding to the sign of the further transform coefficient.

9. The apparatus according to claim 8, wherein the processing circuitry is further configured to determine the one of the transform coefficients to be modified and the modification so as to minimize a rate-distortion cost function or a modification estimation function reflecting the distortion introduced by coefficient modification or a quantized level of the coefficient.

10. The apparatus according to claim 8, wherein the list comprises sub-lists, and wherein the processing circuitry is further configured to put a constraint on the modification of the value of the one the transform coefficients so as not to permit a modification that would lead to a change in a distribution of the first plurality of transform coefficients over the sub-lists.

11. The apparatus according to claim 10, wherein, the sub-lists comprises two sub-lists, the two sub-lists being divided from each other by a threshold value of absolute values of the transform coefficients, and wherein the constraint is not to permit modification of the value of the one of the transform coefficients in case the modification would lead to a crossing of the threshold so that the modified value would belong to another sub-list than the unmodified value.

12. The apparatus according claim 1, wherein the transform coefficients are quantized transform coefficients.

13. The apparatus according to claim 1, wherein the first predetermined rule defines the list of transform coefficients as an ordered list of a predetermined number M of transform coefficients.

14. The apparatus according to claim 13, wherein the first predetermined rule further defines to include, in the list of transform coefficients, in descending order, the M transform coefficients having highest absolute values in the set of transform coefficients.

15. The apparatus according to claim 1, wherein the predetermined function is a sum of absolute transform coefficient values after quantization modulo 2.

16. The apparatus according to claim 1, wherein the processing circuitry is configured to: select a plurality of N further transform coefficients, which are out of the set of transform coefficients and not being included in the list, according to the second predetermined rule; and embed signs of the N further transform coefficients in a result of a corresponding predetermined function of transform coefficient values in the set of transform coefficients.

17. The apparatus according to claim 16, wherein the corresponding predetermined function is a sum of absolute transform coefficient values after quantization modulo 2.sup.N.

18. The apparatus according to claim 1, the apparatus being further for encoding signs of a plurality of sets of transform coefficients of the signal, the plurality of sets comprising the set, wherein the processing circuitry is configured to: split transform coefficients of a transform unit into a plurality of sets of transform coefficients; and for each of the plurality of sets of transform coefficients perform the encoding comprising: determining the corresponding list of transform coefficients, selecting the corresponding further transform coefficient, embedding the corresponding sign of the further transform coefficient, performing the corresponding estimation procedure, determining the corresponding sequence of binary values, and encoding the corresponding sequence of binary values.

19. The apparatus according to claim 18, wherein: the transform unit is a two-dimensional block of transform coefficients obtained by transforming an image signal, the signal comprising the image signal, and the processing circuitry is configured to split the transform unit into a plurality of two dimensional blocks as the plurality of sets of transform coefficients.

20. The apparatus according to claim 18, wherein: the transform unit is a two-dimensional block of transform coefficients obtained by transforming an image signal, the signal comprising the image signal, and the processing circuitry is configured to: scan the transform coefficients of the transform unit according to a predefined order; and split the scanned transform coefficients into a plurality of one dimensional chunks as the plurality of sets of transform coefficients.

21. An apparatus for decoding signs of a set of transform coefficients of a signal, the apparatus comprising processing circuitry which is configured to: decode an entropy encoded sequence of a first plurality of binary values; perform a residual sign prediction sub-procedure comprising determining a list of transform coefficients, comprising a first plurality of transform coefficients out of the set of transform coefficients, according to a first predetermined rule; select a further transform coefficient, which is out of the set of transform coefficients and not being included in the list, according to a second predetermined rule; after performing the residual sign prediction sub-procedure, perform hidden sign retrieval, which comprises determining a sign of the further transform coefficient by calculating a predetermined function of transform coefficient values in the set of transform coefficients; perform an estimation procedure determining estimated signs, which estimate the corresponding signs, of the transform coefficients in the list; and correct the estimated signs using the decoded sequence of the first plurality of binary values, so as to obtain the signs of the first plurality of transform coefficients.

22. The apparatus according to claim 21, wherein the estimation procedure for determining the estimated signs of the transform coefficients in the list comprises: reconstructing boundary pixels of a block of an image corresponding to the set of transform coefficients in a spatial domain for each of a plurality of hypothetical combinations of signs of the first plurality of transform coefficients; evaluating a predetermined spatial domain function indicating smoothness of pixel values across block boundaries between the reconstructed boundary pixels and pixels of adjacent blocks for each of the hypothetical combinations of signs; and selecting a hypothetical combination of signs, of the hypothetical combinations of signs, for which the predetermined spatial domain function indicates a maximum of smoothness, as the estimated signs of the transform coefficients.

23. The apparatus according to claim 21, wherein the estimation procedure determining the estimated signs of the transform coefficients in the list comprises: estimating the corresponding signs based on a cost function comprising a transformed difference between adjacent pixels neighboring a current image block corresponding to the set of transform coefficients and a prediction of the adjacent pixels calculated based on a prediction signal of the image block.

24. The apparatus according to claim 21, wherein the decoded sequence of the first plurality of binary values indicates, for each of the transform coefficients in the list, whether or not a corresponding sign of a respective one of the transform coefficients coincides with a corresponding estimated sign of the respective one of the transform coefficients.

25. The apparatus according to claim 21, wherein the second predetermined rule defines to select, as the further transform coefficient, the most low-frequency non-zero transform coefficient not belonging to the first plurality of transform coefficients included in the list.

26. The apparatus according to claim 21, wherein: the list comprises two sub-lists, the sub-lists being divided from each other by a threshold such that a first sub-list comprises the transform coefficients having absolute values greater than the threshold and a second sub-list comprises the transform coefficients having absolute values equal to or below the threshold, and the decoded sequence of the first plurality of binary values comprises two sub-sequences that are encoded with different contexts of entropy encoding, respectively.

27. The apparatus according to claim 21, wherein a result of the calculation of the predetermined function assumes two different values and the sign of the further transform coefficient is determined according to a rule that it is a first sign value if the result is a first value and a second sign value if the result is a second value.

28. The apparatus according to claim 21, wherein the transform coefficients are quantized transform coefficients.

29. The apparatus according to claim 21, wherein the first predetermined rule defines the list of transform coefficients as an ordered list of a predetermined number M of transform coefficients.

30. The apparatus according to claim 29, wherein the first predetermined rule further defines to comprise, in the list of transform coefficients, in descending order, the M transform coefficients having highest absolute values in the set of transform coefficients.

31. The apparatus according to claim 21, wherein the predetermined function is a sum of absolute transform coefficient values after quantization modulo 2.

32. The apparatus according to claim 21, wherein the processing circuitry is configured to: select a plurality of N further transform coefficients, which are out of the set of transform coefficients and not included in the list, according to the second predetermined rule; and embed signs of said the N further transform coefficients in a result of a predetermined function of transform coefficient values in the set of transform coefficients.

33. The apparatus according to claim 32, wherein the predetermined function is a sum of absolute transform coefficient values after quantization modulo 2.sup.N.

34. The apparatus according to claim 21, the apparatus being further for decoding signs of a plurality of sets of transform coefficients of the signal, the plurality of sets comprising the set, wherein the processing circuitry is configured to: split transform coefficients of a transform unit into the plurality of sets of transform coefficients; and for each of the plurality of sets of transform coefficients perform the decoding comprising: decoding the entropy encoded sequence; determining the list of transform coefficients; selecting the further transform coefficient; determining the sign of the further transform coefficient, performing the estimation procedure, an correcting the estimated signs to obtain the signs of the first plurality of transform coefficients.

35. The apparatus according to claim 34, wherein: the transform unit is a two-dimensional block of transform coefficients obtained by transforming an image signal, the signal comprising the image signal, and the processing circuitry is configured to split the transform unit into a plurality of two dimensional blocks as the plurality of sets of transform coefficients.

36. The apparatus according to claim 34, wherein: the transform unit is a two-dimensional block of transform coefficients obtained by transforming an image signal, the signal comprising the image signal, and the processing circuitry is configured to: scan transform coefficients of the transform unit according to a predefined order; and split the scanned transform coefficients into a plurality of one dimensional chunks as the plurality of sets of transform coefficients.

37. A method of encoding signs of a set of transform coefficients of a signal, the method comprising: performing a residual sign prediction sub-procedure comprising determining a list of transform coefficients, comprising a first plurality of transform coefficients out of the set of transform coefficients, according to a first predetermined rule; selecting a further transform coefficient, which is out of the set of transform coefficients and not included in the list, according to a second predetermined rule; after performing the residual sign prediction sub-procedure, perform sign bit hiding, which comprises embedding a sign of the further transform coefficient in a result of a predetermined function of transform coefficient values in the set of transform coefficients; performing an estimation procedure determining a respective estimated sign, which estimates a respective sign, of each of the transform coefficients in the list; determining, for each transformation coefficient of the first plurality of transform coefficients, a binary value indicating whether or not the respective sign of the transform coefficient coincides with the respective estimated sign of the transform coefficient; and encoding a sequence of binary values, comprising the binary value determined for each of the first plurality of transform coefficients, using an entropy coding technique.

38. A method of decoding signs of a set of transform coefficients of a signal, the method comprising the steps of decoding an entropy encoded sequence of a first plurality of binary values; perform a residual sign prediction sub-procedure comprising determining a list of transform coefficients, comprising a first plurality of transform coefficients out of the set of transform coefficients, according to a first predetermined rule; selecting a further transform coefficient, which is out of the set of transform coefficients and not included in the list, according to a second predetermined rule; after performing the residual sign prediction sub-procedure, performing hidden sign retrieval, which comprises determining a sign of the further transform coefficient by calculating a predetermined function of transform coefficient values in the set of transform coefficients; performing an estimation procedure determining estimated signs, which estimate the corresponding signs of the transform coefficients in the list; and correcting the estimated signs by using the decoded sequence of the first plurality of binary values, so as to obtain the signs of the first plurality of transform coefficients.

39. A non-transitory computer readable medium comprising a program code that, when executed by a processor, causes a computer system comprising the processor to perform the method according to claim 37.

40. A non-transitory computer readable medium comprising a program code that, when executed by a processor, causes a computer system comprising the processor to perform the method according to claim 38.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) In the following embodiments of the disclosure are described in more detail with reference to the attached figures and drawings, in which:

(2) FIG. 1 is a diagram showing Multiple Sign Bit Hiding adopted by JCT-VC to the HEVC/H.265 standard;

(3) FIG. 2 is a diagram illustrating the separation of a TU into CCs;

(4) FIG. 3 gives an overview of a procedure of sign estimation by means of a cost function in the pixel domain;

(5) FIG. 4 illustrates a comparison of conventional sign coding with the technique of FIG. 3;

(6) FIG. 5 illustrates examples of pixels used to derive cost values according to a known technique;

(7) FIG. 6 illustrates a procedure of harmonization of RSP and SBH;

(8) FIG. 7 is a block diagram showing an example of a video coding system configured to implement embodiments of the disclosure;

(9) FIG. 8 is a block diagram showing an example of a video encoder;

(10) FIG. 9 is a block diagram showing an example structure of a video decoder;

(11) FIG. 10 illustrates a data flow of the encoder and decoder with harmonized sign prediction and hiding process according to embodiments of the present disclosure;

(12) FIG. 11 gives an example of harmonization of SBH and prediction lists generation according to embodiments of the disclosure;

(13) FIG. 12 illustrates the determination of the best coefficient modification in RD sense;

(14) FIG. 13 illustrates an alternative concept for determining the best coefficient modification;

(15) FIG. 14 illustrates an alternative frequency-domain sign estimation concept, according to embodiments of the present disclosure;

(16) FIG. 15 gives an overview of an exemplary implementation of the disclosure at the encoder side; and

(17) FIG. 16 gives an overview of an exemplary implementation of the disclosure at the decoder side.

(18) In the drawings, identical reference signs refer to identical or at least functionally equivalent features.

DETAILED DESCRIPTION

(19) In the following description, reference is made to the accompanying figures, which form part of the disclosure, and which show, by way of illustration, specific aspects of embodiments of the disclosure or specific aspects in which embodiments of the present disclosure may be used. It is understood that embodiments of the disclosure may be used in other aspects and comprise structural or logical changes not depicted in the figures. The following detailed description, therefore, is not to be taken in a limiting sense, and the scope of the present disclosure is defined by the appended claims.

(20) For instance, it is understood that a disclosure in connection with a described method may also hold true for a corresponding device or system configured to perform the method and vice versa. For example, if one or a plurality of specific method steps are described, a corresponding device may include one or a plurality of units, e.g. functional units, to perform the described one or plurality of method steps (e.g. one unit performing the one or plurality of steps, or a plurality of units each performing one or more of the plurality of steps), even if such one or more units are not explicitly described or illustrated in the figures. On the other hand, for example, if a specific apparatus is described based on one or a plurality of units, e.g. functional units, a corresponding method may include one step to perform the functionality of the one or plurality of units (e.g. one step performing the functionality of the one or plurality of units, or a plurality of steps each performing the functionality of one or more of the plurality of units), even if such one or plurality of steps are not explicitly described or illustrated in the figures. Further, it is understood that the features of the various exemplary embodiments and/or aspects described herein may be combined with each other, unless specifically noted otherwise.

(21) Video coding typically refers to the processing of a sequence of pictures, which form the video or video sequence. Instead of the term picture the terms frame or image may be used as synonyms in the field of video coding. Video coding comprises two parts, video encoding and video decoding. Video encoding is performed at the source side, typically comprising processing (e.g. by compression) the original video pictures to reduce the amount of data required for representing the video pictures (for more efficient storage and/or transmission). Video decoding is performed at the destination side and typically comprises the inverse processing compared to the encoder to reconstruct the video pictures. Embodiments referring to “coding” of video pictures (or pictures in general, as will be explained later) shall be understood to relate to both, “encoding” and “decoding” of video pictures. The combination of the encoding part and the decoding part is also referred to as CODEC (COding and DECoding).

(22) In case of lossless video coding, the original video pictures can be reconstructed, i.e. the reconstructed video pictures have the same quality as the original video pictures (assuming no transmission loss or other data loss during storage or transmission). In case of lossy video coding, further compression, e.g. by quantization, is performed, to reduce the amount of data representing the video pictures, which cannot be completely reconstructed at the decoder, i.e. the quality of the reconstructed video pictures is lower or worse compared to the quality of the original video pictures.

(23) Several video coding standards since H.261 belong to the group of “lossy hybrid video codecs” (i.e. combine spatial and temporal prediction in the sample domain and 2D transform coding for applying quantization in the transform domain). Each picture of a video sequence is typically partitioned into a set of non-overlapping blocks, and the coding is typically performed on a block level. In other words, at the encoder the video is typically processed, i.e. encoded, on a block (video block) level, e.g. by using spatial (intra picture) prediction and temporal (inter picture) prediction to generate a prediction block, subtracting the prediction block from the current block (block currently processed/to be processed) to obtain a residual block, transforming the residual block and quantizing the residual block in the transform domain to reduce the amount of data to be transmitted (compression), whereas at the decoder the inverse processing compared to the encoder is applied to the encoded or compressed block to reconstruct the current block for representation. Furthermore, the encoder duplicates the decoder processing loop such that both will generate identical predictions (e.g. intra- and inter predictions) and/or re-constructions for processing, i.e. coding, the subsequent blocks.

(24) As video picture processing (also referred to as moving picture processing) and still picture processing (the term processing comprising coding), share many concepts and technologies or tools, in the following the term “picture” or “image” and equivalent the term “picture data” or “image data” is used to refer to a video picture of a video sequence (as explained above) and/or to a still picture to avoid unnecessary repetitions and distinctions between video pictures and still pictures, where not necessary. In case the description refers to still pictures (or still images) only, the term “still picture” shall be used.

(25) In the following embodiments of an encoder 100, a decoder 200 and a coding system 300 are described based on FIGS. 7 to 9 (before describing embodiments of the disclosure in more detail based on FIGS. 10 to 16).

(26) FIG. 7 is a conceptional or schematic block diagram illustrating an embodiment of a coding system 300, e.g. a picture coding system 300, wherein the coding system 300 comprises a source device 310 configured to provide encoded data 330, e.g. an encoded picture 330, e.g. to a destination device 320 for decoding the encoded data 330.

(27) The source device 310 comprises an encoder 100 or encoding unit 100, and may additionally, i.e. optionally, comprise a picture source 312, a pre-processing unit 314, e.g. a picture pre-processing unit 314, and a communication interface or communication unit 318.

(28) The picture source 312 may comprise or be any kind of picture capturing device, for example for capturing a real-world picture, and/or any kind of a picture generating device, for example a computer-graphics processor for generating a computer animated picture, or any kind of device for obtaining and/or providing a real-world picture, a computer animated picture (e.g. a screen content, a virtual reality (VR) picture) and/or any combination thereof (e.g. an augmented reality (AR) picture). In the following, all these kinds of pictures or images and any other kind of picture or image will be referred to as “picture” “image” or “picture data” or “image data”, unless specifically described otherwise, while the previous explanations with regard to the terms “picture” or “image” covering “video pictures” and “still pictures” still hold true, unless explicitly specified differently.

(29) A (digital) picture is or can be regarded as a two-dimensional array or matrix of samples with intensity values. A sample in the array may also be referred to as pixel (short form of picture element) or a pel. The number of samples in horizontal and vertical direction (or axis) of the array or picture define the size and/or resolution of the picture. For representation of color, typically three color components are employed, i.e. the picture may be represented or include three sample arrays. In RGB format or color space a picture comprises a corresponding red, green and blue sample array. However, in video coding each pixel is typically represented in a luminance/chrominance format or color space, e.g. YCbCr, which comprises a luminance component indicated by Y (sometimes also L is used instead) and two chrominance components indicated by Cb and Cr. The luminance (or short luma) component Y represents the brightness or grey level intensity (e.g. like in a grey-scale picture), while the two chrominance (or short chroma) components Cb and Cr represent the chromaticity or color information components. Accordingly, a picture in YCbCr format comprises a luminance sample array of luminance sample values (Y), and two chrominance sample arrays of chrominance values (Cb and Cr). Pictures in RGB format may be converted or transformed into YCbCr format and vice versa, the process is also known as color transformation or conversion. If a picture is monochrome, the picture may comprise only a luminance sample array.

(30) The picture source 312 may be, for example a camera for capturing a picture, a memory, e.g. a picture memory, comprising or storing a previously captured or generated picture, and/or any kind of interface (internal or external) to obtain or receive a picture. The camera may be, for example, a local or integrated camera integrated in the source device, the memory may be a local or integrated memory, e.g. integrated in the source device. The interface may be, for example, an external interface to receive a picture from an external video source, for example an external picture capturing device like a camera, an external memory, or an external picture generating device, for example an external computer-graphics processor, computer or server. The interface can be any kind of interface, e.g. a wired or wireless interface, an optical interface, according to any proprietary or standardized interface protocol. The interface for obtaining the picture data 313 may be the same interface as or a part of the communication interface 318.

(31) Interfaces between units within each device include cable connections, USB interfaces, communication interfaces 318 and 322 between the source device 310 and the destination device 320 include cable connections, USB interfaces, and radio interfaces.

(32) In distinction to the pre-processing unit 314 and the processing performed by the pre-processing unit 314, the picture or picture data 313 may also be referred to as raw picture or raw picture data 313.

(33) Pre-processing unit 314 is configured to receive the (raw) picture data 313 and to perform pre-processing on the picture data 313 to obtain a pre-processed picture 315 or pre-processed picture data 315. Pre-processing performed by the pre-processing unit 314 may, e.g., comprise trimming, color format conversion (e.g. from RGB to YCbCr), color correction, or de-noising.

(34) The encoder 100 is configured to receive the pre-processed picture data 315 and provide encoded picture data 171 (further details will be described, e.g., based on FIG. 8).

(35) Communication interface 318 of the source device 310 may be configured to receive the encoded picture data 171 and to directly transmit it to another device, e.g. the destination device 320 or any other device, for storage or direct reconstruction, or to process the encoded picture data 171 for respectively before storing the encoded data 330 and/or transmitting the encoded data 330 to another device, e.g. the destination device 320 or any other device for decoding or storing.

(36) The destination device 320 comprises a decoder 200 or decoding unit 200, and may additionally, i.e. optionally, comprise a communication interface or communication unit 322, a post-processing unit 326, and a display device 328.

(37) The communication interface 322 of the destination device 320 is configured to receive the encoded picture data 171 or the encoded data 330, e.g. directly from the source device 310 or from any other source, e.g. a memory, e.g. an encoded picture data memory.

(38) The communication interface 318 and the communication interface 322 may be configured to respectively transmit/receive the encoded picture data 171 or encoded data 330 via a direct communication link between the source device 310 and the destination device 320, e.g. a direct wired or wireless connection, including optical connection or via any kind of network, e.g. a wired or wireless network or any combination thereof, or any kind of private and public network, or any kind of combination thereof.

(39) The communication interface 318 may be, e.g., configured to package the encoded picture data 171 into an appropriate format, e.g. packets, for transmission over a communication link or communication network, and may further comprise data loss protection.

(40) The communication interface 322, forming the counterpart of the communication interface 318, may be, e.g., configured to de-package the encoded data 330 to obtain the encoded picture data 171 and may further be configured to perform data loss protection and data loss recovery, e.g. comprising error concealment.

(41) Both, communication interface 318 and communication interface 322 may be configured as unidirectional communication interfaces as indicated by the arrow for the encoded picture data 330 in FIG. 7 pointing from the source device 310 to the destination device 320, or bi-directional communication interfaces, and may be configured, e.g. to send and receive messages, e.g. to set up a connection, to acknowledge and/or re-send lost or delayed data including picture data, and exchange any other information related to the communication link and/or data transmission, e.g. encoded picture data transmission.

(42) The decoder 200 is configured to receive the encoded picture data 171 and provide decoded picture data 231 or a decoded picture 231 (further details will be described, e.g., based on FIG. 9).

(43) The post-processor 326 of destination device 320 is configured to post-process the decoded picture data 231, e.g. the decoded picture 231, to obtain post-processed picture data 327, e.g. a post-processed picture 327. The post-processing performed by the post-processing unit 326 may comprise, e.g. color format conversion (e.g. from YCbCr to RGB), color correction, trimming, or re-sampling, or any other processing, e.g. for preparing the decoded picture data 231 for display, e.g. by display device 328.

(44) The display device 328 of the destination device 320 is configured to receive the post-processed picture data 327 for displaying the picture, e.g. to a user or viewer. The display device 328 may be or comprise any kind of display for representing the reconstructed picture, e.g. an integrated or external display or monitor. The displays may, e.g. comprise cathode ray tubes (CRT), liquid crystal displays (LCD), plasma displays, organic light emitting diodes (OLED) displays or any kind of other display, such as projectors, holographic displays, apparatuses to generate holograms . . . .

(45) Although FIG. 7 depicts the source device 310 and the destination device 320 as separate devices, embodiments of devices may also comprise both or both functionalities, the source device 310 or corresponding functionality and the destination device 320 or corresponding functionality. In such embodiments the source device 310 or corresponding functionality and the destination device 320 or corresponding functionality may be implemented using the same hardware and/or software or by separate hardware and/or software or any combination thereof.

(46) As will be apparent for the skilled person based on the description, the existence and (exact) split of functionalities of the different units or functionalities within the source device 310 and/or destination device 320 as shown in FIG. 7 may vary depending on the actual device and application.

(47) In the following, a few non-limiting examples for the coding system 300, the source device 310 and/or destination device 320 will be provided.

(48) Various electronic products, such as a smartphone, a tablet, or a handheld camera with integrated display, may be seen as examples for a coding system 300. They contain a display device 328 and most of them contain an integrated camera, i.e. a picture source 312, as well. Picture data taken by the integrated camera is processed and displayed. The processing may include encoding and decoding of the picture data internally. In addition, the encoded picture data may be stored in an integrated memory.

(49) Alternatively, these electronic products may have wired or wireless interfaces to receive picture data from external sources, such as the internet or external cameras, or to transmit the encoded picture data to external displays or storage units.

(50) On the other hand, set-top boxes do not contain an integrated camera or a display but perform picture processing of received picture data for display on an external display device. Such a set-top box may be embodied by a chipset, for example.

(51) Alternatively, a device similar to a set-top box may be included in a display device, such as a TV set with integrated display.

(52) Surveillance cameras without an integrated display constitute a further example. They represent a source device with an interface for the transmission of the captured and encoded picture data to an external display device or an external storage device.

(53) Devices such as smart glasses or 3D glasses, for instance used for AR or VR, represent a destination device 320. They receive the encoded picture data and display them.

(54) Therefore, the source device 310 and the destination device 320 as shown in FIG. 7 are just example embodiments of the disclosure and embodiments of the disclosure are not limited to those shown in FIG. 7.

(55) Source device 310 and destination device 320 may comprise any of a wide range of devices, including any kind of handheld or stationary devices, e.g. notebook or laptop computers, mobile phones, smart phones, tablets or tablet computers, cameras, desktop computers, set-top boxes, televisions, display devices, digital media players, video gaming consoles, video streaming devices, broadcast receiver device, or the like. For large-scale professional encoding and decoding, the source device 310 and/or the destination device 320 may additionally comprise servers and work stations, which may be included in large networks. These devices may use no or any kind of operating system.

(56) Encoder & Encoding Method

(57) FIG. 8 shows a schematic/conceptual block diagram of an embodiment of an encoder 100, e.g. a picture encoder 100, which comprises an input 102, a residual calculation unit 104, a transformation unit 106, a quantization unit 108, an inverse quantization unit 110, and inverse transformation unit 112, a reconstruction unit 114, a buffer 116, a loop filter 120, a decoded picture buffer (DPB) 130, a prediction unit 160, which includes an inter estimation unit 142, an inter prediction unit 144, an intra-estimation unit 152, an intra-prediction unit 154 and a mode selection unit 162, an entropy encoding unit 170, and an output 172. A video encoder 100 as shown in FIG. 8 may also be referred to as hybrid video encoder or a video encoder according to a hybrid video codec. Each unit may consist of a processor and a non-transitory memory to perform its processing steps by executing a code stored in the non-transitory memory by the processor.

(58) For example, the residual calculation unit 104, the transformation unit 106, the quantization unit 108, and the entropy encoding unit 170 form a forward signal path of the encoder 100, whereas, for example, the inverse quantization unit 110, the inverse transformation unit 112, the reconstruction unit 114, the buffer 116, the loop filter 120, the decoded picture buffer (DPB) 130, the inter prediction unit 144, and the intra-prediction unit 154 form a backward signal path of the encoder, wherein the backward signal path of the encoder corresponds to the signal path of the decoder to provide inverse processing for identical reconstruction and prediction (see decoder 200 in FIG. 9).

(59) The encoder is configured to receive, e.g. by input 102, a picture 101 or a picture block 103 of the picture 101, e.g. picture of a sequence of pictures forming a video or video sequence. The picture block 103 may also be referred to as current picture block or picture block to be coded, and the picture 101 as current picture or picture to be coded (in particular in video coding to distinguish the current picture from other pictures, e.g. previously encoded and/or decoded pictures of the same video sequence, i.e. the video sequence which also comprises the current picture).

(60) Embodiments of the encoder 100 may comprise a partitioning unit (not depicted in FIG. 8), e.g. which may also be referred to as picture partitioning unit, configured to partition the picture 103 into a plurality of blocks, e.g. blocks like block 103, typically into a plurality of non-overlapping blocks. The partitioning unit may be configured to use the same block size for all pictures of a video sequence and the corresponding grid defining the block size, or to change the block size between pictures or subsets or groups of pictures, and partition each picture into the corresponding blocks.

(61) Each block of the plurality of blocks may have square dimensions or more general rectangular dimensions. Blocks being picture areas with non-rectangular shapes may not appear.

(62) Like the picture 101, the block 103 again is or can be regarded as a two-dimensional array or matrix of samples with intensity values (sample values), although of smaller dimension than the picture 101. In other words, the block 103 may comprise, e.g., one sample array (e.g. a luma array in case of a monochrome picture 101) or three sample arrays (e.g. a luma and two chroma arrays in case of a color picture 101) or any other number and/or kind of arrays depending on the color format applied. The number of samples in horizontal and vertical direction (or axis) of the block 103 define the size of block 103.

(63) Encoder 100 as shown in FIG. 8 is configured to encode the picture 101 block by block, e.g. the encoding and prediction is performed per block 103.

(64) The residual calculation unit 104 is configured to calculate a residual block 105 based on the picture block 103 and a prediction block 165 (further details about the prediction block 165 are provided later), e.g. by subtracting sample values of the prediction block 165 from sample values of the picture block 103, sample by sample (pixel by pixel) to obtain the residual block 105 in the sample domain.

(65) The transformation unit 106 is configured to apply a transformation, e.g. a spatial frequency transform or a linear spatial transform, e.g. a discrete cosine transform (DCT) or discrete sine transform (DST), on the sample values of the residual block 105 to obtain transformed coefficients 107 in a transform domain. The transformed coefficients 107 may also be referred to as transformed residual coefficients and represent the residual block 105 in the transform domain.

(66) The transformation unit 106 may be configured to apply integer approximations of DCT/DST, such as the core transforms specified for HEVC/H.265. Compared to an orthonormal DCT transform, such integer approximations are typically scaled by a certain factor. In order to preserve the norm of the residual block which is processed by forward and inverse transforms, additional scaling factors are applied as part of the transform process. The scaling factors are typically chosen based on certain constraints like scaling factors being a power of two for shift operation, bit depth of the transformed coefficients, tradeoff between accuracy and implementation costs, etc. Specific scaling factors are, for example, specified for the inverse transform, e.g. by inverse transformation unit 212, at a decoder 200 (and the corresponding inverse transform, e.g. by inverse transformation unit 112 at an encoder 100) and corresponding scaling factors for the forward transform, e.g. by transformation unit 106, at an encoder 100 may be specified accordingly.

(67) The quantization unit 108 is configured to quantize the transformed coefficients 107 to obtain quantized coefficients 109, e.g. by applying scalar quantization or vector quantization. The quantized coefficients 109 may also be referred to as quantized residual coefficients 109. For example for scalar quantization, different scaling may be applied to achieve finer or coarser quantization. Smaller quantization step sizes correspond to finer quantization, whereas larger quantization step sizes correspond to coarser quantization. The applicable quantization step size may be indicated by a quantization parameter (QP). The quantization parameter may for example be an index to a predefined set of applicable quantization step sizes. For example, small quantization parameters may correspond to fine quantization (small quantization step sizes) and large quantization parameters may correspond to coarse quantization (large quantization step sizes) or vice versa. The quantization may include division by a quantization step size and corresponding or inverse dequantization, e.g. by inverse quantization 110, may include multiplication by the quantization step size. Embodiments according to HEVC (High-Efficiency Video Coding), may be configured to use a quantization parameter to determine the quantization step size. Generally, the quantization step size may be calculated based on a quantization parameter using a fixed point approximation of an equation including division. Additional scaling factors may be introduced for quantization and dequantization to restore the norm of the residual block, which might get modified because of the scaling used in the fixed point approximation of the equation for quantization step size and quantization parameter. In one example implementation, the scaling of the inverse transform and dequantization might be combined. Alternatively, customized quantization tables may be used and signaled from an encoder to a decoder, e.g. in a bitstream. The quantization is a lossy operation, wherein the loss increases with increasing quantization step sizes.

(68) Embodiments of the encoder 100 (or respectively of the quantization unit 108) may be configured to output the quantization settings including quantization scheme and quantization step size, e.g. by means of the corresponding quantization parameter, so that a decoder 200 may receive and apply the corresponding inverse quantization. Embodiments of the encoder 100 (or quantization unit 108) may be configured to output the quantization scheme and quantization step size, e.g. directly or entropy encoded via the entropy encoding unit 170 or any other entropy coding unit.

(69) The inverse quantization unit 110 is configured to apply the inverse quantization of the quantization unit 108 on the quantized coefficients to obtain dequantized coefficients 111, e.g. by applying the inverse of the quantization scheme applied by the quantization unit 108 based on or using the same quantization step size as the quantization unit 108. The dequantized coefficients 111 may also be referred to as dequantized residual coefficients 111 and correspond—although typically not identical to the transformed coefficients due to the loss by quantization—to the transformed coefficients 108.

(70) The inverse transformation unit 112 is configured to apply the inverse transformation of the transformation applied by the transformation unit 106, e.g. an inverse discrete cosine transform (DCT) or inverse discrete sine transform (DST), to obtain an inverse transformed block 113 in the sample domain. The inverse transformed block 113 may also be referred to as inverse transformed dequantized block 113 or inverse transformed residual block 113.

(71) The reconstruction unit 114 is configured to combine the inverse transformed block 113 and the prediction block 165 to obtain a reconstructed block 115 in the sample domain, e.g. by sample wise adding the sample values of the decoded residual block 113 and the sample values of the prediction block 165.

(72) The buffer unit 116 (or short “buffer” 116), e.g. a line buffer 116, is configured to buffer or store the reconstructed block and the respective sample values, for example for intra estimation and/or intra prediction. In further embodiments, the encoder may be configured to use unfiltered reconstructed blocks and/or the respective sample values stored in buffer unit 116 for any kind of estimation and/or prediction.

(73) Embodiments of the encoder 100 may be configured such that, e.g. the buffer unit 116 is not only used for storing the reconstructed blocks 115 for intra estimation 152 and/or intra prediction 154 but also for the loop filter unit 120, and/or such that, e.g. the buffer unit 116 and the decoded picture buffer unit 130 form one buffer. Further embodiments may be configured to use filtered blocks 121 and/or blocks or samples from the decoded picture buffer 130 as input or basis for intra estimation 152 and/or intra prediction 154.

(74) The loop filter unit 120 (or short “loop filter” 120), is configured to filter the reconstructed block 115 to obtain a filtered block 121, e.g. by applying a de-blocking sample-adaptive offset (SAO) filter or other filters, e.g. sharpening or smoothing filters or collaborative filters. The filtered block 121 may also be referred to as filtered reconstructed block 121.

(75) Embodiments of the loop filter unit 120 may comprise a filter analysis unit and the actual filter unit, wherein the filter analysis unit is configured to determine loop filter parameters for the actual filter. The filter analysis unit may be configured to apply fixed pre-determined filter parameters to the actual loop filter, adaptively select filter parameters from a set of predetermined filter parameters or adaptively calculate filter parameters for the actual loop filter.

(76) Embodiments of the loop filter unit 120 may comprise one or a plurality of filters (such as loop filter components and/or subfilters), e.g. one or more of different kinds or types of filters, e.g. connected in series or in parallel or in any combination thereof, wherein each of the filters may comprise individually or jointly with other filters of the plurality of filters a filter analysis unit to determine the respective loop filter parameters, e.g. as described in the previous paragraph.

(77) Embodiments of the encoder 100 (respectively loop filter unit 120) may be configured to output the loop filter parameters, e.g. directly or entropy encoded via the entropy encoding unit 170 or any other entropy coding unit, so that, e.g., a decoder 200 may receive and apply the same loop filter parameters for decoding.

(78) The decoded picture buffer (DPB) 130 is configured to receive and store the filtered block 121. The decoded picture buffer 130 may be further configured to store other previously filtered blocks, e.g. previously reconstructed and filtered blocks 121, of the same current picture or of different pictures, e.g. previously reconstructed pictures, and may provide complete previously reconstructed, i.e. decoded, pictures (and corresponding reference blocks and samples) and/or a partially reconstructed current picture (and corresponding reference blocks and samples), for example for inter estimation and/or inter prediction.

(79) Further embodiments of the disclosure may also be configured to use the previously filtered blocks and corresponding filtered sample values of the decoded picture buffer 130 for any kind of estimation or prediction, e.g. intra estimation and prediction as well as inter estimation and prediction.

(80) The prediction unit 160, also referred to as block prediction unit 160, is configured to receive or obtain the picture block 103 (current picture block 103 of the current picture 101) and decoded or at least reconstructed picture data, e.g. reference samples of the same (current) picture from buffer 116 and/or decoded picture data 231 from one or a plurality of previously decoded pictures from decoded picture buffer 130, and to process such data for prediction, i.e. to provide a prediction block 165, which may be an inter-predicted block 145 or an intra-predicted block 155.

(81) Mode selection unit 162 may be configured to select a prediction mode (e.g. an intra or inter prediction mode) and/or a corresponding prediction block 145 or 155 to be used as prediction block 165 for the calculation of the residual block 105 and for the reconstruction of the reconstructed block 115.

(82) Embodiments of the mode selection unit 162 may be configured to select the prediction mode (e.g. from those supported by prediction unit 160), which provides the best match or in other words the minimum residual (minimum residual means better compression for transmission or storage), or a minimum signaling overhead (minimum signaling overhead means better compression for transmission or storage), or which considers or balances both. The mode selection unit 162 may be configured to determine the prediction mode based on rate distortion optimization (RDO), i.e. select the prediction mode which provides a minimum rate distortion optimization or which associated rate distortion at least fulfills a prediction mode selection criterion.

(83) In the following, the prediction processing (e.g. prediction unit 160) and mode selection (e.g. by mode selection unit 162) performed by an example encoder 100 will be explained in more detail.

(84) As described above, encoder 100 is configured to determine or select the best or an optimum prediction mode from a set of (pre-determined) prediction modes. The set of prediction modes may comprise, e.g., intra-prediction modes and/or inter-prediction modes.

(85) The set of intra-prediction modes may comprise 32 different intra-prediction modes, e.g. non-directional modes like DC (or mean) mode and planar mode, or directional modes, e.g. as defined in H.264, or may comprise 65 different intra-prediction modes, e.g. non-directional modes like DC (or mean) mode and planar mode, or directional modes, e.g. as defined in H.265.

(86) The set of (possible) inter-prediction modes depend on the available reference pictures (i.e. previous at least partially decoded pictures, e.g. stored in DPB 230) and other inter-prediction parameters, e.g. whether the whole reference picture or only a part, e.g. a search window area around the area of the current block, of the reference picture is used for searching for a best matching reference block, and/or e.g. whether pixel interpolation is applied, e.g. half/semi-pel and/or quarter-pel interpolation, or not.

(87) Additional to the above prediction modes, skip mode and/or direct mode may be applied.

(88) The prediction unit 160 may be further configured to partition the block 103 into smaller block partitions or sub-blocks, e.g. iteratively using quad-tree-partitioning (QT), binary partitioning (BT) or triple-tree-partitioning (TT) or any combination thereof, and to perform, e.g. the prediction for each of the block partitions or sub-blocks, wherein the mode selection comprises the selection of the tree-structure of the partitioned block 103 and the prediction modes applied to each of the block partitions or sub-blocks.

(89) The inter estimation unit 142, also referred to as inter picture estimation unit 142, is configured to receive or obtain the picture block 103 (current picture block 103 of the current picture 101) and a decoded picture 231, or at least one or a plurality of previously reconstructed blocks, e.g. reconstructed blocks of one or a plurality of other/different previously decoded pictures 231, for inter estimation (or “inter picture estimation”). For example, a video sequence may comprise the current picture and the previously decoded pictures 231, or in other words, the current picture and the previously decoded pictures 231 may be part of or form a sequence of pictures forming a video sequence.

(90) The encoder 100 may, e.g., be configured to select (obtain/determine) a reference block from a plurality of reference blocks of the same or different pictures of the plurality of other pictures and provide a reference picture (or reference picture index, . . . ) and/or an offset (spatial offset) between the position (x, y coordinates) of the reference block and the position of the current block as inter estimation parameters 143 to the inter prediction unit 144. This offset is also called motion vector (MV). The inter estimation is also referred to as motion estimation (ME) and the inter prediction also motion prediction (MP).

(91) The inter prediction unit 144 is configured to obtain, e.g. receive, an inter prediction parameter 143 and to perform inter prediction based on or using the inter prediction parameter 143 to obtain an inter prediction block 145.

(92) Although FIG. 8 shows two distinct units (or steps) for the inter-coding, namely inter estimation 142 and inter prediction 152, both functionalities may be performed as one (inter estimation typically requires/comprises calculating an/the inter prediction block, i.e. the or a “kind of” inter prediction 154), e.g. by testing all possible or a predetermined subset of possible inter prediction modes iteratively while storing the currently best inter prediction mode and respective inter prediction block, and using the currently best inter prediction mode and respective inter prediction block as the (final) inter prediction parameter 143 and inter prediction block 145 without performing another time the inter prediction 144.

(93) The intra estimation unit 152 is configured to obtain, e.g. receive, the picture block 103 (current picture block) and one or a plurality of previously reconstructed blocks, e.g. reconstructed neighbor blocks, of the same picture for intra estimation. The encoder 100 may, e.g., be configured to select (obtain/determine) an intra prediction mode from a plurality of intra prediction modes and provide it as intra estimation parameter 153 to the intra prediction unit 154.

(94) Embodiments of the encoder 100 may be configured to select the intra-prediction mode based on an optimization criterion, e.g. minimum residual (e.g. the intra-prediction mode providing the prediction block 155 most similar to the current picture block 103) or minimum rate distortion.

(95) The intra prediction unit 154 is configured to determine based on the intra prediction parameter 153, e.g. the selected intra prediction mode 153, the intra prediction block 155.

(96) Although FIG. 8 shows two distinct units (or steps) for the intra-coding, namely intra estimation 152 and intra prediction 154, both functionalities may be performed as one (intra estimation typically requires/comprises calculating the intra prediction block, i.e. the or a “kind of” intra prediction 154), e.g. by testing all possible or a predetermined subset of possible intra-prediction modes iteratively while storing the currently best intra prediction mode and respective intra prediction block, and using the currently best intra prediction mode and respective intra prediction block as the (final) intra prediction parameter 153 and intra prediction block 155 without performing another time the intra prediction 154.

(97) The entropy encoding unit 170 is configured to apply an entropy encoding algorithm or scheme (e.g. a variable length coding (VLC) scheme, an context adaptive VLC scheme (CALVC), an arithmetic coding scheme, a context adaptive binary arithmetic coding (CABAC)) on the quantized residual coefficients 109, inter prediction parameters 143, intra prediction parameter 153, and/or loop filter parameters, individually or jointly (or not at all) to obtain encoded picture data 171 which can be output by the output 172, e.g. in the form of an encoded bitstream 171.

(98) Decoder and Decoding Methods

(99) FIG. 9 shows an exemplary video decoder 200 configured to receive encoded picture data (e.g. encoded bitstream) 171, e.g. encoded by encoder 100, to obtain a decoded picture 231.

(100) The decoder 200 comprises an input 202, an entropy decoding unit 204, an inverse quantization unit 210, an inverse transformation unit 212, a reconstruction unit 214, a buffer 216, a loop filter 220, a decoded picture buffer 230, a prediction unit 260, which includes an inter prediction unit 244, an intra prediction unit 254, and a mode selection unit 260, and an output 232.

(101) The entropy decoding unit 204 is configured to perform entropy decoding to the encoded picture data 171 to obtain, e.g., quantized coefficients 209 and/or decoded coding parameters, e.g. (decoded) any or all of inter prediction parameters 143, intra prediction parameter 153, and/or loop filter parameters.

(102) In embodiments of the decoder 200, the inverse quantization unit 210, the inverse transformation unit 212, the reconstruction unit 214, the buffer 216, the loop filter 220, the decoded picture buffer 230, the prediction unit 260 and the mode selection unit 260 are configured to perform the inverse processing of the encoder 100 (and the respective functional units) to decode the encoded picture data 171.

(103) In particular, the inverse quantization unit 210 may be identical in function to the inverse quantization unit 110, the inverse transformation unit 212 may be identical in function to the inverse transformation unit 112, the reconstruction unit 214 may be identical in function reconstruction unit 114, the buffer 216 may be identical in function to the buffer 116, the loop filter 220 may be identical in function to the loop filter 220 (with regard to the actual loop filter as the loop filter 220 typically does not comprise a filter analysis unit to determine the filter parameters based on the original image 101 or block 103 but receives (explicitly or implicitly) or obtains the filter parameters used for encoding, e.g. from entropy decoding unit 204), and the decoded picture buffer 230 may be identical in function to the decoded picture buffer 130.

(104) The prediction unit 260 may comprise an inter prediction unit 244 and an intra prediction unit 254, wherein the inter prediction unit 244 may be identical in function to the inter prediction unit 144, and the intra prediction unit 254 may be identical in function to the intra prediction unit 154. The prediction unit 260 and the mode selection unit 262 are typically configured to perform the block prediction and/or obtain the predicted block 265 from the encoded data 171 only (without any further information about the original image 101) and to receive or obtain (explicitly or implicitly) the prediction parameters 143 or 153 and/or the information about the selected prediction mode, e.g. from the entropy decoding unit 204.

(105) The decoder 200 is configured to output the decoded picture 231, e.g. via output 232, for presentation or viewing to a user.

(106) Referring back to FIG. 7, the decoded picture 231 output from the decoder 200 may be post-processed in the post-processor 326. The resulting post-processed picture 327 may be transferred to an internal or external display device 328 and displayed.

Further Details of Embodiments

(107) In the following, further details of exemplary embodiments of the present disclosure will be described with reference to the drawings of FIGS. 10 to 16.

(108) The particular harmonization of sign bit hiding (SBH) and residual sign prediction (RSP) techniques provided by the present disclosure comprises separating the RSP procedure into the two sub-procedures of preparing RSP lists (at least one list, in specific embodiments: two or more lists) and performing other actions related to the RSP technique, in particular, performing sign estimation and obtaining and encoding the difference between estimated signs and original signs. In between these two sub-procedures, SBH is performed. In particular, a coefficient to which SBH is to be applied is thus no longer selected statically (such as the first non-zero transform coefficient in a predetermined scanning order) but the selection is made so that a coefficient is selected which is not already predicted by means of the RSP technique, i.e. which is not in the RSP list or lists.

(109) This requires additional encoder-side modifications of the SBH procedure by putting constraints on allowed changes of quantized transform coefficients from RSP lists.

(110) The disclosure proposes both normative (i.e. applicable at least to the decoder, in particular: to both decoder and encoder) and non-normative (i.e. applicable to the encoder only) improvements that harmonize sign prediction and hiding processes at the encoder and decoder sides. In the present case, the normative improvements are introduced to both encoding and decoding processes. In embodiments, further non-normative modifications are necessary on the encoder side in order to properly enable the decoder side to parse and decode a signal received from the encoder side. Of course, a decoder according to the present disclosure should be able to decode any signal that has been encoded by an encoder according to the present disclosure.

(111) A processing flow of the modified procedure of harmonizing and applying SBH and RSP on both the encoder and decoder sides is illustrated in FIG. 10.

(112) On the encoder side, the first step (S10) is to prepare one or more RSP-lists, i.e. list of coefficients the signs of which are to be estimated (predicted). In the present example this includes HP- and LP-lists as examples of sub-lists of a RSP list. In the following description, for simplicity they will also be designated as “RSP lists”. LP- and HP-lists have been described above in connection with the general explanation of the RSP technique. These lists are constructed by defining an overall size of the lists (M) and thresholding the parsed magnitude values of the first M coefficients ordered by magnitude and scanning them (e.g. in raster order).

(113) The next step (S12) is different from the conventional approach in that the position of the coefficient with the sign to be hidden (embedded) is no longer defined as the position of the first non-zero coefficient within a scan order. If a coefficient belongs to the RSP lists, its sign shall not be selected for hiding because it already undergoes an encoding and signaling procedure with enhanced compression (the RSP technique). Otherwise, the same data would be encoded using two different techniques simultaneously, i.e. in a redundant way. According to an embodiment of the present disclosure, the position of the coefficient is selected, the sign of which is embedded and restored with the SBH mechanism to be the most low-frequency (significant) one that is not in the lists. Positions corresponding to coefficients belonging to the RSP lists are excluded from this selection process.

(114) As in the conventional case, at the encoder side, the SBH technique should guarantee that for a given set of coefficients (CC or CG) the value of a sign being hidden corresponds to the value of a check function (predetermined function) applied to this set. This property of the quantized residual signals is achieved during quantization process, typically by modifying magnitudes of quantized transform coefficients.

(115) In particular, if a coefficient belongs to the RSP-lists (HP- and LP-lists), then modification of its magnitude is allowed only if the threshold value between HP and LP is not crossed. Otherwise, because different contexts are applied in coding the sign differences between estimated and true signs for the two sub-lists, the decoder would not be able to correctly decode the received encoded difference values between estimated and correct signs. This constraint is taken into account when performing the hiding process of the selected signs in step S14.

(116) In the following step S16, the actual RSP procedure (sign estimation and encoding of the differences) is performed. This can be done by any of the known methods described in the introductory portion above, or alternatively by other suitable methods such as the one described below with reference to FIG. 14.

(117) On the decoder side, the first two steps coincide with the encoding process. At first, in step S20, the RSP-list(s) is/are prepared. In particular, this can be done on the basis of a preset size (M) and ordering the coefficients in descending order in accordance with magnitude, as described above. On both encoder and decoder sides, other suitable mechanisms are possible as well.

(118) In subsequent step S22, a significant quantized transform coefficient is selected for restoring its sign on the basis of the value of a predetermined function, according to an SBH mechanism. The coefficient is selected so as not to be included in the RSP-list(s) (HP- or LP-lists), same as on the encoder side. In particular, the coefficient is selected on the basis of the same rule as on the encoder side, such as the most low-frequency one that is not in the list.

(119) The final steps of the sign decoding process, determining the sign of the coefficient to which SBH is applied (S24) and performing the RSP-procedure including decoding the difference values between estimated and original signs, performing the sign estimation procedure and correcting the estimated signs on the basis of the decoded difference values (S26) are performed in the conventional manner.

(120) FIG. 11 illustrates an exemplary case of harmonization between sign hiding and sign prediction as performed in steps S10 and S12 and steps S20 and S22, respectively.

(121) The upper left portion of the drawing shows a set of quantized transform coefficients, in this case a 4×4 coefficient group. The coefficient group is de-quantized and thresholding is applied with a threshold value of T=300 to the restored (i.e. de-quantized) coefficients. In the given example, the overall number of coefficients in the RSP list is defined as M=5. Accordingly, the coefficient positions corresponding to coefficient values of 768, 512, and −512, having a magnitude larger than the threshold of 300, belong to the HP-sublist. Consequently, there remains a number of 5−3=2 coefficients to populate the LP-sublist. More specifically, out of the remaining three significant coefficients, each having a magnitude of 256, only two are included in the LP-sublist. The remaining coefficient with magnitude 256 not included in the RSP list (in this example: the only remaining significant coefficient of the coefficient group) is thus selected for hiding by SBH. Although in principle the thresholding could also be performed with the quantized coefficients, performing it in the domain of restored coefficients has the advantage of being independent of block size and quantization parameter.

(122) A parity check reveals that no modification of the coefficients is required in this example. Namely, the sum of the absolute values of the quantized transform coefficients is 3+1+2+1+1+2=10, i.e. an even number. This corresponds to the sign (+) of the coefficient selected for hiding.

(123) FIG. 12 describes a conventional example of the determination of the best coefficient modification (if necessary to obtain the desired value of the predetermined function so as to correspond to the correct sign to be hidden). For sake of simplicity, the case of a single coefficient to be hidden, by means of calculating a parity value of the sum of the transform coefficients after quantization is considered, i.e. the necessary modification can be achieved by modifying a single arbitrary one of the coefficients by either +1 or −1.

(124) As usual, the residual signal (RES) which is obtained as a difference of the original and predicted block is transformed (generally, using orthogonal transform such as DCT or DST). The resulting transform coefficients are further quantized with a pre-defined quantization parameter value. The quantization procedure can be performed in different ways. However, the most common one is a rate-distortion optimized quantization (RDOQ). It uses CABAC statistics in order to minimize not only quantization error, but also the number of bits that are required to encode the resulting quantized signal. The quantization parameter is used by RDOQ to determine the most RD-beneficial coefficient modification. In the case when the check function is a parity check function, as assumed here, the desired check function value would always be achieved either by increasing or decreasing the magnitude of one of the coefficients belonging to the set of coefficients which the check function is applied to.

(125) SBH technique at the encoder side operates with the quantized transform coefficients QR and uses a technique similar to RDOQ to determine the most RD-beneficial coefficient modification. For the case when check function is a parity check function, the desired check function value could always be achieved either by increasing or decreasing the magnitude of one of coefficients belonging to the set of coefficients to which the check function is applied.

(126) In the exemplary implementation shown in FIG. 12, for each of the coefficient positions to which the check function is applied, the cost values are calculated: cost of increase (COST.sub.−1) and cost of decrease (COST.sub.+1). The results are compared with each other and the position and direction of amendment (+ or −1) having the smallest cost value is selected. Thus, in the described example, the lowest modification cost determines a position and direction of modification (pos.sub.best) of the quantized transform coefficients magnitude.

(127) As indicated above, some modifications of the quantized transform coefficients are prohibited, e.g. those leading to the alteration of the position on which a sign will be restored at the decoder side. Such constraints have been discussed in detail above.

(128) In view of the constraints, there may be a situation, wherein the modification (position and direction of amendment) resulting in the smallest cost value is prohibited by the constraints and cannot therefore be selected. A straightforward rule to be applied in order to select the modification in view of this is to select the modification having the second smallest cost value (or more generally, the smallest cost value that is not prohibited by the constraints).

(129) However, although the above approach can be applied in the framework of the present disclosure, it turns out that in the framework of the presence of sign hiding and sign prediction techniques in the coding process a pure cost-based optimization becomes suboptimal. In fact, many coefficients have close cost of modification because the cost function is normally not exactly calculated but estimated.

(130) Therefore, embodiments of the present disclosure apply an alternative approach to modify a coefficient's magnitude at the encoder side. This will be described below with reference to FIG. 13.

(131) In the first step (S130), an RD-cost calculation for the individual coefficient modifications is performed. This can be implemented in the manner described above with reference to FIG. 12.

(132) The second step (S132) of FIG. 13 consists in preparing a list of modifications pos_list.sub.CMC (modification is defined by coefficient's position and change direction) that provide RD-cost values that are close to the best (minimum) cost value. The criterion to define whether cost is close enough should be defined as
|COST−COST.sub.BEST|≤ε,
where ε is a predefined value.

(133) It is then determined (S134) whether the thus generated list has more than one element. If there's only a single element (i.e. corresponding to the cost value COST.sub.BEST), then the corresponding position and change direction is selected (S136) and as the optimal modification (pos.sub.best), in the conventional manner.

(134) If, however, the list comprises more than one element, i.e. there are plural possible modifications (position and change direction) having cost values close to the best (minimum) cost value, another criterion is further taken into account, by considering a modification estimation function (MEF). The modification pos.sub.best may then be substituted by another position and modification direction providing a lesser value of the modification estimation function. More specifically, for each member of the list (S135), the modification estimation function is calculated (S137), and the one having the smallest value of the modification estimation function is selected as the (new) optimal modification (pos.sub.best).

(135) According to an embodiment, MEF is defined to be a distortion introduced by coefficient modification. Rate change does not affect the accuracy of the RSP procedure, but distortion does. Therefore, it is avoided to use a rate change value in MEF.

(136) Another embodiment defines a MEF to be a quantized level of the coefficient. In order to maximize the number of coefficients the signs of which are predicted, the coefficient with the highest magnitude is selected out of the pos_list.sub.CMC list.

(137) In the following, with reference to FIG. 14, an alternative approach will be described for performing the sign estimation procedure in the frequency domain (transform domain). The major differences between the conventional method of an estimation procedure in the pixel domain described above with reference to FIG. 3 become evident by comparing FIG. 14 with FIG. 3. In particular: sign estimation is performed in transform domain, and the prediction signal is propagated into the adjacent block area instead of reconstructing the current block and subtracting its boundary pixels from the corresponding pixels of adjacent blocks.

(138) For the sake of simplicity, only one column of the adjacent block is being considered in FIG. 14. Depending on the framework where an embodiment of the present disclosure is applied, the upper row, the right column or even the bottom row could be also used.

(139) The cost function (1) is redefined to use squares instead of modulus:
F=Σ.sub.n=0.sup.N−1(2X.sub.n,−1−X.sub.n,−2−Y.sub.n,0).sup.2+Σ.sub.m=0.sup.M−1(2Z.sub.−1,m−Z.sub.−2,m−Y.sub.0,m).sup.2,  (1a)
where N and M are here height and width of the block.

(140) A reconstructed block consists of prediction and residual parts:
Y.sub.i,j=P.sub.i,j+R.sub.i,j
where P.sub.i,j is prediction, R.sub.i,j is residuals.

(141) In this case components in (1a) can be rearranged:

(142) F = .Math. n = 0 N - 1 ( [ 2 X n , - 1 - X n , - 2 - P n , 0 ] - R n , 0 ) 2 + .Math. m = 0 M - 1 ( [ 2 Z - 1 , m - Z - 2 , m - P 0 , m ] - R 0 , m ) 2

(143) Let's denote T.sub.n=[2X.sub.n,−1−X.sub.n,−2−P.sub.n,0], V.sub.m=[2Z.sub.−1,m−Z.sub.−2,m−P.sub.0,m], Q.sub.n=R.sub.n,0 and O.sub.m=R.sub.0,m. According to Parseval's identity this function can be rewritten in transform domain (1D):
F=Σ.sub.n=0.sup.N−1(T.sub.n−Q.sub.n).sup.2+Σ.sub.m=0.sup.M−1(V.sub.n−O.sub.n).sup.2=Σ.sub.n=0.sup.N−1(t.sub.n−q.sub.n).sup.2+Σ.sub.m=0.sup.M−1(v.sub.m−o.sub.m).sup.2  (2)
where t.sub.n=Trans1D(T.sub.n), q.sub.n=Trans1D(Q.sub.n), v.sub.n=Trans1D(V.sub.n), o.sub.n=Trans1D(O.sub.n), Trans1D( ) is a one-dimensional orthogonal transform.

(144) As a result, the cost function can be calculated, and therefore, the signs of quantized transform coefficients can be estimated in transform domain.

(145) As can be seen from FIG. 14, same as in the conventional approach described above with reference to FIG. 3, the respective calculation of the cost function (which corresponds to a kind of comparison between the predicted transformed difference signal and the calculated dequantized residual transform coefficients q.sub.n) is performed for each of the 2.sup.M hypotheses regarding the set of signs, and the hypothesis minimizing the cost function is taken as the estimation of the set of signs (wherein M is the number of transform coefficients for which the sign is to be predicted in the figures). In particular, the dequantized residual coefficients of block A corresponding to column q.sub.n at the boundary of block A to the adjacent block) are compared with the transformed difference column B.sub.col. The transformed difference column B.sub.col (corresponding to t.sub.n) is obtained by subtracting the propagated prediction signal from the adjacent block column obtaining the difference signal in the pixel domain and by transforming the difference signal into the transformed difference. The transformation is any orthogonal or near orthogonal transformation such as a transformation into a spectral domain, for example, a DFT, FFT, DCT or DST or their integer versions.

(146) In order to determine the relation between q.sub.n, o.sub.n and r.sub.n,m=Trans2D (R.sub.n,m), let's write out relation between R.sub.n,m and r.sub.n,m in the general form:

(147) R n , m = .Math. k = 0 N - 1 W N n , k .Math. l = 0 M - 1 W M m , l r k , l
where W.sub.N.sup.n,k—transform core, as example, for DCT2 it is

(148) W N n , k = 1 N cos ( π ( 2 n + 1 ) k 2 N ) { 1 , k = 0 2 , k > 0 . Q n = R n , 0 = .Math. k = 0 N - 1 W N n , k .Math. l = 0 M - 1 W M 0 , l r k , l q k = .Math. n = 0 N - 1 W N n , k R n , 0 = .Math. l = 0 M - 1 W M 0 , l r k , l , ( 3 )

(149) In case of o.sub.n and r.sub.n,m there will be a similar relation.

(150) Calculations in transform domain are computationally easier, because not all the available coefficients of t.sub.n and v.sub.m are used to calculate cost function. Instead, the method uses only several coefficients that belong to the specific row and specific column. This row and column are corresponding indices of a position of a coefficient, the sign of which is being predicted. A set of signs that minimizes cost function (2) is generated and taken as the estimation result. Sign prediction error is entropy encoded. The resulting bits are combined with the result of conventional sign encoding and is embedded into the bit stream.

(151) An exemplary implementation of the present disclosure at the encoder side is illustrated in FIG. 15. The exemplary encoder according to the present disclosure illustrated in FIG. 15 differs from the conventional encoder of FIG. 8 by additionally including sign prediction (i.e. sign estimation) module (step or unit) 122. Based on the quantized transform coefficients 109, the module outputs sign prediction error 123 to entropy encoding module 170.

(152) The entropy encoding module 170 itself differs from entropy encoding module 170 of FIG. 8 by two modifications. Firstly, the result of the sign estimation, i.e. the sign prediction error, is encoded instead of sign values for a set of given positions (first plurality of coefficients included in the list) within the transform unit of (quantized) transform coefficients. Secondly, new coding contexts are introduced that are applied to encode the result of the sign estimation.

(153) Further, there is also a difference in the quantization module 108 between the embodiment of the present disclosure of FIG. 15 and the conventional encoder of FIG. 8. Namely, as indicated above, the quantization procedure shall ensure, by modifying coefficients if necessary, that the desired property of the check function (predetermined function) is fulfilled so as to hide the sign of a coefficient.

(154) An exemplary implementation of the present disclosure at the decoder side is illustrated in FIG. 16. The illustrated decoder has a new sign prediction module 122, too. The sign prediction module 122 is the same as being used at the encoder side and estimates some of the signs of the quantized transform coefficients located at the position is defined by the list of a first plurality of transform coefficients within a set of transform coefficients.

(155) Moreover, there is a difference in the entropy decoding module 204 between the exemplary embodiment of the present disclosure of FIG. 16 and the conventional example of FIG. 9. According to the disclosure, during the parsing process (entropy decoding) only sign prediction error signal 123 is restored. No parsing dependency is introduced, i.e. the actual sign values and positions can be restored from prediction error signal 123 after the parsing process is complete, specifically, in parallel with the inverse quantization process 210.

(156) In foregoing FIGS. 15 and 16, additional or modified modules (steps or units) compared to the examples of FIGS. 8 and 9 are shown with a light shading.

(157) In embodiments of the present disclosure, at least the following improvements are provided:

(158) The RSP procedure is separated into the two sub-procedures “preparation of RSP lists” and “performing other actions related to the RSP technique” and SBH is performed between these sub-procedures. These changes affect both SBH and RSP lists.

(159) Further, there is an encoder-side modification of the SBH procedure by putting constraints on allowed changes of quantized transform coefficients from RSP lists, if there are several RSP lists (sub-lists), between which there must not be any changes in the coefficient positions distribution by the modification (in particular no crossing of the threshold between sub-lists).

(160) Hence, the present disclosure can be beneficial in the following aspects:

(161) The compression performance can be increased due to harmonizing RSP and SBH techniques.

(162) Hardware computational complexities caused by the proposed method are small at both encoder and decoder sides.

(163) The disclosure can be used in many potential applications in hybrid video coding paradigm that are compatible with the HM software and the VPX video codec family as well as the JEM (Joint Exploration Model) software and the VPX/AV1 video codec family that are state-of-the-art and the next-generation video coding frameworks, respectively.

(164) The disclosure is applicable to a wide range of SBH and RSP techniques.

(165) The present disclosure relates to an improved apparatus and method for harmonizing both Sign Bit Hiding (SBH) and Residual Sign Prediction (RSP) techniques in video coding. In order to improve coding efficiency, a list of transform coefficients, to which RSP is to be applied is prepared in advance of selecting a coefficient to which SBH is applied. Thereby, the RSP list can be populated in such a manner that the highest coding efficiency may be expected. Subsequently, one or more coefficients for applying SBH are selected so as not to be included in the list.

(166) Note that this specification provides explanations for pictures (frames), but fields substitute as pictures in the case of an interlace picture signal.

(167) Although embodiments of the disclosure have been primarily described based on video coding, it should be noted that embodiments of the encoder 100 and decoder 200 (and correspondingly the system 300) may also be configured for still picture processing or coding, i.e. the processing or coding of an individual picture independent of any preceding or consecutive picture as in video coding.

(168) Wherever embodiments and the description refer to the term “memory”, the term “memory” shall be understood and/or shall comprise a magnetic disk, an optical disc, a solid state drive (SSD), a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a USB flash drive, or any other suitable kind of memory, unless explicitly stated otherwise.

(169) Wherever embodiments and the description refer to the term “network”, the term “network” shall be understood and/or shall comprise any kind of wireless or wired network, such as Local Area Network (LAN), Wireless LAN (WLAN) Wide Area Network (WAN), an Ethernet, the Internet, mobile networks etc., unless explicitly stated otherwise.

(170) The person skilled in the art will understand that the “blocks” (“units” or “modules”) of the various figures (method and apparatus) represent or describe functionalities of embodiments of the disclosure (rather than necessarily individual “units” in hardware or software) and thus describe equally functions or features of apparatus embodiments as well as method embodiments (unit=step).

(171) The terminology of “units” is merely used for illustrative purposes of the functionality of embodiments of the encoder/decoder and are not intended to limit the disclosure.

(172) In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely exemplary. For example, the unit division is merely logical function division and may be another division in an actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.

(173) The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.

(174) In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit.

(175) Embodiments of the disclosure may further comprise an apparatus, e.g. encoder and/or decoder, which comprises a processing circuitry configured to perform any of the methods and/or processes described herein.

(176) Embodiments of the encoder 100 and/or decoder 200 may be implemented as hardware, firmware, software or any combination thereof. For example, the functionality of the encoder/encoding or decoder/decoding may be performed by a processing circuitry with or without firmware or software, e.g. a processor, a microcontroller, a digital signal processor (DSP), a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), or the like.

(177) The functionality of the encoder 100 (and corresponding encoding method 100) and/or decoder 200 (and corresponding decoding method 200) may be implemented by program instructions stored on a computer readable medium. The program instructions, when executed, cause a processing circuitry, computer, processor or the like, to perform the steps of the encoding and/or decoding methods. The computer readable medium can be any medium, including non-transitory storage media, on which the program is stored such as a Blu ray disc, DVD, CD, USB (flash) drive, hard disc, server storage available via a network, etc.

(178) An embodiment of the disclosure comprises or is a computer program comprising program code for performing any of the methods described herein, when executed on a computer.

(179) An embodiment of the disclosure comprises or is a computer readable medium comprising a program code that, when executed by a processor, causes a computer system to perform any of the methods described herein.

(180) An embodiment of the disclosure comprises or is a chipset performing any of the methods described herein.

LIST OF REFERENCE SIGNS

(181) 100 Encoder 101 Picture 102, 202 Input (e.g. input port, input interface) 103 Picture block 104 Residual calculation [unit or step] 105 Residual block 106 Transformation (e.g. additionally comprising scaling) [unit or step] 107 Transformed coefficients 108 Quantization [unit or step] 109, 209 Quantized coefficients 110, 210 Inverse quantization [unit or step] 111, 211 De-quantized coefficients 112, 212 Inverse transformation (e.g. additionally comprising scaling) [unit or step] 113, 213 Inverse transformed block 114, 214 Reconstruction [unit or step] 115,215 Reconstructed block 116, 216 (Line) buffer [unit or step] 117, 217 Reference samples 120, 220 Loop filter [unit or step] 121, 221 Filtered block 122 Sign prediction [unit or step] 130, 230 Decoded picture buffer (DPB) [unit or step] 142 Inter estimation (or inter picture estimation) [unit or step] 143 Inter estimation parameters (e.g. reference picture/reference picture index, motion vector/offset) 144, 244 Inter prediction (or inter picture prediction) [unit or step] 145 Inter prediction block 152 Intra estimation (or intra picture estimation) [unit or step] 153 Intra prediction parameters (e.g. intra prediction mode) 154, 254 Intra prediction (intra frame/picture prediction) [unit or step] 155 Intra prediction block 160, 260 Prediction [unit or step] 162, 262 Mode selection [unit or step] 165, 265 Prediction block (e.g. either inter prediction block 145 or intra prediction block 155) 170 Entropy encoding [unit or step] 171 Encoded picture data (e.g. bitstream) 172 Output (output port, output interface) 200 Decoder 204 Entropy decoding 231 Decoded picture 300 Coding system 310 Source device 312 Picture Source 313 (Raw) picture data 314 Pre-processor/Pre-processing unit 315 Pre-processed picture data 318 Communication unit/interface 320 Destination device 322 Communication unit/interface 326 Post-processor/Post-processing unit 327 Post-processed picture data 328 Display device/unit 330 transmitted/received/communicated (encoded) picture data 410 Transform Unit 420 Coefficient Block