Adaptive chroma downsampling and color space conversion technology

Through adaptive chroma downsampling technology, downsampling filter selection and distortion estimation are optimized, which solves the problem of quality degradation during color format conversion in video encoding, improves the decoding quality of video content, and is suitable for processing high-quality content.

CN112929670BActive Publication Date: 2024-09-10APPLE INC
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202110189897.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2015-03-10
Filing Date
2016-03-10
Publication Date
2024-09-10
Estimated Expiration
2036-03-10

AI Technical Summary

Technical Problem

Existing video encoding technology easily introduces banding effects and other artifacts during the color format conversion process, resulting in a decrease in video content quality, especially when processing higher quality HDR and WCG content with traditional downsampling and upsampling filter selections. Not flexible enough to handle more complex content effectively.

Method used

Adaptive chroma downsampling technology is used to improve decoder output in the video processing chain by evaluating and selecting multiple candidate downsampling filters, combined with upsampling filters, estimating and optimizing distortion to generate output image content quality.

Benefits of technology

The encoding and decoding process has been improved to reduce visual distortion, improve the decoding quality of video content, be suitable for higher quality HDR and WCG content, and enhance the match to the target device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112929670B_ABST
    Figure CN112929670B_ABST
Patent Text Reader

Abstract

The present application relates to adaptive chroma downsampling and color space conversion techniques. The present invention presents a method for adaptive chroma downsampling. The method includes converting a source image to a converted image in an output color format, applying multiple downsampling filters to the converted image, and estimating the distortion of each filter to select the filter that produces the minimum distortion. The distortion estimation includes applying an upsampling filter, and outputting pixels based on the selected filter. The present invention also presents a method for closed-loop conversion.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application with application number 201680006462.1, filed on March 10, 2016, and invention name “Adaptive Chroma Downsampling and Color Space Conversion Technology”. Technical Field

[0002] This patent application relates to digital image processing technology. Background Art

[0003] The present invention relates to video encoding technology. A video distribution system includes a video source and at least one receiving device. Video content can be distributed through a network or through fixed media. In order to reduce complexity and cost, video content is usually limited to a dynamic range, such as 8-10 bit signal representation and 4:2:0 color format. However, recent advances in display technology have provided opportunities for the use of more complex content (also referred to as higher quality content), including content characterized by high dynamic range (HDR) and / or wide color gamut (WCG) and content with increased spatial resolution and / or temporal resolution. A transfer function (TF) is usually used, followed by quantization to a specific fixed bit depth accuracy (e.g., 8 or 10 bits) to convert the higher quality content to a lower range. The conversion may also include a color space conversion process in a space that is easier to encode, and a color format conversion, such as converting data from 4:4:4 or 4:2:2 to a representation with fewer chroma samples (e.g., 4:2:2 and 4:2:0) before encoding using a video compression system for distribution. These steps may introduce banding and other artifacts that may affect and significantly degrade the quality of the video content when it is decoded and displayed. BRIEF DESCRIPTION OF THE DRAWINGS

[0004] Embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings, in which:

[0005] Figure 1 is a block diagram of an example of a video communication system.

[0006] Figure 2 is a block diagram of an exemplary video encoding engine.

[0007] Figure 3 is a block diagram of an exemplary color format conversion for encoding.

[0008] Figure 4 is a flow chart of an exemplary process for selecting a downsampling filter.

[0009] Figure 5 is a flow chart of an exemplary process for pixel-by-pixel selection of a downsampling filter.

[0010] Figure 6is a flow chart of an exemplary process for selecting a downsampling filter.

[0011] Figure 7 is an exemplary data flow diagram for converting R'G'B' to Y'CrCb.

[0012] Figure 8 is an exemplary data flow diagram for converting R'G'B' to YCrCb. DETAILED DESCRIPTION

[0013] Methods, systems, and computer-readable media for converting digital images using adaptive chroma downsampling are described. The method includes: converting image content from a source color format to a second color format; for a plurality of candidate downsampling filters, filtering the converted image content according to a corresponding downsampling filter, filtering the downsampled filtered content according to an upsampling filter, and estimating distortion corresponding to the corresponding filter from the upsampled filtered content; and generating output image content using a downsampled filter selected according to the estimated distortion.

[0014] Additional method systems and computer-readable media for converting from a source color format to a second color format are described, including: converting image content from R, G, and B signals in an RGB format to a luminance signal; quantizing the luminance signal; reconstructing the luminance signal by inverse quantizing the quantized luminance signal; converting the reconstructed luminance signal and the R signal to a Cr signal; and converting the reconstructed luminance signal and the B signal to a Cb signal.

[0015] Video and image compression systems typically operate in a color space / representation that is different from the capture color space / representation and / or display color space / representation. For example, a video may be captured in an RGB color space, but will be converted to a YCbCr color space. This is done to maximize the compression properties of the video signal by essentially exploiting redundancy and moving to a color space with better compression, homogeneity, and error masking properties.

[0016] Typically, decoders and receivers traditionally have a limited or known number of filters, including those implemented to upsample decoded data to fit a particular display. However, transmitters, which may include color format converters, preprocessors, and encoders, traditionally optimize filter selection, including downsampling filters, without regard to one or more target devices. Therefore, this article provides improved techniques for transmitter and receiver filter selection and color space conversion to perform in an image / video processing chain.

[0017] Therefore, the inventors perceive a need in the art for improved encoding processes, and in some cases, improved decoding processes to match them. These improved processes may be able to handle higher quality content and take into account the captured content and the expected decoding operations, which improves the experience at the output of the decoder (such as less visual distortion) compared to using a traditional encoder.

[0018] Figure 1 1 is a block diagram of an example of a video communication system. A source video 102 is transmitted by a receiver 120 to a receiver 122 via a communication channel 110 for output as a recovered video 118. The transmitter 120 may include a preprocessor 104 that outputs preprocessed video data to an encoding engine 108. A controller 106 may manage preprocessing operations and encoding operations where applicable. After transmission via the communication channel 110, the receiver 122 may recover and decode the received encoded video at a decoder 112. Post-processing may be applied to the decoded video at a post-processor 116. The controller 114 may manage decoding operations and post-processing operations where applicable. In an embodiment where the post-processing is not fixed, the pre-processing parameters selected by the pre-processor 104 may be included as side information in the encoded bit stream transmitted via the channel 110. Subsequently, at the receiver, the side information may be extracted from the encoded bit stream and used to control the post-processor 116.

