Encoding device and program

The video encoding device addresses flicker issues by optimizing encoding parameters based on image quality variations, enhancing playback stability and reducing temporal distortions.

JP7560995B2Active Publication Date: 2024-10-03NIPPON HOSO KYOKAI
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2020179265
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-10-26
Publication Date
2024-10-03
Estimated Expiration
2040-10-26

AI Technical Summary

Technical Problem

Conventional video encoding technologies fail to account for fluctuations in image quality deterioration tendencies between encoded images, leading to visually noticeable flicker during playback.

Method used

A video encoding device that calculates encoding distortion by considering the variation in image quality deterioration between encoded images, using methods such as temporal differences in similarity, contrast, or structural information changes, to optimize encoding parameters and reduce flicker.

Benefits of technology

The proposed solution effectively suppresses flicker in encoded images by accounting for fluctuations in image quality, resulting in improved encoding quality and reduced temporal distortions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007560995000018
    Figure 0007560995000018
  • Figure 0007560995000019
    Figure 0007560995000019
  • Figure 0007560995000020
    Figure 0007560995000020
Patent Text Reader

Abstract

To provide an encoding device and a program capable of suppressing flicker visible at encoding image reproduction.SOLUTION: An encoding device 1 comprises: a block division unit 11 that generates block images obtained by dividing an original image; a conversion unit 13 that performs conversion processing on a residual block image indicating a difference between each block image and an intra-prediction image or a motion compensation prediction image to calculate a conversion coefficient; a quantization unit 16 that generates a quantization coefficient obtained by quantizing the conversion coefficient; an encoded image generation unit (17, 18, 19) that generates an encoded image by decoding the quantization coefficient; an intra-prediction unit 21 that generates the intra-prediction image; a motion compensation prediction unit 22 that generates the motion compensation prediction image; an entropy encoding part 24 that performs entropy encoding on the quantization coefficient; and a controller 10 that calculates a fluctuation amount of deterioration in image quality to the original image between the encoded images, and then, performs RD optimization in which the fluctuation amount is taken into account in evaluation of encoding distortion.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to a coding technique for coding moving images. [Background technology]

[0002] In video coding methods such as AVC / H.264 (see, for example, Non-Patent Document 1) and HEVC / H.265 (see, for example, Non-Patent Document 2), coding efficiency is improved by performing coding control that optimizes coding parameters such as motion compensation prediction (inter-prediction) method, intra-prediction method, block size, and reference image.

[0003] The most common method for optimizing each coding parameter is the rate-distortion optimization method (RD optimization) based on the Lagrange multiplier method. RD optimization is a method for selecting the optimal mode (parameter) for each coding parameter with the aim of minimizing coding distortion under a given bit rate constraint (see, for example, Non-Patent Document 3). Specifically, the RD calculated by Equation (1) cost The mode that minimizes (mode) is selected, where D(mode) is the coding distortion when encoding in a certain mode, R(mode) is the amount of code generated at that time, and λ is the Lagrange multiplier.

[0004]

number

[0005] The coding distortion D(mode) is calculated by the equation (2) using the square error between the original image and the coded image (the image obtained by decoding the coded data). org (x,y,t) is the original image of the frame displayed at time t, and S dec(x, y, t, mode) is the coded image when the frame displayed at time t is coded in a certain mode. x indicates the horizontal pixel position of each frame, and y indicates the vertical pixel position of each frame. The processing ranges 1≦x≦X and 1≦y≦X in equation (2) indicate the area where coding parameters are determined (macroblocks and sub-macroblocks in MPEG-2 and AVC / H.264, and CTU, CU, PU, ​​and TU in HEVC / H.265). The coding distortion D(mode) is calculated for each processing range.

[0006]

number

[0007] [Non-Patent Document 1] Rec. ITU-T Rec. H.264 | ISO / IEC 14496-10 Advanced Video Coding [Non-patent document 2] Rec. ITU-T Rec. H.265 | ISO / IEC 23008-2 High Efficiency Video Coding [Non-patent document 3] G.J. Sullivan and T. Wiegand, “Rate-Distortion Optimization for Video Compression”, IEEE Signal Processing Magazine, vol. 15 Summary of the Invention [Problem to be solved by the invention]

