Methods for improving cost-effective video / image compression
The use of indexed color history and sub-stream multiplexing techniques in video encoding and decoding optimizes chroma subsampling formats, addressing inefficiencies and reducing system costs while maintaining image quality.
Patent Information
- Application Number
- DE102016006614
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2015-12-30
- Filing Date
- 2016-01-08
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2036-01-08
AI Technical Summary
Existing video compression technologies face inefficiencies in encoding and decoding processes, particularly with chroma subsampling formats like 4:4:4, 4:2:2, and 4:2:0, leading to increased system costs and potential artifacts during conversion.
The implementation of a video encoder and decoder using indexed color history (ICH) and sub-stream multiplexing techniques, along with adaptive filtering and quantization, to optimize encoding and decoding processes for chroma subsampling formats, reducing system costs and improving throughput.
This approach enhances coding efficiency, reduces artifacts, and lowers system costs by optimizing encoding and decoding processes for chroma subsampling formats, allowing for visually lossless image quality at lower bit rates.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[0001] This disclosure relates to systems and methods for video compression.
[0002] Driven by immense customer demand, rapid progress in the field of electronics and Communication technologies have led to a worldwide use of devices that support a wide variety of display video content. Examples of such devices include smartphones, flat-screen televisions and Tablet computers. Improvements in video processing techniques will expand the application possibilities of these Devices are still being developed further.
[0003] US 2010 / 0 103 180 A1 describes an image processing device with a scaling unit, a Coefficient texture processing unit and a pixel data converter. A first array is sent to the scaling unit where the first array contains multiple pixel data arranged in a matrix pattern. The scaling unit copies the pixel data contained in the first array a specified number of times in the horizontal direction of the first array to configure a second array.
[0004] US 2014 / 0 092 998 A1 describes a method which converts video images of a chroma sampling format with higher Resolution such as YUV 4:4:4 for the purpose of video encoding into video images of a chroma sampling format with lower Resolution like YUV 4:2:0.
[0005] Video Electronics Standard Association: VESA Display Stream Compression (DSC) Standard, Version 1.1, August 2014 describes the VESA standard for compressing a display stream.
[0006] Wu, Yongjun et al.: Tunneling high-resolution color content through 4:2:0 HEVC and AVC video coding systems, 2013 Data Compression Conference, 20-22 March 2013 describes a method for transmitting high-resolution Color video content through a video coding system designed for chroma-sampled (4:2:0) operation.
[0007] In accordance with the present invention, a video encoder having the features of claim 1 provided.
[0008] Advantageous further developments arise from the dependent subclaims.
[0009] Conveniently, the at least one chroma component comprises the first set of luma samples associated chroma blue components.
[0010] Conveniently, the first and second sets of luma samples are taken from a first line of the image in the format 4:2:0, with the circuitry configured for the following: Forming a first component within a second group of the 4:4:4 container with a third set of luma values of alternating positions from a second line of the image in the format 4:2:0; Forming a second component within the second group of the 4:4:4 container with a fourth set of luma values from the second row of the image in the format 4:2:0, where the fourth set of luma Samples relative to the third set of luma samples in the first component has opposite, alternating positions; and Forming at least one chroma component within the second group, wherein the at least one chroma component within the second group a second set of chroma samples from the image in the has a 4:2:0 format.
[0011] Advantageously, the at least one chroma component within the second group comprises the Chroma red components associated with the first and third sets of luma samples.
[0012] Conveniently, the first group comprises three components, and the second group comprises three components.
[0013] Advantageously, six pixels from the first line and six pixels from the second line of the first and the assigned to the second group.
[0014] Conveniently, on the basis of a straight luma sample from an immediately preceding line, an odd luma sample from the immediately preceding line and a chroma sample from the second previous row ICH entries (Indexed Color History) are formed.
[0015] Conveniently, the at least one chroma component comprises the first set of luma samples associated chroma blue components.
[0016] Conveniently, the first and second sets of luma samples are taken from a first line of the image with chroma subsampling, wherein the circuitry is configured for the following: Forming a first component within a second group of the container without subsampling with a third set of luma samples from alternating positions from a second line of the image with Chroma subsampling; Forming a second component within the second group of the container without subsampling with a fourth set of luma samples from the second row of the chroma subsampled image, where the fourth Set of luma values relative to the third set of luma samples in the first component has opposite, alternating positions; and Forming at least one chroma component within the second group, wherein the at least one chroma Component within the second group a second set of chroma values from the image with chroma- has subsampling.
[0017] Advantageously, the at least one chroma component within the second group comprises the Chroma red components associated with the first and third sets of luma samples.
[0018] Conveniently, the first group comprises three components, and the second group comprises three components.
[0019] Advantageously, six pixels from the first line and six pixels from the second line of the first and the assigned to the second group.
[0020] Advantageously, the at least one chroma component comprises a first and a second chroma Component, wherein the first chroma component is formed from chroma red samples and the second chroma Component is formed from chroma blue samples.
[0021] Conveniently, the first group comprises four components.
[0022] Conveniently, six pixels are assigned to the first group.
[0023] Conveniently, on the basis of a straight luma scan from an immediately previous line, an odd luma sample from the immediately previous line and a chroma Sampling from the second previous row ICH entries (Indexed Color History) are formed.
[0024] Conveniently, the 4:4:4 container comprises a second group comprising a first component with a third set of luma samples from alternating positions, a second component with a fourth set of luma Samples in opposite directions relative to the third set of luma samples in the first component, alternating positions and at least one chroma component with a second set of chroma samples, the corresponding to the first and third sets of luma samples, wherein the circuit arrangement is for the following is configured: Extracting the third set of luma samples from the first component of the second group; Extracting the fourth set of luma samples from the second component of the second group; Extracting the second set of chroma samples from the at least one chroma component of the second group; and Generate the 4:2:0 video containing the third set of luma elements located at alternating positions. samples, the fourth set of itself in relation to the first set of luma samples luma samples located in opposite, alternating positions and the second set of Chroma sampling.
[0025] Conveniently, the first group comprises three components, and the second group comprises three components wherein the circuit arrangement is configured to associate the first and second groups of six pixels on a first line of the 4:2:0 image and six pixels on a second line of the 4:2:0 image. Description of the drawings Figure 1 is a block diagram illustrating a coding system. Figure 2 is a block diagram illustrating a decoding system. Figure 3 is a block diagram of a video encoder. Figure 4 is a block diagram of a video decoder. Figure 5 is a diagram illustrating the formatting of video data as container pixels. Figure 6 is a diagram illustrating the formatting of video data as a container. Figure 7 is another diagram illustrating the formatting of video data as container pixels. Figure 8 is another diagram illustrating the formatting of video data as a container. Fig. 9 is a scheme showing an implementation of ICH storage (Indexed Color History, indexed Color history) is illustrated. Fig. 10 is a scheme showing an implementation of alternating sampling grouping illustrated. Fig. 11 is a scheme showing another implementation of alternating sampling grouping illustrated. DETAILED DESCRIPTION
[0026] A method for image compression is disclosed. In one embodiment of the method, a Differential Pulse Code Modulation (DPCM) is used to encode the pixels of an image. DPCM can generate a predictor One of the predictors described is MAP (Median Adaptive Predictor, adaptive median predictor), which may also be referred to as an LS predictor. In another embodiment, a Quantization parameters (QP) based on a buffer level model and image activity measurement The fill level of a buffer model can be divided into a variety of threshold ranges.
[0027] Furthermore, a method is disclosed, wherein embodiments reduce the QP with relatively uniform content Some content may have 'lively' areas next to or near very smooth areas. The QP can be quickly adjusted downwards by a large amount, for example within a group if it is detected that the content has low activity, and for each threshold range a reduced value can be A method is disclosed whereby an implicit control of the quantization (QP) and / or Prediction is maintained and combined with an explicit control of quantization and / or prediction. For example, in some implementations, the explicit part of a QP control may use 1 bit for each pixel block, where a value of 0 corresponds to a scenario where an implicit QP is used, and a value of 1 to a scenario in which the QP is decreased and / or increased from the implicit value by a predetermined amount.
[0028] Furthermore, a method for determining which pixels are relevant in terms of perception is An encoder may select a lower QP value for pixels that have been determined to be significant. In some implementations, an encoder can use an indication in a compressed bitstream to indicate that part of the image content is relatively flat, and he can adjust the speed control parameters accordingly adjust.
[0029] Furthermore, the use of an indexed color cache mode for encoding pixels is disclosed. The use of an indexed color cache can be specified using an escape code.
[0030] Furthermore, the use of adaptive filtering of the pixels used for prediction is disclosed.
[0031] Furthermore, a method for block-wise prediction in video coding is disclosed.
[0032] Furthermore, a method for parallel entropy decoding of a bit stream is disclosed, in which a plurality of Parts of the bitstream are processed by multiplexing and demultiplexing.
[0033] Still further, a coding algorithm with a method of speed control is disclosed, which ensures that a number of bits used to encode a slice is divided into a budget-limited number of Bits fits.
[0034] Furthermore, the use of a hybrid transformation mode is disclosed.
[0035] The described compression scheme uses DPCM and applies an adaptive median predictor (MAP) to at least a subset of the samples in an image to improve compression efficiency. This disclosure describes techniques for further improving coding efficiency, reducing artifacts and / or to reduce system costs. These techniques can be applied to the encoder, the decoder, or both.
[0036] An exemplary device which can improve the coding is shown in Fig. 1 in connection with a Encoder 100. In the example shown in Fig. 1, the encoder 100 comprises a transceiver 102 and a Transceiver 102 has associated system logic 103. The system logic 103 can be implemented in hardware, software, or both. In one implementation, the system logic 103 comprises one or more processors 104, a memory 106 and a user interface 108.
[0037] The transceiver 102 may be a wireless transceiver, and the transmitted and Received signals can be assigned to any element from a diverse array of formats, protocols, modulations, frequency channels, bit rates and coding. Consequently, the transceiver 102 can support the standards 802.11a / b / g / n / ac, the 60 GHz WiGig / 802.11 TGad specification, Bluetooth, GSM (Global System for Mobile Communications), Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Code Division Multiple Access (CDMA) or other wireless access techniques or protocols. The transceiver 102 can send and receive data according to the encoded using the techniques described below.
[0038] The processor 104 executes the system instructions 110. The system instructions 110 may include an operating system, Application programs, firmware for devices, video and audio encoders, video and audio decoders and more Instructions. The system instructions 110 contain coding instructions 112. The Coding instructions 112 may be implemented in hardware, software, or both, using any of the processing methods that use an indexed color cache described below, such as the ones below described coding processing.
[0039] The memory 106 also stores the data to be encoded (for example, images or a region of an image and the associated pixel data) 116 and operating parameters 114 for the coding instructions 112. It is understood However, the operating parameters 114 may be stored in a different physical memory than the Pixel data. Examples of operating parameters 114 include parameters that specify which content (for example, pixels) is Using the indexed color cache to select an encoding mode with indexed color cache processed an encoding mode with indexed color cache, index values, or any other options described below Parameter.
[0040] The system logic 103 of the encoder 100 can read the operating parameters 114, perform the coding and Using index values to specify pixel values in a compressed bitstream.
[0041] Another exemplary apparatus that performs processing using an indexed color cache can make is shown in Fig. 2 in connection with the decoder 200, which performs the Deco dation. In the example shown in Fig. 2, the decoder 200 has a transceiver 202 and the Transceiver 202 associated system logic 203. The system logic 203 can be implemented in hardware, software or both. In one implementation, the system logic 203 comprises one or more processors 204, a memory 206 and a user interface 208. The transceiver 202 may include any of the Features in common with the transceiver 102 described above.
[0042] The processor 204 executes the system instructions 210. The system instructions 210 may include an operating system, Application programs, firmware for devices, video and audio encoders, video and audio decoders and more Instructions. The system instructions 210 include decoding instructions 212. The Decoding instructions 212 may be implemented in hardware, software, or both, using any of the processing methods that use an indexed color cache described below, such as any of the described decoding processing.
[0043] The memory 206 stores the data to be decoded (for example, a compressed bit stream which it receives from an encoder and which can be decoded into pixel data) 216 and operating parameters 214 for the Decoding instructions 212. However, it is understood that the operating parameters 214 may be in a different physical memory than the pixel data. Examples of operating parameters 214 include parameters that specify which content (for example, pixels) to use the indexed color cache to select a Encoding mode with indexed color cache is to be processed, an encoding mode with indexed color cache, Index values or any other parameters described below.
[0044] Some source images (for example, pictures and / or video) are available with chroma subsampling, for Example with chroma subsampling 4:2:2 or 4:2:0. 4:2:0 may be a format for YCbCr images. in which the chrominance components are subsampled horizontally and vertically by a factor of two 4:2:2 may be a format for YCbCr images, in which the Chrominance components were subsampled horizontally by a factor of 2. In some images, no chroma subsampling is performed, for example in the formats 4:4:4 or 4:4:4:4. In the formats 4:4:4 and 4:4:4:4 can be formats for RGB, RGBA, YCbCr or YCbCrA video, where the chrominance components were not subsampled.
[0045] For some display connections, it is important that the images are displayed with chroma subsampling without conversion to the 4:4:4 format. This enables visually lossless image quality at lower bit rates, than is possible with the 4:4:4 format. Furthermore, conversions between the 4:4:4 and 4:2:2 or 4:2:0 formats are possible. are generally lossy and should be avoided to avoid conversion artifacts. Therefore, a optimized 4:2:0 mode makes encoders and decoders work with about twice the throughput of 4:4:4 mode which reduces system costs for connections where a large grid size requires support of 4:2:0 requires, but no support for 4:4:4. An optimized 4:2:2 mode can make encoders and decoders work with to run at about twice the throughput of 4:4:4 mode, which reduces system costs for connections where a large grid size requires support for 4:2:2, but not support for 4:4:4.
[0046] Referring now to Fig. 3, a block diagram of an encoder 300 is provided. The encoder 300 receives an image input 310. If the image input is in RGB format, the image can be Color conversion unit 312 converts the image from RGB to YCoCgR. The image is converted by the color conversion unit 312 into buffer 314. The converted image can then be provided to flatness determination unit 318. The flatness determination unit 318 can provide the speed control unit 320 with a quantization adjustment. The speed control unit 320 can be used for prediction, Quantization and reconstruction unit 316 provide a bit transmission rate. The unit for the Speed control 320 can receive from the prediction, quantization and reconstruction unit 316 a number of received as feedback bits. The prediction, quantization and reconstruction unit 316 can Receive image data directly from buffer 314. Furthermore, ICH unit 322 can receive image data from buffer 314. Reconstructible pixel values 326 can be provided to the line buffer 324 and used internally in the prediction, quantization and reconstruction unit 316 as feedback. The line buffer 324 can receive the reconstructed Pixel values 326 for later use by the prediction, quantization and reconstruction unit 316 and can also be stored using the ICH unit 322. The prediction, quantization and reconstruction unit 316 can provide the entropy coding unit 328 with image data The entropy coding unit 328 may also provide a flatness indication 330 from the Flatness determination unit 318 and ICH parameters from ICH unit 322 and store the image data on the Based on these parameters, the entropy coding unit 328 provides the coded data of the substream Multiplex unit 332. The output of the substream multiplex unit 332 is stored in the speed buffer 334 from where it is later provided to a bitstream output unit 336.
[0047] Referring now to Figure 4, a block diagram of a decoder 400 is provided. The decoder may receive a bitstream input 410. The bitstream input 410 may be stored in a speed buffer 412 A substream demultiplexing unit 414 may receive the bitstream input from the rate buffer 412. The partial stream demultiplexing unit 414 can demultiplex the bit stream of the entropy decoding unit 416. The entropy decoding unit 416 can provide the speed control unit 418 The speed control unit 418 may provide a quantization parameter which is provided to the prediction, inverse quantization and reconstruction unit 420. The Prediction, inverse quantization and reconstruction unit 420 can extract the decoded image data from the entropy decoding unit 416. In addition, the entropy decoding unit 416 of the ICH unit 424 can receive an ICH Mode control signal 422. The ICH unit 424 can provide the prediction, inverse quantization and Reconstruction unit 420 provides ICH parameters. The prediction, inverse quantization and Reconstruction unit 420 can provide feedback parameters to ICH unit 424. The prediction, Inverse quantization and reconstruction unit 420 may also be used in conjunction with a line buffer 426 for Storing and retrieving reconstructed pixels from one or more previously decoded lines. The prediction , Inverse quantization and reconstruction unit 420 may provide image data to a color conversion unit 428. The color conversion unit 428 may provide the converted image data to the image output unit 430. Optimized modes for 4:2:2 and 4:2:0
[0048] The format 4:2:2 can be interpreted to mean any chroma format and any filtering / subsampling, resulting in a 50% reduction in chroma samples compared to a 4:4:4 The format 4:2:0 can be interpreted to mean any chroma format and any Filtering / subsampling, resulting in a 75% reduction in chroma samples compared to a 4:4: 4 representation.
[0049] In some previous disclosures, the native version of 4:2:2 video is discussed. For example, a 4:2:2 mode. The improvements described here consist of how ICH (Indexed Color History) Color History) and SSM (Sub Stream Multiplexing) is handled in the 4:2:2 mode, and it A 4:2:0 mode is also described.
[0050] If the source image is in 4:2:2 or 4:2:0 format, it may be advantageous to convert the video natively in this format. In the 4:2:2 mode, four units of 3 samples could be used for a group of 6 pixels encoded; two of the units may contain luma data, and two of the units may contain chroma data. Other numbers of samples per unit are also possible, such as 2 or 4, and the samples can come from the same horizontal pixel row or from one or more adjacent horizontal rows.
[0051] In the 4:2:0 mode, a group of 12 pixels could be encoded with 4 luma units and 2 chroma units. Alternatively, in the 4:2:0 mode, a group of 6 pixels could be encoded with 2 luma units and 1 chroma unit. In some implementations, alternating lines can be encoded in the format 4:2:2 and 4:0:0, where appropriate adjustments to the bit allocation in the speed control must be made to provide additional Budget for lines with chroma samples. Again, different numbers of samples per unit possible, and the samples can come from one or more adjacent horizontal pixel rows.
[0052] In the 4:2:2 and 4:2:0 modes, special attention can be paid to the type of coding of ICH pixels Several methods are possible for 4:2:0. For example, a subset of the luma samples could be Chroma samples are aligned to form sets of 3 components, and the ICH indices could thus as if these sets were pixels. The remaining unassigned luma Scans could be applied to several different The remaining unassigned luma samples could be coded based on their proximity to existing luma sample values in the ICH ICH indices are assigned. The remaining, unassigned Luma samples can be assigned indices based on a subset of available luma sample values (for example Example: a subset of the ICH and / or the selected ICH entries is assigned to the sets of 3 components). An ICH update algorithm can calculate the MRU based on an ICH index consisting only of luma values update or not update. The remaining unassigned luma samples could also be Using a prediction that involves interpolating the luma samples of the set of 3 components could include.
[0053] In the 4:2:2 and 4:2:0 modes, different groupings for substream multiplexing A 4:2:2 grouping could include two substream processors, one for Luma and one for Chroma. For a 4:2:2 grouping, four substream processors might be advantageous to provide additional throughput especially if the prediction is designed so that all of the luma samples are included in a single clock cycle can be processed.
[0054] A 4:2:2 and / or 4:2:0 mode can be used for luma in conjunction with a transformation mode or a Hybrid mode can be used (for example, using the methods disclosed above) to encode and to improve throughput. For example, a 2x2 transform can be applied to the luma samples, and the luma coefficients can be grouped into units corresponding to different frequencies. The size of the transformation can be larger, or it can be non-square, such as 4x2, and it can be It can be a DCT, a DST, a wavelet, a subband decomposition or another type of transformation.
[0055] In some implementations, the optimized 4:2:2 mode can display groups of 6 pixels instead of groups of 3 pixels. Each group can consist of two luma units, one Cb unit, and one Cr unit. The 2nd luma- Unit can be predicted from the first luma unit, and the size prediction for the 2nd luma Unit can be derived from the prediction errors for the first luma unit. Two SSPs can be used and the SSPs can be updated twice per group. In ICH mode, six ICH indices can be used, one for each pixel. The odd ICH indices can only have luma information for the result and may not be used to update ICH status. Speed control may be similar to 4:4:4 mode, except that the group size is 6 pixels.
[0056] Now, with reference to Fig. 5, an example of the mapping of native data to container pixels The container pixels can be a single set of connected sample values that are encoded as if they were taken from an image in the container format. Container can be a virtual image without chroma subsampling (for example 4:4:4 or 4:4:4:4) that created by repacking samples from an image with chroma subsampling (for example, 4:2:0 or 4:2:2) In this particular example, a native 4:2:2 mode is mapped to a 4:4:4:4 container. A possible spatial representation of the screen pixels is provided at 500. The pixel 520 contains a luma value Y0 and two Chroma values Cb0 and Cr0. Pixel 522 contains only one luma value Y1. Pixel 524 contains one luma value Y2. and two chroma values Cb1 and Cr1. Pixel 526 contains a luma value Y3, and pixel value 528 contains a Luma value Y4 and two chroma values Cb2 and Cr2. The Pixel 530 only contains one luma value Y5. This 4:2:2 Representation can be assigned to a group of a 4:4:4:4 container. The component pixel 540 contains Y0 from Pixel 520, Y1 from Pixel 522, Cb0 from Pixel 520 and Cr0 from Pixel 520. In this way, the luma samples and The chroma samples of the first two pixels together form the component pixel 540. Next, The component pixel 542 is formed from the samples of the second two pixels. The component pixel 542 includes Y2 from pixel 524, Y3 from pixel 526, Cb1 from pixel 524, Cr1 from pixel 524. The component pixel 544 contains the Samples of the last two pixels, Y4 from pixel 528, Y5 from pixel 530, Cb2 from pixel 528 and Cr2 from pixel 528.
[0057] Now, with reference to Fig. 6, an example of the assignment of native data to a container In this particular example, a native 4:2:2 mode is mapped to a 4:4:4:4 container. possible spatial representation of the screen pixels is provided at 600. The pixel 620 contains a luma value Y0 and two chroma values Cb0 and Cr0. Pixel 622 contains only one luma value Y1. Pixel 624 contains one Luma value Y2 and two chroma values Cb1 and Cr1. Pixel 626 contains a luma value Y3, and pixel value 628 contains a luma value Y4 and two chroma Cb2 and Cr2 values. The Pixel 630 contains only one luma value Y5. In an alternative representation, the Cb and Cr samples represent positions halfway between two adjacent luma samples. The 4:2: 2 representation can be assigned to a group 610 of a 4:4:4:4 container. The unit 640 contains Y0 of pixels 620, Y2 from pixel 624 and Y4 from pixel 628. In this way, the luma values of three even pixels together are the Unit 640 is formed. A unit can be a construct with entropy coding with a set of quantized prediction errors for a specific component. Unit 640 can calculate every second pixel or formed from pixels alternating according to position, which can be achieved by using straight or odd samples. Next, the chroma blue samples of three pixels are together form the unit 642. The unit 642 includes Cb0 from pixel 620, Cb1 from pixel 624 and Cb2 from pixel 628. Unit 644 contains the chroma red samples from three pixels, Cr0 from pixel 620, Cr1 from pixel 624 and Cr2 from pixel 628. Unit 646 contains the luma samples from the remaining pixels. Thus, the Unit 646 Y1 from pixel 622, Y3 from pixel 626 and Y5 from pixel 630. The unit 646 can be made up of based on the position of in With respect to the unit 640 alternating, opposite pixels can be formed, which can be achieved by using odd pixels can be achieved when the unit uses 640 even pixels.
[0058] One way to implement the 4:2:0 mode could be to use subsets of luma samples as separate ´´components´´ of a virtual 4:4:4 container. For a container component, it can be one of the three or four virtual components that would be encoded in a container. If a codec is in When running in 4:4:4 mode, there are typically three components, one luma component and two chroma components. In the 4:2:0 mode, the three components could be luma samples at even positions, luma Samples at odd positions and chroma samples. In this example, the virtual 4:4:4 Container takes up half the width of the 4:2:0 image. Another example of 4:2:0 mode could be the three Components for luma sampling of even lines, for luma sampling of odd lines and for chroma samples. In this example, the virtual 4:4:4 container is half the height of the 4:2:0 image. Chroma sampling types can alternate all pixels horizontally or vertically. In another example, all Chroma samples of a certain type are grouped in the left half of the virtual 4:4:4 container, and the Samples of the other type can be grouped in the right half. Alternatively, all chroma samples of a certain type are grouped in the upper half of the virtual 4:4:4 container, and the samples of the other types can be grouped in the lower half.
[0059] The sample prediction in the 4:2:0 mode for chroma can include samples of the same chroma type or opposite chroma type or a function of the opposite chroma type. Luma prediction may be forced to use luma samples that are considered the same component in the virtual 4:4:4 container packed, or it may not be forced to do so. If MMAP or another vertical prediction is used the luma samples used from the previous row may be forced to correspond to the same component in the to belong to a virtual 4:4:4 container, or they may not be forced to do so. If quantization with adaptive blending, the filter taps may be forced to use only luma samples, that are assigned to the same component type in the virtual 4:4:4 container, or they cannot be forced to Blockwise prediction may or may not be used, and it may be applied to any or all of the Component types in the 4:4:4 container, or it can be applied without considering the 4:4:4 container be applied.
[0060] In some implementations, the 4:2:0 mode works by packing the samples in such a way that that they look like a 4:4:4 half-width image. The even luma samples can be considered as a component treated, the odd luma samples are treated as the 2nd component, and the chroma Samples (Cb in even lines, Cr in odd lines) are treated as the 3rd component. The prediction and The size prediction can treat the even and odd luma samples as independent components. The ICH can function in a similar way to the 4:4:4 mode, with the exception of a slight modification, to allow pixel-by-pixel addressing of ICH entries from the row above. The speed control can work in the same way as in the 4:4:4 mode, with the exception that a pixel time is converted into a pixel pair time (since two pixels could be coded using the 2 luma samples and the 1 chroma sample), and some Minor modifications could be made to the speed control taken to ensure that the 2nd luma line (which contains the first Cr samples) is not excessively is quantized.
[0061] Now referring to Fig. 7, a representation of pixels in the native 4:2:0 mode is shown, corresponding to a 4: 4:4 container. In this spatial representation 700, luma samples for each pixel position in row 0 and line 1. The chroma samples are taken from corresponding even pixel positions in line 0 and line 1. For example, pixel 720 and pixel 740 are located between row 0 and row 1. Chroma samples 752. Each odd pixel, for example pixel 722 from row 0 and pixel 742 from row 1, includes luma samples from each line, but no chroma samples. Accordingly, the six pixels from Each of line 0 and line 1 is assigned two container components 710 and 712. The container component 710 can the luma samples from row 1 and the chroma blue samples from rows 0 and 1. The container 712 can include the luma samples from row 1 and the chroma red samples from rows 0 and 1. Thus the container pixel 760 may contain the samples for the first two pixels from row 0, for example Y00 from pixel 720, Y01 from pixel 722 and Cb0 from 752. The container pixel 762 contains the samples of the second two pixels from Line 0, for example Y02 from pixel 724, Y03 from pixel 726 and Cb1 from 754. The container pixel 764 contains the Samples of the last two pixels, for example Y04 from pixel 728, Y05 from pixel 730 and Cb2 from 756.
[0062] The container pixel 770 of the container component 712 contains the samples of the first two pixels from line 1, for example Y10 from pixel 740, Y11 from pixel 742 and Cr0 from 752. The container pixel 772 contains the samples the second two pixels from row 1, for example Y12 from pixel 744, Y13 from pixel 746 and Cr1 from 754. The container Pixel 774 contains the samples associated with the last two pixels from row 1, for example Y14 from Pixel 748, Y15 from Pixel 750 and Cr2 from 756.
[0063] Now referring to Fig. 8, a representation of pixels in the native 4:2:0 mode is shown, corresponding to a 4: 4:4 container. In this spatial representation 800 luma samples are assigned for each pixel position in row 0 and line 1. The chroma samples are taken from corresponding even pixel positions in line 0 and line 1. For example, pixel 820 and pixel 840 are connected to the pixels located between row 0 and row 1. Chroma samples 852. Each odd pixel, for example pixel 822 from row 0 and pixel 842 from row 1, includes luma samples from each line, but no chroma samples. Accordingly, the six pixels from Each of row 0 and row 1 is assigned two groups 810 and 812. Group 810 can receive the luma samples from row 1 and the chroma blue samples from rows 0 and 1. Container 812 may contain the luma samples from Line 1 and the chroma red samples from lines 0 and 1. Thus, the unit 860 can even luma samples from row 0, for example Y0 from pixel 820, Y2 from pixel 824 and Y4 from pixel 828. The unit 860 can be formed from every other pixel or from pixels alternating in position, which could be achieved by using even or odd pixels. Unit 862 contains the odd Luma samples from row 0, for example Y1 from pixel 822, Y3 from pixel 826 and Y5 from pixel 830. Unit 862 can formed from the position of alternating, opposite pixels with respect to the unit 860, which can be achieved by using odd pixels when the unit 860 even pixels from row 0 used. Unit 864 contains the chroma blue samples associated with lines 0 and 1, for example Cb0 from 852, Cb1 from 854 and Cb2 from 856.
[0064] Unit 870 from group 812 contains the even luma samples from line 1, for example Y0 from pixel 840, Y2 from pixel 844 and Y4 from pixel 848. Unit 872 contains the three odd luma samples from line 1, for example Y1 from pixel 842, Y3 from pixel 846 and Y5 from pixel 850. Unit 874 contains the rows 0 and 1 associated chroma red samples, for example Cr0 from 852, Cr1 from 854 and Cr2 from 856.
[0065] Special attention may be given to ICH treatment in the 4:2:0 mode. In an example The ICH in the virtual 4:4:4 container does not have any special treatment. In another example, the ICH Indices from the row above contain virtual 4:4:4 pixels that are used in the even luma sampling component can have odd luma samples and in the odd luma sample component even luma samples. In another example, a bitstream code (with either fixed or variable Length) specify that components for even and odd luma samples are swapped. In an example, the chroma types in the ICH are ignored, and the chroma samples can be used for both types be used. Another example enforces the chroma types in ICH and chroma samples of the same type. In another example, the chroma types in ICH are referenced in independent memory units, and both types can be referenced depending on the chroma type.
[0066] In some implementations of the 4:2:2 mode, each chroma sample in the input image can be mapped to a luma sampling, and some luma samples have no corresponding chroma samples. Each entry However, in the ICH can still comprise three components, and the unused chroma components can be simply ignored. References to the chroma samples of a previous line can either return the compiled chroma samples, or, if these are not available, the chroma samples directly to the left of it.
[0067] In some implementations of the 4:2:0 mode, as illustrated in Fig. 9, each ICH entry can contain two adjacent luma samples and one chroma sample (Cb for even lines and Cr for odd lines). The chroma type (Cb or Cr) may not be recorded, so the chroma value can be used to fill either a Cb or Cr component, if used. When referring to previous lines, the chroma type can refer to the line before that, since it has the chroma type. Pairs of adjacent luma samples in the previous row can start at any pixel boundary and are not limited to even pairs.
[0068] With reference to Fig. 9, a scheme is now provided that illustrates the formation of ICH entries An exemplary ICH memory 910 includes multiple ICH entries. For example, ICH entry I1 at 912 include a luma sample of an even line 914 and a luma sample of an odd line 916. The Entry 11 can also contain a single chroma sample 918. This format can be duplicated for each entry To illustrate the formation of each entry, three lines are shown, the current line 922, the previous line 924 and the line before that 926. The ICH memory entry 125 can contain the luma samples Y-1 and Y0 from the previous row and the Cb0 chroma sample from the row before it. Similarly, the ICH memory entry 126 contains the luma sample Y0 and the luma sample Y1 from the previous row and the chroma Use sample Cb0 from the previous row. ICH entry 127 can use the luma sample Y1 and the luma Use sample Y2 from the previous line and the chroma sample Cb1 from the line before that. The remaining ICH entries can be composed in a similar way.
[0069] Special attention may be given to flatness detection in the 4:2:0 mode. In an example Chroma and luma can be spatially aligned, and no special treatment is required. Another example is that luma and chroma may not be aligned, and flatness detection may different positions in the original image. In any mode (4:2:0, 4:2:2 or 4:4:4), the Flatness detection assume a characteristic regarding the flatness of first groups of lines (very flat, a little flat, or something else) to improve the quality on the left side of slices when searching for the pixels of the next row is impractical or too costly to implement.
[0070] Special attention may be given to speed control in the 4:2:0 mode. For example, the chroma type may vary from line to line. In this case, it may be desirable to try to Quantization for chroma samples on the 2nd line of a slice, since they do not have vertical prediction under Using the same chroma type. In one example, the speed control of the second provide an additional allocation of bits (second_line_bpg_offset) to each line of a slice to ensure that samples are quantized less, whereby these are offset by another parameter (nsl_bpg_offset) on other lines of the slice. In another example, the speed control can Shift the velocity model at the beginning of the second line by a fixed amount. For example, the speed control can impose a maximum quantization level that is valid for the first group or Groups can be used on the second row of a slice. Center prediction
[0071] The MPP (Midpoint Prediction) considers the LSBs from samples in previous lines of the Slice to improve the quality when used. An improvement in center prediction can be consist of considering samples from the previous row when determining the LSBs to be used for the predictor In one example, the LSBs are taken from the samples In another example, the LSBs can be calculated from the samples of the previous line with the previously decoded samples of the current line (for example, under Using MAP) to generate the LSBs to be used for the MPP. Managing multiplex word sizes
[0072] In systems where partial stream multiplexing is used, it may be desirable to reduce costs to use the smallest possible multiplex word size. For other systems, minimizing the maximum size of the syntax elements represents a significant benefit in terms of costs. To reduce the multiplex word size several techniques can be used.
[0073] One technique may be to reduce the sampling depth in modes where the summed sampling depth has a significant visual impact. For example, when encoding with a high bit depth (like for example 16 bit / component), the color space conversion from RGB to YCoCg-R can be modified as follows: cscCo = R - B t = B + (cscco >> 1) cscCg = G - t Y = t + (cscCg >> 1) Co = ((cscCo+1) >> 1) + 32768 Cg = ((cscCg+1) >> 1) + 32768
[0074] And the inverse operation of YCoCg-R to RGB can be modified as follows: cscCo = (Co - 32768) << 1 cscCg = (Cg - 32768) << 1 t = Y - (cscCg >> 1) cscG = cscCg + t cscB = t - (cscCo >> 1) cscR = cscCo + cscB R = CLAMP(cscR, 0, maxVal); G = CLAMP(cscG, 0, maxVal); B = CLAMP(cscB, 0, maxVal);
[0075] The combination of these operations reduces the effective sampling depth for chroma from 17 bits to 16 bits, resulting in the syntax bits would be saved and the effects would generally be unnoticeable.
[0076] Another way to reduce the bit depth of the syntax may be to increase the size of the DSU-VLC prefix for certain cases. For example, the prefix size can be limited to 13 bits if the Quantization parameter QP is 0. A prefix with maximum size can then indicate that a midpoint prediction In another example, the DSU size prediction can be limited to a minimum size to ensure that the prefixes do not exceed a certain maximum size. In another example, Certain parts of the syntax (for example, the ICH mode) may be prohibited under certain conditions (for example, if the QP is 0). Adaptive filtering
[0077] Adaptive filtering of the input samples can help improve the appearance of some types of natural images. The disclosed adaptive filtering applies to samples used for prediction in both encoders and also be used in decoders; however, the present disclosure describes an adaptive filtering which is based on the original pixels before quantization is applied. The filtering can be linear or non-linear; vertical, horizontal and / or diagonal; and it can be FIR, IIR, or something else. The result of the filtering is a filtered Image f(x,y). In some cases, the filtering may include taps that reference reconstructed pixels.
[0078] In adaptive filtering, the filtered image is overlaid with the source image before compression. The adaptive filtered image can be used as input for the encoder, or it can simply be used for parts of the encoder (for example only as input to the prediction loop), with other parts of the encoder can use unfiltered source pixels.
[0079] Blending can be controlled by a number of different variables in the system. For example, the quantization parameters, buffer fill level, rc_model_fullness, local image activity, etc. can all be inputs in be a function that generates a blending parameter. Different blending methods can be used, such as For example, alpha blending or generalized blending can be used. For example, a possible Blending should be defined as follows: Qlevel = MapQPToQlevel(current_QP); diff = orig(x,y) - filt(x,y); diff_clamped = CLAMP(diff, -QuantDivisor[Qlevel] / 2, +QuantDivisor[Qlevel] / 2); Adapt(x,y) = orig(x,y) + diff_clamped;
[0080] The coding scheme may also include a function g() of previous reconstructed errors before coding (for example, g(ABS(orig(x,y) - recon(x,y))), for a subset of (x,y) that has already been encoded) to the source pixels The previous, reconstructed errors can come from the current line or from previous lines. Adaptation can be performed on some paths (for example, only in the prediction loop) or on all source pixels. Adjustment can be done before or after adaptive filtering. For example: Adjusted(x,y)=orig(x,y)+12(ABS(orig(x-1,y)- recon(x-1,y)) Entropy coding
[0081] This section presents some improvements to the entropy model presented in the state of the art. Coding scheme and other similar schemes are shown.
[0082] If the source content is unpredictable (for example, uniformly distributed, random samples in all components), the state-of-the-art DSU-VLC entropy coding consumes bits for the syntax required to could be used to improve the PSNR value and image quality. Therefore, a Added ´´Syntax bypass mode´´ to avoid consuming unnecessary bits for this type of content.
[0083] ´´Syntax bypassing" may mean that some parts of the syntax are not sent. For example, it may means that no prefixes are sent and therefore the maximum size is assumed. In addition or Instead, it may mean that no flatness information or ICH indices are sent. It may mean that a certain prediction mode is assumed (for example, center prediction) or that no prediction is used becomes.
[0084] The ´´syntax bypass mode´´ can be signaled either implicitly or explicitly. An explicit indication could be sent when the upcoming coded pixels are expected to be most effective in the ´´Syntax bypass mode´´; for example, when activity is high while the buffer level is high. An implicit statement could be that the QP is >= a predetermined value and / or that the buffer level is >= a threshold. An implicit / explicit signal could also be used; for example, a bit in the syntax to signal that the syntax should be ´´bypassed´´ for a certain number of groups, provided that the buffer level and / or QP is >= one or more threshold values.
[0085] The speed control may also be designed to save bits when the source content is not predictable. In one embodiment, the speed control increases the QP when the features of the recently encoded bitstream resembles an encoded bitstream with unpredictable source content. Examples of the Characteristics of an encoded bitstream with unpredictable source content include multiple selections of an MPP mode across different components, ICH selections with random indices, large and / or varying coded Prediction errors, extensive size predictions, and similar features.
[0086] The DSU-VLC entropy coding scheme can also be improved by improving the size predictions This can be done using several techniques. In DSU-VLC, the predicted size is a function the actual magnitudes of one or more prediction errors in one or more previous groups. Techniques can be used to make the function adaptable to the content. A simple example would be to create a histogram of a function (for example, an FIR filter) of one or more prediction errors in one or several previous groups together with the actual required unit sizes for a given image There could be a mapping between the output of the function and the least cost function using Estimation of the predicted quantity (for example, maximum likelihood), where the The cost function used in the estimation is the bit cost of an incorrect prediction. Deviations could allocating per slice, using a different method of function optimization and introducing more Information into the function.
[0087] Another method that could be used to improve DSU-VLC coding would be predicted quantities from one or more previous rows. For example, the value obtained via the QP adjusted size (defined as size + qlevel) can be stored in a memory, and the predicted size could equal to a function of the size adjusted via the QP for the previous group on the left and the vertical adjacent group; for example: Pred_size=CLAMP(MIN(QP_adj_size_above,QP_adj_size_left)-qlevel,0,max_size-1); or: Pred_size=CLAMP(QP_adj_size_left+QP_adj_size_above-QP_adj_size_top_right)-qlevel,0,max_size-1); or: Pred_size= CLAMP(QP_adj_size_left+QL_adj_size_above-QP_adj_size_top_left)-qlevel,0,max_size-1);
[0088] This value pred_size could be further modified by another function or assignment, since this Function might vary depending on previous slices or frames or other content analysis. I
[0089] Furthermore, an indexed color cache is used for the effective encoding of content with repeated pixel values disclosed. Techniques for improving IC$ / ICH decisions in the encoder are described below.
[0090] A coder can look ahead to one or more groups to make decisions for the current group In one embodiment, the encoder performs a ICH search to determine whether ICH selection is likely for the next group. The coder can Include original pixels from the current group in the search. If an ICH selection for the next group likely, the ICH decision for the current group may be more in the direction of selecting the ICH be influenced to minimize switching between modes.
[0091] In a further embodiment, the encoder may completely or partially encode. A measure of distortion (such as SAD, MSE or maximum sampling error or Functions from these) can be calculated for different permutations of the ICH mode / P mode selection. In addition, the number of bits used for each possible coding path can be calculated. Cost function is calculated, which is a function of the distortion and the number of bits; for example Cost = Distortion + Lambda * Used_Bits. The mode selection for the current group can result in the mode at which results in the lowest cost path. The analysis can be carried out for the immediately following group, or the path can be followed without further calculation.
[0092] The mode selection may include further explicitly signaled encoder modes. In one embodiment, the Flatness information included in the speed distortion analysis. In a coding system that uses a DPCM / transformation decision, this decision could be included in the analysis. Speed control
[0093] In some implementations, the quantization parameter for the implicit part of the Speed control using a PID controller (Proportional-Integral-Derivative, Proportional-Integral- Derivative). A PID controller combines a proportional, integral and derivative element to determine the Control for a control loop. In the case of a compression system, the process variable can be either the actual number of bits generated per group that would have been generated if the size prediction would have been ideal (rcSizeGroup), or to get the predicted size for the current or the next Group.
[0094] The setpoint can be a constant or a function of the buffer level. It can be equal to the nominally programmed bits / group, modified by a function of the current position in the slice. It can also be modified using a bpg_offset, which is a function of the buffer level. The equation for the PID controller is given as: u(tk)=u(tk-1)+Kp[(1+ΔtTi+TdΔt)e(tk)+(-1-2TdΔt)e(tk- 1)+Td&Dgr;te(tk-2)]
[0096] Here T = K / Ki and T = K / K . The value u(t ) is the QP value to be determined, e(t ) is the setpoint ipdddkk defined error - process variable, Δt is the sampling time, and the K values are parameters for fine tuning. The Fine-tuning parameters can be either implemented in hardware, explicitly signaled or implicitly adaptive be.
[0097] The resulting quantization parameter can be fixed to ensure that the QP values are within a valid range. Additionally or alternatively, the quantization parameter can be fixed to a range of values which is a function of the buffer level or a modelled level (which is the current one or one from a previous group). The quantization parameter can be set in response to an explicit flatness signal or an implicit or explicit overflow and / or underflow Prevention mechanism can be further modified.
[0098] The activity measurement used for an implicit speed control scheme, such as the one used in the prior art or the above-mentioned PID-based scheme can be averaged or filtered using a low-pass filter to produce a more stable measurement of activity. For example, the activity can be filtered with an IIR or FIR filter.
[0099] As mentioned previously, the activity may be a measurement of the results of entropy coding from one or more previous groups. Alternatively, it can be the predicted size for the next group. Or it can be a function of the samples in one or more previous, reconstructed groups. Alternating sampling groupings
[0100] Many systems use rectangular sampling blocks arranged in a grid; however, other Groupings are possible that improve throughput. Some examples are listed below. In particular, some groupings may be arranged without a grid. An example grouping is shown in Fig. 10 at 1000. The sample positions labeled with the same number belong to the same Group. In Fig. 10, w represents the width of the row. Another example grouping is shown in Fig. 11 at 1100 In Fig. 11, the sampling positions labeled with the same number belong to the same group, and w represents the width of the line. The alternating sample groupings increase the availability of adjacent samples, resulting in improved encoder throughput and, with high encoder throughput, leads to improved quality.
[0101] The methods, devices, processing and logic described above can be applied to many different ways and in many different combinations of hardware and software. For example, all or part of the implementation may be circuit arrangements that Processor for instructions, such as a CPU (Central Processing Unit), a microcontroller or a microprocessor; an ASIC (Application Specific Integrated Circuit, application-specific integrated circuit), a PLD (Programmable Logic Device) or an FPGA (Field Programmable Gate Array); or a circuit arrangement, which has discrete logic or other circuit components, including analog circuit components, digital circuit components or both; or any combination of these. The circuit arrangement may have discrete, interconnected hardware components and / or can, for example, be based on a single be combined on a single integrated circuit die, distributed across multiple integrated circuit dies, or in an MCM (Multiple Chip Module, Multi-Chip Module) consisting of several raw chips for integrated circuits in one be implemented in a common housing.
[0102] The circuit arrangement may further comprise instructions for execution by means of the circuit arrangement or access them. The instructions may be stored in or on a tangible storage medium, which is something other than a temporary signal, for example a flash memory, a RAM (Random Access Memory), a ROM (Read Only Memory), an EPROM (Erasable Programmable Read Only Memory, erasable programmable read-only memory); or on a magnetic disk or an optical disk, such as a CDROM (Compact Disc Read Only Memory), a hard disk drive or other magnetic or optical disk; or in or on any other, machine-readable medium. A product, such as a computer program product, may be a storage medium and have instructions stored in or on the medium, and the instructions, if transmitted by means of the Circuit arrangement in a device, cause the device to perform any of the above described or illustrated in the drawings.
[0103] The implementations can be distributed as circuit arrangements across multiple system components, such as for example, multiple processors and memories, optionally including multiple distributed processing systems. Parameters, databases and other data structures can be stored and managed separately, they can be a single storage or database, and they can be logically and physically distributed across many different ways, and they can be implemented in many different ways, including as Data structures such as linked lists, hash tables, arrays, records, objects or implicit Storage mechanisms. Programs can be parts (for example, subroutines) of a single program or They can be separate programs, they can be distributed across multiple memories and processors or across many be implemented in different ways, such as in a library, for example a shared used library (for example, a DLL (Dynamic Link Library). The DLL can for example, store instructions that perform any of the functions described above or illustrated in the drawings carry out processing when executed by the circuit arrangement.
[0104] Various implementations have been specifically described. However, many other implementations possible.
Claims
1. Video encoder that includes: a circuit arrangement configured to: Receiving a chroma subsampled image; Forming a first component within a first group of a container without subsampling, comprising a A virtual image without chroma created by repacking samples from an image with chroma subsampling. Subsampling, with a first set of luma samples from alternating positions from the image with chroma- subsampling; Forming a second component within a first group of a container without subsampling with a second set of luma samples from the image with chroma subsampling of relative to the first set of Luma samples in the first component opposite, alternating positions; Forming at least one chroma component within the first group.
2. Video encoder according to claim 1, wherein: the received image has the format 4:2:0; the container has a 4:4:4 format without subsampling.
3. Video encoder according to claim 2, wherein the at least one chroma component comprises a first set of chroma samples from the image in the 4:2:0 mode.
4. A video encoder according to claim 2 or 3, wherein the circuit arrangement is configured for the following: Transferring the 4:4:4 container.
5. Video encoder according to one of claims 2 to 4, wherein the at least one chroma component is associated with the first set chroma blue components associated with luma samples.
6. A video encoder according to claim 2, wherein the first and second sets of luma samples are taken from a first line of a image in the format 4:2:0, with the circuitry configured for the following: Forming a first component within a second group of the 4:4:4 container with a third set of luma- Values of alternating positions from a second line of the image in the format 4:2:0; Forming a second component within the second group of the 4:4:4 container with a fourth set of luma- Values from the second line of the image in the format 4:2:0, where the fourth set of luma samples is in relation to the third set of luma samples in the first component has opposite, alternating positions.
7. The video encoder of claim 6, wherein the circuitry is configured to: Forming at least one chroma component within the second group, wherein the at least one chroma Component within the second group a second set of chroma samples from the image in the format 4:2:0 has.
8. A video encoder according to claim 7, wherein the at least one chroma component within the second group is first and third sets of luma samples associated with chroma red components.
9. A video encoder according to claim 7, wherein the first group includes three components, and the second group includes three Includes components.
10. A video encoder according to claim 1, wherein based on an even luma sample from an immediately previous line, an odd luma sample from an immediately previous line and a chroma Sampling from the second previous row ICH entries (Indexed Color History) formed become.
Citation Information
Patent Citations
Image processing appartus and method for pixel data conversion
US20100103180A1
Frame packing and unpacking higher-resolution chroma sampling formats
US20140092998A1
