Encoding device and decoding device

The encoding and decoding devices address the issue of varying quantization intervals by using predicted values and entropy encoding/decoding to efficiently manage data transmission and maintain image quality.

JP2024124559AActive Publication Date: 2024-09-12NEC CORP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2024110556
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-09-12
Estimated Expiration
2040-12-15

AI Technical Summary

Technical Problem

Existing image compression technologies face issues with varying quantization intervals across regions, leading to increased data transmission requirements and potential quality deterioration due to significant variations in quantization intervals, affecting transmission capacity and image quality.

Method used

An encoding device and decoding device that utilize a quantization interval estimation process based on predicted values and entropy encoding/decoding to determine quantization intervals and probabilities, allowing for efficient encoding and decoding without explicit information on quantization intervals.

Benefits of technology

This approach reduces the amount of information needed for quantization interval representation, preventing data transmission overload and maintaining image quality by estimating quantization intervals during decoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024124559000001
    Figure 2024124559000001
Patent Text Reader

Abstract

To avoid an increase in information volume due to the provision of quantization interval information.SOLUTION: The present embodiment executes a process of acquiring a quantization interval for quantizing a value to be processed, a process of acquiring a predicted value on the basis of a quantization value for the processed value, a process of acquiring a quantization value of the value to be processed on the basis of the quantization interval, and a process of entropy-coding a quantized sequence based on the predicted value and the quantization value of the value to be processed. This embodiment can be realized by any form such as an encoding device or a decoding device.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an encoding device and a decoding device. [Background technology]

[0002] Patent Document 1 describes an image compression device in which a user of an image can specify a region of interest in the image, set a quantization rate for the region of interest different from that for other regions, and control compression based on the set quantization rate, and a compression / decompression device corresponding to the image compression device. The compression / decompression device has an image division means for dividing an image into a plurality of regions, a quantization rate setting means for specifying one or more regions of interest in the image, and a compression control means for controlling compression for each region based on the set quantization rate. When the image division means divides an image into a plurality of regions, the region of interest in the image is specified by the region designation means, and the quantization rate is set for each divided region by the quantization rate setting means, a quantization rate different from that for other regions is set for the specified region of interest, and compression control is performed for each region based on the set quantization rate. In other words, the image compression device transmits the quantization rate set for each region to the compression / decompression device together with a code obtained by compressing the image at the quantization rate. The quantization rate is specified using a quantization interval. A QP value may be used as an index value of the quantization interval. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2003-339047 A Summary of the Invention [Problem to be solved by the invention]

[0004] However, the more significant the variation in the quantization interval for each region in one frame of image, the more information on the quantization interval is transmitted along with the code obtained by compression. When the variation in the quantization interval for each region is significant, the amount of information on the quantization interval may reach a level that affects the total amount of data of the image. For example, the more detailed the setting of the gaze area, the more likely the variation in the quantization interval is to be significant. As a result, the total amount of data may exceed the transmission capacity or a transmission delay may occur. In addition, the quality of the image being expanded may decrease. Similar phenomena may occur not only in images, but also in the transmission of other types of information, such as sounds, waves, and electrical signal waveforms.

[0005] An object of the present invention is to provide an encoding device and a decoding device that solve the above-mentioned problems. [Means for solving the problem]

[0006] According to a first aspect of the present invention, an encoding device executes a process of obtaining a quantization interval for quantizing a value to be processed, a process of obtaining a predicted value based on a quantization value for the processed value, a process of obtaining a quantization value of the value to be processed based on the quantization interval, and a process of entropy encoding a quantized sequence based on the predicted value and the quantization value of the value to be processed.

[0007] According to a second aspect of the present invention, a decoding device executes a process of inverse quantizing a quantization value code to be processed based on a processed quantization value to obtain a quantization interval for determining a quantization value, a process of obtaining a predicted value based on the processed quantization value, a process of entropy decoding a coded sequence using the predicted value to obtain a quantization value sequence including the quantization value code, and a process of inverse quantizing the quantization value code included in the quantization value sequence to obtain the quantization value. Effect of the Invention

[0008] According to the present invention, in decoding a coded sequence obtained by coding, even if information on the quantization interval is not provided, the quantization interval can be estimated, and therefore an increase in the amount of information due to the provision of information on the quantization interval can be avoided. [Brief description of the drawings]

[0009] [Figure 1] 1 is a schematic block diagram showing an example of the configuration of a data processing system according to a first embodiment. [Diagram 2] 1 is a schematic block diagram illustrating an example of a hardware configuration of an encoding device according to a first embodiment. [Diagram 3] FIG. 2 is an explanatory diagram illustrating an example of a machine learning model according to the first embodiment. [Figure 4] 5 is a flowchart showing an example of entropy encoding processing according to the first embodiment. [Diagram 5] 5 is a flowchart showing an example of entropy decoding processing according to the first embodiment. [Figure 6] 5 is a flowchart showing an example of an encoding process according to the first embodiment. [Figure 7] 6 is a flowchart showing an example of a decoding process according to the first embodiment. [Figure 8] FIG. 11 is a schematic block diagram showing an example of the configuration of a data processing system according to a second embodiment. [Figure 9] 13 is a flowchart showing an example of an encoding process according to the second embodiment. [Figure 10] 13 is a flowchart showing an example of a decoding process according to the second embodiment. [Figure 11] FIG. 1 is a schematic block diagram illustrating a minimum configuration of an encoding device. [Figure 12] FIG. 1 is a schematic block diagram illustrating a minimum configuration of a decoding device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. First Embodiment First, the first embodiment will be described. FIG. 1 is a schematic block diagram showing an example of the configuration of a data processing system 1 according to the first embodiment. The data processing system 1 includes an encoding device 10 and a decoding device 20. In the following description, the encoding device 10 and the decoding device 20 are mainly configured as an image encoding device and an image decoding device, respectively. The input value to be processed by the encoding device 10 and the output value to be decoded by the decoding device 20 may be a signal value for each pixel, or a feature value indicating the feature of an image, or an element value of the feature value. The encoding device 10 and the decoding device 20 may be configured as part of another device. The other device may be, for example, not limited to a general-purpose information device such as a PC (Personal Computer), a tablet terminal device, a multi-function mobile phone, or a content server, but may also be a dedicated device such as a camera, a recorder, or a player.

[0011] The encoding device 10 determines a quantization interval for quantizing an input element value, which is an element of an input value to be processed, based on the processed quantization value, and determines a probability distribution of quantization candidate values, which are candidates for the quantization value of the input element value, based on the processed quantization value. The encoding device 10 quantizes the input element value using the determined quantization interval to determine a quantization value. The encoding device 10 entropy codes a quantization sequence including a quantization value code indicating the quantization value of the input element value, using the determined probability distribution. The encoding device 10 outputs a coded sequence generated by entropy coding to a decoding device 20. The decoding device 20 receives an encoded sequence as input to the encoding device 10. The decoding device 20 determines a quantization interval for determining a quantization value by inverse quantizing a quantization value code to be processed based on the processed quantization value, and determines a probability distribution of quantization candidate values ​​that are candidates for the quantization value based on the processed quantization value. The decoding device 20 entropy decodes the encoded sequence using the determined probability distribution, and generates a quantization value sequence including the quantization value code to be processed. The decoding device 20 determines a quantization value by inverse quantizing a quantization value code included in the quantization value sequence.

[0012] Next, an example of the functional configuration of the encoding device 10 will be described. The encoding device 10 includes an input unit 122, a quantization unit 124, a quantization value storage unit 126, a quantization interval estimation unit 128, and an entropy encoding unit . An input value to be processed is input to the input unit 122. The input value (input) input at one time may be one element value (element), or may include two or more element values. In this application, an element value included in the input value is called an "input element value." The input unit 122 sequentially outputs the input element values ​​input to the input unit 122 to the quantization unit 124 .

