Data Encoding and Decoding

The method addresses inefficiencies in encoding and decoding continuous data by employing a dual encoding/decoding technique with historical data analysis, enhancing compression and decompression efficiency by managing excess values effectively.

JP7537523B2Active Publication Date: 2024-08-21SONY GROUP CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2022575944
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-11-23
Filing Date
2021-06-16
Publication Date
2024-08-21
Estimated Expiration
2041-06-16

AI Technical Summary

Technical Problem

Existing video or image data encoding systems face challenges in efficiently encoding and decoding continuous data items, particularly when dealing with excess values that cannot be encoded by traditional significance maps, leading to inefficiencies in data compression and decompression processes.

Method used

A method and apparatus for encoding and decoding continuous data items using a combination of first and second encoding/decoding techniques, where historical data is utilized to determine the characteristics of the data items, allowing for the selection of appropriate encoding/decoding datasets and handling remaining values through escape codes with adaptive encoding/decoding processes.

Benefits of technology

This approach enhances the efficiency of data encoding and decoding by optimizing the use of encoding techniques based on historical data, effectively managing excess values and improving the overall compression and decompression performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007537523000017
    Figure 0007537523000017
  • Figure 0007537523000009
    Figure 0007537523000009
  • Figure 0007537523000020
    Figure 0007537523000020
Patent Text Reader

Abstract

1. A method for encoding a continuous data item, the method comprising the steps of: storing historical data for an encoded data item; encoding the given data item using a first encoding technique; and encoding any remaining values ​​of the given data item using a second encoding technique different from the first encoding technique, wherein the historical data indicates one or more characteristics for encoding the encoded data item, and wherein the first encoding technique encodes a series of zero or more data sets, each data set representing a respective range of values ​​for the data item; and selecting a series of data sets from a plurality of candidate data sets depending on (i) a plurality of previously encoded data sets and (ii) the historical data applicable to a given characteristic of the given data item, the remaining values ​​being an amount by which the given data item exceeds a maximum value that can be encoded by the first encoding technique.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to encoding and decoding data. [Background technology]

[0002] The description of the "Background Art" in this specification is intended to generally describe the background of this application. The inventors' techniques, to the extent described in this Background Art section, are not admitted, expressly or impliedly, as prior art to this application, as are aspects of the description that should not be considered prior art if they were not prior art at the time of filing this application.

[0003] There are several video or image data encoding and decoding systems that convert video data into a frequency domain representation, quantize the resulting frequency domain coefficients, and then apply some kind of entropy coding to the quantized coefficients, thereby compressing the video data. By applying a corresponding decoding or decompression technique, the original video data is reconstructed and restored.

[0004] In some examples, the entropy encoding process involves generating one or more "data sets" (such as a significance map, a greater than 1 map, a greater than 2 map, and / or other data sets) to describe the block of coefficients, and excess values ​​that cannot be encoded by the significance map alone are encoded as so-called escape values. Encoding the escape value may be performed (in some examples) by generating a first part (e.g., a unary or truncated unary encoded part such as a prefix) and a non-unary encoded second part (e.g., a suffix) having a length in bits that depends on the size value of the second part. Summary of the Invention

[0005] The present disclosure addresses or alleviates issues arising from this process.

[0006] The present disclosure provides a method for encoding consecutive data items, the method comprising: storing historical data for the encoded data items; encoding a given data item by a first encoding technique; encoding any remaining values ​​of said given data item using a second encoding technique different from said first encoding technique; Including, the historical data indicating one or more characteristics encoding the encoded data item; The first encoding technique is encoding a series of zero or more data sets each representing a respective range of values ​​for said data item; (i) selecting a set of data sets from a plurality of candidate data sets in dependence upon a plurality of previously encoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be encoded by the first encoding technique.

[0007] The present disclosure further provides a method for decoding an input data signal representing successive data items, the method comprising: storing historical data for the decrypted data items; Decrypting the given data item using a first decryption technique; decrypting any remaining values ​​of the given data item using a second decryption technique different from the first decryption technique; Including, the historical data being indicative of one or more characteristics of decoding the decoded data item; The first decoding technique is as follows: decoding a series of zero or more data sets, each data set representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence upon (i) a plurality of previously decoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be decoded by the first decoding technique.

[0008] The present disclosure further provides an apparatus for encoding consecutive data items, the apparatus comprising: a historical data store configured to store historical data for the encoded data items; a first encoding circuit configured to encode a given data item according to a first encoding technique; a second encoding circuit configured to encode any remaining values ​​of the given data item by a second encoding technique different from the first encoding technique; Equipped with the historical data indicating one or more characteristics encoding the encoded data item; The first encoding technique is encoding a series of zero or more data sets each representing a respective range of values ​​for said data item; (i) selecting a set of data sets from a plurality of candidate data sets in dependence upon a plurality of previously encoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be encoded by the first encoding technique.

[0009] The present disclosure further provides an apparatus for decoding an input data signal representing successive data items, the apparatus comprising: a historical data storage unit configured to store historical data for the decrypted data items; a first decoding circuit configured to decode the given data item according to a first decoding technique; a second decoding circuit configured to decode any remaining values ​​of the given data item by a second decoding technique different from the first decoding technique; Equipped with the historical data being indicative of one or more characteristics of decoding the decoded data item; The first decoding technique is as follows: decoding a series of zero or more data sets, each data set representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence upon (i) a plurality of previously decoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be decoded by the first decoding technique.

[0010] The present disclosure further provides a method of encoding a block of consecutive data items, the method comprising: storing historical data for the block of encoded data items; generating block parameters for a block of a given data item; encoding a given data item of said block of given data items by a first encoding technique; encoding any remaining values ​​of said given data item using a second encoding technique different from said first encoding technique; Including, the historical data indicating one or more characteristics encoding the blocks of data items; the block parameters are at least partially dependent on historical data applicable to the given block of data items; The first encoding technique is encoding a series of zero or more data sets each representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence on the block parameters generated for the given block of data items; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be encoded by the first encoding technique.

[0011] The present disclosure further provides a method of decoding a block of consecutive data items, the method comprising: storing historical data for the block of decrypted data items; generating block parameters for a block of a given data item; Decoding a given data item of said block of given data items by a first decoding technique; decrypting any remaining values ​​of the given data item using a second decryption technique different from the first decryption technique; Including, the historical data being indicative of one or more characteristics that decode the blocks of data items; the block parameters are at least partially dependent on historical data applicable to the given block of data items; The first decoding technique is as follows: decoding a series of zero or more data sets, each data set representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence on the block parameters generated for the given block of data items; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be decoded by the first decoding technique.

[0012] The present disclosure further provides an apparatus for encoding a block of consecutive data items, the apparatus comprising: a history data store configured to store history data for the block of encoded data items; a generator circuit configured to generate block parameters for a block of a given data item; a first encoding circuit configured to encode a given data item of said block of given data items by a first encoding technique; a second encoding circuit configured to encode any remaining values ​​of the given data item by a second encoding technique different from the first encoding technique; Equipped with the historical data indicating one or more characteristics encoding the blocks of data items; the block parameters are at least partially dependent on historical data applicable to the given block of data items; The first encoding technique is encoding a series of zero or more data sets each representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence on the block parameters generated for the given block of data items; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be encoded by the first encoding technique.

[0013] The present disclosure further provides an apparatus for decoding a block of consecutive data items, the apparatus comprising: a history data store configured to store history data for blocks of decrypted data items; a generator circuit configured to generate block parameters for a block of a given data item; a first decoding circuit configured to decode a given data item of the block of given data items according to a first decoding technique; a second decoding circuit configured to decode any remaining values ​​of the given data item by a second decoding technique different from the first decoding technique; Equipped with the historical data being indicative of one or more characteristics that decode the blocks of data items; the block parameters are at least partially dependent on historical data applicable to the given block of data items; The first decoding technique is as follows: decoding a series of zero or more data sets, each data set representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence on the block parameters generated for the given block of data items; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be decoded by the first decoding technique.

[0014] Further respective aspects and features of the present disclosure are defined in the appended claims.

[0015] It should be understood that the above general description and the following detailed description are examples of the present technology and are not intended to limit the present technology. [Brief description of the drawings]

[0016] A complete understanding of the present technology and many of its advantages will be readily appreciated by considering the following detailed description in conjunction with the accompanying drawings, in which: [Figure 1] FIG. 1 is a schematic diagram showing an audio / video (A / V) data transmission and reception system that compresses and decompresses video data. [Diagram 2] FIG. 1 is a schematic diagram illustrating a video display system with video data decompression. [Diagram 3] FIG. 1 is a schematic diagram illustrating an audio / video storage system that compresses video data and decompresses video data. [Figure 4] FIG. 1 is a schematic diagram showing a video camera that performs compression of video data. [Diagram 5] FIG. 2 is a schematic diagram showing a storage medium. [Figure 6]FIG. 2 is a schematic diagram showing a storage medium. [Figure 7] 1 is a schematic diagram showing a video data compression and decompression device; [Figure 8] FIG. 2 is a schematic diagram showing a prediction unit. [Figure 9] Indicates conversion skip mode. [Figure 10] a and b show schematic scan directions. [Figure 11] a and b show schematic scan directions. [Figure 12] FIG. 1 is a schematic diagram showing an encoding device. [Figure 13] FIG. 2 is a schematic diagram showing a decoding device. [Figure 14] 1 is a schematic flow chart illustrating one method. [Figure 15] 1 is a schematic flow chart illustrating one method. [Figure 16] 1 is a schematic flow chart illustrating one method. [Figure 17] 1 is a schematic flow chart illustrating one method. [Figure 18] 1 is a schematic flow chart illustrating one method. [Figure 19] 1 is a schematic flow chart illustrating one method. [Figure 20] 1 is a schematic flow chart illustrating one method. [Figure 21] 1 is a schematic flow chart illustrating one method. [Figure 22] 1 is a schematic flow chart illustrating one method. [Diagram 23] 1 is a schematic flow chart illustrating one method. [Figure 24] 1 is a schematic flow chart illustrating one method. [Diagram 25] 1 is a schematic flow chart illustrating one method. [Figure 26] 1 is a schematic flow chart illustrating one method. [Figure 27] 1 illustrates the use of templates. [Figure 28] 1 illustrates the use of templates. [Figure 29] 1 illustrates the use of templates. [Diagram 30] 1 illustrates the use of templates. [Diagram 31] 1 illustrates the use of templates. [Diagram 32] 1 illustrates the use of templates. [Diagram 33] 1 illustrates the use of templates. [Diagram 34] 1 illustrates the use of templates. [Diagram 35] 1 illustrates the use of templates. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] Referring now to the drawings, FIGS. 1 to 4 show schematic diagrams of an apparatus or system that utilizes a compression device and / or a decompression device according to each embodiment of the present technology described below.

[0018] All of the data compression and / or decompression devices described below may be implemented in hardware or as programmable hardware, such as an Application Specific Integrated Circuit (ASIC) or a Field Programmable Gate Array (FPGA), or a combination of these, or in software running on a general-purpose data processing device, such as a general-purpose computer. For embodiments implemented in software and / or firmware, it will be understood that such software and / or firmware, as well as non-transitory data recording media on which such software and / or firmware is stored or provided, are considered embodiments of the present technology.

[0019] 1 is a schematic diagram of an audio / video data transmission and reception system for compressing and decompressing video data, in this example, the data values ​​being encoded or decoded represent image data.

[0020] An input audio / video signal 10 is provided to a video data compression device 20 which compresses at least the video element of the audio / video signal 10 and is transmitted along a transmission route 30, e.g. a cable, optical fiber, wireless link, etc. The compressed signal is processed by a decompressor 40 which provides an output audio / video signal 50. On the return path, a compressor 60 compresses the audio / video signal which is transmitted along the transmission route 30 to a decompressor 70.

[0021] Thus, compressor 20 and decompressor 70 may constitute one node of a transmission link, and decompressor 40 and compressor 60 may constitute another node of the transmission link. Of course, if the transmission link is unidirectional, then only one of these nodes will require a compressor and only the other will require a decompressor.

[0022] 2 is a schematic diagram of a video display system that performs video data decompression. Specifically, a compressed audio / video signal 100 is processed by a decompressor 110, which provides a decompressed signal that can be displayed on a display device 120. The decompression device 110 may be formed integrally with the display device 120, for example, by being provided in the same housing as the display device 120. Alternatively, the decompression device 110 may be provided (for example) as a so-called set-top box (STB). Note that the term "set-top" does not imply that the box must be placed in a particular orientation or position relative to the display device 120. The term is simply used in the art to denote a device that can be connected to a display as a peripheral.

[0023] 3 is a schematic diagram of an audio / video storage system that compresses and decompresses video data. An input audio / video signal 130 is provided to a compressor 140 which produces a compressed signal which is stored in a storage device 150, for example a magnetic disk drive, optical disk drive, magnetic tape drive, or a solid state storage device such as a semiconductor memory or other storage device. During playback, the compressed data is read from the storage device 150 and sent to a decompressor 160 for decompression, thereby providing an output audio / video signal 170.

[0024] It will be appreciated that compressed or otherwise encoded signals and storage media, such as non-transitory machine-readable storage media, that store the signals are considered embodiments of the technology.

[0025] FIG. 4 is a schematic diagram showing a video camera that performs compression of video data. 4, an image capture device 180, such as a Charge Coupled Device (CCD) image sensor and associated control and readout electronics, generates a video signal that is sent to a compression device 190. One or more microphones 200 generate audio signals that are sent to the compression device 190. The compression device 190 generates a compressed audio / video signal 210 (collectively represented as stage 220) for storage and / or transmission.