[0019] Coding Basics

[0020] In a video encoding system, a conventional encoder may encode a source video sequence into an encoded representation having a bit rate less than the source video, thereby achieving data compression. A conventional decoder may then reverse the encoding process performed by the encoder to retrieve the source video. The encoding engine 108 may be a conventional encoder, and the decoder 112 may be a conventional decoder.

[0021] The video system may include a terminal for network communication. Each terminal in the terminal may receive source video data locally and encode the video data for transmission to another terminal as a coded video via a channel in the network. In a duplex (bidirectional) communication system, the terminal at each end will encode the video source at this end. Each terminal may subsequently receive the coded video data of another terminal from the network, decode the coded data and display or store the recovered video data. The video terminal may include a personal computer (both desktop and laptop computers), a tablet computer, a handheld computing device, a computer server, a television device, a media player and / or a dedicated video conferencing device.

[0022] The encoder system may output the encoded video data to a channel, which may be a storage device such as an optical, magnetic or electrical storage device, or a communication channel formed, for example, by a computer network or a communication network such as a wired network or a wireless network.

[0023] The decoder system may retrieve encoded video data from the channel, reverse the encoding operations performed by the encoder system, and output the decoded video data to an associated display device.

[0024] Figure 1 is a block diagram of an example of a video communication system. Figure 1 , the simplex (one-way) terminal may be a transmitter 120. The transmitter 120 may receive image data from a video source 102, which provides the video data as a sequence of video images. The video source may be a camera, which may include an image sensor for capturing optical images. The pre-processor 104 functions applied to the source video may include conversion format conversion and image quality enhancement. For example, the captured image data may be captured in the RGB color domain. The captured image data may also be in a linear domain or in a sensor / camera-specific transfer function that may have to be converted to another domain (e.g., back to the linear domain). Given the characteristics of the image sensor, the captured data may also require the application of a demosaicing algorithm in order to convert it to a full-resolution color image. The video may also be processed by other steps after the capture process, and may include an automatic or manual (guided) color grading process, as well as other steps such as cropping, resizing, and converted frame rates and bit depths. The video source may alternatively be a storage device that stores video data compiled from other sources (e.g., computer graphics, etc.). Although other color spaces may be used by the encoding engine 108, video data is conventionally converted to Y'CbCr prior to compression operations using a video codec.

[0025] The preprocessor 104 receives a sequence of source video data and performs preprocessing operations to make the source video suitable for subsequent encoding. Video preprocessing may be performed on the source video data by performing video processing operations such as spatial denoising filtering or temporal denoising filtering, bilateral filtering, resizing, or other types of processing operations on video pictures that may improve the efficiency of the encoding operations performed by the encoder to more efficiently render the video encoding.

[0026] The encoding engine 108 performs an encoding operation on the converted input signal. The encoder can utilize temporal redundancy and spatial redundancy in the video data. The encoder can perform motion compensated predictive coding. The encoding engine can operate according to a predetermined protocol such as H.263, H.264 / AVC, H.265 / HEVC, VP8, VP9, ​​or MPEG-2, etc. The encoded video data output from the encoding engine can therefore conform to the syntax specified by the protocol used. Figure 22 is a block diagram of an exemplary video compression system and is an example of an encoding engine 108. The encoding engine 108 may include an encoding pipeline, which also includes a transform 206 unit, a quantizer 208 unit, an entropy encoder 210, a motion prediction 214 unit that may include inter-frame prediction and motion compensated prediction, and a subtractor 204. The transform 206 unit may transform the processed data into an array of transform coefficients, such as by a discrete cosine transform (DCT) process or a wavelet process. The transform coefficients may then be sent to the quantizer 208 unit, where the transform coefficients are divided by a quantization parameter. The information from the motion prediction 214 unit and the quantized data may then be sent to the entropy encoder 210, where the information and data polarity may be encoded by run value, run length, or other entropy encoding for compression.

[0027] The decoding unit 220 decodes the encoded video data from the encoder by performing an inversion operation as performed at the encoding engine. It may also include a post-loop processing 216 unit, which may include processes that attempt to compensate for artifacts that may have been introduced by the prediction process, the transform coding process, and the quantization process. The post-loop processing may include techniques such as loop deblocking, sample adaptive offset (SAO) processing, adaptive loop filtering (ALF) processes, or other techniques such as de-banding, sharpening, dithering, and de-ringing, etc. After the post-loop processing, the picture is typically sent to a reference picture cache 216 and / or a display. The reference picture cache 216 stores previously decoded pictures and other pictures that can be used by the motion prediction unit 216 as reference pictures for future encoding operations.

[0028] A channel encoder (not shown) may format the encoded video data for transmission in a channel and may add error detection or error correction to identify or compensate for errors induced during transmission through the channel. The channel itself may operate according to a predetermined communication protocol. The transmitter may format the encoded video data according to a protocol applicable to the channel and may output the encoded video data to the channel.

[0029] Color space conversion optimization

[0030] Traditionally, video captured in RGB space would be converted to Y'CbCr space, or sometimes referred to as YCbCr, YUV, or Y'UV, via a transfer function. This can typically be accomplished using a 3x3 matrix represented as M[x,y]. The M[x,y] matrix relates to the primary colors and color capacity that a particular R, G, and B color space is expected to contain. Alternatively, only a 1x3 matrix corresponding to one row in M[x,y], such as the first row, can convert the first component (usually Y), followed by subsequent steps for generating all other components given the previous conversion. For example, in a non-constant brightness representation of Y'CbCr as specified in standard specifications such as ITU-R BT.709 and ITU-R BT.2020, Y' may be calculated as M[l,l]*R'+M[l,2]*G'+M[l,3]*B', where R', G', and B' are non-constant brightness transforms of the captured RGB image data, and M[l,l], M[l,2], M[l,3] are appropriate transform coefficients that relate the transformation of the R, G, and B data to the luminance (Y) signal in the XYZ color space (also known as the International Commission on Illumination or CIE 1976 color space). It should be noted that the R, G, and B data in the non-constant brightness method may have been converted to non-linear data prior to the conversion using an appropriate transfer function method such as power law gamma, ST.2084 / PQ, or some other transfer function.