[0008] As shown in Fig. 5, in conventional video coding technology, the squared error between the original image and the coded image of a frame displayed at the same time is used as coding distortion D(mode) and RD is calculated. costFor example, in the optimization of each encoding parameter when encoding original image frame #3 at time t=T in FIG. 5, RD is calculated between original image #3 and encoded image #3' (mode 1), encoded image #3'' (mode 2), and encoded image #3''' (mode 3) that are encoded from original image #3 in various modes. cost Calculate (mode) and use this RD cost The mode with the smallest (mode) (one of modes 1 to 3) is adopted as the mode to be assigned to the coding parameters.

[0009] Figure 6 shows the original image and a 32x32 pixel image cropped from a portion of the encoded image when high-definition (HD) video is encoded using HEVC / H.265. Figure 6(a) shows the original image, and Figure 6(b) shows the encoded image. At each pixel position in the 32x32 pixels, a color corresponding to the pixel value of the Y signal is displayed. The encoding target image used was "BQ Terrace," a standard video used in MPEG standardization. Reference software HM16.16 was used for the encoder and decoder, with a long GOP structure (M = 3, N = 30) and rate control at a constant bit rate (CBR) of 35 Mbps. All 900 frames of "BQ Terrace" were encoded.

[0010] In Long GOP coding, a video coded stream is composed of I pictures coded using only intra-frame prediction, P pictures coded using unidirectional inter-frame prediction, and B pictures coded using bidirectional inter-frame prediction. Using inter-frame prediction makes it possible to reduce the amount of code, with the largest amount of code allocated to each picture being I pictures, followed by P pictures, and the smallest being B pictures. Figures 6(a) and 6(b) show images of frames 450-453 in a BQ Terrace where the first frame has frame number 0 and the last frame has frame number 899. Frame number 450 is the I picture at the beginning of the GOP, frames 451-452 are B pictures, and frame 453 is a P picture.

[0011] It can be seen from Figures 6(a) and 6(b) that the tendency of coding degradation differs for each frame. The coded image of frame number 450, which is an I picture, reproduces the texture of the original image well, but the texture is crushed in the coded images of frame numbers 451 and 452, which are B pictures. The degree of coding degradation for P pictures is greater than for I pictures but less than for B pictures. This difference in image quality is perceived as intra flicker. Furthermore, when the coded images of frame numbers 451 and 452 are compared, although both are B pictures, the degree of texture crushing differs, and this difference in the tendency of degradation is also perceived as flicker. One of the reasons for the difference in the tendency of coding degradation for each frame is the difference in the RD when setting the coding parameters. cost One problem is that the (mode) calculation does not take into account the fluctuation in the tendency of image quality degradation between temporally consecutive coded images relative to the original image.

[0012] In view of the above circumstances, the object of the present invention is to provide a video encoding device and program that can suppress flicker that is visible when an encoded image is played back by taking into account the fluctuation in the tendency for image quality degradation between encoded images relative to the original image. [Means for solving the problem]

[0013] In order to solve the above problem, a video coding device according to the present invention includes a block dividing unit that divides an original image to generate block images; a transform unit that performs a transform process on a residual block image indicating a difference between the block image and an intra-predicted image or a motion-compensated predicted image to calculate transform coefficients; a quantization unit that quantizes the transform coefficients to generate quantized coefficients; a coded image generation unit that multiplies the quantized coefficients by a quantization step to restore the transform coefficients, performs an inverse transform process on the transform coefficients to restore the residual block image, and adds the residual block image to the intra-predicted image or the motion-compensated predicted image to generate a coded image; an intra prediction unit that performs intra-prediction on the coded image to generate an intra-predicted image; a motion compensation prediction unit that performs motion compensation prediction on the coded image to generate a motion-compensated predicted image; an entropy coding unit that performs entropy coding on the quantized coefficients; and a control unit that calculates the amount of variation in image quality degradation between the coded images with respect to the original image and performs RD optimization that takes the amount of variation into account when evaluating coding distortion.