[0026] The techniques described below are primarily directed to the compression and decompression of video data, it being understood that many existing techniques may be used to generate compressed audio / video signals in conjunction with the video data compression techniques described below to effect compression of audio data. Therefore, compression of audio data will not be discussed separately, and it will also be appreciated that the data rates associated with video data are typically much higher than the data rates associated with audio data (whether compressed or uncompressed), particularly in broadcast quality video data. It will thus be appreciated that uncompressed audio data can be added to compressed video data to result in a compressed audio / video signal. Furthermore, although the embodiments of the present invention (see Figures 1-4) relate to audio / video data, it will be appreciated that the techniques described below may also be used in systems that simply process (i.e. compress, decompress, store, display and / or transmit) video data. That is, the embodiments do not necessarily relate to audio data processing, but may also be applied to the compression of video data.

[0027] Figure 4 thus provides an example of a video capture device including an image sensor and an encoding device of the type described below, and Figure 2 thus provides an example of a decoding device of the type described below, and a display device on which the decoded image is output.

[0028] The combination of Figures 2 and 4 can provide a video capture device including an image sensor 180 and an encoding device 190, a decoding device 110, and a display device 120 where the decoded images are output.

[0029] 5 and 6 are schematic diagrams showing storage media that store (for example) compressed data generated by apparatus 20, 60, compressed data input to apparatus 110, or storage media or storage 150, 220. Figure 5 is a schematic diagram of a disk-type storage medium such as a magnetic disk or an optical disk. Figure 6 is a schematic diagram of a solid-state storage medium such as a flash memory. Figures 5 and 6 also show examples of non-transitory device-readable storage media that store computer software that, when executed by a computer, causes the computer to perform one or more of the methods described below.

[0030] Thus, the above arrangements provide examples of video storage, capture, transmission and reception devices embodying any of the present techniques.

[0031] FIG. 7 provides a schematic diagram of an image data compression and decompression apparatus for encoding and / or decoding video or image data representing one or more images.

[0032] The controller 343 controls the overall operation of the video data compression and decompression device, and in particular the compression mode, by acting as a selector to select various operational aspects such as block size and shape, thereby controlling the trial encoding process. The control unit 343 also controls whether the video data is encoded lossily or not. The control unit 343 may be considered as forming part of an image encoder or image decoder (as the case may be). Successive images of the input video signal 300 are provided to a summing unit 310 and to an image prediction unit 320. The image prediction unit 320 will be described in more detail below with reference to FIG. 8. An image encoder or image decoder (as the case may be) may use features from the apparatus shown in Figure 7 together with the intra image predictor of Figure 8. However, the image encoder or image decoder does not necessarily require all the features shown in Figure 7.

[0033] The adder 310 effectively performs a subtraction (negative addition) operation, receiving the input video signal 300 on its "+" input and the output of the image predictor 320 on its "-" input, thereby subtracting the predicted image from the input image, resulting in a so-called residual image signal 330, which represents the difference between the actual image and the predicted image.

[0034] One reason for generating a residual image signal is the following: the described data coding techniques, i.e. techniques applied to the residual image signal, tend to work more efficiently when there is less "energy" in the image being coded, where the term "efficient" refers to the small amount of coded data produced. For a particular image quality level, it is desirable (and considered "efficient") to generate as little data as possible. The "energy" of a residual image refers to the amount of information contained in the residual image: if the predicted image and the actual image were identical, the difference between these two images (i.e., the residual image) would contain zero information (zero energy) and could be very easily coded into a small amount of coding data. In general, if the prediction process can be performed reasonably well, such that the content of the predicted image is similar to the content of the image to be encoded, it is expected that the residual image data will have less information (less energy) than the input image and can be easily encoded into a smaller amount of encoding data.

[0035] Thus, encoding (using adder 310) involves predicting an image region for the image to be coded, and generating a residual image region that depends on the difference between the predicted image region and the corresponding region of the image to be coded. In conjunction with the techniques described below, the ordered array of data values ​​includes the data values ​​of a representation of the residual image region. Decoding includes predicting an image region for the image to be decoded; generating a residual image region that indicates the differences between the predicted image region and the corresponding region of the image to be decoded; an ordered array of data values ​​comprising data values ​​of a representation of the residual image region; and combining the predicted image region and the residual image region.

[0036] The remaining part of the device, which acts as an encoder (encoding the residual or difference image), is now described.

[0037] The residual image data 330 is provided to a transform section or circuit 340 which generates a Discrete Cosine Transform (DCT) representation of a block or region of the residual image data. The DCT technique itself is well known and will not be described in detail here. Also, the use of the DCT is merely an illustrative example configuration. Other transforms could be used, for example, a Discrete Sine Transform (DST). Transforms may be combined, for example, one transform followed (directly or indirectly) by another. The choice of transform scheme may be explicitly decided and / or may depend on side information used to configure the encoder and decoder. In another example, a so-called "transform skip" mode may be selectively used, in which no transform is applied.

[0038] Thus, for example, an encoding and / or decoding method may comprise the steps of predicting an image region for an image to be encoded and generating a residual image region dependent on the difference between the predicted image region and a corresponding region of the image to be encoded, An ordered array of data values ​​(described below) contains the data values ​​of the representation of the residual image region.

[0039] The output of the transform unit 340, i.e. (for example) a set of DCT coefficients for each transform block in the image data, is provided to a quantizer unit 350. A variety of quantization techniques are well known in the field of video data compression, ranging from simple multiplication by a quantization scaling factor to the application of complex look-up tables under the control of a quantization parameter. They generally serve two purposes: first, the quantization process reduces the possible values ​​that the transform data can take. Second, the quantization process increases the likelihood that the transformed data will have a zero value, allowing the entropy coding process (described below) to be more efficient in generating small amounts of compressed video data.

[0040] A data scanning process is applied by a scanner 360. The purpose of the scanning process is to reorder the quantized transformed data in order to group together as many non-zero quantized transformed coefficients as possible, and of course, to group together as many zero-valued coefficients as possible. These features allow the efficient application of so-called run-length coding or similar techniques. The scanning process thus involves selecting coefficients from the quantized transformed data, and in particular blocks of coefficients that correspond to blocks of transformed and quantized image data, in a "scan order" such that (a) all coefficients are selected once as part of the scan, and (b) the scan can effect any desired reordering. One example of a scan order that produces useful results is a diagonal order, such as the so-called Up-right Diagonal scan order.

[0041] The scan order may be different for transform skip blocks and transform blocks (blocks that have undergone at least one spatial frequency transform).

[0042] The scanned coefficients are then sent to an entropy encoder (EE) 370. Again, various entropy encoding techniques may be performed. Two examples are variations of the so-called Context Adaptive Binary Coding (CABAC) system and variations of the so-called Context Adaptive Variable-Length Coding (CAVLC) system. CABAC is generally considered to be efficient: one study showed that the amount of coded output data in CABAC is 10-20% less than that in CAVLC for comparable image quality. However, CAVLC is believed to exhibit a much lower level of complexity than CABAC. Note that although the scanning and entropy coding processes are shown as separate processes, in practice they can be combined or treated together, i.e., data can be read into the entropy encoder in scan order, as can the inverse processes described below.

[0043] The output of the entropy encoder 370 provides a compressed output video signal 380, together with additional data (described above and / or below) that defines, for example, how the prediction unit 320 generates a predicted image, whether the compressed data has been transformed, whether the transform has been skipped, etc.

[0044] However, since the operation of the predictor 320 itself depends on the decompressed compressed output data, a return path 390 is also provided.

[0045] The reason for this feature is as follows: At an appropriate stage in the decompression process (described below), decompressed residual data is generated. This decompressed residual data needs to be added to the predicted image to generate the output image (because the original residual data was the difference between the input image and the predicted image). To make this process equivalent on the compression and decompression side, the predicted image generated by the predictor 320 should be the same during the compression and decompression processes. Of course, the device does not have access to the original input image at decompression time, it can only access the decompressed image, so at compression time, the predictor 320 bases its predictions (at least for inter-image coding) on ​​the decompressed compressed image.

[0046] The entropy encoding process performed by entropy encoder 370 is considered (at least in some instances) to be "lossless," i.e., the data originally provided to entropy encoder 370 can be replaced with exactly the same data. Thus, in such instances, a return pass can be implemented prior to the entropy encoding stage. Indeed, since the scanning process performed by the scanner 360 is also considered to be lossless, in this embodiment the return path 390 runs from the output of the quantizer 350 to the input of the supplementary inverse quantizer 420. If a stage is lossy or may be lossy, this stage (and vice versa) may be included in the feedback loop formed by the return path. For example, the entropy encoding stage may, at least in principle, be made lossy, for example by techniques that encode bits in parity information. In such instances, the entropy encoding and decoding must form part of a feedback loop.

[0047] In general, entropy decoder 410, inverse scan unit 400, inverse quantizer unit 420, and inverse transform unit or circuit 430 provide the inverse functions of entropy encoder 370, scanner unit 360, quantizer unit 350, and transform unit 340, respectively. The compression process will continue here; the process for decompressing the input compressed video signal will be described separately below.

[0048] In the compression process, the scanned coefficients are sent from the quantizer 350 via a return path 390 to an inverse quantizer 420 which performs the inverse operation of the scanner 360. The inverse quantization and inverse transform processes are performed by the inverse quantizer 420 and the inverse transformer 430 to generate a compressed-decompressed residual image signal 440.

[0049] The image signal 440 is added to the output of the prediction unit 320 in adder 450 to produce a reconstructed output image 460 (although this may be subject to so-called loop filtering and / or other filtering before being output, see below). This constitutes one input to the image prediction unit 320, as will be described below.

[0050] The following describes the decoding process applied to decompress the received compressed video signal 470. The compressed video signal 470 is first supplied to an entropy decoder 410, which in turn supplies it to an inverse scanning unit 400, an inverse quantization unit 420, and an inverse transform unit 430. It is then added to the output of the image prediction unit 320 by an adder 450. Thus, on the decoder side, the decoder reconstructs the residual image and decodes each block by applying it (block by block) to the predicted image (by adder 450). Briefly, the output 460 of adder 450 forms the output decompressed video signal 480 (subject to a filtering process described below). In practice, further filtering may optionally be applied before the signal is output (e.g., using filter 565), which is shown in Figure 8. In Figure 7, which shows the overall configuration compared to Figure 8, loop filter 565 has been omitted for clarity.

[0051] The apparatus shown in Figures 7 and 8 can operate as a compression (encoding) apparatus or a decompression (decoding) apparatus. The functions of the two types of apparatus are substantially overlapped. The scanner 360 and the entropy encoder 370 are not used in the decompression mode. The operation of the predictor 320 (described in more detail below) and other sections depends on the mode and parameter information contained in the received compressed bitstream, and they do not generate this information themselves.

[0052] FIG. 8 is a schematic diagram illustrating the generation of a predicted image, and in particular the operation of the image predictor 320.

[0053] Two basic prediction modes are implemented by the image prediction unit 320: the so-called intra-image prediction and the so-called inter-image prediction or Motion-Compensated (MC) prediction. On the encoder side, each of these predictions involves finding a prediction direction for the current block to be predicted and generating a predictive block of samples depending on other samples (in the same (intra) or another (inter) image). The adder 310 or 450 encodes or decodes, respectively, the block by encoding or decoding the difference between the predicted block and the actual block.

[0054] (At the decoder side or inverse decoding side of the encoder, this detection of the prediction direction may be in response to data associated with the data encoded by the encoder indicating which direction was used by the encoder, or the detection of the prediction direction may be in response to the same factors determined by the encoder.)

[0055] Intra-image prediction is based on the prediction of the content of image blocks or regions on data taken from within the same image. This corresponds to the so-called I-frame coding in other video compression techniques. However, in contrast to I-frame coding, where the whole image is coded by intra-coding, in this embodiment the choice between intra-coding and inter-coding can be made on a block-by-block basis. In other embodiments, the choice is still made on a picture-by-picture basis.

[0056] Motion compensated prediction is an example of inter-image prediction, where motion information is used that seeks to define the source, in other adjacent or nearby images, of the image details to be coded in the current image. Thus, in an ideal case, the content of a block of image data in a predicted image can be very easily coded as a reference (a motion vector) that points to a corresponding block in the same or slightly different position in an adjacent image.

[0057] The technique known as "block copy" prediction is in some ways a hybrid of the two above predictions, as it uses a vector that indicates a block of samples, displaced from the current predicted block within the same image, that should be copied to generate the current predicted block.

[0058] Returning to Figure 8, there are shown two image prediction configurations (corresponding to intra image prediction and inter image prediction) whose prediction results are selected by multiplication unit 500 under control of mode signal 510 (e.g. in control unit 343) to provide a block of predicted images for supply to adders 310 and 450. The selection is made based on which selection results in the least "energy" (which, as discussed above, may be thought of as the amount of information that needs to be coded), and is signalled to the decoder in the coded output data stream. In this regard, image energy can be found, for example, by trial subtracting regions of the two versions of the predicted image from the input image, squaring each pixel value of the difference image, summing the multiplication values, and identifying which of the two versions has a lower average multiplication value of the difference image associated with that image region. In another example, trial encoding can be performed for each choice or for each possible choice, and the choice is made depending on the cost of each possible choice in terms of the number of bits required for encoding and / or the distortion to the image.

[0059] In an intra prediction system, the actual prediction is made based on the image blocks received as part of signal 460 (filtered by loop filtering, see below), i.e. the prediction is made based on the encoded-decoded image blocks so that the exact same prediction can be made in the decompressor. However, data can also be derived from the input video signal 300 to control the operation of the intra image prediction unit 530 via the intra mode selection unit 520 .

[0060] In inter-image prediction, a motion compensated (MC) prediction unit 540 uses motion information, e.g., motion vectors, derived from the input video signal 300 by a motion estimation unit 550. The motion compensated prediction unit 540 applies these motion vectors to the reconstructed image 460 to generate blocks of inter-image prediction.

[0061] Thus, the intra-image prediction unit 530 and the motion compensation prediction unit 540 (operating together with the estimation unit 550) respectively operate as a detection unit that detects the prediction direction for the current block to be predicted, and as a generation unit that generates a prediction block of samples (which forms part of the prediction result sent to the addition units 310 and 450) depending on other samples defined by the prediction direction.

