Adaptive sampling filter process for scalable video coding
09794555 · 2017-10-17
Assignee
Inventors
Cpc classification
H04N19/134
ELECTRICITY
H04N19/169
ELECTRICITY
H04N19/463
ELECTRICITY
International classification
H04N19/59
ELECTRICITY
H04N19/463
ELECTRICITY
H04N19/134
ELECTRICITY
H04N19/80
ELECTRICITY
Abstract
A sampling filter process for scalable video coding provides correction for phase shift occurring during downsampling. The process uses video data obtained from an encoder or decoder process of a base layer (BL) in a multi-layer system using adaptive phase shifting based on downsampling to improve quality. Examples of a multi-layers are MPEG-4 Advanced Video Coding (AVC) and High Efficiency Video Coding (HEVC). The re-sampled BL data can be used in higher layers in a scalable video coding system. For example, the re-sampled or upsampled data can be used as a basis for prediction of the higher resolution video data.
Claims
1. A system for scalable video coding comprising: a first coding layer for coding video with a base resolution; a second coding layer for coding video with an enhanced resolution having a higher resolution than the base resolution; an upsampling unit receiving sampling signals from the first coding layer and providing an output signal to the second coding layer after an upsampling process, wherein the upsampling unit output signal enables more efficient coding in the second coding layer, wherein the first coding layer is downsampled from the second coding layer, and wherein a global phase offset generated in the downsampling is calculated during the upsampling to provide the output signal from the upsampling unit wherein phase shift q_c is used during downsampling, wherein phase shift p_c is used during upsampling, wherein r is a factor used in downsampling from the enhanced resolution to the base resolution and in upsampling from the base resolution to the enhanced resolution, and wherein the phase shift q_c and the phase shift p_c provide a vertical chroma phase offset, respectively in the downsampling and upsampling, with the phase shift q_c=(r−1)/4 and wherein the downsampling by the factor of r and the upsampling by the factor of r, the phase shift p_c=−q_c/r=(1−r)/(4r) is calculated as the global phase offset.
2. The system for scalable video coding of claim 1, wherein the global phase offset used in upsampling is computed by a decoder in the second coding layer.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Further details of the present invention are explained with the help of the attached drawings in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
DETAILED DESCRIPTION
(10)
(11) In module 300, a set of input samples in a video signal x is first selected. In general, the samples can be a two-dimensional subset of samples in x, and a two-dimensional filter can be applied to the samples. The module 302 receives the data samples in x from module 300 and identifies the position of each sample from the data it receives, enabling module 302 to select an appropriate filter to direct the samples toward a subsequent filter module 304. The filter in module 304 is selected to filter the input samples, where the selected filter is chosen or configured to have a phase corresponding to the particular output sample location desired.
(12) The filter input samples module 304 can include separate row and column filters. The selection of filters is represented herein as filters h[n; p], where the filters can be separable along each row or column, and p denotes a phase index selection for the filter. The output of the filtering process using the selected filter h[n;p] on the selected input samples produces output value y′.
(13)
(14) In
(15) Although the filters h[n:p] in module 304a are shown as separate phase fixed devices, they can be implemented using a single filter with phase p selected and adaptively controlled. The adaptive phase filters can be reconfigured by software. The adaptive filters can thus be designed so that each filter h[n;p] corresponds to a desired phase p. The filter coefficients h[n;p] can be signaled in the EL from the encoder so that the decoder can reconstruct a prediction to the FR data.
(16) Phase selection for the filters h[n:p] enables recreation of the FR layer from the BL data. For example, if the BL data is created by removing every other pixel of data from the FR, to recreate the FR data from the BL data, the removed data must be reproduced or interpolated from the BL data available. In this case, depending on whether even or odd indexed samples are removed, the appropriate filter h[n;p] with phase p can be used to interpolate the new data. The selection of p different phase filters from the filters h[n:p] allows the appropriate phase shift to be chosen to recreate the missing data depending on how the BL data is downsampled from the FR data.
(17)
(18) Note that when the output y′[n] provides the same number of samples as the input x[m] then no samples will have been dropped from the FR layer to form the BL layer, and the BL data will be the same resolution as the FR layer. In the examples of
(19)
(20) Although the simple averaging of data for interpolation is shown in
(21) For more specific or complex phase shift selection, the module 304a of
(22) Selection criteria for determining a filter phase are applied by the select control 400 of the select filter module 302a in
(23) For the upsampling process components for
(24) 1. Filter Design for Adaptive Phase Shift
(25) As described previously, any phase offset applied in generating the downsampled BL data from the FR data should be accounted for in the corresponding upsampling process in order to improve the performance of the FR prediction. One way to achieve this is by specifying the appropriate phases of the filters 304 used for the re-sampling processes. As indicated above, the filters 304 can be configured as adaptive as illustrated in
(26) In the absence of knowing any information about the appropriate phase, the filters 304 can be designed or derived based on only the BL and FR data. That is, given the BL pixel data, the filters are derived, for example, to minimize an error between the upsampled BL pixel data and the original FR input pixel data. Note that the designed filters are upsampling filters as opposed to filters which are designed after the BL has been upsampled, e.g. by using some filters with fixed filtering coefficients. The filter(s) can be derived based on current or previously decoded data. In minimizing the error between the upsampled BL and FR, the designed filter(s) will implicitly have the appropriate phase offset(s).
(27) The specified or derived filter coefficients used in the upsampling of
(28) 2. Separable Column and Row Filtering
(29) For the re-sampling process, in one embodiment the filters applied can be separable, and the coefficients for each horizontal (row) and vertical (column) dimension can be signaled or selected from a set of filters. This is illustrated by the filters h[n;p] in
(30) The separable filtering in the re-sampling process can be specified as row filtering first or column filtering first, as the order may affect the memory or computational requirements. In the case of deriving filters based on only the BL and FR data as described previously, note that if row filtering and re-sampling is performed first, the estimation of the filters used for column filtering can be done based on the re-sampled row data (or vice-versa). As described previously, the filter coefficients can be transmitted in the EL, or a difference between the coefficients and a specified (or predicted) set of coefficients can be transmitted.
(31) 3. Filter Data Used After Deblocking and SAO processing
(32) In the re-sampling or upsampling process, pixel data from the encode/decode process from the BL is used to generate a prediction for the FR pixel data. The BL pixel data can be extracted at various points in the decoding process. To enable reconstruction of the original data for the EL coding the extracted BL pixel data is used. For example, in AVC coding a deblocking filter (DBF) can be applied for data reconstruction. HEVC coding specifies two filtering processes that are applied for data reconstruction, with a deblocking filter (DBF) applied first and the sample adaptive offset (SAO) filter applied afterwards. The SAO filter is applied after the DBF and is made to allow for better reconstruction of the original signal amplitudes by using SAO parameters that are transmitted to the decoder.
(33) For the case of HEVC and AVC, the BL pixel data used for re-sampling can either be applied before or after the deblocking process. And for the case of HEVC, the BL pixel data used can either be with or without SAO processing. In one embodiment for an AVC and HEVC BL, signaling is provided to indicate whether the BL data for re-sampling is deblocked data or not. For an HEVC BL, if the data has been deblocked, signaling is further provided to indicate whether the BL data for re-sampling has been further processed with SAO or not.
(34) 4. Phase Offset Compensation
(35) In generating the BL, non-zero phase shift q may apply globally over an entire picture. The global phase shift may, however, be different per color component and per dimension. Depending on the phase shift q used during downsampling, an appropriate phase shift p may be required in upsampling. If this phase shift p (or q) is known at the encoder, it can be transmitted to the decoder in the EL bitstream. In the upsampling process, the decoder can then select a filter with a phase offset that is shifted by p from the filter that would have otherwise been selected with q=0.
(36) As an example of phase offset compensation, for the case of 420 color sampling, if it is assumed that all layers maintain the correct 420 chroma sampling positions, it is possible to determine what the phase shift p_c should be relative to the input chroma samples without having to explicitly transmit p_c. Instead of being transmitted, the chroma phase shift p_c for re-sampling can be computed based upon known information about the BL and FR spatial resolutions. For example, for downsampling by a factor of r, to maintain the 420 chroma sampling positions the vertical chroma phase offset should be q_c=(r−1)/4 while the horizontal chroma phase offset should be q_c=0. As a consequence, for complementary upsampling by a factor of r, the vertical chroma phase offset should be p_c=−q_c/r=(1−r)/(4r) while the horizontal chroma phase offset should be p_c=0.
(37) Although the present invention has been described above with particularity, this was merely to teach one of ordinary skill in the art how to make and use the invention. Many additional modifications will fall within the scope of the invention as that scope is defined by the following claims.