GB2519750A - An apparatus, a method and a computer program for video coding and decoding - Google Patents

An apparatus, a method and a computer program for video coding and decoding Download PDF

Info

Publication number
GB2519750A
GB2519750A GB1318878.4A GB201318878A GB2519750A GB 2519750 A GB2519750 A GB 2519750A GB 201318878 A GB201318878 A GB 201318878A GB 2519750 A GB2519750 A GB 2519750A
Authority
GB
United Kingdom
Prior art keywords
samples
picture
block
masked
prediction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
GB1318878.4A
Other versions
GB201318878D0 (en
Inventor
Jani Lainema
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nokia Oyj
Original Assignee
Nokia Oyj
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nokia Oyj filed Critical Nokia Oyj
Priority to GB1318878.4A priority Critical patent/GB2519750A/en
Publication of GB201318878D0 publication Critical patent/GB201318878D0/en
Publication of GB2519750A publication Critical patent/GB2519750A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques

Abstract

Blocks of samples in a picture are coded / decoded using prediction, e.g. Intra Block Copy. Areas within the block may be unwanted (gray in fig. 8) in the prediction. Indication that samples within a block are unwanted and are to be masked is obtained and the location of those samples is indicated. A sample value may be generated to substitute the masked area samples. The final prediction is therefore nearer to the block to be predicted, avoiding the coding / decoding of a residual. The indication may be a one bin identifier encoded with an entropy coder, such as a (CABAC). The location indication may comprise which border of the block the masked area resides and how many samples the area extends from the border (see fig. 10). The substitution sample values may be obtained from a single sample within a prediction block, from copying the value of a sample closest to the centre of the prediction block, from intra block copy process copying a preceding block region of the picture, from a motion compensation process, or from a spatial intra prediction with different parameters than for the rest of the block or a motion compensated prediction.

Description

An Apparatus, a Method and a Computer Program for Video Coding and Decoding
Technical Field
The present invention relates to an apparatus, a method and a computer program for video coding and decoding.
Background Information
Due to the huge amount of data processed in various video coding methods, coding efficiency is of vital importance. One method to further improve the coding efficiency is called intra block copy, which allows for intra prediction by copying a preceding block region of the picture. The known approaches of intra copy block methods are based on square blocks of predefined sizes. E.g. the current H.265/HEVC Range extension draft includes an intra block copy method that is operating at either 8x8 or 16x16 luminance block size. The fixed block size is advantegeous to keep the computational requirements of intra block copying at a reasonable level and also to balance the amount of bits spent to indicate the block copy parameters with the sample prediction quality improvements.
However, a problem with this kind of a rigid grid based operation is that in some cases part of the prediction block may contain completely irrelevant sample data.
This may happen especially when there is text embedded in a picture. In such a case, the block copy approach is able to compensate the part of the block where the character lies very well, but due to the rigid block size it may end up copying not only the sample values contributing positively to the prediction but also sample values that may belong to completely different characters. In this case the coding performance may be significantly reduced as the block copy operation generated arbitrary data into the prediction block.
Therefore, there is a need for an improved method for sample prediction.
Summary
A method according to a first aspect comprises a method for decoding a plurality of blocks of samples within a picture, the method comprising obtaining an indication indicating that one or more samples of a block to be decoded are to be masked and location of said one or more samples to be masked; generating a sample value to be used to substitute the samples in the area to be masked; and substituting the sample values in said area to be masked with the said generated sample value.
According to an embodiment, said indication indicating whether one or more samples of the block are to be masked is a one bin identifier encoded with an entropy coder, such as a context adaptive binary arithmetic coder (CABAC), the method further comprising decoding said indication from a bitstream.
According to an embodiment, the method further comprises decoding the location of said one or more samples to be masked as information on which border of the block the masked area resides and how many samples the area extends from the selected border.
According to an embodiment, the method further comprises generating the sample value used to substitute the samples in the masked area by obtaining the sample value of a single sample within a prediction block.
According to an embodiment, the method further comprises obtaining the sample value used to substitute the samples in the masked area by copying value of the predicted sample in the masked area that is closest to the center of the prediction block.
According to an embodiment, the sample values of the block to be decoded are obtained by an intra block copy process copying a preceding block region of the picture According to an embodiment, the sample values of the block to be decoded are obtained by a motion compensated prediction process.
According to an embodiment, the method further comprises obtaining the sample values in said area to be masked by applying a spatial intra prediction, an intra block copy prediction with different parameters than for the rest ot the block or a motion compensated prediction.
A second aspect includes an apparatus comprising at least one processor and at least one memory, said at least one memory stored with code thereon, which when executed by said at least one processor, causes an apparatus to perform at least: decoding a plurality of blocks of samples within a picture; obtaining an indication indicating that one or more samples of a block to be decoded are to be masked and location of said one or more samples to be masked; generating a sample value to be used to substitute the samples in the area to be masked; and substituting the sample values in said area to be masked with the said generated sample value.
A third and a fourth aspects relate to a computer readable storage medium stored with code thereon for use by an apparatus and to a video decoder arranged to perform the above-described decoding method.
A fifth aspect includes a method for encoding a plurality of blocks of samples within a picture, the method comprising determining that one or more samples of a block to be predicted are not suitable for a used prediction process; and including an indication indicating that one or more samples of a block to be predicted are to be masked and location of said one or more samples to be masked to be signalled in or along a bitstream of encoded picture.
According to an embodiment, said indication indicating that one or more samples of the block are to be masked is a one bin identifier According to an embodiment, the method further comprises encoding said indication with an entropy coder, such as a context adaptive binary arithmetic coder (CABAC).
According to an embodiment, the method further comprises indicating the location of said one or more samples to be masked by signaling on which border of the block the masked area resides and how many samples the area extends from the selected border.
A sixth aspect includes an apparatus comprising at least one processor and at least one memory, said at least one memory stored with code thereon, which when executed by said at least one processor, causes an apparatus to perform at least: encoding a plurality of blocks of samples within a picture; determining that one or more samples of a block to be predicted are not suitable for a used prediction process; and including an indication indicating that one or more samples of a block to be predicted are to be masked and location of said one or more samples to be masked to be signalled in or along a bitstream of encoded picture.
A seventh and an eighth aspects relate to a computer readable storage medium stored with code thereon for use by an apparatus and to a video encoder arranged to perform the above-described encoding method.
Brief Description of the Drawings
For better understanding of the present invention, reference will now be made by way of example to the accompanying drawings in which: Figure 1 shows schematically an electronic device employing some embodiments of the invention; Figure 2 shows schematically a user equipment suitable for employing some embodiments of the invention; Figure 3 further shows schematically electronic devices employing embodiments of the invention connected using wireless and wired network connections; Figure 4 shows schematically an encoder suitable for implementing some embodiments of the invention; Figure 5 shows an example of a picture consisting of two tiles; Figure 6 shows an example of a current block and five spatial neighbors usable as motion prediction candidates; Figure 7 shows an example of a picture with textual content to be decoded; Figure 8 shows a flow chart of a decoding process of a plurality of blocks of samples according to an embodiment of the invention; Figure 9 shows a comparison of a traditional intra block copy process and the sample masking process according to an embodiment of the invention; Figure 10 shows an example of different masked areas extending from different borders according to some embodiments of the invention; and Figure 11 shows a schematic diagram of a decoder suitable for implementing some embodiments of the invention.
Detailed Description of Some Example Embodiments
The following describes in further detail suitable apparatus and possible mechanisms for encoding an enhancement layer sub-picture without significantly sacrificing the coding efficiency. In this regard reference is first made to Figure 1 which shows a schematic block diagram of an exemplary apparatus or electronic device 50, which may incorporate a codec according to an embodiment of the invention.
The electronic device 50 may for example be a mobile terminal or user equipment of a wireless communication system. However, it would be appreciated that embodiments of the invention may be implemented within any electronic device or apparatus which may require encoding and decoding or encoding or decoding video images.
The apparatus 50 may comprise a housing 30 for incorporating and protecting the device. The apparatus 50 further may comprise a display 32 in the form of a liquid crystal display. In other embodiments of the invention the display may be any suitable display technology suitable to display an image or video. The apparatus may further comprise a keypad 34. In other embodiments of the invention any suitable data or user interface mechanism may be employed. For example the user interface may be implemented as a virtual keyboard or data entry system as part of a touch-sensitive display. The apparatus may comprise a microphone 36 or any suitable audio input which may be a digital or analogue signal input. The apparatus 50 may further comprise an audio output device which in embodiments of the invention may be any one of: an earpiece 38, speaker, or an analogue audio or digital audio output connection. The apparatus 50 may also comprise a battery (or in other embodiments of the invention the device may be powered by any suitable mobile energy device such as solar cell, fuel cell or clockwork generator).
The apparatus may further comprise an infrared port 42 for shod range line of sight communication to other devices. In other embodiments the apparatus 50 may further comprise any suitable short range communication solution such as for example a Bluetooth wireless connection or a USB/firewire wired connection.
The apparatus 50 may comprise a controller 56 or processor for controlling the apparatus 50. The controller 56 may be connected to memory 58 which in embodiments of the invention may store both data in the form of image and audio data and/or may also store instructions for implementation on the controller 56.
The controller 56 may further be connected to codec circuitry 54 suitable for carrying out coding and decoding of audio and/or video data or assisting in coding and decoding carried out by the controller 56.
The apparatus 50 may further comprise a card reader 48 and a smart card 46, for example a UICC and LJICC reader for providing user information and being suitable for providing authentication information for authentication and authorization of the user at a network.
The apparatus 50 may comprise radio interface circuitry 52 connected to the controller and suitable for generating wireless communication signals for example for communication with a cellular communications network, a wireless communications system or a wireless local area network. The apparatus 50 may further comprise an antenna 44 connected to the radio interface circuitry 52 for transmitting radio frequency signals generated at the radio interface circuitry 52 to other apparatus(es) and for receiving radio frequency signals from other apparatus(es).
In some embodiments of the invention, the apparatus 50 comprises a camera capable of recording or detecting individual frames which are then passed to the codec 54 or controller for processing. In other embodiments of the invention, the apparatus may receive the video image data for processing from another device prior to transmission and/or storage. In other embodiments of the invention, the apparatus 50 may receive either wirelessly or by a wired connection the image for coding/decoding.
With respect to Figure 3, an example of a system within which embodiments of the present invention can be utilized is shown. The system 10 comprises multiple communication devices which can communicate through one or more networks.
The system 10 may comprise any combination of wired or wireless networks including, but not limited to a wireless cellular telephone network (such as a GSM, UMTS, CDMA network etc), a wireless local area network (WLAN) such as defined by any of the IEEE 802.x standards, a Bluetooth personal area network, an Ethernet local area network, a token ring local area network, a wide area network, and the Internet.
The system 10 may include both wired and wireless communication devices or apparatus 50 suitable for implementing embodiments of the invention.
For example, the system shown in Figure 3 shows a mobile telephone network 11 and a representation of the internet 28. Connectivity to the internet 28 may include, but is not limited to, long range wireless connections, short range wireless connections, and various wired connections including, but not limited to, telephone lines, cable lines, power lines, and similar communication pathways.
The example communication devices shown in the system 10 may include, but are not limited to, an electronic device or apparatus 50, a combination of a personal digital assistant (PDA) and a mobile telephone 14, a PDA 16, an integrated messaging device (IMD) 18, a desktop computer 20, a notebook computer 22. The apparatus 50 may be stationary or mobile when carried by an individual who is moving. The apparatus 50 may also be located in a mode of transport including, but not limited to, a car, a truck, a taxi, a bus, a train, a boat, an airplane, a bicycle, a motorcycle or any similar suitable mode of transport.
The embodiments may also be implemented in a set-top box; i.e. a digital TV receiver, which may/may not have a display or wireless capabilities, in tablets or (laptop) personal computers (PC), which have hardware or software or combination of the encoder/decoder implementations, in various operating systems, and in chipsets, processors, DSPs and/or embedded systems offering hardware/software based coding.
Some or further apparatus may send and receive calls and messages and communicate with service providers through a wireless connection 25 to a base station 24. The base station 24 may be connected to a network server 26 that allows communication between the mobile telephone network 11 and the internet 28. The system may include additional communication devices and communication devices of various types.
The communication devices may communicate using various transmission technologies including, but not limited to, code division multiple access (CDMA), global systems for mobile communications (GSM), universal mobile telecommunications system (UMTS), time divisional multiple access (TDMA), frequency division multiple access (FDMA), transmission control protocol-internet protocol (TCP-IF), short messaging service (SMS), multimedia messaging service (MMS), email, instant messaging service (IMS), Bluetooth, IEEE 802.11 and any similar wireless communication technology. A communications device involved in implementing various embodiments of the present invention may communicate using various media including, but not limited to, radio, infrared, laser, cable connections, and any suitable connection.
Video codec consists of an encoder that transforms the input video into a compressed representation suited for storage/transmission and a decoder that can uncompress the compressed video representation back into a viewable form.
Typically encoder discards some information in the original video sequence in order to represent the video in a more compact form (that is, at lower bitrate).
Typical hybrid video codecs, for example many encoder implementations of ITU-T H.263 and H.264, encode the video information in two phases. Firstly pixel values in a certain picture area (or "block") are predicted for example by motion compensation means (finding and indicating an area in one of the previously coded video frames that corresponds closely to the block being coded) or by spatial means (using the pixel values around the block to be coded in a specified manner). Secondly the prediction error, i.e. the difference between the predicted block of pixels and the original block of pixels, is coded. This is typically done by transforming the difference in pixel values using a specified transform (e.g. Discrete Cosine Transform (DCT) or a variant of it), quantizing the coefficients and entropy coding the quantized coefficients. By varying the fidelity of the quantization process, encoder can control the balance between the accuracy of the pixel representation (picture quality) and size of the resulting coded video representation (file size or transmission bitrate).
Inter prediction, which may also be referred to as temporal prediction, motion compensation, or motion-compensated prediction, reduces temporal redundancy.
In inter prediction the sources of prediction are previously decoded pictures. Intra prediction utilizes the fact that adjacent pixels within the same picture are likely to be correlated. Intra prediction can be performed in spatial or transform domain, i.e., either sample values or transform coefficients can be predicted. Intra prediction is typically exploited in intra coding, where no inter prediction is applied.
One outcome of the coding procedure is a set of coding parameters, such as motion vectors and quantized transform coefficients. Many parameters can be entropy-coded more efficiently if they are predicted first from spatially or temporally neighboring parameters. For example, a motion vector may be predicted from spatially adjacent motion vectors and only the difference relative to the motion vector predictor may be coded. Prediction of coding parameters and intra prediction may be collectively referred to as in-picture prediction.
Figure 4 shows a block diagram of a video encoder suitable for employing embodiments of the invention. Figure 4 presents an encoder for two layers, but it would be appreciated that presented encoder could be similarly extended to encode more than two layers. Figure 4 illustrates an embodiment of a video encoder comprising a first encoder section 500 for a base layer and a second encoder section 502 for an enhancement layer. Each of the first encoder section 500 and the second encoder section 502 may comprise similar elements for encoding incoming pictures. The encoder sections 500, 502 may comprise a pixel predictor 302, 402, prediction error encoder 303, 403 and prediction error decoder 304, 404. Figure 4 also shows an embodiment of the pixel predictor 302, 402 as comprising an inter-predictor 306, 406, an intra-predictor 308, 408, a mode selector 310, 410, a filter 316, 416, and a reference frame memory 318, 418. The pixel predictor 302 of the first encoder section 500 receives 300 base layer images of a video stream to be encoded at both the inter-predictor 306 (which determines the difference between the image and a motion compensated reference frame 318) and the intra-predictor 308 (which determines a prediction for an image block based only on the already processed parts of current frame or picture). The output of both the inter-predictor and the intra-predictor are passed to the mode selector 310. The intra-predictor 308 may have more than one intra-prediction modes.
Hence, each mode may perform the intra-prediction and provide the predicted signal to the mode selector 310. The mode selector 310 also receives a copy of the base layer picture 300. Correspondingly, the pixel predictor 402 of the second encoder section 502 receives 400 enhancement layer images of a video stream to be encoded at both the inter-predictor 406 (which determines the difference between the image and a motion compensated reference frame 418) and the intra-predictor 408 (which determines a prediction for an image block based only on the already processed parts of current frame or picture). The output of both the inter- predictor and the intra-predictor are passed to the mode selector 410. The intra-predictor 408 may have more than one intra-prediction modes. Hence, each mode may perform the intra-prediction and provide the predicted signal to the mode selector 410. The mode selector 410 also receives a copy of the enhancement layer picture 400.
Depending on which encoding mode is selected to encode the current block, the output of the inter-predictor 306, 406 or the output of one of the optional intra-predictor modes or the output of a surface encoder within the mode selector is passed to the output of the mode selector 310, 410. The output of the mode selector is passed to a first summing device 321, 421. The first summing device may subtract the output of the pixel predictor 302, 402 from the base layer picture 300lenhancement layer picture 400 to produce a first prediction error signal 320, 420 which is input to the prediction error encoder 303, 403.
The pixel predictor 302, 402 further receives from a preliminary reconstructor 339, 439 the combination of the prediction representation of the image block 312, 412 and the output 338, 438 of the prediction error decoder 304, 404. The preliminary reconstructed image 314, 414 may be passed to the intra-predictor 308, 408 and to a filter 316, 416. The filter 316, 416 receiving the preliminary representation may filter the preliminary representation and output a final reconstructed image 340, 440 which may be saved in a reference frame memory 318, 418. The reference frame memory 318 may be connected to the inter-predictor 306 to be used as the reference image against which a future base layer picture 300 is compared in inter-prediction operations. Subject to the base layer being selected and indicated to be source for inter-layer sample prediction and/or inter-layer motion information prediction of the enhancement layer according to some embodiments, the reference frame memory 318 may also be connected to the inter-predictor 406 to be used as the reference image against which a future enhancement layer pictures 400 is compared in inter-prediction operations. Moreover, the reference frame memory 418 may be connected to the inter-predictor 406 to be used as the reference image against which a future enhancement layer picture 400 is compared in inter-prediction operations.
Filtering parameters from the filter 316 of the first encoder section 500 may be provided to the second encoder section 502 subject to the base layer being selected and indicated to be source for predicting the filtering parameters of the enhancement layer according to some embodiments.
The prediction error encoder 303, 403 comprises a transform unit 342, 442 and a quantizer 344, 444. The transform unit 342, 442 transforms the first prediction error signal 320, 420 to a transform domain. The transform is, for example, the DCT transform. The quantizer 344, 444 quantizes the transform domain signal, e.g. the DOT coefficients, to form quantized coefficients.
The prediction error decoder 304, 404 receives the output from the prediction error encoder 303, 403 and performs the opposite processes of the prediction error encoder 303, 403 to produce a decoded prediction error signal 338, 438 which, when combined with the prediction representation of the image block 312, 412 at the second summing device 339, 439, produces the preliminary reconstructed image 314, 414. The prediction error decoder may be considered to comprise a dequantizer 361, 461, which dequantizes the quantized coefficient values, e.g. DOT coefficients, to reconstruct the transform signal and an inverse transformation unit 363, 463, which performs the inverse transformation to the reconstructed transform signal wherein the output of the inverse transformation unit 363, 463 contains reconstructed block(s). The prediction error decoder may also comprise a block filter which may filter the reconstructed block(s) according to further decoded information and filter parameters.
The entropy encoder 330, 430 receives the output of the prediction error encoder 303, 403 and may perform a suitable entropy encoding/variable length encoding on the signal to provide error detection and correction capability. The outputs of the entropy encoders 330, 430 may be inserted into a bitstream e.g. by a multiplexer 508.
The H.2641AVC standard was developed by the Joint Video Team (JVT) of the Video Coding Experts Group (VCEG) of the Telecommunications Standardization Sector of International Telecommunication Union (ITU-T) and the Moving Picture Experts Group (MPEG) of International Organisation for Standardization (ISO) / International Electrotechnical Commission (IEC). The H.2641AVC standard is published by both parent standardization organizations, and it is referred to as ITU-T Recommendation H.264 and ISO/IEC International Standard 14496-1 0, also known as MPEG-4 Part 10 Advanced Video Coding (AVC). There have been multiple versions of the H.264/AVC standard, integrating new extensions or features to the specification. These extensions include Scalable Video Coding (SVC) and Multiview Video Coding (MVC).
The High Efficiency Video Coding (H.265/HEVC) standard was developed by the Joint Collaborative Team -Video Coding (JCT-VC) of VCEG and MPEG. The standard is or will be published by both parent standardization organizations, and it is referred to as ITU-T Recommendation H.265 and ISO/IEC International Standard 23008-2, also known as MPEG-H Part 2 High Efficiency Video Coding (HEVC). There are currently ongoing standardization projects to develop extensions to H.265/HEVC, including scalable, multiview, three-dimensional, and fidelity range extensions.
Some key definitions, bitstream and coding structures, and concepts of H.264/AVC and HEVC are described in this section as an example of a video encoder, decoder, encoding method, decoding method, and a bitstream structure, wherein the embodiments may be implemented. Some of the key definitions, bitstream and coding structures, and concepts of H.264/AVC are the same as in HEVC-hence, they are described below jointly. The aspects of the invention are not limited to H.264/AVC or HEVC, but rather the description is given for one possible basis on top of which the invention may be partly or fully realized.
Similarly to many earlier video coding standards, the bitstream syntax and semantics as well as the decoding process for error-free bitstreams are specified in H.264/AVC and HEVC. The encoding process is not specified, but encoders must generate conforming bitstreams. Bitstream and decoder conformance can be verified with the Hypothetical Reference Decoder (HRD). The standards contain coding tools that help in coping with transmission errors and losses, but the use of the tools in encoding is optional and no decoding process has been specified for erroneous bitstreams.
In the description of existing standards as well as in the description of example embodiments, a syntax element may be defined as an element of data represented in the bitstream. A syntax structure may be defined as zero or more syntax elements present together in the bitstream in a specified order.
A profile may be defined as a subset of the entire bitstream syntax that is specified by a decoding/coding standard or specification. Within the bounds imposed by the syntax of a given profile it is still possible to require a very large variation in the performance of encoders and decoders depending upon the values taken by syntax elements in the bitstream such as the specified size of the decoded pictures. In many applications, it might be neither practical nor economic to implement a decoder capable of dealing with all hypothetical uses of the syntax within a particular profile. In order to deal with this issue, levels may be used. A level may be defined as a specified set of constraints imposed on values of the syntax elements in the bitstream and variables specified in a decoding/coding standard or specification. These constraints may be simple limits on values.
Alternatively or in addition, they may take the form of constraints on arithmetic combinations of values (e.g., picture width multiplied by picture height multiplied by number of pictures decoded per second). Other means for specifying constraints for levels may also be used. Some of the constraints specified in a level may for example relate to the maximum picture size, maximum bitrate and maximum data rate in terms of coding units, such as macroblocks, per a time period, such as a second. The same set of levels may be defined for all profiles. It may be preferable for example to increase interoperability of terminals implementing different profiles that most or all aspects of the definition of each level may be common across different profiles.
The elementary unit for the input to an H.264/AVC or HEVC encoder and the output of an H.264/AVC or HEVC decoder, respectively, is a picture. A picture given as an input to an encoder may also referred to as a source picture, and a picture decoded by a decoded may be referred to as a decoded picture.
The source and decoded pictures are each comprised of one or more sample arrays, such as one of the following sets of sample arrays: -Luma (Y) only (monochrome).
-Luma and two chroma (YCbCr or YCgC0).
-Green, Blue and Red (GBR, also known as RGB).
-Arrays representing other unspecified monochrome or tn-stimulus color samplings (for example, YZX, also known as XYZ).
In the following, these arrays may be referred to as luma (or L or Y) and chroma, where the two chroma arrays may be referred to as Cb and Cr; regardless of the actual color representation method in use. The actual color representation method in use can be indicated e.g. in a coded bitstream e.g. using the Video Usability Information (VUI) syntax of H.264/AVC and/or HEVC. A component may be defined as an array or single sample from one of the three sample arrays arrays (luma and two chroma) or the array or a single sample of the array that compose a picture in monochrome format.
In H.264/AVC and HEVC, a picture may either be a frame or a field. A frame comprises a matrix of luma samples and possibly the corresponding chroma samples. A field is a set of alternate sample rows of a frame and may be used as encoder input, when the source signal is interlaced. Chroma sample arrays may be absent (and hence monochrome sampling may be in use) or chroma sample arrays may be subsampled when compared to luma sample arrays. Chroma formats may be summarized as follows: -In monochrome sampling there is only one sample array, which may be nominally considered the luma array.
-In 4:2:0 sampling, each of the two chroma arrays has half the height and half the width of the luma array.
-In 4:2:2 sampling, each of the two chroma arrays has the same height and half the width of the luma array.
-In 4:4:4 sampling when no separate color planes are in use, each of the two chroma arrays has the same height and width as the luma array.
In H.264/AVC and HEVC, it is possible to code sample arrays as separate color planes into the bitstream and respectively decode separately coded color planes from the bitstream. When separate color planes are in use, each one of them is separately processed (by the encoder and/or the decoder) as a picture with monochrome sampling.
When chroma subsampling is in use (e.g. 4:2:0 or 4:2:2 chroma sampling), the location of chroma samples with respect to luma samples may be determined in the encoder side (e.g. as pre-processing step or as part of encoding). The chroma sample positions with respect to luma sample positions may be pre-defined for example in a coding standard, such as H.264/AVC or HEVC, or may be indicated in the bitstream for example as part of VUI of H.264/AVC or HEVC.
A partitioning may be defined as a division of a set into subsets such that each element of the set is in exactly one of the subsets.
In H.264/AVC, a macroblock is a 16x16 block of luma samples and the corresponding blocks of chroma samples. For example, in the 4:2:0 sampling pattern, a macroblock contains one 8x8 block of chroma samples per each chroma component. In H.264/AVC, a picture is partitioned to one or more slice groups, and a slice group contains one or more slices. In H.264/AVC, a slice consists of an integer number of macroblocks ordered consecutively in the raster scan within a particular slice group.
When describing the operation of HEVC encoding and/or decoding, the following terms may be used. A coding block may be defined as an NxN block of samples for some value of N such that the division of a coding tree block into coding blocks is a partitioning. A coding tree block (CTB) may be defined as an NxN block of samples for some value of N such that the division of a component into coding tree blocks is a partitioning. A coding tree unit (CTU) may be defined as a coding tree block of luma samples, two corresponding coding tree blocks of chroma samples of a picture that has three sample arrays, or a coding tree block of samples of a monochrome picture or a picture that is coded using three separate color planes and syntax structures used to code the samples. A coding unit (CU) may be defined as a coding block of luma samples, two corresponding coding blocks of chroma samples of a picture that has three sample arrays, or a coding block of samples of a monochrome picture or a picture that is coded using three separate color planes and syntax structures used to code the samples.
In some video codecs, such as High Efficiency Video Coding (HEVC) codec, video pictures are divided into coding units (CU) covering the area of the picture. A CU consists of one or more prediction units (PU) defining the prediction process for the samples within the CU and one or more transform units (TU) defining the prediction error coding process for the samples in the said CU. Typically, a CU consists of a square block of samples with a size selectable from a predefined set of possible CU sizes. A CU with the maximum allowed size may be named as LCU (largest coding unit) or coding tree unit (CTU) and the video picture is divided into non-overlapping [CUs. An [CU can be further split into a combination of smaller CUs, e.g. by recursively splitting the LCU and resultant CUs. Each resulting CU typically has at least one PU and at least one TU associated with it. Each PU and TU can be further split into smaller PUs and TUs in order to increase granularity of the prediction and prediction error coding processes, respectively. Each PU has prediction information associated with it defining what kind of a prediction is to be applied for the pixels within that PU (e.g. motion vector information for inter predicted Pus and intra prediction directionality information for intra predicted Pus).
The directionality of a prediction mode for intra prediction, i.e. the prediction direction to be applied in a particular prediction mode, may be vertical, horizontal, diagonal. For example, in HEVC, intra prediction provides up to 33 directional prediction modes, depending on the size of Pus, and each of the intra prediction modes has a prediction direction assigned to it.
Similarly each TU is associated with information describing the prediction error decoding process for the samples within the said TU (including e.g. DCT coefficient information). It is typically signalled at CU level whether prediction error coding is applied or not for each CU. In the case there is no prediction error residual associated with the CU, it can be considered there are no TUs for the said CU. The division of the image into CUs, and division of CUs into Pus and TUs is typically signalled in the bitstream allowing the decoder to reproduce the intended structure of these units.
In HEVC, a picture can be partitioned in tiles, which are rectangular and contain an integer number of LCUs. In HEVC, the partitioning to tiles forms a regular grid, where heights and widths of tiles differ from each other by one LCU at the maximum. In a draft HEVC, a slice is defined to be an integer number of coding tree units contained in one independent slice segment and all subsequent dependent slice segments (if any) that precede the next independent slice segment (if any) within the same access unit. In HEVC, a slice segment is defined to be an integer number of coding tree units ordered consecutively in the tile scan and contained in a single NAL unit. The division of each picture into slice segments is a partitioning. In HEVC, an independent slice segment is defined to be a slice segment for which the values of the syntax elements of the slice segment header are not inferred from the values for a preceding slice segment, and a dependent slice segment is defined to be a slice segment for which the values of some syntax elements of the slice segment header are inferred from the values for the preceding independent slice segment in decoding order. In HEVC, a slice header is defined to be the slice segment header of the independent slice segment that is a current slice segment or is the independent slice segment that precedes a current dependent slice segment, and a slice segment header is defined to be a part of a coded slice segment containing the data elements pertaining to the first or all coding tree units represented in the slice segment. The CUs are scanned in the raster scan order of LCUs within tiles or within a picture, if tiles are not in use. Within an [CU, the CUs have a specific scan order. Figure 5 shows an example of a picture consisting of two tiles partitioned into square coding units (solid lines) which have been further partitioned into rectangular prediction units (dashed lines).
The decoder reconstructs the output video by applying prediction means similar to the encoder to form a predicted representation of the pixel blocks (using the motion or spatial information created by the encoder and stored in the compressed representation) and prediction error decoding (inverse operation of the prediction error coding recovering the quantized prediction error signal in spatial pixel domain). After applying prediction and prediction error decoding means the decoder sums up the prediction and prediction error signals (pixel values) to form the output video frame. The decoder (and encoder) can also apply additional filtering means to improve the quality of the output video before passing it for display and/or storing it as prediction reference for the forthcoming frames in the video sequence.
The filtering may for example include one more of the following: deblocking, sample adaptive offset (SAO), and/or adaptive loop filtering (ALF).
In SAO, a picture is divided into regions where a separate SAO decision is made for each region. The SAO information in a region is encapsulated in a SAO parameters adaptation unit (SAO unit) and in HEVC, the basic unit for adapting SAO parameters is CTU (therefore an SAO region is the block covered by the corresponding CTU).
In the SAO algorithm, samples in a CTLJ are classified according to a set of rules and each classified set of samples are enhanced by adding offset values. The offset values are signalled in the bitstream. There are two types of offsets: 1) Band offset 2) Edge offset. For a CTU, either no SAO or band offset or edge offset is employed. Choice of whether no SAO or band or edge offset to be used may be decided by the encoder with e.g. rate distortion optimization (RDO) and signaled to the decoder.
In the band offset, the whole range of sample values is in some embodiments divided into 32 equal-width bands. For example, for 8-bit samples, width of a band is 8 (=256/32). Out of 32 bands, 4 of them are selected and different offsets are signalled for each of the selected bands. The selection decision is made by the encoder and may be signalled as follows: The index of the first band is signalled and then it is inferred that the following four bands are the chosen ones. The band offset may be useful in correcting errors in smooth regions.
In the edge offset type, the edge offset (EO) type may be chosen out of four possible types (or edge classifications) where each type is associated with a direction: 1) vertical, 2) horizontal, 3)135 degrees diagonal, and 4) 45 degrees diagonal. The choice of the direction is given by the encoder and signalled to the decoder. Each type defines the location of two neighbour samples for a given sample based on the angle. Then each sample in the CTLJ is classified into one of five categories based on comparison of the sample value against the values of the two neighbour samples. The five categories are described as follows: 1. Current sample value is smaller than the two neighbour samples 2. Current sample value is smaller than one of the neighbors and equal to the other neighbor 3. Current sample value is greater than one of the neighbors and equal to the other neighbor 4. Current sample value is greater than two neighbour samples 5. None of the above These five categories are not required to be signalled to the decoder because the classification is based on only reconstructed samples, which may be available and identical in both the encoder and decoder. After each sample in an edge offset type CTU is classified as one of the five categories, an offset value for each of the first four categories is determined and signalled to the decoder. The offset for each category is added to the sample values associated with the corresponding category. Edge offsets may be effective in correcting ringing artifacts.
The SAO parameters may be signalled as interleaved in CTU data. Above CTU, slice header contains a syntax element specifying whether SAO is used in the slice. If SAO is used, then two additional syntax elements specify whether SAO is applied to Cb and Cr components. For each CTU, there are three options: 1) copying SAO parameters from the left CTU, 2) copying SAO parameters from the above CTU, or 3) signalling new SAO parameters.
The adaptive loop filter (ALF) is another method to enhance quality of the reconstructed samples. This may be achieved by filtering the sample values in the loop. In some embodiments the encoder determines which region of the pictures are to be filtered and the filter coefficients based on e.g. RDO and this information is signalled to the decoder.
In typical video codecs the motion information is indicated with motion vectors associated with each motion compensated image block. Each of these motion vectors represents the displacement of the image block in the picture to be coded (in the encoder side) or decoded (in the decoder side) and the prediction source block in one of the previously coded or decoded pictures. In order to represent motion vectors efficiently those are typically coded differentially with respect to block specific predicted motion vectors. In typical video codecs the predicted motion vectors are created in a predefined way, for example calculating the median of the encoded or decoded motion vectors of the adjacent blocks. Another way to create motion vector predictions is to generate a list of candidate predictions from adjacent blocks and/or co-located blocks in temporal reference pictures and signalling the chosen candidate as the motion vector predictor. In addition to predicting the motion vector values, it can be predicted which reference picture(s) are used for motion-compensated prediction and this prediction information may be represented for example by a reference index of previously coded/decoded picture. The reference index is typically predicted from adjacent blocks and/or or co-located blocks in temporal reference picture. Moreover, typical high efficiency video codecs employ an additional motion information coding/decoding mechanism, often called merging/merge mode, where all the motion field information, which includes motion vector and corresponding reference picture index for each available reference picture list, is predicted and used without any modification/correction. Similarly, predicting the motion field information is carried out using the motion field information of adjacent blocks and/or co-located blocks in temporal reference pictures and the used motion field information is signalled among a list of motion field candidate list filled with motion field information of available adjacent/co-located blocks.
Typical video codecs enable the use of uni-prediction, where a single prediction block is used for a block being (de)coded, and bi-prediction, where two prediction blocks are combined to form the prediction for a block being (de)coded. Some video codecs enable weighted prediction, where the sample values of the prediction blocks are weighted prior to adding residual information. For example, multiplicative weighting factor and an additive offset which can be applied. In explicit weighted prediction, enabled by some video codecs, a weighting factor and offset may be coded for example in the slice header for each allowable reference picture index. In implicit weighted prediction, enabled by some video codecs, the weighting factors and/or offsets are not coded but are derived e.g. based on the relative picture order count (P00) distances of the reference pictures.
In typical video codecs the prediction residual after motion compensation is first transformed with a transform kernel (like DOT) and then coded. The reason for this is that often there still exists some correlation among the residual and transform can in many cases help reduce this correlation and provide more efficient coding.
Typical video encoders utilize Lagrangian cost functions to find optimal coding modes, e.g. the desired Macroblock mode and associated motion vectors. This kind of cost function uses a weighting factor A to tie together the (exact or estimated) image distortion due to lossy coding methods and the (exact or estimated) amount of information that is required to represent the pixel values in an image area: C=D+AR, (1) where C is the Lagrangian cost to be minimized, D is the image distortion (e.g. Mean Squared Error) with the mode and motion vectors considered, and R the number of bits needed to represent the required data to reconstruct the image block in the decoder (including the amount of data to represent the candidate motion vectors).
Video coding standards and specifications may allow encoders to divide a coded picture to coded slices or alike. In-picture prediction is typically disabled across slice boundaries. Thus, slices can be regarded as a way to split a coded picture to independently decodable pieces. In H.2641AVC and HEVC, in-picture prediction may be disabled across slice boundaries. Thus, slices can be regarded as a way to split a coded picture into independently decodable pieces, and slices are therefore often regarded as elementary units for transmission. In many cases, encoders may indicate in the bitstream which types of in-picture prediction are turned off across slice boundaries, and the decoder operation takes this information into account for example when concluding which prediction sources are available. For example, samples from a neighboring macroblock or CU may be regarded as unavailable for intra prediction, if the neighboring macroblock or CU resides in a different slice.
The elementary unit for the output of an H.264/AVC or HEVC encoder and the input of an H.264/AVC or HEVC decoder, respectively, is a Network Abstraction Layer (NAL) unit. For transport over packet-oriented networks or storage into structured files, NAL units may be encapsulated into packets or similar structures.
A bytestream format has been specified in H.264/AVC and HEVC for transmission or storage environments that do not provide framing structures. The bytestream format separates NAL units from each other by attaching a start code in front of each NAL unit. To avoid false detection of NAL unit boundaries, encoders run a byte-oriented start code emulation prevention algorithm, which adds an emulation prevention byte to the NAL unit payload if a start code would have occurred otherwise. In order to enable straightforward gateway operation between packet-and stream-oriented systems, start code emulation prevention may always be performed regardless of whether the bytestream format is in use or not. A NAL unit may be defined as a syntax structure containing an indication of the type of data to follow and bytes containing that data in the form of an RBSP interspersed as necessary with emulation prevention bytes. A raw byte sequence payload (RBSP) may be defined as a syntax structure containing an integer number of bytes that is encapsulated in a NAL unit. An RBSP is either empty or has the form of a string of data bits containing syntax elements followed by an RBSF' stop bit and followed by zero or more subsequent bits equal to 0.
NAL units consist of a header and payload. In H.264/AVC and HEVC, the NAL unit header indicates the type of the NAL unit. In H.264/AVC, the NAL unit header indicates whether a coded slice contained in the NAL unit is a part of a reference picture or a non-reference picture.
H.264/AVC NAL unit header includes a 2-bit nal_ref_idc syntax element, which when equal to 0 indicates that a coded slice contained in the NAL unit is a part of a non-reference picture and when greater than 0 indicates that a coded slice contained in the NAL unit is a part of a reference picture. The header for SVC and MVC NAL units may additionally contain various indications related to the scalability and multiview hierarchy.
In HEVC, a two-byte NAL unit header is used for all specified NAL unit types. The NAL unit header contains one reserved bit, a six-bit NAL unit type indication, a three-bit nuh_temporal_id_plusl indication for temporal level (may be required to be greater than or equal to 1) and a six-bit reserved field (callednuh_layer_id). The temporal_id_plusi syntax element may be regarded as a temporal identifier for the NAL unit, and a zero-based Temporalld variable may be derived as follows: Temporalld = temporal id plusi -1. Temporalld equal to 0 corresponds to the lowest temporal level. The value of temporal_id_plusi is required to be non-zero in order to avoid start code emulation involving the two NAL unit header bytes.
The six-bit reserved field is expected to be used by extensions such as a future scalable and 3D video extension. It is expected that these six bits would carry information on the scalability hierarchy, such as quality_id or similar, dependency_id or similar, any other type of layer identifier, view order index or similar, view identifier, an identifier similar to priority_id of SVC indicating a valid sub-bitstream extraction if all NAL units greater than a specific identifier value are removed from the bitstream. Without loss of generality, in some example embodiments a variable Layerld is derived from the value of reserved_zero_6bits for example as follows: Layerld = reserved_zero_6bits.
NAL units can be categorized into Video Coding Layer (VCL) NAL units and non-VCL NAL units. VCL NAL units are typically coded slice NAL units. In H.264/AVC, coded slice NAL units contain syntax elements representing one or more coded macroblocks, each of which corresponds to a block of samples in the uncompressed picture. In HEVC, coded slice NAL units contain syntax elements representing one or more Cu.
In H.264/AVC, a coded slice NAL unit can be indicated to be a coded slice in an Instantaneous Decoding Refresh (IDR) picture or coded slice in a non-IDR picture.
In HEVC, a coded slice NAL unit can be indicated to be one of the following types: ______________ 26 _______________________________ nal_unit_type Name of nal_umt_type Content of NAL unit and RBSP syntax structure 0, TRAIL_N, Coded slice segment ol a non-TSA, non-TRAILR STSA tuiling picture slice segment layer rbsp( 2, TSAN, Coded slice segment of a TSA picture 3 TSAR slice segment layer rhsp( 4, STSAN, Coded slice segment of an STSA picture STSA_R slice layer rbsp() 6, RADLN. Coded slice segment of a RADL picture 7 RADL_R sliee_layer_rhsp() 8, RASLN, Coded slice segment of a RASL picture 9 RASLR, slice layer rbsp() 10. RSVVCLN1O Reserved // reserved non-RAP non- 12. RSVVCLNI2 reference VCL NAL unit types 14 RSVVCLNI4 11, RSVVCLR1 1 Reserved II reserved non-RAP reference 13. RSV_VCL_R13 VCL NAL unit types RSVVCLR1S 16. BLA_W_LP Coded slice segment of a BLA picture 17. BLA_W_DLP (a.k.a. slice_segment_layer_rhsp() 18 IDRWRADL)
BLA_N_LP
19. IDRWDLP (a.k.a. Coded slice segment of an IDR picture IDRWRADL) sl ice segment layer rhsp()
____________ IDR_NLP __________________________
21 CRA NUT Coded slice segment of a LEA picture sliee_segment_layer_rhsp() 22, RSV TRAP VCL22.. Reserved // reserved RAP VCL NAL unit 23 RSV TRAP VCL23 tpcs 24..3 I RSVVCL24.. Reserved // reserved non-RAP VCL NAL RSV_VCL3 1 unit types In HEVC, abbreviations for picture types may be defined as follows: trailing (TRAIL) picture, Temporal Sub-layer Access (TSA), Step-wise Temporal Sub-layer Access (SISA), Random Access Decodable Leading (RADL) picture, Random Access Skipped Leading (RASL) picture, Broken Link Access (BLA) picture, Instantaneous Decoding Refresh (IDR) picture, Clean Random Access (CRA) picture.
A Random Access Point (RAP) picture, which may also be referred to as an intra random access point (IRAP) picture, is a picture where each slice or slice segment has nal_unit_type in the range of 16 to 23, inclusive. A RAP picture contains only intra-coded slices, and may be a BLA picture, a CRA picture or an IDR picture.
The first picture in the bitstream is a RAP picture. Provided the necessary parameter sets are available when they need to be activated, the RAP picture and all subsequent non-RASL pictures in decoding order can be correctly decoded without performing the decoding process of any pictures that precede the RAP picture in decoding order. There may be pictures in a bitstream that contain only intra-coded slices that are not RAP pictures.
In HEVC a CRA picture may be the first picture in the bitstream in decoding order, or may appear later in the bitstream. CRA pictures in HEVC allow so-called leading pictures that follow the CRA picture in decoding order but precede it in output order. Some of the leading pictures, so-called RASL pictures, may use pictures decoded before the CRA picture as a reference. Pictures that follow a CRA picture in both decoding and output order are decodable if random access is performed at the CRA picture, and hence clean random access is achieved similarly to the clean random access functionality of an IDR picture.
A CRA picture may have associated RADL or RASL pictures. When a CRA picture is the first picture in the bitstream in decoding order, the CRA picture is the first picture of a coded video sequence in decoding order, and any associated RASL pictures are not output by the decoder and may not be decodable, as they may contain references to pictures that are not present in the bitstream.
A leading picture is a picture that precedes the associated RAP picture in output order. The associated RAP picture is the previous RAP picture in decoding order (if present). A leading picture is either a RADL picture or a RASL picture.
All RASL pictures are leading pictures of an associated BLA or CRA picture. When the associated RAP picture is a BLA picture or is the first coded picture in the bitstream, the RASL picture is not output and may not be correctly decodable, as the RASL picture may contain references to pictures that are not present in the bitstream. However, a RASL picture can be correctly decoded if the decoding had started from a RAP picture before the associated RAP picture of the RASL picture.
RASL pictures are not used as reference pictures for the decoding process of non-RASL pictures. When present, all RASL pictures precede, in decoding order, all trailing pictures of the same associated RAP picture. In some drafts of the HEVC standard, a RASL picture was referred to a Tagged for Discard (TFD) picture.
All RADL pictures are leading pictures. RADL pictures are not used as reference pictures for the decoding process of trailing pictures of the same associated RAP picture. When present, all RADL pictures precede, in decoding order, all trailing pictures of the same associated RAP picture. RADL pictures do not refer to any picture preceding the associated RAP picture in decoding order and can therefore be correctly decoded when the decoding starts from the associated RAP picture.
In some drafts of the HEVC standard, a RADL picture was referred to a Decodable Leading Picture (DLP).
When a part of a bitstream starting from a CRA picture is included in another bitstream, the RASL pictures associated with the CRA picture might not be correctly decodable, because some of their reference pictures might not be present in the combined bitstream. To make such a splicing operation straightforward, the NAL unit type of the CRA picture can be changed to indicate that it is a BLA picture. The RASL pictures associated with a BLA picture may not be correctly decodable hence are not be output/displayed. Furthermore, the RASL pictures associated with a BLA picture may be omitted from decoding.
A BLA picture may be the first picture in the bitstream in decoding order, or may appear later in the bitstream. Each BLA picture begins a new coded video sequence, and has similar effect on the decoding process as an IDR picture.
However, a BLA picture contains syntax elements that specify a non-empty reference picture set. When a BLA picture has nal unittype equal to BLAWLP, it may have associated RASL pictures, which are not output by the decoder and may not be decodable, as they may contain references to pictures that are not present in the bitstream. When a BLA picture has nal_unit_type equal to BLA_W_LP, it may also have associated RADL pictures, which are specified to be decoded. When a BLA picture has nal_unit_type equal to BLA_W_DLP, it does not have associated RASL pictures but may have associated RADL pictures, which are specified to be decoded. When a BLA picture has nal_unit_type equal to BLA_N_LP, it does not have any associated leading pictures.
An IDR picture having nal_unit_type equal to IDR_N_LP does not have associated leading pictures present in the bitstream. An IDR picture having nal_unit_type equal to IDR_W_LP does not have associated RASL pictures present in the bitstream, but may have associated RADL pictures in the bitstream.
When the value of nal_unit_type is equal to TRAILN, TSAN, STSA N, RADLN, RASL_N, RSVVCLN1O, RSVVCLN12, or RSVVCLN14, the decoded picture is not used as a reference for any other picture of the same temporal sub-layer. That is, in HEVC, when the value of nal_unit_type is equal to TRAIL_N, ISA_N, STSA_N, RADL_N, RASL_N, RSV_VCL_N10, RSV_VCL_N12, or RSVVCLN14, the decoded picture is not included in any of RefPicSetStcurrBefore, RefPicSetStCurrAfter and RefPicSetLtCurr of any picture with the same value of Temporal Id. A coded picture with nal_unit_type equal to TRAILN, TSAN, STSA N, RADL_N, RASL N, RSV VCL N10, RSVVCLN12, or RSV_VCL_N14 may be discarded without affecting the decodability of other pictures with the same value of Temporalld.
A trailing picture may be defined as a picture that follows the associated RAP picture in output order. Any picture that is a trailing picture does not have nal_unit_type equal to RADL_N, RADL_R, RASL_N or RASL_R. Any picture that is a leading picture may be constrained to precede, in decoding order, all trailing pictures that are associated with the same RAP picture. No RASL pictures are present in the bitstream that are associated with a BLA picture having nal unit type equal to BLAWDLP or BLANLP. No RADL pictures are present in the bitstream that are associated with a BLA picture having nal_unit_type equal to BLANLP or that are associated with an IDR picture having nal_unit_type equal to IDR_N_LP. Any RASL picture associated with a CRA or BLA picture may be constrained to precede any RADL picture associated with the CRA or BLA picture in output order. Any RASL picture associated with a CRA picture may be constrained to follow, in output order, any other RAP picture that precedes the CRA picture in decoding order.
In HEVC there are two picture types, the ISA and STSA picture types that can be used to indicate temporal sub-layer switching points. If temporal sub-layers with Temporalld up to N had been decoded until the TSA or STSA picture (exclusive) and the TSA or STSA picture has Temporalld equal to N+1, the TSA or STSA picture enables decoding of all subsequent pictures (in decoding order) having Temporalld equal to N-'-l. The TSA picture type may impose restrictions on the ISA picture itself and all pictures in the same sub-layer that follow the TSA picture in decoding order. None of these pictures is allowed to use inter prediction from any picture in the same sub-layer that precedes the TSA picture in decoding order.
The TSA definition may further impose restrictions on the pictures in higher sub-layers that follow the TSA picture in decoding order. None of these pictures is allowed to refer a picture that precedes the TSA picture in decoding order if that picture belongs to the same or higher sub-layer as the TSA picture. TSA pictures have Temporal Id greater than 0. The STSA is similar to the TSA picture but does not impose restrictions on the pictures in higher sub-layers that follow the SISA picture in decoding order and hence enable up-switching only onto the sub-layer where the STSA picture resides.
A non-VCL NAL unit may be for example one of the following types: a sequence parameter set, a picture parameter set, a supplemental enhancement information (SEI) NAL unit, an access unit delimiter, an end of sequence NAL unit, an end of stream NAL unit, or a filler data NAL unit. Parameter sets may be needed for the reconstruction of decoded pictures, whereas many of the other non-VCL NAL units are not necessary for the reconstruction of decoded sample values.
Parameters that remain unchanged through a coded video sequence may be included in a sequence parameter set. In addition to the parameters that may be needed by the decoding process, the sequence parameter set may optionally contain video usability information (VUI), which includes parameters that may be important for buffering, picture output timing, rendering, and resource reservation.
There are three NAL units specified in H.264/AVC to carry sequence parameter sets: the sequence parameter set NAL unit containing all the data for H.264/AVC VCL NAL units in the sequence, the sequence parameter set extension NAL unit containing the data for auxiliary coded pictures, and the subset sequence parameter set for MVC and SVC VCL NAL units. In HEVC a sequence parameter set RBSP includes parameters that can be referred to by one or more picture parameter set RBSPs or one or more SEI NAL units containing a buffering period SEI message. A picture parameter set contains such parameters that are likely to be unchanged in several coded pictures. A picture parameter set RBSP may include parameters that can be referred to by the coded slice NAL units of one or more coded pictures.
In a draft HEVC standrad, there was also a third type of parameter sets, here referred to as an Adaptation Parameter Set (APS), which includes parameters that are likely to be unchanged in several coded slices but may change for example for each picture or each few pictures. In a draft HEVC, the APS syntax structure includes parameters or syntax elements related to quantization matrices (QM), adaptive sample offset (SAO), adaptive loop filtering (ALE), and deblocking filtering. In a draft HEVC, an APS is a NAL unit and coded without reference or prediction from any other NAL unit. An identifier, referred to as aps_id syntax element, is included in APS NAL unit, and included and used in the slice header to refer to a particular APS. In another draft HEVC standard, an APS syntax structure only contains ALE parameters. In a draft HEVC standard, an adaptation parameter set RBSP includes parameters that can be referred to by the coded slice NAL units of one or more coded pictures when at least one of sample_adaptive_offset_enabled_flag or adaptive_loop_filter_enabled_flag are equal to 1. In the final published HEVC, the APS syntax structure was removed
from the specification text.
In HEVC, a video parameter set (VPS) may be defined as a syntax structure containing syntax elements that apply to zero or more entire coded video sequences as determined by the content of a syntax element found in the SPS referred to by a syntax element found in the PPS referred to by a syntax element found in each slice segment header.
A video parameter set RBSP may include parameters that can be referred to by one or more sequence parameter set RBSPs.
The relationship and hierarchy between video parameter set (VPS), sequence parameter set (SPS), and picture parameter set (PPS) may be described as follows. VPS resides one level above SPS in the parameter set hierarchy and in the context of scalability and/or 3D video. VPS may include parameters that are common for all slices across all (scalability or view) layers in the entire coded video sequence. SPS includes the parameters that are common for all slices in a particular (scalability or view) layer in the entire coded video sequence, and may be shared by multiple (scalability or view) layers. FPS includes the parameters that are common for all slices in a particular layer representation (the representation of one scalability or view layer in one access unit) and are likely to be shared by all slices in multiple layer representations.
VPS may provide information about the dependency relationships of the layers in a bitstream, as well as many other information that are applicable to all slices across all (scalability or view) layers in the entire coded video sequence. In a scalable extension of HEVC, VPS may for example include a mapping of the Layerld value derived from the NAL unit header to one or more scalability dimension values, for example correspond to dependency_id, quality_id, view_id, and depth_flag for the layer defined similarly to SVC and MVC. VFS may include profile and level information for one or more layers as well as the profile and/or level for one or more temporal sub-layers (consisting of VCL NAL units at and below certain temporal_id values) of a layer representation.
H.264/AVC and HEVC syntax allows many instances of parameter sets, and each instance is identified with a unique identifier. In order to limit the memory usage needed for parameter sets, the value range for parameter set identifiers has been limited. In H.264/AVC and HEVC, each slice header includes the identifier of the picture parameter set that is active for the decoding of the picture that contains the slice, and each picture parameter set contains the identifier of the active sequence parameter set. In a draft HEVC standard, a slice header additionally contains an APS identifier, although in the published HEVC standard the APS identifier was removed from the slice header. Consequently, the transmission of picture and sequence parameter sets does not have to be accurately synchronized with the transmission of slices. Instead, it is sufficient that the active sequence and picture parameter sets are received at any moment before they are referenced, which allows transmission of parameter sets "out-of-band" using a more reliable transmission mechanism compared to the protocols used for the slice data. For example, parameter sets can be included as a parameter in the session description for Real-time Transport Protocol (RTP) sessions. If parameter sets are transmitted in-band, they can be repeated to improve error robustness.
A parameter set may be activated by a reference from a slice or from another active parameter set or in some cases from another syntax structure such as a buffering period SEI message.
A SEI NAL unit may contain one or more SEI messages, which are not required for the decoding of output pictures but may assist in related processes, such as picture output timing, rendering, error detection, error concealment, and resource reservation. Several SEI messages are specified in H.264/AVC and HEVC, and the user data SEI messages enable organizations and companies to specify SEI messages for their own use. H.264/AVC and HEVC contain the syntax and semantics for the specified SEI messages but no process for handling the messages in the recipient is defined. Consequently, encoders are required to follow the H.264/AVC standard or the HEVC standard when they create SEI messages, and decoders conforming to the H.264/AVC standard or the HEVC standard, respectively, are not required to process SEI messages for output order conformance. One of the reasons to include the syntax and semantics of SEI messages in H.264/AVC and HEVC is to allow different system specifications to interpret the supplemental information identically and hence interoperate. It is intended that system specifications can require the use of particular SEI messages both in the encoding end and in the decoding end, and additionally the process for handling particular SEI messages in the recipient can be specified.
Several nesting SF1 messages have been specified in the AVC and HEVC standards or proposed otherwise. The idea of nesting SEI messages is to contain one or more SEI messages within a nesting SEI message and provide a mechanism for associating the contained SEI messages with a subsets of the bitstream and/or a subset of decoded data. It may be required that a nesting SEI message contains one or more SEI messages that are not scalable nesting SEI messages themselves. An SEI message contained in a scalable nesting SEI message may be referred to as a nested SEI message. An SEI message not contained in a scalable nesting SF1 message may be referred to as a non-nested SEI message.
A coded picture is a coded representation of a picture. A coded picture in H.264/AVC comprises the VCL NAL units that are required for the decoding of the picture. In H.264/AVC, a coded picture can be a primary coded picture or a redundant coded picture. A primary coded picture is used in the decoding process of valid bitstreams, whereas a redundant coded picture is a redundant representation that should only be decoded when the primary coded picture cannot be successfully decoded. In HEVC, no redundant coded picture has been specified.
In H.264/AVC, an access unit comprises a primary coded picture and those NAL units that are associated with it. In H.264/AVC, the appearance order of NAL units within an access unit is constrained as follows. An optional access unit delimiter NAL unit may indicate the start of an access unit. It is followed by zero or more SEI NAL units. The coded slices of the primary coded picture appear next. In H.264/AVC, the coded slice of the primary coded picture may be followed by coded slices for zero or more redundant coded pictures. A redundant coded picture is a coded representation of a picture or a part of a picture. A redundant coded picture may be decoded if the primary coded picture is not received by the decoder for example due to a loss in transmission or a corruption in physical storage medium.
In H.264/AVC, an access unit may also include an auxiliary coded picture, which is a picture that supplements the primary coded picture and may be used for example in the display process. An auxiliary coded picture may for example be used as an alpha channel or alpha plane specifying the transparency level of the samples in the decoded pictures. An alpha channel or plane may be used in a layered composition or rendering system, where the output picture is formed by overlaying pictures being at least partly transparent on top of each other. An auxiliary coded picture has the same syntactic and semantic restrictions as a monochrome redundant coded picture. In H.264/AVC, an auxiliary coded picture contains the same number of macroblocks as the primary coded picture.
In HEVC, an access unit may be defined as a set of NAL units that are associated with each other according to a specified classification rule, are consecutive in decoding order, and contain exactly one coded picture. In addition to containing theVCL NAL units of the coded picture, an access unit may also contain non-VOL NAL units. The decoding of an access unit always results in a decoded picture.
In H.2641AVC, a coded video sequence is defined to be a sequence of consecutive access units in decoding order from an IDR access unit, inclusive, to the next IDR access unit, exclusive, or to the end of the bitstream, whichever appears earlier. In HEVC, a coded video sequence is defined to be a sequence of access units that consists, in decoding order, of a CRA access unit that is the first access unit in the bitstream, an IDR access unit or a BLA access unit, followed by zero or more non-IDR and non-BLA access units including all subsequent access units up to but not including any subsequent IDR or BLA access unit.
A group of pictures (GOP) and its characteristics may be defined as follows. A GOP can be decoded regardless of whether any previous pictures were decoded.
An open GOP is such a group of pictures in which pictures preceding the initial intra picture in output order might not be correctly decodable when the decoding starts from the initial intra picture of the open GOP. In other words, pictures of an open GOP may refer (in inter prediction) to pictures belonging to a previous GOP.
An H.264/AVC decoder can recognize an intra picture starting an open GOP from the recovery point SF1 message in an H.264/AVC bitstream. An HEVC decoder can recognize an intra picture starting an open GOP, because a specific NAL unit type, CRA NAL unit type, can be used for its coded slices. A closed GOP is such a group of pictures in which all pictures can be correctly decoded when the decoding starts from the initial intra picture of the closed GOP. In other words, no picture in a closed GOP refers to any pictures in previous GOPs. In H.264/AVC and HEVC, a closed GOP may be considered to start from an IDR access unit. As a result, closed GOP structure has more error resilience potential in comparison to the open GOP structure, however at the cost of possible reduction in the compression efficiency. Open GOP coding structure is potentially more efficient in the compression, due to a larger flexibility in selection of reference pictures.
The bitstream syntax of H.264/AVC and HFVC indicates whether a particular picture is a reference picture for inter prediction of any other picture. Pictures of any coding type (I, P, B) can be reference pictures or non-reference pictures in H.264/AVC and HEVC.
H.2641AVC specifies the process for decoded reference picture marking in order to control the memory consumption in the decoder. The maximum number of reference pictures used for inter prediction, referred to as M, is determined in the sequence parameter set. When a reference picture is decoded, it is marked as "used for reference". If the decoding of the reference picture caused more than M pictures marked as "used for reference", at least one picture is marked as "unused for reference". There are two types of operation for decoded reference picture marking: adaptive memory control and sliding window. The operation mode for decoded reference picture marking is selected on picture basis. The adaptive memory control enables explicit signaling which pictures are marked as "unused for reference" and may also assign long-term indices to short-term reference pictures. The adaptive memory control may require the presence of memory management control operation (MMCO) parameters in the bitstream. MMCO parameters may be included in a decoded reference picture marking syntax structure. If the sliding window operation mode is in use and there are M pictures marked as "used for reference", the short-term reference picture that was the first decoded picture among those short-term reference pictures that are marked as "used for reference" is marked as "unused for reference". In other words, the sliding window operation mode results into first-in-first-out buffering operation among short-term reference pictures.
One of the memory management control operations in H.264/AVC causes all reference pictures except for the current picture to be marked as "unused for reference". An instantaneous decoding refresh (IDR) picture contains only intra-coded slices and causes a similar "reset" of reference pictures.
In HEVC, reference picture marking syntax structures and related decoding processes are not used, but instead a reference picture set (RPS) syntax structure and decoding process are used instead for a similar purpose. A reference picture set valid or active for a picture includes all the reference pictures used as reference for the picture and all the reference pictures that are kept marked as "used for reference" for any subsequent pictures in decoding order. There are six subsets of the reference picture set, which are referred to as namely RefPicSetStCurrO (a.k.a. RefPicSetStCurrBefore), RefFicSetStCurrl (a.k.a.
RefPicSetStCurrAfter), RefPicSetStFollO, RefFicSetStFoll 1, RefPicSetLtCurr, and RefPicSetLtFoll. RefPicSetStFollO and RefPicSetStFoll 1 may also be considered to form jointly one subset RefPicSetStFoll. The notation of the six subsets is as follows. "Curr" refers to reference pictures that are included in the reference picture lists of the current picture and hence may be used as inter prediction reference for the current picture. "Foil" refers to reference pictures that are not included in the reference picture lists of the current picture but may be used in subsequent pictures in decoding order as reference pictures. "St' refers to short-term reference pictures, which may generally be identified through a certain number of least significant bits of their POC value. "Lt" refers to long-term reference pictures, which are specifically identified and generally have a greater difference of POC values relative to the current picture than what can be represented by the mentioned certain number of least significant bits. "0" refers to those reference pictures that have a smaller P00 value than that of the current picture. "1" refers to those reference pictures that have a greater P00 value than that of the current picture. RefPicSetstCurro, RefPicSetStCurrl, RefPicSetStFollO and RefPicSetStFolll are collectively referred to as the shod-term subset of the reference picture set. RefPicsetLtCurr and RefPicSetLtFoll are collectively referred to as the long-term subset of the reference picture set.
In HEVO, a reference picture set may be specified in a sequence parameter set and taken into use in the slice header through an index to the reference picture set. A reference picture set may also be specified in a slice header. A long-term subset of a reference picture set is generally specified only in a slice header, while the short-term subsets of the same reference picture set may be specified in the picture parameter set or slice header. A reference picture set may be coded independently or may be predicted from another reference picture set (known as inter-RPS prediction). When a reference picture set is independently coded, the syntax structure includes up to three loops iterating over different types of reference pictures; short-term reference pictures with lower P00 value than the current picture, short-term reference pictures with higher P00 value than the current picture and long-term reference pictures. Each loop entry specifies a picture to be marked as "used for reference". In general, the picture is specified with a differential P00 value. The inter-RPS prediction exploits the fact that the reference picture set of the current picture can be predicted from the reference picture set of a previously decoded picture. This is because all the reference pictures of the current picture are either reference pictures of the previous picture or the previously decoded picture itself. It is only necessary to indicate which of these pictures should be reference pictures and be used for the prediction of the current picture. In both types of reference picture set coding, a flag (used bycurrpicXflag) is additionally sent for each reference picture indicating whether the reference picture is used for reference by the current picture (included in a *Curr list) or not (included in a *Foll list). Pictures that are included in the reference picture set used by the current slice are marked as "used for reference", and pictures that are not in the reference picture set used by the current slice are marked as unused for reference". If the current picture is an IDR picture, RefPicSetStCurrO, RefPicsetStCurrl, RefPicSetStFollO, RefPicSetStFoll 1, RefPicSetLtCurr, and RefPicsetLtFoll are all set to empty.
A Decoded Picture Buffer (DPB) may be used in the encoder and/or in the decoder. There are two reasons to buffer decoded pictures, for references in inter prediction and for reordering decoded pictures into output order. As H.264/AVC and HEVC provide a great deal of flexibility for both reference picture marking and output reordering, separate buffers for reference picture buffering and output picture buffering may waste memory resources. Hence, the DFB may include a unified decoded picture buffering process for reference pictures and output reordering. A decoded picture may be removed from the DPB when it is no longer used as a reference and is not needed for output.
In many coding modes of H.264/AVC and HEVC, the reference picture for inter prediction is indicated with an index to a reference picture list. The index may be coded with variable length coding, which usually causes a smaller index to have a shorter value for the corresponding syntax element. In H.264/AVC and HEVC, two reference picture lists (reference picture list 0 and reference picture list 1) are generated tor each bi-predictive (B) slice, and one reference picture list (reference picture list 0) is formed for each inter-coded (F) slice. In addition, for a B slice in a draft HEVC standard, a combined list (List C) is constructed after the final reference picture lists (List 0 and List 1) have been constructed. The combined list may be used for uni-prediction (also known as uni-directional prediction) within B slices. In the published HEVC standard, the combined list was removed.
A reference picture list, such as reference picture list 0 and reterence picture list 1, is typically constructed in two steps: First, an initial reference picture list is generated. The initial reference picture list may be generated for example on the basis of frame num, FOG, temporal_id, or information on the prediction hierarchy such as GOP structure, or any combination thereof. Second, the initial reference picture list may be reordered by reference picture list reordering (RPLR) commands, also known as reference picture list modification syntax structure, which may be contained in slice headers. In H.264/AVC, the RPLR commands indicate the pictures that are ordered to the beginning of the respective reference picture list. This second step may also be referred to as the reference picture list modification process, and the RPLR commands may be included in a reference picture list modification syntax structure. If reference picture sets are used, the reference picture list 0 may be initialized to contain RefPicSetstCurr0 first, followed by RefPicSetstCurrl, followed by RefPicSetLtCurr. Reference picture list 1 may be initialized to contain RefPicsetStCurrl first, followed by RefPicSetStCurro. In HEVC, the initial reference picture lists may be modified through the reference picture list modification syntax structure, where pictures in the initial reference picture lists may be identified through an entry index to the list.
In other words, in HEVC, reference picture list modification is encoded into a syntax structure comprising a loop over each entry in the final reference picture list, where each loop entry is a fixed-length coded index to the initial reference picture list and indicates the picture in ascending position order in the final reference picture list.
Many coding standards, including H.264/AVC and HEVC, may have decoding process to derive a reference picture index to a reference picture list, which may be used to indicate which one of the multiple reference pictures is used for inter prediction for a particular block. A reference picture index may be coded by an encoder into the bitstream is some inter coding modes or it may be derived (by an encoder and a decoder) for example using neighboring blocks in some other inter coding modes.
In order to represent motion vectors efficiently in bitstreams, motion vectors may be coded differentially with respect to a block-specific predicted motion vector. In many video codecs, the predicted motion vectors are created in a predefined way, for example by calculating the median of the encoded or decoded motion vectors of the adjacent blocks. Another way to create motion vector predictions, sometimes referred to as advanced motion vector prediction (AMVP), is to generate a list of candidate predictions from adjacent blocks and/or co-located blocks in temporal reference pictures and signalling the chosen candidate as the motion vector predictor. In addition to predicting the motion vector values, the reference index of previously coded/decoded picture can be predicted. The reference index is typically predicted from adjacent blocks and/or co-located blocks in temporal reference picture. Differential coding of motion vectors is typically disabled across slice boundaries.
The advanced motion vector prediction (AMVP) or alike may operate for example as follows, while other similar realizations of advanced motion vector prediction are also possible for example with different candidate position sets and candidate locations with candidate position sets. Two spatial motion vector predictors (MVPS) may be derived and a temporal motion vector predictor (TMVP) may be derived. They may be selected among the positions shown in Figure 6: three spatial motion vector predictor candidate positions 603, 604, 605 located above the current prediction block 600 (BO, Bi, B2) and two 601, 602 on the left (AO, Al).
The first motion vector predictor that is available (e.g. resides in the same slice, is inter-coded, etc.) in a pre-defined order of each candidate position set, (BO, Bi, B2) or (AO, Al), may be selected to represent that prediction direction (up or left) in the motion vector competition. A reference index for the temporal motion vector predictor may be indicated by the encoder in the slice header (e.g. as a collocated_ref_idx syntax element). The motion vector obtained from the co-located picture may be scaled according to the proportions of the picture order count differences of the reference picture of the temporal motion vector predictor, the co-located picture, and the current picture. Moreover, a redundancy check may be performed among the candidates to remove identical candidates, which can lead to the inclusion of a zero motion vector in the candidate list. The motion vector predictor may be indicated in the bitstream for example by indicating the direction of the spatial motion vector predictor (up or left) or the selection of the temporal motion vector predictor candidate.
Many high efficiency video codecs such as HEVC codec employ an additional motion information coding/decoding mechanism, often called merging/merge mode/process/mechanism, where all the motion information of a block/PU is predicted and used without any modification/correction. The aforementioned motion information for a PU may comprise one or more of the following: 1) The information whether the PU is uni-predicted using only reference picture listO' or the PU is uni-predicted using only reference picture listi' or the PU is bi-predicted using both reference picture listO and listi'; 2) Motion vector value corresponding to the reference picture listO, which may comprise a horizontal and vertical motion vector component; 3) Reference picture index in the reterence picture listO and/or an identifier of a reference picture pointed to by the motion vector corresponding to reference picture listO, where the identifier of a reference picture may be for example a picture order count value, a layer identifier value (for inter-layer prediction), or a pair of a picture order count value and a layer identifier value; 4) Information of the reference picture marking of the reference picture, e.g. information whether the reference picture was marked as "used for short-term reference" or "used for long-term reference"; 5) -7) The same as 2) -4), respectively, but for reference picture listi. Similarly, predicting the motion information is carried out using the motion information of adjacent blocks and/or co-located blocks in temporal reference pictures. A list, often called as a merge list, may be constructed by including motion prediction candidates associated with available adjacent/co-located blocks and the index of selected motion prediction candidate in the list is signalled and the motion information of the selected candidate is copied to the motion information of the current PU. When the merge mechanism is employed for a whole CU and the prediction signal for the CU is used as the reconstruction signal, i.e. prediction residual is not processed, this type of coding/decoding the CU is typically named as skip mode or merge based skip mode. In addition to the skip mode, the merge mechanism may also be employed for individual PUs (not necessarily the whole CU as in skip mode) and in this case, prediction residual may be utilized to improve prediction quality. This type of prediction mode is typically named as an inter-merge mode.
One of the candidates in the merge list may be a TMVP candidate, which may be derived from the collocated block within an indicated or inferred reference picture, such as the reference picture indicated for example in the slice header for example using the collocated_ref_idx syntax element or alike.
In HEVC the so-called target reference index for temporal motion vector prediction in the merge list is set as U when the motion coding mode is the merge mode.
When the motion coding mode in HEVC utilizing the temporal motion vector prediction is the advanced motion vector prediction mode, the target reference index values are explicitly indicated (e.g. per each PU).
When the target reference index value has been determined, the motion vector value of the temporal motion vector prediction may be derived as follows: Motion vector at the block that is co-located with the bottom-right neighbor of the current prediction unit is calculated. The picture where the co-located block resides may be e.g. determined according to the signalled reference index in the slice header as described above. The determined motion vector at the co-located block is scaled with respect to the ratio of a first picture order count difference and a second picture order count difference. The first picture order count difference is derived between the picture containing the co-located block and the reference picture of the motion vector of the co-located block. The second picture order count difference is derived between the current picture and the target reference picture. If one but not both of the target reference picture and the reference picture of the motion vector of the co-located block is a long-term reference picture (while the other is a short-term reference picture), the TMVP candidate may be considered unavailable. If both of the target reference picture and the reference picture of the motion vector of the co-located block are long-term reference pictures, no POC-based motion vector scaling may be applied.
In the HEVC, several improvements have been made to enable the codec to better utilize parallelism, i.e. parallel processing of encoding and/or decoding tasks, thus more efficiently utilizing modern multi-core processor architectures. While slices in principle can be used to parallelize the decoder, employing slices for parallelism typically results in relatively poor coding efficiency. The concept of wavefront processing has been introduced to HEVC to improve the utilization of parallelism.
To enable wavefront processing, the encoder and/or the decoder uses the CABAC state of the second CTU of the previous CTU row as the initial CABAC state of the current CTU row. Hence, the processing of the current CTLJ row can be started when the processing of the second CTLJ of the previous CTLJ has been finished.
Thanks to this property, CTU rows can be processed in a parallel fashion. In general, it may be pre-defined e.g. in a coding standard which CTU is used for transferring the entropy (de)coding state of the previous row of CTUs or it may be determined and indicated in the bitstream by the encoder and/or decoded from the bitstream by the decoder.
The wavefront processing in HEVC may be used in two parallelization approaches, Wavefront Parallel Processing (WPP) and Overlapped Wavefront (OWE). WPP allows creating picture partitions that can be processed in parallel without incurring high coding losses.
WPF processes rows of coding tree units (CTU) in parallel while preserving all coding dependencies. In WPP, entropy coding, predictive coding as well as in-loop filtering can be applied in a single processing step, which makes the implementations of WPP rather straightforward. OWF, in turn, enables to overlap the execution of consecutive pictures. When the processing of a coding tree unit row in the current picture has been finished and no more rows are available, the processing of the next picture can be started instead of waiting for the current picture to finish.
When a coded picture has been constrained for wavefront processing or when tiles have been used, CTU rows or tiles (respectively) may be byte-aligned in the bitstream and may be preceded by a start code. Additionally, entry points may be provided in the bitstream (e.g. in the slice header) and/or externally (e.g. in a container file). An entry point is a byte pointer or a byte count or a similar straightforward reference mechanism to the start of a CTU row (for wavefront-enabled coded pictures) or a tile. In HEVC, entry points may be specified using entry_point_ofiset_minusi [ i] of the slice header. In the HEVC file format (ISOIIEC 14496-1 5), the sub-sample information box may provide the information of entry points. In some scenarios, the use of dependent slice segments may be useful instead of or in addition to entry points. A dependent slice segment may be formed for example for a CTU row when a coded picture is constrained for wavefront processing and consequently the start of the dependent slice segment NAL unit may be used to determine CTU row boundaries.
Scalable video coding refers to coding structure where one bitstream can contain multiple representations of the content at different bitrates, resolutions or frame rates. In these cases the receiver can extract the desired representation depending on its characteristics (e.g. resolution that matches best the display device). Alternatively, a server or a network element can extract the portions of the bitstream to be transmitted to the receiver depending on e.g. the network characteristics or processing capabilities of the receiver. A scalable bitstream typically consists of a "base layer" providing the lowest quality video available and one or more enhancement layers that enhance the video quality when received and decoded together with the lower layers. In order to improve coding efficiency for the enhancement layers, the coded representation of that layer typically depends on the lower layers. E.g. the motion and mode information of the enhancement layer can be predicted from lower layers. Similarly the pixel data of the lower layers can be used to create prediction for the enhancement layer.
In some scalable video coding schemes, a video signal can be encoded into a base layer and one or more enhancement layers. An enhancement layer may enhance the temporal resolution (i.e., the frame rate), the spatial resolution, or simply the quality of the video content represented by another layer or part thereof.
Each layer together with all its dependent layers is one representation of the video signal at a certain spatial resolution, temporal resolution and quality level. In this document, we refer to a scalable layer together with all of its dependent layers as a "scalable layer representation". The portion of a scalable bitstream corresponding to a scalable layer representation can be extracted and decoded to produce a representation of the original signal at certain fidelity.
Some coding standards allow creation of scalable bit streams. A meaningful decoded representation can be produced by decoding only certain parts of a scalable bit stream. Scalable bit streams can be used for example for rate adaptation of pre-encoded unicast streams in a streaming server and for transmission of a single bit stream to terminals having different capabilities and/or with different network conditions. A list of some other use cases for scalable video coding can be found in the ISOIIEC JTC1 SC29 WG1 1 (MPEG) output document N5540, "Applications and Requirements for Scalable Video Coding", the 64th MPEG meeting, March 10 to 14, 2003, Pattaya, Thailand.
In some cases, data in an enhancement layer can be truncated after a certain location, or even at arbitrary positions, where each truncation position may include additional data representing increasingly enhanced visual quality. Such scalability is referred to as fine-grained (granularity) scalability (EGS).
SVC uses an inter-layer prediction mechanism, wherein certain information can be predicted from layers other than the currently reconstructed layer or the next lower layer. Information that could be inter-layer predicted includes intra texture, motion and residual data. Inter-layer motion prediction includes the prediction of block coding mode, header information, block partitioning, etc., wherein motion from the lower layer may be used for prediction of the higher layer. In case of intra coding, a prediction from surrounding macroblocks or from co-located macroblocks of lower layers is possible. These prediction techniques do not employ intormation from earlier coded access units and hence, are referred to as intra prediction techniques. Furthermore, residual data from lower layers can also be employed for prediction of the current layer.
SVC specifies a concept known as single-loop decoding. It is enabled by using a constrained intra texture prediction mode, whereby the inter-layer intra texture prediction can be applied to macroblocks (MBs) for which the corresponding block of the base layer is located inside intra-MBs. At the same time, those intra-MBs in the base layer use constrained intra-prediction (e.g., having the syntax element "constrained_intra_pred_flag" equal to 1). In single-loop decoding, the decoder performs motion compensation and full picture reconstruction only for the scalable layer desired for playback (called the "desired layer" or the "target layer"), thereby greatly reducing decoding complexity. All of the layers other than the desired layer do not need to be fully decoded because all or part of the data of the MBs not used for inter-layer prediction (be it inter-layer intra texture prediction, inter-layer motion prediction or inter-layer residual prediction) is not needed for reconstruction of the desired layer.
A single decoding loop is needed for decoding of most pictures, while a second decoding loop is selectively applied to reconstruct the base representations, which are needed as prediction references but not for output or display, and are reconstructed only for the so called key pictures (for which "store_ref_base_pic_flag" is equal to 1).
EGS was included in some draft versions of the SVC standard, but it was eventually excluded from the final SVC standard. FGS is subsequently discussed in the context of some draft versions of the SVC standard. The scalability provided by those enhancement layers that cannot be truncated is referred to as coarse-grained (granularity) scalability (CGS). It collectively includes the traditional quality (SNR) scalability and spatial scalability. The SVC standard supports the so-called medium-grained scalability (MGS), where quality enhancement pictures are coded similarly to SNR scalable layer pictures but indicated by high-level syntax elements similarly to FGS layer pictures, by having the quality_id syntax element greater than 0.
The scalability structure in SVC may be characterized by three syntax elements: "temporal_id," "dependency_id" and "quality_id." The syntax element "temporal_id" is used to indicate the temporal scalability hierarchy or, indirectly, the frame rate. A scalable layer representation comprising pictures of a smaller maximum "temporal_id" value has a smaller frame rate than a scalable layer representation comprising pictures of a greater maximum "temporal_id". A given temporal layer typically depends on the lower temporal layers (i.e., the temporal layers with smaller "temporal_id" values) but does not depend on any higher temporal layer.
The syntax element "dependency_id" is used to indicate the CGS inter-layer coding dependency hierarchy (which, as mentioned earlier, includes both SNR and spatial scalability). At any temporal level location, a picture of a smaller "dependency_id" value may be used for inter-layer prediction for coding of a picture with a greater "dependency_id" value. The syntax element "quality_id" is used to indicate the quality level hierarchy of a FGS or MGS layer. At any temporal location, and with an identical "dependency_id" value, a picture with "quality_id" equal to OL uses the picture with "quality_id" equal to aL-i for inter-layer prediction. A coded slice with "quality_id" larger than 0 may be coded as either a truncatable EGS slice or a non-truncatable MGS slice.
For simplicity, all the data units (e.g., Network Abstraction Layer units or NAL units in the SVC context) in one access unit having identical value of "dependency_id" are referred to as a dependency unit or a dependency representation. Within one dependency unit, all the data units having identical value of "quality_id" are referred to as a quality unit or layer representation.
A base representation, also known as a decoded base picture, is a decoded picture resulting from decoding the Video Coding Layer (VCL) NAL units of a dependency unit having "qualityid" equal to 0 and for which the "store_ref_base_pic_flag" is set equal to 1. An enhancement representation, also referred to as a decoded picture, results from the regular decoding process in which all the layer representations that are present for the highest dependency representation are decoded.
As mentioned earlier, CGS includes both spatial scalability and SNR scalability.
Spatial scalability is initially designed to support representations of video with different resolutions. For each time instance, VCL NAL units are coded in the same access unit and these VOL NAL units can correspond to different resolutions. During the decoding, a low resolution VOL NAL unit provides the motion field and residual which can be optionally inherited by the final decoding and reconstruction of the high resolution picture. When compared to older video compression standards, SVC's spatial scalability has been generalized to enable the base layer to be a cropped and zoomed version of the enhancement layer.
MGS quality layers are indicated with "quality_id" similarly as FGS quality layers.
For each dependency unit (with the same "dependency_id"), there is a layer with "quality_id" equal to 0 and there can be other layers with "quality_id" greater than 0. These layers with "quality_id" greater than 0 are either MGS layers or EGS layers, depending on whether the slices are coded as truncatable slices.
In the basic form of EGS enhancement layers, only inter-layer prediction is used.
Therefore, FGS enhancement layers can be truncated freely without causing any error propagation in the decoded sequence. However, the basic form of FGS suffers from low compression efficiency. This issue arises because only low-quality pictures are used for inter prediction references. It has therefore been proposed that EGS-enhanced pictures be used as inter prediction references.
However, this may cause encoding-decoding mismatch, also referred to as drift, when some FGS data are discarded.
One feature of a draft SVC standard is that the EGS NAL units can be freely dropped or truncated, and a feature of the SVC standard is that MGS NAL units can be freely dropped (but cannot be truncated) without affecting the conformance of the bitstream. As discussed above, when those EGS or MGS data have been used for inter prediction reference during encoding, dropping or truncation of the data would result in a mismatch between the decoded pictures in the decoder side and in the encoder side. This mismatch is also referred to as drift.
To control drift due to the dropping or truncation of EGS or MGS data, SVC applied the following solution: In a certain dependency unit, a base representation (by decoding only the CGS picture with "quality_id" equal to 0 and all the dependent-on lower layer data) is stored in the decoded picture buffer. When encoding a subsequent dependency unit with the same value of "dependency_id," all of the NAL units, including FGS or MGS NAL units, use the base representation for inter prediction reference. Consequently, all drift due to dropping or truncation of EGS or MGS NAL units in an earlier access unit is stopped at this access unit.
For other dependency units with the same value of "dependency_id," all of the NAL units use the decoded pictures for inter prediction reference, for high coding efficiency.
Each NAL unit includes in the NAL unit header a syntax element "use_ref_base_pic_flag." When the value of this element is equal to 1, decoding of the NAL unit uses the base representations of the reference pictures during the inter prediction process. The syntax element "store_ref_base_pic_flag" specifies whether (when equal to 1) or not (when equal to 0) to store the base representation of the current picture for future pictures to use for inter prediction.
NAL units with "quality_id" greater than 0 do not contain syntax elements related to reference picture lists construction and weighted prediction, i.e., the syntax elements "num_ref_active_Ix_minusi" (x=0 or 1), the reference picture list reordering syntax table, and the weighted prediction syntax table are not present.
Consequently, the MGS or FGS layers have to inherit these syntax elements from the NAL units with "quality_id" equal to 0 of the same dependency unit when needed.
In SVC, a reference picture list consists of either only base representations (when "use_ref_base_pic_flag" is equal to 1) or only decoded pictures not marked as "base representation" (when "use_ref_base_pic_flag" is equal to 0), but never both at the same time.
A scalable video codec for quality scalability (also known as Signal-to-Noise or SNR) and/or spatial scalability may be implemented as follows. For a base layer, a conventional non-scalable video encoder and decoder are used. The reconstructed/decoded pictures of the base layer are included in the reference picture buffer for an enhancement layer. In H.264/AVC, HEVC, and similar codecs using reference picture list(s) for inter prediction, the base layer decoded pictures may be inserted into a reference picture list(s) for coding/decoding of an enhancement layer picture similarly to the decoded reference pictures of the enhancement layer. Consequently, the encoder may choose a base-layer reference picture as inter prediction reference and indicate its use typically with a reference picture index in the coded bitstream. The decoder decodes from the bitstream, for example from a reference picture index, that a base-layer picture is used as inter prediction reference for the enhancement layer. When a decoded base-layer picture is used as prediction reference for an enhancement layer, it is referred to as an inter-layer reference picture.
In addition to quality scalability following scalability modes exist: * Spatial scalability: Base layer pictures are coded at a higher resolution than enhancement layer pictures.
* Bit-depth scalability: Base layer pictures are coded at lower bit-depth (e.g. 8 bits) than enhancement layer pictures (e.g. 10 or 12 bits).
* Chroma format scalability: Base layer pictures provide lower fidelity in chroma (e.g. coded in 4:2:0 chroma format) than enhancement layer pictures (e.g. 4:4:4 format).
* Color gamut scalability, where the enhancement layer pictures have a richer/broader color representation range than that of the base layer pictures -for example the enhancement layer may have UHDTV (ITU-R BT.2020) color gamut and the base layer may have the ITU-R BT.709 color gamut.
In all of the above scalability cases, base layer information could be used to code enhancement layer to minimize the additional bitrate overhead.
Another categorization of scalable coding is based on whether the same or different coding standard or technology is used as the basis for the base layer and enhancement layers. Terms hybrid codec scalability or standards scalability may be used to indicate a scenario where one coding standard or system is used for some layers, while another coding standard or system is used for some other layers. For example, the base layer may be AVC-coded, while one or more enhancement layers may be coded with an HEVC extension, such as SHVC or MV-H EVC.
Scalability can be enabled in two basic ways. Either by introducing new coding modes for performing prediction of pixel values or syntax from lower layers of the scalable representation or by placing the lower layer pictures to the reference picture buffer (decoded picture buffer, DPB) of the higher layer. The first approach is more flexible and thus can provide better coding efficiency in most cases.
However, the second, reference frame based scalability, approach can be implemented very efficiently with minimal changes to single layer codecs while still achieving majority of the coding efficiency gains available. Essentially a reference frame based scalability codec can be implemented by utilizing the same hardware or software implementation for all the layers, just taking care of the DPB management by external means.
A scalable video coding and/or decoding scheme may use multi-loop coding and/or decoding, which may be characterized as follows. In the encoding/decoding, a base layer picture may be reconstructed/decoded to be used as a motion-compensation reference picture for subsequent pictures, in coding/decoding order, within the same layer or as a reference for inter-layer (or inter-view or inter-component) prediction. The reconstructed/decoded base layer picture may be stored in the DPB. An enhancement layer picture may likewise be reconstructed/decoded to be used as a motion-compensation reference picture for subsequent pictures, in coding/decoding order, within the same layer or as reference for inter-layer (or inter-view or inter-component) prediction for higher enhancement layers, if any. In addition to reconstructed/decoded sample values, syntax element values of the base/reference layer or variables derived from the syntax element values of the base/reference layer may be used in the inter-layer/inter-component/inter-view prediction.
A scalable video encoder e.g. for quality scalability (also known as Signal-to-Noise or SNR) and/or spatial scalability may be implemented as follows. For a base layer, a conventional non-scalable video encoder and decoder may be used. The reconstructed/decoded pictures of the base layer are included in the reference picture buffer and/or reference picture lists for an enhancement layer. In case of spatial scalability, the reconstructed/decoded base-layer picture may be upsampled prior to its insertion into the reference picture lists for an enhancement-layer picture. The base layer decoded pictures may be inserted into a reference picture list(s) for coding/decoding of an enhancement layer picture similarly to the decoded reference pictures of the enhancement layer. Consequently, the encoder may choose a base-layer reference picture as an inter prediction reference and indicate its use with a reference picture index in the coded bitstream. The decoder decodes from the bitstream, for example from a reference picture index, that a base-layer picture is used as an inter prediction reference for the enhancement layer. When a decoded base-layer picture is used as the prediction reference for an enhancement layer, it is referred to as an inter-layer reference picture.
While the previous paragraph described a scalable video codec with two scalability layers with an enhancement layer and a base layer, it needs to be understood that the description can be generalized to any two layers in a scalability hierarchy with more than two layers. In this case, a second enhancement layer may depend on a first enhancement layer in encoding and/or decoding processes, and the first enhancement layer may therefore be regarded as the base layer for the encoding and/or decoding of the second enhancement layer. Furthermore, it needs to be understood that there may be inter-layer reference pictures from more than one layer in a reference picture buffer or reference picture lists of an enhancement layer, and each of these inter-layer reference pictures may be considered to reside in a base layer or a reference layer for the enhancement layer being encoded and/or decoded.
Work is ongoing to specify scalable and multiview extensions to the HEVC standard. The multiview extension of HEVC, referred to as MV-H EVC, is similar to the MVC extension of H.264/AVC. Similarly to MVC, in MV-HEVC, inter-view reference pictures can be included in the reference picture list(s) of the current picture being coded or decoded. The scalable extension of HEVC, referred to as SHVC, is planned to be specified so that it uses multi-loop decoding operation (unlike the SVC extension of H.264/AVC). Currently, two designs to realize scalability are investigated for SHVC. One is reference index based, where an inter-layer reference picture can be included in a one or more reference picture lists of the current picture being coded or decoded (as described above). Another may be referred to as lntraBL or TextureRL, where a specific coding mode, e.g. in CU level, is used for using decoded/reconstructed sample values of a reference layer picture for prediction in an enhancement layer picture. The SHVC development has concentrated on development of spatial and coarse grain quality scalability.
It is possible to use many of the same syntax structures, semantics, and decoding processes for MV-HEVC and reference-index-based SHVC. Furthermore, it is possible to use the same syntax structures, semantics, and decoding processes for depth coding too. Hereafter, term scalable multiview extension of HEVC (SMV-HEVC) is used to refer to a coding process, a decoding process, syntax, and semantics where largely the same (de)coding tools are used regardless of the scalability type and where the reference index based approach without changes in the syntax, semantics, or decoding process below the slice header is used. SMV-HEVC might not be limited to multiview, spatial, and coarse grain quality scalability but may also support other types of scalability, such as depth-enhanced video.
For the enhancement layer coding, the same concepts and coding tools of HEVC may be used in SHVC, MV-HEVC, and/or SMV-HEVC. However, the additional inter-layer prediction tools, which employ already coded data (including reconstructed picture samples and motion parameters a.k.a motion information) in reference layer for efficiently coding an enhancement layer, may be integrated to SHVC, MV-H EVC, and/or SMV-HEVC codec.
An access unit in SHVC, MV-HEVC and SMV-HEVC may be defined as a set of NAL units that are associated with each other according to a specified classification rule, are consecutive in decoding order, and contain the VCL NAL units of all coded pictures associated with the same output time and their associated non-VCL NAL units.
In MV-HEVC, SMV-HEVC, and reference index based SHVC solution, the block level syntax and decoding process are not changed for supporting inter-layer texture prediction. Only the high-level syntax has been modified (compared to that of HEVC) so that reconstructed pictures (upsampled if necessary) from a reference layer of the same access unit can be used as the reference pictures for coding the current enhancement layer picture. The inter-layer reference pictures as well as the temporal reference pictures are included in the reference picture lists. The signalled reference picture index is used to indicate whether the current Prediction Unit (PU) is predicted from a temporal reference picture or an inter-layer reference picture. The use of this feature may be controlled by the encoder and indicated in the bitstream for example in a video parameter set, a sequence parameter set, a picture parameter, and/or a slice header. The indication(s) may be specific to an enhancement layer, a reference layer, a pair of an enhancement layer and a reference layer, specific Temporalld values, specific picture types (e.g. RAP pictures), specific slice types (e.g. P and B slices but not I slices), pictures of a specific POC value, and/or specific access units, for example. The scope and/or persistence of the indication(s) may be indicated along with the indication(s) themselves and/or may be inferred.
The reference list(s) in MV-HEVC, SMV-HEVC, and a reference index based SHVC solution may be initialized using a specific process in which the inter-layer reference picture(s), if any, may be included in the initial reference picture list(s). A first example of constructing reference picture list(s) is provided in the following.
For example, the temporal references may be firstly added into the reference lists (LO, Li) in the same manner as the reference list construction in HEVC. After that, the inter-layer references may be added after the temporal references. The inter-layer reference pictures may be for example concluded from the layer dependency information, such as the RefLayerld[ i] variable derived from the VPS extension as described above. The inter-layer reference pictures may be added to the initial reference picture list LO if the current enhancement-layer slice is a P-Slice, and may be added to both initial reference picture lists LO and Li if the current enhancement-layer slice is a B-Slice. The inter-layer reference pictures may be added to the reference picture lists in a specific order, which can but need not be the same for both reference picture lists. For example, an opposite order of adding inter-layer reference pictures into the initial reference picture list i may be used compared to that of the initial reference picture list 0. For example, inter-layer reference pictures may be inserted into the initial reference picture 0 in an ascending order of nub_layer_id, while an opposite order may be used to initialize the initial reference picture list 1.
A method to turther improve the coding efficiency is called intra block copy, which allows for intra prediction by copying a preceding block region of the picture. The known approaches of intra copy block methods are based on square blocks of predefined sizes. E.g. the current H.265/HEVC Range extension draft includes an intra block copy method that is operating at either 8x8 or 16x16 luminance block size. The fixed block size is advantegeous to keep the computational requirements of intra block copying at a reasonable level and also to balance the amount of bits spent to indicate the block copy parameters with the sample prediction quality improvements.
However, a problem with this kind of a rigid grid based operation is that in some cases part of the prediction block may contain completely irrelevant sample data.
This may happen especially when there is text embedded in a picture. In such a case, the block copy approach is able to compensate the part of the block where the character lies very well, but due to the rigid block size it may end up copying not only the sample values contributing positively to the prediction but also sample values that may belong to completely different characters. In this case the coding performance may be significantly reduced as the block copy operation generated arbitrary data into the prediction block.
The problem can be illustrated by an example shown in Figure 7, where a decoding process of a picture with textual content is being carried out. The letter "c" in the block 750 to be predicted, residing in the area 752 not yet decoded, can be partially compensated with the sample data containing a letter c" already decoded in block 754, but the matching block 754 contains also data not present in the block to be predicted; i.e. a part of the letter "a". Now if the content of the block 754 is block copied to the block 750, said part of the letter "a" will also be copied to the block 750.
Now in order to at least alleviate the above problems, an improved method for carrying out intra block copying is presented hereinafter.
In the method, which is disclosed in Figure 8, a decoding process of a plurality of blocks of samples is being carried out. When decoding a block to be decoded, an indication is obtained (850) indicating whether one or more samples of the block are to be masked. If affirmative, an indication is obtained (852) indicating the location of said one or more samples to be masked. Then a sample value is generated (854) that is used to overwrite the samples in the area to be masked, and all the sample values in said area to be masked are substituted (856) with the said generated sample value.
It should be noted that overwriting and substituting the values in masked area does not imply that all implementations have performed intra block copy for the whole area of the block. Some implementations may perform block copy only for the non-masked area and in these cases overwriting or substituting the samples in mask area refer to simply generating the sample values for the masked area.
From the viewpoint of an encoder, the operation may include determining that one or more samples of a block to be predicted are not suitable for a used prediction process, and then an indication indicating that one or more samples of a block to be predicted are to be masked and location of said one or more samples to be masked is signalled in or along a bitstream of encoded picture.
In other words, the method provides means for signaling that some areas of the block copy predicted samples are not suitable for final prediction and substitutes those samples with a set of samples more representative of the content of the block. In this way a video or image codec can provide improved sample predictions in a low complexity manner when there is high frequency spatial information within the picture to be coded.
Figure 9 shows a comparison of a traditional intra block copy process and the sample masking process presented herein, when starting from the situation shown in Figure 7. The block to be predicted is the block 750 containing the letter c".
When performing the block copy prediction from the block 754, the content of the block 754, i.e. the letter "c" and a part of the letter "a" will be copied to the block 750. In the traditional intra block copy process, the part of the letter a" will remain in the final prediction as residual. However, in the sample masking process, a mask (shown in grey) is applied over the samples containing the part of the letter "a". As a result, the final prediction contains only the letter c", and no residual is remained.
According to an embodiment, said indication indicating whether one or more samples of the block are to be masked is a one bin identifier encoded with an entropy coder, such as a context adaptive binary arithmetic coder (CABAC).
According to an embodiment, the location of said one or more samples to be masked is indicated by signaling on which border (top, right, bottom or left) of the block the masked area resides and how many samples the area extends from the selected border (e.g. one, two or three samples).
According to an embodiment, the sample value used to overwrite the samples in the masked area is generated by obtaining the sample value of a single sample within the block copied block.
According to an embodiment, the sample value used to overwrite the samples in the masked area is obtained by copying value of the block copied sample in the masked area that is closest to the center of the prediction block.
Figure 10 shows an example of different masked areas extending from different borders (a. top, b. right, c. bottom and d. left) by two sample rows. The black sample in each masked area indicates the sample value that may be considered closest to the center of the prediction block, and can thus be used as the sample value to overwrite the samples in the masked area.
According to an embodiment, the identification of the size and shape of the masking area and the sample value to be used in masking may be carried out as follows: Void TComPrediotion: :getintrahaskParamo ( UChar mode, ComponentlD compiD, TComPicluv *retpio, Pci ApRef, mt refstride, Tnt width, mt height, mt &firstx, mt &lastX, Tnt &firstl, mt &lastl, Pci &maskPel mt maskSize = mode > 8 ? 1: mode > 4 3 3 2; mode -= mode > 8 ? 8: mode > 4 ? 4 0; if ( complfl COMPONENT_I Tnt oompsoale = mode == 1 II mode == 3 ? refPio- >getComponent3calel (conplD) refPic->getComponent3caleX (complD) ; maskSize conpSoale 3 maskSize >> 1 maskSize; firstX mode 2 3 width -maskSize 0; firstY = mode == 3 ? height -masksize 0; iastx = mode == 4 3 masksize -1 width -1; iastY mode 1 3 masksize -1 height -1; mode --; Tnt masksampiex[4] = width/2, firstX, width/2, iastx}; mt maskSampiel[4] = lastY, height/2, firstY, height/2}; maskPel = pRef[ masksamplel[mode] * refstride -I-masksampieX[rnode] I; where the input parameters "width" and "height" define the size of the intra block copy block and output parameters "firstX", "lastX", "firstY" and "lastY" define the masked area and output parameter "maskPel" defines the sample value to substitute all the values in the masked area.
The method can be implemented in multiple ways. For example, the steps 850 and 852 in Figure 8 may be combined into a single step such that an indication indicating the location of said one or more samples to be masked is obtained, which implicitly indicates that there are samples to be masked in said block.
According to an embodiment, in addition to intra block copied blocks, the method may also be applied to motion compensated blocks or blocks predicted in other ways.
According to an embodiment, intra block copy can be operated only on the area not covered with the mask.
According to an embodiment, samples values predicted with block copy or other methods may be analyzed to form the masking area instead or in addition to signaling the characteristics of the masked area.
According to an embodiment, the masked area may extend different distances from the selected border of the block.
According to an embodiment, the masked area is not limited to fixed dimensions only, but the dimensions may change based on indications in the bitstream or other characteristics, such as the block size or depending on which chrominance channel the prediction block belongs to.
Different methods can be used to obtain the value or values that are used to substitute the sample values in the masked area. For example, said value can be selected from a predefined position. Said value or a location where to obtain said value may be indicated in the bitstream. Said value or the location where to obtain the value may also be determined based on analysis of different factors, such as a distribution of the sample values or differences of certain sample values. Said value may also be calculated based on a number of sample values, for example by calculating a median of several sample values. A combination of different approaches may also be used to obtain the value(s) that are used to substitute the sample values in the masked area.
According to an embodiment, instead of substituting all the values within the mask area with a single value, the values of the samples in the masked area may be obtained by applying another prediction process, such as spatial intra prediction, intra block copy with different parameters than for the rest of the block or a motion compensated prediction.
According to an embodiment, the samples in the masked area can be further processed. For example, the border samples can be filtered to blend those to the neighboring samples.
As becomes evident from the above, the sample masking process presented herein is able to predict high frequency content present within a picture very efficiently.
Figure 11 shows a block diagram of a video decoder suitable for employing embodiments of the invention. Figure 11 depicts a structure of a two-layer decoder, but it would be appreciated that the decoding operations may similarly be employed in a single-layer decoder.
The video decoder 550 comprises a first decoder section 552 for base view components and a second decoder section 554 for non-base view components.
Block 556 illustrates a demultiplexer for delivering information regarding base view components to the first decoder section 552 and for delivering information regarding non-base view components to the second decoder section 554.
Reference P'n stands for a predicted representation of an image block. Reference D'n stands for a reconstructed prediction error signal. Blocks 704, 804 illustrate preliminary reconstructed images (l'n). Reference R'n stands for a final reconstructed image. Blocks 703, 803 illustrate inverse transform (T1). Blocks 702, 802 illustrate inverse quantizatian (Q1). Blocks 701, 801 illustrate entropy decoding (E1). Blocks 705, 805 illustrate a reference frame memory (RFM). Blocks 706, 806 illustrate prediction (P) (either inter prediction or intra prediction). Blocks 707, 807 illustrate filtering (F). Blocks 708, 808 may be used to combine decoded prediction error information with predicted base view/non-base view components to obtain the preliminary reconstructed images (In). Preliminary reconstructed and filtered base view images may be output 709 from the first decoder section 552 and preliminary reconstructed and filtered base view images may be output 809 from the first decoder section 554.
The embodiments of the invention described above describe the codec in terms of separate encoder and decoder apparatus in order to assist the understanding of the processes involved. However, it would be appreciated that the apparatus, structures and operations may be implemented as a single encoder-decoder apparatus/structure/operation. Furthermore in some embodiments of the invention the coder and decoder may share some or all common elements.
Although the above examples describe embodiments of the invention operating within a codec within an electronic device, it would be appreciated that the invention as defined in the claims may be implemented as part of any video codec.
Thus, for example, embodiments of the invention may be implemented in a video codec which may implement video coding over fixed or wired communication paths.
Thus, user equipment may comprise a video codec such as those described in embodiments of the invention above. It shall be appreciated that the term user equipment is intended to cover any suitable type of wireless user equipment, such as mobile telephones, portable data processing devices or portable web browsers.
Furthermore elements of a public land mobile network (PLMN) may also comprise video codecs as described above.
In general, the various embodiments of the invention may be implemented in hardware or special purpose circuits, software, logic or any combination thereof.
For example, some aspects may be implemented in hardware, while other aspects may be implemented in firmware or software which may be executed by a controller, microprocessor or other computing device, although the invention is not limited thereto. While various aspects of the invention may be illustrated and described as block diagrams, flow charts, or using some other pictorial representation, it is well understood that these blocks, apparatus, systems, techniques or methods described herein may be implemented in, as non-limiting examples, hardware, software, firmware, special purpose circuits or logic, general purpose hardware or controller or other computing devices, or some combination thereof.
The embodiments of this invention may be implemented by computer software executable by a data processor of the mobile device, such as in the processor entity, or by hardware, or by a combination of software and hardware. Further in this regard it should be noted that any blocks of the logic flow as in the Figures may represent program steps, or interconnected logic circuits, blocks and functions, or a combination of program steps and logic circuits, blocks and functions. The software may be stored on such physical media as memory chips, or memory blocks implemented within the processor, magnetic media such as hard disk or floppy disks, and optical media such as for example DVD and the data variants thereof, CD.
The memory may be of any type suitable to the local technical environment and may be implemented using any suitable data storage technology, such as semiconductor-based memory devices, magnetic memory devices and systems, optical memory devices and systems, fixed memory and removable memory. The data processors may be of any type suitable to the local technical environment, and may include one or more of general purpose computers, special purpose computers, microprocessors, digital signal processors (DSP5) and processors based on multi-core processor architecture, as non-limiting examples.
Embodiments of the inventions may be practiced in various components such as integrated circuit modules. The design of integrated circuits is by and large a highly automated process. Complex and powerful software tools are available for converting a logic level design into a semiconductor circuit design ready to be etched and formed on a semiconductor substrate.
Programs, such as those provided by Synopsys, Inc. of Mountain View, California and Cadence Design, of San Jose, California automatically route conductors and locate components on a semiconductor chip using well established rules of design as well as libraries of pre-stored design modules. Once the design for a semiconductor circuit has been completed, the resultant design, in a standardized electronic format (e.g., Opus, GDSII, or the like) may be transmitted to a semiconductor fabrication facility or lab" for fabrication.
The foregoing description has provided by way of exemplary and non-limiting examples a full and informative description of the exemplary embodiment of this invention. However, various modifications and adaptations may become apparent to those skilled in the relevant arts in view of the foregoing description, when read in conjunction with the accompanying drawings and the appended claims.
However, all such and similar modifications of the teachings of this invention will still fall within the scope of this invention.

Claims (28)

  1. Claims: 1. A method for decoding a plurality of blocks of samples within a picture, the method comprising obtaining an indication indicating that one or more samples of a block to be decoded are to be masked and location of said one or more samples to be masked; generating a sample value to be used to substitute the samples in the area to be masked, and substituting the sample values in said area to be masked with the said generated sample value.
  2. 2. The method according to claim 1, wherein said indication indicating whether one or more samples of the block are to be masked is a one bin identifier encoded with an entropy coder, such as a context adaptive binary arithmetic coder (CABAC), the method further comprising decoding said indication from a bitstream.
  3. 3. The method according to claim 1 or 2, further comprising decoding the location of said one or more samples to be masked as information on which border of the block the masked area resides and how many samples the area extends from the selected border.
  4. 4. The method according to any preceding claim, further comprising generating the sample value used to substitute the samples in the masked area by obtaining the sample value of a single sample within a prediction block.
  5. 5. The method according to claim 4, further comprising obtaining the sample value used to substitute the samples in the masked area by copying value of the predicted sample in the masked area that is closest to the center of the prediction block.
  6. 6. The method according to any preceding claim, wherein the sample values of the block to be decoded are obtained by an intra block copy process copying a preceding block region of the picture
  7. 7. The method according to any of claims 1 -5, wherein the sample values of the block to be decoded are obtained by a motion compensated prediction process.
  8. 8. The method according to any preceding claim, further comprising obtaining the sample values in said area to be masked by applying a spatial intra prediction, an intra block copy prediction with different parameters than for the rest of the block or a motion compensated prediction.
  9. 9. An apparatus comprising at least one processor and at least one memory, said at least one memory stored with code thereon, which when executed by said at least one processor, causes an apparatus to perform at least decoding a plurality of blocks of samples within a picture, obtaining an indication indicating that one or more samples of a block to be decoded are to be masked and location of said one or more samples to be masked; generating a sample value to be used to substitute the samples in the area to be masked, and substituting the sample values in said area to be masked with the said generated sample value.
  10. 10. The apparatus according to claim 9, wherein said indication indicating whether one or more samples of the block are to be masked is a one bin identifier encoded with an entropy coder, such as a context adaptive binary arithmetic coder (CABAC), the apparatus being arranged to decode said indication from a bitstream.
  11. 11. The apparatus according to claim 9 or 10, the apparatus being further arranged to perform decoding the location of said one or more samples to be masked as information on which border of the block the masked area resides and how many samples the area extends from the selected border.
  12. 12. The apparatus according to any of claim 9 -11, the apparatus being further arranged to perform generating the sample value used to substitute the samples in the masked area by obtaining the sample value of a single sample within a prediction block.
  13. 13. The apparatus according to claim 12, the apparatus being further arranged to perform obtaining the sample value used to substitute the samples in the masked area by copying value of the predicted sample in the masked area that is closest to the center of the prediction block.
  14. 14. The apparatus according to any of claims 9 -13, the apparatus being further arranged to perform obtaining the sample values of the block to be decoded by an intra block copy process copying a preceding block region of the picture
  15. 15. The apparatus according to any of claims 9 -13, the apparatus being further arranged to perform obtaining the sample values of the block to be decoded by a motion compensated prediction process.
  16. 16. The apparatus according to any of claims 9 -15, the apparatus being further arranged to perform obtaining the sample values in said area to be masked by applying a spatial intra prediction, an intra block copy prediction with different parameters than for the rest of the block or a motion compensated prediction.
  17. 17. A computer readable storage medium stored with code thereon for use by an apparatus, which when executed by a processor, causes the apparatus to perform: decoding a plurality of blocks of samples within a picture; obtaining an indication indicating that one or more samples of a block to be decoded are to be masked and location of said one or more samples to be masked; generating a sample value to be used to substitute the samples in the area to be masked, and substituting the sample values in said area to be masked with the said generated sample value.
  18. 18. A video decoder configured for decoding a plurality of blocks of samples within a picture, wherein said video decoder is further configured for: obtaining an indication indicating that one or more samples of a block to be decoded are to be masked and location of said one or more samples to be masked; generating a sample value to be used to substitute the samples in the area to be masked, and substituting the sample values in said area to be masked with the said generated sample value.
  19. 19. A method for encoding a plurality of blocks of samples within a picture, the method comprising determining that one or more samples of a block to be predicted are not suitable for a used prediction process; and including an indication indicating that one or more samples of a block to be predicted are to be masked and location of said one or more samples to be masked to be signalled in or along a bitstream of encoded picture.
  20. 20. The method according to claim 19, wherein said indication indicating that one or more samples of the block are to be masked is a one bin identifier
  21. 21. The method according to claim 19 or 20, further comprising encoding said indication with an entropy coder, such as a context adaptive binary arithmetic coder (GABAG).
  22. 22. The method according to any of claims 19 -21, further comprising indicating the location of said one or more samples to be masked by signaling on which border of the block the masked area resides and how many samples the area extends from the selected border.
  23. 23. An apparatus comprising at least one processor and at least one memory, said at least one memory stored with code thereon, which when executed by said at least one processor, causes an apparatus to perform at least encoding a plurality of blocks of samples within a picture; determining that one or more samples of a block to be predicted are not suitable for a used prediction process; and including an indication indicating that one or more samples of a block to be predicted are to be masked and location of said one or more samples to be masked to be signalled in or along a bitstream of encoded picture.
  24. 24. The apparatus according to claim 23, wherein said indication indicating that one or more samples of the block are to be masked is a one bin identifier
  25. 25. The apparatus according to claim 23 or 24, the apparatus being further arranged to perform encoding said indication with an entropy coder, such as a context adaptive binary arithmetic coder (CABAC).
  26. 26. The apparatus according to any of claims 23 -25, the apparatus being further arranged to perform indicating the location of said one or more samples to be masked by signaling on which border of the block the masked area resides and how many samples the area extends from the selected border.
  27. 27. A computer readable storage medium stored with code thereon for use by an apparatus, which when executed by a processor, causes the apparatus to perform: encoding a plurality of blocks of samples within a picture; determining that one or more samples of a block to be predicted are not suitable for a used prediction process; and including an indication indicating that one or more samples of a block to be predicted are to be masked and location of said one or more samples to be masked to be signalled in or along a bitstream of encoded picture.
  28. 28. A video encoder configured for encoding a plurality of blocks of samples within a picture, wherein said video encoder is further configured for: determining that one or more samples of a block to be predicted are not suitable for a used prediction process; and including an indication indicating that one or more samples of a block to be predicted are to be masked and location of said one or more samples to be masked to be signalled in or along a bitstream of encoded picture.
GB1318878.4A 2013-10-25 2013-10-25 An apparatus, a method and a computer program for video coding and decoding Withdrawn GB2519750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
GB1318878.4A GB2519750A (en) 2013-10-25 2013-10-25 An apparatus, a method and a computer program for video coding and decoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
GB1318878.4A GB2519750A (en) 2013-10-25 2013-10-25 An apparatus, a method and a computer program for video coding and decoding

Publications (2)

Publication Number Publication Date
GB201318878D0 GB201318878D0 (en) 2013-12-11
GB2519750A true GB2519750A (en) 2015-05-06

Family

ID=49767157

Family Applications (1)

Application Number Title Priority Date Filing Date
GB1318878.4A Withdrawn GB2519750A (en) 2013-10-25 2013-10-25 An apparatus, a method and a computer program for video coding and decoding

Country Status (1)

Country Link
GB (1) GB2519750A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008283343A (en) * 2007-05-09 2008-11-20 Hoya Corp Apparatus and method for replacing pixel block

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008283343A (en) * 2007-05-09 2008-11-20 Hoya Corp Apparatus and method for replacing pixel block

Also Published As

Publication number Publication date
GB201318878D0 (en) 2013-12-11

Similar Documents

Publication Publication Date Title
US10771805B2 (en) Apparatus, a method and a computer program for video coding and decoding
US11800131B2 (en) Apparatus, a method and a computer program for video coding and decoding
US10659802B2 (en) Video encoding and decoding
US10547867B2 (en) Method, an apparatus and a computer program product for video coding and decoding
US9800893B2 (en) Apparatus, a method and a computer program for video coding and decoding
EP3058735B1 (en) Multi-layer hypothetical reference decoder
US20140254681A1 (en) Apparatus, a method and a computer program for video coding and decoding
US11323710B2 (en) Quantization parameter derivation for cross-channel residual encoding and decoding
US20150195577A1 (en) Parameter set coding
US20140092977A1 (en) Apparatus, a Method and a Computer Program for Video Coding and Decoding
WO2018172609A2 (en) Motion compensation in video encoding and decoding
GB2519750A (en) An apparatus, a method and a computer program for video coding and decoding

Legal Events

Date Code Title Description
732E Amendments to the register in respect of changes of name or changes affecting rights (sect. 32/1977)

Free format text: REGISTERED BETWEEN 20150903 AND 20150909

WAP Application withdrawn, taken to be withdrawn or refused ** after publication under section 16(1)