[0062] The processing applied to signal 460 will now be described.

[0063] First, the signal may be filtered by a so-called loop filter 565. Various types of loop filters can be used. One technique involves applying a "deblocking" filter, which tends to eliminate, or at least reduce, the effects of the block-based processing performed by the transform unit 340 and subsequent operations. Further techniques may also be used, including applying so-called Sample Adaptive Offsetting (SAO) filters. In general, in a sample adaptive offset filter, filter parameter data (derived at the encoder and transmitted to the decoder) defines one or more offset amounts that are selectively combined by the sample adaptive offset filter with a given intermediate video sample (a sample of signal 460) depending on the value of (i) the given intermediate video sample, or (ii) one or more intermediate video samples that have a predetermined spatial relationship with the given intermediate video sample.

[0064] An adaptive loop filter is also optionally applied, using coefficients obtained by processing the reconstructed signal 460 and the input video signal 300. This adaptive loop filter is a type of filter that applies adaptive filter coefficients to the data to be filtered, using known techniques. That is, the filter coefficients may vary based on various factors. Data defining which filter coefficients to use is inserted as part of the encoded output data stream.

[0065] When the device is operating as a decompressor, the filtered output from loop filter unit 565 actually forms the output video signal 480. This signal is stored in one or more image or frame stores 570. The storage of successive images is required for the motion compensated prediction process, in particular the generation of motion vectors. To conserve the necessary memory, the images stored in image store 570 may be kept in compressed form and then decompressed for use in generating the motion vectors. Any known compression / decompression system may be used for this particular purpose. The stored image may be sent to an interpolation filter 580 which generates a higher resolution stored image. In this example, intermediate samples (sub-samples) are generated such that the resolution of the interpolated image output by the interpolation filter 580 is four times (in each dimension) the image stored in the image store 570 if the luminance channel is 4:2:0, and eight times (in each dimension) the image stored in the image store 570 if the chrominance channels are 4:2:0. The interpolated image is sent as input to the motion estimation unit 550 and the motion compensated prediction unit 540.

[0066] We now describe how to divide an image for the compression process: At a basic level, the image to be compressed can be thought of as an array of blocks or regions of samples. Such division of the image into blocks or regions can be done by decision trees as described in SERIES H: AUDIOVISUAL AND MULTIMEDIA SYSTEMS Infrastructure of Audiovisual services - Coding of moving video High efficiency videocoding Recommendation ITU-T H. 265 December 2016 and in High Efficiency Video Coding (HEVC) Algorithms and Architectures, Editors: Madhukar Budagavi, Gary J. Sullivan, Vivienne Sze; chapter 3, ISBN 978-3-319-06894-7; 2014, the contents of which are incorporated herein by reference.

[0067] In some examples, the resulting blocks or regions have different sizes and, in some cases, shapes that generally follow the arrangement of image features in the image due to the decision tree. This alone can improve coding efficiency, since samples that represent or follow similar image features tend to be grouped together due to such an arrangement. In some examples, square blocks or regions of different sizes (e.g., 4x4 samples to e.g., 64x64, or larger blocks) are available for selection. Other configurations may use blocks or regions of different shapes, such as rectangular blocks or arrays (e.g., vertically or horizontally oriented). Other non-square and non-rectangular blocks are also encompassed. As a result of such a division of the image into blocks or regions, each sample of the image is assigned (at least in this example) to one, and only one, block or region sample.

[0068] (transform-skip mode) FIG. 9 illustrates diagrammatically the so-called transform skip mode. In this mode, a block of samples, for example a rectangular coding block, or an arrangement of samples such as a so-called transform unit (TU), is assigned a 'transform skip' mode indicator, for example by part of the functionality of the control unit 343 . As shown by the circuit diagram bypass path 900 in FIG. 9, when the transform skip indicator is set, the transform unit 340 (in the encoding path) and the inverse transform unit 430 (in the decoding path on the encoding side or in the decoder) are bypassed and the spatial frequency transform is not applied to the samples in that particular block.

[0069] The transform skip mode can be selected by the control unit 343 depending on the characteristics of the block in question, the characteristics of neighboring blocks, the trial (full or partial) encoding, etc., with the possible selection of DCT, DST, or other transform modes. In general, the objective of the selection algorithm performed by the control unit 343 is to improve the efficiency of the coding of the block in question.

[0070] In some previously proposed implementations, transform skip mode was restricted to block sizes of 4x4 or less. In more recent implementations, this restriction has been relaxed and transform skip mode can be selectively applied to larger blocks. Transform skip mode can be applied to a TU even if the TU is actually processed as multiple (smaller) sub-TUs.

[0071] 10a and 11a show the respective scan directions diagrammatically, with FIG. 10a providing an example applicable to a 4x4 transform skip block and FIG. 11a providing an example applicable to a so-called transform block. That is, a block for which transform skip mode was not enabled and therefore the block underwent a spatial-frequency transform (or multiple frequency transforms) by transform unit 340 during encoding.

[0072] With reference to Figure 10a, for transform skip blocks, the scanning order is diagonal from top left ("1") to bottom right ("16") in this example. In contrast, for transform blocks (as an example of coding blocks), as shown in Figure 11a, the scanning order is diagonal from bottom right to top left. Note that using scan order has little practical difference from the techniques described below, other than which coefficients or samples are "already coded" or "already decoded" for use in deriving the encoding parameters of subsequent samples or coefficients.

[0073] For larger blocks, a similar scan order can be used, or sub-blocks of 4x4 coefficients such as sub-TUs can be scanned as shown, with a predefined pattern being used to scan each sub-block in turn.

[0074] Generally speaking, a block of samples or coefficients is considered to be a group of data values ​​(or a group of coded data values), each having an associated coding order (in other words, a scanning order, as shown by way of example in Figures 10a and 11a).

[0075] With reference to Figures 10b and 11b, in at least some examples of the processing described below, reference is made to samples or coefficients (sometimes referred to below by the single general term "coefficients") that have been encoded or decoded prior to the encoding or decoding of a given coefficient 1000, 1100, even in the case of a transform skip block. In the case of transform skip, the previously processed coefficients relevant to at least some of the techniques described below are a predetermined grouping or pattern of coefficients shown in shaded form (one box for each coefficient) that are above and to the left of a given coefficient 1000. For a non-transform skip operation, a similar predetermined pattern or grouping is used, but here the previously processed coefficients relevant to at least some of the techniques described below are the coefficients below and to the right of a given coefficient 1100 (shown shaded). As mentioned above, these coefficients are referenced by at least some of the following techniques: For example, if any coefficient of the corresponding shaded group is unavailable because it is classified into another block or into a block that has not yet been coded or decoded, that coefficient is simply omitted from each process, and if necessary, the results of the process can be normalized to the reduced coefficient. (For example, normalization refers to the process of deriving an average of the screen coefficients, but not to the process of finding the maximum or minimum of the screen coefficients).

[0076] (Datasets and Escape Codes) For example, in the arrangement, the entropy coding stage (e.g., performed by the entropy encoder 370, the inverse process of which is performed by the entropy decoder 410) involves coding the scanned quantized transform coefficients (the scanning applied by the scanner 360 follows the examples shown in Figures 10 and 11 for transform skips and transform blocks, respectively).

[0077] The entropy coding is arranged to code the values ​​as one or more so-called data sets, together with escape codes for the remaining values ​​not coded by the data sets.

[0078] To generate the data set, the data values ​​to be encoded are processed in encoding order (e.g., scan order). Data sets generated for a block of samples, such as a 4x4 block or a 4x4 (or other) sub-portion of a larger block, may be selected as zero or more of a group of candidate data sets (i.e., a data set may be enabled for a particular coefficient or sub-TU, but not enabled for other blocks or groups), which may include one or more of the following: · Significance map (Sig), which indicates the locations of coefficients or samples that are so-called "significant". That is, non-zero coefficients or samples. A significance flag indicating a non-zero value is coded for each coefficient location in the block. A greater than 1 flag (GT1) indicating whether the absolute value of each significant coefficient is greater than 1. In some examples for 4x4 blocks, this flag is sent only for the first 8 significant coefficients in the coding order. In other examples, it can be sent for every significant coefficient. In other examples, the GT1 flag is always sent when the significance flag is sent. · The "value & 1" flag or parity flag is effectively the least significant bit (LSB) at this stage (the "&" signifies a logical AND operation). A greater than 2 flag (GT2) that indicates whether the absolute value of the coefficient is greater than 2 up to the first coefficient in the scan order for this property. Note that this flag is only sent for coefficients greater than 1, as indicated by the GT1 flag.

[0079] In some examples, the GT2 flag is not sent any further after the first coefficient greater than 2 occurs in the scan order. However, in at least some of the examples described, the GT2 flag may be sent at each calculated occurrence, or at least up to a certain number of occurrences per coefficient of a sub-TU (e.g., up to four occurrences, the number of occurrences allowed being selectable for a sub-TU, as discussed below).

[0080] In some cases, for non-TS operation, the GT2 flag is coded whenever the GT1 flag is set. The limit of 4 applies to TS and is applied to each coefficient up to 4 times or until it is no longer set. Thus, if the first GT2 flag is not set, the value will be 1 or 2 (depending on parity), if the first flag is set and the second flag is not set, the value will be 3 or 4, if these first two flags are set, the value will be 5 or 6, etc.

[0081] · Coefficient signs provided for significant coefficients. For each coding pass of the above array, the absolute coefficient value (ABS(COEFF)) is modified and the modified value is used in the next pass. An example of this modification is: · Subtract 1 when generating significance maps; · Subtract 1 when generating GT1 maps; When the value &1 flag is generated, it is divided by 2.

[0082] This provides an example where, when one or more data sets are selected, encoding by the first technique involves modifying the data values ​​after being encoded by a given data set to account for values ​​encodable by the data set.

[0083] In other words, the coefficients for which one GT2 flag was actually generated are the minimum value 4, as shown in the following example, where each data set is shown in turn, with the next column showing the remaining values ​​(Val) to be coded after the aforementioned modifications: [Table 1]

[0084] (escape code) The escape code is used to encode the remaining absolute level, i.e. level information, not encoded in the data set above. Due to the effective subtraction of 4 mentioned above, in a configuration where one GT2 flag is always sent when applied, the remaining absolute level only needs to be encoded for "coeff - 4". When multiple GT2 flags are sent for a coefficient, the offset increases to represent the increasing contribution to the value represented by each successive GT2 flag.

[0085] The remaining absolute level is for example encoded by an escape code comprising a first part and a non-unary encoded second part, which may have a length (in bits) that depends on a size value of the second part defined by the so-called Rice parameter.

[0086] Such a construction is sometimes called a Golomb-Rice code, where the value to be encoded is considered in two parts (the first and second parts mentioned above). The first part is the result of the division of the value to be encoded by M, where M = 2 b and the second part is for example the remainder b of the least significant bit of the value to be encoded. In this description, the parameter b is referred to as the second portion size value.

[0087] In the example, this quotient or first part is encoded using a unary coding, followed by the remainder which is encoded using a truncated binary encoding, etc. Note that for M = 1, this encoding is equivalent to a unary code.

[0088] In an exemplary embodiment, the first part is a prefix and the second part is a suffix. For example, the first part may include a unary encoded value. For example, the first part may include a truncated unary value. However, it should be noted that the terms "first" and "second" are merely identifiers and do not necessarily imply a requirement for a first portion to precede a second portion in the encoding or transmission order.

[0089] (Derivation of the second portion size value on the encoding side) FIG. 12 shows a schematic diagram of an example encoding device. This apparatus is described in more detail below, but an important feature from the perspective of this description is that the apparatus adaptively generates the second portion size value for use in encoding a particular data value based on previously encoded data values ​​in the encoding order.

[0090] 12, data values ​​1200 are received in scan order from the scanner 360. A generator 1210 generates the above mentioned data sets, namely the significance map, the GT1 flag, the LSB or parity (val & 1) flag, and the GT2 flag. These are provided to an output 1220 for output into an encoded data stream.

[0091] The encoder 1230 encodes the escape code. The encoder 1230 is responsive to a detector 1240 that detects whether there is a remaining absolute value to be encoded, and a generator 1250 that generates a second portion size value, i.e., detects whether the current data value exceeds the maximum value that can be encoded with the data set being used. The generator 1250 receives as input a previously encoded data value from the data value 1200, optionally receives parameters defining the bit depth 1255 of the data value 1200, and may refer to a look-up table (LUT) (not shown).

[0092] Generator 1250 is responsive to so-called historical data stored in historical data store 1260. The historical data represents arrays (e.g., multi-dimensional arrays) of counter values ​​or "history data items" and can be established and / or modified using the techniques described below.

[0093] The nature of the historical data and its use are discussed in more detail below with respect to selecting zero or more data sets and deriving the size of the second portion. At the encoder side, the historical data store is configured to store historical data for encoded data items, historical data indicative of one or more features encoding the encoded data items. In some examples, the stored historical data is associated with encoded blocks of a data item, the historical data being indicative of one or more features encoding the blocks of the data item.

[0094] Generator 1250 may generate a second portion size value 1265 for each data value 1200, regardless of whether that data value requires an escape code, or a second portion size value may be generated only for data values ​​that actually require an escape code.

[0095] The encoder 1230 then performs escape code encoding as described above and provides the escape code to the output 1220 for output into the data stream.

[0096] If the remaining value is too large to be fully represented by the escape codes (e.g., if the value is larger than the maximum value that can be represented by the escape codes using common parameters), a further type of code (the escape escape code) may be provided.

[0097] By deriving the size value of the second portion using as source information (or at least as part of the source information) at least partial dependency on historical data derived from previously encoded data values, the generator 1250 uses information that is also available at the decoder side if the entropy encoding and decoding process is lossless. Thus, at the decoder side, a similar derivation can be performed on the previously decoded data values. Of course, if the particular entropy encoder and decoding process used is not lossless, then the encoded and subsequently decoded data values ​​can be used as source information at the encoder side, which is equivalent to providing return path 390 in Figure 7 after the entropy encoding stage. However, given the reversible nature of the coding used in this example, equivalent information can be obtained from the data values ​​being coded, at the encoder side, and from the already decoded data values ​​at the decoder side.

