A method for decoding a picture block from a special reconstructed reference picture is disclosed. Corresponding coding method and corresponding encoding and decoding devices are further disclosed.
During video streaming, the bandwidth available may change over time. Consequently, the outgoing bit rate of the streaming application needs to be adjusted to fit the available bandwidth in real time in order to avoid congestion. One way to enable real-time bit rate adjustments is the use of a real-time encoder, but it needs to allocate one encoding system per client that may be unacceptable in case of numerous clients as for VOD services for example. Another way to enable real-time bit rate adjustments is the use of scalable video coding. In scalable coding, a video source is encoded into several layers. During the transmission in order to adjust the outgoing bit rate, the server selects the layers to be sent (mode “push”) or the decoder asks for the layers to be sent (mode “pull”). The method is suitable for streaming over heterogeneous channels, but scalable video coding degrades the overall compression efficiency and increases the computational complexity of both the encoder and the decoder compared to single layer video coding. A simple method to realize bit rate adjustment is to encode multiple versions of the same video sequence. These versions have different resolution and/or quality levels and thus different bit rates. During the streaming, when there is a need to adjust the outgoing bit rate, the stream to be transmitted can be switched dynamically from one version to the other in order to fit the bandwidth requirement or user's capability as depicted on
In AVC, special picture types (SI/SP) were designed that allow for identical reconstruction of a picture from another stream and thus facilitate stream switching. Video pictures are thus encoded into SP pictures at switching points instead of intra-coded pictures as depicted on
In the document from Zhou et al entitled “Efficient bit stream switching of H.264 coded video” and published in proc. of SPIE vol. 5909 (2005), a solution is disclosed that makes it possible to switch at any time without a substantial bit rate overhead. The solution is provided only for IPPP GOP structure. In addition to the multiple versions of the same video sequence at different bit rate, a DIFF picture is encoded for the reconstructed reference picture of the current picture on which the switch occurs as depicted on
A method for decoding a picture block is disclosed. The method comprises:
Advantageously, the identified reconstructed reference picture is decoded from a first layer and wherein the decoded data and the information identifying the reconstructed reference picture in the decoder picture buffer are decoded from a second layer dependent from the first layer.
According to a specific characteristic, the first layer is a base layer.
According to a specific embodiment, the decoding method further comprises decoding a flag indicating that the subsequently decoded pictures of the second layer are not using any inter-layer prediction.
A method for encoding a picture block is also disclosed. The encoding method further comprises:
Advantageously, the identified reconstructed reference picture is encoded in a first layer and the at least one reconstructed reference picture and the information for identifying the another reconstructed reference picture in the decoder picture buffer are encoded in a second layer dependent from the first layer.
According to a specific characteristic, the first layer is a base layer.
According to a specific embodiment, further comprising encoding a flag indicating that the subsequently encoded pictures of the second layer are not using any inter-layer prediction.
A decoding device for decoding a picture block is disclosed. The decoding device comprises:
The decoding device is adapted to execute the steps of the decoding method.
A coding device for encoding a picture block is disclosed. The coding device comprises:
The coding device is adapted to execute the steps of the encoding method.
Finally, a data stream is disclosed. The data stream comprises encoded in it one information for identifying a reconstructed reference picture in a decoder picture buffer and data allowing for the reconstruction of a special reference picture from the identified reconstructed reference picture, the special reference picture being a reference picture that is not displayed.
Other features and advantages of the invention will appear with the following description of some of its embodiments, this description being made in connection with the drawings in which:
The invention relates to a method for decoding a picture block of pixels and a method for coding such a picture block. The picture block belongs to a picture of a sequence of pictures. Each picture comprises pixels or picture points with each of which at least one item of picture data is associated. An item of picture data is for example an item of luminance data or an item of chrominance data. Hereafter, the coding and decoding methods are described with reference to a picture block. It is clear that these methods can be applied on several picture blocks of a picture and on several pictures of a sequence with a view to the coding respectively the decoding of one or more pictures. A picture block is a set of pixels of any form. It can be a square, a rectangle. But the invention is not limited to such forms. In the following section the word block is used for picture block. In HEVC, the block refers to a Coding Unit (CU).
The “predictor” term designates data used to predict other data. A predictor is used to predict a picture block. A predictor or prediction block is obtained from one or several reconstructed reference sample(s) of the same picture as the picture to which belongs the block that it predicts (spatial prediction or intra-picture prediction) or from one (mono-directional prediction) or several reference blocks (bi-directional prediction or bi-prediction) of reconstructed reference pictures (temporal prediction or inter-picture prediction). A reference block is identified in a reconstructed reference picture by a motion vector. The prediction can also be weighted to account for an illumination variation model (a.k.a weighted prediction).
The term “residue” signifies data obtained after subtraction of a predictor from source data.
The term “reconstruction” designates data (e.g. pixels, blocks) obtained after merging a residue with a predictor. The merging is generally a sum of a predictor with a residue. However, the merging is more general and notably comprises an additional post filtering stage of reconstructed samples and/or an additional step of addition of offsets to the reconstructed samples. When a reference picture is reconstructed, it is stored in the DPB (English acronym of “Decoder Picture Buffer”) as a newly reconstructed reference picture.
In reference to the decoding of pictures, the terms “reconstruction” and “decoding” are very often used as synonyms. Hence, a “reconstructed block” is also designated under the terminology “decoded block”.
The term coding is to be taken in the widest sense. The coding possibly comprises applying a transform and/or quantizing data. It can also designate only the entropy coding. A DCT (“Discrete Cosine Transform) is an example of such a transform. In the same way, the term decoding possibly comprises in addition to the entropy decoding, applying a transform and/or an inverse quantization. The transform applied on the decoder side is an inverse transform of the one applied on the encoder side.
A stream is a sequence of bits that forms the representation of coded pictures and associated data forming one or more coded video sequences. Stream is a collective term used to refer either to a NAL unit stream or a byte stream.
A NAL (English acronym of “Network Abstraction Layer”) unit is a syntax structure containing an indication of the type of data to follow and bytes containing that data. The NAL is specified to format that data and provide header information in a manner appropriate for conveyance on a variety of communication channels or storage media. All data are contained in NAL units, each of which contains an integer number of bytes. A NAL unit specifies a generic format for use in both packet-oriented and stream systems. The format of NAL units for both packet-oriented transport and byte stream is identical except that each NAL unit can be preceded by a start code prefix and extra padding bytes in the byte stream format.
An AU (English acronym of “Access Unit”) is 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. The decoding of an access unit always results in a decoded picture.
In the
The flowchart and/or block diagrams in the figures illustrate the configuration, operation and functionality of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, or blocks may be executed in an alternative order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of the blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. While not explicitly described, the present embodiments may be employed in any combination or sub-combination.
In a step 10, at least one stream S_diff is decoded into decoded data (e.g. residues and coding modes) and into an information INFO for identifying a reconstructed reference picture R2 stored in a DPB.
In a step 12, a special reference picture (whose English acronym is SRP) R1′ is reconstructed from the identified reconstructed reference picture R2 and from the decoded data. The special reference picture is then placed in a DPB. This reference picture R1′ is special because it is never displayed but only used to reconstruct blocks in other pictures. Reconstructing the SRP R1′ comprises, for each picture block of R1′, determining a predictor and adding a residue. The predictor may be determined from the identified reconstructed reference picture R2 (either as a block in R2 co-located to Bc or as a motion compensated block in R2 thus identified by a motion vector) or from neighboring reconstructed samples of R1′ as in classical intra prediction. A block in R2 is co-located to Bc if its spatial position in R2 is identical to the spatial position of Bc in Ic. According to a variant, if the size of the reconstructed reference picture R2 is different from the size of the current picture Ic, then R2 is rescaled for the reconstruction of the special reference picture so that the rescaled R2 picture (possibly with appropriate padding) has the same size as Ic. In this case, R1′ is reconstructed from F(R2), where F is a rescaling filter. The stream S_diff may be a part of stream S or may be independent of stream S.
As an example, the stream S_diff encodes the pixel by pixel difference between another reconstructed reference picture R1 different from R2 and the reconstructed reference picture R2. R1 is for example the reconstructed reference picture from which the current picture block Bc is encoded. In this case, decoding the stream S_diff comprises decoding a difference picture DIFF usually by entropy decoding, inverse quantization and transform. The transform is for example an inverse DCT. The difference picture is usually an approximation of the difference between the reconstructed reference picture R1 and the reconstructed reference picture R2. The approximation is due to the loss during encoding (e.g. because of the quantization). If the difference picture DIFF is lossless encoded, then the decoded difference picture DIFF equals the difference between the reconstructed reference picture R1 and the reconstructed reference picture R2. According to a variant, if R1 and R2 are of different sizes, the difference picture is the difference between the reconstructed reference picture R1 and the rescaled reconstructed reference picture R2. As an example, if R2 is larger than R1 then R2 is downscaled and if R2 is smaller than R1 then R2 is up-scaled. In this case, the special reference picture R1′ equals F(R2)+DIFF, F is the identity if R2 and Ic are of same size or F is a rescaling function otherwise.
According to a variant, the decoding method further comprises an optional decoding of a sign associated with the difference picture DIFF. If such a sign is decoded, the special reference picture R1′ equals F(R2)+DIFF when the sign is positive and equals F(R2)−DIFF when the sign is negative.
According to another variant, the stream S_diff encodes for some blocks of R1 the difference between these blocks and co-located blocks in R2. The other blocks of R1 are encoded in S_diff using classical intra prediction, i.e. from neighboring reconstructed samples.
According to another variant, the stream S_diff encodes for some blocks of R1 the difference between these blocks and corresponding blocks in R2. The corresponding blocks in R2 are either co-located blocks or motion compensated blocks. The other blocks of R1 are encoded in S_diff using classical intra prediction, i.e. from neighboring reconstructed samples.
Decoding the information INFO makes it possible to handle different use cases. As an example, if the current picture block Bc is encoded from two reconstructed reference pictures R1 and r1, then two special reference pictures R1′ and r1′ and two information INFO and info are decoded at step 10. The special reference pictures R1′ and r1′ correspond respectively to R2 and r2, where R2 and r2 are two reconstructed reference pictures stored in the DPB from which Bc is to be reconstructed. Consequently, INFO indicates to the decoder that R1′ is to be reconstructed from R2 while info indicates that r1′ is to be reconstructed from r2.
Each special picture is for example identified in the stream S_diff with a dedicated flag indicating a picture/slice type different from the classical I, P, B picture/slice type. This picture/slice type indicates that the current AU contains a special reference picture that is not displayed. According to a variant, each special picture is identified with a dedicated flag in the slice header. According to a variant, the picture slice type is I, P or B, but a special flag in the slice header indicates the reconstructed picture is not displayed but stored as reference in the DPB.
The information INFO for identifying in the DPB a reconstructed reference picture R2 is for example a POC (English acronym of “Picture Order Count”) as defined in the document ISO/IEC 14496-10 (section 3.104). According to a variant, the information for identifying a reconstructed reference picture is a reconstructed reference picture index.
In a step 16, the current picture block Bc is reconstructed from the special reference picture R1′. Usually, since the special reference picture is closer in terms of content to R1 than was R2, the drift is thus decreased. Usually, reconstructing a picture block comprises decoding a residue from the stream S and adding the residue to a predictor. The residue can be zero in case of skip mode. Decoding the residue comprises entropy decoding, inverse quantization and applying a transform inverse of the transform applied on the encoder side. These steps are well known to those skilled in the art of video compression/coding and are not disclosed further. A reference block in the special reference picture R1′ is identified by a motion vector decoded from the stream S. The reference block is used as a predictor. In case of bi-prediction, two reference blocks are identified in two reconstructed reference pictures which are possibly one and the same reconstructed reference picture. The predictor is a weighted sum of these two reference blocks. If Bc is bi-predicted from two reference blocks belonging to two reconstructed reference pictures R2 and r2 which may be different from the reconstructed reference pictures R1 and r1 used in the encoding, then two SRPs R1′ and r1′ are possibly reconstructed. The special reference pictures R1′ and r1′ are thus used as reference pictures for Bc. Bc can also be reconstructed from one special reference pictures R1′ and from r1, if r1 is available in the DPB when reconstructing Bc. INFO and sign can be decoded for each special reference picture (in a slice header or in a slice segment header) or may be grouped for several special reference pictures in one single header. INFO and sign are for example decoded from a SEI message, VPS (Video Parameter Set HEVC) or from the slice header of Sc.
In a step 20, a current picture block Bc is encoded from at least one first reconstructed reference picture R1 in a stream S. Usually, encoding the current picture block comprises determining a residue, transforming the residue and quantizing the transformed residue into quantized data. The quantized data are further entropy coded in the stream S. The residue is obtained by subtracting from the current picture block Bc a predictor. The predictor is determined from the first reconstructed reference picture R1. More precisely, a predictor is determined in the reconstructed reference picture R1 by a motion vector. If the current block is bi-predicted from two reference blocks, a predictor is obtained by averaging these two reference blocks. The two reference blocks either belong to two different reconstructed reference pictures R1 and r1 or to one and the same reconstructed reference picture. Motion vectors are also encoded in the stream S. These steps are well known to those skilled in the art of video compression and are not disclosed further. In a step 24, the reconstructed reference picture R1 and an information INFO are encoded into the stream S_diff. The decoding of S_diff is a SRP. The stream S_diff may be a part of stream S or may be independent of stream S. The reconstructed reference picture R1 is encoded in S_diff from a second reconstructed reference picture R2 different from R1 that is identified by INFO. According to a variant, if the size of the reconstructed reference picture R2 is different from the size of the current picture Ic and thus from the size of R1, then R2 is rescaled for the encoding of the reconstructed reference picture R1 so that the rescaled R2 picture (possibly with appropriate padding) has the same size as Ic. In this case, R1 is encoded from F(R2), where F is an rescaling filter.
As an example, the stream S_diff encodes the pixel by pixel difference DIFF between R1 and R2. The DIFF picture is encoded by transformation (e.g. using a DCT), quantization and entropy coding. According to a variant, if R1 and R2 are of different sizes, the difference picture is the difference between the reconstructed reference picture R1 and the rescaled second reconstructed reference picture R2. As an example, if R2 is larger than R1 then R2 is downscaled and if R2 is smaller than R1 then R2 is up-scaled. In this case, DIFF=R1−F(R2), F is the identity function when R2 and Ic are of the same size and is a rescaling function otherwise.
According to a variant, the decoding method further comprises an optional decoding of a sign associated with the difference picture. If such a sign is decoded, the special reference picture R1′ equals F(R2)+DIFF when the sign is positive and equals F(R2)−DIFF when the sign is negative.
According to another variant, the stream S_diff encodes for some blocks of R1 the difference between these blocks and blocks in R2 (i.e. either blocks co-located to Bc or motion compensated blocks). The other blocks of R1 are encoded in S_diff using classical intra prediction, i.e. from neighboring reconstructed samples.
Encoding the information INFO makes it possible to handle different use case. As an example, if the current picture block Bc is encoded from two reconstructed reference pictures R1 and r1, then the two reconstructed reference pictures are encoded from two other reconstructed reference pictures R2 and r2. INFO indicates to a decoder that a special reference picture R1′ is to be reconstructed from R2 while info indicates that another special reference picture r1′ is to be reconstructed from r2. Each special reference picture is for example identified in the stream S_diff with a dedicated flag indicating a picture/slice type different from the classical I, P, B picture/slice type. This picture/slice type indicates the current AU is a special reference picture that is to be used for replacing a picture in the DPB. According to a variant, each special picture is identified with a dedicated flag in the slice header.
According to a variant, the picture slice type is I, P or B, but a special flag in the slice header indicates the reconstructed picture is not displayed but stored as reference in the DPB.
In a specific embodiment, one special reference picture and an information INFO are encoded for several or each possible pairs of reconstructed reference picture of the DPB. Consequently at any time a block Bc can be reconstructed from any picture of the DPB even if it is not the one from which it was encoded while limiting the drift. Indeed, when reconstructing Bc, if R1 is not available in the DPB, Bc can be reconstructed from the special reference picture R1′ instead of R2. The drift is thus limited because R1′ is closer in terms of content to R1 than is R2.
The information identifying a second reconstructed reference picture is for example a POC. According to a variant, the information identifying a second reconstructed reference picture is a reconstructed reference picture index.
All the variants and options disclosed for the decoding method are applicable to the encoding method. In particular, the encoding method comprises an optional encoding of a sign associated with the difference picture.
INFO and sign are for example decoded from a SEI message, VPS (Video Parameter Set HEVC) or from the slice header of Sc.
According to a variant, the encoding and decoding methods are used in the context of stream switching as illustrated by
In addition to the streams S0 and S1, at each time instant to a reconstructed reference picture RS1tn of S1 is further encoded in a stream S_diff as a SRP from a timely corresponding, i.e. temporally aligned, (e.g. identical picture order count) reconstructed reference picture RS0tn of S0 as depicted on
The decoding method disclosed with respect to
In the step 10, S_diff1, S_diff2 and S_diff3 are decoded into decoded data (e.g. residues and coding modes) and into information info_t0, info_t1 info_t2 identifying the reconstructed reference pictures RS00, RS01, and RS02 stored in the DPB0.
In the step 12, three special reference pictures SRP_t0, SRP_t1, SRP_t2 are reconstructed from corresponding decoded data and from corresponding reconstructed reference pictures RS00, RS01 and RS02. The reconstructed SRP are then stored in a DPB1 (possibly) different from DPB0. DPB1 is relative to S1. According to a first specific embodiment, S_diff encodes the pixel by pixel difference between RS1tn and the timely corresponding picture RS0tn possibly rescaled. In this case, the reconstructed SRP are SRP_t0=diff_t0+F(RS00), SRP_t1=diff_t1+F(RS01), SRP_t2=diff_t2+F(RS02), wherein diff_t0, diff_t1, diff_t2 are decoded from S_diff. If necessary, RS00 is rescaled by F so that its size is the same as the size of the current picture Ic. If no rescaling occurs then F is the identity function. According to a second specific embodiment, S_diff encodes RS1tn using RS0tn possibly rescaled by F. In this case, the predictor of a block in RS1tn is either a spatially co-located block in the picture RS0tn or a motion compensated block in RS0tn or derived from spatially neighboring blocks in RS1tn (spatial intra prediction). In the case of the first specific embodiment, when no rescaling is necessary, i.e. when the sizes of the pictures of the first and second stream are identical, then the same difference pictures diff_t0, diff_t1 and diff_t2 can be used to switch from S0 to S1 or from S1 to S0. In the previous example, if diff_t0 encodes the difference between RS00 and the timely corresponding picture RS10 in the stream S1 instead of the inverse diff_t0 is subtracted from RS00 instead of being added in order to reconstruct SRP_t0. A sign is thus decoded to specify if the reconstructed reference pictures are modified by adding or by subtracting the difference picture.
In the step 16, Bc is reconstructed from reconstructed reference pictures in DPB1. Just after the switch, DPB1 comprises the three SRPs.
The invention is clearly not limited to the case of 3 reconstructed reference pictures. According to a specific embodiment of the invention, for all reconstructed reference pictures in the DPB0 a special reference picture is reconstructed at step 12 and stored in DPB1. According to a variant, a SRP is reconstructed only for each reconstructed reference pictures in the DPB0 that are to be used as reference pictures after the switch.
According to a variant, a flag f13 is encoded (respectively decoded) for example in the VPS or a SEI indicating that the subsequently encoded (respectively decoded) pictures with a given layer_id are not using any inter-layer prediction. More precisely, the pictures encoded (respectively decoded) after the flag are not using any inter-layer prediction.
According to a specific embodiment of the invention, the pictures of the first and second sequences and the special reference pictures are encoded into a multi-layered stream. As a specific example, the pictures identified as special reference pictures are encoded as an enhancement layer of a scalable stream that is dependent from another layer (stream S0), e.g. a base layer, in which the pictures of the first sequence are encoded. A first layer is dependent from a second layer if it needs information from this second layer for being decoded. The enhancement layer allows to reconstruct from reconstructed reference pictures of S0, special reference pictures to be used as reference picture for reconstructing pictures of S1 after the switch from S0 to S1. This enhancement layer is for example compliant with SVC or SHVC coding standard. According to a specific embodiment of the invention, the special reference pictures are encoded with a subset of the encoding tools/modes provided by SVC or SHVC for encoding enhancement layer. According to another embodiment of the invention, intra-layer motion vector prediction (temporal prediction) is disabled in SVC or SHVC coding standard. On the contrary, intra prediction from the S0 layer is activated. The intra picture prediction may be activated too. According to another embodiment, the temporal my prediction is disabled for coding S0 and S1 for example by setting the HEVC flag slice_temporal_mvp_enable_flag to false. This means that the motion vector prediction (MV prediction) is built using MV from reconstructed neighboring coding units, but not using the MVs of previously reconstructed reference pictures.
In the following
According to an advantageous embodiment, DEC1 and DEC2 can be one and the same decoding module.
Encoding the pictures of the first and second sequences and the special reference pictures into a multi-layered stream makes it possible to reconstruct two reference pictures temporally aligned (b1 and e′1 or b2 and e′2), e.g. having a same POC. Indeed, in the multi-layer approach different DPBs are used. Specifically, one DPB is used per layer. Consequently, the temporally aligned reconstructed reference pictures are stored in different DPBs. Decoding a multi-layer stream classically requires decoding a layer of level N before decoding a layer of level N+1, where N is an integer, because of layers' dependency. Such a dependency between layers is not compatible with a stream switching application. Advantageously, encoding the flag f13 introduces independency between layers and thus renders scalable encoding/decoding suitable for stream switching applications.
The encoding and decoding methods according to the invention makes it possible to realize flexible stream switching while having a small bit rate overhead only when switching occurs. These methods are suitable for any GOP structure, any number of reconstructed reference pictures and even when decoding order is different from display order.
An example of a syntax is provided below within the SHVC coding standard framework for the S_diff stream.
A slice_type is added to identify a slice of a special reference picture.
sign_diff_pic equal to 1 indicates the residuals should be added to the prediction, else the residuals should be substracted to the prediction.
pic_order_cnt_diffpic_lsb specifies the picture order count modulo MaxPicOrderCntLsb for this special reference picture. Then the intra BL prediction will use the reference picture in the DPB with same pic_order_cnt. The length of the pic_order_cnt_lsb syntax element is log 2_max_pic_order_cnt_lsb_minus4+4 bits. The value of the pic_order_cnt_diffpic_lsb shall be in the range of 0 to MaxPicOrderCntLsb−1, inclusive. When pic_order_cnt_diffpic_lsb is not present, pic_order_cnt_diffpic_lsb is inferred to be equal to 0.
delta_poc_msb_diffpic_cycle_lt is used to determine the value of the most significant bits of the picture order count value of the long-term reconstructed reference picture in the DPB that is used to reconstruct this special reference picture. When delta_poc_msb_cycle_lt is not present, it is inferred to be equal to 0
num_layer_id_diffpic_apply indicates the num_layer_id of the reconstructed reference pictures used to decode this special reference picture.
diff_pic_flag_enabled equal to 1 indicates that inter_layer_pred_for_non_diff_picture_flag are coded.
inter_layer_pred_for_non_diff_picture_flag equal to 1 indicates that any subsequent picture of type I, P or B does not use inter-layer prediction, but pictures of type SRP may use inter layer prediction, but not temporal intra layer prediction.
The video coder and decoder according to the invention and depicted on
According to variants, the coding and decoding devices according to the invention are implemented according to a purely hardware realisation, for example in the form of a dedicated component (for example in an ASIC (Application Specific Integrated Circuit) or FPGA (Field-Programmable Gate Array) or VLSI (Very Large Scale Integration) or of several electronic components integrated into a device or even in a form of a mix of hardware elements and software elements.
Number | Date | Country | Kind |
---|---|---|---|
13305203.5 | Feb 2013 | EP | regional |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2014/053021 | 2/17/2014 | WO | 00 |