[0031] Subsequently, the Cb and Cr components of the image data can be calculated using the Y' signal and some other transformed components, typically B' for Cb and R' for Cr, or using only R', G' and B' values ​​and appropriately defined matrix M coefficient values. In the constant brightness domain, Y' is calculated as Y'=(M[l,l]*R+M[l,2]*G+M[l,3]*B)'. The single quotes here are operators indicating the application of a transfer function. In this scenario, the transfer function is only applied at the end of the transformation process from R, G and B to Y, where these color components are now in the linear domain. In some embodiments, Y' in the non-constant brightness case can be referred to as Yncl', and Y' in constant brightness can be referred to as Y_cl' to distinguish between the two. In other cases, both can still use Y' and distinguish them when needed. Typically, for constant brightness conversion, only a 1x3 matrix is ​​used to create the Y' component. After applying the same transfer function to Cb and Cr, the Cb and Cr components are then calculated based on this value and the B and R quantities, resulting in B' and R' values.

[0032] According to an embodiment, in a non-constant brightness domain, Cb may be calculated as Cb=(B'-Y')*Sb, and Cr is calculated as Cr=(R'-Y')*Sr. Sb and Sr relate to the primary colors that a particular R, G, and B color space is expected to contain. In a constant brightness domain, typically if B'-Y' is less than or equal to zero, Cb is calculated as Cb=(B'-Y')*Nb, otherwise Cb is calculated as Cb=(B'-Y')*Sb. Similarly, if R'-Y' is less than or equal to zero, Cr is calculated as Cr=(R'-Y')*Nr, otherwise Cr is calculated as Cr=(R'-Y')*Sr. In these formulas, Nb=Sb and Nr=Sr may be set, but these values ​​are typically selected in consideration of the characteristics of the color space and the transfer functions involved in the conversion. Specifically, in both cases, constant brightness and non-constant brightness, it is intended that the Cb and Cr values ​​are always within [-0.5, 0.5]. Considering that case, the minimum and maximum values ​​that can be respectively for Cb and Cr can be easily calculated and those quantities can be determined. For example, for the non-constant brightness case, one would have the following calculation for Cb:

[0033] B'-Y'=-M[l,l]*R'-M[l,2]*G'+(1-M[1,3])*B'

[0034] The maximum value of this derivation is (1-M[1,3]), and the minimum value is -(M[l,l]+M[l,2]). Therefore, the range before normalization is [-(1-M[1,3]):(1-M[1,3])]. Taking this into account, Sb=l / (lM[l,3]) / 2 can be calculated. Similar derivation can be applied for the Cr component and Sr.

[0035] Similarly, for constant brightness we would have:

[0036] B'-Y'=B'-(M[l,l]*R+M[l,2]*G+M[l,3]*B)'

[0037] In this case, the maximum value will be 1-(M[1,3])' and the minimum value will be -(1-M[1,3])'. The range is asymmetric and depends on the transfer function. Taking these values ​​into account, the Nb and Sb quantities can be derived, and similarly the Nr and Sr quantities for Cr can also be calculated.

[0038] In an embodiment and for a constant brightness case, the Cb / Cr components may alternatively be calculated according to:

[0039] Cb_temp=(BY)*Sb

[0040] Cr_temp=(RY)*Sr

[0041] Here Y is in linear space and corresponds to the actual brightness information of the signal. Considering the subsequent quantization process, Sb and Sr are quantities that try to retain as much color information as possible. Then:

[0042] Cb=sign(Cb_temp)*TFcb(abs(Cb_temp))

[0043] Cr=sign(Cr_temp)*TFcr(abs(Cr_temp))

[0044] Where TFcb / ITFcb and TFcr / ITFcr correspond to a specific transfer function and its inverse applied to each color component. Note that this transfer function need not be the same as the transfer function used to generate the Y' component. The TF may be adjusted more subjectively for color information, or the same TF applied on Y may be applied.

[0045] Similar considerations as previously applied for the derivation of Sb and Sr need to be applied, i.e. one needs to ensure that the Cb and Cr quantities remain within the range [-0.5, 0.5] after the conversion.

[0046] In an embodiment and for non-constant brightness cases, the Cb / Cr components may be calculated as follows:

[0047] First, the Y component is calculated as Y'=M[l,l]*R'+M[l,2]*G'+M[l,3]*B'. Y' is then converted to the inverse transformed form Y_ncl, Y_ncl=ITF(Y'). It should be noted that, in general, that is, unless the TF is a linear TF, Y_ncl!=Y. Then:

[0048] Cb_temp=(B-ITF(Y'))*Sb

[0049] Cr_temp=(R-ITF(Y'))*Sr

[0050] And as above,

[0051] Cb=sign(Cb_temp)*TFcb(abs(Cb_temp))

[0052] Cr=sign(Cr_temp)*TFcr(abs(Cr_temp))

[0053] where TFcb and TFcr are appropriate transfer functions.

[0054] Similar considerations as previously used to derive Sb and Sr need to apply, i.e., the Cb and Cr amounts need to be kept in the range [-0.5, 0.5].

[0055] According to an embodiment, Sb and Sr may be calculated as:

[0056] and

[0057] Figure 3 is a block diagram of an exemplary color format conversion for encoding. Once the color space conversion is completed, quantization operations and upsampling operations are typically performed on the image data in the Y'CbCr color space before delivering the image data to the encoder or pre-processing system. Figure 3 , color space conversion may be performed in converter 302 as described above, and then performed by quantizer 204 and downsampler 306. According to an embodiment, the quantized value of Y'(Yq) may be calculated as Qy(Y'), where Qy represents a quantization function. If a downsampling process is used, such as from 4:4:4 to 4:2:2 or 4:2:0, or from 4:2:2 to 4:2:0, the downsampled versions of Cb and Cr need to be generated using a specific downsampling process. The process may be represented as Down(QCb(Cb)) and Down(QCb(Cb)), respectively, where Down() is a downsampling function. These steps are usually reversed before display or some other processing that may be desired. After these processes are completed, and if these data are subsequently passed to an encoder, the encoding process is performed directly on such data. For example, the output of downsampler 306 may be input to preprocessor 104 or directly to encoding engine 108, where, for example, prediction, DCT or waveform transformation, quantization and other encoding processes may be performed.

[0058] Similar functions may be performed in reverse as part of the decoding operation to generate reconstructed Br', Rr', and Gr'. For example, Yr' may be calculated as IQY(YqN), where IQ() is the inverse quantization function. IqN is actually Iq+N, where N is the noise added during the encoding or transmission of the data (e.g., quantization noise). Cbr and Crr may be calculated as IQCb(UP(CbqN)) and IQCr(UP(CrqN)), respectively, where UP() is the upsampling function, and CbqN and CrqN are the reconstructed chrominance data, where similarly some coding noise is also introduced due to the encoding process.

[0059] Then, for the conventional method, Br' can be calculated as Cbr / Sb+Yr', and Rr' can be calculated as Crr / Sr+Yr'. Then, solving the above formula to calculate Y' for the value of G', Gr' can be calculated as (Yr'-M[l,l]*Rr'-M[l,3]*Br') / M[l,2].

[0060] In the above method, the conversion and decoding operations presented are reversed at the decoder. For example, in the constant brightness case, the inversion process for generating the B, R and G components is now performed as follows:

[0061] Cbr_temp=sign(Cbr)*ITFcb(abs(Cbr))

[0062] Crr_temp=sign(Crr)*ITFcr(abs(Crr))

[0063] Br=Cbr_temp / Sb+Y

[0064] Rr=Crr_temp / Sr+Y

[0065] Gr=(Yr-M[l,l]*Rr-M[l,3]*Br) / M[l,2]

[0066] Similarly, for the non-constant brightness method:

[0067] Cbr_temp=sign(Cbr)*ITFcb(abs(Cbr))

[0068] Crr_temp=sign(Crr)*ITFcr(abs(Crr))

[0069] Br=Cbr_temp / Sb+ITF(Y')

[0070] Rr=Crr_temp / Sr+ITF(Y')

[0071] Gr=(Yr-M[l,l]*Rr-M[l,3]*Br) / M[l,2]

[0072] Similar considerations as previously used to derive Sb and Sr need to apply, i.e. one needs to ensure that the Cb and Cr amounts remain within the range [-0.5, 0.5].

[0073] Adaptive Chroma Downsampling

[0074] As described above, an important step for preparing content for compression is to convert the original video data, which may be in a 4:4:4 or 4:2:2 arrangement, to a reduced chroma resolution space using a chroma downsampling method. Such a step can improve compression, taking into account the characteristics of the chroma signal, while also reducing complexity because fewer samples need to be processed during encoding. An adaptive chroma downsampling method is described, such as from 4:4:4 to 4:2:2 or 4:2:0, which involves consideration of N possible downsampling filters and adaptively selecting the "best" filter for each sample position, resulting in improved performance.

[0075] The 4:2:2 format is a luma-chroma format in which the chroma channels are downsampled in one dimension, containing a single luma value for each pixel, but each of the two chroma channels contains only one value for every other pixel along one dimension of the image. This results in each of the two chroma channels in the 4:2:2 format containing only one value for every two luma samples along one (usually horizontal) dimension of the image. The 4:2:0 format is a luma-chroma format in which the chroma channels are downsampled in two dimensions, containing only one value for every two luma samples along the two dimensions of the image. This results in each chroma channel in the 4:2:2 format containing one-fourth as many values ​​as the luma channel. The 4:4:4 format is not downsampled and includes three color component values ​​for each pixel.

[0076] Figure 3 is a block diagram of an exemplary color format conversion for encoding. Figure 3 The color format converter can be combined as Figure 1 108 and can output data in a format suitable for encoding engine 108. In this example, source video 102 is converted in color space, for example, from RGB to any of the 4:4:4 luma-chroma formats described herein. Downsampling filter selector 204 selects a chroma downsampling filter from a set of downsampling filter options, as described below in conjunction with Figure 4 The selected down-sampling filter 305 is used to generate the pre-processed data 202 from the selected down-sampling filter 305 .

[0077] Figure 4 is a flow chart of an exemplary process for selecting a downsampling filter. According to an embodiment, the filter to be used for each sample position is determined based on examining the performance of each filter (e.g., before display, sent down through an interface system, etc.), taking into account known upsampling filters that may be used after decoding. Each filter is evaluated, and the filter that produces the least distortion compared to the original signal, such as the sum of squared error terms (SSE), the sum of absolute differences (SAD), the structural similarity index metric (SSIM), or some other measure of objective distortion, may be selected as the best filter. Figure 4As shown, one of the two chroma channels of the image is input at 402. A controller 410 selects one of the N possible downsampling filters to be applied to the input chroma channel at 404. The result of the filtering at 404 is then immediately upsampled using a known or assumed upsampling filter at 406, and the upsampled result is compared with the original input chroma channel at 408 to produce a distortion estimate at 408. The distortion estimate is sent to the controller of the selected filter. This process is repeated for each downsampling filter in the N possible downsampling filters to identify the minimum distortion. The filter corresponding to the minimum distortion is then output as filter selection 412.

[0078] According to an embodiment, the encoder can target multiple different downlink systems such as different displays. These displays can have different filters. The known filters from these displays can be considered and evaluated again to select the downsampler that produces the best average performance across all available upsamplers. Various known display upsamplers can be considered with the same weight, or can be weighted based on the prevalence and importance of each expected upsampler.

[0079] The best filter can be selected for the frame / picture. Available filters can be evaluated through the entire picture, and the best filter is selected as the filter that produces the best performance on the entire picture. In addition, units smaller than the picture can be considered. Specifically, the picture can be divided into fragments, such as one or more lines / one or more rows or columns, blocks or windows, etc. For each of these fragments, all possible down-sampled versions can be generated, up-sampled using available up-samplers and filters for each fragment can be selected independently. The final down-sampled image will be a combination of all the various optimized regions. In a specific embodiment, overlapping regions can be considered for optimization. For overlapping regions, the weighted average of samples can be used for final reconstruction. Weighting can be based on the distance from the boundary of each region or based on some other criteria that can include analysis of the image and the characteristics of the filter. For example, if the sample corresponds to an edge and a sharper filter is selected in one region, while more edge samples are also located in that region, that filter can be given a higher weight than the filter with fewer edge samples in another region. If the sample is considered to correspond to a texture or a flat region, similar considerations can be applied.

[0080] Figure 5 is a flow chart of an exemplary process for pixel-by-pixel selection of a downsampling filter. According to an embodiment, the optimization may be performed for each individual sample. This may provide better performance than a fixed region based approach. Figure 5 As shown:

[0081] a) For a specific region, such as the entire or partial image line, a default downsampling filter is selected. At step 510, the default filter is applied to all samples to generate an initial filtered region R f .

[0082] b) For each sample in the region, consider all alternative downsampling filters.

[0083] i) For the example in step 520, for the current position, the position sample is filtered given all alternative downsampling filters (eg, N filters), thereby generating N possible alternative values.

[0084] ii) Then, given the known upsampling filter to be considered, the image R f All positions in the sample that are affected by these upsamplers (which basically depends on the number of taps of the upsampling filter) are downsampled and upsampled as well as this particular sample position. The same operation is performed for all alternatives, while considering the region R f All other samples of the same filter value.

[0085] iii) At step 530, the distortion of the affected area is calculated for each applied filter, and the minimum distortion is found. The version with the minimum distortion is declared as the current best filter for that sample. In step 540, the image R is f The samples in are updated.

[0086] iv) In step 550, the position is incremented and the filtering operation is repeated until the end of the region has been reached.