[0014] Furthermore, in the video encoding device according to the present invention, the amount of variation may be a temporal difference in similarity between the original image and the encoded image.

[0015] Furthermore, in the video encoding device of the present invention, the amount of variation may be the difference between a differential image between the original image and the RD-optimized encoded image in the previous frame and a differential image between the original image and the encoded image in each mode in the current frame.

[0016] Furthermore, in the video encoding device of the present invention, the control unit generates a differential motion compensation predicted image by performing motion compensation prediction on a differential image between an original image in a previous frame and an RD-optimized encoded image, and the amount of variation may be the difference between the differential motion compensation predicted image and a differential image between the original image in a current frame and an encoded image in each mode.

[0017] Furthermore, in the video encoding device of the present invention, the control unit may perform RD optimization by changing the size of the block image, the basis used in the transformation process, the intra prediction mode used in the intra prediction, and the motion vector used in the motion compensation prediction.

[0018] In order to solve the above problem, the present invention also provides a program that causes a computer to function as the video encoding device. [Effects of the Invention]

[0019] According to the present invention, it is possible to suppress flicker that is visible when an encoded image is reproduced. [Brief explanation of the drawings]

[0020] [Figure 1] 1 is a block diagram showing an example of the configuration of an encoding device according to an embodiment of the present invention. [Figure 2] 1A and 1B are diagrams illustrating why flicker occurs in a control process in a conventional encoding device. [Figure 3] FIG. 2 is a diagram illustrating a first example of a control process in an encoding device according to an embodiment of the present invention. [Figure 4] FIG. 10 is a diagram illustrating a second example of a control process in the encoding device according to one embodiment of the present invention. [Figure 5] FIG. 1 is a diagram illustrating a conventional method for optimizing encoding parameters. [Figure 6] FIG. 10 is a diagram showing the difference in coding degradation tendency for each frame when HD video is coded using HEVC / H.265. DETAILED DESCRIPTION OF THE INVENTION

[0021] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

[0022] Fig. 1 shows an example of the configuration of a video encoding device 1 according to an embodiment of the present invention. Fig. 1 is a block diagram showing the example of the configuration of the encoding device 1. The encoding device 1 shown in Fig. 1 includes a control unit 10, a block division unit 11, a subtraction unit 12, a transformation unit 13, a visual activity calculation unit 14, a QP determination unit 15, a quantization unit 16, an inverse quantization unit 17, an inverse transformation unit 18, an addition unit 19, a storage unit 20, an intra prediction unit 21, a motion compensation prediction unit 22, a switching unit 23, and an entropy encoding unit 24.

[0023] The control unit 10 outputs block size information indicating the size of the block image to the block dividing unit 11, and outputs conversion information indicating the type of basis to the conversion unit 13.

[0024] Furthermore, when performing intra prediction, the control unit 10 outputs intra prediction information indicating an intra prediction mode to the intra prediction unit 21. For example, the AVC / H.264 encoding format defines 13 types of intra prediction modes (four types of 16x16 block processing and nine types of 4x4 block processing).

[0025] Furthermore, when performing motion compensation prediction, the control unit 10 refers to the coded image stored in the storage unit 20, determines a motion vector from motion vector candidates, and outputs motion compensation information indicating the motion vector to the motion compensation prediction unit 22. Note that the control unit 10 refers to the coded image stored in the storage unit 20 and generates motion vector candidates for each block image input from the block division unit 11 by a technique such as block matching.

[0026] The block division unit 11 generates block images by dividing the input image (original image) into blocks of the block size indicated by the block size information input from the control unit 10, and outputs them to the subtraction unit 12, the visual activity calculation unit 14, and the motion compensation prediction unit 22.

[0027] The subtraction unit 12 subtracts each pixel value of the predicted block image input from the intra prediction unit 21 or the motion compensation prediction unit 22 described later from each pixel value of the block image input from the block division unit 11 to generate a residual block image indicating the difference between the block image and the predicted block image, and outputs the residual block image to the conversion unit 13.