[0013] The quantization unit 124 receives the input element value from the input unit 122 and the quantization interval from the quantization interval estimation unit 128. The quantization unit 124 calculates the input element value z i The input quantization interval Q i quantize the input element value according to Z i The input element value z i is the input sequence z1, …, z i , is the value to be encoded. i etc. indicate indexes for identifying individual input element values.

[0014] The quantization interval for one input element value is given, for example, as one predetermined value (scalar) for the entire range. In that case, the quantized value for the input element value is the value that is closest to the input element value among multiple discrete values ​​that are discretized at equal intervals with the quantization interval between the minimum and maximum values ​​of the input element value. The quantization interval for one input element value may be given as one predetermined value for each of multiple intervals that divide the range. In that case, the quantization interval is a vector that includes one interval-by-interval for each interval as an element value.

[0015] Each interval may be composed of one quantization interval, or may include two or more quantization intervals. A quantization value for an input element value included in an interval including two or more quantization intervals is a discrete value that is closest to the input element value among a plurality of discrete values ​​that divide the interval into two or more quantization intervals. Therefore, these discrete values ​​are candidates for the quantization value. In the following description, the candidates for the quantization value may be called "quantized candidate values". The quantization value code is a code that corresponds to a determined quantization value among the codes corresponding to each of the plurality of quantization candidate values.

[0016] The code corresponding to each of the multiple quantization candidate values ​​may be, for example, a number determined in ascending order from the minimum value, or a bit string indicating the number. For example, a quantization value code 1 obtained by using a quantization interval 1 for a certain quantization value 1 and a quantization value code 2 obtained by using a quantization interval 2 different from the quantization value 1 for another quantization value 2 different from the quantization interval 1 may be equal or different. In the following description, the code corresponding to each of the multiple quantization candidate values ​​may be referred to as a "quantized candidate code." The quantization unit 124 stores the determined quantization value in the quantization value storage unit 126, and outputs a quantization value code indicating the quantization value to the entropy coding unit 130.

[0017] The quantization value storage unit 126 stores the quantization value Z i The quantized values ​​stored in the quantized value storage unit 126 correspond to the quantized value codes encoded by the entropy encoding unit 130. i At the time when is stored, the quantized values ​​Z1, …, Z corresponding to the earlier processed input element values ​​are i-1 is stored in the quantized value storage unit 126.

[0018] The quantization interval estimation unit 128 uses a predetermined mathematical model to determine a quantization interval for an input element value to be processed based on the quantized value of the processed input element value stored in the quantization value storage unit 126, and a probability distribution of quantization candidate values ​​for the input element value. In this embodiment, there are multiple values ​​that are candidates for the quantization interval (hereinafter, referred to as "quantization interval candidate values"). Each of the multiple quantization interval candidate values ​​is a real number or an integer. The quantization interval estimation unit 128 may have multiple quantization interval candidate values ​​set in advance.

[0019] The quantization interval estimation unit 128 may reset the process for determining the probability distribution of the quantization candidate values ​​for each unit (hereinafter referred to as an "entropy coding unit") in which the encoding process is executed at one time in the entropy encoding. The entropy coding unit is a sequence including N quantization value codes (N is a predetermined integer equal to or greater than 2). The entropy coding unit corresponds to an entropy decoding unit (described later) in the decoding device 20. The quantization value Z i The probability distribution of the quantization candidate values ​​for the processed input element values ​​Z1, …, Z i-1 The probability distribution of the quantization candidate values ​​is the conditional probability distribution of the quantization candidate values ​​Z1, ..., Z2 for the processed input element values. i-1 It can also be regarded as a predicted value predicted from. In this embodiment, the probability distribution of the quantization candidate values ​​is a discrete probability distribution indicating the occurrence probability of each quantization candidate value. The quantization value corresponds to one of the quantization candidate values. The quantization interval estimation unit 128 determines a preset initial value P1 as the probability distribution of the quantization candidate value for the quantization value Z1 immediately after resetting for each entropy coding unit. For example, a uniform distribution may be applied as the initial value P1. In the uniform distribution, the occurrence probability of each quantization candidate value is a real value that is equal to each other.

[0020] The mathematical models applied to the quantization interval estimation unit 128 include a mathematical model for determining a quantization interval (hereinafter referred to as a "quantization interval model") and a mathematical model for determining a probability distribution of candidates for quantization values ​​(hereinafter referred to as a "probability distribution model"). The quantization interval estimation unit 128 estimates, as an explanatory variable of the quantization interval model, a quantization value Z i-1-M , …, Z i-1 is read from the quantization value storage unit 126 and used as the objective variable, i The quantization interval estimation unit 128 calculates the occurrence probability for each quantization interval candidate value for the input element value z i quantization interval Q for i The quantization interval estimation unit 128 determines the quantization value Z i-1-M , …, Z i-1 The input element value z to be processed i quantization interval Q for i It can also be considered as predicting the

[0021] The quantization interval estimation unit 128 estimates, for example, the quantization value Z i-1-M , …, Z i-1 The input element value z i Quantization value Z for i The occurrence probability of each quantization interval candidate value for quantization value Z i The probability distribution P({Z i}|Z i-1-M , …, Z i-1 ) is calculated as {Z i} is the quantization value Z iThe calculated probability distribution is a set of candidate quantization values ​​Z i-1-M , …, Z i-1 The quantized value Z i The probability distribution P({Z i}|Z i-1-N , …, Z i-1 ) may be expressed by the occurrence probability of each quantization candidate value, or may be expressed by the occurrence probability of each quantization candidate value code corresponding to each quantization candidate value.

[0022] As the mathematical model, for example, a neural network such as a recurrent neural network (RNN) or a convolutional neural network (CNN) can be applied. The applicable mathematical model is not limited to a neural network, and may be other types of machine learning models such as a random forest (RF) or a support vector machine (SVM). The quantization interval estimation unit 128 estimates the current input element value z i The quantization interval Q i to the quantization unit 124, and the probability distribution P({Z i}|Z i-1-M , …, Z i-1 ) to the entropy coding unit 130.

[0023] The entropy coding unit 130 receives the quantization value Z i The quantization value code corresponding to the quantization interval estimation unit 128 is input, and the probability distribution P({Z i}|Z i-1-N , …, Z i-1) is input. The entropy coding unit 130 performs entropy coding for each entropy coding unit constituting a quantized sequence including a plurality of quantized value codes, to generate a coded sequence. Entropy coding is a type of reversible coding (sometimes called lossless compression). As will be described later, the original quantized sequence can be restored by performing entropy decoding, which is the inverse processing of entropy coding, on the generated coded sequence.

[0024] More specifically, the entropy coding unit can determine the coded sequence by performing the process illustrated in FIG. (Step S122) The entropy coding unit 130 calculates a probability distribution P(Z i |Z i-1-N , …, Z i-1 ) in sequence, and the product of these is calculated as the probability distribution of the quantization value candidates given to the entire input coded sequence. The calculated probability distribution indicates the occurrence probability of each quantization candidate value code indicating each quantization value candidate.

[0025] (Step S124) A plurality of codewords are set in advance in the entropy coding unit 130. A codeword is, for example, a bit sequence consisting of one or more bits. The bit sequences constituting each of the plurality of codewords are different from each other. The entropy coding unit 130 determines a codeword having a larger amount of information (bit length) for each quantization candidate value code, so that the quantization candidate value code has a lower occurrence probability, and stores a codeword set in which each quantization candidate value code corresponds to one codeword. The entropy coding unit 130 can use any of a method such as Huffman coding or arithmetic coding in coding the quantization candidate value code.