[0087] v) If the end of the region has been reached, the entire process for the sample may be terminated (based on distortion threshold or number of iterations) or repeated to further optimize the filter selection. Given knowledge of various aspects of the image, this will provide refinement of the selected downsampler.

[0088] According to the embodiment, not only a single initial filtered area but also a given different filter can be considered. Subsequently, for each area in these alternatively selected areas, it can be decided to perform the above-mentioned optimization in the case of only a subset of a given filter. The area with some overlapping identical areas or different partitions can be regarded as an alternative area for the process. After completing the process for all these alternatively selected alternatives, the results can be merged together subsequently. This can be by merging the results of each co-station sample from the alternatively selected (or intermediate) optimization area in various ways. In one embodiment, the intermediate results can be averaged together. In an alternative embodiment, these alternatively selected alternatives are now regarded as alternative filter candidates, which can be considered for subsequent optimization steps. In this case, the above process is repeated using these alternatively selected alternatives in the decision-making process. In this scenario, a new area partition can be considered, which can be the same as one or more partitions in the initial partition used or completely different from the initial partition considered. In essence, this is now a hierarchical optimization process, which can provide a certain form of parallelization, but complexity will eventually decrease when the number of filters in each alternatively selected subset area that needs to be considered now is reduced.

[0089] According to an embodiment, decision making for filters is increased by signal pre-analysis such as edge and texture / difference detection. Specifically, the edge or texture of the image can be analyzed first, and each sample can be classified accordingly. Each sample classified as an edge or near an edge can only consider certain filters for downsampling, while flat areas or texture areas can consider other filters. The brightness or color characteristics of the sample or pixel can also be considered. Subsequently, given the pattern of the sample, the above optimization step will only consider the appropriate filter.

[0090] Other color components and their characteristics compared to the current component sample may also be considered. If a particular filter is selected for the Cb component, for example, that filter may become the best filter for the Cr component filter decision as well. Filters that perform poorly for samples of one component may be ignored when evaluating samples of other components at the same location. In addition, if the characteristics of different color component samples (e.g., edge or texture classification) match, it is likely that the same filter will be used for both components. This can greatly reduce complexity and speed up the downsampling process.

[0091] The above process can be performed directly on transfer function domain data (power law gamma or gamma using perceptual quantizer-based gamma, such as ST.2084 / PQ), or directly on linear data.

[0092] The process may involve 4:4:4 to 4:2:2 downsampling, 4:2:2 to 4:2:0 or 4:4:4 to 4:2:0. For the latter case, adaptive downsampling may be performed first in one direction, e.g. horizontally, followed by adaptive downsampling in another direction, e.g. vertically. It is also possible that the process may involve 2D downsampling directly, and the conversion may be performed in a single step for both dimensions.

[0093] Filter Optimization

[0094] The encoder may know the filter and transfer function that will be used to upsample the reconstructed image data. Subsequently, using a known upsampling filter, a downsampling filter may be designed to optimize the distortion induced by upsampling. As previously mentioned, in an embodiment, the encoder may target different displays that may have multiple filters, for example, with multiple different delivery systems. Known filters for these displays may be considered and evaluated to select a downsampler that produces the best average performance among all available upsamplers. Various known display upsamplers may be considered with the same weight, or may be weighted based on the prevalence and importance of each expected upsampler.

[0095] Class optimization may be achieved by selecting the best filter based on the Cb / Cr components of the original source data or some other color representation of the original source data (eg, R, G, and B representation or X, Y, Z representation). Figure 6 is a flow chart of an exemplary process for selecting a downsampling filter. Figure 6 In the example of , the original Cb / Cr can be compared to the reconstructed Cbr / Crr data to calculate the distortion added during processing by performing quantization and downsampling on the Cb / Cr components and then performing the inverse function 620 for reconstructing the Cbr / Crr components using each of the different available filters. The data can optionally be converted back to R, G and B or X, Y, Z, and the distortion can be calculated in those spaces instead. The filter that best minimizes the distortion can then be selected for the encoding process.

[0096] like Figure 6As shown, initially for a portion of the image data, the Cb and Cr components of the portion may be encoded using one of the available upsampling filters (block 610). Subsequently, the reconstructed Crr and Cbr components of the portion are created using the corresponding downsampling filters (block 620). Subsequently, the distortion introduced during the encoding and reconstruction process may be calculated by comparing the original Cr / Cb components with the reconstructed Crr / Cbr components (block 630). Once all available filters have been considered, the filter that produces the least distortion is selected (block 640). The distortion metric used in the encoding decision process may be, for example, the mean or sum of absolute differences (MAD or SAD), the sum of absolute transformed differences (SATD), the mean square error / error or the sum of squared error terms (MSE or SSE), the peak signal-to-noise ratio (PSNR), the structural similarity index (SSIM), or other suitable operations.