[0098] Referring to FIG. 13, the decoding device includes a dataset decoder 1300 configured to decode the above mentioned dataset (up to the GT2 flag). Detector 1310 detects whether any escape codes or values ​​are provided and, if so, passes these to an escape code decoder 1320 which applies the inverse operation to the escape code encoding, i.e., Golomb-Rice decoding. To do this, the decoder 1320 uses second portion size value information 1330 provided by a generator 1340 that corresponds to the functionality of the generator 1250 in that it is potentially responsive to a common bit depth, potentially responsive to a lookup table (the same as the lookup table used on the encoder side), and also responsive to history data that is stored in the history memory 1350 depending on the decoding of the decoded data values ​​1360. In other words, on the decoder side, the history data store is configured to store history data of decoded data items, the history data being indicative of one or more characteristics for decoding the decoded data items. In some examples, the stored historical data is associated with a decoded block (eg, a sub-TU) of the data item, and this historical data indicates one or more characteristics of decoding the block of the data item. The decoder 1320 decodes the escape codes using the second portion size value information 1330 and outputs the combination of the decoded data set with any decoded escape codes as decoded data 1370 which forms the output of this process and forms the input 1360 to the generator 1340.

[0099] (Examples of encoding and decoding techniques) Next, an example of a technique for operating the device of FIG. 12 or FIG. 13 will be described. In the following description, Figures 14 to 17 are directed to non-transform skip (non-TS) operations (i.e. operations in which one frequency transform or multiple frequency transforms are used), while Figures 18 to 23 are directed to the transform skip (TS) operations described above.

[0100] FIG. 14 outlines an encoding process applicable to the apparatus of FIG. 12 in a non-transformed skip arrangement.

[0101] In step 1400, the generator 1250 derives parameters, blockParameter, associated with a current sub-TU in response to the history data stored by the history storage device 1260, where the sub-TU represents a group of samples to be coded and the parameters derived in step 1400 represent group parameters applicable to that sub-TU. This parameter is derived at least in part with respect to historical information, such as a counter associated with previously coded groups or sub-TUs.

[0102] Step 1400 (and 1800 below) represents an example of generating block parameters for data items of a given block, where the block parameters depend at least in part on historical data applicable to the data items of the given block.

[0103] (Historical information) The history data is stored in the encoder / decoder side history store 1260 / 1350 and is derived and updated at later stages of the overall processing as described with reference to Figure 16. The history data is derived symmetrically at the encoder and decoder side, so that at any point in the processing, the same history data is available in each case and the same decisions and / or derivations can be made in response to the history data. The historical data may relate to previously used riceParameters or other information, and may be partitioned in various ways, for example, by transform or transform skip operation, luma or chroma components, TU size, Manhattan distance from the top-left of the TU (Manhattan distance is the distance between two samples measured along perpendicular axes), etc. The counter information is used to derive the blockParameter and the baseRiceParameter (described below).

[0104] The historical data items may be provided as a one or multi-dimensional array, where the dimensions may be selected or indexed, for example, as one or more of the following: - current TU size, The location of the TU or coefficient in the image, TS or non-TS, The position of the coefficient in a TU or sub-TU, Manhattan distance of the coefficients from the top left, or other approaches described below with reference to Figures 27a to 35, Saturation or brightness, Color components. The historical data may be provided as one data item per TU or sub-TU, or one historical data item per coefficient position or group of coefficient positions.

[0105] These possible categories of historical data can be summarized as follows: the color components represented by a given image data value, the block size of the block of data values ​​that contains the given image data value, The position of a given image data value within an image, the position of a given image data value in a block of image data values ​​which contains the given image data value, the location within an image of the block of image data values ​​which contains a given image data value, the position of the sub-block of image data values ​​which contains the given image data value within the block of image data values, the block size of the block of image data values ​​that contains the given image data value, the distance of a given image data value from a given location within a block of image data values ​​which contains the given image data value, Whether the given image data values ​​are generated using a spatial frequency transformation.

[0106] The historical data is retrieved by generic parameters applicable to the current TU / sub-TU / coefficient (to be used by steps 1400, 1600, 1800, 2000 or to be generated by steps 1630, 2030). These provide an index into an array, potentially a multi-dimensional array, of history data values ​​to obtain the associated history data item applicable to the coefficients and / or parameters associated with the block.

[0107] The history data may be initialized to all zero values, for example, at the start of encoding or decoding any one or more of each sequence, image, slice, subpicture, CTU, etc.

[0108] (Deriving blockParameter) Step 1400 selects and derives a parameter blockParameter that is used to determine the signal of the current sub-TU.

[0109] The reliance on history data can be one or more examples of various possibilities. In some examples, history data applicable to the characteristics of the sub-TU being coded (i.e., for an example coefficient such as the top-left coefficient, history data is provided per coefficient) is retrieved and set as a block parameter for that sub-TU.

[0110] In another example, a combination (eg, a weighted sum) of historical data items associated with multiple coefficient position tables is generated and used as the block parameters.

[0111] (Bin determination) In step 1410, in addition to or instead of functioning in determining the size of the second portion, the generator 1250 determines the set of bins or flags to use, and the offset and shift for rice coding. This involves determining the number of data sets that the encoding step 1440 can use in response to the group parameter (blockParameter) mentioned above. The data sets can include a significance flag, a greater than one (GT1) flag, a greater than two (GT2) flag, and a parity flag. The choice of which to use can be made depending on an expectation of the size of the value to be encoded, which depends on the blockParameter.

[0112] In some examples, the bins can be selected in a hierarchy, ie, using the example above, the options available in these steps 1410 are as follows: a) None b) Significant flags only; c) Significance flag and GT1 flag; d) Significance flag, GT1 flag and Parity flag; e) Significance flag, GT 1 flag, GT2 flag and Parity flag. In other examples, options (d) and (e) are interchangeable.

[0113] For example, the selection can be made as a mapping between blockParameter and a respective set of flags (e.g., as shown in Table 2 below). [Table 2]

[0114] In other examples, the hierarchy as described above need not be applied, and there may be a mapping between each range of the blockParameter and the selection of bins or flags to use. For example, such a mapping may be as shown in Table 3 below. [Table 3]

[0115] In non-TS operation, one or zero GT2 flags are used, so the selection made by step 1410 is either to use one GT2 flag or none.

[0116] Parity flags are advantageous in terms of coding efficiency for relatively small coefficients, but can become increasingly inefficient for larger coefficients, so their use can be disabled when blockParameter is large (which tends to indicate large coefficients).

[0117] Step 1410 also determines the number of coding bins required to code a sub-TU using the selected cohort of flags applicable to that TU. Each type of flag has an associated requirement regarding coding bins, allowing step 1410 to calculate the number of bins required for each coefficient or for a block based on the block size of the block (e.g., sub-TU size).

[0118] Step 1410 sets the offset for the Rice encoding to represent the maximum value represented by the cohort of flags actually used (e.g., 0, 1, 2, 2, 4) for each of the options (a) through (e) described above. The value "shift" is set to 1 if the parity flag is used, and 0 otherwise.

[0119] Control then proceeds to step 1420 where a detection is made to see if there are any more coefficients remaining to be coded in the current sub-TU.

[0120] (CABAC encoding) The encoding according to the selected bins or flags is performed using the CABAC technique and is carried out by steps 1430, 1440, 1490, shown enclosed in dashed boxes to indicate the possibility at this stage to perform the encoding on the whole block (e.g. sub-TU) before proceeding to the problem of dealing with bypass encoding. In other words, these three steps may operate in a sub-loop, but for clarity of the diagram, this sub-loop is not explicitly depicted. In another example, steps 1430, 1440, 1490 may be performed for a single coefficient, and control may move to steps 1450, 1460 for that coefficient before returning to step 1420. Either option is encompassed as an embodiment of the present disclosure.

[0121] Assuming there are coefficients to code in step 1420, the process proceeds to step 1430 where a detection is made as to whether there are enough bins remaining available at this stage in encoding the image to code the next coefficient using the bins required for the currently selected set of flags determined in step 1410. If the answer is yes, then encoding is performed using the selected bins in step 1440, which is described in more detail below. If the answer is no in step 1430, control proceeds to step 1490, where the offset of the Rice code is set to zero, the shift is set to zero, and control proceeds to step 1450. With respect to the sub-loop for performing CABAC encoding on a block-by-block basis, control passing to step 1490 represents the end of that sub-loop, ie, control leaves the sub-loop and CABAC encoding is considered for the current block.

[0122] In the case of a sub-loop arrangement, control returns from step 1440 to step 1430 until the sub-loop is completed and the entire block has been CABAC encoded.

[0123] At the end of the sub-loop for CABAC encoding, either a successful outcome of step 1440 at the end of the sub-loop or an early termination due to the outcome of step 1490 transfers control to step 1450 where a detection is made as to whether bypass encoding is required.

[0124] If the answer is no, then control returns to step 1420. If the answer is yes, then control proceeds to step 1460, where bypass code is executed. Step 1460 is described in more detail below.

[0125] Note that bypass encoding can be performed on a similar sub-loop basis for an entire block or sub-TU, as indicated diagrammatically by the dashed box surrounding step 1460. Thus, in the sub-loop arrangement, first all of the applicable CABAC encoding is performed, and then all of the applicable bypass encoding is performed.

[0126] Returning to the negative result of step 1420, if there are no coefficients remaining to be coded in the current sub-TU (either because both sub-loops have been executed completely or the main loop has been executed for each coefficient), a sign bit is coded for that sub-TU in step 1470 and processing ends in step 1480.

[0127] This therefore provides an example of encoding 1440, 1840 (below) of a given data item of a given data item block by a first encoding technique which includes encoding a series of zero or more data sets and selecting 1410, 1810 a series of data sets from a plurality of candidate data sets depending on the block parameters generated for the given block of data items, each data set representing a respective range value of the data item.

[0128] (Decode) A corresponding arrangement can be used on the decode side. The derivation of the blockParameter and / or bins to use and offsets (steps 1400, 1410) is done identically with respect to the history data stored in the history store 1350, e.g. history data relating to previously decoded blocks. Steps 1400, 1410 are performed on the decoder side by generator 1340. Steps 1440, 1470, 1460 on the decoder side concern the decoding operation rather than the encoding operation, and tests 1420, 1450 concern whether more coefficients continue to be decoded and whether they are required by bypass decoding. The generation of blockParameter and other similar parameters in the arrangement of Figure 14 is performed by generator 1340. When used on the encoding side, a similar sub-loop arrangement is performed on the decoder side.

[0129] Thus, references to encoding steps or processes in the description of Figures 14-21 should be interpreted as referring to corresponding and symmetric decoding steps and processes at the decoder side, whose decisions and derivations rely on the same source historical data (derived from previously decoded coefficients rather than previously coded ones).

[0130] (Detailed explanation of step 1440) Step 1440 is shown in more detail in FIG. 15, again for the no-transform skip situation.

[0131] Steps 1500, 1530, 1560, and 1580 represent tests to detect whether step 1410 selected for the significance flag, the GT1 flag, the GT2 flag, and the parity flag is used. In each case, a positive outcome is plotted on the right hand side of the diagram representing the situation where step 1410 determined that the respective flag should be used, and a negative outcome is plotted vertically downward representing the situation where step 1410 determined that the respective flag should not be used.

[0132] In the case of the significance flag, if it is to be used, control proceeds to step 1510 where the significance map is encoded and the number of available bins is reduced by the number used to encode the significance map. In step 1420, if the sub-TU is completely encoded (detected by detecting whether the "encoded" flag, which indicates that the significance flag has been encoded, is set to indicate "not encoded"; however, if the significance flag is "encoded" in step 1520, it cannot be guaranteed that the encoding process has been completed), then control passes to the output of step 1440, in other words, to step 1450 of FIG. 14. If not, control passes to the next test 1530, and in the positive outcome, control passes to step 1540, where the GT1 map is encoded and the number of available bins is decremented. Again, if the sub-TU is fully encoded (as indicated by the unused GT1 flag in this example), control passes to step 1450, but if not, the next test 1560 is implemented. If the answer is yes, then the GT2 map is encoded and the available bins are decremented in step 1570. Similarly, if the outcome of step 1580 is yes, then the parity is encoded and the available bins are decremented in step 1590.

[0133] For selection of a particular data set, the technique of FIG. 15 provides an example where, when more than one data set is selected, encoding by the first technique includes encoding by the two or more data sets in a predetermined data set order.

[0134] (Bypass Code) Since the bypass code (encoding) is performed using Rice encoding that depends on the Rice parameters mentioned above, the second encoding technique involves encoding an escape code that includes a first portion and a non-unary encoded second portion having a length in bits that depends on the size of the second portion.

[0135] FIG. 16 provides more detail of step 1460 discussed above, again in the context of a non-transform skip operation. In Figure 16, information 1640 stored in history store 1260 / 1350 is shown diagrammatically in dashed lines. As well as providing input to step 1400 described above, it also provides input to step 1600 and is updated by step 1630 described below.

[0136] Step 1460 is comprised of steps 1600-1630 depicted in FIG. 16, and processing may be performed on a coefficient-by-coefficient basis or on a whole-block sub-loop basis, as described above.

[0137] In step 1600, a baseRiceParameter is established that is used to determine the signal of a sub-TU. For example, baseRiceParameter = mapping(mapping) (selected history data item)

[0138] Here, the mapping is equal to each history data item divided by 4, 16, or other value, and the selected history data item selects the history data item that corresponds to the current state of the transform skip flag or other flag, component (i.e. luma / chroma), block size, scaled Manhattan distance, etc.

[0139] The parameter riceParameter is generated in step 1610. Step 1610 is described in more detail with reference to Figure 17 described below.