[0026] (Step S126) The entropy coding unit 130 refers to the stored codeword set and converts the input quantized value Z i A code word corresponding to a candidate quantization value code equal to the quantization value code corresponding to is identified. (Step S128) The entropy coding unit 130 generates a coded sequence by concatenating the code words identified for the individual quantized value codes in the order in which the quantized value codes are input. The entropy coding unit 130 outputs the generated coded sequence to the decoding device 20.

[0027] Next, an example of the functional configuration of the decoding device 20 (FIG. 1) will be described. The decoding device 20 includes an entropy decoding unit 242 , an inverse quantization unit 244 , a quantization value storage unit 246 , a quantization interval estimation unit 248 , and an output unit 250 . The entropy decoding unit 242 receives the coded sequence from the coding device 10 for each entropy decoding unit, and receives the probability distribution P({Z i}|Z i-1-M , …, Z i-1 ) is input for each decoded quantization value. The entropy decoding unit 242 performs entropy decoding on the coded sequence input from the coding device 10 (hereinafter referred to as the “input coded sequence”) to generate a quantization sequence including N quantization value codes, and outputs the generated quantization value codes to the inverse quantization unit 244 in the order in which they are generated.

[0028] As will be described later, the probability distribution P({Z i}|Z i-1-M , …, Z i-1 ) is the quantized value Z based on the quantized value code output to the inverse quantization unit 244. i The probability distribution of quantization candidate values ​​for P({Z i}|Z i-1-M , …, Z i-1The entropy decoding unit 242 recursively determines a reconstructed sequence that is equal to the input coded sequence, thereby obtaining individual quantized values ​​Z i The decoded encoded sequence is a sequence of quantized values ​​Z i The probability distribution of quantization candidate values ​​for P({Z i}|Z i-1-M , …, Z i-1 ) is used to decode the encoded sequence.

[0029] More specifically, the entropy decoding unit 242 can determine the quantization sequence by executing the process exemplified in Fig. 5. In the entropy decoding unit 242, a plurality of code words and a plurality of quantization candidate value codes are set in advance, similarly to the entropy coding unit 130. Here, the entropy decoding unit 242 uses, as an entropy decoding method, a method equivalent to the inverse process of the entropy coding method used by the entropy coding unit 130.

[0030] (Step S222) The entropy decoding unit 242 segments the input coded sequence into a sequence of N codewords. In segmenting the codewords into the sequence, the entropy decoding unit 242 sequentially identifies codewords having bit sequences matching bit sequences that become part of the input coded sequence in the segmentation of the input coded sequence. In general, there are multiple permutations of the N codewords included in the input coded sequence. Also, it is possible that some of the preset codewords are not included in the segmented sequence, or other parts are included multiple times or more. (Step S224) The entropy decoding unit 242 provisionally determines a quantization candidate value code corresponding to each codeword, and stores a codeword set in which each codeword is associated with one corresponding provisionally determined quantization candidate value code.

[0031] (Step S226) The entropy decoding unit 242 refers to the stored code word set, determines a corresponding quantization candidate value code for each divided code word, and sequentially outputs the quantization candidate value codes corresponding to the code words as quantization value codes to the inverse quantization unit 244 in accordance with the arrangement order in the input coded sequence. (Step S228) The entropy decoding unit 242 calculates the probability distribution P(Z i |Z i-1-N , …, Z i-1 ) in sequence, and the sum of these products is calculated as the probability distribution of quantization value candidates given to the entire quantization sequence. (Step S230) The entropy decoding unit 242 resets, for each quantization candidate value code, a codeword having a larger amount of information for a quantization candidate value code that gives a lower occurrence probability, and updates the coding set for the original quantization candidate value code to a codeword set in which the quantization candidate value code and the corresponding reset codeword are associated with each other.

[0032] (Step S232) The entropy decoding unit 242 refers to the stored codeword set and converts the input probability distribution P(Z i |Z i-1-N , …, Z i-1 ), a quantization candidate value code equivalent to a quantization value code that gives a quantization value corresponding to each of the quantization candidate values ​​is identified, and a code word corresponding to the identified quantization candidate value code is identified. (Step S234) The entropy decoding unit 242 concatenates, in the specified order, the codewords identified for the individual quantized value codes constituting the input coded sequence, to generate the coded sequence as a restored coded sequence.

[0033] (Step S236) The entropy decoding unit 242 judges whether the generated restored coded sequence is equal to the input coded sequence. If it is judged to be equal (step S236 YES), the process proceeds to step S238. If it is judged to be not equal (step S236 NO), the process returns to step S222, and the entropy decoding unit 242 repeats the processes from step S222 to this step. However, in the repeated processes, the entropy decoding unit 242 executes either one or both of (1) and (2). Thus, a different restored coded sequence is generated, and the generated restored coded sequence is compared with the input coded sequence. (1) In step S222, the division pattern for the permutation of N code words is changed to a new division pattern that has not been used in the executed process. (2) In step S224, the correspondence between the codeword and the quantization candidate value code is changed to a new correspondence that has not been used in the executed process.

[0034] (Step S238) The entropy decoding unit 242 determines the permutation of the quantized value codes corresponding to each of the N codewords forming the restored coded sequence as a quantized sequence that is the result of the entropy decoding process. The entropy decoding unit 242 outputs the determined quantized sequence to the inverse quantization unit 244. Then, the process in FIG. 5 ends.

[0035] The inverse quantization unit 244 inverse quantizes the quantized value Z i The inverse quantization unit 244 calculates the calculated quantization value Z i is output to the output unit 250. The output unit 250 receives the quantized value Z i as an output element value that is an element of the output value. The output unit 250 outputs an output value including the output element value to the outside of the decoding device 20 or to another member.

[0036] The inverse quantization unit 244 sequentially receives the individual quantization value codes from the entropy decoding unit 242 and outputs the quantization value Z i quantization interval Q for i are sequentially input. The quantized value codes input at this stage are the quantized value codes input from the entropy decoding unit 242 in step S226. The inverse quantization unit 244 sequentially inputs the quantized value codes corresponding to the quantization intervals Q i De-quantize using the quantized value Z i The inverse quantization unit 244 stores the determined quantization value in the quantization value storage unit 246.

[0037] The processes performed by the quantization value storage unit 246 and the quantization interval estimation unit 248 are similar to the processes performed by the quantization value storage unit 126 and the quantization interval estimation unit 128, respectively. That is, the quantization value storage unit 246 stores the quantization value Z i The quantized values ​​stored in the quantized value storage unit 246 correspond to the quantized value codes determined by the entropy decoding unit 242. i When the new quantization values ​​Z1, ..., Z i-1 is stored in the quantized value storage unit 246.

[0038] The quantization interval estimation unit 248 uses the quantization interval model and the probability distribution model to calculate the quantization value Z i quantization interval Qi for and its quantization value Z i The probability distribution of quantization candidate values ​​for P({Z i}|Z i-1-N , …, Z i-1 The quantization interval estimation unit 248 determines the determined quantization interval Q i to the inverse quantization unit 244, and the probability distribution P({Z i}|Z i-1-N , …, Z i-1 ) to the entropy decoding unit 242.

[0039] The entropy coding unit 130 and the entropy decoding unit 242 can use, for example, the arithmetic coding method and the corresponding decoding method described in the following literature as a method for determining code words corresponding to quantization value codes indicating individual quantization values. Jorma Rissanen and Glen G Langdon. Arithmetic coding. IBM Journal of research and development, 23 (2):149-162, 1979 Glen G Langdon. An introduction to arithmetic coding. IBM Journal of research and development, 1984 Jun Han, et al. Deep Generative Video Compression. 33rd Conference on Neural Information Processing Systems (NeurIPS 2019), Vancouver, Canada, 2019

[0040] (Hardware configuration example) Each unit of the encoding device 10 may be configured to include dedicated components, but may also be configured to include general-purpose components described below and function as a computer. FIG. 2 is a schematic block diagram showing an example of the hardware configuration of the encoding device 10 according to the present embodiment. The encoding device 10 includes a processor 102 , a drive unit 106 , an input / output unit 108 , a ROM 112 , and a RAM 114 .

[0041] The processor 102 controls processes for implementing the functions of the encoding device 10 and the functions of each unit constituting the encoding device 10. The processor 102 is, for example, a CPU (Central Processing Unit). The drive unit 106 makes the storage medium 104 detachable, and reads various data stored in the storage medium 104, or stores various data in the storage medium 104. The drive unit 106 is, for example, a solid state drive (SSD). The storage medium 104 is, for example, a non-volatile memory such as a random access memory (RAM) or a flash memory.

[0042] The input / output unit 108 inputs or outputs various data wirelessly or via wire to / from other devices. The input / output unit 108 may be connected to other devices via a communication network so that various data can be input / output. The input / output unit 108 may be, for example, any one of an input / output interface, a communication interface, or a combination thereof.

[0043] ROM (Read Only Memory) 112 permanently stores a program in which commands instructing various processes to be executed by each unit of encoding device 10 are written, various data such as parameters for the execution of the program, and various data acquired by each unit of encoding device 10. In the following description, executing a process instructed by commands written in a program may be referred to as "executing a program" or "running a program", etc. The RAM 114 is mainly used as a working area for the CPU 110. Upon startup, the CPU 110 records the programs and parameters stored in the ROM 112 in the RAM 114. The CPU 110 then temporarily records in the RAM 114 the results of calculations obtained by the execution of the programs, acquired data, and the like. Each unit of the decoding device 20 may be configured to include a dedicated component, or may be configured to include the hardware configuration exemplified in FIG.

[0044] (Example of a machine learning model) Next, an example of a machine learning model used in the quantization interval estimation units 128 and 248 according to this embodiment will be described. FIG. 3 shows a CNN as an example of a machine learning model according to this embodiment. A CNN is a type of artificial neural network, and includes one input layer, multiple intermediate layers (hidden layers), and one output layer. The CNN illustrated in FIG. 3 includes an input layer Il, L layers (L is an integer equal to or greater than 2) of intermediate layers Ml-1 to Ml-L, and an output layer Ol. Each layer includes a predetermined number of nodes. The multiple intermediate layers include at least one convolution layer and one pooling layer.

[0045] Each node of the input layer Il outputs an input value input to itself to at least one node of the next layer. Each node of the output layer Ol outputs to the outside an input value input from at least one node of the immediately preceding layer. A convolution layer is preset with a number of kernels. The number of kernels corresponds to the number of kernels used for processing (e.g., calculation) each input value. The number of kernels is usually smaller than the number of input values. A kernel refers to a processing unit for calculating one output value at a time. The output value calculated in a layer is used as an input value for the next layer. A kernel is also called a filter. The kernel size refers to the number of input values ​​used in one processing in the kernel. The kernel size is usually an integer of 2 or more.

[0046] A convolutional layer is a layer that calculates a convolved value by performing a convolution operation for each kernel on the input value input from the previous layer to each of multiple nodes, and calculates a corrected value by adding the calculated convolved value and a bias value. The convolutional layer calculates the function value of a predetermined activation function for the calculated corrected value, and outputs the calculated output value to the next layer. Note that one or more input values ​​are input to each node of the convolutional layer from the previous layer, and an independent convolution coefficient is used for each input value to calculate the convolved value at each node. The parameters of the convolutional coefficient, bias value, and activation function are part of one set of model parameters.

[0047] As the activation function, for example, a rectified linear unit, a sigmoid function, etc. can be used. The rectified linear unit is a function that sets a threshold (e.g., 0) as an output value for an input value below the threshold, and outputs an input value that exceeds the threshold as is. Therefore, this threshold can be part of a set of model parameters. In addition, for a convolutional layer, whether or not it is necessary to refer to an input value from a node in the previous layer, and whether or not it is necessary to output an output value to a node in the next layer can also be part of a set of model parameters.

[0048] A pooling layer is a layer that has nodes that determine one representative value from the input values ​​input from multiple nodes in the previous layer and output the determined representative value as an output value to the next layer. The representative value is, for example, a value that statistically represents multiple input values, such as the maximum value, average value, or mode. A stride is set in advance for the pooling layer. The stride indicates the range of adjacent nodes in the previous layer that refer to the input value for one node. Therefore, the pooling layer can also be considered as a layer that provides the output value to the next layer by reducing (down-sampling) the input value from the previous layer to a lower dimension.

[0049] (Parameter learning) When an input value serving as an explanatory variable is input to the machine learning model used by the quantization interval estimation unit 128, 248, model parameters for calculating an output value serving as a target variable are set in advance in the machine learning model. In this application, a parameter set used in the quantization interval model may be referred to as "quantization interval model parameters", and a parameter set used in the probability distribution model may be referred to as "probability distribution model parameters". Therefore, the encoding device 10 may include a parameter learning unit (not shown) for performing a model learning process on the training data to obtain a parameter set of each machine learning model. The training data may also be called supervised data, learning data, etc. The training data includes a large number of data sets each of which is a pair of a known explanatory variable and a known objective variable corresponding to the explanatory variable.

[0050] As training data for acquiring model parameters, the parameter learning unit acquires a plurality of data sets each consisting of a pair of known input values ​​as explanatory variables and known output values ​​corresponding to the input values ​​as objective variables. In the parameter learning, the parameter learning unit can recursively calculate the model parameters of the machine learning model such that the magnitude of loss from the output values ​​included in each data set with respect to an estimated value calculated using a predetermined machine learning model for the input values ​​included in the data set is minimized for the entire training data.

[0051] As an index value of the magnitude of the loss, for example, the sum of squared differences (SSD), the sum of absolute differences (SAD), cross entropy, etc. can be used. In calculating the model parameters, the parameter learning unit can use a method such as gradient descent, stochastic gradient descent, conjugate gradient method, back propagation, etc. In addition, in the present application, minimization includes the meaning of searching for model parameters that give a smaller loss, in addition to absolutely minimizing. Therefore, in the minimization procedure, the loss may temporarily increase. The quantization interval estimation units 128 and 248 can set the model parameters calculated by the respective parameter learning units in their own machine learning models.

[0052] Next, the training data used for learning the quantization interval model will be described. The parameter learning unit uses M quantization values ​​Z i-1-M , …, Z i-1 The output value (objective variable) is the quantized value Z i The quantization interval Q i A quantization interval vector indicating the quantization interval is obtained, and a data set is constructed by associating the input value with the output value. The quantization interval vector is configured by including, as element values ​​for each predetermined quantization interval candidate value, a corresponding flag indicating, with an integer value of 1 or 0, whether or not the vector corresponds to the quantization interval represented by the vector. Therefore, among the quantization interval candidate values ​​included in the quantization interval vector, the corresponding flag value corresponding to a value equal to the determined quantization interval is set to 1, and the corresponding flag values ​​corresponding to the other quantization interval candidate values ​​are set to 0.

[0053] The parameter learning unit learns the quantization interval Q i When determining the quantization value Z i The input element value z i , a predetermined cost value is calculated for each quantization interval candidate value, and the quantization interval candidate value that gives the lowest cost value related to quantization is set as the quantization value Z i Optimal quantization interval Q for i The cost value is an index value for calculating an index value indicating a quantization cost by combining a first cost component indicating a higher cost as the amount of information increases and a second cost component indicating a lower cost as the quantization error decreases. In general, the larger the quantization interval Qi, the smaller the quantization value Z i The amount of information in the quantization candidate value code for indicating the quantization interval Q becomes smaller, while the quantization error becomes larger. i Since the input factor value z i There is one quantization interval Q for i Therefore, the M quantized values ​​Z i-1-M , …, Z i-1 It is expected that the reliability of each quantization interval candidate value can be obtained as an output value calculated using the quantization interval model for

[0054] As the first cost component, for example, the quantization interval Q i The quantized value Z i A real value given by a function (e.g., proportionality) that increases monotonically in accordance with the increase in the amount of information required to express the quantization interval Q can be applied. i The multiplied value obtained by multiplying the bit length of a predetermined quantization candidate value code by a predetermined first weighting coefficient can be determined as the first cost component. i If is a scalar value, the parameter learning unit i The value range W i The quotient ζ obtained by dividing i The logarithm obtained by rounding up the logarithm based oni )] can be calculated as the bit length of the quantization candidate value code. ceil(...) indicates a ceiling function for real values....