[0097] Filter optimization can also occur in succession in different domains. For example, after calculating Cbr and Crr, data in RGB and XYZ color spaces can be calculated based on one of the original YCbCr and the reconstructed YrCbrCrr. Subsequently, filters that minimize distortion XYZ and XYZr can be calculated. The method requires that a preliminary decision be made for a color component, such as Cr, first, and that decision be used to try to optimize another color component, i.e., Cb. After the optimization of this color component is completed, Cr can be returned to and further refined given the initial joint decision for Cb. This process can be iterated multiple times. Iterations can be repeated until no further changes in performance are observed or until after N steps that can be determined by the user or application. The application can, for example, adaptively determine the number of steps involving downsampling / upsampling processes based on, for example, an overall complexity budget. The Y component will also need to be considered in the process, and as described in other chapters of this patent application, the characteristics and quantization of the Y component can also be considered. The distortion in this extended color space can be based on MAD, SAD, SATD, SSE or PSNR again. The distortion can be calculated in linear space or using a suitably defined transfer function. The distortion from each color component in this extended space can be combined using an average or weighted average based on the importance of each color component to generate a single distortion measure. The weighting can also include content characteristics such as local or global brightness, whether the sample corresponds to or is close to an edge, texture or flat area, etc.

[0098] The filter may be selected based on a comparison between the original and reconstructed sequences, scenes, images, slices, blocks, pixels, or other portions of the image data.

[0099] Similarly, using known filters, the color transformation matrix (M) can be optimized in a similar manner as described above to minimize distortion.

[0100] With known upsampling and downsampling filters and when using a fixed bit depth for quantization, the quantization parameters used in the quantization transform Q() can be optimized in a similar manner as described to minimize distortion. Such optimization can also take into account quantization boundaries and quantization dead zones.

[0101] Information about the selected optimization can be sent from the encoder to the receiver or decoder as part of the coding hint data transmitted with the encoded data. The coding hint can be transmitted as side information and included in a bitstream such as H.264 as a supplemental enhancement information (SEI) message. The SEI message may include a post-filtering hint SEI message or a chroma resampling filter hint SEI message. Such coding hint data may include information about the transform matrix for color transformation, parameters for quantization transformation, and filters for the optimization process, etc. More complex processes may also include aspects of actual video encoding and decoding, that is, using codecs such as H.264 or H.265 through the initial encoding channel. Such information can be fed back to the filter optimization stage to further refine the downsampling process. For example, if it is known that the encoding will be performed at a specific bit rate and the chroma accuracy below a certain level will be lost due to quantization, this can be taken into account during the filtering process to reduce complexity or improve quality. The noise characteristics of the signal and the denoising effects of the filter and / or encoding process can also be considered during the optimization and filtering process.

[0102] It should be noted that all the above operations can be applied not only to non-constant luminance Y'CbCr data but also to constant luminance Y'CbCr data, or other color spaces such as Y'u'v' (CIE1976), Y'u"v", IPT color space or other color spaces suitable for video coding.

[0103] Chroma Resampling

[0104] Conventional chrominance conversion techniques use non-linear transfer functions (transfer functions or transfer domains). This is done in order to perform an initial basic compression of the signal to a fixed bit depth using some subjectively defined process (the transfer function). However, given the non-linearity of the transfer function, operations performed on color components in the transfer domain can result in precision loss and errors. These can be remedied by performing operations in the linear domain. This process can also be followed by an additional color format conversion step, which is intended to decorrelate the color signals and generally separate the intensity / brightness information from the colors.

[0105] Figure 7is an exemplary data flow diagram for converting R'G'B' to Y'CrCb. To perform such operations, Y' in the non-constant brightness case may be calculated at block 702 as described above, i.e., Y'=(M[l,l]*R'+M[l,2]*G'+M[l,3]*B'). Subsequently, the Y_ncl, B, R, and G components (in the linear domain) may be calculated in blocks 704a-704d using an inverse transfer function denoted as ITF(). For example, Y_ncl may optionally be calculated as Y_ncl=ITF(Y'), and the other components may be calculated as Y_ncl=ITF(Y'), R=ITF(R'), and G=ITF(G'). Subsequently, a downsampled version of each component may be calculated at blocks 706a-706d by applying a downsampled filter Down() to the linear component. Subsequently, a nonlinear version of each downsampled component may be calculated at blocks 707a-707d using a transfer function TF(). Using the downsampled non-linear versions of the color components (B', R', and G'), the Y, Cb, and Cr components in the transfer domain may be calculated (as above) at blocks 710, 712, and 714, respectively. Alternatively, the Cb and Cr components (as above) may be generated using downsampled Y_ncl data instead of downsampled G' data. It should be noted that that derivation will not be the same as using downsampled G' data, since the downsampled Y_ncl is derived directly from Y', which involves the nonlinearity of the transfer function. In this scenario, an appropriate decoder that also takes into account the downsampled Y_ncl is necessary in the process of deriving the final signal.

[0106] According to an embodiment, calculation of the G component may be unnecessary.The Y' value initially calculated from the R', G', and B' components at the Y conversion block may be output as the Y' component.

[0107] Depending on the embodiment, the Y' component may not be available after stage 704b. For example, Y2' may not be generated directly from the downsampled RGB values. Cr and Cb may then be generated from R2, B2, and G2.

[0108] In an embodiment, it may be determined that it is best to use a linear method for generating a downsampled version of one component and a nonlinear method for another component. It may also be selected, for example, that a nonlinear method will be used for both, or a combination of the two may be considered. The decision may be made adaptively or based on some predefined conditions. For example, this may be determined by evaluating the distortion compared to the original Cb and Cr components (not downsampled) introduced in each scene as in the adaptive filtering process in two cases. Considering the appropriate distortion measurement as described above, an alternative color space (e.g., RGB or XYZ) may also be considered for the evaluation. All possible combinations or subsets of combinations may be considered, such as a combination of nonlinear downsampled Cb and linear downsampled Cr and / or vice versa, both linear, both nonlinear, etc. The decision process may be used for the entire image, an area of ​​the image, or even a single sample. Additional combinations may be generated from each conversion process in the conversion process by averaging the samples together. The averaging may be a simple average or a weighted average based on the characteristics of the signal or based on distortion performance.