[0028] The transform unit 13 performs a transform process such as an orthogonal transform on the residual block image input from the subtraction unit 12 using the basis indicated by the transform information input from the control unit 10 to calculate transform coefficients and output them to the quantization unit 16.

[0029] The visual activity calculation unit 14 calculates the visual activity of the block image input from the block division unit 11 and outputs it to the QP determination unit 15. If the block image contains many high frequency components, the visual activity will be large, and if the block image does not contain many high frequency components, the visual activity will be small.

[0030] The QP determination unit 15 determines a quantization parameter (QP) based on the visual activity input from the visual activity calculation unit 14 and outputs the QP to the quantization unit 16 .

[0031] The quantization unit 16 generates quantized coefficients by dividing the transform coefficients input from the transform unit 13 by the quantization step corresponding to the quantization parameter input from the QP determination unit 15 and quantizing them, and outputs the quantized coefficients to the inverse quantization unit 17 and the entropy coding unit 24.

[0032] The inverse quantization unit 17 restores the transform coefficients by multiplying the quantization coefficients input from the quantization unit 16 by the quantization step, and outputs the restored transform coefficients to the inverse transform unit 18 .

[0033] The inverse transform unit 18 performs inverse transform processing (processing to undo the transform performed by the transform unit 13) on the transform coefficients input from the inverse quantization unit 17 to restore the residual block image, and outputs the restored residual block image to the addition unit 19. For example, if the transform unit 13 performs a discrete cosine transform, the inverse transform unit 18 performs an inverse discrete cosine transform.

[0034] The adder 19 adds the residual block image input from the inverse transformer 18 and the intra-predicted image or motion-compensated predicted image input from the switcher 23, and outputs the result to the storage unit 20 as a coded image.

[0035] The inverse quantization unit 17, the inverse transform unit 18, and the adder 19 constitute a coded image generation unit (local decoding unit). That is, the coded image generation unit multiplies the quantized coefficients by the quantization step to restore transform coefficients, performs inverse transform processing on the transform coefficients to restore a residual block image, and adds the residual block image to an intra-predicted image or a motion-compensated predicted image to generate a coded image.

[0036] The storage unit 20 is a memory that stores the coded image input from the addition unit 19 .

[0037] The intra prediction unit 21 generates an intra prediction image by intra predicting the encoded image stored in the memory unit 20 according to the intra prediction mode indicated by the intra prediction information input from the control unit 10, and outputs the intra prediction image to the switching unit 23.

[0038] The motion compensation prediction unit 22 generates a motion compensation prediction image by motion compensation prediction of the coded image stored in the memory unit 20 according to the motion vector indicated by the motion compensation information input from the control unit 10, and outputs the generated motion compensation prediction image to the switching unit 23.

[0039] The switching unit 23 switches between the intra-prediction image input from the intra-prediction unit 21 and the motion-compensation prediction image input from the motion-compensation prediction unit 22 to create a prediction block image, and outputs it to the subtraction unit 12 and the addition unit 19.

[0040] The entropy coding unit 24 performs entropy coding on the quantization coefficients input from the quantization unit 16 and coding parameters such as block size information, transformation information, intra prediction information, and motion compensation information input from the control unit 10, compresses the data, generates a bitstream, and outputs it to the outside of the coding device 1. For entropy coding, any entropy coding method can be used, such as zeroth-order exponential-Golomb coding or context-based adaptive binary arithmetic coding (CABAC).

[0041] <Control unit> Next, a description will be given of the processing of the control unit 10. The control unit 10 changes the coding parameters (size of block image, type of basis, intra prediction mode, and motion vector), calculates the amount of variation in image quality degradation between coded images relative to the original image (hereinafter referred to as "variation amount of coding degradation tendency"), performs RD optimization taking the amount of variation into account in the evaluation of coding distortion, and determines the combination of coding parameters that minimizes the RD cost as the final coding parameters.