[0140] In step 1620, the remainder of the current coefficient (which may be any value greater than the maximum value encodable in step 1440) is coded as a bypass value using Rice coding according to the parameter riceParameter, and in step 1630, the history data 1640 is updated.

[0141] In summary, bypass encoding can be viewed as representing encoding any remaining value of a given data item, the remaining value being an amount that exceeds the maximum value that the given data item can be encoded by the first encoding technique, by a second encoding technique that is different from the first encoding technique.

[0142] (Update historical data) An exemplary update (as an example of a storage step that includes modifying at least stored history data applicable to a given characteristic of a given data item in response to encoding of the given data item) can include overwriting a history data item with a calculated riceParameter and incrementing the history data item using, for example, any one or more of the following exemplary techniques. · Reset the history data to all 0 values, for example, at the start of encoding or decoding of any one or more of each sequence, image, slice, sub-picture, CTU, etc. (as described above). · Similar to the above, but reset to a non-zero value, such as a value calculated from the bit depth of the coefficient (e.g., (bit depth - 10) * divisor). · Update the history data for all coefficients, or only for all non-zero coefficients. · Update the history data only for coefficients whose absolute value is greater than a threshold (non-zero), such as 4. · Overwrite the history data item indexed by the current block / coefficient parameter with the riceParameter. · Selectively increment or decrement the history data value depending on the absolute coefficient value. For example, Increment the history data item if the value >= (3 << (riceParameter)), Decrement the history data item if (value << 1) < (1 << riceParameter). · Selective increment or decrement ( "count") of the history data value. For example, Increment the count if the value >= (3 << (count / divisor)), Decrement the count if (value << 1) < (1 << count / divisor). · In some examples, the decrement (subtraction) process includes setting the history data item to max(0, history data item - decrement value) (the decrement value is, for example, 1 or another value described below). In some cases, the amount of increment (quantum) can be larger than the amount of decrement. For example, one can increment by +3 or +4 and decrement by -1 (using the optional feature constraining to a minimum allowed value of zero, as described above). More commonly, the amounts of increment and decrement are different, where value = the coefficient value coded by the escape coding process at its zero coefficient position.

[0143] Select the divisor in conjunction with the increment / decrement. For example, increment = +4, decrement = -1, divisor = 16. Typically the divisor is a power of 2, so can be implemented using a simple shift. It is also used in the process of generating candidate Rice parameters described below.

[0144] This updating may be conditional, for example by updating individual historical data items only once per sub-TU.

[0145] The update may update multiple historical data items, for example updating historical data items associated with adjacent sample positions.

[0146] The conditional update based on the coefficient values ​​listed above provides an example of a modification step that involves selectively modifying at least the stored historical data applicable to a given characteristic of a given data item in response to encoding the given data item only if the given data item exceeds a threshold value, which may be 0 or 4, for example.

[0147] In general, modifications may be made to the historical data such that the historical data represents one or more features indicative of the magnitude of the encoded (decoded) data items. For example, the one or more features encoding the encoded data item include data dependent on the size of the second portion generated to encode the encoded data item.

[0148] (Generation of candidate rice parameters) Referring to FIG. 17, step 1610 includes one or more steps 1700 of generating candidate Rice parameters. Examples of candidate riceParameters include: i. Default VVC technology; ii. Adaptive VVC technology; iii. Base Rice Technology; iv. Local Technology Includes:

[0149] This configuration provides an example of generating multiple candidate second portion sizes (candidate riceParameters) and selecting among the multiple candidate second portion sizes depending on historical data applicable to given characteristics of a given data item (which depends on the baseRiceParameter, as described below).