[0109] The process of downsampling in the linear domain or adaptive techniques can be implemented in both the constant brightness domain and the non-constant brightness domain, and can also be applied to alternative color spaces, such as Y'u'v', Y'u"v", IPT or other color spaces, taking into account the characteristics of each specific conversion. In those cases, for example, a conversion to an intermediate color space other than RGB may be required. Specifically, a conversion to XYZ or other color space may first be required, such as LMS for the IPT case, for example. Downsampling is performed in those spaces to generate downsampled versions, and appropriate downsampled signals corresponding to the color components are derived from these images.

[0110] Closed loop conversion

[0111] Traditionally, each color component of the image data is quantized and converted independently of each other. For example, in a constant brightness domain or a non-constant brightness domain, the Y', Cb, and Cr components can be calculated, and then each component will be quantized by applying a quantization function Q(). However, once the Yq component is calculated, that value can be used to generate the Cb / Cr components. The same considerations can be made for other color spaces, where there may be dependencies between color components.

[0112] Figure 8is an exemplary data flow diagram for converting R'G'B' to YCbCr. In this example, in the non-constant brightness domain, when an RGB input is received, Y' may be calculated at box 802 (in the transfer domain) as above (Y'=M[l,l]*R'+M[l,2]*G'+M[l,3]*B'). Subsequently, a quantized value of Y' may be calculated at 804, and by using the quantized value, Yr' may be reconstructed by inverse quantization at box 806. Subsequently, by using the reconstructed value of Yr', Cb' and Cr' may be calculated as described above ((Cb'=(Β'-Yr')*Sb at box 810 and Cr'=(R'-Yr')*Sr at box 808). The quantized values ​​of Cr and Cb may then be calculated using the quantization function at boxes 812 and 814, respectively. A downsampling process, such as when converting data to 4:2:2 or 4:2:0 (not in Figure 8 ), and the distortion introduced by this process can also be considered in this step, as described in the previous section.

[0113] Similarly, in the constant brightness domain, Y in the linear domain is first calculated as Y=M[l,l]*R+M[l,2]*G+M[l,3]*B, and then Y' in the transfer domain is calculated as Y'=TF(Y). Subsequently, the quantized values ​​of Y', Cr', and Cb' can be calculated as described above for the non-constant brightness case.

[0114] A decoder or receiver can reverse these processes if necessary to generate the recovered color components.

[0115] like Figure 8 As shown, the Y component may additionally be encoded and decoded at block 820 to account for the loss of the Cb / Cr components due to lossy compressors such as Figure 1 The compression loss caused by the encoding engine 108.

[0116] According to an embodiment, any errors introduced in a previously quantized and processed color component may be fed into a subsequently quantized and processed color component. By changing the order of component calculations to calculate different components first, then using that information to calculate other components: 1) quantization error, 2) compression error, and / or 3) chroma upsampling error for any one component may be considered during the creation of the remaining components.

[0117] For example, Cb may be calculated as Sb*M[l,l]*R-Sb*M[l,2]*G+(Sb-Sb*M[l,3])*B. Subsequently, Y is calculated as Y=B-Cb / Sb, and Cr is calculated as Cr=(Sr-Sr*M[l,l])*R-Sr*M[l,2]*G-Sr*M[l,3]*B. Similarly, Cr may be calculated first, followed by Y and then Cb, or Cr may be calculated second, followed by Cb, then Y, etc.

[0118] The above steps can be applied to other color spaces rather than just Y'CbCr data. Other spaces may include, for example, Y'u'v', Y'u'v' and IPT color spaces, etc. Intermediate conversions to other color spaces, such as XYZ or LMS, may be required for this conversion. These steps can be combined using all other methods described in all other sections of this disclosure.

[0119] General

[0120] Each of the above processes can be applied to alternative color spaces, including YUV, Y'u'v', XYZ, Y'dzdx, Y'u"v", IPT, LAB, etc.

[0121] According to an embodiment, the encoder may transmit information with the encoded video data in a logical channel for out-of-band (side information) data established by the management protocol. Such information may include filter selection, quantization parameters and other hint information. As an example, used by the H.264 protocol, the encoder 200 may transmit cumulative statistics in a supplemental enhancement information (SEI) channel specified by H.264. In such embodiments, the process introduces information into a logical channel corresponding to the SEI channel. When the present invention is to be used with a protocol that does not specify such an out-of-band channel, an independent logical channel for noise parameters may be established in the output channel.

[0122] Although the above description includes multiple exemplary embodiments, it should be understood that the words that have been used are words of description and illustration rather than words of limitation. As currently stated and modified, changes may be made within the scope of the appended claims without departing from the scope and spirit of the present disclosure in its various aspects. Although the present disclosure has been described in conjunction with specific means, materials, and embodiments, the present disclosure is not intended to be limited to the disclosed details; on the contrary, the present disclosure extends to all functionally equivalent structures, methods, and uses such as within the scope of the appended claims. For example, embodiments of the present invention may provide a coding scheme, a non-transitory computer-readable medium storing program instructions, a video encoder, and the like, which program instructions, when executed by a processing device, cause the device to perform one or more of the methods described herein.

[0123] As used herein, the term "computer-readable medium" may include a single medium or multiple media such as a centralized database or a distributed database, and / or associated caches and servers storing one or more instruction sets. The term should also include any medium capable of storing, encoding, or carrying an instruction set that is executed by a processor and causes a computer system to perform any one or more of the embodiments disclosed herein.

[0124] The computer-readable medium may include one or more non-transient computer-readable media and / or include one or more transient computer-readable media. In a specific non-limiting exemplary embodiment, the computer-readable medium may include a solid-state memory, such as a memory card or another program package that accommodates one or more non-volatile read-only memories. In addition, the computer-readable medium may be a random access memory or other volatile rewritable memory. In addition, the computer-readable medium may include a magneto-optical medium or an optical medium, such as a disk or tape or another storage device for capturing a carrier signal such as a signal transmitted by a transmission medium. Therefore, the present disclosure is deemed to include any computer-readable medium or other equivalents and subsequent media, in which data or instructions may be stored.