[0042] The reason why flicker occurs in the control process of a conventional encoding device will be explained with an example in Figure 2. When encoding a frame with display time t=T-1, cost (T-1, Mode 1), RD cost (T-1, Mode 2), RD cost (T-1, mode 3) are compared, but here RD cost (T-1, mode 1) is the smallest. Also, when encoding a frame with display time t=T, RD cost (T, mode 1), RD cost (T, mode 2), RD cost (T, mode 3) are compared, but here RD costAssume that (T, mode 2) is the smallest. In this case, the coded image at t=T-1 is #2', and the coded image at t=T is #3''. However, since the coding degradation tendency of coded image #2' at t=T-1 and coded image #3'' at t=T may be significantly different, this mode selection (coded image selection) cannot be said to be appropriate from the viewpoint of flicker suppression.

[0043] Therefore, in the present invention, the control unit 10 performs RD to solve the problem of flicker occurring due to the difference in the image quality deterioration tendency (encoding deterioration tendency) between encoded images relative to the original image for each frame. cost When calculating (mode), a coding distortion D(mode) is used that takes into account the amount of fluctuation in the coding degradation tendency. In this embodiment, the amount of fluctuation in the coding degradation tendency is the temporal difference in similarity between the original image and the coded image.

[0044] (First example of mode selection process) 3 shows a first example of the mode selection process for the frame at t=T by the control unit 10. In FIG. 3, it is assumed that mode 1 is selected for the frame at t=T−1. The control unit 10 generates a differential image S between the encoded image #2′ and the original image #2 in mode 1 selected for the frame at t=T−1. dif (x, y, Tl, mode 1) is calculated. Also, for the frame at t=T, the encoded images (#3', #3'', #3''') in multiple candidate modes (modes 1 to 3 in FIG. 3) and the differential image S between the original image #3 are calculated. dif (x, y, T, mode) is calculated using the following equation (3).

[0045]

number

[0046] In a first example of the mode selection process, the temporal difference of the differential image (similarity) between the original image and the encoded image is used as the fluctuation amount F of the coding degradation tendency to be added to the coding distortion D(mode). In the example shown in FIG. 3, the fluctuation amount F of the coding degradation tendency is calculated by dividing the differential image S of the original image and the RD-optimized encoded image in the previous frame. dif(x, y, Tl, mode 1) and the difference image S between the original image in the current frame and the coded image of each mode dif (x, y, T, mode) and (x, y, T, mode). Therefore, the amount of temporal fluctuation in the difference between the original image and the encoded image is expressed by the following equation (4). It can be said that the smaller the amount of fluctuation F, the smaller the fluctuation in the tendency for encoding degradation.

[0047]

number

[0048] The control unit 10 changes the calculation formula for the coding distortion D(mode) from the conventional formula (2) to the following formula (5), where α is a weighting coefficient. The control unit 10 calculates the RD cost using the coding distortion D(mode) of formula (4) and the generated code amount R(mode) according to the above formula (1).

[0049]

number

[0050] In this way, by performing coding in consideration of fluctuations in the coding degradation tendency, it becomes possible to suppress temporal fluctuations in the coding degradation tendency, and to suppress flicker.

[0051] (Second example of mode selection process) 4 shows a second example of the mode selection process for the frame at t=T by the control unit 10. In FIG. 4, it is assumed that mode 1 is selected for the frame at t=T-1. As in the first example of the mode selection process, the control unit 10 first calculates a differential image S between the encoded image #2' and the original image #2 in mode 1 selected for the frame at t=T-1. dif (x, y, Tl, mode 1) is calculated. Also, the encoded images (#3', #3'', #3''') in multiple candidate modes (modes 1 to 3 in FIG. 4) for the frame at t=T are calculated, and the difference image S between the original image #3 and the encoded images (#3', #3'', #3''') are calculated. dif (x, y, T, mode) is calculated using the above-mentioned formula (3).