[0150] At least in the default VVC and adaptive VVC techniques, this generating step includes obtaining, for at least one candidate second portion size, the candidate second portion size by accessing a lookup table according to an index that depends on at least one previously encoded data item (which in these examples depends on the "sum"). (i) In the disclosed example of non-TS operation, the default VVC technique (i) involves setting index values ​​as follows: index = max (0, min(31, sum-5*offset) Here, max(A, B) returns the larger of A and B, min(A, B) returns the smaller of A and B, offset is the general offset value described above. sum = sum of the shaded coefficients available for the current coefficient 1100 in Figure 11b (all unavailable coefficients are assumed to be 0). And the index value provides an index into a look-up table (LUT) of Rice Parameter values, and riceParameter is the indexed LUT value: riceParameter = LUT(index) is set to (ii) In the adaptive VVC technique, variable temp_shift (used in this calculation) is temp_shift = max(0, (baseRiceParameter - 2)) and index = max(0, min(31, (sum - 5 * offset) >> temp_shift)) is defined as Here, ">>n" represents a right bit shift by n bits (and "<<n" used below represents a left shift by n bits). riceParameter is set to the LUT value indexed by the index (within the same LUT), but for the addition of the shift amount, riceParameter = LUT(index) + temp_shift results in Instead of the above index formula, index = max(0, min(31, (sum >> temp_shift) - 5 * offset)) or index = max(0, min(31, (sum >> temp_shift) - temp_count * offset)) can be used instead. Here, temp_count is the number of available coefficients used in the sum calculation (potentially less than 5).

[0151] In other examples, the following technique (implemented here as an example of pseudocode) may be used in relation to the adaptive VVC technique. The history data or "count" value is obtained from a multi-dimensional array of history data as a function of any one or more of the above parameters (e.g., {the distance values, TS or non - TS distance values, color components} mentioned above). temp_shift = max (0, (count / divisor)-2) {where divisor is the predetermined constant scaling factor mentioned above}. In TS mode: index = template [scan_position, absolute_coefficient_value, cutoff, temp_shift] + temp_shift riceParameter = LUT (index) + temp_shift In non-TS mode: index = template [scan_position, absolute_coefficient_value, cutoff, temp_shift] riceParameter = LUT (index) + temp_shift where cutoff is the lowest coefficient value that needs to be coded with the Golomb Rice code (not a flag) (in previously proposed systems this is 0 for TS and 4 for non-TS, but here it may or may not be the same as these values).

[0152] The "template" is as follows: The template used in the above description relates to the situation of Figures 10a to 11b, represents the sum of all coefficients to the bottom right (transform or regular residual coding) or top left (transform skip residual coding), and exists in previously proposed systems such as the so-called generic video coding system. This pseudocode provides the sum of the absolute coefficient values ​​(see Figs. 10a-11b) with a right shift based on the calculated value temp_shift. Introducing this shift is advantageous. This shift is useful for larger coefficient values ​​(common at higher bit depths) and adjusts the sum of the values ​​down to the 0..31 scale used in the LUT. Without the shift, the sum would normally always be clipped to 31. Then adding the same value after the LUT corrects the resulting numbers. temp_shift is used rather than baseRiceParameter because this is a normalization step: the coefficient values ​​in the 10-bit profile (on which the previously proposed system was tuned) force the value of baseRiceParameter to be around 2. Thus temp_shift is only done if the adaptation is useful, to ensure that the relative sizes are correct (or at least useful or appropriate).

[0153] In the particular adaptive VVC example using temp_shift described above, generating a plurality of candidate second portion sizes includes selectively applying a shift amount that depends at least on historical data.

[0154] In an adaptive VVC example, applying this step includes at least one of the following: (i) A right shift is applied in the derivation of the index, where the right shift depends on the shift amount. (ii) Adding a shift amount in the derivation of the index.

[0155] In various adaptive VVC examples, this generation step involves combining a value accessed from a lookup table with a value that depends on the shift amount (e.g., riceParameter = LUT (index) + temp_shift). For example, the generating step may include adding a value accessed from a lookup table to the shift amount.

[0156] Note that the term "template" is used under the second usage in reference to picking historical values ​​from which to derive the original Rice value, which is based on the coefficient position, and not on the values ​​of the coefficients surrounding that value or values. This is a classification technique for locations that are expected to have similar coefficient sizes (without examining the values). (iii) The base rice approach involves setting riceParameter to baseRiceParameter. riceParameter = baseRiceParameter (iv) Local techniques are implemented as follows: v = function (shaded neighborhood of coefficient 1100 given in Figure 11b) Where function = max, min, average, etc. Then, initialize riceParameter as follows: riceParameter = baseRiceParameter Increase or decrease the riceParameter as follows. while v > (3 << (riceParameter)), increment riceParameter, While v < (3 << (riceParameter -2) and riceParameter > 0, optionally decrement riceParameter and apply a maximum number of iterations. For example, increase or decrease riceParameter by a maximum of + / - 2.

[0157] Thus, generating at least some candidate riceParameters can provide an example of deriving the size of the second portion, at least in part, depending on historical data applicable to given characteristics of a given data item.

[0158] (Selection from candidate riceParameter) In step 1710 , the results of the generation of the candidate parameters are combined and / or selected in between to generate the actual riceParameter used by step 1620 .

[0159] In the examples of the present disclosure, the selection between the candidate riceParameters can be performed depending on the value of the baseRiceParameter. By way of example, the selection can be mapped to the value of the baseRiceParameter as follows: [Table 4]

[0160] In other examples, it is not necessary to use a single selection, but instead a combination of two or more candidate riceParameters can be generated, for example as a weighted sum of the respective candidate riceParameters, which candidates are used in the weighted sum and the weights provided as a mapping of the baseRiceParameter, for example.

[0161] As mentioned above, these processes occur symmetrically on the encoder and decoder sides, always using the data available to the encoder (representing previously encoded blocks) and the decoder (representing previously decoded blocks) so that identical results are obtained in each case.

[0162] (Conversion skip operation) 18-23 correspond closely to FIGS. 14-17, and in many cases corresponding steps are employed. Indeed, the following table represents steps that are substantially identical between corresponding steps in Figures 14-17 and Figures 18-23, and such steps will not be described in further detail here, except where differences are noted below. [Table 5]

[0163] (difference 1 - sign bit) Referring to FIG. 18, the sign information is not coded as a negative result of a test as to whether there are more coefficients left to code (step 1820 in FIG. 18), but rather is executed in step 1840 as a negative result of step 1920, as step 1930. Thus, a negative outcome of step 1820 simply terminates 1800 processing for that sub-TU.

[0164] (Diff 2 - GT2 flag) Step 1810 not only determines which bins to use, but also the number of GT2 flags to use, which for TS processing can be up to 4. These are coded in step 1890, provided that the remaining number of the original number assigned by step 1810 (i.e. not coded so far within that sub-TU) is still greater than zero.

[0165] 19 for step 1840, a negative result of the fully encoded test 1920 provides for encoding the sign bit in step 1930. Step 1840 does not pertain to the encoding of the GT2 flag, as that is treated separately as described above.

[0166] The arrangement of FIG. 18 can be considered to include three sub-loops for each sub-TU or other block: a first sub-loop including steps 1830, 1840, and 1895, a second sub-loop including steps 1850 and 1890, and a third sub-loop including step 1870. These subloops are then executed in the order listed.

[0167] (Diff 3 - Default VVC Technology) In this example, the default VVC strategy involves setting riceParameter = 1.

[0168] (Diff 4 - previously encoded / decoded coefficients) In TS operation, the previously encoded / decoded coefficients used by the adaptive and local techniques to generate the candidate riceParameter are those lightly shaded in FIG. 10b surrounding the given coefficient 1000.

[0169] (Another example that does not require a block parameter) In the example above (related to Figures 22 and 23 below), the block parameters (blockParameter) were derived in steps 1400, 1800 and used as the basis for determining which bins / flags to use and for setting other parameters in encoding and decoding.

[0170] However, in other examples, the same form of block parameter is not required, and instead the determination of which bin / flag to use can be made on a coefficient-by-coefficient basis, e.g., using similar techniques described in connection with steps 1410, 1810 for a selected historical data item, or making a separate determination for each other coefficient for a combination or weighted combination of historical data items addressed by the current coefficient position table and other parameters. Such an example may be seen in relation to Figures 24 and 25 below.

[0171] Thus, for such a coefficient-by-coefficient arrangement, the choice of which bin / flag to use for that coefficient depends on: the selection made by step 1410 / 1810 with respect to its coefficient position, and · Are there enough bins (1430 / 1830) remaining to code the selected bin / flag? In other words, such an exemplary coefficient-wise arrangement can be considered to provide a bin / flag selection for CABAC encoding that depends (at least) on the two factors mentioned above.

[0172] (In the case of the use of blockParameter mentioned above, this is an arrangement in which a set of data sets is assigned to blocks, so the issue of whether bins are available is not relevant to that assignment at the block level. However, in the case of per-coefficient assignment, bin availability forms a second feature of the assignment process.)

[0173] This therefore provides an example of encoding 1440, 1840 a given data item by a first encoding technique (in this example CABAC encoding of the data set), The first encoding technique includes encoding a series of zero or more data sets; selecting 1410, 1810 a set of datasets from a plurality of candidate datasets depending on (i) the number of previously encoded datasets and (ii) historical data applicable to a given characteristic of a given data item; Including, Each data set represents a different range of values ​​for the data item. Here, in the case of coefficient-by-coefficient selection of bins, the dependency may be considered to be based on both the selection made in steps 1410, 1810 and the detection 1430, 1830 of whether there are enough bins remaining available for encoding the next coefficient. The corresponding techniques and decisions are performed at decode time, as described above.

[0174] (Device Overview) The apparatus of FIG. 12 operating in accordance with the techniques described herein provides an example of an apparatus for encoding consecutive data items, the apparatus comprising: An apparatus comprising: a historical data store 1260 configured to store historical data for the encoded data items; a first encoding circuit 1210 configured to encode a given data item by a first encoding technique; a second encoding circuit 1230 configured to encode any remaining values ​​of the given data item by a second encoding technique different from the first encoding technique; Equipped with the historical data indicating one or more characteristics encoding the encoded data item; The first encoding technique is encoding a series of zero or more data sets each representing a respective range of values ​​for said data item; (i) selecting a set of data sets from a plurality of candidate data sets in dependence upon a plurality of previously encoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be encoded by the first encoding technique.

[0175] The apparatus of FIG. 13 operating in accordance with the techniques described herein provides one example of an apparatus for decoding an input data signal representing successive data items, the apparatus comprising: a historical data store 1350 configured to store historical data for the decrypted data items; a first decoding circuit 1300 configured to decode a given data item by a first decoding technique; a second decoding circuit 1320 configured to decode any remaining values ​​of the given data item by a second decoding technique different from the first decoding technique; Equipped with the historical data being indicative of one or more characteristics of decoding the decoded data item; The first decoding technique is as follows: decoding a series of zero or more data sets, each data set representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence upon (i) a plurality of previously decoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be decoded by the first decoding technique.

[0176] The apparatus of FIG. 12 operating in accordance with the techniques described herein provides an example of an apparatus for encoding a block of contiguous data items, the apparatus comprising: a history data store 1260 configured to store history data for the blocks of encoded data items; a generator circuit 1250 configured to generate block parameters for a block of a given data item; a first encoding circuit 1210 configured to encode a given data item of said block of given data items by a first encoding technique; a second encoding circuit 1230 configured to encode any remaining values ​​of the given data item by a second encoding technique different from the first encoding technique; Equipped with the historical data indicating one or more characteristics encoding the blocks of data items; the block parameters are at least partially dependent on historical data applicable to the given block of data items; The first encoding technique is encoding a series of zero or more data sets each representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence on the block parameters generated for the given block of data items; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be encoded by the first encoding technique.

[0177] The apparatus of FIG. 13 operating in accordance with the techniques described herein provides an example of an apparatus for decoding a block of consecutive data items, the apparatus comprising: a history data store 1350 configured to store history data for blocks of decrypted data items; a generator circuit 1340 configured to generate block parameters for a block of a given data item; a first decoding circuit 1300 configured to decode a given data item of said block of given data items by a first decoding technique; a second decoding circuit 1320 configured to decode any remaining values ​​of the given data item by a second decoding technique different from the first decoding technique; Equipped with the historical data being indicative of one or more characteristics that decode the blocks of data items; the block parameters are at least partially dependent on historical data applicable to the given block of data items; The first decoding technique is as follows: decoding a series of zero or more data sets, each data set representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence on the block parameters generated for the given block of data items; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be decoded by the first decoding technique.

[0178] Note that although Figures 12 and 13 show the encoding circuitry and the decoding circuitry as two respective units in each case, the first and second circuits in each instance may be implemented as a single common circuit having both of the respective functions.

[0179] (Use of copied historical data) As a variation of the techniques described above and below (and which may be used in combination with any permutation thereof), an exemplary arrangement may allow for at least some degree of availability of a copy of historical data. This allows, for example, a higher degree of parallel operation, an example of which is described with reference to the flow chart of FIG.

[0180] To summarize this technique, at the start of a particular process stage 2600 (such as at the start of processing of each TU or sub-TU, or at the start of processing of each coefficient), all historical data, or at least the historical data associated with the processing performed in connection with that process stage, is copied (at step 2610). Processing is performed using the copied historical data, such as the processing associated with FIG. 16 above, including generating (at step 2620) rice parameters and making a determination as to whether the historical data should be updated (at step 2630).

[0181] If (in step 2640) the historical data is actually updated using the update procedure described above, then in step 2650 the updates are applied to the actual historical data rather than to the copy. Once the updates are processed, or if no updates are needed (negative outcome of step 2640), if the current processing stage requires processing of the next coefficient in step 2660, this is initiated by transferring control back to step 2620. Otherwise, control returns to processing the next processing stage in step 2600.

[0182] This configuration: generating a copy of at least a portion of said stored historical data applicable to said given characteristic of said given data item; deriving a second portion size at least in part dependent on said copy of said historical data applicable to said given characteristic of said given data item; (However, other operations that depend on historical data may be performed relying on the copy rather than on the "live" data, or may be performed instead. In fact, copied data may be used anywhere in the present description except, for example, in processes that actually update stored historical data, where "uncopied" or original historical data is described as being used.) modifying at least said stored historical data applicable to said given characteristic of said given data item in response to encoding said given data item; An example is provided.

[0183] (Templates and template functions) As a variation of the above techniques (and which can be used in combination with any permutation thereof), the exemplary arrangement can use template functions or expressions as part of the indexing process into the multi-dimensional arrangement of historical data.

[0184] We now describe, with reference to the template representations shown in Figures 27a to 35, various approaches that provide the option to replace the above-mentioned "Manhattan distance from top left" with other functions of coefficient and / or sub-block position. Here, a key is provided to account for the index value riceldx, which ranges from 0 to 3. This riceldx value is used as a parameter or index to access one dimension of the multi-dimensional array of historical data described above. These provide examples where dependencies on historical data used (via riceldx) are introduced or handled according to one or more of the following: The position of a given image data value in the image; the position of a given image data value in the block of image data values ​​which contains the given image data value; The position of the block of image data values ​​that contains a given image data value within the image; The position of the sub-block of image data values ​​which contains the given image data value within the block of image data values.

[0185] The examples shown in Figures 27a to 35 show, in a simplified manner, a 16 x 16 TU rendered as a 4 x 4 array of 4 x 4 sub-TUs. If TUs of different sizes are used, the same derivation can be used for coefficient positions within the TUs.

[0186] FIG. 27(a) illustrates generally both the Manhattan distance approach described above and an alternative approach that can give equivalent results. For the Manhattan distance approach: riceldx = min((posX + posY) >> 2, 3) The following function, called template with clipping, gives the same result: riceldx = min (template(scanPos - minPos) + cgPosX + cgPosY, 3)

[0187] where scanPos is the scan order position within the subblock, minPos is the minimum scanPos within the subblock, cgPosX and cgPosY are the subblock X and Y positions (from (0,0) in the top-left subblock to (3,3) in the bottom-right subblock). That is, they are constants for a particular sub-block. A "template" represents the data values ​​in a 4x4 array, as shown diagrammatically in Figure 27b.

[0188] Another possible approach is shown diagrammatically in Figure 28, with reference to the Manhattan distance from the top-left corner of the sub-TU or sub-block, where: riceldx = min (cgPosX + cgPosY, 3)

[0189] The arrangement of Figure 29 uses multiple (eg, two) different template sequences, as shown generally in Figures 30a and 30b. Here, the template array in FIG. 30a is used for the top left sub-block (cgPosX, cgPosY)=(0,0), and the template array in FIG. 30b is used for all other sub-blocks. riceldx = min(template i (scanPos-minPos) + cgPosX + cgPosY, 3) Here, template irefers to the selected template sequence mentioned above.

[0190] In Figure 31, multiple templates are used (two in this example), but all templates except for the top left sub-block (Figure 32b) are all single valued, in contrast to the template in the top left sub-block (Figure 32a), which shows variation between coefficient positions. Here, For the upper left, riceldx = (template(scanPos - minPos) + cgPosX + cgPosY, 3) (However, since (cgPosX + cgPosY) = 0 for this sub-block, Note that you can use riceldx = template(scanPos - minPos) .) For others, riceldx = min(1 + cgPosX + cgPosY, 3)

[0191] FIG. 33 shows diagrammatically another variation of the same sequence, with a different "top left" template (FIG. 34a), but with the same "other" template (FIG. 34b).

[0192] An example of the final approach (Figure 35) is as follows: The "dc" coefficient (top-left of the top-left sub-block) is set to one riceldx value (0 in this example), the remainder of the top-left sub-block is set to another riceldx value (1 in this example), and all other coefficient positions are set to a further riceldx value (2 in this example).

[0193] In summarizing these riceldx techniques, the approach mentioned above, which involves (for example) generating an index based on the potentially scaled Manhattan distance of a given coefficient from the top-left of the TU, can include using: Manhattan position of template + sub-TU Manhattan distance of sub-TUs in a TU -Different templates for the top left sub-TU and other sub-TUs Only the upper left sub-TU template (others are constant values) DC / upper left sub-TU (others are constant values). Note that as mentioned above for some of these options clipping to a minimum or maximum value is required.

[0194] (Summary method) FIG. 22 is a schematic flow chart illustrating a method for encoding consecutive data items, the method comprising: storing (at step 2200) historical data for the encoded data items; encoding (at step 2210) a given data item using a first encoding technique; encoding (at step 2220) any remaining values ​​of said given data item with a second encoding technique different from said first encoding technique; Including, the historical data indicating one or more characteristics encoding the encoded data item; The first encoding technique is encoding a series of zero or more data sets each representing a respective range of values ​​for said data item; (i) selecting a set of data sets from a plurality of candidate data sets in dependence upon a plurality of previously encoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be encoded by the first encoding technique.

[0195] FIG. 23 is a schematic flow chart illustrating a method of decoding an input data signal representing successive data items, the method comprising: storing (at step 2300) historical data for the decrypted data item; Decrypting (at step 2310) the given data item using a first decryption technique; decrypting (at 2320) any remaining values ​​of the given data item using a second decryption technique different from the first decryption technique; Including, the historical data being indicative of one or more characteristics of decoding the decoded data item; The first decoding technique is as follows: decoding a series of zero or more data sets, each data set representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence upon (i) a plurality of previously decoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be decoded by the first decoding technique.

[0196] FIG. 24 is a schematic flow chart illustrating a method of encoding a block of consecutive data items, the method comprising: storing (at step 2400) historical data for the block of encoded data items; generating (at step 2410) block parameters for a block of a given data item; encoding (at 2420) a given data item of said block of given data items using a first encoding technique; encoding (at step 2430) any remaining values ​​of said given data item with a second encoding technique different from said first encoding technique; Including, the historical data indicating one or more characteristics encoding the blocks of data items; the block parameters are at least partially dependent on historical data applicable to the given block of data items; The first encoding technique is encoding a series of zero or more data sets each representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence on the block parameters generated for the given block of data items; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be encoded by the first encoding technique.

[0197] FIG. 25 is a schematic flow chart illustrating a method for decoding a block of consecutive data items, the method comprising: storing (at step 2500) history data for the block of decrypted data items; generating (at step 2510) block parameters for a block of a given data item; Decoding (at 2520) a given data item of said block of given data items using a first decoding technique; decrypting (at 2530) any remaining values ​​of the given data item using a second decryption technique different from the first decryption technique; Including, the historical data being indicative of one or more characteristics that decode the blocks of data items; the block parameters are at least partially dependent on historical data applicable to the given block of data items; The first decoding technique is as follows: decoding a series of zero or more data sets, each data set representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence on the block parameters generated for the given block of data items; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be decoded by the first decoding technique.

[0198] Any one or more of the above encoding methods may be implemented by the apparatus of FIGS.

[0199] Any one or more of the above decoding methods may be implemented by the apparatus of FIGS.

[0200] Insofar as embodiments of the present disclosure are described as being implemented, at least in part, by a software-controlled data processing apparatus, it will be understood that a non-transitory machine-readable medium carrying such software, such as an optical disk, a magnetic disk, a semiconductor memory, or the like, is also considered to represent an embodiment of the present disclosure. Similarly, a data signal (whether embodied on a non-transitory machine-readable medium or not) containing encoded data generated according to the method described above is also considered to represent an embodiment of the present disclosure.

[0201] Obviously, numerous modifications and variations of the present disclosure are possible in light of the above teachings, and it is therefore to be understood that, within the scope of the appended claims, the technology may be practiced otherwise than as specifically described herein.

[0202] It will be appreciated that, for clarity of the invention, the above description has described embodiments with reference to different functional units, circuits and / or processors. However, it will be apparent that any suitable distribution of functionality between different functional units, circuits and / or processors may be used without detracting from embodiments of the invention.

[0203] The embodiments described herein may be implemented in any suitable form including hardware, software, firmware or any combination of these The embodiments described herein may optionally be implemented at least partly as computer software running on one or more data processors and / or digital signal processors. The components and elements of any embodiment may be physically, functionally and logically implemented in any suitable way. Indeed functionality may be implemented in a single unit, in multiple units or as part of other functional units. Thus, embodiments of the present disclosure may be implemented in a single unit or may be physically and functionally distributed between different units, circuits and / or processors.

[0204] Although the present disclosure has been described in connection with some embodiments, it is not intended to be limited to the specific form set forth herein. Moreover, while features of the present disclosure appear to be described in connection with particular embodiments, those skilled in the art will recognize that the various features of the described embodiments may be combined in any manner suitable for implementing the present techniques.

[0205] Each aspect and feature is defined by the following numbered clauses. 1. A method for encoding a continuous data item, comprising the steps of: storing historical data for the encoded data items; encoding a given data item by a first encoding technique; encoding any remaining values ​​of said given data item by a second encoding technique different from said first encoding technique; Including, the historical data being indicative of one or more characteristics encoding the encoded data item; The first encoding technique comprises: encoding a series of zero or more data sets each representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence upon (i) a plurality of previously encoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be encoded by the first encoding technique. method. 2. The second encoding technique includes encoding an escape code that includes a first portion and a non-unary encoded second portion having a length in bits that depends on the size of the second portion. 1. The method according to claim 1. 3. Deriving a size of the second portion at least in part in dependence on the historical data applicable to the given characteristic of the given data item. 2. The method according to claim 2. 4. generating a plurality of candidate second portion sizes dependent on the historical data applicable to the given characteristic of the given data item; and selecting from among the plurality of candidate second portion sizes. 3. The method according to claim 3. 5. The generating step includes obtaining, for at least one candidate second portion size, the candidate second portion size by accessing a lookup table according to an index that depends on at least one previously encoded data item. 4. The method according to claim 4. 6. The generating step includes selectively applying a shift amount that depends at least on the historical data. 5. The method according to claim 5. 7. The applying step comprises: (i) applying a right shift that depends on the shift amount in deriving the index; (ii) adding the shift amount in deriving the index Contains one of 6. The method according to claim 6. 8. The generating step includes combining a value accessed from the lookup table with a value that is dependent on the shift amount. 7. The method according to claim 7. 9. The generating step includes adding the value accessed from the lookup table to the shift amount. 8. The method according to claim 8. 10. The candidate data set is a significance data set indicating whether a data item is non-zero; one or more greater-than-n data sets indicating whether a given data item is greater than n for each of the values; a parity data set indicating the value of the least significant bit of the data item; Contains one or more datasets selected from a list consisting of A method according to any one of the preceding clauses. 11. When one or more data sets are selected, encoding with the first technique includes modifying data values ​​after encoding with a given data set to constitute values ​​encodable by that data set. 10. The method according to claim 10. 12. When two or more data sets are selected, encoding according to the first technique includes encoding according to the two or more data sets in a predetermined data set order. 11. The method according to claim 11. 13. The step of storing includes modifying at least the stored historical data applicable to the given characteristic of the given data item in response to encoding the given data item. A method according to any one of the preceding clauses. 14. The deriving step comprises: generating a copy of at least a portion of the stored historical data applicable to the given characteristic of the given data item; deriving a second portion size at least in part dependent on the copy of the historical data applicable to the given characteristic of the given data item; modifying at least the stored historical data applicable to the given characteristic of the given data item in response to encoding the given data item; Including, 3. The method according to claim 3. 15. The modifying step includes: selectively modifying at least the stored historical data applicable to the given characteristic of the given data item in response to encoding the given data item only if the given data item exceeds a threshold value. 15. The method according to claim 13 or 14. 16. The historical data includes data indicative of a plurality of data item characteristics. A method according to any one of the preceding clauses. 17. The data items are image data values, and the plurality of data item characteristics for a given image data value are: a color component represented by said given image data value; and a block size of a block of data values ​​that includes the given image data value; and the location of said given image data value within an image; and a position of the given image data value in a block of image data values ​​which includes the given image data value; and the location within an image of a block of image data values ​​which includes said given image data value; the location of a sub-block of image data values ​​which includes said given image data value within a block of image data values; a block size of a block of image data values ​​that includes the given image data value; and the distance of the given image data value from a predetermined location within a block of image data values ​​which includes the given image data value; and whether the given image data values ​​are generated using a spatial frequency transform; Contains two or more properties selected from the list consisting of 16. The method according to claim 16. 18. The one or more features encoding the encoded data item include one or more features indicative of a size of the encoded data item. A method according to any one of the preceding clauses. 19. The one or more features encoding the encoded data item include data dependent on a second portion size generated to encode the encoded data item. 18. The method according to claim 18. 20. Computer software which, when executed by a computer, causes the computer to carry out a method according to any one of 1 to 19. 21. A non-transitory machine-readable storage medium storing the computer software described in 20. 22. A coded data signal generated by a method according to any one of 1 to 19. 23. A non-transitory machine-readable storage medium storing the encoded data signal according to 22. 24. A method of decoding an input data signal representing successive data items, comprising: storing historical data for the decrypted data items; Decrypting the given data item using a first decryption technique; decrypting any remaining values ​​of the given data item using a second decryption technique different from the first decryption technique; Including, the historical data being indicative of one or more characteristics of decoding the decoded data item; The first decoding technique includes: decoding a series of zero or more data sets, each data set representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence upon (i) a plurality of previously decoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be decoded by the first decoding technique. method. 25. The second decoding technique includes decoding an escape code that includes a first portion and a non-unary encoded second portion having a length in bits that depends on the size of the second portion. 24. The method according to claim 24. 26. Deriving the size of the second portion at least in part in dependence on the historical data applicable to the given characteristic of the given data item. 25. The method according to claim 25. 27. The method includes generating a plurality of candidate second portion sizes dependent on the historical data applicable to the given characteristic of the given data item, and selecting from among the plurality of candidate second portion sizes. 26. The method according to claim 26. 28. The generating step includes obtaining, for at least one candidate second portion size, the candidate second portion size by accessing a lookup table according to an index that depends on at least one previously encoded data item. 27. The method according to claim 27. 29. The generating step includes selectively applying a shift amount that depends at least on the historical data. 28. The method according to claim 28. 30. The applying step comprises: (i) applying a right shift that depends on the shift amount in deriving the index; (ii) adding the shift amount in deriving the index Contains one of 29. The method according to claim 29. 31. The generating step includes combining a value accessed from the lookup table with a value that depends on the shift amount. 30. The method according to claim 30. 32. The generating step includes adding the value accessed from the lookup table to the shift amount. 31. The method according to claim 31. 33. The step of generating a plurality of candidate second portion sizes includes applying, to at least one candidate second portion size, a shift amount that depends on values ​​of one or more of the data items. 27. The method according to claim 27. 34. The candidate data set is: a significance data set indicating whether a data item is non-zero; one or more greater-than-n data sets indicating whether a given data item is greater than n for each of the values; a parity data set indicating the value of the least significant bit of the data item; Contains one or more datasets selected from a list consisting of 24 to 33. A method according to any one of claims 24 to 33. 35. When one or more data sets are selected, decoding by the first technique includes modifying data values ​​after decoding by a given data set to constitute values ​​decodable by that data set. 34. The method according to claim 34. 36. When two or more data sets are selected, decoding by the first technique includes decoding by the two or more data sets in a predetermined data set order. 35. The method according to claim 35. 37. The storing step includes modifying at least the stored historical data applicable to the given characteristic of the given data item in response to decoding the given data item. 24 to 36. A method according to any one of claims 24 to 36. 38. The deriving step includes: generating a copy of at least a portion of the stored historical data applicable to the given characteristic of the given data item; deriving a second portion size at least in part dependent on the copy of the historical data applicable to the given characteristic of the given data item; modifying at least the stored historical data applicable to the given characteristic of the given data item in response to encoding the given data item; Including, 26. The method according to claim 26. 39. The modifying step includes: selectively modifying at least the stored historical data applicable to the given characteristic of the given data item in response to encoding the given data item only if the given data item exceeds a threshold value. 37. The method according to claim 37. 40. The historical data includes data indicative of a plurality of data item characteristics. 24 to 39. The method according to any one of claims 24 to 39. 41. The data items are image data values, and the plurality of data item characteristics for a given image data value are: a color component represented by said given image data value; and a block size of a block of data values ​​that includes the given image data value; and the location of said given image data value within an image; and a position of the given image data value in a block of image data values ​​which includes the given image data value; and the location within an image of a block of image data values ​​which includes said given image data value; the location of a sub-block of image data values ​​which includes said given image data value within a block of image data values; a block size of a block of image data values ​​that includes the given image data value; and the distance of the given image data value from a predetermined location within a block of image data values ​​which includes the given image data value; and whether the given image data values ​​are generated using a spatial frequency transform; Contains two or more properties selected from the list consisting of 40. The method according to claim 40. 42. The one or more features for decoding the decoded data item include one or more features indicative of a size of the decoded data item. 24 to 41. A method according to any one of claims 24 to 41. 43. The one or more features of decoding the decoded data item include data dependent on a second portion size generated to decode the decoded data item. 42. The method according to claim 42. 44. Computer software which, when executed by a computer, causes the computer to carry out a method according to any one of 24 to 43. 45. A non-transitory machine-readable storage medium storing the computer software described in 44. 46. ​​An apparatus for encoding successive data items, comprising: a historical data store configured to store historical data for the encoded data items; a first encoding circuit configured to encode a given data item according to a first encoding technique; a second encoding circuit configured to encode any remaining values ​​of the given data item by a second encoding technique different from the first encoding technique; Equipped with the historical data being indicative of one or more characteristics encoding the encoded data item; The first encoding technique comprises: encoding a series of zero or more data sets each representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence upon (i) a plurality of previously encoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be encoded by the first encoding technique. Device. 47. A video data capture, transmission, display and / or storage device comprising the apparatus of 46. 48. An apparatus for decoding an input data signal representing successive data items, comprising: a historical data storage unit configured to store historical data for the decrypted data items; a first decoding circuit configured to decode the given data item according to a first decoding technique; a second decoding circuit configured to decode any remaining values ​​of the given data item by a second decoding technique different from the first decoding technique; Equipped with the historical data being indicative of one or more characteristics of decoding the decoded data item; The first decoding technique includes: decoding a series of zero or more data sets, each data set representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence upon (i) a plurality of previously decoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be decoded by the first decoding technique. Device. 49. A video data capture, transmission, display and / or storage device comprising the apparatus of 48. 50. A method of encoding a block of contiguous data items, comprising: storing historical data for the block of encoded data items; generating block parameters for a block of a given data item; encoding a given data item of said block of given data items by a first encoding technique; encoding any remaining values ​​of said given data item by a second encoding technique different from said first encoding technique; Including, the historical data being indicative of one or more characteristics encoding the blocks of data items; the block parameters are at least partially dependent on historical data applicable to the block of the given data item; The first encoding technique comprises: encoding a series of zero or more data sets each representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence on the block parameters generated for the given block of data items; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be encoded by the first encoding technique. method. 51. The second encoding technique includes encoding an escape code that includes a first portion and a non-unary encoded second portion having a length in bits that depends on the size of the second portion. 50. The method according to claim 50. 52. Deriving the size of the second portion at least in part in dependence on the historical data applicable to the block of the given data item. 51. The method according to claim 51. 53. The method includes generating a plurality of candidate second portion sizes dependent on the historical data applicable to the given characteristic of the given data item; and selecting from among the plurality of candidate second portion sizes. 52. The method according to claim 52. 54. The step of generating a plurality of candidate second portion sizes includes applying, to at least one candidate second portion size, a shift amount that depends on values ​​of one or more of the data items. 53. The method according to claim 53. 55. The candidate data set is: a significance data set indicating whether a data item is non-zero; one or more greater-than-n data sets indicating whether a given data item is greater than n for each of the values; a parity data set indicating the value of the least significant bit of the data item; Contains one or more datasets selected from a list consisting of 55. A method according to any one of claims 50 to 54. 56. When one or more data sets are selected, encoding with the first technique includes modifying data values ​​after encoding with a given data set to constitute values ​​encodable by that data set. 55. The method according to claim 55. 57. When two or more data sets are selected, encoding by the first technique includes encoding by the two or more data sets in a predetermined data set order. 56. The method according to claim 56. 58. The storing step includes modifying at least the stored historical data applicable to the given block of data items in response to the given block of data items. A method according to any one of 50 to 57. 59. The deriving step includes: generating a copy of at least a portion of the stored historical data applicable to the given characteristic of the given data item; deriving a second portion size at least in part dependent on the copy of the historical data applicable to the given characteristic of the given data item; modifying at least the stored historical data applicable to the given characteristic of the given data item in response to encoding the given data item; Including, 52. The method according to claim 52. 60. The modifying step includes: selectively modifying at least the stored historical data applicable to the given characteristic of the given data item in response to encoding the given data item only if the given data item exceeds a threshold value. 58. The method according to claim 59, 61. The storing step includes storing historical data applicable to a plurality of data item characteristics. A method according to any one of 50 to 60. 62. The data items are image data values, and the history data for a block of a given data item that includes the given image data value is a color component represented by said given image data value; and a block size of a block of data values ​​that includes the given image data value; and the location of said given image data value within an image; and a position of the given image data value in a block of image data values ​​which includes the given image data value; and the location within an image of a block of image data values ​​which includes said given image data value; the location of a sub-block of image data values ​​which includes said given image data value within a block of image data values; a block size of a block of image data values ​​that includes the given image data value; and the distance of the given image data value from a predetermined location within a block of image data values ​​which includes the given image data value; and whether the given image data values ​​are generated using a spatial frequency transform; Contains two or more properties selected from the list consisting of 61. The method according to claim 61. 63. The one or more features encoding the encoded data item include one or more features indicative of a size of the encoded data item. A method according to any one of 50 to 62. 64. The one or more features encoding the encoded data item include data dependent on a second portion size generated to encode the encoded data item. 63. The method according to claim 63. 65. Computer software which, when executed by a computer, causes the computer to carry out a method according to any one of 50 to 64. 66. A non-transitory machine-readable storage medium storing the computer software described in 65. 67. A coded data signal generated by a method according to any one of claims 50 to 64. 68. A non-transitory machine-readable storage medium storing the encoded data signal according to 67. 69. A method for decoding a block of consecutive data items, comprising: storing historical data for the block of decrypted data items; generating block parameters for a block of a given data item; Decoding a given data item of said block of given data items by a first decoding technique; decrypting any remaining values ​​of the given data item using a second decryption technique different from the first decryption technique; Including, the historical data being indicative of one or more characteristics for decoding blocks of the data item; the block parameters are at least partially dependent on historical data applicable to the block of the given data item; The first decoding technique includes: decoding a series of zero or more data sets, each data set representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence on the block parameters generated for the given block of data items; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be decoded by the first decoding technique. method. 70. The second decoding technique includes decoding an escape code that includes a first portion and a non-unary encoded second portion having a length in bits that depends on the size of the second portion. 69. The method according to claim 69. 71. Deriving the size of the second portion at least in part in dependence on the historical data applicable to the block of the given data item. 70. The method according to claim 70. 72. The method includes generating a plurality of candidate second portion sizes dependent on the historical data applicable to the given characteristic of the given data item; and selecting from among the plurality of candidate second portion sizes. 71. The method according to claim 71. 73. The step of generating a plurality of candidate second portion sizes includes applying, to at least one candidate second portion size, a shift amount that depends on values ​​of one or more of the data items. 72. The method according to claim 72. 74. The candidate data set is a significance data set indicating whether a data item is non-zero; one or more greater-than-n data sets indicating whether a given data item is greater than n for each of the values; a parity data set indicating the value of the least significant bit of the data item; Contains one or more datasets selected from a list consisting of 69 to 73. A method according to any one of claims 69 to 73. 75. When one or more data sets are selected, decoding by the first technique includes modifying data values ​​after decoding by a given data set to constitute values ​​decodable by that data set. 74. The method according to claim 74. 76. When two or more data sets are selected, the decoding by the first technique includes decoding by the two or more data sets in a predetermined data set order. 75. The method according to claim 75. 77. The storing step includes modifying at least the stored historical data applicable to the block of the given data item in response to decoding the block of the given data item. 69 to 76. A method according to any one of claims 69 to 76. 78. The deriving step includes: generating a copy of at least a portion of the stored historical data applicable to the given characteristic of the given data item; deriving a second portion size at least in part dependent on the copy of the historical data applicable to the given characteristic of the given data item; modifying at least the stored historical data applicable to the given characteristic of the given data item in response to encoding the given data item; Including, 71. The method according to claim 71. 79. The modifying step includes: selectively modifying at least the stored historical data applicable to the given characteristic of the given data item in response to encoding the given data item only if the given data item exceeds a threshold value. 77. The method according to claim 78, 80. The storing step includes storing historical data applicable to a plurality of data item characteristics. 69 to 79. The method according to any one of claims 69 to 79. 81. The data items are image data values, and the history data for a block of a given data item that includes the given image data value is a color component represented by said given image data value; and a block size of a block of data values ​​that includes the given image data value; and the location of said given image data value within an image; and a position of the given image data value in a block of image data values ​​which includes the given image data value; and the location within an image of a block of image data values ​​which includes said given image data value; the location of a sub-block of image data values ​​which includes said given image data value within a block of image data values; a block size of a block of image data values ​​that includes the given image data value; and the distance of the given image data value from a predetermined location within a block of image data values ​​which includes the given image data value; and whether the given image data values ​​are generated using a spatial frequency transform; Contains two or more properties selected from the list consisting of 80. The method according to claim 80. 82. The one or more features for decoding the decoded data item include one or more features indicative of a size of the decoded data item. 69 to 81. A method according to any one of claims 69 to 81. 83. The one or more features of decoding the decoded data item include data dependent on a second portion size generated to decode the decoded data item. 82. The method according to claim 82. 84. Computer software which, when executed by a computer, causes the computer to carry out a method according to any one of 69 to 83. 85. A non-transitory machine-readable storage medium storing the computer software described in 84. 86. An apparatus for encoding a block of successive data items, comprising: a history data store configured to store history data for the block of encoded data items; a generator circuit configured to generate block parameters for a block of a given data item; a first encoding circuit configured to encode a given data item of the block of given data items by a first encoding technique; a second encoding circuit configured to encode any remaining values ​​of the given data item by a second encoding technique different from the first encoding technique; Equipped with the historical data being indicative of one or more characteristics encoding the blocks of data items; the block parameters are at least partially dependent on historical data applicable to the block of the given data item; The first encoding technique comprises: encoding a series of zero or more data sets each representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence on the block parameters generated for the given block of data items; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be encoded by the first encoding technique. Device. 87. A video data capture, transmission, display and / or storage device comprising the apparatus of 86. 88. An apparatus for decoding a block of consecutive data items, comprising: a history data store configured to store history data for blocks of decrypted data items; a generator circuit configured to generate block parameters for a block of a given data item; a first decoding circuit configured to decode a given data item of the block of given data items by a first decoding technique; a second decoding circuit configured to decode any remaining values ​​of the given data item by a second decoding technique different from the first decoding technique; Equipped with the historical data being indicative of one or more characteristics for decoding blocks of the data item; the block parameters are at least partially dependent on historical data applicable to the block of the given data item; The first decoding technique includes: decoding a series of zero or more data sets, each data set representing a respective range of values ​​for said data item; selecting a set of data sets from a plurality of candidate data sets in dependence on the block parameters generated for the given block of data items; Including, The remainder value is the amount by which the given data item exceeds the maximum value that can be decoded by the first decoding technique. Device. 89. A video data capture, transmission, display and / or storage device comprising the apparatus of 88.

Claims

1. 1. A method of encoding consecutive data items, comprising the steps of: storing historical data for the encoded data items, said historical data indicative of one or more characteristics of the encoding of the data items; encoding the given data item by a first encoding technique, the first encoding technique comprising: encoding a series of zero or more data sets, each of the data sets representing a respective range of values ​​of the given data item; and selecting a series of data sets from a plurality of candidate data sets in dependence on (i) a plurality of previously encoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; encoding, by a second encoding technique different from the first encoding technique, one or more of the remaining values ​​of the given data item that exceed the maximum value that can be encoded by the first encoding technique; Including, The second encoding technique uses the selected set of data. method.

2. The second encoding technique includes encoding an escape code that includes a first portion and a non-unary encoded second portion having a length in bits that depends on the size of the second portion. The method of claim 1.

3. deriving a size of the second portion at least in part in dependence on the historical data applicable to the given characteristic of the given data item. The method of claim 2.

4. generating a plurality of candidate second portion sizes dependent on the historical data applicable to the given characteristic of the given data item; and selecting from among the plurality of candidate second portion sizes. The method according to claim 3.

5. The generating step includes obtaining, for at least one candidate second portion size, the candidate second portion size by accessing a lookup table according to an index that depends on at least one previously encoded data item. The method according to claim 4.

6. The generating step includes selectively applying a shift amount that depends on at least the historical data. The method according to claim 5.

7. The applying step comprises: (i) applying a right shift that depends on the shift amount in deriving the index; (ii) adding the shift amount in deriving the index Contains one of The method according to claim 6.

8. The generating step includes combining a value accessed from the lookup table with a value that is dependent on the shift amount. The method of claim 7.

9. The generating step includes adding the value accessed from the lookup table to the shift amount. The method according to claim 8.

10. The candidate data set is a significance data set indicating whether a data item is non-zero; one or more greater-than-n data sets indicating whether a given data item is greater than n for each of the values; a parity data set indicating the value of the least significant bit of the data item; Contains one or more datasets selected from a list consisting of The method of claim 1.

11. When one or more data sets are selected, encoding with the first encoding technique includes modifying data values ​​after encoding with a given data set to constitute values ​​encodable by that data set. The method of claim 10.

12. When two or more data sets are selected, encoding with the first encoding technique includes encoding with the two or more data sets in a predetermined data set order. The method of claim 11.

13. The storing step includes modifying at least the stored historical data applicable to the given characteristic of the given data item in response to encoding the given data item. The method of claim 1.

14. The deriving step includes: generating a copy of at least a portion of the stored historical data applicable to the given characteristic of the given data item; deriving a second portion size at least in part dependent on the copy of the historical data applicable to the given characteristic of the given data item; modifying at least the stored historical data applicable to the given characteristic of the given data item in response to encoding the given data item; Including, The method according to claim 3.

15. The modifying step includes: and selectively modifying, in response to encoding the given data item, at least the stored historical data applicable to the given characteristic of the given data item only if the given data item exceeds a threshold value. The method of claim 13.

16. The historical data includes data indicative of a plurality of data item characteristics. The method of claim 1.

17. The data items are image data values, and the plurality of data item characteristics for a given image data value include: a color component represented by said given image data value; and a block size of a block of data values ​​that includes the given image data value; and the location of said given image data value within an image; and a position of the given image data value in a block of image data values ​​which includes the given image data value; and the location within an image of a block of image data values ​​which includes said given image data value; the location of a sub-block of image data values ​​which includes said given image data value within a block of image data values; a block size of a block of image data values ​​that includes the given image data value; and the distance of the given image data value from a predetermined location within a block of image data values ​​which includes the given image data value; and whether the given image data values ​​are generated using a spatial frequency transform; Contains two or more properties selected from the list consisting of 17. The method of claim 16.

18. The one or more features encoding the encoded data item include one or more features indicative of a size of the encoded data item. The method of claim 1.

19. The one or more features encoding the encoded data item include data dependent on a second portion size generated to encode the encoded data item.

20. The method of claim 18.

20. Computer software which, when executed by a computer, causes the computer to carry out the method of claim 1.

21. 21. A non-transitory machine-readable storage medium storing the computer software of claim 20.

22. 1. A method for decoding an input data signal representing successive data items, comprising the steps of: storing historical data for the decoded data items, said historical data indicative of one or more characteristics of the decoding of the data items; decoding the given data item by a first decoding technique, the first decoding technique comprising: decoding a series of zero or more data sets, each data set representing a respective range of values ​​of the given data item; and selecting a series of data sets from a plurality of candidate data sets in dependence on (i) a plurality of previously decoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; decoding, by a second decoding technique different from the first decoding technique, one or more of the remaining values ​​of the given data item that exceed the maximum value that can be decoded by the first decoding technique; Including, The second decoding technique uses the selected set of data sets. method.

23. The second decoding technique includes decoding an escape code that includes a first portion and a non-unary encoded second portion having a length in bits that depends on the size of the second portion.

23. The method of claim 22.

24. deriving a size of the second portion at least in part in dependence on the historical data applicable to the given characteristic of the given data item.

24. The method of claim 23.

25. generating a plurality of candidate second portion sizes dependent on the historical data applicable to the given characteristic of the given data item; and selecting from among the plurality of candidate second portion sizes.

25. The method of claim 24.

26. The generating step includes obtaining, for at least one candidate second portion size, the candidate second portion size by accessing a lookup table according to an index that depends on at least one previously encoded data item.

26. The method of claim 25.

27. The generating step includes selectively applying a shift amount that depends on at least the historical data.

27. The method of claim 26.

28. The applying step comprises: (i) applying a right shift that depends on the shift amount in deriving the index; (ii) adding the shift amount in deriving the index Contains one of 28. The method of claim 27.

29. The generating step includes combining a value accessed from the lookup table with a value that is dependent on the shift amount.

29. The method of claim 28.

30. The generating step includes adding the value accessed from the lookup table to the shift amount.

30. The method of claim 29.

31. The step of generating a plurality of candidate second portion sizes includes applying to at least one candidate second portion size a shift amount that depends on values ​​of one or more of the data items.

26. The method of claim 25.

32. The candidate data set is a significance data set indicating whether a data item is non-zero; one or more greater-than-n data sets indicating whether a given data item is greater than n for each of the values; a parity data set indicating the value of the least significant bit of the data item; Contains one or more datasets selected from a list consisting of 23. The method of claim 22.

33. When one or more data sets are selected, decoding with the first decoding technique includes modifying data values ​​after decoding with a given data set to constitute values ​​decodable with that data set.

33. The method of claim 32.

34. When two or more data sets are selected, decoding according to the first decoding technique includes decoding according to the two or more data sets in a predetermined data set order.

34. The method of claim 33.

35. The storing step includes modifying at least the stored historical data applicable to the given characteristic of the given data item in response to decoding the given data item.

23. The method of claim 22.

36. The deriving step includes: generating a copy of at least a portion of the stored historical data applicable to the given characteristic of the given data item; deriving a second portion size at least in part dependent on the copy of the historical data applicable to the given characteristic of the given data item; modifying at least the stored historical data applicable to the given characteristic of the given data item in response to encoding the given data item; Including, 25. The method of claim 24.

37. The modifying step includes: and selectively modifying, in response to encoding the given data item, at least the stored historical data applicable to the given characteristic of the given data item only if the given data item exceeds a threshold value.

36. The method of claim 35.

38. The historical data includes data indicative of a plurality of data item characteristics.

23. The method of claim 22.

39. The data items are image data values, and the plurality of data item characteristics for a given image data value include: a color component represented by said given image data value; and a block size of a block of data values ​​that includes the given image data value; and the location of said given image data value within an image; and a position of the given image data value in a block of image data values ​​which includes the given image data value; and the location within an image of a block of image data values ​​which includes said given image data value; the location of a sub-block of image data values ​​which includes said given image data value within a block of image data values; a block size of a block of image data values ​​that includes the given image data value; and the distance of the given image data value from a predetermined location within a block of image data values ​​which includes the given image data value; and whether the given image data values ​​are generated using a spatial frequency transform; Contains two or more properties selected from the list consisting of 39. The method of claim 38.

40. The one or more features for decoding the decoded data item include one or more features indicative of a size of the decoded data item.

23. The method of claim 22.

41. The one or more features of decoding the decoded data item include data dependent on a size of a second portion generated to decode the decoded data item.

41. The method of claim 40.

42. Computer software which, when executed by a computer, causes said computer to carry out the method of claim 22.

43. 43. A non-transitory machine-readable storage medium storing the computer software of claim 42.

44. 1. An apparatus for encoding consecutive data items, comprising: a historical data store configured to store historical data for an encoded data item, said historical data indicative of one or more characteristics of the encoding of the data item; a first encoding circuit configured to encode the given data item by a first encoding technique, the first encoding technique comprising: encoding a series of zero or more data sets, each data set representing a respective range of values ​​of the given data item; and selecting a series of data sets from a plurality of candidate data sets in dependence on (i) a plurality of previously encoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; a second encoding circuit configured to encode, by a second encoding technique different from the first encoding technique, one or more of the remaining values ​​of the given data item that exceed the maximum value that can be encoded by the first encoding technique; Equipped with The second encoding technique uses the selected set of data. Device.

45. 45. Video data capture, transmission, display and / or storage device comprising an apparatus according to claim 44.

46. 1. Apparatus for decoding an input data signal representing successive data items, comprising: a historical data storage configured to store historical data for a decoded data item, said historical data indicative of one or more characteristics of the decoding of the data item; a first decoding circuit configured to decode the given data item by a first decoding technique, the first decoding technique including decoding a series of zero or more data sets, each data set representing a respective range of values ​​of the given data item, and selecting a series of data sets from a plurality of candidate data sets depending on (i) a plurality of previously decoded data sets and (ii) the historical data applicable to a given characteristic of the given data item; a second decoding circuit configured to decode, by a second decoding technique different from the first decoding technique, one or more remaining values ​​of the given data item that exceed the maximum value that can be decoded by the first decoding technique; Equipped with The second decoding technique uses the selected set of data sets. Device.

47. 47. Video data capture, transmission, display and / or storage device comprising an apparatus according to claim 46.

Citation Information

Patent Citations

  • Image decoding method and image decoding device

    JP2020043610A

  • Encoding device, decoding device, encoding method, and decoding method

    WO2020067167A1