[0125] This specification describes components and functions that can be implemented in specific embodiments, which can operate according to one or more specific standards and protocols. However, the present disclosure is not limited to such standards and protocols. Such standards can be replaced periodically by faster or more efficient equivalents with substantially the same functions. Therefore, replacement standards and protocols with the same or similar functions are considered to be their equivalents.

[0126] The description of the embodiments described herein is intended to provide a general understanding of various embodiments. The description is not intended to be used as a complete description of all elements and features of the devices and systems using the structures and methods described herein. In reviewing the present disclosure, many other embodiments may be apparent to those skilled in the art. Other embodiments may be used and derived from the present disclosure, so that structural and logical substitutions and changes may be made without departing from the scope of the present disclosure. In addition, the description is merely representative and may not be drawn to scale. Certain parts within the description may be exaggerated, while other parts may be minimized. Therefore, the present disclosure and the accompanying drawings will be regarded as illustrative rather than restrictive.

[0127] For example, the operation of the disclosed embodiments has been described in the context of servers and terminals that implement coding optimization in video coding applications. These systems may be embodied in electronic devices or integrated circuits, such as application specific integrated circuits, field programmable gate arrays, and / or digital signal processors. Alternatively, they may be embodied in computer programs executed on personal computers, notebook computers, tablet computers, smart phones, or computer servers. Such computer programs are typically stored in physical storage media such as electronic, magnetic, and / or optically based storage devices, where they can be read to a processor and executed under operating system control. And, of course, these components can be provided as a hybrid system that distributes functionality on dedicated hardware components and programmed general-purpose processors as needed.

[0128] In addition, in the above description, various features may be combined or described together for the purpose of simplifying the present disclosure. The present disclosure is not to be interpreted as reflecting the intention that all such features are required to provide an operable embodiment and that the claimed embodiments require more features than those expressly recited in each claim. On the contrary, as reflected in the following claims, the subject matter may involve less than all the features of any of the disclosed embodiments. Therefore, the following claims are incorporated into the specification, with each claim itself defining independently claimed subject matter.

[0129] Likewise, in the case of certain claims describing methods, the order in which the specific methods are described in the claims does not require that the order is essential for an operable claim. Rather, specific method elements or steps may be performed in a different order without departing from the scope and spirit of the invention.

[0130] CROSS-REFERENCE TO RELATED APPLICATIONS

[0131] This patent application claims the benefit under 35 U.S.C. §119(e) of U.S. Provisional Patent Application No. 62 / 131,052, filed on March 10, 2015, the contents of which are incorporated herein by reference in their entirety.

Claims

1. A video processor, comprising: a decoder for receiving a compressed video sequence transmitted via a communication channel and decoding an image from the compressed video sequence, wherein the compressed video sequence includes side information related to filter selection; and A format converter for converting a decoded image, the format converter comprising a color format converter and a plurality of upsampling filters, and wherein the side information is used at least in part to determine which upsampling filters of the plurality of upsampling filters are used to upsample chroma channels of the decoded image.

2. The video processor of claim 1, wherein the color format converter converts a luma-chroma color format into an RGB color format.

3. A video processor according to claim 1, wherein the side information includes selected optimized information about which of a plurality of possible upsampling filters is optimal due to lowest distortion for a downsampling filter selected from a plurality of downsampling filters and used to encode the image in the compressed video sequence. 4 . The video processor of claim 1 , wherein the side information is encoded in the compressed video sequence in a Supplemental Enhancement Information (SEI) message. The video processor of claim 4 , wherein the SEI message is a post-filtering hint SEI message. The video processor of claim 4 , wherein the SEI message is a Chroma Resampling Filter Hint SEI message.

7. The video processor of claim 1, wherein the side information comprises a color transformation matrix used in the color format converter.

8. The video processor of claim 1, wherein the side information comprises information about filters used in a downsampling filter optimization process at an encoder for a compressed video sequence.

9. A method for processing compressed video, comprising: decoding an image from a compressed video sequence, including extracting side information specifying filter selection associated with the image from the compressed video sequence; Converting the format of the image includes converting the color format of the image and upsampling the chrominance channel of the image, wherein the side information is used to determine which of a plurality of upsampling filters are used in the upsampling.

10. The method of claim 9, wherein converting the color format converts a luminance-chrominance color format into an RGB color format.

11. The method of claim 9, wherein the side information comprises selected optimized information regarding which of a plurality of possible upsampling filters is optimal due to lowest distortion for a downsampling filter selected from a plurality of downsampling filters and used to encode the image in the compressed video sequence.

12. The method of claim 9, wherein the side information is encoded in the compressed video sequence in a Supplemental Enhancement Information (SEI) message. The method of claim 12 , wherein the SEI message is a post-filtering hint SEI message. The method of claim 12 , wherein the SEI message is a Chroma Resampling Filtering Hint SEI message.

15. The method of claim 9, wherein the side information comprises a color transformation matrix used in converting the color format.

16. The method of claim 9, wherein the side information comprises information about filters used in a downsampling filter optimization process at an encoder for the compressed video sequence.

17. A non-transitory computer readable medium comprising instructions which, when executed on a computer, cause the computer to: decoding an image from a compressed video sequence, including extracting side information specifying filter selection associated with the image from the compressed video sequence; The format of the image is converted, wherein the conversion includes converting a color format of the image and upsampling a chroma channel of the image, wherein the side information is used to determine which of a plurality of upsampling filters are used in the upsampling.

18. The non-transitory computer readable medium of claim 17, wherein the color format converter converts a luma-chroma color format into an RGB color format.

19. The non-transitory computer readable medium of claim 17, wherein the side information comprises a color transformation matrix used in a color format converter.

20. The non-transitory computer-readable medium of claim 17, wherein the side information comprises information about filters used in a downsampling filter optimization process at an encoder for the compressed video sequence.

Citation Information

Patent Citations

  • Method and apparatus for adaptive loop filtering

    CN102804776A

  • Guided image up-sampling in video coding

    CN102957912A

  • Adaptive chromaticity downsampling and color space conversion technology

    CN107211128B

  • Moving image decoding device and moving image decoding method

    US20080170615A1

  • Band separation filtering / inverse filtering for frame packing / unpacking higher-resolution chroma sampling formats

    US20140112394A1