Enhanced decoding implementation and method
By separating the residual data into positive residual and correction data in the video decoder, the problem of inefficiency caused by hardware limitations is solved, efficient LCEVC reconstruction is achieved, and the problem of hardware limitations in the existing technology is overcome.
Patent Information
- Application Number
- CN202280071110.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2021-10-25
- Filing Date
- 2022-10-25
- Publication Date
- 2024-10-08
AI Technical Summary
Implementing LCEVC reconstruction in video decoder chipsets faces hardware limitations, such as low memory bandwidth and the inability to perform signed addition or subtraction operations, resulting in inefficiency and increased implementation difficulty.
By separating the residual data into positive residual and correction data, and operating only with positive values, we overcome hardware limitations and utilize different parts of the video decoder to perform different operations to achieve an efficient reconstruction process.
It effectively overcomes hardware limitations, improves the efficiency and flexibility of LCEVC reconstruction in video decoders, and realizes the possibility of efficiently integrating LCEVC in existing decoder chipsets.
Smart Images

Figure CN118749196A_ABST
Abstract
Description
Background Art
[0001] Hybrid backward compatible coding techniques have been previously proposed in, for example, WO 2013 / 171173, WO 2014 / 170819, WO 2019 / 141987, and WO 2018 / 046940, the contents of which are incorporated herein by reference. Additional examples of level-based coding formats include ISO / IEC MPEG-5 Part 2 LCEVC (hereinafter referred to as 'LCEVC'). LCEVC has been described in WO 2020 / 188273A1, GB 2018723.3, WO 2020 / 188242, and related standard specification documents, including ISO / IEC DIS 23094-2 Low Complexity Enhanced Video Coding Text Draft published at the MPEG 129 meeting held in Brussels from Monday, January 13, 2020 to Friday, January 17, 2020, all of which are incorporated herein by reference in their entirety.
[0002] In these encoding formats, the signal is broken down into multiple "tiers" of data (also called "hierarchical layers"), each tier corresponding to a "quality level", from the highest tier to the lowest tier of the sampling rate of the original signal. The lowest tier is typically a low-quality reproduction of the original signal, while the other tiers contain information about corrections applied to the reconstructed reproduction in order to produce the final output.
[0003] LCEVC adopts this multi-layer approach, where any base codec (e.g., Advanced Video Coding - AVC, also known as H.264, or High Efficiency Video Coding - HEVC, also known as H.265) can be enhanced via an additional low-bitrate stream. LCEVC is defined by two component streams, the base stream is typically decodable by a hardware decoder, and the enhancement stream consists of one or more enhancement layers suitable for software processing implementation with sustainable power consumption.
[0004] In the specific LCEVC instance of these layered formats, the process works by encoding a lower resolution version of the source image using any existing codec (base codec) and encoding the difference between the reconstructed lower resolution image and the source image using a different compression method (enhancement).
[0005] The remaining details that make up the difference from the source are compressed efficiently and quickly with LCEVC, which uses specialized tools designed for compressing residual data. LCEVC enhancement compresses the residual information on at least two layers, one layer at the base resolution to correct artifacts caused by the base encoding process, and another layer to add details to reconstruct the source resolution of the output frame. Between the two reconstructions, the picture is upscaled using a canonical upsampler or a custom upsampler specified by the encoder in the bitstream. In addition, LCEVC also performs some nonlinear operations called residual prediction, which further improves the reconstruction process before the residual is added, together resulting in low-complexity intelligent content-adaptive (i.e., encoder-driven) upscaling.
[0006] Since LCEVC and similar encoding formats utilize existing decoders and are inherently backward compatible, efficient and effective integration with existing video encoding implementations is needed without requiring a complete redesign. Examples of known video encoding implementations include the software tool FFmpeg, which is used by the simple media player FFplay.
[0007] Furthermore, LCEVC is not limited to known codecs and can theoretically utilize codecs that have not yet been developed. Therefore, any LCEVC implementation should be able to be integrated with any hitherto known or yet to be developed codec, implemented in hardware or software, without introducing coding complexity.
[0008] LCEVC is an enhancement codec, which means that it does more than just upsample well: it will also encode and compress (convert, quantize, and encode) the residual information needed for true fidelity to the source. LCEVC also produces a mathematically lossless reconstruction, which means that all information can be encoded and transmitted, and the image is perfectly reconstructed. LCEVC preserves the creator's intent, small text, logos, advertisements, and unpredictable high-resolution details.
[0009] As an example: –
[0010] -LCEVC can provide 2160p 10-bit HDR video with an 8-bit AVC base encoder.
[0011] - When using the HEVC base encoder for 2160p streams, LCEVC can deliver the same quality at a bitrate typically 33% lower than the original bitrate, reducing the typical bitrate of 20Mbit / s (HEVC only) to 15Mbit / s or less (LCCEVC on HEVC).
[0012] The many unique benefits of LCEVC can be summarized as follows. LCEVC…
[0013] - Rapidly enhance the quality and cost-effectiveness of all codec workflows.
[0014] - Reduces processing power requirements to serve a given resolution.
[0015] - Can be deployed via software, significantly reducing power consumption.
[0016] - Simplifies the transition from older to newer generation codecs.
[0017] -Improve engagement by increasing visual quality at a given bitrate.
[0018] - is retrofittable and backwards compatible.
[0019] - Can be immediately deployed at scale via software updates.
[0020] - Has low battery consumption on user devices.
[0021] -Reduce the complexity of new codecs and make them easier to deploy.
[0022] Taking all of the above into account, LCEVC allows for some interesting and highly economical ways to leverage legacy devices / platforms to achieve higher resolutions and frame rates without having to swap out the entire hardware, ignore customers with legacy devices, or create duplicate services for new devices. In this way, the simultaneous introduction of higher quality video services on legacy platforms generates demand for devices with even better encoding performance. Furthermore, LCEVC not only eliminates the need to upgrade platforms, but it also allows for higher resolution content to be delivered over existing delivery networks that may have limited bandwidth capabilities.
[0023] The method of LCEVC is a codec-agnostic enhancer based on software-driven implementation, which takes advantage of available hardware acceleration and also shows a wider range of implementation options on the decoding side. Although existing decoders are usually implemented in hardware at the bottom of the stack, LCEVC basically allows implementation at various levels, from scripts and applications to OS and driver levels, and all the way to SoC and ASIC. In other words, there is more than one solution for implementing LCEVC on the decoder side. In general, the lower the implementation occurs in the stack, the more device-specific the method becomes. In addition to the implementation at the ASIC level, no new hardware is required.
[0024] There are challenges when trying to integrate LCEVC decoding into video decoder chipsets without redesigning those chipsets. At least in the short term, it is desirable to implement LCEVC in a simple manner using existing architectures and designs. There are specific implementation challenges regarding secure decoding of protected (e.g., premium) content.
[0025] Generally speaking, there is one place in the video output path to perform operations for the LCEVC reconstruction phase, namely the combination of the decoded enhancement and the residual of the base decoded video. This is because the video output path is the most secure, and also because such use is memory efficient, involving direct operations performed on secure memory.
[0026] However, such implementations in the video output path involve dealing with inherent hardware limitations. These hardware limitations include, for example, low memory bandwidth and restrictions on the types of operations that can be performed. Elements of the video output path, such as the video shifter (alternatively referred to as the graphics feeder), are specifically designed for functions such as overlay and color space conversion, and perform well in these functions, but are limited in their broader use.
[0027] Different blocks of the video output path have different limitations and tradeoffs, and different blocks from different manufacturers have different functionality. For example, a hardware upscaling device designed for that specific use may have different tradeoffs than a video shifter. Identifying how to implement LCEVC reconstruction within the video output path involves compromises. These challenges are exacerbated when dealing with operations at UHD resolutions.
[0028] Alternative implementations of LCEVC refactoring into the decoder CPU may be unsafe, as the CPU is not pipeline protected, while implementations of LCEVC into the video output path may be subject to the inherent hardware limitations of the blocks of that path. Therefore, the implementation may be inefficient.
[0029] Innovations that seek to address limitations of video decoder chipsets and facilitate the introduction and implementation of enhanced decoders (such as LCEVC) within the broader video decoder ecosystem Summary of the invention
[0030] According to a first aspect of the present invention, a module for use in a video decoder may be provided, the module being configured to: receive one or more residual data layers from an enhanced decoding layer, the one or more residual data layers being generated based on a comparison of data derived from a decoded video signal with data derived from an original input video signal; process the one or more residual data layers to generate a set of modified residuals including one or more positive residual data layers, wherein the positive residual data only includes values greater than or equal to zero; generate one or more correction data layers, the correction data being configured to be combined with a base decoded video signal from a base decoding layer to modify the base decoded video signal, so that when the one or more positive residual data layers are combined with the modified base decoded video signal to generate enhanced video data, the enhanced video data corresponds to a combination of the base decoded video signal and the one or more residual data layers from the enhanced decoding layer.
[0031] Separating the one or more residual data layers into two component parts (or direct generation of two component parts) allows overcoming certain hardware limitations of video decoder chipsets while still achieving the benefits of enhanced encoding. The separation allows for flexibility in implementation in video decoder chipsets.
[0032] Optionally, the correction data may include an unsigned value or a value greater than or equal to zero. For example, in situations where certain hardware elements may not be able to perform operations on signed values, the correction data allows the negative components (i.e., the negative direction) of the one or more residual data layers to be factored into the reconstruction using operations with unsigned or positive values.
[0033] By positive residual data, we do not necessarily mean the positive components of one or more residual data layers, but rather that the residual data is modified to include only positive values. Negative values in the data may be modified to values greater than or equal to zero, or ultimately removed. Those positive values of one or more residual data layers may not be modified or may be modified together with the negative values of the one or more residual data layers. Corrected data may be viewed as negative residuals or downsampled negative residuals in a similar manner.
[0034] This module can be viewed as a residual splitter, residual separator, or residual rectifier because it generates two sets of data from the residual data, one set of data representing the residual data using only positive values, and one set of data representing the correction required to restore the intent of the original residual data. In fact, functionally, the two sets of data (i.e., positive residual data and correction data) can be viewed as replacing one set of signed data with two sets of unsigned data, copying the effect of the signed data to the other set of data.
[0035] Aspects of the invention described herein may have particular utility regardless of the hardware on which the method is implemented.
[0036] Each element of the correction data may correspond to a plurality of elements of the residual data.In addition, the dimensions of the one or more correction data layers correspond to the dimensions of the downsampled versions of the one or more residual data layers.
[0037] Since the negative residual is downsampled, the corrected data may be applied to the base decoded signal at a lower resolution (e.g., the resolution of the base decoded signal). In cases where the operation may be impaired by hardware limitations such as memory bandwidth, the operation of applying the negative components of one or more residual layers may be performed at a lower resolution before later applying the positive residual. In this embodiment, the correction data may be signed or unsigned, and may be positive, negative, or zero, while still achieving the benefits of overcoming certain hardware limitations.
[0038] In a preferred embodiment, the positive residual data is generated using the correction data and one or more layers of residual data. Additionally or alternatively, elements of the correction data are calculated as functions of a plurality of elements of the residual data.
[0039] In some embodiments, the elements of the correction data are calculated according to the following formula: n = -f (a, b, c, d); wherein n is an element of the correction data and a, b, c, d are elements of the residual data, wherein the elements a', b', c', d' of the positive residual data are calculated according to the following formula: a' = a + n; b' = b + n; c' = c + n; d' = d + n; and wherein the elements a', b', c', d' of the positive residual data each correspond to the elements a, b, c, d of the residual data, respectively, preferably n = -min (a, b, c, d). As noted, preferably, the correction data is unsigned or positive. In this embodiment, each value of the correction data corresponds to four values of the original residual data. Alternatively, n = f (a, b, c, d). In another embodiment, positive residual = signed residual + upgraded correction data.
[0040] The module may be a module in the CPU or GPU of a video decoder chipset. The module may perform operations on clear memory (i.e., ordinary general purpose memory). The creation of positive residual data and correction data may be performed in the pipeline using the computational benefits of a non-protected pipeline.
[0041] According to a second aspect of the present invention, a module for use in a video decoder may be provided, the module being configured to: receive a base decoded video signal from a base decoding layer; receive one or more correction data layers; and combine the correction data with the base decoded video signal to modify the base decoded video signal, so that when one or more positive residual data layers are combined with the modified base decoded video signal to generate enhanced video data, the enhanced data corresponds to a combination of the base decoded video signal and one or more residual data layers from the enhancement decoding layer, wherein the positive residual data only includes values greater than or equal to zero and is based on one or more residual data layers from the enhancement decoding layer, and the one or more residual data layers are generated based on a comparison of data derived from the decoded video signal with data derived from the original input video signal.
[0042] By combining the correction data with the underlying decoded video signal in this way, the operation can be performed at a portion of the video decoder where it can be performed efficiently and separately from any reconstruction or separation stages that may be more appropriately performed at other elements of the video decoder.
[0043] In this aspect of the invention, the invention is not specific to how the positive residual data and the correction data are formed, but aspects of the invention may relate to their use and their subsequent implementation so that the original image can be reconstructed using two sets of residuals as enhancement data and base decoded data.
[0044] Aspects of the present invention overcome the specific challenges of components of a video decoder implementing the LCEVC reconstruction phase being unable to perform signed addition and / or subtraction. The present invention eliminates the need to perform signed addition in the video pipeline.
[0045] The module may be a subtraction module configured to subtract the one or more correction data layers from the base decoded video signal to generate a modified decoded video signal. Thus, an element of a video decoder performing a combining operation may be able to perform a subtraction operation, whereas an element performing a reconstruction phase may not be able to perform a subtraction operation. Similarly, a subtraction operation may be performed at an element of a decoder that may only be able to efficiently perform operations at the level of the resolution of the base decoded video signal. Separating the operations in this manner provides flexibility in implementation within a video decoder.
[0046] The module may be a hardware block of a video decoder chipset or a module in a GPU. In cases where subtraction or signed addition may not be performed in a video shifter or video pipeline, the correction data may be applied at an element of the video decoder that is well suited to perform the operation while the video pipeline is available for other operations, such as a subsequent reconstruction stage.
[0047] Optionally, the subtraction module is included in a secure area of a video decoder chipset and performs operations on secure memory of the video decoder chipset. In this way, the combination of correction data and base decoded layers can be performed in a secure pipeline so that secure video content can be uncompromised. In an alternative implementation, all operations described herein can be performed entirely in clear, ordinary general purpose memory.
[0048] According to a third aspect of the present invention, a video decoder may be provided, comprising the module of any one of the first aspect and / or the second aspect.
[0049] The operations of the present invention may be performed within the video pipeline or may be written back to memory for execution.
[0050] The video decoder may further include a reconstruction module configured to combine the modified base decoded video signal with the one or more positive residual data layers. The reconstruction module may be configured to generate enhanced video data. Thus, the positive residual data, when combined with the modified base decoded video signal, may reconstruct the original image including the negative values separated into the correction data.
[0051] The reconstruction module may include an upscaling device configured to upscale the modified base decoded video signal prior to the combining. Thus, the combining may be performed at a first resolution of the positive residual values, while the subtraction may be performed at a second resolution lower than the first resolution. Thus, different operations may be performed at hardware elements suitable for performing the operations efficiently, allowing flexibility in implementation. In the case where the positive residual data and the correction data are at the same first resolution, then the step of upscaling may not be necessary, and the correction data may be combined with the base decoded video signal entirely at the first resolution before the positive residual data is combined with the modified base decoded video signal.
[0052] In an optional implementation, the upgrader can be a hardware upgrader operating on a secure memory. Thus, the upgrade can be performed using components specifically designed for this purpose, thereby providing efficiency in the design.
[0053] Each of the combining steps described herein may include the step of using upscaling or upsampling. For example, the combination of the decoded base decoded signal and the correction data may include the step of upsampling the correction data and / or the base decoded signal before or after the combination or addition. Similarly, the combination of the positive residual data and the modified base decoded signal may include the step of upsampling the positive residual data and / or the modified base decoded signal before or after the combination or addition. In short, the combination may be performed at any resolution, i.e., the first resolution of the base video or the second resolution of the residual data. Typically, the second resolution is higher than the first resolution.
[0054] In some embodiments, the reconstruction module is a hardware block of a video decoder chipset, a GPU or a module in a video output path. Preferably, the reconstruction module is a module of a video shifter.
[0055] In this way, the video output path ("video pipeline") can be used for as many operations as possible, and the hardware blocks, CPU or GPU, are used for any remaining operations. The operations can be divided so that reconstruction operations can be performed at the video shifter or in the video pipeline, which is well suited for such operations, but may not be able to perform subtraction and / or signed addition. The video shifter is a protected pipeline because it can operate on secure memory and is therefore suitable for reconstruction of secure content as well as secure video.
[0056] The video decoder may further include a base decoding layer, wherein the base decoding layer includes a base decoder, the base decoder is configured to receive a base encoded video signal and output the base decoded video signal. The video decoder may further include an enhancement decoder implementing the enhancement decoding layer, the enhancement decoder is configured to: receive an encoded enhancement signal; and decode the encoded enhancement signal to obtain the one or more residual data layers. The one or more residual data layers may be generated based on a comparison of data derived from the decoded video signal and data derived from the original input video signal.
[0057] The enhancement decoding layer most preferably complies with the LCEVC standard.
[0058] As noted, the benefits of these concepts can be achieved through two complementary but both optional features: (a) splitting the residual into 'positive' and 'negative' residuals, referred to herein as positive residuals and correction data; and (b) changing the enhanced reconstruction operation to address hardware limitations, such as low bandwidth and the inability of the video pipeline to subtract and process negative values, for example in a signed addition operation.
[0059] In some embodiments, the module can be further configured to apply a jitter plane, wherein the jitter plane is input at a first resolution, and the first resolution is lower than the resolution of the enhanced video data. The jitter plane can be a separate plane. The jitter plane can also be applied to two or more YUV planes. Applying the jitter plane in this way will produce surprisingly good visual quality.
[0060] According to a fourth aspect of the present invention, a method for use in a video decoder may be provided, the method comprising: receiving one or more residual data layers from an enhanced decoding layer, the one or more residual data layers being generated based on a comparison of data derived from a decoded video signal with data derived from an original input video signal; processing the one or more residual data layers to generate a set of modified residuals including one or more positive residual data layers, wherein the positive residual data only includes values greater than or equal to zero; generating one or more correction data layers, the correction data being configured to be combined with a base decoded video signal from a base decoding layer to modify the decoded video signal, so that when the one or more positive residual data layers are combined with the modified base decoded video signal to generate enhanced video data, the enhanced video data corresponds to a combination of the base decoded video signal and the one or more residual data layers from the enhanced decoding layer.
[0061] Positive residual data may be generated using corrected data and one or more residual data layers. Elements of the corrected data may be calculated as a function of multiple elements of the residual data. Elements of the corrected data may be calculated according to the following formula: n = -f(a, b, c, d); wherein n is an element of the corrected data and a, b, c, d are elements of the residual data, wherein the elements a', b', c', d' of the positive residual data are calculated according to the following formula: a' = a + n; b' = b + n; c' = c + n; d' = d + n; and wherein the elements a', b', c', d' of the positive residual data each correspond to the elements a, b, c, d of the residual data, respectively, preferably n = -min(a, b, c, d).
[0062] According to a fifth aspect of the present invention, a method for use in a video decoder may be provided, the method comprising: receiving a base decoded video signal from a base decoding layer; receiving one or more correction data layers; and combining the correction data with the base decoded video signal to modify the decoded video signal, so that when one or more positive residual data layers are combined with the modified base decoded video signal to generate enhanced video data, the enhanced data corresponds to a combination of the base decoded video signal and one or more residual data layers from the enhancement decoding layer, wherein the positive residual data only includes values greater than or equal to zero and is based on one or more residual data layers from the enhancement decoding layer, and the one or more residual data layers are generated based on a comparison of data derived from the decoded video signal with data derived from the original input video signal.
[0063] The step of combining may comprise subtracting the one or more correction data layers from the base decoded video signal to generate a modified decoded video signal.The one or more correction data layers may be generated according to the method of the fourth aspect of the invention described above.
[0064] The method may further include: upsampling the modified base decoded video signal; and combining the upsampled modified base decoded video signal with the one or more positive residual data layers to generate a decoded reconstruction of the original input video signal. Preferably, the step of combining the upsampled modified base decoded video signal with the one or more positive residual data layers is performed by a hardware block, a GPU or a video output path of a video decoder chipset.
[0065] The method may further include applying a dither plane, wherein the dither plane is input at a first resolution, the first resolution being lower than a resolution of the enhanced video data.
[0066] According to a further aspect, a non-transitory computer readable medium may be provided, comprising a computer program code configured to cause a processor to implement a method according to any of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Examples of systems and methods according to the present invention will now be described with reference to the accompanying drawings, in which:
[0068] Figure 1 shows a known, high-level schematic diagram of the LCEVC decoding process;
[0069] 2a and 2b respectively show a schematic diagram of a comparative basic decoder in a video pipeline and a schematic diagram of a decoder integration layer;
[0070] Figure 3 shows a known, high-level schematic diagram of a video decoder chipset;
[0071] Figure 4 A schematic diagram of a video decoder according to an example of the present disclosure is shown;
[0072] Figure 5 A schematic diagram of a video decoder according to an example of the present disclosure is shown;
[0073] Fig. 6A shows positive and negative residuals according to examples of the present disclosure;
[0074] Figure 6B shows working examples of positive and negative residuals according to examples of the present disclosure;
[0075] Fig. 7A A flowchart of a method for generating positive and negative residuals according to an example of the present disclosure is shown;
[0076] Figure 7B A flowchart showing a method of generating a modified base decoded video signal according to an example of the present disclosure;
[0077] Figure 7C A flowchart showing a method for reconstructing an original input video signal according to an example of the present disclosure is shown;
[0078] Figure 8 A high-level schematic diagram of a video decoder chipset according to an example of the present disclosure is shown;
[0079] Fig. 9 A high-level schematic diagram of a video decoder chipset according to an example of the present disclosure is shown;
[0080] Fig.10 A block diagram showing an integration of an enhanced decoder according to an example of the present disclosure;
[0081] Fig.11 A first video display path according to an example of the present disclosure is shown;
[0082] Fig.12showing a second video display path according to an example of the present disclosure; and
[0083] Fig.13 A third video display path according to examples of the present disclosure is shown. DETAILED DESCRIPTION
[0084] The present disclosure describes an implementation for integrating a hybrid backward compatible coding technique with an existing decoder, optionally via a software update. In a non-limiting example, the present disclosure relates to the implementation and integration of MPEG-5 Part 2 Low Complexity Enhancement Video Coding (LCEVC). LCEVC is a hybrid backward compatible coding technique in a flexible, adaptable, efficient, and computationally inexpensive coding format that combines different video coding formats, base codecs (i.e., encoder-decoder pairs such as AVC / H.264, HEVC / H.265, or any other current or future codecs, as well as non-standard algorithms such as VP9, AV1, etc.) with coded data of one or more enhancement layers.
[0085] An example hybrid backward compatible coding technique uses a downsampled source signal that is encoded using a base codec to form a base stream. An enhanced stream is formed using a coded set of residuals that correct or enhance the base stream, such as by increasing the resolution or by increasing the frame rate. There may be multiple enhanced level data in the hierarchical structure. In some arrangements, the base stream may be decoded by a hardware decoder, and the enhanced stream may be suitable for processing using software implementation. Therefore, the stream is considered to be a base stream and one or more enhanced streams, wherein there are usually two possible enhanced streams, but one enhanced stream is often used. It is worth noting that the base stream is usually decodable by a hardware decoder, and the enhanced stream may be suitable for software processing implementation with suitable power consumption. Streams may also be considered to be layers.
[0086] Video frames are encoded hierarchically, rather than using a block-based approach as in the MPEG family of algorithms. Encoding frames in a hierarchical manner includes generating a residual for a full frame, and then generating a residual for a reduced or decimated frame, etc. In the examples described herein, the residual can be considered as an error or difference at a particular quality level or resolution.
[0087] For context purposes only, since the detailed structure of the LCEVC is known and is set out in the approved draft standard specification, Figure 1 The logical flow shows how LCEVC operates on the decoding side assuming H.264 as the base codec. Figure 1 Although a general description of LCEVC is presented, those skilled in the art will appreciate how the examples described herein are also applicable to other multi-layer coding schemes (e.g., those using base and enhancement layers). Figure 1, the LCEVC decoder 10 works at the level of individual video frames. It takes as input the decoded low-resolution pictures from the base (H.264 or other) video decoder 11 and the LCEVC enhancement data to produce decoded full-resolution pictures ready for rendering on the display view. The LCEVC enhancement data is usually received in the supplementary enhancement information (SEI) of the H.264 network abstraction layer (NAL) or in the additional data packet identifier (PID) and is separated from the base coded video by the demultiplexer 12. Therefore, the base video decoder 11 receives the demultiplexed coded base stream, and the LCEVC decoder 10 receives the demultiplexed coded enhancement stream, which is decoded by the LCEVC decoder 10 to generate a set of residuals for combining with the decoded low-resolution pictures from the base video decoder 11.
[0088] LCEVC can be quickly implemented in existing decoders via software updates and is inherently backwards compatible, further simplifying deployment as devices that have not yet been updated to decode LCEVC will be able to play video using the underlying base codec.
[0089] In this context, a decoder implementation is proposed herein for integrating decoding and rendering with existing systems and devices that perform basic decoding. The integration is easy to deploy. It also enables support for a wide range of encoding and player vendors and can be easily updated to support future systems. Embodiments of the present invention specifically relate to how to implement LCEVC in a way that provides decoding of protected content in a secure manner.
[0090] The proposed decoder implementation can be provided by an optimized software library for decoding MPEG-5LCCEVC enhancement streams, thereby providing a simple and powerful control interface or API. This allows developers to have the flexibility and ability to deploy LCEVC at any level of the software stack, such as from low-level command line tools to integration with common open source encoders and players. Specifically, embodiments of the present invention as a whole relate to driver level implementation and system-on-chip (SoC) level implementation.
[0091] The terms LCEVC and enhancement are used interchangeably herein, for example, an enhancement layer may include one or more enhancement streams, ie, residual data of the LCEVC enhancement data.
[0092] FIG2a shows an unmodified video pipeline 20. In this conceptual pipeline, obtained or received network abstraction layer (NAL) units are input to a base decoder 22. For example, the base decoder 22 can be a low-level media codec accessed using a mechanism such as MediaCodec (e.g., as found in the Android (RTM) operating system), VTDecompression Session (e.g., as found in the iOS (RTM) operating system), or Media Foundation Transforms (MFT-e.g., as found in the Windows (RTM) family of operating systems), depending on the operating system. The output of the pipeline is a surface 23 representing a decoded raw video signal (e.g., frames of such a video signal, where the order of successful frames displays rendered video).
[0093] FIG2b conceptually illustrates the proposed video pipeline using the LCEVC decoder integration layer. Similar to the comparative video decoder pipeline of FIG2a, NAL units 24 are obtained or received and processed by LCEVC decoder 25 to provide a surface 28 of reconstructed video data. Through the use of LCEVC decoder 25, surface 28 may have a higher quality than the comparative surface 23 in FIG2a, or surface 28 may have the same quality as the comparative surface 23 but require less processing and / or network resources.
[0094] In FIG. 2 b , the LCEVC decoder 25 is implemented in conjunction with a base decoder 26. The base decoder 26 may be provided by a variety of mechanisms, including by an operating system function as discussed above (e.g., a MediaCodec, VTDecompressionSession, or MFT interface or command may be used). The base decoder 26 may be hardware accelerated, such as using a dedicated processing chip to implement the operation of a particular codec. The base decoder 26 may be the same as the base decoder shown as 22 in FIG. 2 a and used for other non-LCCEVC video decoding, for example, may include a pre-existing base decoder.
[0095] In Fig. 2b, LCEVC decoder 25 is implemented using decoder integration layer (DIL) 27. Decoder integration layer 27 is used to provide a control interface for LCEVC decoder 25 so that client applications can use LCEVC decoder 25 in a similar manner to basic decoder 22 shown in Fig. 2a, for example, as a complete solution from buffer to output. Decoder integration layer 27 functions to control the operation of decoder plug-in (DPI) 27a and enhanced decoder 27b to generate a decoded reconstruction of the original input video signal. In some variants, as shown in Fig. 2b, the decoder integration layer may also control GPU functions 27c such as GPU shaders to reconstruct the original input video signal from the decoded base stream and the decoded enhanced stream.
[0096] The NAL unit 24 including the encoded video signal and the associated enhancement data may be provided in one or more input buffers. The input buffers may be fed to (or made available to) the base decoder 26 and the decoder integration layer 27, in particular the enhancement decoder controlled by the decoder integration layer 27. In some instances, the encoded video signal may include an encoded base stream and be received separately from the encoded enhancement stream including the enhancement data; in other preferred instances, the encoded video signal including the encoded base stream may be received together with the encoded enhancement stream, for example, as a single multiplexed encoded video stream. In the latter case, the same buffer may be fed to (or made available to) both the base decoder 26 and the decoder integration layer 27. In this case, the base decoder 26 may retrieve the encoded video signal including the encoded base stream and ignore any enhancement data in the NAL unit. For example, the enhancement data may be carried in the SEI message of the base stream of the video data, which may be ignored by the base decoder 26 if it is not adapted to process the custom SEI message data. In this case, base decoder 26 may operate in accordance with base decoder 22 of FIG. 2a, although in some cases the base video stream may be at a lower resolution than in the comparative case.
[0097] Upon receiving an encoded video signal comprising an encoded elementary stream, the elementary decoder 26 is configured to decode the encoded video signal and output it as one or more elementary decoded frames. The output may then be received or accessed by the decoder integration layer 27 for enhancement. In one set of examples, the elementary decoded frames are passed as input to the decoder integration layer 27 in presentation order.
[0098] The decoder integration layer 27 extracts the LCEVC enhancement data from the input buffer and decodes the enhancement data. The decoding of the enhancement data is performed by an enhancement decoder 27b, which receives the enhancement data from the input buffer as an encoded enhancement signal and extracts the residual data by applying an enhancement decoding pipeline to one or more encoded residual data streams. For example, the enhancement decoder 27b may implement an LCEVC standard decoder as listed in the LCEVC specification.
[0099] Decoder plug-in is provided at the decoder integration layer to control the function of basic decoder. In some cases, decoder plug-in 27a can process the reception and / or access of basic decoded video frame, and preferably LCEVC enhancement is applied to these frames during playback. In other cases, the output of basic decoder 26 can be arranged by the decoder integration layer 27 for access by the decoder plug-in, and then the decoder integration layer is arranged to control the addition of the residual output from the enhancement decoder to generate output surface 28. Once integrated in the decoding device, LCEVC decoder 25 can decode and playback the video utilizing LCEVC enhancement coding. The rendering of decoded, reconstructed video signal can be supported by one or more GPU functions 27c (such as GPU shaders controlled by the decoder integration layer 27).
[0100] In general, the decoder integration layer 27 controls the operation of one or more decoder plug-ins and enhancement decoders to use the decoded video signal from the base coding layer (i.e., as implemented by the base decoder 26) and one or more residual data layers from the enhancement coding layer (i.e., as implemented by the enhancement decoder) to generate a decoded reconstruction of the original input video signal 28. The decoder integration layer 27 provides a control interface for the video decoder 25, such as to an application within a client device.
[0101] Depending on the configuration, the decoder integration layer can output the surface 28 of the decoded data in different ways. For example, as a buffer, as an off-screen texture, or as an on-screen surface. Which output format to use can be set in the configuration settings provided when creating an instance of the decoder integration layer 27, as explained further below.
[0102] In some implementations, in the event that no enhancement data is found in the input buffer, e.g., in the event that the NAL unit 24 does not contain enhancement data, the decoder integration layer 27 may fall back to passing the video signal at a lower resolution to the output, i.e., the output of the base decoding layer implemented by the base decoder 26. In this case, the LCEVC decoder 25 may operate in accordance with the video decoder pipeline 20 of FIG. 2a.
[0103] Decoder integration layer 27 can be used for application integration and operating system integration, for example, for both client applications and operating systems.Decoder integration layer 27 can be used for controlling operating system functions, such as function calls to hardware accelerated basic codecs, without the need for client applications to understand these functions.In some cases, multiple decoder plug-ins can be provided, wherein each decoder plug-in provides a wrapper for different basic codecs.Common basic codecs also can have multiple decoder plug-ins.This may be a situation where basic codecs have different implementations, such as GPU accelerated versions, native hardware accelerated versions, and open source software versions.
[0104] When viewing the schematic diagram of Figure 2b, the decoder plug-in can be considered to be integrated with the base decoder 26, or alternatively as a wrapper around the base decoder 26. In fact, Figure 2b can be viewed as a visualization of a stack. The decoder integration layer 27 in Figure 2b conceptually includes functionality 27b to extract enhancement data from NAL units, functionality 27a to communicate with the decoder plug-in and apply the enhancement decoded data to the base decoded data, and one or more GPU functions 27c.
[0105] The set of decoder plugins is configured to present a common interface (i.e., a common set of commands) to the decoder integration layer 27, so that the decoder integration layer 27 can operate without knowing the specific commands or functionality of each base decoder. Thus, the plugins allow mapping of base codec specific commands (such as MediaCodec, VTDecompressionSession, or MFT) to a set of plugin commands accessible by the decoder integration layer 27 (e.g., multiple different decoding function calls are mapped to a single common plugin "Decode(...)" function).
[0106] Since the decoder integration layer 27 effectively comprises a 'residual engine', ie a library that generates a set of correction planes at different quality levels from LCEVC coded NAL units, this layer behaves as a complete decoder (ie the same as decoder 22) through the control of the base decoder.
[0107] For simplicity, we refer to the instruction entity as a client here, but it should be understood that the client can be considered as any application layer or functional layer, and the decoder integration layer 27 can be simply and easily integrated into the software solution. The terms client, application layer and user are used interchangeably in this article.
[0108] In application integration, the decoder integration layer 27 can be configured to render directly to a screen surface of any size (usually different from the content resolution) provided by the client. For example, even if the base decoded video can be standard resolution (SD), the decoder integration layer 27 can use enhanced data to render the surface at high resolution (HD), ultra-high resolution (UHD) or custom resolution. Additional details of non-standard upgrades and post-processing methods applicable to LCEVC decoded video streams can be found in PCT / GB2020 / 052420, the contents of which are incorporated herein by reference. Example application integration includes, for example, the use of LCEVC decoder 25 by ExoPlayer (Android's application-level media player) or VLCKit (objective C wrapper of the libVLC media framework). In these cases, VLCKit and / or ExoPlayer can be configured to decode the LCEVC video stream by using the LCEVC decoder 25 "under the hood", where the computer program code for VLCKit and / or ExoPlayer functions is configured to use and call commands provided by the decoder integration layer 27 (i.e., the control interface of the LCEVC decoder 25). VLCKit integration can be used to provide LCEVC rendering on iOS devices, and ExoPlayer integration can be used to provide LCEVC rendering on Android devices.
[0109] In the operating system integration, the decoder integration layer 27 can be configured to decode to a buffer or draw an off-screen texture of the same size as the final resolution of the content. In this case, the decoder integration layer 27 can be configured so that it does not handle the final rendering to a display such as a display device. In these cases, the final rendering can be handled by the operating system, and therefore the operating system can use the control interface provided by the decoder integration layer 27 to provide LCEVC decoding as part of the operating system call. In these cases, the operating system can implement additional operations around LCEVC decoding, such as YUV to RGB conversion, and / or adjust to the size of the destination surface before final rendering on the display device. Examples of operating system integration include integration with the MFT decoder (or behind it) of the Microsoft Windows (RTM) operating system, or integration with the Open Media Acceleration (OpenMAX-OMX) decoder (or behind it), OMX is a set of programming interfaces based on C language (e.g., under the kernel level) for low-power and embedded systems, including smartphones, digital media players, game consoles and set-top boxes.
[0110] These integration modes can be set by the client device or application.
[0111] The configuration of Fig. 2b and the use of decoder integration layer allow LCEVC decoding and rendering to realize integration with many different types of existing traditional (i.e. basic) decoders. For example, the configuration of Fig. 2b can be regarded as an improvement to the configuration of Fig. 2a, as can be found on computing devices. Other examples of integration include making available LCEVC decoding libraries in public video coding tools such as FFmpeg and FFplay. For example, FFmpeg is generally used as the underlying video coding tool in client applications. By configuring the decoder integration layer to a plug-in or patch of FFmpeg, the FFmpeg decoder supporting LCEVC can be provided so that the client application can use the known functionality of FFmpeg and FFplay to decode LCEVC (i.e. enhanced) video stream. For example, the FFmpeg decoder supporting LCEVC can provide video decoding operations, such as: playback, decoding to YUV and running metrics (e.g., peak signal to noise ratio-PSNR or video multi-method evaluation fusion-VMAF-metrics), without first decoding to YUV. This can be realized by a plug-in or patch computer program code for FFmpeg call functions provided by the decoder integration layer.
[0112] As described above, in order to integrate an LCEVC decoder such as 25 into a client (ie, an application or an operating system), a decoder integration layer such as 27 provides a control interface or API to receive instructions and configurations and to exchange information.
[0113] Figure 3 A computing system 100a including a conventional video shifter 131a is shown. The computing system 100a is configured to decode a video signal, wherein the video signal is encoded using a single codec (e.g., VVC, AVC, or HEVC). In other words, the computing system 100a is not configured to decode a video signal encoded using a layer-based codec such as LCEVC. The computing system 100a further includes a receiving module 103a, a video decoding module 117a, an output module 131a, a non-secure memory 109a, a secure memory 110a, and a CPU or GPU 113a. The computing system 100a is connected to a protected display (not shown).
[0114] The receiving module 103a is configured to receive the encrypted stream 101a, separate the encrypted stream and output the decrypted secure content 107a (e.g., a decrypted encoded video signal encoded using a single codec) to the secure memory 110a. The receiving module 103a is configured to output the unprotected content 105a (such as audio or subtitles) to the non-secure memory 109a. The unprotected content may be processed 111a by the CPU or GPU 113a. The (processed) unprotected content is output 115a to the video shifter 131a.
[0115] The video decoder 117a is configured to receive 119a decrypted secure content (e.g., decrypted encoded video signal) and decode the decrypted secure content. The decoded decrypted secure content is sent 121a to the secure memory 110a and then stored in the secure memory 110a. The decoded decrypted secure content is output 125a from the secure memory to the video shifter 131a.
[0116] In other words, the video shifter 131a does the following: reads the decoded decrypted secure content 125a from the secure memory; reads 115a non-secure content, such as subtitles, from the non-secure memory 109a; combines the decoded decrypted secure content and subtitles; and outputs the combined data 133a to a protected display.
[0117] Various components (i.e., modules and memories) are connected via multiple channels. A channel (also referred to as a pipe) is a communication channel that allows data to flow between two components at each end of the channel. Generally speaking, a channel connected to secure memory 110c is a secure channel. A channel connected to non-secure memory 109c is a non-secure channel.
[0118] PCT / GB2022 / 051238 (the entire contents of which are incorporated herein by reference) discusses various examples of implementing LCEVC reconstruction on a video decoder (e.g., a set-top box). The security-relevant part of a layer-based (e.g., LCEVC) decoder implementation lies in the processing steps where a decoded enhancement layer is combined with a decoded (and upgraded) base layer to create a final output sequence. Depending on the level of the stack at which a layer-based (e.g., LCEVC) decoder is implemented, there are different methods to establish a secure and ECP-compliant content workflow.
[0119] In the case where the base decoder utilizes secure memory, PCT / GB2022 / 051238 discusses how to combine the output from the base decoder in secure memory with the LCEVC decoder output in general memory to assemble an enhanced output sequence. Two similar approaches are proposed: providing a secure decoder when LCEVC is implemented at the driver level implementation; or providing a secure decoder when LCEVC is implemented at the system-on-chip (SoC) level. Which of these two approaches is utilized may depend on the capabilities of the chipset used in the corresponding decoding device.
[0120] Implementing LCEVC (or other layer-based codecs) at the device driver level utilizes a hardware block or GPU. Generally speaking, once the base layer and (e.g., LCEVC) enhancement layer have been separated, most of the decoding of the (e.g., LCEVC) enhancement layer can occur in the CPU and therefore in general (non-secure) memory. PCT / GB2022 / 051238 proposes a module (e.g., a secure hardware block or GPU) for upsampling the output of the base encoder using secure memory, combining the upsampled output with the prediction residual, and applying the decoded enhancement layer (e.g., LCEVC residual map) from general (non-secure) memory. The output sequence (e.g., output plane) can then be sent to a protected display via an output module (e.g., a video shifter), which is part of the output video path in the decoder (i.e., in the chipset).
[0121] In short, the LCEVC reconstruction stage (i.e., the steps of upsampling a base decoded video signal and combining the base decoded video signal with one or more residual layers to create a reconstructed video) can be performed on various aspects of a computing system that has access to secure memory. Examples include a video output path (such as a video shifter), a hardware block (such as a hardware upscaling), or a GPU of a computing system. A video shifter may also be referred to as a graphics feeder.
[0122] When the module implementing the LCEVC reconstruction phase is a hardware block, the hardware block can be used to process data very efficiently (eg, by maximizing page efficiency double data rate, DDR, memory).
[0123] However, not all devices have the hardware extra block, and furthermore, not all of these blocks can read secure memory. In such cases, it may be preferable to have the functionality of the module in the GPU module (which many relevant devices have), which provides a flexible approach and can be implemented on many different devices (including mobile phones). By writing the functionality of the module as a layer that runs on the GPU (e.g., using open GLES), the implementation can work on a variety of different GPUs (and therefore different devices), which provides a single solution to the problem (i.e., providing secure video) that can be implemented on many devices. In this sense). This is generally contrasted with SoC level implementations, which typically use device (video shifter) architecture-specific implementations and therefore use a unique solution for each video shifter, e.g., for calling the correct functions and connecting them together.
[0124] Although the examples described herein are provided in the context of secure memory (e.g., the implementation described in PCT / GB2022 / 051238), it should be understood that the principles presented herein are not limited thereto and are provided for context only. The benefits of the present invention can be realized in video decoder implementations that do not require a protected pipeline, and the pipeline of a protected stream is provided only for additional explanation.
[0125] When LCEVC is integrated into the existing video decoder architecture, the goal may be to achieve in the simplest and most efficient way. Although it is considered that LCEVC can be transformed into the existing set-top box, it is also advantageous to integrate LCEVC into the new chipset. It may be expected that LCEVC will be integrated when the architecture is not significantly changed, so that the chipset manufacturer does not need to change the design, and can simply launch LCEVC decoding quickly and easily. Being easy to integrate is one of the many known advantages of LCEVC. However, realizing LCEVC in this way on the existing chipset design will bring challenges.
[0126] As mentioned above, processing secure content is one such example.Another example of these integration challenges is the inherent hardware limitations of existing video decoder architectures.
[0127] Generally speaking, the most appropriate place to perform the operations of the LCEVC reconstruction stage is probably in the video output path of the video decoder chipset. This meets security requirements by keeping the video in a protected pipeline, but it is also the most memory efficient.
[0128] Examples of hardware limitations include resource issues for processing UHD, an inability to process 'signed' values (i.e., a hardware block may only be able to process positive values), and / or an inability to perform subtraction operations. These three example limitations introduce compromises due to the nature of the LCEVC reconstruction phase. That is, one or more residual layers output by the enhancement decoder typically include 'signed' values (i.e., positive or negative), and the base decoded video signal must be upsampled and combined with these signed values to reconstruct the original video.
[0129] In a more specific example of a hardware limitation, in some chipsets, when video is overlaid, it is only possible to perform addition (because the block is performing the blending). Typically, with blending hardware, it is possible to put the hardware into addition mode, but not into signed addition mode. LCEVC relies on both addition and subtraction.
[0130] In an alternative specific example of hardware limitations, the set-top box may have limited memory bandwidth. UHD to UHD addition and subtraction is 4x HD. For UHD, the base video is an HD image. Therefore, one may be able to use a hardware block to perform addition and subtraction of HD values, but when trying to perform these operations on UHD, the hardware block will either break or be very inefficient (due to lack of memory bandwidth).
[0131] Thus, in an example, a hardware block such as a hardware upgrader or other similar component may be able to perform subtraction, but a video shifter may not be able to perform subtraction, and the video shifter may not be able to handle signed values.
[0132] Typically, the video pipeline's processor will also not be able to perform the necessary operations at UHD resolutions, but may be able to perform some operations on the input in some form.
[0133] The present invention is summarized in Figure 4 The present invention aims to achieve an implementation in which the video output path ('video pipeline') is used for as many operations as possible, and hardware blocks, CPU or GPU, are used for any remaining operations. The guiding principles of the implementation are primarily simplicity, and secondarily security, i.e. the ability to decode secure content.
[0134] like Figure 4 As shown, an enhancement decoder 402 (such as, for example, an LCEVC decoder) includes a residual generator 403. The residual generator is part of the enhancement operation and generates one or more residual data layers. As indicated elsewhere, the residual data is a set of signed values (i.e., positive and negative) that generally correspond to the difference between a decoded version of an input video decoded using a base codec and the original input video signal.
[0135] Module 404 is proposed herein, and this module " divides " residual data into negative component and positive component.Throughout this disclosure, module can be referred to as residual divider, residual separator or residual rectifier, and these terms can be used interchangeably.Each gives the concept of the functionality of module.Module works to produce two groups of data.The first group of data corresponds to the modified form of residual data using only positive values.The second group of data corresponds to a group of data values that can be used to modify the basic decoded signal (for example, with lower quality), so that when the basic decoded signal is combined with the residual data having only positive values, the originally expected signal can be reconstructed.
[0136] In this sense, when we refer to positive and negative residuals, it is understood that both can actually be positive or unsigned values, but the positive residual only includes positive values, while the negative residual includes an indication of the negative component of the original residual. The original negative residual may still be included in the positive residual, but may have been modified to have a value greater than or equal to zero. This can be clearly seen from the following working example.
[0137] A positive component indicates a positive direction, while a negative component indicates a negative direction.
[0138] In this specification, we will refer to a set of residuals that have been modified so that negative residuals are positive or zero as 'positive residuals', but it will be appreciated that this could equally be referred to as 'modified' residuals and have a similar meaning. That is, the word 'positive' is merely a label.
[0139] Similarly, we will refer to the 'negative' residuals with the 'negative' label, but the set of residuals can be viewed as a set of residuals that are used to modify the base decoded video before combining it with the 'positive' residuals so that the reconstructed video is complete. Elsewhere, the 'negative' residuals may be described as correction data because they adjust the base decoded video data to take into account the modifications made to the 'positive' set of residuals.
[0140] Return to Figure 4 , the residual divider 404 is shown as a module within the enhanced decoder 402. It should be understood that the module can be a module separate from the enhanced decoder that receives the residuals generated by the enhanced decoding process, or can be integrated into the enhanced decoder itself. That is, the enhanced decoding process itself can be modified to directly generate two groups of residuals, one group representing positive values and one group representing negative values. Similarly, although it is a separate module, the separate module can be integrated into the enhanced decoder 402.
[0141] Again, note that negative residuals themselves may not be negative signed values, but we use the label 'negative' to indicate that the residual is the negative component of the original set of residuals corresponding to one or more residual layers.
[0142] The so-called negative residual is fed to a subtraction module 405 where it is subtracted from the base decoded video signal generated by the base decoder 401. A subtraction module is proposed here, but it will be appreciated that alternative combining methods may be used depending on the nature of the negative residual value. For example, if the negative residual itself is signed, an adder may be used.
[0143] In this example implementation, the negative residual has the same dimensions as the base decoded video, making the subtraction simple. Figure 4In , this is indicated by indicating that the negative residual is of lower quality (i.e., has a lower quality than the positive residual which is designed to be of high quality). In this regard, it means that the dimensionality of the data is smaller, for example, the low quality negative residual may have HD dimensions to match the base decoded video, while the positive residual has UHD dimensions.
[0144] The subtraction module generates a modified version of the base decoded video which is fed to the upsampler 406. The modified base decoded video is upsampled and then combined with the positive residual, here represented by the adder 407.
[0145] Referring to the example above, the negative residual may be downsampled to HD resolution and combined with the HD base decoded video signal. The upsampler 406 then samples the modified base to UHD resolution to combine with the UHD positive residual.
[0146] By splitting the residual in this way, the operations can be divided among blocks that are capable of processing them, thereby overcoming their limitations.
[0147] It should be noted that by subtracting the negative residual from the base decoder and then combining the modified base with the positive residual, it is no longer necessary to use signed values in the operation. Since the negative residual is subtracted before combining the positive residual, the negative residual (i.e., the component where the residual is negative) can be an unsigned value (or greater than or equal to zero).
[0148] By performing the subtraction at a lower quality, ie before upsampling the base decoder, any bandwidth limitations of the implementation elements can be removed.
[0149] By separating the subtraction step from the upsampling step, these two aspects can be performed by different parts of the video decoder, each using the available capabilities and taking into account limitations of that part. Figure 4 , where it is indicated that subtraction 405 may be performed in a hardware block or GPU of the video decoder, while the reconstruction stage (i.e. upsampling 406 and combining 407) may be performed at a hardware block, GPU, or in the video output path such as a video shifter 408. In this way, UHD combining may be performed at a video shifter that is well suited for the purpose, but subtraction may be performed at a different element of the video decoder (the video shifter may not be able to perform the subtraction).
[0150] Preferably, the reconstruction is performed at the video output path and the subtraction is performed at the hardware block or GPU.
[0151] This segmentation follows the guiding principle that it is beneficial to perform as many operations as possible in the video output path. By segmenting the residual, downscaling, and performing subtraction prior to reconstruction, hardware limitations can be overcome and the functionality can be exploited to perform the operations for which these functions excel.
[0152] Therefore, the present invention is achieved by the following two complementary but both optional features: (a) separating (or generating) the residual into a positive residual form and a negative residual form; and (b) changing the LCEVC reconstruction operation to address hardware limitations, such as low bandwidth and the inability of the video pipeline to subtract and process negative values.
[0153] Figure 4 The division between the clean pipeline and the secure pipeline is also shown. That is, the operations of subtraction, upsampling, and addition / combination can be performed in the secure part of the video decoder, which operates on secure memory, while the generation and separation of the residual can be performed by the CPU or GPU in clean memory (i.e., ordinary general purpose memory).
[0154] This is Figure 5 , where box 509 indicates a function or module implemented by the CPU or GPU in the clear pipeline, and box 408 indicates a function performed by the video output path (or optionally a hardware block or GPU) on secure memory, and subtraction 405 is performed by the hardware block or GPU on secure memory. Figure 5 It is shown that the negative residual 510 and the positive residual 511 may be stored in the cleanup pipeline, ie, in a common general purpose memory.
[0155] In an alternative implementation (not shown) of the concepts described in the present disclosure, the negative residual may not be generated at a low quality, i.e., not at a downsampled resolution, but may have the same resolution as the output plane. In this example, the base decoded video may first be upsampled before the negative residual is subtracted. The positive residual may then be combined with a modified, upsampled base decoded video. Depending on the specific limitations of the hardware block, this concept may have utility. For example, an implementation element may not be able to subtract and / or process signed values, but the implementation element may be able to handle the bandwidth of high-resolution operations. In short, for example, if a video shifter has the ability to subtract residuals, there may be a situation where full-resolution positive and negative planes are provided in the video shifter. Similarly, it may be useful to perform an upsampling operation on the base decoded video, for example, using the upsampling capability that has been provided.
[0156] In instances where the negative and positive residuals have the same resolution (i.e., full resolution), the upsampling step may not be required. For example, the base decoded layer may have the same resolution as the enhancement layer, where the enhancement layer provides correction for errors introduced in the base encoding rather than providing an increase in resolution.
[0157] As a reminder, although we discuss secure memory here, this is only a requirement when playing back secure content and has no impact on the present invention as the secure memory will work in any memory that can be read in the system.
[0158] We have described above how to separate the residual into positive and negative components (positive and correction components), and that operations to reconstruct the output video can be performed at different parts of the video decoder to achieve the benefits of these parts and address their limitations. As described above, to achieve these benefits, the positive residual corresponds to a modified form of the generated residual data having only positive or zero values, and the negative residual is used to correct those modifications by adjusting the underlying decoded video signal before combining with the positive residual. This enables operations to be performed using only unsigned (or positive values).
[0159] Now will be Fig. 6A and Figure 6B An example of separation of these two sets of residuals is described in the context of .
[0160] For this example, we assume that the width and height of the lower resolution (base resolution) are both half the width and height of the higher resolution (final resolution). The input residual will be generated at the final resolution. For every 2x2 square of pixels in the input residual, we need a 1x1 square in the negative residual and a 2x2 square in the positive residual.
[0161] The original residual 601 is labeled as a, b, c, d, i.e., the residual is labeled as four pixels of a 2x2 square. The negative residual 602 at a lower resolution (i.e., a 1x1 square corresponding to a 2x2 square at a higher resolution) is labeled as n. The positive residual 603 at a higher resolution is labeled as a', b', c', d'.
[0162] A simple algorithm that can be used to calculate the residual is:
[0163] n = -f(a, b, c, d);
[0164] a′=a+n;
[0165] b′=b+n;
[0166] c′=c+n;
[0167] d′=d+n.
[0168] In other instances:
[0169] n=-min(a, b, c, d).
[0170] Figure 6B A worked example illustrates the algorithm. Figure 6B In , the original residuals are as follows: a=-6; b=-8; c=7; d=2.
[0171] Following the algorithm outlined above, the negative residual is thus:
[0172] n=8=-min(-6,-8,7,2).
[0173] Therefore, the positive residual is:
[0174] a′=2=-6+8;
[0175] b′=0=-8+8;
[0176] c′=15=7+8;
[0177] d′=10=2+8.
[0178] As described above, the negative residual is subtracted from the base decoded video and then upsampled before being combined with the positive residual so that the original residual can be accurately reconstructed.
[0179] In this example, instead of a true split of positive and negative residuals, negative components are subtracted from all original residuals, and thus the positive residuals do not correspond exactly to the positive residuals, but are a modified form of the original residuals including only positive components. It can be seen that in this algorithm, all originals are adjusted, but other algorithms can be considered that remove any negative values but adjust the remaining original values in different ways. Importantly, the original values are separated into two groups of values, both of which have the combined effect of removing any negative signed values, and these two groups can be combined with the base decoded video separately and compensate for the effect of the separation.
[0180] In the example, combining the negative residual with the base decoded video before upsampling has been considered.
[0181] In one example implementation, any errors that may be produced by upsampling of negative residuals may not be compensated. However, when considering positive and negative generation, compensation may be optionally performed.
[0182] Furthermore, by offsetting the negative residuals and applying the correct upscaling filter, the errors can be removed. This can optionally result in the calculation of the positive residuals from the upscaled negative residuals to be applied, ie: positive residual = signed residual + upscaled negative residual.
[0183] In a further alternative, it is described above that full resolution positive and negative residuals may be combined in the video shifter. Thus, the separation of the residuals may be viewed more like segmentation, since the resolution of the planes will be the same.
[0184] Using the number of working examples, the original residual may be (a, b, c, d,) = (-6, -8, 7, 2), the positive residual may be (a', b', c', d') = (0, 0, 7, 2), and the negative residual at the higher resolution may be (a", b", c", d") = (6, 8, 0, 0). In this way, the negative residual is an unsigned value that can be subtracted from the upsampled base decoded video. That is, the residuals can be combined in two separate steps instead of one, given that the hardware may not be able to handle signed values.
[0185] In another optional implementation, the negative residual may first be segmented into (a", b", c", d") = (6, 8, 0, 0) before the subsequent downsampling step.
[0186] Fig. 7A , Figure 7B and Figure 7C Flowcharts each representing three example stages of the proposed concept. As noted, each stage may be performed by the same or different modules of the video decoder. For convenience, we refer to these as separation, subtraction, and reconstruction. Fig. 7A In a separation phase, the module receives one or more residual data layers (step 701), and then processes the residual data (or optionally removes negative components of the residual data, step 702) to generate one or more negative residual layers (step 703a) and one or more positive residual layers (step 703b). The positive residual data only includes values greater than or equal to zero. The negative residual data is a correction that is combined with a base decoded video signal from a base decoded layer to modify the base decoded video signal so that when the one or more positive residual data layers are combined with the modified base decoded video signal to generate enhanced video data, the enhanced video data includes the negative component of the residual data.
[0187] Figure 7B The steps of modifying the base decoded video to compensate for the adjustment of the original residuals to convert them only into positive values are shown. Therefore, the subtraction stage first receives a negative value (step 704). As noted, this can come from the separation stage, but optionally, the separation stage may not have been performed yet, and two sets of residuals can be directly generated by the enhanced decoding process. The subtraction stage also receives the base decoded video signal from the base decoder (step 705). The base decoder here refers to a decoder that decodes the video at a lower resolution and implements the base codec (e.g., Advanced Video Coding-AVC, also known as H.264, or High Efficiency Video Coding-HEVC, also known as H.265). The base decoded video signal is then combined with the negative residual (step 706). In the case where the negative residual is unsigned (or positive), the combination is a subtraction. Other combinations are considered. The subtraction stage outputs or generates the modified base decoded video signal (step 707).
[0188] By Figure 7C At the reconstruction stage shown in the flowchart of , for example, the modified base decoded video signal is received from the separation stage (step 708). The modified base decoded video signal is upsampled or upgraded (step 709). The terms upsampling and upgrading are used interchangeably in this article. Positive residuals are received (step 710) and the positive residuals are combined with the upgraded modified base decoded video signal (step 711). Similarly, the positive residuals can be received from the separation stage, but the separation stage can be optional and the positive residuals can be received directly from the enhanced decoder. After combining, the reconstruction stage can generate or output the reconstructed original input video from the combination of the positive residuals and the upsampled base decoded video signal modified by the negative residual (step 712). The final step may include storing the output plane and outputting the output plane to the output module for sending to the display.
[0189] Figure 8 The principles of the present disclosure implemented in a video decoding computer system 100b including ordinary general purpose memory and secure memory are shown. The computing system includes a receiving module 103b, a base decoding module 117b, an output module 846b, an enhancement layer decoding module 113b, a non-secure memory 109b, and a secure memory 110b. The computing system is connected to a protected display (not shown).
[0190] Various components (i.e., modules and memories) are connected via multiple channels. A channel (also referred to as a pipe) is a communication channel that allows data to flow between two components at each end of the channel. Generally speaking, the channel connected to the secure memory 110c is a secure channel. The channel connected to the non-secure memory 109c is a non-secure channel. For ease of display, the channel is not explicitly shown in the figure, but the data flow between the various modules is shown.
[0191] The output module 846b has access to the secure memory 110b and the non-secure memory 109b. The output module 131b is configured to read a modified, decrypted, decoded rendition of a base layer 845b of the video signal from the secure memory 110b (via the secure channel). The modified, decrypted, decoded rendition of the base layer 845b has a first resolution. The output module 846b is configured to read a decoded rendition of a positive residual layer 844b of the video signal from the non-secure memory 109b (e.g., via the non-secure channel), the decoded rendition being Figure 8The LCEVC positive residual map marked as unprotected content in the decoded rendition of the positive residual layer 844b has a second resolution. In the illustrated embodiment, the second resolution is higher than the first resolution (however, this is not necessary, the second resolution may be the same as the first resolution, in which case the decrypted decoded rendition of the base layer may not be upsampled). The output module 846b is configured to generate an upsampled modified decrypted decoded rendition of the modified base layer of the video signal by upsampling the modified decrypted decoded presentation of the base layer 845b, so that the upsampled modified decrypted decoded rendition of the base layer 845b has a second resolution. The output module 846b is configured to apply the decoded rendition of the positive residual layer 844b to the upsampled modified decrypted decoded rendition of the base layer to generate an output plane. The output module 846b is configured to output the output plane 133b to a protected display (not shown) via a secure channel. In a computing system, the output module may be a video shifter.
[0192] The secure memory 110b is configured to receive a decrypted encoded reproduction of a base layer 107b of a video signal from the receiving module 103b. The secure memory 110b is configured to output 119b the decrypted encoded reproduction of the base layer to the base decoding module 117b. The secure memory 110b is configured to receive a decrypted decoded reproduction of a base layer 121b of a video signal generated by the base decoding module 117b from the base decoding module 117b. The secure memory 110b is configured to store the decrypted decoded reproduction of the base layer 121b.
[0193] The secure memory 110b is configured to output (via the secure channel) a decrypted decoded rendition of the base layer of the video signal 841b to the subtraction module 840b.
[0194] The subtraction module 840b has access to the secure memory 110b and the non-secure memory 109b. The subtraction module 840b is configured to read the decrypted decoded rendition of the base layer 841b of the video signal from the secure memory 110b (via the secure channel). The decrypted decoded rendition of the base layer 841b has a first resolution. The subtraction module 840b is configured to read the decoded rendition of the negative residual layer 842b from the non-secure memory 109b (via the non-secure channel), the decoded rendition being Figure 8The negative residual map of the LCEVC marked as unprotected content. The decoded reproduction of the negative residual layer 842b has a first resolution. In the illustrated embodiment, the second resolution is higher than the first resolution (however, this is not required, and the second resolution may be the same as the first resolution, in which case upsampling may not be performed on the modified decrypted decoded reproduction of the base layer). The subtraction module 840b is configured to apply the negative residual map to the decrypted decoded reproduction of the base layer 841b to generate a modified decrypted decoded reproduction of the base layer 843b, and output to the secure memory 110b via a secure channel for storage in the secure memory 110b. The subtraction module 840b can be a hardware scaling and synthesis block as typically found within a video decoder SoC. Alternatively, the subtraction module 840b can be a GPU operating in a secure memory.
[0195] The computing system 100b includes a non-secure memory 109b. The non-secure memory 109b is configured to receive and store an encoded reproduction of the enhancement layer 105b of the video signal from the receiving module 103b (via a non-secure channel). The non-secure memory 109b is configured to output the encoded reproduction of the enhancement layer to the enhancement decoding module 113b, which is configured to generate a decoded reproduction of the enhancement layer by decoding the encoded reproduction of the enhancement layer. The non-secure memory 109b is configured to receive and store the decoded reproduction of the enhancement layer from the non-secure decoding module 113b. The non-secure memory 109b is configured to output the decoded reproduction of the enhancement layer to the enhancement decoding module 113b, which is configured to generate a negative residual layer at a first resolution. The non-secure memory 109b is configured to receive and store the negative residual layer from the non-secure decoding module 113b. The non-secure memory 109b is configured to output the decoded rendition of the enhancement layer to the enhancement decoding module 113b, which is configured to generate a positive residual layer at the second resolution.The non-secure memory 109b is configured to receive and store the positive residual layer from the non-secure decoding module 113b.
[0196] The generation of the decoded rendition of the enhancement layer, the generation of the negative residual layer and the generation of the positive residual layer may be performed in multiple stages 850b, 851b, 852b or in a single stage 113b. In a single stage, the non-secure memory 109b outputs the encoded rendition of the enhancement layer 105b and stores the negative residual map and the positive residual map.
[0197] The computing system 100b includes a receiving module 103b. The receiving module 103b is configured to receive the video signal 101b as a single stream. The video signal includes an encrypted encoded reproduction of a base layer 107b and an encoded reproduction of an enhancement layer 105b. The receiving module 103b is configured to separate the video signal into: an encrypted encoded reproduction of the base layer and an encoded reproduction of the enhancement layer. The receiving module 103b is configured to decrypt the encrypted encoded reproduction of the base layer. The receiving module 103b is configured to output the encoded reproduction of the enhancement layer 105b to a non-secure memory 109b. The receiving module 103b is configured to output the decrypted encoded reproduction of the base layer 107b to a secure memory 110b.
[0198] The received encoded reproduction of the enhancement layer may be received by the receiving module 103b as an encrypted version of the encoded reproduction of the enhancement layer. In such an example, the receiving module 103b is configured to decrypt the encrypted version of the encoded reproduction of the enhancement layer before outputting the encoded reproduction of the enhancement layer to obtain the encoded reproduction of the enhancement layer 105b.
[0199] The computing system 100b includes a base decoding module 117b. The base decoding module 117b is configured to receive a decrypted encoded reproduction of a base layer 119b of a video signal. The base decoding module 117b is configured to decode the decrypted encoded reproduction of the base layer to generate a decrypted decoded reproduction of the base layer. The base decoding module 117b is configured to output the decrypted decoded reproduction of the base layer 121b to the secure memory 110b for storage.
[0200] Prediction residuals (e.g., using a prediction average based on lower resolution data, as described in WO 2013 / 171173 (which is incorporated by reference) and which may be applied (such as in Section 8.7.5 of the LCEVC standard) as part of a modified upsampling process as described in WO / 2020 / 188242 (incorporated by reference)) may be processed by output module 131b. WO / 2020 / 188242 is specifically directed to Section 8.7.5 of LCEVC, as the prediction average is applied via so-called "modified upsampling". Generally speaking, WO 2013 / 171173 describes a prediction mean calculated / reconstructed at a pre-inverse transform stage (i.e. in the transformed coefficient space), but the modified upsampling in WO 2020 / 188242 moves the application of the prediction mean modifier outside the pre-inverse transform stage and applies it during upsampling (in the post-inverse transform or reconstructed image space), which is possible because transforms are (e.g., simple) linear operations and their application can therefore be moved within the processing pipeline. Thus, the output module 131b may be configured to: generate a prediction residual (consistent with the method described in WO 2020 / 188242); and apply the prediction residual (generated by the modified upsampling) to the upsampled decrypted decoded rendition of the base layer (in addition to applying the modified decoded rendition of the enhancement layer 115b) to generate an output plane. Generally speaking, the output module 131b generates the prediction residual by determining the difference between: the average of the upsampled decrypted decoded reproduced 2x2 blocks of the base layer; and the value of the corresponding pixel of the base layer (ie, not upsampled) decrypted decoded reproduced.
[0201] Fig. 9 The instances correspond largely to Figure 8 This includes data flows throughout computing system 100b that correspond to data flows throughout computing system 100c. Fig. 9 The reference numerals correspond to Fig. 9 , to show the corresponding properties of computing system 100b and computing system 100c. The difference between computing system 100b and computing system 100c is a reconstruction module 960c, which is configured to perform the steps of upsampling and combining with the positive residual map to provide an enhanced overlay.
[0202] That is, the reconstruction module 960c has access to the secure memory 110c and the non-secure memory 109c. The module 960c is configured to read the modified decrypted decoded reproduction of the base layer 961c of the video signal from the secure memory 110c (via a secure channel). The modified decrypted decoded reproduction of the base layer 125c has a first resolution. The module 960c is configured to read the decoded reproduction of the positive residual layer 962c of the video signal from the non-secure memory 109c (via a non-secure channel). The decoded reproduction of the positive residual layer has a second resolution. In the illustrated embodiment, the second resolution is higher than the first resolution (however, this is not required, and the second resolution may be the same as the first resolution, in which case upsampling may not be performed). The reconstruction module 960c is configured to generate the upsampled modified decrypted decoded reproduction of the base layer of the video signal by upsampling the modified decrypted decoded presentation of the base layer 961c, so that the upsampled modified decrypted decoded reproduction of the base layer 961c has a second resolution. The reconstruction module 960c is configured to apply the decoded representation of the positive residual layer 962c to the upsampled modified decrypted decoded representation of the base layer to generate an output plane.The module 960c is configured to output the output plane 963c to the secure memory 110c via a secure channel for storage in the secure memory 110c.
[0203] exist Fig. 9 In the embodiment shown, the reconstruction module 960c may be a hardware scaling and synthesis block as typically found within a video decoder SoC. The reconstruction module 960c may be a hardware 2D processor or GPU operating on secure memory.
[0204] The secure memory 110c is configured to output (via a secure channel) to the reconstruction module 960c a modified, decrypted, decoded rendition of the base layer of the video signal 961c. The secure memory 110c is configured to receive from the module 960c an output plane 963c generated by the reconstruction module 960c. The secure memory 110c is configured to store the output plane 963c. The secure memory 110c is configured to output (971c) the output plane 963c to the output module 970c.
[0205] exist Fig. 9 In the embodiment, the computing system 100c includes an output module 970c, which may be a video shifter. The output module 970c is configured to receive an output plane 971c from the secure memory 110c. The output module 970c is configured to output the output plane 133c to a protected display (not shown).
[0206] Fig.10A block diagram of an enhancement decoder incorporating the steps of the separation stage and subtraction stage described elsewhere in this disclosure and the broad general steps of an enhancement decoder is shown. As described elsewhere, the residuals may be generated in a separate form as shown here, rather than being formed separately from a set of residuals created by the enhancement decoder.
[0207] An encoded base stream and one or more enhancement streams are received at the decoder 200 .
[0208] The encoded elementary stream is decoded at the elementary decoder 220 to produce a basic reconstruction of the input signal 10 received at the encoder. This basic reconstruction can be used in practice to provide a visual reproduction of the signal at a lower quality level. However, this basic reconstruction signal also provides a basis for a higher quality reproduction of the input signal.
[0209] Fig.10 Both sub-layer 1 reconstruction and sub-layer 2 reconstruction are shown. In the enhanced decoder shown, reconstruction of sub-layer 1 is optional.
[0210] At sub-layer 1, in order to reconstruct the level 1 video signal, the decoded base stream is provided to the processing block. The processing block also receives the encoded level 1 stream and reverses any encoding, quantization, and transforms that have been applied by the encoder. The processing block includes an entropy decoding process 230-1, an inverse quantization process 220-1, and an inverse transform process 210-1. Optionally, only one or more of these steps may be performed depending on the operations performed at the corresponding block at the encoder. By performing these corresponding steps, a decoded level 1 stream including a first set of residuals is made available at the decoder 200. The first set of residuals is combined with the decoded base stream from the base decoder 220 (i.e., a summing operation 210-C is performed on the decoded base stream and the decoded first set of residuals to produce a reconstruction of a downsampled version of the input video - i.e., the reconstructed base codec video).
[0211] Additionally, and optionally in parallel, the encoded layer 2 stream is processed to produce another set of decoded residuals. Similar to the layer 1 processing block above, the layer 2 processing block includes an entropy decoding process 230-2, an inverse quantization process 220-2, and an inverse transform process 210-2. These operations will correspond to the operations performed at the block in the encoder, and one or more of these steps may be omitted as desired.
[0212] like Fig.10 As shown, the output of the level 2 processing block is a set of 'positive' residuals and a set of 'negative' residuals at a lower resolution, optionally as shown.
[0213] At operation 1040-S, the 'negative' residual is subtracted from the decoded base stream from base decoder 220 to output a modified decoded base stream. The modified decoded base stream is upsampled at upsampler 1005U and added to the positive residual at a higher resolution at operation 200-C to create a level 2 reconstruction of the input signal 10.
[0214] As described above, the enhancement stream may include two streams, namely, an encoded layer 1 stream (first enhancement layer) and an encoded layer 2 stream (second enhancement layer). The encoded layer 1 stream provides a set of correction data that can be combined with a decoded version of the base stream to generate a corrected picture.
[0215] Although Fig.10 The positive and negative residuals are shown separated and applied in sub-layer 2 reconstruction, but it is possible to implement the concepts described herein in sub-layer 1 reconstruction if sub-layer 1 reconstruction is also implemented. For example, the residuals can be included by generating positive and negative residuals for the sub-layers and then adding and subtracting them before applying the negative residual.
[0216] The architecture used to implement the above concepts may include three main components.
[0217] The first component may be a user space application. Its purpose may be to parse the input transport stream (e.g., MPEG2), extract the base video and LCEVC streams (e.g., SEI NALU and dual-track multiplexing). The application's functions are: configure the hardware base video decoder and pass the base video for decoding; decode the LCEVC stream using DPI to create a pair of positive and negative residual planes; and the base video decode and negative residual are sent to the LCEVC device driver.
[0218] The second component of the architecture may be an LCEVC device driver. Its purpose is to manage the buffer of the LCEVC residual, configure the graphics accelerator unit and add dithering. The graphics accelerator unit may be an independent 2D graphics acceleration unit with image scaling, rotation, flipping, alpha blending and other functions. The function of the LCEVC device driver may be to synthesize the output of the base decoder with the negative residual (by subtraction) using the graphics accelerator unit; and then, the output of the graphics accelerator unit and the positive residual are sent to the display driver.
[0219] The third component of the architecture can be a display driver. Its purpose is that the modified video device driver uses a mixer and a set of hardware synthesizers to perform upscaling and compositing. The mixer can be used to synthesize multiple video planes into a single output. The function of the display driver is that the output of the graphics accelerator unit is upscaled and then synthesized using a mixer (by pre-calculated alpha addition) with the full resolution positive residual and a randomly generated dither mask placed on the on-screen display (OSD) plane; and the output of the mixer is sent to the display driver.
[0220] In implementation, the base video and enhanced video will be kept in hardware protected buffers (ie, secure video path) throughout the process.
[0221] The implementation differs slightly in different SoC variants. Some variants of the SoC have more features that allow additional capabilities such as negative residuals at enhanced resolutions, second upscaling, color management or image sharpening. Fundamentally, the architecture remains the same, i.e.: the graphics accelerator unit is used for negative residuals; and the mixer is used for positive residuals.
[0222] According to further examples of how the concept of two sets of residuals may be implemented, it is contemplated that additional operations may be provided to either or both of the sets of residuals (ie, positive or negative residuals) prior to combining to improve the efficiency or effectiveness of the final result. Figures 11 to 13 An example of this is shown in , which show a simplification of a hybrid diagram showing possible data flows for applying LCEVC enhancements to a video.
[0223] In the following description, we indicate exemplary input video planes with (vd1) and (vd2) and exemplary graphics planes with (osd1). Note that the desired method for enhancing a base video with LCEVC is to: perform a x2 upscaling of the base video using a specified scaler coefficient (kernel); add a predicted mean, i.e., the difference between the pixel value in the base video and the mean of the 4 pixels in the corresponding 2x2 upscaled block; apply a plane of signed offsets to the result; and dither the output by adding a plane of signed random values. Preferably, these steps are performed in hardware. Due to the nature of the hardware blocks and their connections in the SoC and the limitations of memory bandwidth, a compromise solution is implemented, as described elsewhere in this document: subtract negative residuals from the base video at the base video resolution; perform a x2 upscaling (of the base video—negative residuals) using a specified scaler coefficient; and use blending to add the full-resolution positive residuals to the upscaled result. For dithering, blending is used to add a plane of positive random values—scaling is performed so that the positive random values do not exceed the specified dither strength.
[0224] As shown, dithering can be applied at a lower resolution, and then combined with the video signal to produce the final output. This method brings surprisingly good visual quality. In other words, dithering is applied at a separate plane and at a resolution lower than the output resolution. In addition, dithering can be applied to each of the YUV planes, while usually dithering can be applied to only one.
[0225] Consistent with the concepts described in this disclosure, two signals may be output from the enhancement decoding function and combined with the base decoded video signal. Thus, the inputs to the video display path are a set of 'positive' residuals as described elsewhere herein, a set of 'negative' residuals as described elsewhere herein (typically at a lower resolution than the 'positive' residuals), and the base decoded video signal (typically at a lower resolution than the 'positive' residuals, and typically at the same resolution as the 'negative' residuals, but not always as described herein). Fig.13 as explained in the context of the ).
[0226] As described elsewhere above, we use the terms positive and negative in this context as labels to describe the functionality of the two sets of residuals that are combined together to recreate the effect of the expected residual on the base decoded video signal. The negative residual is not itself negative, but rather modifies the base decoded residual to recreate the effect of the negative part of the residual layer.
[0227] In an example, the positive residual may be at 4K resolution, the base decoded video signal and the negative residual may be at 1080P resolution (or Fig.13 It should be understood that these are just example resolutions.
[0228] Consistent with the above-described processing path, the negative residual is subtracted from the base decoded video signal. This may be performed at a graphics accelerator block (such as an Amlogic GE2D 2D graphics accelerator unit). The output of the subtraction may be in an 8-bit modified form of the base decoded video signal. In this example, after the subtraction, the modified base decoded signal is upgraded. Here, the upgrade is to match the 4K resolution of the original video and the 4K resolution of the positive residual. It should be understood that scaling may depend on the resolution of the signal and is not restrictive. In this example, the upgraded modified base decoded video signal is then combined with the positive residual to output LCEVC enhanced video in the pre-mixing stage. This enables additional hardware enhancements, such as color management, sharpening, etc., if desired.
[0229] exist Fig.11In the first example shown, an exemplary path 1100 is shown. A 1080P negative residual 1102 is subtracted from a 1080P base video signal 1103 by a subtraction module 1104. This output (typically 8 bits) is then scaled 1105, e.g., x2 upscaled to 4K. This output (vd2) can then be combined with a 4K positive residual 1101 (vd1) at a pre-mixing stage 1106.
[0230] like Fig.11 As shown, a jitter plane 1107, such as a 960x540 jitter plane, may be scaled and applied to a scaled version of the LCEVC enhanced output itself scaled for the display resolution at the post-mixing stage 1110. That is, the enhanced video output from the pre-mixing stage 1106 is scaled to the display resolution (vd1) by the scaling module 1109, which is input to the post-mixing stage 1110 along with the scaled jitter plane, also at the display resolution (osd2). The video may then be output for display 1111.
[0231] In other words, the LCEVC enhancement output (i.e., the output of the premixed and enhanced video data) can be scaled to a display resolution such as a 4:4:4 display resolution, where luma and chroma have the same spatial resolution (other display resolutions, such as 4:2:2 or 4:2:0, are of course contemplated). The dither plane can also be scaled to the display resolution, in this example 4:2:2. The dither plane and the scaled enhanced video signal are then combined at the post-mixing stage to generate video for display.
[0232] As described above, applying dithering in this manner (ie outputting enhanced video at the pre-mixing stage and then applying dithering at the post-mixing stage) produces surprisingly good display quality. Furthermore, arranging the video display path in this manner allows display at any resolution.
[0233] The dither plane is input (ie applied) at a lower resolution before scaling.
[0234] Fig.12 An alternative example is shown in Fig.12 In the illustration of , the dither planes are combined at the pre-mixing stage before the 4K positive residual is combined later.
[0235] As in the above example, the 1080P negative residual 1202 is subtracted from the 1080P base video 1203 by the subtraction module 1204. Then, Fig.11 The output (typically 8 bits) is passed (vd1) to the pre-mixing stage 1206 without first being scaled. A dither plane (in this example a 1080p dither plane at 4:2:2 resolution) 1107 is also passed (osd2) to the pre-mixing stage 1206.
[0236] The output of the pre-mixing stage is then scaled 1209, e.g., upscaled to the display resolution, which is typically x2, at 4K. The scaled output, e.g., at a 4:4:4 display resolution, is then combined (vd1) with the 4K positive residual 1201 (vd2) at the post-mixing stage 1210 for output to a display 1211.
[0237] exist Fig.12 In the example above, usually the display resolution can match the video content resolution because there is nothing else to scale between the two.
[0238] Fig.13 A third illustrated example of a video display path 1300 is shown in . In this example, the same 2D accelerator unit performs upscaling and subtraction, and then combines the dither planes at the pre-mixing stage.
[0239] exist Fig.13 In the example of , the negative residual 1312 is at 4K instead of 1080P, as in Fig.11 and Fig.12 , i.e. they have the same resolution as the positive residual - the output resolution. Thus, in this example, the 1080P base video 1303 is upscaled (typically x2 upscaling) and then the 4K negative residual is subtracted from the 4K scaled base video. In this example, upscaling and subtraction are performed by the same module 1314. Typically, this output is 8-bit and is then passed to the pre-mixing stage 1306.
[0240] The pre-mixing stage 1306 combines the 4K positive residual 1301 (vd2) with the modified 4K scaled base video (vd2) and the dither plane 1307 (osd2). The dither plane in this example may be 1080P at a 4:2:2 display resolution, although other display resolutions are certainly possible.
[0241] The output of the pre-mixing stage 1306 is then scaled 1309 to the display resolution before being passed to the post-mixing stage 1310 and then output for display 1311 .
[0242] Fig.13 The compromise for the example is that while the accelerator unit performing the upscaling and subtraction may be slow and require a lot of memory bandwidth, the negative residuals have the same resolution as the positive residuals, making it easier to split the planes of signed residuals output from the decoder.
[0243] In summary, in the video path above, positive dithering is applied at a lower resolution, upscaled, and then added to the final output. In other words, dithering is applied at a separate plane and at a lower resolution than the output resolution. Furthermore, dithering is applied to each of the YUV planes, whereas dithering would normally only be applied to one.
[0244] In general, any of the functionality described herein or shown in the drawings may be implemented using software, firmware (e.g., fixed logic circuitry), programmable or non-programmable hardware, or a combination of these embodiments. In general, the terms "component" or "function" as used herein refer to software, firmware, hardware, or a combination of these. For example, in the case of a software embodiment, the term "component" or "function" may refer to program code that performs a specified task when executed on one or more processing devices. The illustrated separation of components and functions into distinct units may reflect any actual or conceptual physical grouping and allocation of such software and / or hardware and tasks.
Claims
1. A module for use in a video decoder, the module being configured to: receiving one or more residual data layers from the enhancement decoding layer, the one or more residual data layers generated based on a comparison of data derived from the decoded video signal and data derived from the original input video signal; processing the one or more layers of residual data to generate a set of modified residuals including one or more layers of positive residual data, wherein the positive residual data includes only values greater than or equal to zero; Generate one or more correction data layers, the correction data being configured to be combined with a base decoded video signal from a base decoding layer to modify the base decoded video signal so that when the one or more positive residual data layers are combined with the modified base decoded video signal to generate enhanced video data, the enhanced video data corresponds to a combination of the base decoded video signal and the one or more residual data layers from the enhancement decoding layer.
2. The module of claim 1, wherein the dimensions of the one or more correction data layers correspond to the dimensions of a downsampled version of the one or more residual data layers.
3. A module according to any preceding claim, wherein the positive residual data is generated using the correction data and the one or more residual data layers.
4. A module according to any preceding claim, wherein elements of the correction data are calculated as functions of a plurality of elements of the residual data.
5. A module according to claim 3 or 4, wherein the elements of the correction data are calculated according to the following formula: n = -f(a, b, c, d); Where n is the element of the correction data, and a, b, c, d are the elements of the residual data, wherein the elements a′, b′, c′, d′ of the positive residual data are calculated according to the following formula: a′=a+n; b′=b+n; c′=c+n; d′=d+n; And the elements a′, b′, c′, d′ of the positive residual data correspond to the elements a, b, c, d of the residual data, respectively. Preferably n--min(a, b, c, d).
6. A module according to any preceding claim, wherein the module is a module in a CPU or a GPU of a video decoder chipset.
7. A module for use in a video decoder, the module being configured to: receiving a base decoded video signal from a base decoding layer; receiving one or more correction data layers; and combining correction data with the base decoded video signal to modify the base decoded video signal such that when one or more layers of positive residual data are combined with the modified base decoded video signal to generate enhanced video data, the enhanced data corresponds to a combination of the base decoded video signal and one or more layers of residual data from enhancement decoded layers, Wherein the positive residual data includes only values greater than or equal to zero and is based on one or more residual data layers from an enhanced decoding layer, wherein the one or more residual data layers are generated based on a comparison of data derived from the decoded video signal with data derived from the original input video signal.
8. The module of claim 7, wherein the module is a subtraction module configured to subtract the one or more correction data layers from the base decoded video signal to generate a modified decoded video signal.
9. The module according to claim 7 or 8, wherein the module is a hardware block of a video decoder chipset or a module in a GPU.
10. The module of claim 8 or 9, wherein the subtraction module is included in a secure area of a video decoder chipset and performs operations on a secure memory of the video decoder chipset.
11. A module according to any one of claims 7 to 10, wherein the module is further configured to apply a dither plane, wherein the dither plane is input at a first resolution, the first resolution being lower than a resolution of the enhanced video data.
12. A video decoder comprising a module according to any one of claims 1 to 6 and / or any one of claims 7 to 10.
13. The video decoder of claim 11, further comprising a reconstruction module configured to combine the modified base decoded video signal with the one or more positive residual data layers.
14. The video decoder of claim 12, wherein the reconstruction module comprises an upscaling module configured to upscale the modified base decoded video signal prior to the combining.
15. The video decoder of claim 13, wherein the upgrader is a hardware upgrader operating on a secure memory.
16. The video decoder according to any one of claims 12 to 14, wherein the reconstruction module is a hardware block of a video decoder chipset, a GPU or a module in a video output path.
17. The video decoder of claim 15, wherein the reconstruction module is a module of a video shifter.
18. The video decoder according to any one of claims 11 to 16, further comprising the base decoding layer, wherein the base decoding layer comprises a base decoder configured to receive a base encoded video signal and output the base decoded video signal.
19. The video decoder according to any one of claims 11 to 17, further comprising an enhancement decoder implementing the enhancement decoding layer, the enhancement decoder being configured to: receiving an encoded enhanced signal; and The encoded enhancement signal is decoded to obtain the one or more residual data layers.
20. A module or video decoder as claimed in any preceding claim, wherein the enhancement decoding layer complies with the LCEVC standard.
21. A method for use in a video decoder, the method comprising: receiving one or more residual data layers from the enhancement decoding layer, the one or more residual data layers generated based on a comparison of data derived from the decoded video signal and data derived from the original input video signal; processing the one or more layers of residual data to generate a set of modified residuals including one or more layers of positive residual data, wherein the positive residual data includes only values greater than or equal to zero; Generate one or more correction data layers, the correction data being configured to be combined with a base decoded video signal from a base decoding layer to modify the decoded video signal, such that when the one or more positive residual data layers are combined with the modified base decoded video signal to generate enhanced video data, the enhanced video data corresponds to a combination of the base decoded video signal and the one or more residual data layers from the enhancement decoding layer.
22. A method according to claim 20, wherein the positive residual data is generated using the correction data and the one or more residual data layers, and / or wherein the elements of the correction data are calculated as a function of multiple elements of the residual data.
23. The method of claim 21, wherein the positive residual data is generated using the correction data and the one or more residual data layers, preferably wherein the elements of the correction data are calculated according to the following formula: n = -f(a, b, c, d); Where n is the element of the correction data, and a, b, c, d are the elements of the residual data, wherein the elements a′, b′, c′, d′ of the positive residual data are calculated according to the following formula: a′=a+n; b=b+n; c′=c+n; d′=d+n; And the elements a′, b′, c′, d′ of the positive residual data correspond to the elements a, b, c, d of the residual data, respectively. More preferably n=-min(a, b, c, d).
24. A method for use in a video decoder, the method comprising: receiving a base decoded video signal from a base decoding layer; receiving one or more correction data layers; as well as combining correction data with the base decoded video signal to modify the decoded video signal such that when one or more layers of positive residual data are combined with the modified base decoded video signal to generate enhanced video data, the enhanced video data corresponds to a combination of the base decoded video signal and one or more layers of residual data from enhancement decoded layers, Wherein the positive residual data includes only values greater than or equal to zero and is based on one or more residual data layers from an enhanced decoding layer, wherein the one or more residual data layers are generated based on a comparison of data derived from the decoded video signal with data derived from the original input video signal.
25. The method of claim 23, wherein the step of combining comprises subtracting the one or more correction data layers from the base decoded video signal to generate a modified decoded video signal.
26. The method of claim 23 or 24, wherein the one or more correction data layers are generated according to the method of claim 20 or 21.
27. The method according to any one of claims 23 to 25, further comprising: upsampling the modified base decoded video signal; as well as The upsampled modified base decoded video signal is combined with the one or more positive residual data layers to generate a decoded reconstruction of the original input video signal. Preferably, the step of combining the upsampled modified base decoded video signal with the one or more positive residual data layers is performed by a hardware block, a GPU or a video output path of a video decoder chipset.
28. The method of any one of claims 24 to 27, further comprising applying a dither plane, wherein the dither plane is input at a first resolution, the first resolution being lower than a resolution of the enhanced video data.
29. A non-transitory computer readable medium comprising a computer program code configured to cause a processor to implement the method according to any one of claims 20 to 26.