[0055] As the second cost component, for example, a real value that quantitatively indicates the magnitude of the quantization error can be applied. i and the quantization value Z i The multiplied value obtained by multiplying the absolute value of the quantization error, which is the difference between the input element value and the quantization value, by a predetermined second weighting coefficient can be determined as the second cost component. When the input element value and the quantization value are each a vector, SSD, SAD, cross entropy, etc. can be applied instead of the absolute value. In this application, optimization includes not only determining the most appropriate quantization candidate value, but also searching for a quantization candidate value that gives a lower cost value. Therefore, in the optimization procedure, the cost value may increase, or a quantization candidate value that gives a larger cost value may be determined.

[0056] Next, the training data used for learning the probability distribution model will be described. The parameter learning unit uses M quantized values ​​Z i-1-M , …, Z i-1 And the output value (objective variable) is the quantized value Z i The probability distribution of the quantization candidate values ​​for each quantization interval Q is obtained, and a data set is constructed by associating the input value with the output value. The probability distribution of the quantization candidate values ​​corresponds to the frequency of occurrence of each quantization candidate value. In addition, there are multiple quantization candidate values ​​for one quantization candidate value. Therefore, the parameter learning unit i The frequency of occurrence of each quantization candidate value is counted for each input element value z, and the counted frequency of occurrence is divided by the sum of the frequencies of occurrence to normalize the frequency of occurrence and determine the probability distribution of the quantization candidate values. i The quantization interval Q i Among the quantization candidate values ​​for the input element value z i The quantization value Z iThe frequency of occurrence of the quantization candidate value equal to is incremented by one, and the frequency of occurrence of the other quantization candidate values ​​is maintained. Therefore, as input values, M quantization values ​​Z i-1-M , …, Z i-1 It is expected that the occurrence probability of each quantization candidate value, that is, the probability distribution of the quantization candidate values, will be obtained as an output value calculated using a probability distribution model for