[0052] In the second example of the mode selection process, a difference image S between the original image and the RD-optimized encoded image in the previous frame is dif For (x, y, Tl, mode 1), motion prediction is performed between the current frame and the differential motion compensation prediction image M[S dif Then, the amount of fluctuation F in the coding degradation tendency is calculated as the differential motion compensation predicted image M[S dif (x, y, Tl, mode 1)] and the difference image S between the original image in the current frame and the coded image of each mode dif Let (x,y,T,mode) be the difference between.

[0053]

number

[0054] In the second example of the mode selection process, it becomes possible to more accurately evaluate fluctuations in the degradation tendency of degradation that moves in accordance with the movement of an image, such as degradation occurring at the edge of a moving object.

[0055] (Other variations of the mode selection process) Next, other variations of the mode selection process will be described. The similarity between the original image and the encoded image may be a change in contrast (variance) between the original image and the encoded image, an image correlation between the original image and the encoded image, or a change in structural information between the original image and the encoded image. When using these temporal differences as the fluctuation amount F of the encoding degradation tendency, the control unit 10 calculates the encoding distortion D(mode) using the following equation (7).

[0056]

number

[0057] When the temporal difference in contrast change between the original image and the encoded image is used as the fluctuation amount F of the coding degradation tendency, the fluctuation amount F of the coding degradation tendency can be calculated by the contrast change σ between the original image and the RD-optimized encoded image in the previous frame, as shown in the following equation (8): dif (tl,MODE(t-1)) and the contrast change σ of the original image and the coded image of each mode in the current frame dif Let (t,mode) be the difference between and.

[0058]

number

[0059] The contrast change is expressed by the contrast σ of the original image as shown in the following equation (9). org (t) and the contrast of the encoded image σ org A simple difference of (t, mode) may be used, or a value normalized by the contrast of the original image as shown in the following equation (10) or (11) may be used.

[0060]

number

[0061]

number

[0062]

number

[0063] Here, the contrast of the original image σ org (t) is the average pixel value of the original image μ org Using (t), it can be calculated using the following equations (12) and (13).

[0064]

number

[0065] In addition, the contrast σ of the encoded image dec (t,mode) is the average μ dec Using (t, mode), it can be calculated using the following equations (14) and (15).

[0066]

number

[0067] When the temporal difference in the image correlation between the original image and the coded image is used as the fluctuation amount F of the coding degradation tendency, the fluctuation amount F of the coding degradation tendency can be calculated by the image correlation σ between the original image and the RD-optimized coded image in the previous frame as shown in the following equation (16): org_dec (tl,MODE(t-1)) and the image correlation σ between the original image in the current frame and the coded image of each mode org_dec Let (t,mode) be the difference between and.

[0068]

number

[0069] Image correlation σ between the original image and the coded image org_dec (t, mode) can be calculated by the following equation (17): μ org (t) and μ dec (t, mode) is as shown in equations (12) and (14).

[0070]

number

[0071] When the time difference between the structural information change of the original image and the encoded image is used as the amount of change F of the tendency of coding degradation, the amount of change F of the tendency of coding degradation is calculated by subtracting the structural information change ST of the original image and the RD-optimized encoded image in the previous frame from the time difference F of the structural information change ST of the original image and the RD-optimized encoded image in the previous frame as shown in the following equation (18). dif(tl,MODE(t-1)) and the image correlation ST of the original image in the current frame and the coded image of each mode dif Let (t,mode) be the difference between and.

[0072]

number

[0073] The change in structural information between the original image and the encoded image can be calculated by the following equation (19): σ org (t), σ dec (t,mode),μ org (t), and μ dec (t, mode) is as shown in equations (12) to (15). Image correlation σ between the original image and the coded image org_dec (t, mode) is as shown in equation (17).

[0074]

number

[0075] As described above, the encoding device 1 according to the present invention calculates the amount of variation in image quality degradation between encoded images relative to the original image, and performs RD optimization that takes this amount of variation into account when evaluating coding distortion. As a result, the encoded image obtained by decoding the encoded data that is the output of the encoding device 1 has less noticeable flicker than images encoded by conventional encoding devices.

[0076] <Program> A computer capable of executing program instructions can also be used to function as the encoding device 1. The computer stores a program describing the processing details for implementing each function of the encoding device 1 in its memory, and the program is read and executed by the computer's processor. Some of these processing details may be implemented in hardware. Here, the computer may be a general-purpose computer, a special-purpose computer, a workstation, a personal computer (PC), an electronic notepad, etc. The program instructions may be program code, code segments, etc. for executing necessary tasks. The processor may be a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), etc. The program code may be written in a hardware description language to generate an application-specific integrated circuit (IC), such as a field programmable gate array (FPGA) or an application-specific integrated circuit (ASIC).

[0077] This program may also be recorded on a computer-readable recording medium. Using such a recording medium, the program can be installed on a computer. Here, the recording medium on which the program is recorded may be a non-transitory recording medium. The non-transitory recording medium is not particularly limited, and may be, for example, a CD-ROM, a DVD-ROM, or the like. This program may also be provided by downloading via a network.

[0078] Although the above-described embodiments have been described as typical examples, it will be apparent to those skilled in the art that many modifications and substitutions can be made within the spirit and scope of the present invention. Therefore, the present invention should not be construed as being limited by the above-described embodiments, and various modifications and alterations are possible without departing from the scope of the claims. For example, multiple building blocks shown in the block diagrams of the embodiments can be combined into one, or one building block can be divided. [Explanation of symbols]

[0079] 1 Encoding device 10 Control Unit 11 Block division section 12 Subtraction section 13 Conversion unit 14 Visual activity calculation unit 15 QP decision section 16 Quantization section 17 Inverse quantization section 18 Inverse conversion unit 19 Addition section 20 Memory section 21 Intra prediction unit 22 Motion compensation prediction unit 23 Switching section 24 Entropy coding unit

Claims

1. a block division unit for dividing an original image to generate block images; a conversion unit that performs a conversion process on a residual block image indicating a difference between the block image and an intra-prediction image or a motion compensation prediction image to calculate a conversion coefficient; a quantization unit that quantizes the transform coefficients to generate quantized coefficients; an encoded image generation unit that multiplies the quantization coefficients by a quantization step to restore transform coefficients, performs an inverse transform process on the transform coefficients to restore a residual block image, and adds the residual block image to the intra-prediction image or the motion compensation prediction image to generate an encoded image; an intra prediction unit that generates an intra predicted image by intra predicting the encoded image; a motion compensation prediction unit that performs motion compensation prediction on the encoded image to generate a motion compensation predicted image; an entropy coding unit that performs entropy coding on the quantized coefficients; a control unit that calculates an amount of variation in image quality degradation between the encoded images with respect to the original image, and performs RD optimization that takes the amount of variation into account in an evaluation of encoding distortion.

2. The encoding device according to claim 1 , wherein the amount of variation is a temporal difference in similarity between the original image and the encoded image.

3. 3. The encoding device according to claim 2, wherein the amount of variation is a difference between a difference image between an original image and a RD-optimized encoded image in a previous frame and a difference image between an original image and an encoded image in each mode in a current frame.

4. the control unit generates a differential motion compensation prediction image by performing motion compensation prediction on a differential image between an original image in a previous frame and a RD-optimized encoded image; 3. The encoding device according to claim 2, wherein the amount of variation is a difference between the differential motion compensation predicted image and a difference image between an original image in the current frame and an encoded image in each mode.

5. The encoding device according to claim 1 , wherein the control unit performs RD optimization by changing a size of the block image, a basis used in the transformation process, an intra prediction mode used in the intra prediction, and a motion vector used in the motion compensation prediction.

6. A program for causing a computer to function as the encoding device according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • In-screen predictive coding device, its method, and its program

    JP2005318468A

  • Image encoding apparatus, image decoding apparatus and program of them

    JP2013046206A

  • Moving image encoder and program

    JP2013062768A

  • Moving image encoding device, moving image encoding method, computer program for moving image encoding, moving image decoding device, moving image decoding method, and computer program for moving image decoding

    JP2018110313A