[0057] (Encoding process) Next, the encoding process according to this embodiment will be described with reference to a flowchart shown in FIG 6.

[0058] (Step S102) The input unit 122 acquires an input value to be processed, and outputs it to the quantization unit . (Step S104) The quantization interval estimation unit 128 determines the quantization interval of the quantization value to be processed by using the quantization interval model for the N processed quantization values ​​up to that point. The quantization interval estimation unit 128 outputs the determined quantization interval to the quantization unit 124.

[0059] (Step S106) The quantization unit 124 quantizes the input element value included in the acquired input value, using the quantization interval estimated by the quantization interval estimation unit 128. The quantization unit 124 stores the quantized value obtained by the quantization in the quantization value storage unit 126. (Step S108) The quantization interval estimation unit 128 estimates a probability distribution of the quantization candidate values ​​related to the quantization value to be processed at that time point by using a probability distribution model for the N processed quantization values ​​up to that time point. The quantization interval estimation unit 128 outputs the estimated probability distribution to the entropy coding unit 130.

[0060] (Step S110) The entropy coding unit 130 uses the occurrence probability estimated for each quantization value for each entropy coding unit to entropy code a quantization sequence including quantization codes indicating individual quantization values ​​calculated by the quantization unit 124. The entropy coding unit 130 outputs a coded sequence generated by performing entropy coding. Then, the process shown in FIG. 6 ends.

[0061] (Decryption process) Next, the decoding process according to this embodiment will be described with reference to a flowchart shown in FIG 7.

[0062] (Step S202) The quantization interval estimation unit 248 determines the quantization interval of the quantization value to be processed by using the quantization interval model for the N processed quantization values ​​up to that point. The quantization interval estimation unit 248 outputs the determined quantization interval to the inverse quantization unit 244. (Step S204) The quantization interval estimation unit 248 estimates a probability distribution of the quantization candidate value related to the quantization value to be processed at that time point by using a probability distribution model for the N processed quantization values ​​up to that time point. The quantization interval estimation unit 128 outputs the estimated probability distribution to the entropy decoding unit 242.

[0063] (Step S206) The entropy decoding unit 242 receives an encoded sequence for each entropy decoding unit. The entropy decoding unit 242 performs entropy decoding on the input quantized sequence using the occurrence probability estimated for each quantized value. The entropy decoding unit 242 outputs the quantized code included in the quantized sequence generated by performing entropy decoding to the inverse quantization unit 244. (Step S208) The inverse quantization unit 244 inverse quantizes the quantized code input from the entropy decoding unit 242 using the quantization interval input from the quantization interval estimation unit 248 to calculate a quantized value. The inverse quantization unit 244 stores the quantized value obtained by inverse quantization in the quantization value storage unit 246. The inverse quantization unit 244 outputs the quantized value based on the quantized code included in the quantized sequence determined by the entropy decoding unit 242 to the output unit 250. (Step S210) The output unit 250 outputs an output value including the quantized value input from the inverse quantization unit 244 as an output element value. Then, the process shown in FIG. 7 ends.

[0064] <Second embodiment> Next, a second embodiment will be described. In the following description, differences from the first embodiment will be mainly described. Configurations and processes common to the first embodiment will be denoted by common reference numerals and their description will be used. FIG. 8 is a schematic block diagram showing an example of the configuration of a data processing system 1 according to the second embodiment. The data processing system 1 includes an encoding device 10 and a decoding device 20. The encoding device 10 includes an input unit 122, a quantization unit 124, a quantization value storage unit 126, a quantization interval estimation unit 128, and an entropy encoding unit 130, as well as a probability distribution estimation unit 132 and a second quantization unit 134.

[0065] The probability distribution estimation unit 132 uses a predetermined probability distribution estimation model to determine a continuous probability distribution of quantization candidate values ​​for the input element value to be processed based on the quantization values ​​of the processed input element values ​​stored in the quantization value storage unit 126. The probability distribution estimation unit 132 determines the parameters of a predetermined distribution function (hereinafter referred to as "distribution function parameters") that indicate the characteristics of the continuous probability distribution. As the predetermined distribution function, for example, a normal distribution (including a multidimensional normal distribution of two or more dimensions), a Poisson distribution, a Laplace distribution, or a weighted sum of these can be applied. When the predetermined distribution function is a weighted sum of a plurality of normal distributions, the distribution function parameters are the weighting coefficients (weight), mean, and variance (variance) for each normal distribution. When the predetermined distribution function is a weighted sum of Poisson distributions, the distribution function parameters are the weighting coefficients, base (base, rate), and random variable value (number of occurrences) for each Poisson distribution. When the predetermined distribution function is a weighted sum of Laplace distributions, the distribution function parameters are the weighting coefficients, scale (scale), and location (location) for each Laplace distribution. The probability distribution estimation unit 132 calculates a distribution function parameter for each of the processed M quantized values ​​Z i-1-M , …, Z i-1 The probability distribution estimation unit 132 calculates distribution function parameters for the vector x, y, and z using a probability distribution estimation model. The probability distribution estimation unit 132 outputs the calculated distribution function parameters to the second quantization unit 134.

[0066] The training data used for learning the probability distribution model parameters used by the probability distribution estimation unit 132 includes M quantized values ​​Z i-1-M , …, Z i-1 is the input value, and the quantized value Z i The probability distribution of quantization candidate values ​​P(Z i |Z i-1-N , …, Z i-1 ) is used as an output value, and a large number of data sets are included in which the input values ​​and output values ​​are associated with each other. The model learning unit uses the distribution function P(Z i |Z i-1-N , …, Z i-1 ) may be subjected to known regression analysis by assuming a predetermined distribution function, and the distribution function parameters may be determined in advance.

[0067] The second quantization unit 134 receives the quantization interval Q i is input, and a distribution function parameter is input from the second quantization unit 134. The second quantization unit 134 quantizes a continuous probability distribution p({z i}|Z i-1-N , …, Z i-1 ) is quantized using the quantization interval input from the quantization interval estimation unit 128 to obtain a probability distribution P(Z i |Z i-1-N , …, Z i-1 ) to generate a probability distribution P(Z i |Z i-1-N , …, Z i-1 ) indicates the occurrence probability of each quantization candidate value determined by the quantization interval. More specifically, the second quantization unit 134 generates a continuous probability distribution p({z i}|Z i-1-N , …, Z i-1 ) and calculates the occurrence probability of the quantization candidate value. i |Z i-1-N , …, Z i-1 ) to the entropy coding unit 130. In addition, the second quantization unit 134 may use a cumulative distribution function (CDF) for the one-dimensional continuous probability distribution in the integral calculation of the continuous probability distribution. The CDF is an integral form of the continuous probability distribution. The integral value within a range of the continuous probability distribution is a difference value obtained by subtracting the function value of the CDF for the lower limit of the range from the function value of the CDF for the upper limit of the range.

[0068] As in the first embodiment, the entropy coding unit 130 calculates the probability distribution P(Z i |Z i-1-N , …, Z i-1 ) is used to perform entropy coding processing on the quantized sequence. i |Z i-1-N , …, Z i-1) may be omitted. Therefore, the quantization interval estimation unit 128 does not need to be set with a probability distribution model.

[0069] In addition to the entropy decoding unit 242 , the inverse quantization unit 244 , the quantization value storage unit 246 , the quantization interval estimation unit 248 and the output unit 250 , it includes a probability distribution estimation unit 252 and a quantization unit 254 . The probability distribution estimation unit 252, like the probability distribution estimation unit 132, uses a probability distribution estimation model to determine a continuous probability distribution of quantization candidate values ​​for a quantization value to be processed based on the processed quantization values ​​stored in the quantization value storage unit 246. The continuous probability distribution is expressed using probability distribution parameters. The probability distribution estimation unit 252 outputs the determined probability distribution parameters to the quantization unit 254.

[0070] The quantization unit 254 receives the quantization interval Qi from the quantization interval estimation unit 248 and the distribution function parameters from the quantization unit 254. The quantization unit 254 uses a method similar to that of the second quantization unit 134 to quantize a continuous probability distribution p({z i}|Z i-1-N , …, Z i-1 ) is quantized using the quantization interval input from the quantization interval estimation unit 248 to obtain a probability distribution P(Z i |Z i-1-N , …, Z i-1 The quantization unit 254 generates the probability distribution P(Z i |Z i-1-N , …, Z i-1 ) to the entropy decoding unit 242.

[0071] As in the first embodiment, the entropy decoding unit 242 calculates the probability distribution P(Z i |Z i-1-N , …, Z i-1 ) is used to perform entropy coding processing on the quantized sequence. The quantization interval estimation unit 248 estimates the probability distribution P(Z i |Z i-1-N , …, Z i-1) may be omitted. Therefore, the quantization interval estimation unit 248 does not need to set a probability distribution model. The quantization candidate values ​​constituting the probability distribution output from the second quantization section 134 or the quantization section 254 may be represented by using the quantization candidate value code.

[0072] Next, the encoding process according to this embodiment will be described with reference to a flowchart shown in FIG 9. The encoding process according to this embodiment includes processes of steps S102, S104, S106, S108a, S108b, and step S110. In this embodiment, after the process of step S106 is completed, the process proceeds to step S108a. (Step S108a) The probability distribution estimation unit 132 determines a continuous probability distribution of quantization candidate values ​​for the input element value to be processed based on the quantized value of the processed input element value, using a predetermined probability distribution estimation model. (Step S108b) The second quantization unit 134 quantizes the continuous probability distribution determined by the probability distribution estimation unit 132 using the quantization interval determined by the quantization interval estimation unit 128, and generates a probability distribution of quantization value candidates, which is a discrete probability distribution. Then, the process proceeds to step S110.

[0073] Next, the encoding process according to this embodiment will be described with reference to a flowchart shown in FIG 10, which is an example of the decoding process according to this embodiment. The encoding process according to this embodiment includes the processes of steps S202, S204a, S204b, S206, S208 and step S210. In this embodiment, after the process of step S202 ends, the process proceeds to step S204a. (Step S204a) The probability distribution estimation unit 252 determines a continuous probability distribution of quantization candidate values ​​for a quantization value to be processed based on the processed quantization value, using a predetermined probability distribution estimation model. (Step S204b) The quantization unit 254 quantizes the continuous probability distribution determined by the probability distribution estimation unit 252 using the quantization interval determined by the quantization interval estimation unit 248, and generates a probability distribution of quantization value candidates, which is a discrete probability distribution. Then, the process proceeds to step S206.

[0074] The information to be processed according to each of the above embodiments (hereinafter, referred to as "processing target information") is not limited to a specific type of information. More specifically, the processing target information corresponds to information indicated by an input value input to the encoding device 10, a quantized value quantized in the encoding device 10, or a quantized value decoded in the decoding device 20. The processing target information may be information that can be expressed as a quantized value obtained by spatially or temporally sequentially acquiring and quantizing. The processing target information may be, for example, a signal value for each pixel indicating an image, a predictive coding residual in a block that is a part of an image, or a transform coefficient into the frequency domain. The processing target information may be any of predictive coefficients indicating frequency characteristics for each predetermined section, a basic frequency, a gain for each harmonic component, and the like. The processing target information may be point cloud data. Point cloud data is data indicating the state of the surface of an object in a three-dimensional space. The point cloud data is data that indicates the coordinates in a three-dimensional space for each of a plurality of sample points, and the state at those coordinates (for example, color, brightness, temperature, pressure, etc.).

[0075] The encoding device 10 may receive an input value as information to be processed, or may include a feature analysis unit (not shown) for performing a predetermined arithmetic process to determine information to be processed from input data to the encoding device 10. The arithmetic process of the feature analysis unit may be a dedicated step for determining information to be processed from input data, or may be a part of a step of a known encoding process, or may be a part of a step of other processes (e.g., image recognition, voice recognition, monitoring, etc.) that do not have encoding as a main purpose.

[0076] The feature analysis unit receives, for example, image data indicating a signal value for each pixel or point cloud data indicating a signal value for each coordinate as input data, and generates, as information to be processed, feature quantities (features) including individual element values ​​calculated using a predetermined mathematical model with the signal value for each pixel as an explanatory variable. When the predetermined mathematical model is a neural network, the feature analysis unit may provide, as information to be processed, an output value obtained as a target variable, or may provide, as information to be processed, a calculated value obtained in any intermediate layer.

[0077] The decoding device 20 may output the quantized value to be processed obtained by the decoding process, or may include an information restoration unit (not shown) for performing a predetermined inverse operation process from the acquired quantized value to generate restored output data. The operation process of the information restoration unit (not shown) may be a dedicated step for generating output data from the data to be processed, or may be a part of a step of a known decoding process, or may be a part of a step of other processes (e.g., image recognition, voice recognition, monitoring, etc.) that do not have decoding as a main purpose.

[0078] The information restoration unit, for example, calculates a signal value for each pixel using a predetermined mathematical model with the feature amount, which is the quantized value restored as the processing target information, as an explanatory variable, and restores image data indicating the calculated signal value. When the predetermined mathematical model is a neural network, the information restoration unit may process the processing target information as an input value obtained as the explanatory variable, or may be supplied with the processing target information instead of a calculated value obtained in a predetermined intermediate layer on the assumption that an input value is input as the explanatory variable. The predetermined intermediate layer may be a hierarchical layer associated with the intermediate layer to which the feature analysis unit provides the feature amount. The information to be processed may be represented by a scalar, a vector, or a high-dimensional variable value in which each sample is represented by a vector of two or more dimensions. The information to be processed provided may be, for example, a feature amount in which each sample includes an element value specified by x rows, y columns, and c channels. When a neural network is used as the mathematical model, each sample is an output value or a calculated value from one node constituting each layer, or an input value or a calculated value to that one node, and corresponds to the above index i.

[0079] In the above description, the quantization interval model and the probability distribution model are mainly mathematical models, but the present invention is not limited to this. The quantization interval model takes M quantized values ​​Z i-1-M , …, Z i-1 For each input value, the quantization interval Q i The quantization interval estimation unit 128, 248 may refer to the data table set in the quantization interval estimation unit 128, 248 to estimate the processed M quantization values ​​Z i-1-M , …, Z i-1 The quantization interval Q i can be determined. The probability distribution model uses M quantized values ​​Z i-1-M , …, Z i-1 Alternatively, the quantization interval estimation unit 128, 248 or the probability distribution estimation unit 132, 252 may refer to the data table set in the quantization interval estimation unit 128, 248 or the probability distribution estimation unit 132, 252 to obtain the processed M quantization values ​​Z i-1-M , …, Z i-1 It is possible to determine a probability distribution of quantization candidate values ​​corresponding to (or a distribution function parameter of) said probability distribution.

[0080] The quantization interval estimation unit 128, 248 estimates the quantization value Z i The quantization interval Q i The processed quantization value Z to be referenced when determiningi-1-M , …, Z i-1 does not necessarily have a quantized value Z i does not include the quantized values ​​of the spatially or temporally adjacent samples, and the quantized value Z i The quantization values ​​of only samples that are spatially or temporally separated from each other (e.g., samples with the same phase in adjacent frames, blocks, or slices) may be included. The same phase means that the relative order or position in a processing unit such as a frame, block, or slice is equal. The quantization interval estimation unit 128, 248 or the probability distribution estimation unit 132, 252 estimates the quantization value Z i The processed quantization value Z to be referenced when determining the probability distribution of the quantization candidate values ​​(or the distribution function parameters of the probability distribution) i-1-M , …, Z i-1 However, the quantization value Z i does not include the quantized values ​​of the spatially or temporally adjacent samples, and the quantized value Z i Alternatively, only quantized values ​​of samples that are spatially or temporally separated from each other may be included.

[0081] (Minimum configuration) Next, the minimum configuration of the above embodiment will be described. Fig. 11 is a schematic block diagram illustrating the minimum configuration of an encoding device 10. Fig. 12 is a schematic block diagram illustrating the minimum configuration of a decoding device 20. As shown in Fig. 11, the encoding device 10 includes an estimation unit 128m, a quantization unit 124, and an entropy encoding unit 130. The estimation unit 128m determines a quantization interval for quantizing an input element value, which is an element of an input value to be processed, based on the processed quantization value, and determines a probability distribution of quantization candidate values, which are candidates for the quantization value of the input element value to be processed, based on the processed quantization value. The quantization unit 124 quantizes the input element value using the quantization interval determined by the estimation unit 128m to determine a quantization value. The entropy encoding unit 130 entropy-encodes a quantization sequence including a quantization value code indicating the quantization value of the input element value, using the probability distribution determined by the estimation unit 128m.

[0082] As shown in Fig. 12, the decoding device 20 includes an estimation unit 248m, an entropy decoding unit 242, and an inverse quantization unit 244. The estimation unit 248m determines a quantization interval for determining a quantization value by inverse quantizing a quantization value code to be processed based on the processed quantization value, and determines a probability distribution of quantization candidate values ​​that are candidates for the quantization value based on the processed quantization value. The entropy decoding unit 242 entropy decodes the encoded sequence using the probability distribution determined by the estimation unit 248m to generate a quantization value sequence including the quantization value code to be processed. The inverse quantization unit 244 determines a quantization value by inverse quantizing a quantization value code included in the quantization value sequence.

[0083] According to the encoding device 10, a quantization interval for an input element value to be processed and a probability distribution of quantization candidate values ​​are determined based on the processed quantization value. In entropy encoding, a quantization value code for expressing a quantization value can be determined based on the probability distribution of the quantization candidate values. According to the decoding device 20, a quantization interval for a quantization value code to be processed and a probability distribution of quantization candidate values ​​are determined based on the processed quantization value. In entropy decoding, a quantization value code for expressing a quantization value can be determined based on the probability distribution of the quantization candidate values.

[0084] Therefore, even if the encoding device 10 does not provide information on the quantization interval, the decoding device 20 can reconstruct the quantization interval used for quantization in the encoding device 10, and thus the quantization value, from the encoded sequence obtained by encoding. Also, in the entropy encoding and entropy decoding, a quantization code indicating a quantization candidate value including the quantization value to be processed can be determined based on a probability distribution determined from the processed quantization value. Therefore, it is possible to simultaneously reduce the amount of information related to the expression of the quantization value.

[0085] The estimator 128m may be realized in different forms, such as the quantization interval estimator 128 (FIG. 1), or the quantization interval estimator 128 and the probability distribution estimator 132 (FIG. 8). For example, the estimation unit 128m may use a mathematical model set with the processed quantization value as an explanatory variable and the quantization interval for quantizing the input element value as an objective variable to determine the quantization interval from the processed quantization value determined by the quantization unit 124. With this configuration, the quantization interval for the input element value to be processed is determined from the processed quantization value. In addition, the estimation unit 248m may also determine the quantization interval from the processed quantization value determined by the inverse quantization unit 244 using a mathematical model in which the processed quantization value is an explanatory variable and the quantization interval for inverse quantizing the quantization value code to be processed is an objective variable. This allows the quantization interval for the processing target to be predicted from the processed quantization value. Therefore, when quantizing the input element value to be processed or inversely quantizing the quantization value code, the quantization interval according to the processing target is obtained. Therefore, it is possible to suppress delays in quantization or inverse quantization.

[0086] The estimation unit 128m may determine a distribution function parameter of the probability distribution function from the processed quantization value determined by the quantization unit 124, using a mathematical model set with the processed quantization value as an explanatory variable and a quantization interval for quantizing a distribution function parameter, which is a parameter of a probability distribution function indicating the occurrence probability of a quantization candidate value that is a candidate for a quantization value to be processed, as an objective variable. The encoding device 10 may also include a second quantization unit 134 (FIG. 8) that discretizes the probability distribution function for each quantization candidate value based on the quantization interval to determine a probability distribution of the quantization candidate value. The estimation unit 248m may determine a distribution function parameter of the probability distribution function from the processed quantization value determined by the inverse quantization unit 244, using a mathematical model set with the processed quantization value as an explanatory variable and the quantization interval for quantizing a distribution function parameter, which is a parameter of a probability distribution function indicating the occurrence probability of a quantization candidate value that is a candidate for a quantization value to be processed, as an objective variable. The decoding device 20 may include a quantization unit 254 (FIG. 8) that discretizes the probability distribution function for each quantization candidate value based on the quantization interval to determine a probability distribution of the quantization candidate values. As a result, the occurrence probability of the quantization candidate values ​​is expressed by a smaller number of distribution function parameters overall, which makes it possible to reduce the amount of calculation related to the calculation of the occurrence probability of the quantization candidate values.

[0087] The quantization interval may be a vector including N interval-specific quantization intervals (N is a predetermined integer equal to or greater than 2) for each interval. The intervals are ranges obtained by dividing the range of the input element values ​​into N intervals. Since the interval-specific quantization intervals may differ for each interval, it is possible to obtain quantized values ​​with different accuracy depending on the interval.

[0088] The encoding device 10 may also include a feature analysis unit that uses a mathematical model in which the signal value of each pixel constituting an image is an explanatory variable and a feature value including multiple element values ​​is an objective variable to determine the element value of the feature value from the signal value as the input element value. The decoding device 20 may be provided with an information restoration unit that determines the signal value for each pixel from the element values ​​included in the feature using a mathematical model in which a feature including multiple element values ​​is used as a target variable and the signal value for each pixel constituting the image is used as an explanatory variable. This configuration makes it possible to encode features obtained from image data indicating the signal value for each pixel, and to reconstruct image data indicating the signal value for each pixel from the decoded features.

[0089] Furthermore, the entropy coding unit 130 may determine the occurrence probability of each quantization candidate value code, which is a code indicating a quantization candidate value in a predetermined coding unit, based on a probability distribution of the quantization candidate value for each quantization value of the input element value in the coding unit. The entropy coding unit 130 may determine a code word corresponding to the quantization candidate value code based on the occurrence probability, and generate a coding sequence including a code word corresponding to the quantization value. Furthermore, the entropy decoding unit 242 may determine the occurrence probability of each quantization candidate value code, which is a code indicating a quantization candidate value in a predetermined decoding unit, based on a probability distribution of the quantization candidate value for each quantization value indicated by the quantization value code in the predetermined decoding unit. The entropy decoding unit 242 may determine a code word corresponding to the quantization candidate value code based on the determined occurrence probability, and may determine a corresponding quantization value code for each code word constituting the encoded sequence. With this configuration, a codeword is determined according to the occurrence probability of each quantization candidate value code for each coding unit or decoding unit, and a quantization value corresponding to the determined codeword is expressed. Therefore, the amount of information of the entire coding sequence for each coding unit or decoding unit can be reduced.

[0090] The encoding device 10 and the decoding device 20 may each include a computer system. For example, the processor may be a component of the computer system. The above-mentioned processes are stored in a computer-readable storage medium in the form of a program, and the computer reads and executes the program to perform the processes. The computer system includes software such as an OS (Operation System), a device driver, and a utility program, and hardware such as peripheral devices. The computer-readable recording medium refers to a portable medium such as a magnetic disk, a magneto-optical disk, a ROM (Read Only Memory), and a semiconductor memory, and a storage device such as a hard disk built into the computer system. The computer-readable recording medium may also include a medium that dynamically holds a program for a short period of time, such as a communication line used when transmitting a program using a network such as the Internet or a communication line such as a telephone line, and a medium that holds a program for a certain period of time, such as a volatile memory inside a computer system that is a server or client in that case. The program may be a program for realizing a part of the above-mentioned functions, or may be a program that can realize the above-mentioned functions in combination with a program already recorded in the computer system, that is, a so-called differential file (differential program).

[0091] In addition, a part or the whole of the encoding device 10 or the decoding device 20 in the above-mentioned embodiment may be realized as an integrated circuit such as an LSI (Large Scale Integration). Each functional block of the encoding device 10 or the decoding device 20 may be individually processed, or may be integrated into a processor in part or in whole. The integrated circuit method is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. In addition, when an integrated circuit technology that replaces LSI appears due to the progress of semiconductor technology, an integrated circuit based on that technology may be used.

[0092] Although the preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments and their modifications. Addition, omission, substitution, and other modifications of the configuration are possible without departing from the spirit of the present invention. Furthermore, the present invention is not limited by the foregoing description, but only by the scope of the appended claims.

[0093] According to the encoding device, the decoding device, the encoding method, the decoding method, and the program of each of the above aspects, the quantization interval for the input element value to be processed and the probability distribution of the quantization candidate values ​​are determined based on the processed quantization value. In entropy encoding or entropy decoding, a quantization value code for expressing the quantization value can be determined based on the probability distribution of the quantization candidate values. Therefore, even if the encoding device does not provide information on the quantization interval, the decoding device can reconstruct the quantization interval used for quantization in the encoding device, and thus the quantization value. Therefore, it is possible to simultaneously reduce the amount of information related to the expression of the quantization value. [Explanation of symbols]

[0094] 1...data processing system, 10...encoding device, 20...decoding device, 102...processor, 104...storage medium, 106...drive unit, 108...input / output unit, 112...ROM, 114...RAM, 122...input unit, 124...quantization unit, 126...quantization value storage unit, 128...quantization interval estimation unit, 128m...estimation unit, 130...entropy encoding unit, 132...probability distribution estimation unit, 134...second quantization unit, 242...entropy decoding unit, 244...inverse quantization unit, 246...quantization value storage unit, 248...quantization interval estimation unit, 248m...estimation unit, 250...output unit, 252...probability distribution estimation unit, 254...quantization unit

Claims

1. obtaining a quantization interval for quantizing the value to be processed; obtaining a predicted value based on a quantization value for the processed value; obtaining a quantization value of the value to be processed based on the quantization interval; a process of entropy coding a quantized sequence based on the predicted value and the quantized value of the value to be processed; Encoding device.

2. The quantization value for the processed value is used as an explanatory variable, and the quantization interval for quantizing the value to be processed is used as the objective variable. The quantization interval obtained using a mathematical model is used as the quantization interval. The encoding device according to claim 1 .

3. A quantization interval for quantizing the value to be processed is obtained based on the processed value. The encoding device according to claim 1 .

4. The values ​​to be processed are values ​​related to pixels that make up an image. The encoding device according to claim 1 .

5. A process of inversely quantizing a quantized value code to be processed based on the processed quantized value to obtain a quantization interval for determining a quantized value; obtaining a predicted value based on the processed quantization value; a process of entropy-decoding a coded sequence using the predicted value to obtain a quantized value sequence including the quantized value code; and performing a process of inverse quantizing a quantization value code included in the quantization value sequence to obtain the quantization value. Decryption device.

6. The processed quantized value is used as an explanatory variable, and the quantization interval for determining the quantized value by inverse quantizing the quantized value code to be processed is used as the objective variable, and the quantization interval obtained using a mathematical model is used as the quantization interval. The decoding device according to claim 5.

7. Based on the processed quantized value, a quantization interval for determining a quantized value by inverse quantizing the quantized value code to be processed is obtained. The decoding device according to claim 5.

8. The quantized values ​​are values ​​related to the pixels that make up the image. The decoding device according to claim 5.

Citation Information

Patent Citations

  • Video quality estimation apparatus, method, and program

    JP2009194610A

  • Method for ρ-region frame-level bit allocation for effective rate control and enhanced video encoding quality

    JP2010505354A

  • Video coding device, video coding method and computer program for video coding

    JP2015111787A

  • Moving image processor and moving image processing method

    JP2017127034A

  • Estimator for estimating a probability distribution of a quantization index

    US20140191888A1