WO2015098559A1 - Decoding device, decoding method, encoding device, and encoding method - Google Patents

Decoding device, decoding method, encoding device, and encoding method Download PDF

Info

Publication number
WO2015098559A1
WO2015098559A1 PCT/JP2014/082920 JP2014082920W WO2015098559A1 WO 2015098559 A1 WO2015098559 A1 WO 2015098559A1 JP 2014082920 W JP2014082920 W JP 2014082920W WO 2015098559 A1 WO2015098559 A1 WO 2015098559A1
Authority
WO
WIPO (PCT)
Prior art keywords
unit
image
enlargement
encoding
decoding
Prior art date
Application number
PCT/JP2014/082920
Other languages
French (fr)
Japanese (ja)
Inventor
佐藤 数史
Original Assignee
ソニー株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ソニー株式会社 filed Critical ソニー株式会社
Publication of WO2015098559A1 publication Critical patent/WO2015098559A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/59Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution

Definitions

  • the present disclosure relates to a decoding apparatus and a decoding method, and an encoding apparatus and an encoding method, and in particular, a decoding apparatus capable of improving encoding efficiency when an image to be encoded is enlarged or reduced, and
  • the present invention relates to a decoding method, an encoding device, and an encoding method.
  • MPEG Motion Picture Experts Group phase
  • MPEG Motion Experts Group phase
  • orthogonal transformation such as discrete cosine transformation and motion compensation using redundancy unique to image information
  • the MPEG2 (ISO / IEC 13818-2) system is defined as a general-purpose image encoding system.
  • MPEG2 is a standard that covers both interlaced scanning images and progressive scanning images, as well as standard resolution images and high-definition images.
  • MPEG2 is currently widely used in a wide range of applications for professional and consumer applications.
  • a code amount of 4 to 8 Mbps is assigned for a standard resolution interlaced scan image having 720 ⁇ 480 pixels, and 18 to 22 MBps is assigned for a high resolution interlaced scan image having 1920 ⁇ 1088 pixels. Therefore, it is possible to realize a high compression rate and good image quality.
  • MPEG2 was mainly intended for high-quality encoding suitable for broadcasting, but it did not support encoding methods with a lower code amount (bit rate) than MPEG1, that is, a higher compression rate. With the widespread use of mobile terminals, the need for such an encoding system is expected to increase in the future, and the MPEG4 encoding system has been standardized accordingly. Regarding the MPEG4 image coding system, the standard was approved as an international standard in December 1998 as ISO / IEC 449 14496-2.
  • H. Standardization to achieve higher coding efficiency by incorporating functions that are not supported by 26L was done as Joint Model of Enhanced-Compression Video Coding. This standardization was implemented in March 2003 by H.C. It was internationally standardized under the names of H.264 and MPEG-4® Part 10 (AVC (Advanced Video Coding)).
  • Non-Patent Document 1 has been issued as Draft.
  • the HEVC inter-prediction process is based on a translation model similar to MPEG-2 and AVC, and the encoding efficiency when the image to be encoded is enlarged or reduced cannot be improved.
  • the present disclosure has been made in view of such a situation, and is intended to improve encoding efficiency when an image to be encoded is enlarged or reduced.
  • the decoding device includes an enlargement / reduction unit that enlarges or reduces the reference image based on enlargement / reduction rate information indicating a rate of enlargement or reduction of the reference image with respect to the inter-coded image, and the enlargement / reduction unit.
  • a generating unit that generates a predicted image using the reference image enlarged or reduced by the reducing unit; and a decoding unit that decodes the inter-coded image using the predicted image generated by the generating unit. It is a decoding device.
  • the decoding method according to the first aspect of the present disclosure corresponds to the decoding device according to the first aspect of the present disclosure.
  • the reference image is enlarged or reduced based on the enlargement / reduction rate information indicating the enlargement / reduction rate of the reference image with respect to the inter-coded image, and the reference image is enlarged or reduced. Is used to generate a predicted image, and the inter-coded image is decoded using the predicted image.
  • the encoding device includes an enlargement / reduction unit that enlarges or reduces the reference image based on enlargement / reduction rate information indicating a rate of enlargement or reduction of the reference image with respect to the image to be encoded; A generation unit that generates a prediction image using the reference image enlarged or reduced by the enlargement / reduction unit; and the encoding target image is encoded using the prediction image generated by the generation unit; An encoding device comprising: an encoding unit that generates encoded data; and a transmission unit that transmits the encoded data generated by the encoding unit and the enlargement / reduction ratio information.
  • the encoding method according to the second aspect of the present disclosure corresponds to the encoding device according to the second aspect of the present disclosure.
  • the reference image is enlarged or reduced based on the enlargement / reduction rate information indicating the enlargement / reduction rate of the reference image with respect to the encoding target image, and the reference is enlarged or reduced.
  • a predicted image is generated using an image
  • the encoded image is generated using the predicted image
  • the encoded data is generated
  • the encoded data and the enlargement / reduction ratio information are transmitted. .
  • the decoding device according to the first aspect and the encoding device according to the second aspect can be realized by causing a computer to execute a program.
  • a program to be executed by a computer is transmitted through a transmission medium or recorded on a recording medium, Can be provided.
  • the decoding device of the first aspect and the encoding device of the second aspect may be independent devices or may be internal blocks constituting one device.
  • the network is a mechanism in which at least two devices are connected and information can be transmitted from one device to another device.
  • the devices that communicate via the network may be independent devices, or may be internal blocks that constitute one device.
  • the encoded stream can be decoded. Further, according to the first aspect of the present disclosure, it is possible to decode an encoded stream that is encoded so as to improve encoding efficiency when an image to be encoded is enlarged or reduced.
  • an image can be encoded. Also, according to the second aspect of the present disclosure, it is possible to improve the encoding efficiency when the encoding target image is enlarged or reduced.
  • FIG. 3 is a block diagram illustrating a configuration example of a motion prediction / compensation unit in FIG. 2. It is a figure explaining PU of inter prediction. It is a figure explaining the interpolation filter process with respect to a luminance signal. It is a figure explaining the filter coefficient of the interpolation filter process with respect to a luminance signal. It is a figure explaining the interpolation filter process with respect to a color difference signal. It is a figure explaining the filter coefficient of the interpolation filter process with respect to a color difference signal.
  • FIG. 15 is a flowchart for describing details of the encoding process of FIG. 14.
  • FIG. 15 is a flowchart for describing details of the encoding process of FIG. 14.
  • FIG. 16 is a flowchart for explaining details of motion prediction / compensation processing in FIG. 15.
  • FIG. 20 is a block diagram illustrating a configuration example of a motion compensation unit in FIG. 19. It is a flowchart explaining the image generation process of the decoding apparatus of FIG. It is a flowchart explaining the detail of the decoding process of FIG. It is a flowchart explaining the detail of the motion compensation process of FIG. It is a figure explaining the calculation method of the expansion / contraction rate information for every reference direction. It is a block diagram which shows the structural example of the encoding part of 2nd Embodiment of the encoding apparatus to which this indication is applied.
  • FIG. 20 is a block diagram illustrating a configuration example of a motion compensation unit in FIG. 19. It is a flowchart explaining the image generation process of the decoding apparatus of FIG. It is a flowchart explaining the detail of the decoding process of FIG. It is a flowchart explaining the detail of the motion compensation process of FIG. It is a figure explaining the calculation method of the expansion / contraction rate information for every reference direction. It is a block diagram which shows the structural example
  • FIG. 26 is a block diagram illustrating a configuration example of a motion prediction / compensation unit in FIG. 25. It is a flowchart explaining the encoding process of the encoding part of FIG. It is a flowchart explaining the encoding process of the encoding part of FIG. It is a flowchart explaining the detail of the motion prediction and compensation process of FIG. It is a block diagram which shows the structural example of the decoding part of 2nd Embodiment of the decoding apparatus to which this indication is applied. It is a block diagram which shows the structural example of the motion compensation part of FIG. It is a flowchart explaining the decoding process of the decoding part of FIG.
  • FIG. 33 is a flowchart for describing details of a motion compensation process of FIG. 32.
  • FIG. 2 illustrates an example of a schematic configuration of a video set to which the present disclosure is applied.
  • 2 illustrates an example of a schematic configuration of a video processor to which the present disclosure is applied.
  • the other example of the schematic structure of the video processor to which this indication is applied is shown.
  • FIG. 1 is a block diagram illustrating a configuration example of a first embodiment of an encoding device to which the present disclosure is applied.
  • the encoding apparatus 10 in FIG. 1 includes a setting unit 11, an encoding unit 12, and a transmission unit 13, and encodes an image by a method according to the HEVC method.
  • the setting unit 11 of the encoding device 10 sets parameter sets such as SPS (Sequence Parameter Set), PPS (Picture Parameter Set), VUI (Video Usability Information), SEI (Supplemental Enhancement Information).
  • SPS Sequence Parameter Set
  • PPS Position Parameter Set
  • VUI Video Usability Information
  • SEI Supplemental Enhancement Information
  • the frame unit image is input to the encoding unit 12.
  • the encoding unit 12 encodes the input image using the HEVC method.
  • the encoding unit 12 generates an encoded stream from the encoded data obtained as a result of encoding and the parameter set supplied from the setting unit 11, and supplies the encoded stream to the transmission unit 13.
  • the transmission unit 13 transmits the encoded stream supplied from the encoding unit 12 to a decoding device to be described later.
  • FIG. 2 is a block diagram illustrating a configuration example of the encoding unit 12 of FIG.
  • the encoding unit 12 includes a deblocking filter 42, an adaptive offset filter 43, an adaptive loop filter 44, a frame memory 45, a switch 46, an intra prediction unit 47, a motion prediction / compensation unit 48, a determination unit 49, and a prediction image selection unit. 50 and a rate control unit 51.
  • the A / D conversion unit 31 of the encoding unit 12 performs A / D conversion on the frame-by-frame image input as an encoding target.
  • the A / D conversion unit 31 outputs an image, which is a digital signal after conversion, to the screen rearrangement buffer 32 for storage.
  • the screen rearrangement buffer 32 rearranges the stored frame-by-frame images in the order for encoding according to the GOP structure.
  • the screen rearrangement buffer 32 outputs the rearranged image to the calculation unit 33, the intra prediction unit 47, and the motion prediction / compensation unit 48.
  • the calculation unit 33 functions as an encoding unit, and performs encoding by subtracting the predicted image supplied from the predicted image selection unit 50 from the image supplied from the screen rearrangement buffer 32.
  • the computing unit 33 outputs the resulting image to the orthogonal transform unit 34 as residual information.
  • the calculation unit 33 outputs the image generated from the screen rearrangement buffer 32 to the orthogonal transform unit 34 as residual information as it is.
  • the orthogonal transform unit 34 orthogonally transforms the residual information from the calculation unit 33 in units of TU (transform unit).
  • the orthogonal transform unit 34 supplies an orthogonal transform coefficient obtained as a result of the orthogonal transform to the quantization unit 35.
  • the quantization unit 35 performs quantization on the orthogonal transform coefficient supplied from the orthogonal transform unit 34.
  • the quantization unit 35 supplies the quantized orthogonal transform coefficient to the lossless encoding unit 36.
  • the lossless encoding unit 36 acquires the intra prediction mode information indicating the optimal intra prediction mode from the intra prediction unit 47.
  • the lossless encoding unit 36 encodes the inter prediction mode information indicating the optimal inter prediction mode, the motion vector information regarding the motion vector, the reference image specifying information for specifying the reference image, and the scaling rate information indicating the scaling rate. Is obtained from the motion prediction / compensation unit 48.
  • the enlargement / reduction rate is a rate of enlargement or reduction of the reference image with respect to the image to be encoded, and is the same in the horizontal direction and the vertical direction here.
  • the lossless encoding unit 36 acquires offset filter information related to the offset filter from the adaptive offset filter 43 and acquires filter coefficients from the adaptive loop filter 44.
  • the lossless encoding unit 36 performs variable-length coding (for example, CAVLC (Context-Adaptive Variable Length Coding)) and arithmetic coding (for example, for the quantized orthogonal transform coefficient supplied from the quantization unit 35. , CABAC (Context-Adaptive Binary Arithmetic Coding) etc.).
  • variable-length coding for example, CAVLC (Context-Adaptive Variable Length Coding)
  • arithmetic coding for example, for the quantized orthogonal transform coefficient supplied from the quantization unit 35.
  • CABAC Context-Adaptive Binary Arithmetic Coding
  • the lossless encoding unit 36 also relates to encoding intra prediction mode information or inter prediction mode information, motion vector information, reference image specifying information, encoded scaling information, offset filter information, and filter coefficients. Lossless encoding is performed as encoded information.
  • the lossless encoding unit 36 supplies the encoding information and the orthogonal transform coefficient, which have been losslessly encoded, to the accumulation buffer 37 as encoded data and accumulates them. Note that the losslessly encoded encoding information may be added to the encoded data as a header portion such as a slice header.
  • the accumulation buffer 37 temporarily stores the encoded data supplied from the lossless encoding unit 36.
  • the accumulation buffer 37 supplies the stored encoded data to the generation unit 38.
  • the generating unit 38 generates an encoded stream from the parameter set supplied from the setting unit 11 in FIG. 1 and the encoded data supplied from the accumulation buffer 37, and supplies the encoded stream to the transmission unit 13 in FIG.
  • the quantized orthogonal transform coefficient output from the quantization unit 35 is also input to the inverse quantization unit 39.
  • the inverse quantization unit 39 performs inverse quantization on the orthogonal transform coefficient quantized by the quantization unit 35 by a method corresponding to the quantization method in the quantization unit 35.
  • the inverse quantization unit 39 supplies the orthogonal transform coefficient obtained as a result of the inverse quantization to the inverse orthogonal transform unit 40.
  • the inverse orthogonal transform unit 40 performs inverse orthogonal transform on the orthogonal transform coefficient supplied from the inverse quantization unit 39 by a method corresponding to the orthogonal transform method in the orthogonal transform unit 34 in units of TUs.
  • the inverse orthogonal transform unit 40 supplies the residual information obtained as a result to the addition unit 41.
  • the addition unit 41 adds the residual information supplied from the inverse orthogonal transform unit 40 and the prediction image supplied from the prediction image selection unit 50, and performs decoding locally. In addition, when a prediction image is not supplied from the prediction image selection part 50, the addition part 41 makes the residual information supplied from the inverse orthogonal transformation part 40 the image decoded locally.
  • the adder 41 supplies the locally decoded image to the deblock filter 42 and the frame memory 45.
  • the deblocking filter 42 performs deblocking filter processing for removing block distortion on the locally decoded image supplied from the adding unit 41, and supplies the resulting image to the adaptive offset filter 43.
  • the adaptive offset filter 43 performs an adaptive offset filter (SAO (Sample adaptive offset)) process that mainly removes ringing on the image after the deblock filter process by the deblock filter 42.
  • SAO Sample adaptive offset
  • the adaptive offset filter 43 determines the type of adaptive offset filter processing for each LCU (Largest Coding Unit) which is the maximum coding unit, and obtains an offset used in the adaptive offset filter processing.
  • the adaptive offset filter 43 performs the determined type of adaptive offset filter processing on the image after the deblocking filter processing using the obtained offset.
  • the adaptive offset filter 43 supplies the image after the adaptive offset filter processing to the adaptive loop filter 44. Further, the adaptive offset filter 43 supplies information indicating the type and offset of the adaptive offset filter processing performed to the lossless encoding unit 36 as offset filter information.
  • the adaptive loop filter 44 is constituted by, for example, a two-dimensional Wiener filter.
  • the adaptive loop filter 44 performs an adaptive loop filter (ALF (Adaptive Loop Filter)) process on the image after the adaptive offset filter process supplied from the adaptive offset filter 43, for example, for each LCU.
  • ALF Adaptive Loop Filter
  • the adaptive loop filter 44 is configured so that the residual of the original image that is the image output from the screen rearrangement buffer 32 and the image after the adaptive loop filter processing is minimized for each LCU. A filter coefficient used in the processing is calculated. Then, the adaptive loop filter 44 performs adaptive loop filter processing for each LCU using the calculated filter coefficient on the image after the adaptive offset filter processing.
  • the adaptive loop filter 44 supplies the image after the adaptive loop filter processing to the frame memory 45.
  • the adaptive loop filter 44 supplies the filter coefficient used for the adaptive loop filter process to the lossless encoding unit 36.
  • the adaptive loop filter processing is performed for each LCU, but the processing unit of the adaptive loop filter processing is not limited to the LCU. However, the processing can be efficiently performed by combining the processing units of the adaptive offset filter 43 and the adaptive loop filter 44.
  • the frame memory 45 stores the image supplied from the adaptive loop filter 44 and the image supplied from the adder 41. Pixels adjacent to a PU (Prediction Unit) in an image that has not been subjected to filter processing accumulated in the frame memory 45 are supplied to the intra prediction unit 47 via the switch 46 as peripheral pixels. On the other hand, the filtered image stored in the frame memory 45 is output to the motion prediction / compensation unit 48 via the switch 46 as a reference image.
  • PU Prediction Unit
  • the intra prediction unit 47 performs intra prediction processing for all candidate intra prediction modes using peripheral pixels read from the frame memory 45 via the switch 46 in units of PUs.
  • the intra prediction unit 47 calculates cost function values for all candidate intra prediction modes based on the image read from the screen rearrangement buffer 32 and the prediction image generated as a result of the intra prediction process. (Details will be described later). Then, the intra prediction unit 47 determines the intra prediction mode that minimizes the cost function value as the optimal intra prediction mode.
  • the intra prediction unit 47 supplies the predicted image generated in the optimal intra prediction mode and the corresponding cost function value to the predicted image selection unit 50.
  • the intra prediction unit 47 supplies the intra prediction mode information to the lossless encoding unit 36 when the prediction image selection unit 50 is notified of the selection of the prediction image generated in the optimal intra prediction mode.
  • the cost function value is also called RD (Rate Distortion) cost. It is calculated based on a method of High Complexity mode or Low Complexity mode as defined by JM (Joint Model) which is reference software in the H.264 / AVC format. H. Reference software in the H.264 / AVC format is published at http://iphome.hhi.de/suehring/tml/index.htm.
  • D is the difference (distortion) between the original image and the decoded image
  • R is the generated code amount including even the coefficient of orthogonal transformation
  • is the Lagrange undetermined multiplier given as a function of the quantization parameter QP.
  • D is the difference (distortion) between the original image and the predicted image
  • Header_Bit is the code amount of the encoding information
  • QPtoQuant is a function given as a function of the quantization parameter QP.
  • the motion prediction / compensation unit 48 performs motion prediction / compensation processing for each PU based on the enlargement / reduction ratio, candidate inter prediction mode, motion vector, and reference image supplied from the determination unit 49. Specifically, the motion prediction / compensation unit 48 reads candidate reference images from the frame memory 45 via the switch 46. The motion prediction / compensation unit 48 increases the resolution of the reference image by performing an interpolation filter process on the reference image.
  • the motion prediction / compensation unit 48 performs compensation processing on the reference image with high resolution based on the candidate inter prediction mode, the motion vector with fractional pixel accuracy, and the enlargement / reduction ratio, and generates a prediction image.
  • the inter prediction mode is a mode representing a PU size and a motion vector coding mode.
  • the motion vector coding mode includes a merge mode, an AMVP (Advanced Motion Vector Prediction) mode, and the like.
  • the merge mode is a mode in which motion vectors of a processing target PU are generated using motion vectors of temporally and spatially neighboring PUs (hereinafter referred to as neighboring PUs) of the processing target PU, and no motion vector information is transmitted. It is. Note that temporal motion vectors of peripheral PUs may not be used for generating motion vectors in merge mode. In this case, information (emporal_mvp_enabled_flag) indicating whether the temporal motion vector of the peripheral PU is not used for generating the motion vector in the merge mode may be set in the SPS or the slice header.
  • the AMVP mode is a mode in which the difference between the motion vector of the peripheral PU and the motion vector of the processing target PU is transmitted as motion vector information.
  • a motion vector encoding mode is a merge mode, and a block in which orthogonal transform coefficients are not transmitted is a skip mode block (skip macro).
  • the motion prediction / compensation unit 48 uses the cost function value for the combination of the inter prediction mode, the motion vector, the enlargement / reduction ratio, and the reference image based on the image and the predicted image supplied from the screen rearrangement buffer 32. Is calculated.
  • the motion prediction / compensation unit 48 determines the inter prediction mode that minimizes the cost function value as the optimal inter prediction mode.
  • the motion prediction / compensation unit 48 determines the motion vector, the enlargement / reduction ratio, and the reference image that minimize the cost function value as the optimum motion vector, enlargement / reduction ratio, and reference image. Then, the motion prediction / compensation unit 48 supplies the prediction image in the optimal inter prediction mode and the cost function value to the prediction image selection unit 50.
  • the motion prediction / compensation unit 48 receives inter prediction mode information, motion vector information of an optimal motion vector,
  • the reference image specifying information of the reference image and the encoded enlargement / reduction rate information of the enlargement / reduction rate are output to the lossless encoding unit 36.
  • the determination unit 49 supplies the candidate enlargement / reduction ratio to the motion prediction / compensation unit 48 in units of PUs.
  • the enlargement / reduction ratio is 2 r (r is an integer) that is common in the horizontal direction and the vertical direction, and the enlargement / reduction ratio information represents r.
  • the predicted image selection unit 50 Based on the cost function values supplied from the intra prediction unit 47 and the motion prediction / compensation unit 48, the predicted image selection unit 50 has a smaller cost function value corresponding to one of the optimal intra prediction mode and the optimal inter prediction mode. Are determined as the optimum prediction mode. Then, the predicted image selection unit 50 supplies the predicted image in the optimal prediction mode to the calculation unit 33 and the addition unit 41. Further, the predicted image selection unit 50 notifies the intra prediction unit 47 or the motion prediction / compensation unit 48 of selection of the predicted image in the optimal prediction mode.
  • the rate control unit 51 controls the quantization operation rate of the quantization unit 35 based on the encoded data stored in the storage buffer 37 so that overflow or underflow does not occur.
  • FIG. 3 is a diagram for explaining Coding Unit (CU), which is a coding unit in the HEVC scheme.
  • CU Coding Unit
  • CU is defined as a coding unit. Details of this CU are described in Non-Patent Document 1.
  • the CU plays the same role as a macroblock in the AVC method. Specifically, the CU is divided into PUs or TUs.
  • the size of the TU is, for example, 4 ⁇ 4 pixels, 16 ⁇ 16 pixels, or 32 ⁇ 32 pixels.
  • the size of the CU is a square represented by a power-of-two pixel that is variable for each sequence.
  • the CU divides the LCU, which is the largest CU, into two in the horizontal direction and the vertical direction an arbitrary number of times so as not to be smaller than the SCU (Smallest Coding Unit) which is the smallest CU.
  • SCU Smallest Coding Unit
  • the LCU size is 128 and the SCU size is 8. Accordingly, the hierarchical depth (Depth) of the LCU is 0 to 4, and the hierarchical depth number is 5. That is, the number of divisions corresponding to the CU is one of 0 to 4.
  • split_flag indicating whether or not to further divide each layer.
  • TU size can be specified using split_transform_flag, similar to CU split_flag.
  • the maximum number of TU divisions at the time of inter prediction and intra prediction is specified by SPS as max_transform_hierarchy_depth_inter and max_transform_hierarchy_depth_intra, respectively.
  • CTU Coding Tree Unit
  • CTB Coding Tree Block
  • LCU base level
  • a CU constituting a CTU is a unit including CB (Coding Block) and a parameter for processing on the CU base (level).
  • FIG. 4 is a block diagram illustrating a configuration example of the motion prediction / compensation unit 48 of FIG.
  • the motion prediction / compensation unit 48 of FIG. 4 includes a linear interpolation filter 81, a reference image buffer 82, a low-pass filter 83, a generation unit 84, an input image buffer 85, a PU buffer 86, a calculation unit 87, a determination unit 88, and an information code. It is comprised by the conversion part 89.
  • the linear interpolation filter 81 of the motion prediction / compensation unit 48 is a two-dimensional linear interpolation filter.
  • the linear interpolation filter 81 reads candidate reference images from the frame memory 45 via the switch 46.
  • the linear interpolation filter 81 increases the resolution by performing an interpolation filter process on the read reference image.
  • the linear interpolation filter 81 supplies the reference image with a high resolution to the reference image buffer 82.
  • the reference image buffer 82 holds the reference image supplied from the linear interpolation filter 81.
  • the reference image buffer 82 functions as an enlargement / reduction unit, and reads out a stored reference image based on the enlargement / reduction rate supplied from the determination unit 49, so that the reference image enlarged or reduced at the enlargement / reduction rate can be obtained. Generated and supplied to the low-pass filter 83.
  • the low pass filter 83 is, for example, a 121 type low pass filter.
  • the low-pass filter 83 performs low-pass filter processing on the reference image supplied from the reference image buffer 82 in the horizontal direction and the vertical direction. Thereby, the aliasing distortion of the reference image can be reduced. As a result, prediction accuracy is improved and coding efficiency is improved.
  • the low pass filter 83 supplies the reference image after the low pass filter process to the generation unit 84.
  • the generation unit 84 performs a compensation process on the reference image supplied from the low-pass filter 83 based on a candidate motion vector in units of PUs, and generates a predicted image.
  • the generation unit 84 supplies the predicted image to the calculation unit 87.
  • the candidate motion vectors are a motion vector determined using a motion vector of a peripheral PU as a motion vector in the merge mode or AMVP mode, and a predetermined motion vector with fractional accuracy.
  • the input image buffer 85 holds the image supplied from the screen rearrangement buffer 32.
  • the input image buffer 85 supplies the held image to the PU buffer 86 in units of PUs for each candidate inter prediction mode.
  • the PU buffer 86 holds the PU unit image supplied from the input image buffer 85.
  • the calculation unit 87 reads an image in PU units from the PU buffer 86.
  • the calculation unit 87 calculates a cost function value based on the read image and the predicted image for the combination of the inter prediction mode, the motion vector, the reference image, and the enlargement / reduction ratio.
  • the calculation unit 87 supplies the cost function value, the corresponding inter prediction mode, the motion vector, the reference image, the combination of the enlargement / reduction ratio, and the prediction image to the determination unit 88.
  • the determination unit 88 determines the inter prediction mode when the cost function value supplied from the calculation unit 87 is the minimum as the optimal inter prediction mode, and determines the motion vector, reference image, and scaling ratio as the optimal motion vector and reference. Determine the image and the enlargement / reduction ratio.
  • the determination unit 88 supplies the prediction image and the cost function value in the optimal inter prediction mode to the prediction image selection unit 50 in FIG.
  • the prediction image selection unit 50 notifies the selection of the prediction image generated in the optimal inter prediction mode
  • the determination unit 88 determines the optimal inter prediction mode, the optimal motion vector, and the reference image specifying information of the reference image.
  • the enlargement / reduction ratio information of the enlargement / reduction ratio is supplied to the information encoding unit 89.
  • the information encoding unit 89 encodes the enlargement / reduction rate information supplied from the determination unit 88 by context modeling, and generates encoded enlargement / reduction rate information. Specifically, the information encoding unit 89 calculates a difference between the enlargement / reduction rate information of the processing target PU and the enlargement / reduction rate information of the PUs around the processing target PU as the encoded enlargement / reduction rate information.
  • the information encoding unit 89 when the motion vector encoding mode is the merge mode, the information encoding unit 89 generates nothing as motion vector information.
  • the motion vector encoding mode is the AMVP mode
  • the information encoding unit 89 when the motion vector encoding mode is not the merge mode or AMVP mode, the information encoding unit 89 generates information representing the motion vector of the PU to be processed as motion vector information.
  • the information encoding unit 89 supplies the inter prediction mode information, motion vector information, reference image specifying information, and encoded enlargement / reduction rate information to the lossless encoding unit 36 of FIG.
  • FIG. 5 is a diagram illustrating inter prediction PU (motion compensation partition).
  • CU is assumed to be 2N ⁇ 2N pixels.
  • the PU of inter prediction is formed by dividing a CU symmetrically as shown in the upper part of FIG. 5 or asymmetrically dividing a CU as shown in the lower part of FIG.
  • the PU of inter prediction may be a 2N ⁇ 2N pixel that is a CU itself, an N ⁇ 2N pixel that bisects a CU bilaterally, or a 2N ⁇ N pixel that bisects a CU vertically. it can.
  • the inter prediction PU cannot be an N ⁇ N pixel obtained by dividing the CU into two vertically and horizontally symmetrically. Therefore, for example, when 16 ⁇ 16 pixels are used as an inter prediction PU, the CU needs to be 16 ⁇ 16 pixels instead of 32 ⁇ 32 pixels.
  • the PU of inter prediction can be configured by asymmetric partitioning (AMP (asymmetric motion partition)). That is, the inter prediction PU is 1 ⁇ 2N ⁇ 2N pixels (Left) obtained by dividing the CU into two parts so that the left side is asymmetrically left or right, or 1 ⁇ 2N obtained by dividing the CU into two parts so that the right side is asymmetrically reduced. ⁇ 2N pixels (Right) can also be used.
  • AMP asymmetric motion partition
  • the inter prediction PU is a 2N ⁇ 1 / 2N pixel (Upper) obtained by dividing the CU into two parts so that the upper side is asymmetrical in the vertical direction, or 2N ⁇ 1 / 2N pixels (upper) obtained by dividing the CU into two parts so that the lower side is asymmetrical in the vertical direction
  • a 1 / 2N pixel (Lower) can also be used.
  • amp_enabled_flag indicating whether or not the inter prediction PU is configured by asymmetrical division of the CU is set in the SPS.
  • Inter prediction mode, motion vector, reference image, enlargement / reduction ratio, etc. are set independently for each PU of inter prediction.
  • the minimum size of the CU is 8 ⁇ 8 pixels
  • the minimum size of the PU for inter prediction is 4 ⁇ 8 pixels or 8 ⁇ 4 pixels.
  • the size of the inter prediction PU cannot be set to 4 ⁇ 4 pixels in order to reduce the memory bandwidth.
  • FIG. 6 is a diagram for explaining the interpolation filter processing for the luminance signal by the linear interpolation filter 81 of FIG.
  • a hatched square represents a reference image pixel (hereinafter referred to as a previous pixel) before the interpolation filter process
  • a hatched square represents a reference after the interpolation filter process. It represents a pixel of an image (hereinafter referred to as a back pixel). The same applies to FIG. 8 described later.
  • the motion prediction / compensation unit 48 performs motion prediction / compensation processing of the luminance signal with 1/4 pixel accuracy. Therefore, the linear interpolation filter 81 performs an interpolation filter process in the horizontal direction and the vertical direction on the luminance signal of the reference image using an 8-tap or 7-tap two-dimensional linear interpolation adaptive filter. A pixel after an interval that is 1/4 of the interval between the previous pixels is generated.
  • the previous pixel A 0,0 and the previous pixel A 1,0 and the previous pixel A 0,1 adjacent to the previous pixel A 0,0 The front pixel A 0,0 and the rear pixels a 0,0 to k 0,0 , n 0,0 , and p 0,0 to r 0 at a 4 ⁇ 4 position with the position of A 0,0 as the upper left position , 0 is generated.
  • the preceding pixel A i, i of j, the front pixel A i represents the horizontal position of the j
  • j represents the position in the vertical direction.
  • i of the rear pixels a i, j to k i, j , n i, j and p i, j to r i, j represents the horizontal position of the corresponding front pixel A i, j , j Represents the position in the vertical direction.
  • the filter coefficients of an 8-tap or 7-tap two-dimensional linear interpolation adaptive filter are as shown in FIG.
  • the index of the previous pixel closest to the subsequent pixel to be generated is set to 0, and the index of the pixel arranged in the direction with respect to the previous pixel of the pixel is increased in the order from the rear pixel to be generated, which is opposite to that direction.
  • the index of the pixels lined up in the direction is made smaller in order from the next pixel to be generated.
  • a 7-tap filter coefficient (qfilter [i]) for the pixel of each index i when generating a subsequent pixel whose distance from the previous pixel closest to the direction of the interpolation filter processing is 1/4 of the interval of the previous pixel. ) Becomes -1,4, -10,58,17, -5,1 in ascending order of i.
  • the rear pixels a 0,0 to d 0,0 , h 0,0 and n 0,0 are calculated by the following equation (3).
  • shift1 is a value obtained by subtracting 8 from the bit depth BitDepthy of the luminance signal of the image to be encoded.
  • rear pixels e 0,0 to g 0,0 , i 0,0 to k 0,0 and p 0,0 to r 0,0 are calculated by the following equation (4).
  • shift2 is a value obtained by subtracting 6 from the bit depth BitDepthy.
  • FIG. 8 is a diagram for explaining the interpolation filter processing for the color difference signal by the linear interpolation filter 81 of FIG.
  • the motion prediction / compensation unit 48 performs motion prediction / compensation processing of color difference signals with 1/8 pixel accuracy. Therefore, the linear interpolation filter 81 uses the 4-tap two-dimensional linear interpolation adaptive filter to perform the interpolation filter processing in the horizontal direction and the vertical direction on the color difference signal of the reference image, thereby Generate a pixel after the interval 1/8 of the interval.
  • the previous pixel B 0,0 and the previous pixel B 1,0 and the previous pixel B 0,1 adjacent to the previous pixel B 0,0 The front pixel B 0,0 and the rear pixel ab 0,0 to ah 0,0 , ba 0,0 to bh 0,0 , ca 0 at the position of 8 ⁇ 8 with the position of B 0,0 being the upper left position 0 to ch 0,0 , da 0,0 to dh 0,0 , ea 0,0 to eh 0,0 , fa 0 , 0 to fh 0,0 , ga 0 , 0 to gh 0,0 , and ha 0 , 0 to hh 0,0 are generated.
  • i of the previous pixel B i, j represents the horizontal position of the previous pixel A i, j
  • j represents the vertical position.
  • the rear pixels abi , j to ah i, j , ba i, j to bh i, j , ca i, j to ch i, j , da i, j to dh i, j , ea i, j to eh i, j , fa i, j to fh i, j , ga i, j to gh i, j , and i of ha i, j to hh i, j are the horizontal direction of the corresponding previous pixel B i, j Represents the position, and j represents the position in the vertical direction.
  • the filter coefficients of a 4-tap two-dimensional linear interpolation adaptive filter are as shown in FIG. That is, the index of the pixel closest to the subsequent pixel to be generated is set to 0, and the index of the pixel aligned in the direction with respect to the previous pixel of the pixel is increased in the order closer to the subsequent pixel to be generated, and the pixel aligned in the direction opposite to that direction Are made smaller in order from the next pixel to be generated.
  • each index i (i -1,0,1,2) when generating a subsequent pixel whose distance to the previous pixel closest to the direction of the interpolation filter processing is 1/8 of the interval of the previous pixel
  • the filter coefficients (filter1 [i]) for the pixel of ⁇ 2 are ⁇ 2, 58, 10, and ⁇ 2 in order from the smallest i.
  • the filter coefficient (filter2 [i]) for the pixel of each index i when generating a subsequent pixel whose distance from the previous pixel closest to the direction of the interpolation filter processing is 2/8 of the interval of the previous pixel is In order from the smallest i, -4, 54, 16, and -2.
  • the filter coefficient (filter3 [i]) for each index i pixel when generating a subsequent pixel whose distance to the previous pixel closest to the direction of the interpolation filter processing is 3/8 of the previous pixel interval is In order from the smallest, -6, 46, 28, -4.
  • the filter coefficient (filter4 [i]) for each index i pixel when generating a subsequent pixel whose distance to the previous pixel closest to the direction of the interpolation filter processing is 4/8 of the interval of the previous pixel is In order from the smallest i, -4, 36, 36, -4.
  • the rear pixels ab 0,0 to ah 0,0 are calculated by the following equation (5).
  • shift1 is a value obtained by subtracting 8 from the bit depth BitDepthc of the color difference signal of the image to be encoded. The same applies to the equation (6) described later.
  • rear pixels ba 0,0 to ha 0,0 are calculated by the following equation (6).
  • shift2 is a value obtained by subtracting 6 from the bit depth BitDepthc.
  • FIGS. 10 and 11 are diagrams for explaining the reading process in the reference image buffer 82 of FIG.
  • a circle represents a pixel.
  • the reference image buffer 82 sets the enlargement / reduction ratio indicated by the enlargement / reduction ratio information. Based on this, the reference image 91 is enlarged, and an enlarged reference image 92 is generated.
  • the reference image buffer 82 sets each pixel 91a of the reference image 91 as the pixel. Read out as 2 ⁇ 2 pixels 92a to 92d at positions corresponding to 91a. As a result, the reference image buffer 82 generates an enlarged reference image 92 of 8 ⁇ 8 pixels.
  • the reference image buffer 82 reduces the reference image 93 based on the enlargement / reduction ratio represented by the enlargement / reduction ratio information and The reference image 94 is generated.
  • the reference image buffer 82 converts the reference image 93 into a block 93a of 2 ⁇ 2 pixels. To divide. The reference image buffer 82 selects one pixel 93b (upper left pixel in the example of FIG. 11) in each block 93a as a representative pixel. The reference image buffer 82 reads the pixel 93b of each block 93a as a pixel 94a at a position corresponding to the block 93a. Thereby, the reference image buffer 82 generates a reference image 94 after reduction of 4 ⁇ 4 pixels.
  • the reference image buffer 82 may generate the pixel at the center of the block 93a by using the pixel in the block 93a instead of the pixel 93b selected as the representative pixel as the pixel 94a.
  • FIG. 12 is a diagram illustrating an example of peripheral PUs in the merge mode.
  • the spatial peripheral PU candidates in the merge mode of the PU 101 to be processed include the PU 102 adjacent to the PU 101 in the left direction and the PU 103 adjacent in the lower left direction. Further, there are a PU 104 adjacent in the upper direction, a PU 105 adjacent in the upper right direction, and a PU 106 adjacent in the upper left direction.
  • one from each of the available PUs 102 and 103 and the available PUs among the PUs 104 to 106 is selected according to the following priority order. Note that all of the PUs 102 to 106 that have the same motion vector are not available, except for one, in order to eliminate redundancy.
  • PU with the same reference image and prediction direction as the processing target PU 101 2.
  • the PU 101 to be processed and the reference image are the same, but the PUs with different prediction directions 3.
  • PU 101 to be processed is different from the reference image, but the prediction direction is the same PU 4).
  • the PU to be processed differs from the reference image in the prediction direction.
  • the scaling process shown in the following equation (8) is performed on the motion vector of the neighboring PU,
  • the motion vector is used to generate a motion vector of the processing target PU 101.
  • Equation (8) mvLxA is a spatial motion vector of a peripheral PU.
  • Tb and td are defined by the following equation (9).
  • td is the difference between the POC collocated on the PU 101 to be processed and the POC of the reference image of the PU 108.
  • tb is the difference between the processing target PU 101 and the reference image POC (Picture ⁇ Order Count) of the PU 101.
  • the PU 108 that is collocated on the processing target PU 101 is a PU that is temporally different from the processing target PU 101 but has the same spatial position.
  • the temporally neighboring PU candidates in the merge mode of the processing target PU 101 are different from the processing target PU 101 in terms of time, but the right PU and the central PU 108 in the region 107 having the same spatial position and size. There is PU109 below.
  • the temporal peripheral PU is the PU 109. If the PU 109 is not available but the PU 108 is available, the temporally neighboring PU is set as the PU 108.
  • FIG. 13 is a diagram illustrating an example of the syntax of mvd_coding of a PU.
  • the enlargement / reduction ratio information is set as log2_expanding_factor in mvd_coding.
  • FIG. 14 is a flowchart illustrating a stream generation process of the encoding device 10 of FIG.
  • step S11 of FIG. 14 the setting unit 11 of the encoding device 10 sets a parameter set.
  • the setting unit 11 supplies the set parameter set to the encoding unit 12.
  • step S12 the encoding unit 12 performs an encoding process for encoding an image of a frame unit input from the outside using the HEVC method. Details of the encoding process will be described with reference to FIGS. 15 and 16 to be described later.
  • step S ⁇ b> 13 the generation unit 38 (FIG. 2) of the encoding unit 12 generates an encoded stream from the parameter set supplied from the setting unit 11 and the encoded data supplied from the accumulation buffer 37, and sends it to the transmission unit 13. Supply.
  • step S14 the transmission unit 13 transmits the encoded stream supplied from the setting unit 11 to a decoding device to be described later, and ends the process.
  • 15 and 16 are flowcharts illustrating details of the encoding process in step S12 of FIG.
  • step S30 of FIG. 15 the A / D conversion unit 31 of the encoding unit 12 performs A / D conversion on the frame unit image input as the encoding target.
  • the A / D conversion unit 31 outputs an image, which is a digital signal after conversion, to the screen rearrangement buffer 32 for storage.
  • step S31 the screen rearrangement buffer 32 rearranges the images of the stored frames in the display order in the order for encoding according to the GOP structure.
  • the screen rearrangement buffer 32 supplies the rearranged frame-unit images to the calculation unit 33, the intra prediction unit 47, and the motion prediction / compensation unit 48.
  • step S32 the intra prediction unit 47 performs intra prediction processing for all candidate intra prediction modes in units of PUs. Further, the intra prediction unit 47 calculates cost function values for all candidate intra prediction modes based on the image read from the screen rearrangement buffer 32 and the prediction image generated as a result of the intra prediction process. Is calculated. Then, the intra prediction unit 47 determines the intra prediction mode that minimizes the cost function value as the optimal intra prediction mode. The intra prediction unit 47 supplies the predicted image generated in the optimal intra prediction mode and the corresponding cost function value to the predicted image selection unit 50.
  • the motion prediction / compensation unit 48 performs motion prediction / compensation processing in units of PUs based on candidate inter prediction modes, motion vectors, reference images, and enlargement / reduction ratios. Details of this motion prediction / compensation processing will be described with reference to FIG.
  • step S ⁇ b> 33 the predicted image selection unit 50 has the cost function value of the optimal intra prediction mode and the optimal inter prediction mode that is the minimum based on the cost function values supplied from the intra prediction unit 47 and the motion prediction / compensation unit 48. Is determined as the optimum prediction mode. Then, the predicted image selection unit 50 supplies the predicted image in the optimal prediction mode to the calculation unit 33 and the addition unit 41.
  • step S34 the predicted image selecting unit 50 determines whether or not the optimal prediction mode is the optimal inter prediction mode.
  • the predicted image selection unit 50 notifies the motion prediction / compensation unit 48 of the selection of the predicted image generated in the optimal inter prediction mode.
  • the determination unit 88 (FIG. 4) of the motion prediction / compensation unit 48 provides information about the optimal inter prediction mode, the optimal motion vector, the reference image specifying information of the reference image, and the enlargement / reduction rate information of the enlargement / reduction rate. This is supplied to the encoding unit 89.
  • step S35 the information encoding unit 89 generates motion vector information according to the motion vector encoding mode.
  • the information encoding unit 89 encodes the enlargement / reduction rate supplied from the determination unit 88 by context modeling, and generates encoded enlargement / reduction rate information.
  • step S36 the information encoding unit 89 supplies the inter prediction mode information, the motion vector information, the reference image specifying information, and the encoded enlargement / reduction rate information to the lossless encoding unit 36, and the process proceeds to step S38.
  • step S34 when it is determined in step S34 that the optimal prediction mode is not the optimal inter prediction mode, that is, when the optimal prediction mode is the optimal intra prediction mode, the predicted image selection unit 50 performs the prediction generated in the optimal intra prediction mode.
  • the intra prediction unit 47 is notified of the image selection.
  • step S37 the intra prediction unit 47 supplies the intra prediction mode information to the lossless encoding unit 36, and the process proceeds to step S38.
  • step S38 the calculation unit 33 performs encoding by subtracting the predicted image supplied from the predicted image selection unit 50 from the image supplied from the screen rearrangement buffer 32.
  • the computing unit 33 outputs the resulting image to the orthogonal transform unit 34 as residual information.
  • step S39 the orthogonal transform unit 34 performs orthogonal transform on the residual information from the operation unit 33 in units of TUs, and supplies the resulting orthogonal transform coefficient to the quantization unit 35.
  • step S40 the quantization unit 35 quantizes the orthogonal transform coefficient supplied from the orthogonal transform unit 34, and supplies the quantized orthogonal transform coefficient to the lossless encoding unit 36 and the inverse quantization unit 39.
  • step S41 in FIG. 16 the inverse quantization unit 39 inversely quantizes the quantized orthogonal transform coefficient supplied from the quantization unit 35, and supplies the resulting orthogonal transform coefficient to the inverse orthogonal transform unit 40. .
  • step S42 the inverse orthogonal transform unit 40 performs inverse orthogonal transform on the orthogonal transform coefficient supplied from the inverse quantization unit 39 in units of TUs, and supplies the residual information obtained as a result to the addition unit 41.
  • step S43 the addition unit 41 adds the residual information supplied from the inverse orthogonal transform unit 40 and the prediction image supplied from the prediction image selection unit 50, and performs decoding locally.
  • the adder 41 supplies the locally decoded image to the deblock filter 42 and the frame memory 45.
  • step S44 the deblocking filter 42 performs a deblocking filter process on the locally decoded image supplied from the adding unit 41.
  • the deblocking filter 42 supplies the resulting image to the adaptive offset filter 43.
  • step S45 the adaptive offset filter 43 performs an adaptive offset filter process on the image supplied from the deblocking filter 42 for each LCU.
  • the adaptive offset filter 43 supplies the resulting image to the adaptive loop filter 44. Further, the adaptive offset filter 43 supplies the offset filter information to the lossless encoding unit 36 for each LCU.
  • step S46 the adaptive loop filter 44 performs an adaptive loop filter process on the image supplied from the adaptive offset filter 43 for each LCU.
  • the adaptive loop filter 44 supplies the resulting image to the frame memory 45.
  • the adaptive loop filter 44 supplies the filter coefficient used in the adaptive loop filter process to the lossless encoding unit 36.
  • step S47 the frame memory 45 stores the image supplied from the adaptive loop filter 44 and the image supplied from the adder 41. Pixels adjacent to the PU in the image that has not been subjected to the filter processing accumulated in the frame memory 45 are supplied to the intra prediction unit 47 through the switch 46 as peripheral pixels. On the other hand, the filtered image stored in the frame memory 45 is output to the motion prediction / compensation unit 48 via the switch 46 as a reference image.
  • step S48 the lossless encoding unit 36 encodes intra prediction mode information, inter prediction mode information, motion vector information, reference image specifying information, encoded enlargement / reduction ratio information, offset filter information, and filter coefficients. Lossless encoding as the conversion information.
  • step S49 the lossless encoding unit 36 performs lossless encoding on the quantized orthogonal transform coefficient supplied from the quantization unit 35. Then, the lossless encoding unit 36 generates encoded data from the encoded information that has been losslessly encoded in the process of step S48 and the orthogonal transform coefficient that has been losslessly encoded, and supplies the encoded data to the accumulation buffer 37.
  • step S50 the accumulation buffer 37 temporarily accumulates the encoded data supplied from the lossless encoding unit 36.
  • step S51 the rate control unit 51 controls the rate of the quantization operation of the quantization unit 35 based on the encoded data stored in the storage buffer 37 so that overflow or underflow does not occur.
  • step S52 the accumulation buffer 37 outputs the stored encoded data to the generation unit 38. And a process returns to step S12 of FIG. 14, and progresses to step S13. And a process returns to step S12 of FIG. 14, and progresses to step S13.
  • FIG. 17 is a flowchart for explaining the details of the motion prediction / compensation process in step S32 of FIG. This motion prediction / compensation process is performed in units of PUs.
  • step S71 of FIG. 17 the motion prediction / compensation unit 48 determines a candidate reference image that has not yet been determined as a reference image for the current process, as a reference image for the current process.
  • step S72 the determination unit 49 determines the candidate enlargement / reduction ratio that has not yet been decided as the enlargement / reduction ratio of the current process as the enlargement / reduction ratio of the current process.
  • step S ⁇ b> 73 the motion prediction / compensation unit 48 determines the PU size of the current process that has not yet been determined as the PU size of the current process among the PU sizes represented by the candidate inter prediction modes. To decide.
  • step S74 the linear interpolation filter 81 (FIG. 4) of the motion prediction / compensation unit 48 reads the reference image determined in step S71 from the frame memory 45 via the switch 46.
  • step S75 the linear interpolation filter 81 increases the resolution of the reference image by performing an interpolation filter process on the read reference image.
  • the linear interpolation filter 81 supplies the reference image with high resolution to the reference image buffer 82 and holds it.
  • step S76 the reference image buffer 82 reads the stored reference image based on the enlargement / reduction ratio supplied from the determination unit 49, thereby generating a reference image enlarged or reduced at the enlargement / reduction ratio,
  • the low-pass filter 83 is supplied.
  • step S77 the low-pass filter 83 performs a low-pass filter process on the reference image supplied from the reference image buffer 82 in the horizontal direction and the vertical direction.
  • step S78 the input image buffer 85 reads out the PU having the size determined in step S73 from the images supplied and held from the screen rearranging buffer 32, and supplies the PU to the PU buffer 86 for holding.
  • step S79 the generation unit 84 determines a candidate motion vector that has not yet been determined as the current processing target motion vector as the current processing target motion vector.
  • step S80 the generation unit 84 performs compensation processing on the reference image supplied from the low-pass filter 83 based on the motion vector determined in step S79, and generates a predicted image.
  • the generation unit 84 supplies the predicted image to the calculation unit 87.
  • step S81 the calculation unit 87 reads an image in PU units from the PU buffer 86, and calculates a cost function value based on the image and the predicted image.
  • the calculation unit 87 supplies the cost function value and the predicted image to the determination unit 88.
  • the calculation unit 87 determines the reference image, the enlargement / reduction ratio, and the motion vector determined in steps S71, S72, and S79, and the motion vector encoding mode corresponding to the motion vector and the step S73.
  • a combination of inter prediction modes representing the PU size is supplied to the determination unit 88.
  • step S82 the motion prediction / compensation unit 48 determines whether or not the cost function value has been calculated for all candidate motion vectors, that is, all candidate motion vectors are determined to be motion vectors of the current process in step S79. Determine whether it was done.
  • step S82 If it is determined in step S82 that cost function values have not been calculated for all candidate motion vectors, the process returns to step S79. Then, the processes in steps S79 to S82 are repeated until it is determined that the cost function values have been calculated for all candidate motion vectors.
  • step S82 determines whether cost function values have been calculated for all candidate motion vectors. If it is determined in step S82 that cost function values have been calculated for all candidate motion vectors, the process proceeds to step S83.
  • step S83 the motion prediction / compensation unit 48 has calculated cost function values for all candidate PU sizes, that is, all candidate PU sizes in step S73 are the current processing PUs. Determine whether the size has been determined.
  • step S83 If it is determined in step S83 that cost function values have not been calculated for all candidate PU sizes, the process returns to step S73. Then, the processes of steps S73 to S83 are repeated until it is determined that the cost function values have been calculated for all candidate PU sizes.
  • step S83 determines whether or not the cost function value has been calculated for all candidate PU sizes. If it is determined in step S83 that the cost function value has been calculated for all candidate PU sizes, the process proceeds to step S84.
  • step S84 the determination unit 49 determines whether or not the cost function value has been calculated for all of the candidate enlargement / reduction ratios, that is, all of the candidate enlargement / reduction ratios in step S72 are the enlargement / reduction ratios of the current process. Determine whether it was done.
  • step S84 If it is determined in step S84 that cost function values have not been calculated for all of the candidate enlargement / reduction ratios, the process returns to step S72. Then, the processes of steps S72 to S84 are repeated until it is determined that the cost function value has been calculated for all of the candidate enlargement / reduction ratios.
  • step S84 determines whether or not the cost function value has been calculated for all candidate reference images, that is, all candidate reference images are determined as reference images for the current process in step S71. Determine whether it was done.
  • step S85 If it is determined in step S85 that the cost function value has not been calculated for all candidate reference images, the process returns to step S71. Then, the processes in steps S71 to S85 are repeated until it is determined that the cost function value has been calculated for all candidate reference images.
  • step S86 determines that the cost function value supplied from the calculation unit 87 is minimum.
  • the inter prediction mode is determined as the optimal inter prediction mode. Further, the determination unit 88 determines the motion vector, reference image, and enlargement / reduction ratio at the time when the cost function value is minimum as the optimum motion vector, reference image, and enlargement / reduction ratio.
  • step S87 the determination unit 88 supplies the cost function value and the prediction image in the optimal inter prediction mode to the prediction image selection unit 50 in FIG.
  • the encoding device 10 enlarges or reduces the reference image based on the enlargement / reduction ratio information, and generates a predicted image using the enlarged or reduced reference image. Therefore, the prediction accuracy when the image to be encoded is enlarged or reduced is improved, and the encoding efficiency is improved.
  • FIG. 18 is a block diagram illustrating a configuration example of a first embodiment of a decoding device to which the present disclosure is applied, which decodes an encoded stream transmitted from the encoding device 10 in FIG. 1.
  • 18 is configured by a receiving unit 111, an extracting unit 112, and a decoding unit 113.
  • the receiving unit 111 of the decoding device 110 receives the encoded stream transmitted from the encoding device 10 in FIG. 1 and supplies it to the extracting unit 112.
  • the extraction unit 112 extracts a parameter set and encoded data from the encoded stream supplied from the receiving unit 111 and supplies the extracted parameter set and encoded data to the decoding unit 113.
  • the decoding unit 113 decodes the encoded data supplied from the extraction unit 112 using the HEVC method. At this time, the decoding unit 113 also refers to the parameter set supplied from the extraction unit 112 as necessary. The decoding unit 113 outputs an image obtained as a result of decoding.
  • FIG. 19 is a block diagram illustrating a configuration example of the decoding unit 113 in FIG.
  • the decoding unit 113 includes a D / A conversion unit 140, a frame memory 141, a switch 142, an intra prediction unit 143, a motion compensation unit 144, an information decoding unit 145, and a switch 146.
  • the accumulation buffer 131 of the decoding unit 113 receives and accumulates the encoded data from the extraction unit 112 of FIG.
  • the accumulation buffer 131 supplies the accumulated encoded data to the lossless decoding unit 132.
  • the lossless decoding unit 132 performs lossless decoding such as variable length decoding and arithmetic decoding corresponding to the lossless encoding of the lossless encoding unit 36 of FIG. 2 on the encoded data from the accumulation buffer 131, A quantized orthogonal transform coefficient and encoding information are obtained.
  • the lossless decoding unit 132 supplies the quantized orthogonal transform coefficient to the inverse quantization unit 133. Further, the lossless decoding unit 132 supplies intra prediction mode information as encoded information to the intra prediction unit 143.
  • the lossless decoding unit 132 supplies inter prediction mode information and reference image specifying information to the motion compensation unit 144, and supplies inter prediction mode information, motion vector information, and encoded enlargement / reduction rate information to the information decoding unit 145.
  • the lossless decoding unit 132 supplies intra prediction mode information or inter prediction mode information as encoded information to the switch 146.
  • the lossless decoding unit 132 supplies offset filter information as encoded information to the adaptive offset filter 137.
  • the lossless decoding unit 132 supplies filter coefficients as encoded information to the adaptive loop filter 138.
  • the inverse quantization unit 133, the inverse orthogonal transform unit 134, the addition unit 135, the deblock filter 136, the adaptive offset filter 137, the adaptive loop filter 138, the frame memory 141, the switch 142, the intra prediction unit 143, and the motion compensation unit 144 Inverse quantization unit 39, inverse orthogonal transform unit 40, addition unit 41, deblock filter 42, adaptive offset filter 43, adaptive loop filter 44, frame memory 45, switch 46, intra prediction unit 47, and motion prediction / The same processing as that of the compensation unit 48 is performed, whereby the image is decoded.
  • the inverse quantization unit 133 inversely quantizes the quantized orthogonal transform coefficient from the lossless decoding unit 132 and supplies the orthogonal transform coefficient obtained as a result to the inverse orthogonal transform unit 134.
  • the inverse orthogonal transform unit 134 performs inverse orthogonal transform on the orthogonal transform coefficient from the inverse quantization unit 133 in units of TUs.
  • the inverse orthogonal transform unit 134 supplies residual information obtained as a result of the inverse orthogonal transform to the addition unit 135.
  • the addition unit 135 functions as a decoding unit, and performs decoding by adding the residual information supplied from the inverse orthogonal transform unit 134 and the prediction image supplied from the switch 146.
  • the adding unit 135 supplies an image obtained as a result of decoding to the deblocking filter 136 and the frame memory 141.
  • the adding unit 135 sets the image that is the residual information supplied from the inverse orthogonal transform unit 134 as an image obtained as a result of decoding in the deblocking filter 136 and the frame memory 141. Supply.
  • the deblocking filter 136 performs a deblocking filter process on the image supplied from the adding unit 135, and supplies the resulting image to the adaptive offset filter 137.
  • the adaptive offset filter 137 performs adaptive offset filter processing of the type represented by the offset filter information on the image after the deblocking filter processing using the offset represented by the offset filter information from the lossless decoding unit 132 for each LCU. .
  • the adaptive offset filter 137 supplies the image after the adaptive offset filter processing to the adaptive loop filter 138.
  • the adaptive loop filter 138 performs an adaptive loop filter process for each LCU on the image supplied from the adaptive offset filter 137 using the filter coefficient supplied from the lossless decoding unit 132.
  • the adaptive loop filter 138 supplies the resulting image to the frame memory 141 and the screen rearrangement buffer 139.
  • the screen rearrangement buffer 139 stores the image supplied from the adaptive loop filter 138 in units of frames.
  • the screen rearrangement buffer 139 rearranges the stored frame-by-frame images for encoding in the original display order and supplies them to the D / A conversion unit 140.
  • the D / A conversion unit 140 performs D / A conversion on the frame-based image supplied from the screen rearrangement buffer 139 and outputs it.
  • the frame memory 141 stores the image supplied from the adaptive loop filter 138 and the image supplied from the adding unit 135. Pixels adjacent to the PU in the image that has not been subjected to filter processing accumulated in the frame memory 141 are supplied to the intra prediction unit 143 via the switch 142 as peripheral pixels. On the other hand, the filtered image stored in the frame memory 141 is supplied to the motion compensation unit 144 via the switch 142 as a reference image.
  • the intra prediction unit 143 uses the peripheral pixels read from the frame memory 141 via the switch 142 in units of PUs, and performs intra prediction in the optimal intra prediction mode indicated by the intra prediction mode information supplied from the lossless decoding unit 132. Process.
  • the intra prediction unit 143 supplies the prediction image generated as a result to the switch 146.
  • the motion compensation unit 144 is based on the enlargement / reduction rate information and the motion vector supplied from the information decoding unit 145 and the inter prediction mode information and the reference image specifying information supplied from the lossless decoding unit 132 in units of PUs. Perform compensation processing. Specifically, the motion compensation unit 144 reads the reference image specified by the reference image specifying information supplied from the lossless decoding unit 132 from the frame memory 141 via the switch 142. The motion compensation unit 144 increases the resolution of the reference image by performing an interpolation filter process on the reference image.
  • the motion compensation unit 144 uses the reference image with high resolution based on the enlargement / reduction rate information and the motion vector supplied from the information decoding unit 145 and the PU size represented by the inter prediction mode information to generate a prediction image. Generate. The motion compensation unit 144 supplies the predicted image to the switch 146.
  • the information decoding unit 145 decodes the encoded enlargement / reduction rate information supplied from the lossless decoding unit 132. Specifically, the information decoding unit 145 adds the enlargement / reduction rate information of the PUs around the processing target PU and the difference that is the encoded enlargement / reduction rate information to generate the enlargement / reduction rate information of the processing target PU. To do.
  • the information decoding unit 145 uses the motion vector of the peripheral PU to calculate the motion vector of the PU to be processed. Generate.
  • the motion vector encoding mode is the AMVP mode
  • the information decoding unit 145 adds the motion vector of the PU around the PU to be processed and the difference between the motion vectors as the motion vector information, and A motion vector of the PU is generated.
  • the information decoding unit 145 when the motion vector encoding mode is not the merge mode or the AMVP mode, the information decoding unit 145 generates a motion vector that is motion vector information as a motion vector of the PU to be processed.
  • the information decoding unit 145 supplies the enlargement / reduction ratio information and the motion vector to the motion compensation unit 144.
  • the switch 146 supplies the prediction image supplied from the intra prediction unit 143 to the addition unit 135.
  • the switch 146 supplies the prediction image supplied from the motion compensation unit 144 to the adding unit 135.
  • FIG. 20 is a block diagram illustrating a configuration example of the motion compensation unit 144 of FIG.
  • the 20 includes a linear interpolation filter 161, a reference image buffer 162, a low-pass filter 163, and a generation unit 164.
  • the linear interpolation filter 161 of the motion compensation unit 144 is a two-dimensional linear interpolation filter.
  • the linear interpolation filter 161 reads the reference image specified by the reference image specifying information supplied from the lossless decoding unit 132 in FIG. 19 from the frame memory 141 via the switch 142.
  • the linear interpolation filter 161 increases the resolution by performing an interpolation filter process on the read reference image.
  • the linear interpolation filter 161 supplies the reference image with a high resolution to the reference image buffer 162.
  • the reference image buffer 162 holds the reference image supplied from the linear interpolation filter 161.
  • the reference image buffer 162 functions as an enlargement / reduction unit, and reads the held reference image based on the enlargement / reduction rate information supplied from the information decoding unit 145, similarly to the reference image buffer 82 of FIG. Thereby, a reference image enlarged or reduced at the enlargement / reduction ratio represented by the enlargement / reduction ratio information is generated.
  • the reference image buffer 162 supplies the reference image to the low pass filter 163.
  • the low pass filter 163 is, for example, a 121 type low pass filter.
  • the low-pass filter 163 performs low-pass filter processing on the reference image supplied from the reference image buffer 162 in the horizontal direction and the vertical direction in the same manner as the low-pass filter 83.
  • the low pass filter 163 supplies the reference image after the low pass filter process to the generation unit 164.
  • the generation unit 164 is a reference supplied from the low-pass filter 163 in units of PUs based on the PU size represented by the inter prediction mode supplied from the lossless decoding unit 132 and the motion vector supplied from the information decoding unit 145. Compensate the image.
  • the generation unit 164 supplies the predicted image generated as a result to the switch 146 in FIG.
  • FIG. 21 is a flowchart illustrating the image generation processing of the decoding device 110 in FIG.
  • the reception unit 111 of the decoding device 110 receives the encoded stream transmitted from the encoding device 10 of FIG. 1 and supplies the encoded stream to the extraction unit 112.
  • step S112 the extraction unit 112 extracts encoded data and a parameter set from the encoded stream supplied from the reception unit 111, and supplies the extracted encoded data and parameter set to the decoding unit 113.
  • step S113 the decoding unit 113 performs a decoding process for decoding the encoded data supplied from the extraction unit 112 by a method according to the HEVC method, using the parameter set supplied from the extraction unit 112 as necessary. Details of this decoding process will be described with reference to FIG. Then, the process ends.
  • FIG. 22 is a flowchart for explaining the details of the decoding process in step S113 of FIG.
  • the accumulation buffer 131 (FIG. 19) of the decoding unit 113 receives the encoded data in units of frames from the extraction unit 112 of FIG. 18 and accumulates it.
  • the accumulation buffer 131 supplies the accumulated encoded data to the lossless decoding unit 132.
  • step S131 the lossless decoding unit 132 losslessly decodes the encoded data from the accumulation buffer 131 to obtain quantized orthogonal transform coefficients and encoded information.
  • the lossless decoding unit 132 supplies the quantized orthogonal transform coefficient to the inverse quantization unit 133.
  • the lossless decoding unit 132 supplies intra prediction mode information as encoded information to the intra prediction unit 143.
  • the lossless decoding unit 132 supplies inter prediction mode information and reference image specifying information to the motion compensation unit 144, and supplies inter prediction mode information, motion vector information, and encoded enlargement / reduction rate information to the information decoding unit 145.
  • the lossless decoding unit 132 supplies intra prediction mode information or inter prediction mode information as encoded information to the switch 146.
  • the lossless decoding unit 132 supplies offset filter information as encoded information to the adaptive offset filter 137 and supplies filter coefficients to the adaptive loop filter 138.
  • step S132 the inverse quantization unit 133 performs inverse quantization on the quantized orthogonal transform coefficient from the lossless decoding unit 132, and supplies the resulting orthogonal transform coefficient to the inverse orthogonal transform unit 134.
  • step S133 the inverse orthogonal transform unit 134 performs inverse orthogonal transform on the orthogonal transform coefficient from the inverse quantization unit 133, and supplies the residual information obtained as a result to the addition unit 135.
  • step S134 the motion compensation unit 144 determines whether or not the inter prediction mode information is supplied from the lossless decoding unit 132. If it is determined in step S134 that the inter prediction mode information has been supplied, the process proceeds to step S135.
  • step S135 the information decoding unit 145 generates a motion vector from the motion vector information in units of PUs according to the motion vector encoding mode represented by the inter prediction information supplied from the lossless decoding unit 132. Also, the information decoding unit 145 decodes the encoded enlargement / reduction rate information supplied from the lossless decoding unit 132 in units of PUs, and generates enlargement / reduction rate information. The information decoding unit 145 supplies the enlargement / reduction ratio information and the motion vector to the motion compensation unit 144.
  • step S136 the motion compensation unit 144 is based on the enlargement / reduction ratio and motion vector supplied from the information decoding unit 145, and the inter prediction mode information and reference image specifying information supplied from the lossless decoding unit 132 in units of PUs. Then, motion compensation processing is performed. Details of this motion compensation processing will be described with reference to FIG. After the process of step S136, the process proceeds to step S138.
  • step S134 determines whether the inter prediction mode information is supplied. If it is determined in step S134 that the inter prediction mode information is supplied, that is, if the intra prediction mode information is supplied to the intra prediction unit 143, the process proceeds to step S137.
  • step S137 the intra prediction unit 143 performs intra prediction processing in the intra prediction mode indicated by the intra prediction mode information using the peripheral pixels read from the frame memory 141 via the switch 142 in units of PUs.
  • the intra prediction unit 143 supplies the prediction image generated as a result of the intra prediction process to the addition unit 135 via the switch 146, and the process proceeds to step S138.
  • step S138 the addition unit 135 performs decoding locally by adding the residual information supplied from the inverse orthogonal transform unit 134 and the prediction image supplied from the switch 146.
  • the adding unit 135 supplies an image obtained as a result of decoding to the deblocking filter 136 and the frame memory 141.
  • step S139 the deblock filter 136 performs a deblock filter process on the image supplied from the adder 135 to remove block distortion.
  • the deblocking filter 136 supplies the resulting image to the adaptive offset filter 137.
  • step S140 the adaptive offset filter 137 performs adaptive offset filter processing for each LCU on the image from the deblocking filter 136 based on the offset filter information supplied from the lossless decoding unit 132.
  • the adaptive offset filter 137 supplies the image after the adaptive offset filter processing to the adaptive loop filter 138.
  • step S141 the adaptive loop filter 138 performs adaptive loop filter processing for each LCU on the image supplied from the adaptive offset filter 137 using the filter coefficient supplied from the lossless decoding unit 132.
  • the adaptive loop filter 138 supplies the resulting image to the frame memory 141 and the screen rearrangement buffer 139.
  • step S142 the frame memory 141 stores the image supplied from the adder 135 and the image supplied from the adaptive loop filter 138. Pixels adjacent to the PU in the image that has not been subjected to filter processing accumulated in the frame memory 141 are supplied to the intra prediction unit 143 via the switch 142 as peripheral pixels. On the other hand, the filtered image stored in the frame memory 141 is supplied to the motion compensation unit 144 via the switch 142 as a reference image.
  • step S143 the screen rearrangement buffer 139 stores the image supplied from the adaptive loop filter 138 in units of frames, and rearranges the stored frame-by-frame images for encoding in the original display order. To the D / A converter 140.
  • step S144 the D / A conversion unit 140 performs D / A conversion on the frame-based image supplied from the screen rearrangement buffer 139, and outputs it. Then, the process returns to step S113 in FIG. 21 and ends.
  • FIG. 23 is a flowchart for explaining the details of the motion compensation processing in step S136 of FIG. This motion compensation process is performed in units of PUs.
  • the linear interpolation filter 161 (FIG. 20) of the motion compensation unit 144 acquires reference image specifying information from the lossless decoding unit 132.
  • the linear interpolation filter 161 reads the reference image specified by the reference image specifying information from the frame memory 141 via the switch 142.
  • step S152 the linear interpolation filter 161 increases the resolution of the reference image by performing an interpolation filter process on the read reference image.
  • the linear interpolation filter 161 supplies the high-resolution reference image to the reference image buffer 162 and holds it.
  • step S153 the reference image buffer 162 acquires the enlargement / reduction ratio information from the information decoding unit 145.
  • the reference image buffer 162 reads the reference image held based on the enlargement / reduction ratio information, thereby generating a reference image enlarged or reduced at the enlargement / reduction ratio represented by the enlargement / reduction ratio.
  • the reference image buffer 162 supplies the reference image to the low pass filter 163.
  • step S155 the low-pass filter 163 performs low-pass filter processing on the reference image supplied from the reference image buffer 162 in the horizontal direction and the vertical direction.
  • the low pass filter 163 supplies the reference image after the low pass filter process to the generation unit 164.
  • step S156 the generation unit 164 acquires the inter prediction mode from the lossless decoding unit 132.
  • step S157 the generation unit 164 acquires a motion vector from the information decoding unit 145.
  • step S158 the generation unit 164 performs compensation processing on the reference image supplied from the low-pass filter 163 based on the PU size and the motion vector represented by the inter prediction mode information.
  • the generation unit 164 supplies the predicted image generated as a result to the switch 146 in FIG.
  • the decoding apparatus 110 enlarges or reduces the reference image based on the enlargement / reduction ratio information, and generates a predicted image using the enlarged or reduced reference image. Therefore, it is possible to decode the encoded stream that is encoded by the encoding device 10 so as to improve the encoding efficiency when the image to be encoded is enlarged or reduced.
  • the presence / absence of low-pass filter processing may be controlled in units of PUs or CUs.
  • the low pass filter process can be performed only when the size of the PU or CU is smaller than a predetermined size, that is, when the image quality deterioration due to aliasing distortion is significant.
  • the encoding device 10 transmits information indicating whether low-pass filter processing has been performed to the decoding device 110 in units of PUs or CUs, and the decoding device 110 performs the processing based on the information. Low-pass filter processing is performed on the reference image.
  • the enlargement and reduction of the reference image may be turned on and off in units of pictures.
  • information (enabled_flag) indicating whether to enlarge or reduce the reference image is set in the PPS, and when enabled_flag is 1 indicating that the reference image is enlarged or reduced, an enlargement / reduction rate is set.
  • enabled_flag 1
  • the reference image is enlarged or reduced at the enlargement / reduction ratio set in PPS.
  • the reference image is not enlarged or reduced.
  • the enlargement and reduction of the reference image may be turned on / off in units of slices.
  • enabled_flag is set in the slice header, and when enabled_flag is 1, the enlargement / reduction ratio is set.
  • the enlargement and reduction of the reference image may be turned on / off in units of CUs.
  • the encoded enlargement / reduction ratio information may be transmitted in units of PUs or may be transmitted in units of CUs.
  • the enlargement / reduction rate of the peripheral PU that is the reference destination of the motion vector may be determined as the optimum enlargement / reduction rate of the PU that is the reference source processing target.
  • the encoding device 10 does not transmit the encoding enlargement / reduction rate information, and the decoding device 110 sets the enlargement / reduction rate of the peripheral PU as the enlargement / reduction rate of the processing target PU in the merge mode.
  • the enlargement / reduction ratio is the same in the horizontal direction and the vertical direction, but may be different.
  • the enlargement / reduction ratio may be set independently for each reference direction.
  • the reference direction includes a forward direction in which the encoding order of the reference image is before the encoding target image, and a backward direction in which the encoding order of the reference image is after the encoding target image.
  • the encoding apparatus 10 may transmit the encoded enlargement / reduction ratio information for each reference direction, or the forward direction and the rear direction may be transmitted. Only one of the encoded enlargement / reduction ratio information may be transmitted.
  • the decoding device 110 temporally compares one reference image, the image to be decoded, and the other reference image. Based on the distance and one enlargement / reduction ratio, the other enlargement / reduction ratio is calculated.
  • the decoding apparatus 110 calculates a temporal distance between the encoding target image 181 and the forward reference image 182. Also, the decoding device 110 calculates the temporal distance between the encoding target image 181 and the backward reference image 183.
  • the temporal distance is a difference between POC (Picture (Order Count).
  • the decoding apparatus 110 generates 1 times the value obtained by reversing the sign of the enlargement / reduction rate information when the reference direction is the forward direction, that is, 1 as the enlargement / reduction rate information when the reference direction is the backward direction. To do.
  • FIG. 25 is a block diagram illustrating a configuration example of the encoding unit of the second embodiment of the encoding device to which the present disclosure is applied.
  • the configuration of the encoding unit 200 in FIG. 25 is that the determination unit 49 is not provided, the enlargement / reduction unit 201 is provided, and the frame memory 45, the motion prediction / compensation unit 48, and the lossless encoding unit 36 are used.
  • 2 is different from the configuration of the encoding unit 12 in that a frame memory 202, a motion prediction / compensation unit 203, and a lossless encoding unit 204 are provided.
  • the encoding unit 200 holds a plurality of decoded images having different enlargement / reduction ratios for each decoded image in the frame memory 202, and assigns different reference image specifying information to the decoded images.
  • the enlargement / reduction unit 201 of the encoding unit 200 enlarges or reduces the image supplied from the adaptive loop filter 44 as a reference image candidate based on the enlargement / reduction rate correspondence information set in the PPS,
  • the frame memory 202 is supplied.
  • the enlargement / reduction rate correspondence information is information representing the correspondence between reference image candidate reference image specification information and the reference image candidate enlargement / reduction rate specified by the reference image specification information. This enlargement / reduction ratio may be the same in the horizontal direction and the vertical direction, or may be different.
  • the frame memory 202 stores the image supplied from the enlargement / reduction unit 201 and the image supplied from the addition unit 41. Pixels adjacent to the PU in the image that has not been subjected to the filter processing accumulated in the frame memory 202 are supplied as peripheral pixels to the intra prediction unit 47 via the switch 46. On the other hand, the filtered image stored in the frame memory 202 is output to the motion prediction / compensation unit 203 via the switch 46 as a reference image.
  • the motion prediction / compensation unit 203 performs a motion prediction / compensation process based on the candidate inter prediction mode, the motion vector, and the reference image for each PU. Specifically, the motion prediction / compensation unit 203 reads candidate reference images from the frame memory 202 via the switch 46. The motion prediction / compensation unit 203 increases the resolution of the reference image by performing an interpolation filter process on the reference image.
  • the motion prediction / compensation unit 203 performs compensation processing on the reference image that has been increased in resolution based on the candidate inter prediction mode and the motion vector with fractional pixel accuracy, and generates a predicted image.
  • the motion prediction / compensation unit 203 calculates a cost function value for the combination of the inter prediction mode, the motion vector, and the reference image based on the image and the predicted image supplied from the screen rearrangement buffer 32.
  • the motion prediction / compensation unit 203 determines the inter prediction mode that minimizes the cost function value as the optimal inter prediction mode.
  • the motion prediction / compensation unit 203 determines the motion vector and reference image that minimize the cost function value as the optimal motion vector and reference image. Then, the motion prediction / compensation unit 203 supplies the predicted image and the cost function value in the optimal inter prediction mode to the predicted image selection unit 50.
  • the motion prediction / compensation unit 203 receives the inter prediction mode information, the motion vector information of the optimal motion vector, and The reference image specifying information of the reference image is output to the lossless encoding unit 204.
  • the lossless encoding unit 204 performs lossless encoding on the quantized orthogonal transform coefficient supplied from the quantization unit 35. Further, the lossless encoding unit 204 performs lossless encoding on intra prediction mode information, inter prediction mode information, motion vector information, reference image specifying information, offset filter information, and filter coefficients as encoded information. The lossless encoding unit 204 supplies the encoded information and the orthogonal transform coefficient, which are losslessly encoded, to the accumulation buffer 37 as encoded data, and accumulates them. Note that the losslessly encoded encoding information may be added to the encoded data as a header portion such as a slice header.
  • FIG. 26 is a block diagram illustrating a configuration example of the motion prediction / compensation unit 203 of FIG.
  • the configuration of the motion prediction / compensation unit 203 in FIG. 26 is that a low-pass filter 83 is not provided, and a reference image is used instead of the reference image buffer 82, the generation unit 84, the calculation unit 87, the determination unit 88, and the information encoding unit 89. 4 is different from the configuration of the motion prediction / compensation unit 48 in that a buffer 221, a generation unit 222, a calculation unit 223, a determination unit 224, and an information encoding unit 225 are provided.
  • the reference image buffer 221 holds the reference image supplied from the linear interpolation filter 81.
  • the generating unit 222 performs a compensation process on the reference image held in the reference image buffer 221 based on a candidate motion vector for each PU, and generates a predicted image.
  • the generation unit 222 supplies the predicted image to the calculation unit 223.
  • Candidate motion vectors are the same as in the first embodiment.
  • the calculation unit 223 reads the PU unit image from the PU buffer 86.
  • the calculation unit 223 calculates a cost function value for the combination of the inter prediction mode, the motion vector, and the reference image based on the read image and the predicted image.
  • the calculation unit 223 supplies the cost function value, the corresponding inter prediction mode, the motion vector, the combination of the reference image, and the prediction image to the determination unit 224.
  • the determination unit 224 determines the inter prediction mode when the cost function value supplied from the calculation unit 223 is minimum as the optimal inter prediction mode, and determines the motion vector and the reference image as the optimal motion vector and the reference image.
  • the determination unit 224 supplies the prediction image and the cost function value in the optimal inter prediction mode to the prediction image selection unit 50 in FIG.
  • the prediction image selection unit 50 notifies the selection of the prediction image generated in the optimal inter prediction mode
  • the determination unit 224 determines the optimal inter prediction mode, the optimal motion vector, and the reference image specifying information of the reference image. Is supplied to the information encoding unit 225.
  • the information encoding unit 225 generates the motion vector information of the PU to be processed, similar to the information encoding unit 89 in FIG.
  • the information encoding unit 225 supplies the optimal inter prediction mode, motion vector information, and reference image specifying information to the lossless encoding unit 204 in FIG.
  • the intra prediction unit 47 performs intra prediction processing for all candidate intra prediction modes in units of PUs. Further, the intra prediction unit 47 calculates cost function values for all candidate intra prediction modes based on the image read from the screen rearrangement buffer 32 and the prediction image generated as a result of the intra prediction process. Is calculated. Then, the intra prediction unit 47 determines the intra prediction mode that minimizes the cost function value as the optimal intra prediction mode. The intra prediction unit 47 supplies the predicted image generated in the optimal intra prediction mode and the corresponding cost function value to the predicted image selection unit 50.
  • the motion prediction / compensation unit 203 performs a motion prediction / compensation process based on the candidate inter prediction mode, motion vector, and reference image in units of PUs. Details of the motion prediction / compensation processing will be described with reference to FIG. 29 described later.
  • step S175 the information encoding unit 225 (FIG. 26) of the motion prediction / compensation unit 203 generates motion vector information in accordance with the motion vector encoding mode.
  • step S176 the information encoding unit 225 supplies the inter prediction mode information, the motion vector information, and the reference image specifying information to the lossless encoding unit 204, and the process proceeds to step S178.
  • steps S177 to S186 Since the processing of steps S177 to S186 is the same as the processing of steps S37 to S46 of FIGS. 15 and 16, description thereof will be omitted.
  • step S187 the enlargement / reduction unit 201 enlarges or reduces the image supplied from the adaptive loop filter 44 as a reference image candidate based on the enlargement / reduction rate correspondence information set in the PPS. Specifically, the enlargement / reduction unit 201 sets all the enlargement / reduction rates associated with a plurality of pieces of reference image specifying information for specifying images supplied from the adaptive loop filter 44 in the enlargement / reduction rate correspondence information. The image scaling rate.
  • the enlargement / reduction unit 201 When the enlargement / reduction ratio is an enlargement ratio, the enlargement / reduction unit 201 generates one pixel in the image supplied from the adaptive loop filter 44 as a plurality of pixels constituting the enlarged image. In addition, when the enlargement / reduction ratio is the reduction ratio, the enlargement / reduction unit 201 selects one pixel in an area composed of a plurality of pixels of the image supplied from the adaptive loop filter 44 after the reduction corresponding to the area. Generated as image pixels. Then, the enlargement / reduction unit 201 supplies the enlarged image or the reduced image to the frame memory 202.
  • step S188 the frame memory 202 accumulates the image supplied from the enlargement / reduction unit 201 and the image supplied from the addition unit 41. Pixels adjacent to the PU in the image that has not been subjected to the filter processing accumulated in the frame memory 202 are supplied as peripheral pixels to the intra prediction unit 47 via the switch 46. On the other hand, the filtered image stored in the frame memory 202 is output to the motion prediction / compensation unit 203 via the switch 46 as a reference image.
  • steps S189 through S193 is the same as the processing in steps S48 through S52 in FIG.
  • FIG. 29 is a flowchart for explaining the details of the motion prediction / compensation processing in step S172 of FIG.
  • step S208 the calculation unit 223 reads the PU unit image from the PU buffer 86, and calculates the cost function value based on the image and the predicted image.
  • the calculation unit 223 supplies the cost function value and the predicted image to the determination unit 224.
  • the calculation unit 223 also performs inter prediction that represents the reference image and motion vector determined in steps S201 and S206, the motion vector encoding mode corresponding to the motion vector, and the PU size determined in step S202.
  • the combination of modes is supplied to the determination unit 224.
  • steps S209 to S211 Since the processing of steps S209 to S211 is the same as the processing of steps S82, S83, and S85, description thereof will be omitted.
  • step S212 the determination unit 224 determines the inter prediction mode when the cost function value supplied from the calculation unit 223 is minimum as the optimal inter prediction mode. In addition, the determination unit 224 determines the motion vector and reference image when the cost function value is minimum as the optimal motion vector and reference image.
  • step S213 the determination unit 224 supplies the cost function value and the prediction image in the optimal inter prediction mode to the prediction image selection unit 50 in FIG.
  • the encoding unit 200 enlarges or reduces a decoded image that is a reference image candidate based on the enlargement / reduction ratio correspondence information, and uses the enlarged or reduced decoded image as a reference image to generate a predicted image. Generate. Therefore, the prediction accuracy when the image to be encoded is enlarged or reduced is improved, and the encoding efficiency is improved.
  • FIG. 30 is a block diagram illustrating a configuration example of a decoding unit according to the second embodiment of the decoding device to which the present disclosure is applied.
  • the 30 includes a lossless decoding unit 132, an information decoding unit 145, a frame memory 141, and a motion compensation unit 144 instead of the lossless decoding unit 241, the information decoding unit 242, the frame memory 244, and the motion compensation unit 245. Is different from the configuration of the decoding unit 113 in FIG. 19 in that the point is provided and the point that the enlargement / reduction unit 243 is newly provided.
  • the lossless decoding unit 241 performs quantized orthogonality by performing lossless decoding corresponding to the lossless encoding of the lossless encoding unit 204 of FIG. 25 on the encoded data from the accumulation buffer 131. Obtain transform coefficients and encoding information.
  • the lossless decoding unit 241 supplies the quantized orthogonal transform coefficient to the inverse quantization unit 133.
  • the lossless decoding unit 241 supplies intra prediction mode information as encoded information to the intra prediction unit 143.
  • the lossless decoding unit 241 supplies the inter prediction mode information and the reference image specifying information to the motion compensation unit 245, and supplies the inter prediction mode information and the motion vector information to the information decoding unit 242.
  • the information decoding unit 242 Similarly to the information decoding unit 145 in FIG. 19, the information decoding unit 242 generates a motion vector of the PU to be processed based on the motion vector encoding mode represented by the inter prediction information supplied from the lossless decoding unit 241. . The information decoding unit 242 supplies the generated motion vector to the motion compensation unit 245.
  • the enlargement / reduction unit 243 enlarges or reduces the image supplied from the adaptive loop filter 138 based on the enlargement / reduction rate correspondence information included in the PPS supplied from the extraction unit 112 in FIG. 18 and supplies the image to the frame memory 244. .
  • the frame memory 244 stores the image supplied from the enlargement / reduction unit 243 and the image supplied from the addition unit 135. Pixels adjacent to the PU in the image that has not been subjected to filter processing accumulated in the frame memory 244 are supplied to the intra prediction unit 143 via the switch 142 as peripheral pixels. On the other hand, the filtered image stored in the frame memory 244 is supplied as a reference image to the motion compensation unit 245 via the switch 142.
  • the motion compensation unit 245 performs motion compensation processing in units of PUs based on the motion vector supplied from the information decoding unit 242 and the inter prediction mode information and reference image specifying information supplied from the lossless decoding unit 241. Specifically, the motion compensation unit 245 reads the reference image specified by the reference image specifying information supplied from the lossless decoding unit 241 from the frame memory 244 via the switch 142. The motion compensation unit 245 increases the resolution of the reference image by performing an interpolation filter process on the reference image. Based on the motion vector supplied from the information decoding unit 242 and the size of the PU represented by the inter prediction mode information, the motion compensation unit 245 generates a prediction image using the reference image that has been increased in resolution. The motion compensation unit 245 supplies the predicted image to the switch 146.
  • FIG. 31 is a block diagram illustrating a configuration example of the motion compensation unit 245 of FIG.
  • FIG. 31 differs from the configuration of the motion compensation unit 144 in FIG. 20 in that a reference image buffer 261 is provided instead of the reference image buffer 162.
  • the reference image buffer 261 of the motion compensation unit 245 holds the reference image supplied from the linear interpolation filter 161. This reference image is subjected to compensation processing in the generation unit 164.
  • FIG. 32 is a flowchart illustrating the decoding process of the decoding unit 240 in FIG.
  • the accumulation buffer 131 of the decoding unit 240 receives and accumulates encoded data in units of frames from the extraction unit 112 of FIG.
  • the accumulation buffer 131 supplies the accumulated encoded data to the lossless decoding unit 241.
  • step S231 the lossless decoding unit 241 performs lossless decoding of the encoded data from the accumulation buffer 131, and obtains quantized orthogonal transform coefficients and encoded information.
  • the lossless decoding unit 241 supplies the quantized orthogonal transform coefficient to the inverse quantization unit 133.
  • the lossless decoding unit 241 supplies intra prediction mode information as encoded information to the intra prediction unit 143.
  • the lossless decoding unit 241 supplies the inter prediction mode information and the reference image specifying information to the motion compensation unit 144, and supplies the inter prediction mode information and the motion vector information to the information decoding unit 242.
  • the lossless decoding unit 241 supplies intra prediction mode information or inter prediction mode information as encoded information to the switch 146.
  • the lossless decoding unit 241 supplies offset filter information as encoded information to the adaptive offset filter 137 and supplies filter coefficients to the adaptive loop filter 138.
  • step S235 the information decoding unit 242 generates a motion vector of the PU to be processed based on the motion vector encoding mode represented by the inter prediction information supplied from the lossless decoding unit 241.
  • step S236 the motion compensation unit 245 performs motion compensation on a PU basis based on the motion vector supplied from the information decoding unit 242 and the inter prediction mode information and reference image specifying information supplied from the lossless decoding unit 241. Process. Details of this motion compensation processing will be described with reference to FIG. 33 described later.
  • steps S237 to S241 Since the processing of steps S237 to S241 is the same as the processing of steps S137 to S141 in FIG. 32, description thereof is omitted.
  • step S242 the enlargement / reduction unit 243 enlarges or reduces the image supplied from the adaptive loop filter 138 based on the enlargement / reduction rate correspondence information included in the PPS supplied from the extraction unit 112 in FIG. 244.
  • step S243 the frame memory 244 stores the image supplied from the adder 135 and the image supplied from the enlargement / reduction unit 243. Pixels adjacent to the PU in the image that has not been subjected to filter processing accumulated in the frame memory 244 are supplied to the intra prediction unit 143 via the switch 142 as peripheral pixels. On the other hand, the filtered image stored in the frame memory 244 is supplied as a reference image to the motion compensation unit 144 via the switch 142.
  • steps S244 and S245 are the same as the processes of steps S143 and S144 in FIG.
  • FIG. 33 is a flowchart for explaining the details of the motion compensation processing in step S236 of FIG.
  • the decoding unit 240 enlarges or reduces a decoded image that is a reference image candidate based on the enlargement / reduction ratio correspondence information, and generates a predicted image using the enlarged or reduced decoded image as a reference image. . Therefore, it is possible to decode the encoded stream that is encoded by the encoding device 10 including the encoding unit 200 so as to improve the encoding efficiency when the encoding target image is enlarged or reduced.
  • low-pass filter processing may be performed on an enlarged or reduced image.
  • ⁇ Third Embodiment> (Description of computer to which the present disclosure is applied)
  • the series of processes described above can be executed by hardware or can be executed by software.
  • a program constituting the software is installed in the computer.
  • the computer includes, for example, a general-purpose personal computer capable of executing various functions by installing various programs by installing a computer incorporated in dedicated hardware.
  • FIG. 34 is a block diagram showing an example of the hardware configuration of a computer that executes the above-described series of processing by a program.
  • a CPU Central Processing Unit
  • ROM Read Only Memory
  • RAM Random Access Memory
  • An input / output interface 505 is further connected to the bus 504.
  • An input unit 506, an output unit 507, a storage unit 508, a communication unit 509, and a drive 510 are connected to the input / output interface 505.
  • the input unit 506 includes a keyboard, a mouse, a microphone, and the like.
  • the output unit 507 includes a display, a speaker, and the like.
  • the storage unit 508 includes a hard disk, a nonvolatile memory, and the like.
  • the communication unit 509 includes a network interface or the like.
  • the drive 510 drives a removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory.
  • the CPU 501 loads the program stored in the storage unit 508 to the RAM 503 via the input / output interface 505 and the bus 504 and executes the program. A series of processing is performed.
  • the program executed by the computer 500 can be provided by being recorded on a removable medium 511 as a package medium, for example.
  • the program can be provided via a wired or wireless transmission medium such as a local area network, the Internet, or digital satellite broadcasting.
  • the program can be installed in the storage unit 508 via the input / output interface 505 by installing the removable medium 511 in the drive 510. Further, the program can be received by the communication unit 509 via a wired or wireless transmission medium and installed in the storage unit 508. In addition, the program can be installed in the ROM 502 or the storage unit 508 in advance.
  • the program executed by the computer 500 may be a program that is processed in time series in the order described in this specification, or a necessary timing such as in parallel or when a call is made. It may be a program in which processing is performed.
  • FIG. 35 shows an example of a multi-view image encoding method.
  • the multi-viewpoint image includes images of a plurality of viewpoints (views). Multiple views of this multi-viewpoint image are encoded using the base view that encodes and decodes using only the image of its own view without using the image of the other view, and the image of the other view.
  • -It consists of a non-base view that performs decoding. For the non-base view, an image of the base view may be used, or an image of another non-base view may be used.
  • each view image is encoded / decoded.
  • the first and second embodiments described above are used. You may make it apply a method. By doing so, it is possible to improve the encoding efficiency when the image to be encoded is enlarged or reduced.
  • flags and parameters used in the methods of the first and second embodiments described above may be shared. More specifically, for example, mvd_coding, PPS syntax elements, and the like may be shared in encoding / decoding of each view. Of course, other necessary information may be shared in encoding / decoding of each view.
  • FIG. 36 is a diagram illustrating a multi-view image encoding apparatus that performs the above-described multi-view image encoding.
  • the multi-view image encoding apparatus 600 includes an encoding unit 601, an encoding unit 602, and a multiplexing unit 603.
  • the cocoon encoding unit 601 encodes the base view image and generates a base view image encoded stream.
  • the encoding unit 602 encodes the non-base view image and generates a non-base view image encoded stream.
  • the multiplexing unit 603 multiplexes the base view image encoded stream generated by the encoding unit 601 and the non-base view image encoded stream generated by the encoding unit 602 to generate a multi-view image encoded stream. To do.
  • the first and second embodiments of the encoding device can be applied to the encoding unit 601 and the encoding unit 602 of the multi-view image encoding device 600. That is, in the encoding for each view, it is possible to improve the encoding efficiency when the image to be encoded is enlarged or reduced. Also, the encoding unit 601 and the encoding unit 602 can perform encoding using the same flags and parameters (for example, syntax elements related to processing between images) (that is, share the flags and parameters). Therefore, it is possible to suppress a reduction in encoding efficiency.
  • flags and parameters for example, syntax elements related to processing between images
  • FIG. 37 is a diagram illustrating a multi-view image decoding apparatus that performs the above-described multi-view image decoding.
  • the multi-view image decoding device 610 includes a demultiplexing unit 611, a decoding unit 612, and a decoding unit 613.
  • the demultiplexing unit 611 demultiplexes the multi-view image encoded stream in which the base view image encoded stream and the non-base view image encoded stream are multiplexed, and the base view image encoded stream and the non-base view image The encoded stream is extracted.
  • the decoding unit 612 decodes the base view image encoded stream extracted by the demultiplexing unit 611 to obtain a base view image.
  • the decoding unit 613 decodes the non-base view image encoded stream extracted by the demultiplexing unit 611 to obtain a non-base view image.
  • the first and second embodiments of the decoding device can be applied to the decoding unit 612 and the decoding unit 613 of the multi-view image decoding device 610. That is, in decoding for each view, it is possible to decode an encoded stream that has been encoded so as to improve encoding efficiency when an image to be encoded is enlarged or reduced.
  • the decoding unit 612 and the decoding unit 613 can perform decoding using the same flags and parameters (for example, syntax elements related to processing between images) (that is, the flags and parameters can be shared). Therefore, it is possible to suppress a reduction in encoding efficiency.
  • FIG. 38 shows an example of a hierarchical image encoding method.
  • Hierarchical image coding is a method in which image data is divided into a plurality of layers (hierarchized) so as to have a scalable function with respect to a predetermined parameter, and is encoded for each layer.
  • Hierarchical image decoding is decoding corresponding to the hierarchical image encoding.
  • the hierarchized image includes images of a plurality of hierarchies (layers) having different predetermined parameter values.
  • a plurality of layers of this hierarchical image are encoded / decoded using only the image of the own layer without using the image of the other layer, and encoded / decoded using the image of the other layer.
  • It consists of a non-base layer (also called enhancement layer) that performs decoding.
  • the non-base layer an image of the base layer may be used, or an image of another non-base layer may be used.
  • the non-base layer is composed of difference image data (difference data) between its own image and an image of another layer so that redundancy is reduced.
  • difference image data difference data
  • an image with lower quality than the original image can be obtained using only the base layer data.
  • an original image that is, a high-quality image
  • image compression information of only the base layer (base layer) is transmitted, and a moving image with low spatiotemporal resolution or poor image quality is reproduced.
  • image enhancement information of the enhancement layer is transmitted.
  • Image compression information corresponding to the capabilities of the terminal and the network can be transmitted from the server without performing transcoding processing, such as playing a moving image with high image quality.
  • the image of each layer is encoded / decoded.
  • the first and second embodiments described above are used. The method may be applied. By doing so, it is possible to improve the encoding efficiency when the image to be encoded is enlarged or reduced.
  • the flags and parameters used in the methods of the first and second embodiments described above may be shared. More specifically, for example, mvd_coding, PPS syntax elements, and the like may be shared in encoding / decoding of each layer. Of course, other necessary information may be shared in encoding / decoding of each layer.
  • parameters having a scalable function are arbitrary.
  • the spatial resolution as shown in FIG. 39 may be used as the parameter (spatial scalability).
  • the resolution of the image is different for each layer. That is, in this case, as shown in FIG. 39, each picture has two layers of a base layer having a spatially lower resolution than the original image and an enhancement layer in which the original spatial resolution is obtained by combining with the base layer. Is layered.
  • this number of hierarchies is an example, and the number of hierarchies can be hierarchized.
  • a temporal resolution as shown in FIG. 40 may be applied (temporal scalability).
  • the frame rate is different for each layer. That is, in this case, as shown in FIG. 40, each picture is divided into two layers of a base layer having a lower frame rate than the original moving image and an enhancement layer in which the original frame rate is obtained by combining with the base layer. Layered.
  • this number of hierarchies is an example, and the number of hierarchies can be hierarchized.
  • a signal-to-noise ratio (SNR (Signal to Noise ratio)) may be applied (SNR ⁇ ⁇ scalability) as a parameter for providing such scalability.
  • SNR Signal-to-noise ratio
  • the SN ratio is different for each layer. That is, in this case, as shown in FIG. 41, each picture is hierarchized into two layers: a base layer having a lower SNR than the original image, and an enhancement layer from which the original SNR is obtained by combining with the base layer.
  • this number of hierarchies is an example, and the number of hierarchies can be hierarchized.
  • bit depth can also be used as a parameter for providing scalability (bit-depth scalability).
  • bit-depth scalability bit depth scalability
  • the bit depth differs for each layer.
  • the base layer is composed of an 8-bit image, and an enhancement layer is added to the base layer, whereby a 10-bit image can be obtained.
  • a chroma format can be used as a parameter for providing scalability (chroma scalability).
  • the chroma format differs for each layer.
  • the base layer is composed of component images in 4: 2: 0 format, and by adding an enhancement layer (enhancement layer) to this, a component image in 4: 2: 2 format can be obtained. Can be.
  • FIG. 42 is a diagram illustrating a hierarchical image encoding apparatus that performs the hierarchical image encoding described above.
  • the hierarchical image encoding device 620 includes an encoding unit 621, an encoding unit 622, and a multiplexing unit 623.
  • the cocoon encoding unit 621 encodes the base layer image and generates a base layer image encoded stream.
  • the encoding unit 622 encodes the non-base layer image and generates a non-base layer image encoded stream.
  • the multiplexing unit 623 multiplexes the base layer image encoded stream generated by the encoding unit 621 and the non-base layer image encoded stream generated by the encoding unit 622 to generate a hierarchical image encoded stream. .
  • the first and second embodiments of the encoding device can be applied to the encoding unit 621 and the encoding unit 622 of the hierarchical image encoding device 620. That is, in the encoding for each layer, it is possible to improve the encoding efficiency when the image to be encoded is enlarged or reduced. Also, the encoding unit 621 and the encoding unit 622 can perform control of intra prediction filter processing using the same flags and parameters (for example, syntax elements related to processing between images) (that is, the intra prediction processing). Therefore, it is possible to share a flag and a parameter), and it is possible to suppress a reduction in encoding efficiency.
  • flags and parameters for example, syntax elements related to processing between images
  • FIG. 43 is a diagram illustrating a hierarchical image decoding apparatus that performs the above-described hierarchical image decoding.
  • the hierarchical image decoding device 630 includes a demultiplexing unit 631, a decoding unit 632, and a decoding unit 633.
  • the demultiplexing unit 631 demultiplexes the hierarchical image encoded stream in which the base layer image encoded stream and the non-base layer image encoded stream are multiplexed, and the base layer image encoded stream and the non-base layer image code Stream.
  • the decoding unit 632 decodes the base layer image encoded stream extracted by the demultiplexing unit 631 to obtain a base layer image.
  • the decoding unit 633 decodes the non-base layer image encoded stream extracted by the demultiplexing unit 631 to obtain a non-base layer image.
  • the first and second embodiments of the decoding device can be applied to the decoding unit 632 and the decoding unit 633 of the hierarchical image decoding device 630. That is, in the decoding for each layer, it is possible to decode an encoded stream that has been encoded so as to improve the encoding efficiency when the image to be encoded is enlarged or reduced.
  • the decoding unit 612 and the decoding unit 613 can perform decoding using the same flags and parameters (for example, syntax elements related to processing between images) (that is, the flags and parameters can be shared). Therefore, it is possible to suppress a reduction in encoding efficiency.
  • FIG. 44 illustrates a schematic configuration of a television apparatus to which the present technology is applied.
  • the television apparatus 900 includes an antenna 901, a tuner 902, a demultiplexer 903, a decoder 904, a video signal processing unit 905, a display unit 906, an audio signal processing unit 907, a speaker 908, and an external interface unit 909. Furthermore, the television apparatus 900 includes a control unit 910, a user interface unit 911, and the like.
  • the tuner 902 selects a desired channel from the broadcast wave signal received by the antenna 901, demodulates it, and outputs the obtained encoded bit stream to the demultiplexer 903.
  • the demultiplexer 903 extracts video and audio packets of the program to be viewed from the encoded bit stream, and outputs the extracted packet data to the decoder 904. Further, the demultiplexer 903 supplies a packet of data such as EPG (Electronic Program Guide) to the control unit 910. If scrambling is being performed, descrambling is performed by a demultiplexer or the like.
  • EPG Electronic Program Guide
  • the decoder 904 performs packet decoding processing, and outputs video data generated by the decoding processing to the video signal processing unit 905 and audio data to the audio signal processing unit 907.
  • the video signal processing unit 905 performs noise removal, video processing according to user settings, and the like on the video data.
  • the video signal processing unit 905 generates video data of a program to be displayed on the display unit 906, image data by processing based on an application supplied via a network, and the like.
  • the video signal processing unit 905 generates video data for displaying a menu screen for selecting an item and the like, and superimposes the video data on the video data of the program.
  • the video signal processing unit 905 generates a drive signal based on the video data generated in this way, and drives the display unit 906.
  • the display unit 906 drives a display device (for example, a liquid crystal display element or the like) based on a drive signal from the video signal processing unit 905 to display a program video or the like.
  • a display device for example, a liquid crystal display element or the like
  • the audio signal processing unit 907 performs predetermined processing such as noise removal on the audio data, performs D / A conversion processing and amplification processing on the processed audio data, and outputs the audio data to the speaker 908.
  • the external interface unit 909 is an interface for connecting to an external device or a network, and transmits and receives data such as video data and audio data.
  • a user interface unit 911 is connected to the control unit 910.
  • the user interface unit 911 includes an operation switch, a remote control signal receiving unit, and the like, and supplies an operation signal corresponding to a user operation to the control unit 910.
  • the control unit 910 is configured using a CPU (Central Processing Unit), a memory, and the like.
  • the memory stores a program executed by the CPU, various data necessary for the CPU to perform processing, EPG data, data acquired via a network, and the like.
  • the program stored in the memory is read and executed by the CPU at a predetermined timing such as when the television device 900 is activated.
  • the CPU executes each program to control each unit so that the television device 900 operates in accordance with the user operation.
  • the television device 900 includes a bus 912 for connecting the tuner 902, the demultiplexer 903, the video signal processing unit 905, the audio signal processing unit 907, the external interface unit 909, and the control unit 910.
  • the decoder 904 is provided with the function of the decoding apparatus (decoding method) of the present application. Therefore, it is possible to decode an encoded stream that has been encoded so as to improve the encoding efficiency when an image to be encoded is enlarged or reduced.
  • FIG. 45 illustrates a schematic configuration of a mobile phone to which the present technology is applied.
  • the cellular phone 920 includes a communication unit 922, an audio codec 923, a camera unit 926, an image processing unit 927, a demultiplexing unit 928, a recording / reproducing unit 929, a display unit 930, and a control unit 931. These are connected to each other via a bus 933.
  • an antenna 921 is connected to the communication unit 922, and a speaker 924 and a microphone 925 are connected to the audio codec 923. Further, an operation unit 932 is connected to the control unit 931.
  • the mobile phone 920 performs various operations such as transmission / reception of voice signals, transmission / reception of e-mail and image data, image shooting, and data recording in various modes such as a voice call mode and a data communication mode.
  • the voice signal generated by the microphone 925 is converted into voice data and compressed by the voice codec 923 and supplied to the communication unit 922.
  • the communication unit 922 performs audio data modulation processing, frequency conversion processing, and the like to generate a transmission signal.
  • the communication unit 922 supplies a transmission signal to the antenna 921 and transmits it to a base station (not shown).
  • the communication unit 922 performs amplification, frequency conversion processing, demodulation processing, and the like of the reception signal received by the antenna 921, and supplies the obtained audio data to the audio codec 923.
  • the audio codec 923 performs data expansion of the audio data and conversion into an analog audio signal and outputs the result to the speaker 924.
  • the control unit 931 receives character data input by operating the operation unit 932 and displays the input characters on the display unit 930.
  • the control unit 931 generates mail data based on a user instruction or the like in the operation unit 932 and supplies the mail data to the communication unit 922.
  • the communication unit 922 performs mail data modulation processing, frequency conversion processing, and the like, and transmits the obtained transmission signal from the antenna 921.
  • the communication unit 922 performs amplification, frequency conversion processing, demodulation processing, and the like of the reception signal received by the antenna 921, and restores mail data. This mail data is supplied to the display unit 930 to display the mail contents.
  • the mobile phone 920 can also store the received mail data in a storage medium by the recording / playback unit 929.
  • the storage medium is any rewritable storage medium.
  • the storage medium is a removable memory such as a RAM, a semiconductor memory such as a built-in flash memory, a hard disk, a magnetic disk, a magneto-optical disk, an optical disk, a USB (Universal Serial Bus) memory, or a memory card.
  • the image data generated by the camera unit 926 is supplied to the image processing unit 927.
  • the image processing unit 927 performs encoding processing of image data and generates encoded data.
  • the demultiplexing unit 928 multiplexes the encoded data generated by the image processing unit 927 and the audio data supplied from the audio codec 923 by a predetermined method, and supplies the multiplexed data to the communication unit 922.
  • the communication unit 922 performs modulation processing and frequency conversion processing of multiplexed data, and transmits the obtained transmission signal from the antenna 921.
  • the communication unit 922 performs amplification, frequency conversion processing, demodulation processing, and the like of the reception signal received by the antenna 921, and restores multiplexed data. This multiplexed data is supplied to the demultiplexing unit 928.
  • the demultiplexing unit 928 performs demultiplexing of the multiplexed data, and supplies the encoded data to the image processing unit 927 and the audio data to the audio codec 923.
  • the image processing unit 927 performs a decoding process on the encoded data to generate image data.
  • the image data is supplied to the display unit 930 and the received image is displayed.
  • the audio codec 923 converts the audio data into an analog audio signal, supplies the analog audio signal to the speaker 924, and outputs the received audio.
  • the image processing unit 927 is provided with the functions of the encoding device and the decoding device (encoding method and decoding method) of the present application. For this reason, it is possible to improve the encoding efficiency when the image to be encoded is enlarged or reduced. Also, it is possible to decode an encoded stream that has been encoded so as to improve encoding efficiency when an image to be encoded is enlarged or reduced.
  • FIG. 46 illustrates a schematic configuration of a recording / reproducing apparatus to which the present technology is applied.
  • the recording / reproducing apparatus 940 records, for example, audio data and video data of a received broadcast program on a recording medium, and provides the recorded data to the user at a timing according to a user instruction.
  • the recording / reproducing device 940 can also acquire audio data and video data from another device, for example, and record them on a recording medium. Further, the recording / reproducing apparatus 940 decodes and outputs the audio data and video data recorded on the recording medium, thereby enabling image display and audio output on the monitor apparatus or the like.
  • the recording / reproducing apparatus 940 includes a tuner 941, an external interface unit 942, an encoder 943, an HDD (Hard Disk Drive) unit 944, a disk drive 945, a selector 946, a decoder 947, an OSD (On-Screen Display) unit 948, a control unit 949, A user interface unit 950 is included.
  • Tuner 941 selects a desired channel from a broadcast signal received by an antenna (not shown).
  • the tuner 941 outputs an encoded bit stream obtained by demodulating the received signal of a desired channel to the selector 946.
  • the external interface unit 942 includes at least one of an IEEE 1394 interface, a network interface unit, a USB interface, a flash memory interface, and the like.
  • the external interface unit 942 is an interface for connecting to an external device, a network, a memory card, and the like, and receives data such as video data and audio data to be recorded.
  • the encoder 943 performs encoding by a predetermined method when the video data and audio data supplied from the external interface unit 942 are not encoded, and outputs an encoded bit stream to the selector 946.
  • the HDD unit 944 records content data such as video and audio, various programs, and other data on a built-in hard disk, and reads them from the hard disk during playback.
  • the disk drive 945 records and reproduces signals with respect to the mounted optical disk.
  • An optical disk such as a DVD disk (DVD-Video, DVD-RAM, DVD-R, DVD-RW, DVD + R, DVD + RW, etc.), a Blu-ray (registered trademark) disk, or the like.
  • the selector 946 selects one of the encoded bit streams from the tuner 941 or the encoder 943 and supplies it to either the HDD unit 944 or the disk drive 945 when recording video or audio. Further, the selector 946 supplies the encoded bit stream output from the HDD unit 944 or the disk drive 945 to the decoder 947 at the time of reproduction of video and audio.
  • the decoder 947 performs a decoding process on the encoded bit stream.
  • the decoder 947 supplies the video data generated by performing the decoding process to the OSD unit 948.
  • the decoder 947 outputs audio data generated by performing the decoding process.
  • the OSD unit 948 generates video data for displaying a menu screen for selecting an item and the like, and superimposes it on the video data output from the decoder 947 and outputs the video data.
  • a user interface unit 950 is connected to the control unit 949.
  • the user interface unit 950 includes an operation switch, a remote control signal receiving unit, and the like, and supplies an operation signal corresponding to a user operation to the control unit 949.
  • the control unit 949 is configured using a CPU, a memory, and the like.
  • the memory stores programs executed by the CPU and various data necessary for the CPU to perform processing.
  • the program stored in the memory is read and executed by the CPU at a predetermined timing such as when the recording / reproducing apparatus 940 is activated.
  • the CPU executes the program to control each unit so that the recording / reproducing device 940 operates according to the user operation.
  • the decoder 947 is provided with the function of the decoding apparatus (decoding method) of the present application. Therefore, it is possible to decode an encoded stream that has been encoded so as to improve the encoding efficiency when an image to be encoded is enlarged or reduced.
  • FIG. 47 illustrates a schematic configuration of an imaging apparatus to which the present technology is applied.
  • the imaging device 960 images a subject, displays an image of the subject on a display unit, and records it on a recording medium as image data.
  • the imaging device 960 includes an optical block 961, an imaging unit 962, a camera signal processing unit 963, an image data processing unit 964, a display unit 965, an external interface unit 966, a memory unit 967, a media drive 968, an OSD unit 969, and a control unit 970. Have. In addition, a user interface unit 971 is connected to the control unit 970. Furthermore, the image data processing unit 964, the external interface unit 966, the memory unit 967, the media drive 968, the OSD unit 969, the control unit 970, and the like are connected via a bus 972.
  • the optical block 961 is configured using a focus lens, a diaphragm mechanism, and the like.
  • the optical block 961 forms an optical image of the subject on the imaging surface of the imaging unit 962.
  • the imaging unit 962 is configured using a CCD or CMOS image sensor, generates an electrical signal corresponding to the optical image by photoelectric conversion, and supplies the electrical signal to the camera signal processing unit 963.
  • the camera signal processing unit 963 performs various camera signal processing such as knee correction, gamma correction, and color correction on the electrical signal supplied from the imaging unit 962.
  • the camera signal processing unit 963 supplies the image data after the camera signal processing to the image data processing unit 964.
  • the image data processing unit 964 performs an encoding process on the image data supplied from the camera signal processing unit 963.
  • the image data processing unit 964 supplies the encoded data generated by performing the encoding process to the external interface unit 966 and the media drive 968. Further, the image data processing unit 964 performs a decoding process on the encoded data supplied from the external interface unit 966 and the media drive 968.
  • the image data processing unit 964 supplies the image data generated by performing the decoding process to the display unit 965. Further, the image data processing unit 964 superimposes the processing for supplying the image data supplied from the camera signal processing unit 963 to the display unit 965 and the display data acquired from the OSD unit 969 on the image data. To supply.
  • the OSD unit 969 generates display data such as a menu screen and icons made up of symbols, characters, or figures and outputs them to the image data processing unit 964.
  • the external interface unit 966 includes, for example, a USB input / output terminal, and is connected to a printer when printing an image.
  • a drive is connected to the external interface unit 966 as necessary, a removable medium such as a magnetic disk or an optical disk is appropriately mounted, and a computer program read from them is installed as necessary.
  • the external interface unit 966 has a network interface connected to a predetermined network such as a LAN or the Internet.
  • the control unit 970 reads encoded data from the media drive 968 in accordance with an instruction from the user interface unit 971, and supplies the encoded data to the other device connected via the network from the external interface unit 966. it can.
  • the control unit 970 may acquire encoded data and image data supplied from another device via the network via the external interface unit 966 and supply the acquired data to the image data processing unit 964. it can.
  • any readable / writable removable medium such as a magnetic disk, a magneto-optical disk, an optical disk, or a semiconductor memory is used.
  • the recording medium may be any type of removable medium, and may be a tape device, a disk, or a memory card. Of course, a non-contact IC (Integrated Circuit) card may be used.
  • media drive 968 and the recording medium may be integrated and configured by a non-portable storage medium such as a built-in hard disk drive or an SSD (Solid State Drive).
  • a non-portable storage medium such as a built-in hard disk drive or an SSD (Solid State Drive).
  • the control unit 970 is configured using a CPU.
  • the memory unit 967 stores a program executed by the control unit 970, various data necessary for the control unit 970 to perform processing, and the like.
  • the program stored in the memory unit 967 is read and executed by the control unit 970 at a predetermined timing such as when the imaging device 960 is activated.
  • the control unit 970 controls each unit so that the imaging device 960 performs an operation according to a user operation by executing a program.
  • the image data processing unit 964 is provided with the functions of the encoding apparatus and decoding apparatus (encoding method and decoding method) of the present application. For this reason, it is possible to improve the encoding efficiency when the image to be encoded is enlarged or reduced. Also, it is possible to decode an encoded stream that has been encoded so as to improve encoding efficiency when an image to be encoded is enlarged or reduced.
  • scalable coding is used for selection of data to be transmitted, for example, as in the example shown in FIG.
  • the distribution server 1002 reads the scalable encoded data stored in the scalable encoded data storage unit 1001, and via the network 1003, the personal computer 1004, the AV device 1005, the tablet This is distributed to the terminal device such as the device 1006 and the mobile phone 1007.
  • the distribution server 1002 selects and transmits encoded data of appropriate quality according to the capability of the terminal device, the communication environment, and the like. Even if the distribution server 1002 transmits unnecessarily high-quality data, the terminal device does not always obtain a high-quality image, and may cause a delay or an overflow. Moreover, there is a possibility that the communication band is unnecessarily occupied or the load on the terminal device is unnecessarily increased. On the other hand, even if the distribution server 1002 transmits unnecessarily low quality data, there is a possibility that an image with sufficient image quality cannot be obtained in the terminal device. Therefore, the distribution server 1002 appropriately reads and transmits the scalable encoded data stored in the scalable encoded data storage unit 1001 as encoded data having an appropriate quality with respect to the capability and communication environment of the terminal device. .
  • the scalable encoded data storage unit 1001 stores scalable encoded data (BL + EL) 1011 encoded in a scalable manner.
  • the scalable encoded data (BL + EL) 1011 is encoded data including both a base layer and an enhancement layer, and is a data that can be decoded to obtain both a base layer image and an enhancement layer image. It is.
  • the distribution server 1002 selects an appropriate layer according to the capability of the terminal device that transmits data, the communication environment, and the like, and reads the data of the layer. For example, the distribution server 1002 reads high-quality scalable encoded data (BL + EL) 1011 from the scalable encoded data storage unit 1001 and transmits it to the personal computer 1004 and the tablet device 1006 with high processing capability as they are. . On the other hand, for example, the distribution server 1002 extracts base layer data from the scalable encoded data (BL + EL) 1011 for the AV device 1005 and the cellular phone 1007 having a low processing capability, and performs scalable encoding. Although it is data of the same content as the data (BL + EL) 1011, it is transmitted as scalable encoded data (BL) 1012 having a lower quality than the scalable encoded data (BL + EL) 1011.
  • BL scalable encoded data
  • scalable encoded data By using scalable encoded data in this way, the amount of data can be easily adjusted, so that the occurrence of delay and overflow can be suppressed, and the unnecessary increase in the load on the terminal device and communication medium can be suppressed. be able to.
  • scalable encoded data (BL + EL) 1011 since scalable encoded data (BL + EL) 1011 has reduced redundancy between layers, the amount of data can be reduced as compared with the case where encoded data of each layer is used as individual data. . Therefore, the storage area of the scalable encoded data storage unit 1001 can be used more efficiently.
  • the hardware performance of the terminal device varies depending on the device.
  • the application which a terminal device performs is also various, the capability of the software is also various.
  • the network 1003 serving as a communication medium can be applied to any communication network including wired, wireless, or both, such as the Internet and a LAN (Local Area Network), and has various data transmission capabilities. Furthermore, there is a risk of change due to other communications.
  • the distribution server 1002 communicates with the terminal device that is the data transmission destination before starting data transmission, and the hardware performance of the terminal device, the performance of the application (software) executed by the terminal device, etc. Information regarding the capability of the terminal device and information regarding the communication environment such as the available bandwidth of the network 1003 may be obtained. The distribution server 1002 may select an appropriate layer based on the information obtained here.
  • the layer extraction may be performed by the terminal device.
  • the personal computer 1004 may decode the transmitted scalable encoded data (BL + EL) 1011 and display a base layer image or an enhancement layer image. Further, for example, the personal computer 1004 extracts the base layer scalable encoded data (BL) 1012 from the transmitted scalable encoded data (BL + EL) 1011 and stores it or transfers it to another device. The base layer image may be displayed after decoding.
  • the numbers of the scalable encoded data storage unit 1001, the distribution server 1002, the network 1003, and the terminal devices are arbitrary.
  • the example in which the distribution server 1002 transmits data to the terminal device has been described, but the usage example is not limited to this.
  • the data transmission system 1000 may be any system as long as it transmits a scalable encoded data to a terminal device by selecting an appropriate layer according to the capability of the terminal device or a communication environment. Can be applied to the system.
  • scalable coding is used for transmission via a plurality of communication media as in the example shown in FIG. 49, for example.
  • a broadcasting station 1101 transmits base layer scalable encoded data (BL) 1121 by terrestrial broadcasting 1111.
  • the broadcast station 1101 transmits enhancement layer scalable encoded data (EL) 1122 via an arbitrary network 1112 including a wired or wireless communication network or both (for example, packetized transmission).
  • BL base layer scalable encoded data
  • EL enhancement layer scalable encoded data
  • the terminal apparatus 1102 has a reception function of the terrestrial broadcast 1111 broadcast by the broadcast station 1101 and receives base layer scalable encoded data (BL) 1121 transmitted via the terrestrial broadcast 1111.
  • the terminal apparatus 1102 further has a communication function for performing communication via the network 1112, and receives enhancement layer scalable encoded data (EL) 1122 transmitted via the network 1112.
  • BL base layer scalable encoded data
  • EL enhancement layer scalable encoded data
  • the terminal device 1102 decodes the base layer scalable encoded data (BL) 1121 acquired via the terrestrial broadcast 1111 according to, for example, a user instruction, and obtains or stores a base layer image. Or transmit to other devices.
  • BL base layer scalable encoded data
  • the terminal device 1102 for example, in response to a user instruction, the base layer scalable encoded data (BL) 1121 acquired via the terrestrial broadcast 1111 and the enhancement layer scalable encoded acquired via the network 1112 Data (EL) 1122 is combined to obtain scalable encoded data (BL + EL), or decoded to obtain an enhancement layer image, stored, or transmitted to another device.
  • BL base layer scalable encoded data
  • EL enhancement layer scalable encoded acquired via the network 1112 Data
  • the scalable encoded data can be transmitted via a communication medium that is different for each layer, for example. Therefore, the load can be distributed, and the occurrence of delay and overflow can be suppressed.
  • the communication medium used for transmission may be selected for each layer. For example, scalable encoded data (BL) 1121 of a base layer having a relatively large amount of data is transmitted via a communication medium having a wide bandwidth, and scalable encoded data (EL) 1122 having a relatively small amount of data is transmitted. You may make it transmit via a communication medium with a narrow bandwidth. Further, for example, the communication medium for transmitting the enhancement layer scalable encoded data (EL) 1122 is switched between the network 1112 and the terrestrial broadcast 1111 according to the available bandwidth of the network 1112. May be. Of course, the same applies to data of an arbitrary layer.
  • the number of layers is arbitrary, and the number of communication media used for transmission is also arbitrary.
  • the number of terminal devices 1102 serving as data distribution destinations is also arbitrary.
  • broadcasting from the broadcasting station 1101 has been described as an example, but the usage example is not limited to this.
  • the data transmission system 1100 can be applied to any system as long as it is a system that divides scalable encoded data into a plurality of layers and transmits them through a plurality of lines.
  • scalable coding is used for storing coded data, for example, as in the example shown in FIG.
  • the imaging device 1201 performs scalable coding on the image data obtained by imaging the subject 1211, and obtains scalable coded data (BL + EL) 1221 as a scalable coded data storage device 1202. To supply.
  • the scalable encoded data storage device 1202 stores the scalable encoded data (BL + EL) 1221 supplied from the imaging device 1201 with quality according to the situation. For example, in the normal case, the scalable encoded data storage device 1202 extracts base layer data from the scalable encoded data (BL + EL) 1221, and the base layer scalable encoded data ( BL) 1222. On the other hand, for example, in the case of attention, the scalable encoded data storage device 1202 stores scalable encoded data (BL + EL) 1221 with high quality and a large amount of data.
  • the scalable encoded data storage device 1202 can store an image with high image quality only when necessary, so that an increase in the amount of data can be achieved while suppressing a reduction in the value of the image due to image quality degradation. And the use efficiency of the storage area can be improved.
  • the imaging device 1201 is a surveillance camera.
  • the monitoring target for example, an intruder
  • the content of the captured image is likely to be unimportant, so reduction of the data amount is given priority, and the image data (scalable coding) Data) is stored in low quality.
  • the image quality is given priority and the image data (scalable) (Encoded data) is stored with high quality.
  • whether it is normal time or attention time may be determined by the scalable encoded data storage device 1202 analyzing an image, for example.
  • the imaging apparatus 1201 may make a determination, and the determination result may be transmitted to the scalable encoded data storage device 1202.
  • the criterion for determining whether the time is normal or noting is arbitrary, and the content of the image as the criterion is arbitrary. Of course, conditions other than the contents of the image can also be used as the criterion. For example, it may be switched according to the volume or waveform of the recorded sound, may be switched at every predetermined time, or may be switched by an external instruction such as a user instruction.
  • the number of states is arbitrary, for example, normal, slightly attention, attention, very attention, etc.
  • three or more states may be switched.
  • the upper limit number of states to be switched depends on the number of layers of scalable encoded data.
  • the imaging apparatus 1201 may determine the number of layers for scalable coding according to the state. For example, in a normal case, the imaging apparatus 1201 may generate base layer scalable encoded data (BL) 1222 with low quality and a small amount of data, and supply the scalable encoded data storage apparatus 1202 to the scalable encoded data storage apparatus 1202. For example, when attention is paid, the imaging device 1201 generates scalable encoded data (BL + EL) 1221 having a high quality and a large amount of data, and supplies the scalable encoded data storage device 1202 to the scalable encoded data storage device 1202. May be.
  • BL base layer scalable encoded data
  • BL + EL scalable encoded data
  • the monitoring camera has been described as an example.
  • the use of the imaging system 1200 is arbitrary and is not limited to the monitoring camera.
  • ⁇ Tenth embodiment> (Other examples of implementation)
  • a system LSI (Large Scale) Integration) etc. a module using a plurality of processors, etc., a unit using a plurality of modules, etc., a set in which other functions are added to the unit, etc. (that is, a partial configuration of the apparatus) .
  • FIG. 51 illustrates an example of a schematic configuration of a video set to which the present technology is applied.
  • the video set 1300 shown in FIG. 51 has such a multi-functional configuration, and a device having a function related to image encoding and decoding (either one or both) can be used for the function. It is a combination of devices having other related functions.
  • the video set 1300 includes a module group such as a video module 1311, an external memory 1312, a power management module 1313, and a front-end module 1314, and a related group such as a connectivity 1321, a camera 1322, and a sensor 1323. And a device having a function.
  • a cocoon module is a component that has several functions that are related to each other and that have a coherent function.
  • the specific physical configuration is arbitrary. For example, a plurality of processors each having a function, electronic circuit elements such as resistors and capacitors, and other devices arranged on a wiring board or the like can be considered. . It is also possible to combine the module with another module, a processor, or the like to form a new module.
  • the video module 1311 is a combination of configurations having functions related to image processing, and includes an application processor, a video processor, a broadband modem 1333, and an RF module 1334.
  • the processor is a configuration in which a configuration having a predetermined function is integrated on a semiconductor chip by an SoC (System On Chip), and for example, there is also a system LSI (Large Scale Integration) or the like.
  • the configuration having the predetermined function may be a logic circuit (hardware configuration), a CPU, a ROM, a RAM, and the like, and a program (software configuration) executed using them. , Or a combination of both.
  • a processor has a logic circuit and a CPU, ROM, RAM, etc., a part of the function is realized by a logic circuit (hardware configuration), and other functions are executed by the CPU (software configuration) It may be realized by.
  • the 51 is a processor that executes an application related to image processing.
  • the application executed in the application processor 1331 not only performs arithmetic processing to realize a predetermined function, but also can control the internal and external configurations of the video module 1311 such as the video processor 1332 as necessary. .
  • the video processor 1332 is a processor having a function related to image encoding / decoding (one or both of them).
  • the broadband modem 1333 is a processor (or module) that performs processing related to wired or wireless (or both) broadband communication performed via a broadband line such as the Internet or a public telephone line network.
  • the broadband modem 1333 digitally modulates data to be transmitted (digital signal) to convert it into an analog signal, or demodulates the received analog signal to convert it into data (digital signal).
  • the broadband modem 1333 can digitally modulate and demodulate arbitrary information such as image data processed by the video processor 1332, a stream obtained by encoding the image data, an application program, setting data, and the like.
  • the RF module 1334 is a module that performs frequency conversion, modulation / demodulation, amplification, filter processing, and the like on an RF (Radio RF Frequency) signal transmitted and received via an antenna. For example, the RF module 1334 generates an RF signal by performing frequency conversion or the like on the baseband signal generated by the broadband modem 1333. Further, for example, the RF module 1334 generates a baseband signal by performing frequency conversion or the like on the RF signal received via the front end module 1314.
  • RF Radio RF Frequency
  • the application processor 1331 and the video processor 1332 may be integrated into a single processor.
  • the external memory 1312 is a module having a storage device that is provided outside the video module 1311 and is used by the video module 1311.
  • the storage device of the external memory 1312 may be realized by any physical configuration, but is generally used for storing a large amount of data such as image data in units of frames. For example, it is desirable to realize it with a relatively inexpensive and large-capacity semiconductor memory such as DRAM (Dynamic Random Access Memory).
  • the power management module 1313 manages and controls power supply to the video module 1311 (each component in the video module 1311).
  • the front end module 1314 is a module that provides the RF module 1334 with a front end function (a circuit on a transmitting / receiving end on the antenna side). As illustrated in FIG. 51, the front end module 1314 includes, for example, an antenna unit 1351, a filter 1352, and an amplifying unit 1353.
  • Antenna unit 1351 has an antenna for transmitting and receiving a radio signal and its peripheral configuration.
  • the antenna unit 1351 transmits the signal supplied from the amplification unit 1353 as a radio signal, and supplies the received radio signal to the filter 1352 as an electric signal (RF signal).
  • the filter 1352 performs a filtering process on the RF signal received via the antenna unit 1351 and supplies the processed RF signal to the RF module 1334.
  • the amplifying unit 1353 amplifies the RF signal supplied from the RF module 1334 and supplies the amplified RF signal to the antenna unit 1351.
  • Connectivity 1321 is a module having a function related to connection with the outside.
  • the physical configuration of the connectivity 1321 is arbitrary.
  • the connectivity 1321 has a configuration having a communication function other than the communication standard supported by the broadband modem 1333, an external input / output terminal, and the like.
  • the communication 1321 is compliant with wireless communication standards such as Bluetooth (registered trademark), IEEE 802.11 (for example, Wi-Fi (Wireless Fidelity, registered trademark)), NFC (Near Field Communication), IrDA (InfraRed Data Association), etc. You may make it have a module which has a function, an antenna etc. which transmit / receive the signal based on the standard.
  • the connectivity 1321 has a module having a communication function compliant with a wired communication standard such as USB (Universal Serial Bus), HDMI (registered trademark) (High-Definition Multimedia Interface), or a terminal compliant with the standard. You may do it.
  • the connectivity 1321 may have other data (signal) transmission functions such as analog input / output terminals.
  • the connectivity 1321 may include a data (signal) transmission destination device.
  • the drive 1321 reads and writes data to and from a recording medium such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory (not only a removable medium drive, but also a hard disk, SSD (Solid State Drive) NAS (including Network Attached Storage) and the like.
  • the connectivity 1321 may include an image or audio output device (a monitor, a speaker, or the like).
  • the eyelid camera 1322 is a module having a function of capturing an image of a subject and obtaining image data of the subject.
  • Image data obtained by imaging by the camera 1322 is supplied to, for example, a video processor 1332 and encoded.
  • the sensor 1323 includes, for example, a voice sensor, an ultrasonic sensor, an optical sensor, an illuminance sensor, an infrared sensor, an image sensor, a rotation sensor, an angle sensor, an angular velocity sensor, a velocity sensor, an acceleration sensor, an inclination sensor, a magnetic identification sensor, an impact sensor, It is a module having an arbitrary sensor function such as a temperature sensor.
  • the data detected by the sensor 1323 is supplied to the application processor 1331 and used by an application or the like.
  • the configuration described above as a module may be realized as a processor, or conversely, the configuration described as a processor may be realized as a module.
  • the present technology can be applied to the video processor 1332 as described later. Therefore, the video set 1300 can be implemented as a set to which the present technology is applied.
  • FIG. 52 shows an example of a schematic configuration of a video processor 1332 (FIG. 51) to which the present technology is applied.
  • the video processor 1332 receives the video signal and the audio signal and encodes them in a predetermined method, decodes the encoded video data and audio data, A function of reproducing and outputting an audio signal.
  • the video processor 1332 includes a video input processing unit 1401, a first image enlargement / reduction unit 1402, a second image enlargement / reduction unit 1403, a video output processing unit 1404, a frame memory 1405, and a memory control unit 1406.
  • the video processor 1332 includes an encoding / decoding engine 1407, video ES (ElementaryElementStream) buffers 1408A and 1408B, and audio ES buffers 1409A and 1409B.
  • the video processor 1332 includes an audio encoder 1410, an audio decoder 1411, a multiplexing unit (MUX (Multiplexer)) 1412, a demultiplexing unit (DMUX (Demultiplexer)) 1413, and a stream buffer 1414.
  • MUX Multiplexing unit
  • DMUX Demultiplexer
  • the video input processing unit 1401 acquires a video signal input from, for example, the connectivity 1321 (FIG. 51) and converts it into digital image data.
  • the first image enlargement / reduction unit 1402 performs format conversion, image enlargement / reduction processing, and the like on the image data.
  • the second image enlargement / reduction unit 1403 performs image enlargement / reduction processing on the image data in accordance with the format of the output destination via the video output processing unit 1404, or is the same as the first image enlargement / reduction unit 1402. Format conversion and image enlargement / reduction processing.
  • the video output processing unit 1404 performs format conversion, conversion to an analog signal, and the like on the image data, and outputs the reproduced video signal to, for example, the connectivity 1321 (FIG. 51).
  • the frame memory 1405 is a memory for image data shared by the video input processing unit 1401, the first image scaling unit 1402, the second image scaling unit 1403, the video output processing unit 1404, and the encoding / decoding engine 1407. .
  • the frame memory 1405 is realized as a semiconductor memory such as a DRAM, for example.
  • the memory control unit 1406 receives the synchronization signal from the encoding / decoding engine 1407, and controls the writing / reading access to the frame memory 1405 according to the access schedule to the frame memory 1405 written in the access management table 1406A.
  • the access management table 1406A is updated by the memory control unit 1406 in accordance with processing executed by the encoding / decoding engine 1407, the first image enlargement / reduction unit 1402, the second image enlargement / reduction unit 1403, and the like.
  • the encoding / decoding engine 1407 performs encoding processing of image data and decoding processing of a video stream that is data obtained by encoding the image data. For example, the encoding / decoding engine 1407 encodes the image data read from the frame memory 1405 and sequentially writes the data as a video stream in the video ES buffer 1408A. Further, for example, the video stream is sequentially read from the video ES buffer 1408B, decoded, and sequentially written in the frame memory 1405 as image data.
  • the encoding / decoding engine 1407 uses the frame memory 1405 as a work area in the encoding and decoding. Also, the encoding / decoding engine 1407 outputs a synchronization signal to the memory control unit 1406, for example, at a timing at which processing for each macroblock is started.
  • the video ES buffer 1408A buffers the video stream generated by the encoding / decoding engine 1407 and supplies the buffered video stream to the multiplexing unit (MUX) 1412.
  • the video ES buffer 1408B buffers the video stream supplied from the demultiplexer (DMUX) 1413 and supplies the buffered video stream to the encoding / decoding engine 1407.
  • the audio ES buffer 1409A buffers the audio stream generated by the audio encoder 1410 and supplies the buffered audio stream to the multiplexing unit (MUX) 1412.
  • the audio ES buffer 1409B buffers the audio stream supplied from the demultiplexer (DMUX) 1413 and supplies the buffered audio stream to the audio decoder 1411.
  • the audio encoder 1410 converts, for example, an audio signal input from the connectivity 1321 (FIG. 51), for example, into a digital format, and encodes the audio signal using a predetermined method such as an MPEG audio method or an AC3 (Audio Code number 3) method.
  • the audio encoder 1410 sequentially writes an audio stream, which is data obtained by encoding an audio signal, in the audio ES buffer 1409A.
  • the audio decoder 1411 decodes the audio stream supplied from the audio ES buffer 1409B, performs conversion to, for example, an analog signal, and supplies the reproduced audio signal to, for example, the connectivity 1321 (FIG. 51).
  • Multiplexer (MUX) 1412 multiplexes the video stream and the audio stream.
  • the multiplexing method (that is, the format of the bit stream generated by multiplexing) is arbitrary.
  • the multiplexing unit (MUX) 1412 can also add predetermined header information or the like to the bit stream. That is, the multiplexing unit (MUX) 1412 can convert the stream format by multiplexing. For example, the multiplexing unit (MUX) 1412 multiplexes the video stream and the audio stream to convert it into a transport stream that is a bit stream in a transfer format. Further, for example, the multiplexing unit (MUX) 1412 multiplexes the video stream and the audio stream, thereby converting the data into file format data (file data) for recording.
  • the demultiplexing unit (DMUX) 1413 demultiplexes the bit stream in which the video stream and the audio stream are multiplexed by a method corresponding to the multiplexing by the multiplexing unit (MUX) 1412. That is, the demultiplexer (DMUX) 1413 extracts the video stream and the audio stream from the bit stream read from the stream buffer 1414 (separates the video stream and the audio stream). That is, the demultiplexer (DMUX) 1413 can convert the stream format by demultiplexing (inverse conversion of the conversion by the multiplexer (MUX) 1412).
  • the demultiplexing unit (DMUX) 1413 obtains a transport stream supplied from, for example, the connectivity 1321 and the broadband modem 1333 (both in FIG. 51) via the stream buffer 1414 and demultiplexes the transport stream. Can be converted into a video stream and an audio stream. Further, for example, the demultiplexer (DMUX) 1413 obtains the file data read from various recording media by the connectivity 1321 (FIG. 51) via the stream buffer 1414 and demultiplexes it, for example. It can be converted into a video stream and an audio stream.
  • the stream buffer 1414 buffers the bit stream.
  • the stream buffer 1414 buffers the transport stream supplied from the multiplexing unit (MUX) 1412 and, for example, at the predetermined timing or based on a request from the outside, for example, the connectivity 1321 or the broadband modem 1333 (whichever Are also supplied to FIG.
  • MUX multiplexing unit
  • the stream buffer 1414 buffers the file data supplied from the multiplexing unit (MUX) 1412 and, for example, connectivity 1321 (FIG. 51) or the like at a predetermined timing or based on an external request or the like. To be recorded on various recording media.
  • MUX multiplexing unit
  • connectivity 1321 FIG. 51
  • the stream buffer 1414 buffers the transport stream acquired through, for example, the connectivity 1321 and the broadband modem 1333 (both of which are shown in FIG. 51), and performs reverse processing at a predetermined timing or based on an external request or the like.
  • the data is supplied to a multiplexing unit (DMUX) 1413.
  • DMUX multiplexing unit
  • the stream buffer 1414 buffers file data read from various recording media in the connectivity 1321 (FIG. 51), for example, and at a predetermined timing or based on an external request or the like, a demultiplexing unit (DMUX) 1413.
  • DMUX demultiplexing unit
  • a video signal input to the video processor 1332 from the connectivity 1321 (FIG. 51) or the like is converted into digital image data of a predetermined format such as 4: 2: 2Y / Cb / Cr format by the video input processing unit 1401.
  • the data is sequentially written into the frame memory 1405.
  • This digital image data is read by the first image enlargement / reduction unit 1402 or the second image enlargement / reduction unit 1403, and format conversion to a predetermined method such as 4: 2: 0Y / Cb / Cr method and enlargement / reduction processing are performed. Is written again in the frame memory 1405.
  • This image data is encoded by the encoding / decoding engine 1407 and written as a video stream in the video ES buffer 1408A.
  • an audio signal input to the video processor 1332 from the connectivity 1321 (FIG. 51) or the like is encoded by the audio encoder 1410 and written as an audio stream in the audio ES buffer 1409A.
  • the video stream of the video ES buffer 1408A and the audio stream of the audio ES buffer 1409A are read and multiplexed by the multiplexing unit (MUX) 1412 and converted into a transport stream or file data.
  • the transport stream generated by the multiplexing unit (MUX) 1412 is buffered in the stream buffer 1414 and then output to the external network via, for example, the connectivity 1321 and the broadband modem 1333 (both of which are shown in FIG. 51).
  • the file data generated by the multiplexing unit (MUX) 1412 is buffered in the stream buffer 1414, and then output to, for example, the connectivity 1321 (FIG. 51) and recorded on various recording media.
  • a transport stream input from an external network to the video processor 1332 via the connectivity 1321 or the broadband modem 1333 (both in FIG. 51) is buffered in the stream buffer 1414 and then demultiplexed (DMUX). 1413 is demultiplexed.
  • file data read from various recording media in the connectivity 1321 (FIG. 51) and inputted to the video processor 1332 is buffered in the stream buffer 1414 and then demultiplexed by the demultiplexer (DMUX) 1413. It becomes. That is, the transport stream or file data input to the video processor 1332 is separated into a video stream and an audio stream by the demultiplexer (DMUX) 1413.
  • the audio stream is supplied to the audio decoder 1411 via the audio ES buffer 1409B and decoded to reproduce the audio signal.
  • the video stream is written to the video ES buffer 1408B, and then sequentially read and decoded by the encoding / decoding engine 1407, and written to the frame memory 1405.
  • the decoded image data is enlarged / reduced by the second image enlargement / reduction unit 1403 and written to the frame memory 1405.
  • the decoded image data is read out to the video output processing unit 1404, format-converted to a predetermined system such as 4: 2: 2Y / Cb / Cr system, and further converted into an analog signal to be converted into a video signal. Is played out.
  • the present technology when the present technology is applied to the video processor 1332 configured as described above, the present technology according to each embodiment described above may be applied to the encoding / decoding engine 1407. That is, for example, the encoding / decoding engine 1407 may have the functions of the encoding device and the decoding device according to the first and second embodiments. In this way, the video processor 1332 can obtain the same effects as those described above with reference to FIGS.
  • the present technology (that is, the functions of the image encoding device and the image decoding device according to each embodiment described above) may be realized by hardware such as a logic circuit. It may be realized by software such as an embedded program, or may be realized by both of them.
  • FIG. 53 illustrates another example of a schematic configuration of the video processor 1332 (FIG. 51) to which the present technology is applied.
  • the video processor 1332 has a function of encoding and decoding video data by a predetermined method.
  • the video processor 1332 includes a control unit 1511, a display interface 1512, a display engine 1513, an image processing engine 1514, and an internal memory 1515.
  • the video processor 1332 includes a codec engine 1516, a memory interface 1517, a multiplexing / demultiplexing unit (MUX DMUX) 1518, a network interface 1519, and a video interface 1520.
  • MUX DMUX multiplexing / demultiplexing unit
  • the eyelid control unit 1511 controls the operation of each processing unit in the video processor 1332 such as the display interface 1512, the display engine 1513, the image processing engine 1514, and the codec engine 1516.
  • the control unit 1511 includes, for example, a main CPU 1531, a sub CPU 1532, and a system controller 1533.
  • the main CPU 1531 executes a program and the like for controlling the operation of each processing unit in the video processor 1332.
  • the main CPU 1531 generates a control signal according to the program and supplies it to each processing unit (that is, controls the operation of each processing unit).
  • the sub CPU 1532 plays an auxiliary role of the main CPU 1531.
  • the sub CPU 1532 executes a child process such as a program executed by the main CPU 1531, a subroutine, or the like.
  • the system controller 1533 controls operations of the main CPU 1531 and the sub CPU 1532 such as designating a program to be executed by the main CPU 1531 and the sub CPU 1532.
  • the display interface 1512 outputs image data to, for example, the connectivity 1321 (FIG. 51) or the like under the control of the control unit 1511.
  • the display interface 1512 converts the digital data image data into an analog signal, and outputs it to the monitor device of the connectivity 1321 (FIG. 51) as a reproduced video signal or as the digital data image data.
  • the display engine 1513 Under the control of the control unit 1511, the display engine 1513 performs various conversion processes such as format conversion, size conversion, color gamut conversion, and the like so as to match the image data with hardware specifications such as a monitor device that displays the image. I do.
  • the eyelid image processing engine 1514 performs predetermined image processing such as filter processing for improving image quality on the image data under the control of the control unit 1511.
  • the internal memory 1515 is a memory provided inside the video processor 1332 that is shared by the display engine 1513, the image processing engine 1514, and the codec engine 1516.
  • the internal memory 1515 is used, for example, for data exchange performed between the display engine 1513, the image processing engine 1514, and the codec engine 1516.
  • the internal memory 1515 stores data supplied from the display engine 1513, the image processing engine 1514, or the codec engine 1516, and stores the data as needed (eg, upon request). This is supplied to the image processing engine 1514 or the codec engine 1516.
  • the internal memory 1515 may be realized by any storage device, but is generally used for storing a small amount of data such as image data or parameters in units of blocks. It is desirable to realize a semiconductor memory having a relatively small capacity but a high response speed (for example, as compared with the external memory 1312) such as “Static Random Access Memory”.
  • the codec engine 1516 performs processing related to encoding and decoding of image data.
  • the encoding / decoding scheme supported by the codec engine 1516 is arbitrary, and the number thereof may be one or plural.
  • the codec engine 1516 may be provided with codec functions of a plurality of encoding / decoding schemes, and may be configured to perform encoding of image data or decoding of encoded data using one selected from them.
  • the codec engine 1516 includes, for example, MPEG-2 video 1541, AVC / H.2641542, HEVC / H.2651543, HEVC / H.265 (Scalable) 1544, as function blocks for processing related to the codec.
  • HEVC / H.265 (Multi-view) 1545 and MPEG-DASH 1551 are included.
  • “MPEG-2” Video 1541 is a functional block that encodes and decodes image data in the MPEG-2 format.
  • AVC / H.2641542 is a functional block that encodes and decodes image data using the AVC method.
  • HEVC / H.2651543 is a functional block that encodes and decodes image data using the HEVC method.
  • HEVC / H.265 (Scalable) 1544 is a functional block that performs scalable encoding and scalable decoding of image data using the HEVC method.
  • HEVC / H.265 (Multi-view) 1545 is a functional block that multi-view encodes or multi-view decodes image data using the HEVC method.
  • MPEG-DASH 1551 is a functional block that transmits and receives image data in the MPEG-DASH (MPEG-Dynamic Adaptive Streaming over HTTP) method.
  • MPEG-DASH is a technology for streaming video using HTTP (HyperText Transfer Protocol), and selects and transmits appropriate data from multiple encoded data with different resolutions prepared in advance in segments. This is one of the features.
  • MPEG-DASH 1551 generates a stream compliant with the standard, controls transmission of the stream, and the like.
  • MPEG-2 Video 1541 to HEVC / H.265 (Multi-view) 1545 described above are used. Is used.
  • the memory interface 1517 is an interface for the external memory 1312. Data supplied from the image processing engine 1514 or the codec engine 1516 is supplied to the external memory 1312 via the memory interface 1517. The data read from the external memory 1312 is supplied to the video processor 1332 (the image processing engine 1514 or the codec engine 1516) via the memory interface 1517.
  • a multiplexing / demultiplexing unit (MUX DMUX) 1518 multiplexes and demultiplexes various data related to images such as a bit stream of encoded data, image data, and a video signal.
  • This multiplexing / demultiplexing method is arbitrary.
  • the multiplexing / demultiplexing unit (MUX DMUX) 1518 can not only combine a plurality of data into one but also add predetermined header information or the like to the data.
  • the multiplexing / demultiplexing unit (MUX DMUX) 1518 not only divides one data into a plurality of data but also adds predetermined header information or the like to each divided data. it can.
  • the multiplexing / demultiplexing unit (MUX DMUX) 1518 can convert the data format by multiplexing / demultiplexing.
  • the multiplexing / demultiplexing unit (MUX DMUX) 1518 multiplexes the bitstream, thereby transporting the transport stream, which is a bit stream in a transfer format, or data in a file format for recording (file data).
  • the transport stream which is a bit stream in a transfer format, or data in a file format for recording (file data).
  • file data file format for recording
  • the network interface 1519 is an interface for a broadband modem 1333, connectivity 1321 (both in FIG. 51), and the like.
  • the video interface 1520 is an interface for connectivity 1321 and a camera 1322 (both of which are shown in FIG. 51), for example.
  • the transport stream is transmitted to the multiplexing / demultiplexing unit (MUX) via the network interface 1519.
  • MUX multiplexing / demultiplexing unit
  • DMUX 1518 is demultiplexed and decoded by the codec engine 1516.
  • the image data obtained by decoding by the codec engine 1516 is subjected to predetermined image processing by the image processing engine 1514, subjected to predetermined conversion by the display engine 1513, and connected to, for example, the connectivity 1321 (see FIG. 51) etc., and the image is displayed on the monitor.
  • image data obtained by decoding by the codec engine 1516 is re-encoded by the codec engine 1516, multiplexed by a multiplexing / demultiplexing unit (MUX DMUX) 1518, converted into file data, and video
  • MUX DMUX multiplexing / demultiplexing unit
  • the data is output to, for example, the connectivity 1321 (FIG. 51) via the interface 1520 and recorded on various recording media.
  • encoded data file data obtained by encoding image data read from a recording medium (not shown) by the connectivity 1321 (FIG. 51) is multiplexed / demultiplexed via the video interface 1520. Is supplied to a unit (MUX DMUX) 1518, demultiplexed, and decoded by the codec engine 1516. Image data obtained by decoding by the codec engine 1516 is subjected to predetermined image processing by the image processing engine 1514, subjected to predetermined conversion by the display engine 1513, and, for example, connectivity 1321 (FIG. 51) via the display interface 1512. And the image is displayed on the monitor.
  • MUX DMUX unit
  • image data obtained by decoding by the codec engine 1516 is re-encoded by the codec engine 1516, multiplexed by the multiplexing / demultiplexing unit (MUX DMUX) 1518, and converted into a transport stream,
  • MUX DMUX multiplexing / demultiplexing unit
  • the connectivity 1321 and the broadband modem 1333 are supplied via the network interface 1519 and transmitted to another device (not shown).
  • image data and other data are exchanged between the processing units in the video processor 1332 using, for example, the internal memory 1515 and the external memory 1312.
  • the power management module 1313 controls power supply to the control unit 1511, for example.
  • the present technology when the present technology is applied to the video processor 1332 configured as described above, the present technology according to each of the above-described embodiments may be applied to the codec engine 1516. That is, for example, the codec engine 1516 may have a functional block that realizes the encoding device and the decoding device according to the first and second embodiments. With the codec engine 1516 doing in this way, the video processor 1332 can obtain the same effects as those described above with reference to FIGS.
  • the present technology (that is, the functions of the image encoding device and the image decoding device according to each of the above-described embodiments) may be realized by hardware such as a logic circuit or an embedded program. It may be realized by software such as the above, or may be realized by both of them.
  • the configuration of the video processor 1332 is arbitrary and may be other than the two examples described above.
  • the video processor 1332 may be configured as one semiconductor chip, but may be configured as a plurality of semiconductor chips. For example, a three-dimensional stacked LSI in which a plurality of semiconductors are stacked may be used. Further, it may be realized by a plurality of LSIs.
  • Video set 1300 can be incorporated into various devices that process image data.
  • the video set 1300 can be incorporated in the television device 900 (FIG. 44), the mobile phone 920 (FIG. 45), the recording / reproducing device 940 (FIG. 46), the imaging device 960 (FIG. 47), or the like.
  • the apparatus can obtain the same effects as those described above with reference to FIGS.
  • the video set 1300 includes, for example, terminal devices such as the personal computer 1004, the AV device 1005, the tablet device 1006, and the mobile phone 1007 in the data transmission system 1000 in FIG. 48, the broadcasting station 1101 in the data transmission system 1100 in FIG. It can also be incorporated into the terminal device 1102, the imaging device 1201 in the imaging system 1200 of FIG. 50, the scalable encoded data storage device 1202, and the like. By incorporating the video set 1300, the apparatus can obtain the same effects as those described above with reference to FIGS.
  • each configuration of the video set 1300 described above can be implemented as a configuration to which the present technology is applied as long as it includes the video processor 1332.
  • the video processor 1332 can be implemented as a video processor to which the present technology is applied.
  • the processor, the video module 1311 and the like indicated by the dotted line 1341 can be implemented as a processor or a module to which the present technology is applied.
  • the video module 1311, the external memory 1312, the power management module 1313, and the front end module 1314 can be combined and implemented as a video unit 1361 to which the present technology is applied. In any case, the same effects as those described above with reference to FIGS. 1 to 700 can be obtained.
  • any configuration including the video processor 1332 can be incorporated into various devices that process image data, as in the case of the video set 1300.
  • a video processor 1332 a processor indicated by a dotted line 1341, a video module 1311, or a video unit 1361, a television device 900 (FIG. 44), a mobile phone 920 (FIG. 45), a recording / playback device 940 (FIG. 46), Imaging device 960 (FIG. 47), terminal devices such as personal computer 1004, AV device 1005, tablet device 1006, and mobile phone 1007 in data transmission system 1000 in FIG. 48, broadcast station 1101 and terminal in data transmission system 1100 in FIG.
  • the apparatus 1102 can be incorporated in the apparatus 1102, the imaging apparatus 1201 in the imaging system 1200 of FIG. 50, the scalable encoded data storage apparatus 1202, and the like. Then, by incorporating any configuration to which the present technology is applied, the apparatus can obtain the same effects as those described above with reference to FIGS. 1 to 700 as in the case of the video set 1300. .
  • the method for transmitting such information is not limited to such an example.
  • these pieces of information may be transmitted or recorded as separate data associated with the encoded data without being multiplexed with the encoded data.
  • the term “associate” means that an image (which may be a part of an image such as a slice or a block) included in the bitstream and information corresponding to the image can be linked at the time of decoding. Means. That is, the information may be transmitted on a transmission path different from the encoded data.
  • the information may be recorded on a recording medium different from the encoded data (or another recording area of the same recording medium). Furthermore, the information and the encoded data may be associated with each other in an arbitrary unit such as a plurality of frames, one frame, or a part of the frame.
  • This disclosure receives bitstreams compressed by orthogonal transform such as discrete cosine transform and motion compensation, such as MPEG, H.26x, etc., via network media such as satellite broadcasting, cable TV, the Internet, and mobile phones.
  • orthogonal transform such as discrete cosine transform and motion compensation
  • the present invention can be applied to an encoding device or a decoding device that is used when processing on a storage medium such as an optical, magnetic disk, or flash memory.
  • the present disclosure can also be applied to an encoding device and a decoding device of an encoding method other than the HEVC method that performs inter prediction processing.
  • the system means a set of a plurality of components (devices, modules (parts), etc.), and it does not matter whether all the components are in the same housing. Accordingly, a plurality of devices housed in separate housings and connected via a network and a single device housing a plurality of modules in one housing are all systems. .
  • the present disclosure can take a cloud computing configuration in which one function is shared by a plurality of devices via a network and is processed jointly.
  • each step described in the above flowchart can be executed by one device or can be shared by a plurality of devices.
  • the plurality of processes included in the one step can be executed by being shared by a plurality of apparatuses in addition to being executed by one apparatus.
  • This disclosure can have the following configurations.
  • An enlargement / reduction unit that enlarges or reduces the reference image based on enlargement / reduction rate information indicating a rate of enlargement or reduction of the reference image with respect to the inter-coded image;
  • a generation unit that generates a predicted image using the reference image enlarged or reduced by the enlargement / reduction unit;
  • a decoding device comprising: a decoding unit that decodes the inter-coded image using the prediction image generated by the generation unit.
  • the enlargement / reduction unit is configured to generate one pixel in the reference image as a plurality of pixels constituting the predicted image when the enlargement / reduction ratio information represents an enlargement ratio.
  • the enlargement / reduction unit is configured to generate one pixel in a region of the reference image as a pixel of a predicted image corresponding to the region when the enlargement / reduction rate represents a reduction rate.
  • (2) A filter processing unit that performs low pass filter processing on a block-by-block basis for the reference image enlarged or reduced by the enlargement / reduction unit;
  • the decoding device according to any one of (1) to (3), wherein the generation unit generates the prediction image using the reference image subjected to low-pass filter processing by the filter processing unit.
  • the decoding device according to any one of (1) to (5), wherein the enlargement / reduction ratio information is configured to be set independently in a horizontal direction and a vertical direction of the inter-coded image.
  • the enlargement / reduction unit includes the enlargement / reduction ratio information for either the reference image before or after the inter-encoded image in the encoding order, the inter-encoded image, and the inter-encoded image. Any one of (1) to (6) configured to calculate the enlargement / reduction ratio information for the other based on the time distance between the previous reference image and the subsequent reference image in the encoding order.
  • the decoding device according to 1.
  • the decoding device Based on the difference between the enlargement / reduction rate information corresponding to the block of the predicted image and the enlargement / reduction rate information corresponding to the peripheral block that is a block around the block, and the enlargement / reduction rate information of the peripheral block.
  • the decoding device further including: an information decoding unit that determines the enlargement / reduction ratio information of the block of the predicted image.
  • the motion vector encoding mode in the inter-encoded image is the merge mode
  • the enlargement / reduction rate information corresponding to the block of the predicted image to which the motion vector is referenced in the merge mode is displayed.
  • the decoding device according to any one of (1) to (8), further including: a determination unit that determines the enlargement / reduction ratio information corresponding to a block.
  • the decryption device An enlargement / reduction step for enlarging or reducing the reference image based on enlargement / reduction ratio information indicating a rate of enlargement or reduction of the reference image with respect to the inter-coded image; Generating a predicted image using the reference image enlarged or reduced by the process of the enlargement / reduction step; And a decoding step of decoding the inter-coded image using the prediction image generated by the processing of the generation step.
  • An enlargement / reduction unit that enlarges or reduces the reference image based on enlargement / reduction rate information indicating a rate of enlargement / reduction of the reference image with respect to the encoding target image;
  • a generation unit that generates a predicted image using the reference image enlarged or reduced by the enlargement / reduction unit;
  • An encoding unit that encodes the image to be encoded using the predicted image generated by the generation unit and generates encoded data;
  • An encoding apparatus comprising: a transmission unit that transmits the encoded data generated by the encoding unit and the enlargement / reduction ratio information.
  • the transmission unit is configured to transmit only the enlargement / reduction ratio information for either the reference image before or the reference image after the reference image in the encoding order from the image to be encoded (11)
  • An information encoding unit that calculates a difference between the enlargement / reduction rate information corresponding to the block of the predicted image and the enlargement / reduction rate information corresponding to a peripheral block that is a peripheral block of the block;
  • the encoding device according to (11) or (12) wherein the transmission unit is configured to transmit a difference between the enlargement / reduction rate information calculated by the information encoding unit.
  • the enlargement / reduction rate information corresponding to the block of the prediction image to which the motion vector is referred in the merge mode is used as the reference source prediction image.
  • the encoding device An enlargement / reduction step for enlarging or reducing the reference image based on enlargement / reduction rate information indicating a rate of enlargement or reduction of the reference image with respect to the image to be encoded; Generating a predicted image using the reference image enlarged or reduced by the process of the enlargement / reduction step; Using the predicted image generated by the processing of the generating step, the encoding step of encoding the image to be encoded and generating encoded data; An encoding method comprising: a transmission step of transmitting the encoded data generated by the processing of the encoding step and the enlargement / reduction ratio information.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

This disclosure pertains to a decoding device, a decoding method, an encoding device, and an encoding method that make it possible to increase encoding efficiency when the image being encoded is increased or reduced in size. A reference-image buffer increases or reduces the size of a reference image on the basis of a value (log2_expanding_factor) that indicates the factor by which to increase or reduce the size of said reference image relative to an inter-encoded image. A generation unit uses the reference image, the size of which has been increased or reduced, to generate a prediction image. The inter-encoded image is decoded using said prediction image. This disclosure can be applied, for example, to a High Efficiency Video Coding (HEVC) decoding device or the like.

Description

復号装置および復号方法、並びに、符号化装置および符号化方法Decoding device, decoding method, and encoding device and encoding method
 本開示は、復号装置および復号方法、並びに、符号化装置および符号化方法に関し、特に、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させることができるようにした復号装置および復号方法、並びに、符号化装置および符号化方法に関する。 The present disclosure relates to a decoding apparatus and a decoding method, and an encoding apparatus and an encoding method, and in particular, a decoding apparatus capable of improving encoding efficiency when an image to be encoded is enlarged or reduced, and The present invention relates to a decoding method, an encoding device, and an encoding method.
 近年、画像情報特有の冗長性を利用して、離散コサイン変換等の直交変換と動き補償により圧縮するMPEG(Moving Picture Experts Group phase)などの方式に準拠した装置が、放送局などの情報配信、および一般家庭における情報受信の双方において普及しつつある。 In recent years, devices based on MPEG (Moving Picture Experts Group phase) such as MPEG (Moving Experts Group phase) that compresses by orthogonal transformation such as discrete cosine transformation and motion compensation using redundancy unique to image information, And the reception of information in general households.
 特に、MPEG2(ISO/IEC 13818-2)方式は、汎用画像符号化方式として定義されている。MPEG2は、飛び越し走査画像及び順次走査画像の双方、並びに標準解像度画像及び高精細画像を網羅する標準である。MPEG2は、プロフェッショナル用途及びコンシューマー用途の広範なアプリケーションに現在広く用いられている。MPEG2方式を用いることにより、例えば720×480画素を持つ標準解像度の飛び越し走査画像であれば4乃至8Mbps、1920×1088画素を持つ高解像度飛び越し走査画像であれば18乃至22MBpsの符号量を割り当てることで、高い圧縮率と良好な画質の実現が可能である。 In particular, the MPEG2 (ISO / IEC 13818-2) system is defined as a general-purpose image encoding system. MPEG2 is a standard that covers both interlaced scanning images and progressive scanning images, as well as standard resolution images and high-definition images. MPEG2 is currently widely used in a wide range of applications for professional and consumer applications. By using the MPEG2 system, for example, a code amount of 4 to 8 Mbps is assigned for a standard resolution interlaced scan image having 720 × 480 pixels, and 18 to 22 MBps is assigned for a high resolution interlaced scan image having 1920 × 1088 pixels. Therefore, it is possible to realize a high compression rate and good image quality.
 MPEG2は主として放送用に適合する高画質符号化を対象としていたが、MPEG1より低い符号量(ビットレート)、つまりより高い圧縮率の符号化方式には対応していなかった。携帯端末の普及により、今後そのような符号化方式のニーズは高まると思われ、これに対応してMPEG4符号化方式の標準化が行われた。MPEG4の画像符号化方式に関しては、1998年12月にISO/IEC 14496-2として規格が国際標準に承認された。 MPEG2 was mainly intended for high-quality encoding suitable for broadcasting, but it did not support encoding methods with a lower code amount (bit rate) than MPEG1, that is, a higher compression rate. With the widespread use of mobile terminals, the need for such an encoding system is expected to increase in the future, and the MPEG4 encoding system has been standardized accordingly. Regarding the MPEG4 image coding system, the standard was approved as an international standard in December 1998 as ISO / IEC 449 14496-2.
 更に、近年、当初テレビ会議用の画像符号化を目的として、H.26L(ITU-T Q6/16 VCEG)という標準の規格化が進んでいる。H.26LはMPEG2やMPEG4といった符号化方式に比べ、その符号化、復号化により多くの演算量が要求されるものの、より高い符号化効率が実現されることが知られている。 Furthermore, in recent years, for the purpose of image coding for the initial video conference, The standardization of 26L (ITU-T Q6 / 16 標準 VCEG) is in progress. H. 26L is known to realize higher encoding efficiency, although a larger amount of computation is required for encoding and decoding than encoding methods such as MPEG2 and MPEG4.
 また、近年、MPEG4の活動の一環として、このH.26Lをベースに、H.26Lではサポートされない機能をも取り入れ、より高い符号化効率を実現する標準化がJoint Model of Enhanced-Compression Video Codingとして行われた。この標準化は、2003年3月にH.264及びMPEG-4 Part10(AVC(Advanced Video Coding))という名の元に国際標準化された。 In recent years, as part of MPEG4 activities, Based on 26L, H. Standardization to achieve higher coding efficiency by incorporating functions that are not supported by 26L was done as Joint Model of Enhanced-Compression Video Coding. This standardization was implemented in March 2003 by H.C. It was internationally standardized under the names of H.264 and MPEG-4® Part 10 (AVC (Advanced Video Coding)).
 更に、その拡張として、RGB,4:2:2や4:4:4の色差信号フォーマット等の業務用に必要な符号化ツールや、MPEG2で規定されていた8×8DCT(Discrete Cosine Transform)や量子化マトリクスをも含んだFRExt (Fidelity Range Extension)の標準化が2005年2月に完了した。これにより、AVC方式が、映画に含まれるフィルムノイズをも良好に表現することが可能な符号化方式となり、BD(Blu-ray(登録商標) Disc )等の幅広いアプリケーションに用いられる運びとなった。 In addition, as an extension, encoding tools necessary for business such as RGB, 4: 2: 2 and 4: 4: 4 color difference signal formats, 8 × 8DCT (Discrete Cosine Transform) specified by MPEG2, Standardization of FRExt (Fidelity Range Extension) including quantization matrix was completed in February 2005. As a result, the AVC system has become an encoding system that can well express film noise included in movies, and has been used for a wide range of applications such as BD (Blu-ray (registered trademark) Disc).
 しかしながら、昨今、ハイビジョン画像の4倍の4000×2000画素程度の画像を圧縮したい、または、インターネットのような限られた伝送容量の環境においてハイビジョン画像を配信したいといった、更なる高圧縮率符号化に対するニーズが高まっている。このため、ITU-T傘下のVCEG(Video Coding Expert Group)において、符号化効率の改善に関する検討が継続されている。 However, these days, we want to compress images with a resolution of about 4000 x 2000 pixels, which is four times that of high-definition images, or to deliver high-definition images in environments with limited transmission capacity such as the Internet. Needs are growing. For this reason, in the VCEG (Video Coding Expert Group) under the ITU-T umbrella, studies on improving coding efficiency are continuing.
 また、現在、AVCより更なる符号化効率の向上を目的として、ITU-Tと、ISO/IECの共同の標準化団体であるJCTVC(Joint Collaboration Team - Video Coding)により、 HEVC(High Efficiency Video Coding)と呼ばれる符号化方式の標準化が進められている。2013年12月現在、Draftとして非特許文献1が発行されている。 Currently, with the aim of further improving the coding efficiency compared to AVC, ITUHEVC (High Efficiency Video Coding) by JCTVC (Joint Collaboration Team-Video Coding), a joint standardization organization of ITU-T and ISO / IEC. The standardization of the encoding method called is being advanced. As of December 2013, Non-Patent Document 1 has been issued as Draft.
 HEVCのインター予測処理は、MPEG-2やAVCと同様に平行移動モデルに基づくものであり、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させることができなかった。 The HEVC inter-prediction process is based on a translation model similar to MPEG-2 and AVC, and the encoding efficiency when the image to be encoded is enlarged or reduced cannot be improved.
 本開示は、このような状況に鑑みてなされたものであり、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させることができるようにするものである。 The present disclosure has been made in view of such a situation, and is intended to improve encoding efficiency when an image to be encoded is enlarged or reduced.
 本開示の第1の側面の復号装置は、インター符号化画像に対する参照画像の拡大または縮小の率を表す拡大縮小率情報に基づいて、前記参照画像を拡大または縮小する拡大縮小部と、前記拡大縮小部により拡大または縮小された前記参照画像を用いて予測画像を生成する生成部と、前記生成部により生成された前記予測画像を用いて、前記インター符号化画像を復号する復号部とを備える復号装置である。 The decoding device according to the first aspect of the present disclosure includes an enlargement / reduction unit that enlarges or reduces the reference image based on enlargement / reduction rate information indicating a rate of enlargement or reduction of the reference image with respect to the inter-coded image, and the enlargement / reduction unit. A generating unit that generates a predicted image using the reference image enlarged or reduced by the reducing unit; and a decoding unit that decodes the inter-coded image using the predicted image generated by the generating unit. It is a decoding device.
 本開示の第1の側面の復号方法は、本開示の第1の側面の復号装置に対応する。 The decoding method according to the first aspect of the present disclosure corresponds to the decoding device according to the first aspect of the present disclosure.
 本開示の第1の側面においては、インター符号化画像に対する参照画像の拡大または縮小の率を表す拡大縮小率情報に基づいて、前記参照画像が拡大または縮小され、拡大または縮小された前記参照画像を用いて予測画像が生成され、前記予測画像を用いて、前記インター符号化画像が復号される。 In the first aspect of the present disclosure, the reference image is enlarged or reduced based on the enlargement / reduction rate information indicating the enlargement / reduction rate of the reference image with respect to the inter-coded image, and the reference image is enlarged or reduced. Is used to generate a predicted image, and the inter-coded image is decoded using the predicted image.
 本開示の第2の側面の符号化装置は、符号化対象の画像に対する参照画像の拡大または縮小の率を表す拡大縮小率情報に基づいて、前記参照画像を拡大または縮小する拡大縮小部と、前記拡大縮小部により拡大または縮小された前記参照画像を用いて予測画像を生成する生成部と、前記生成部により生成された前記予測画像を用いて、前記符号化対象の画像を符号化し、符号化データを生成する符号化部と、前記符号化部により生成された前記符号化データと前記拡大縮小率情報とを伝送する伝送部とを備える符号化装置である。 The encoding device according to the second aspect of the present disclosure includes an enlargement / reduction unit that enlarges or reduces the reference image based on enlargement / reduction rate information indicating a rate of enlargement or reduction of the reference image with respect to the image to be encoded; A generation unit that generates a prediction image using the reference image enlarged or reduced by the enlargement / reduction unit; and the encoding target image is encoded using the prediction image generated by the generation unit; An encoding device comprising: an encoding unit that generates encoded data; and a transmission unit that transmits the encoded data generated by the encoding unit and the enlargement / reduction ratio information.
 本開示の第2の側面の符号化方法は、本開示の第2の側面の符号化装置に対応する。 The encoding method according to the second aspect of the present disclosure corresponds to the encoding device according to the second aspect of the present disclosure.
 本開示の第2の側面においては、符号化対象の画像に対する参照画像の拡大または縮小の率を表す拡大縮小率情報に基づいて、前記参照画像が拡大または縮小され、拡大または縮小された前記参照画像を用いて予測画像が生成され、前記予測画像を用いて、前記符号化対象の画像が符号化されて符号化データが生成され、前記符号化データと前記拡大縮小率情報とが伝送される。 In the second aspect of the present disclosure, the reference image is enlarged or reduced based on the enlargement / reduction rate information indicating the enlargement / reduction rate of the reference image with respect to the encoding target image, and the reference is enlarged or reduced. A predicted image is generated using an image, the encoded image is generated using the predicted image, the encoded data is generated, and the encoded data and the enlargement / reduction ratio information are transmitted. .
 なお、第1の側面の復号装置および第2の側面の符号化装置は、コンピュータにプログラムを実行させることにより実現することができる。 The decoding device according to the first aspect and the encoding device according to the second aspect can be realized by causing a computer to execute a program.
 また、第1の側面の復号装置および第2の側面の符号化装置を実現するために、コンピュータに実行させるプログラムは、伝送媒体を介して伝送することにより、又は、記録媒体に記録して、提供することができる。 In order to realize the decoding device of the first aspect and the encoding device of the second aspect, a program to be executed by a computer is transmitted through a transmission medium or recorded on a recording medium, Can be provided.
 第1の側面の復号装置および第2の側面の符号化装置は、独立した装置であっても良いし、1つの装置を構成している内部ブロックであっても良い。 The decoding device of the first aspect and the encoding device of the second aspect may be independent devices or may be internal blocks constituting one device.
 ネットワークとは、少なくとも2つの装置が接続され、ある装置から、他の装置に対して、情報の伝達をできるようにした仕組みをいう。ネットワークを介して通信する装置は、独立した装置どうしであっても良いし、1つの装置を構成している内部ブロックどうしであっても良い。 The network is a mechanism in which at least two devices are connected and information can be transmitted from one device to another device. The devices that communicate via the network may be independent devices, or may be internal blocks that constitute one device.
 本開示の第1の側面によれば、符号化ストリームを復号することができる。また、本開示の第1の側面によれば、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させるように符号化された符号化ストリームを復号することができる。 According to the first aspect of the present disclosure, the encoded stream can be decoded. Further, according to the first aspect of the present disclosure, it is possible to decode an encoded stream that is encoded so as to improve encoding efficiency when an image to be encoded is enlarged or reduced.
 本開示の第2の側面によれば、画像を符号化することができる。また、本開示の第2の側面によれば、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させることができる。 According to the second aspect of the present disclosure, an image can be encoded. Also, according to the second aspect of the present disclosure, it is possible to improve the encoding efficiency when the encoding target image is enlarged or reduced.
 なお、ここに記載された効果は必ずしも限定されるものではなく、本開示中に記載されたいずれかの効果であってもよい。 It should be noted that the effects described here are not necessarily limited, and may be any of the effects described in the present disclosure.
本開示を適用した符号化装置の第1実施の形態の構成例を示すブロック図である。It is a block diagram which shows the structural example of 1st Embodiment of the encoding apparatus to which this indication is applied. 図1の符号化部の構成例を示すブロック図である。It is a block diagram which shows the structural example of the encoding part of FIG. CUを説明する図である。It is a figure explaining CU. 図2の動き予測・補償部の構成例を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration example of a motion prediction / compensation unit in FIG. 2. インター予測のPUを説明する図である。It is a figure explaining PU of inter prediction. 輝度信号に対する内挿フィルタ処理を説明する図である。It is a figure explaining the interpolation filter process with respect to a luminance signal. 輝度信号に対する内挿フィルタ処理のフィルタ係数を説明する図である。It is a figure explaining the filter coefficient of the interpolation filter process with respect to a luminance signal. 色差信号に対する内挿フィルタ処理を説明する図である。It is a figure explaining the interpolation filter process with respect to a color difference signal. 色差信号に対する内挿フィルタ処理のフィルタ係数を説明する図である。It is a figure explaining the filter coefficient of the interpolation filter process with respect to a color difference signal. 図4の参照画像バッファにおける読み出し処理を説明する図である。It is a figure explaining the read-out process in the reference image buffer of FIG. 図4の参照画像バッファにおける読み出し処理を説明する図である。It is a figure explaining the read-out process in the reference image buffer of FIG. マージモードにおける周辺PUの例を示す図である。It is a figure which shows the example of peripheral PU in merge mode. PUのmvd_codingのシンタクスの例を示す図である。It is a figure which shows the example of the syntax of mvd_coding of PU. 図1の符号化装置のストリーム生成処理を説明するフローチャートである。It is a flowchart explaining the stream production | generation process of the encoding apparatus of FIG. 図14の符号化処理の詳細を説明するフローチャートである。FIG. 15 is a flowchart for describing details of the encoding process of FIG. 14. FIG. 図14の符号化処理の詳細を説明するフローチャートである。FIG. 15 is a flowchart for describing details of the encoding process of FIG. 14. FIG. 図15の動き予測・補償処理の詳細を説明するフローチャートである。16 is a flowchart for explaining details of motion prediction / compensation processing in FIG. 15. 本開示を適用した復号装置の第1実施の形態の構成例を示すブロック図である。It is a block diagram which shows the structural example of 1st Embodiment of the decoding apparatus to which this indication is applied. 図18の復号部の構成例を示すブロック図である。It is a block diagram which shows the structural example of the decoding part of FIG. 図19の動き補償部の構成例を示すブロック図である。FIG. 20 is a block diagram illustrating a configuration example of a motion compensation unit in FIG. 19. 図18の復号装置の画像生成処理を説明するフローチャートである。It is a flowchart explaining the image generation process of the decoding apparatus of FIG. 図21の復号処理の詳細を説明するフローチャートである。It is a flowchart explaining the detail of the decoding process of FIG. 図22の動き補償処理の詳細を説明するフローチャートである。It is a flowchart explaining the detail of the motion compensation process of FIG. 参照方向ごとの拡大縮小率情報の算出方法を説明する図である。It is a figure explaining the calculation method of the expansion / contraction rate information for every reference direction. 本開示を適用した符号化装置の第2実施の形態の符号化部の構成例を示すブロック図である。It is a block diagram which shows the structural example of the encoding part of 2nd Embodiment of the encoding apparatus to which this indication is applied. 図25の動き予測・補償部の構成例を示すブロック図である。FIG. 26 is a block diagram illustrating a configuration example of a motion prediction / compensation unit in FIG. 25. 図25の符号化部の符号化処理を説明するフローチャートである。It is a flowchart explaining the encoding process of the encoding part of FIG. 図25の符号化部の符号化処理を説明するフローチャートである。It is a flowchart explaining the encoding process of the encoding part of FIG. 図27の動き予測・補償処理の詳細を説明するフローチャートである。It is a flowchart explaining the detail of the motion prediction and compensation process of FIG. 本開示を適用した復号装置の第2実施の形態の復号部の構成例を示すブロック図である。It is a block diagram which shows the structural example of the decoding part of 2nd Embodiment of the decoding apparatus to which this indication is applied. 図30の動き補償部の構成例を示すブロック図である。It is a block diagram which shows the structural example of the motion compensation part of FIG. 図30の復号部の復号処理を説明するフローチャートである。It is a flowchart explaining the decoding process of the decoding part of FIG. 図32の動き補償処理の詳細を説明するフローチャートである。FIG. 33 is a flowchart for describing details of a motion compensation process of FIG. 32. FIG. コンピュータのハードウエアの構成例を示すブロック図である。It is a block diagram which shows the structural example of the hardware of a computer. 多視点画像符号化方式の例を示す図である。It is a figure which shows the example of a multiview image encoding system. 本開示を適用した多視点画像符号化装置の構成例を示す図である。It is a figure which shows the structural example of the multiview image coding apparatus to which this indication is applied. 本開示を適用した多視点画像復号装置の構成例を示す図である。It is a figure which shows the structural example of the multiview image decoding apparatus to which this indication is applied. 階層画像符号化方式の例を示す図である。It is a figure which shows the example of a hierarchy image coding system. スペーシャルなスケーラブル符号化の例を説明する図である。It is a figure explaining the example of spatial scalable encoding. テンポラルなスケーラブル符号化の例を説明する図である。It is a figure explaining the example of temporal scalable encoding. 信号雑音比のスケーラブル符号化の例を説明する図である。It is a figure explaining the example of the scalable encoding of a signal noise ratio. 本開示を適用した階層画像符号化装置の構成例を示す図である。It is a figure which shows the structural example of the hierarchy image coding apparatus to which this indication is applied. 本開示を適用した階層画像復号装置の構成例を示す図である。It is a figure which shows the structural example of the hierarchy image decoding apparatus to which this indication is applied. 本開示を適用したテレビジョン装置の概略構成例を示す図である。It is a figure which shows the example of schematic structure of the television apparatus to which this indication is applied. 本開示を適用した携帯電話機の概略構成例を示す図である。It is a figure which shows the schematic structural example of the mobile telephone to which this indication is applied. 本開示を適用した記録再生装置の概略構成例を示す図である。It is a figure which shows the schematic structural example of the recording / reproducing apparatus to which this indication is applied. 本開示を適用した撮像装置の概略構成例を示す図である。It is a figure which shows the schematic structural example of the imaging device to which this indication is applied. スケーラブル符号化利用の一例を示すブロック図である。It is a block diagram which shows an example of scalable encoding utilization. スケーラブル符号化利用の他の例を示すブロック図である。It is a block diagram which shows the other example of scalable encoding utilization. スケーラブル符号化利用のさらに他の例を示すブロック図である。It is a block diagram which shows the further another example of scalable encoding utilization. 本開示を適用したビデオセットの概略的な構成の一例を示している。2 illustrates an example of a schematic configuration of a video set to which the present disclosure is applied. 本開示を適用したビデオプロセッサの概略的な構成の一例を示している。2 illustrates an example of a schematic configuration of a video processor to which the present disclosure is applied. 本開示を適用したビデオプロセッサの概略的な構成の他の例を示している。The other example of the schematic structure of the video processor to which this indication is applied is shown.
 <第1実施の形態>
 (符号化装置の第1実施の形態の構成例)
 図1は、本開示を適用した符号化装置の第1実施の形態の構成例を示すブロック図である。
<First embodiment>
(Configuration Example of First Embodiment of Encoding Device)
FIG. 1 is a block diagram illustrating a configuration example of a first embodiment of an encoding device to which the present disclosure is applied.
 図1の符号化装置10は、設定部11、符号化部12、および伝送部13により構成され、画像をHEVC方式に準ずる方式で符号化する。 The encoding apparatus 10 in FIG. 1 includes a setting unit 11, an encoding unit 12, and a transmission unit 13, and encodes an image by a method according to the HEVC method.
 具体的には、符号化装置10の設定部11は、SPS(Sequence Parameter Set),PPS(Picture Parameter Set),VUI(Video Usability Information),SEI(Supplemental Enhancement Information)などのパラメータセットを設定する。設定部11は、設定されたパラメータセットを符号化部12に供給する。 Specifically, the setting unit 11 of the encoding device 10 sets parameter sets such as SPS (Sequence Parameter Set), PPS (Picture Parameter Set), VUI (Video Usability Information), SEI (Supplemental Enhancement Information). The setting unit 11 supplies the set parameter set to the encoding unit 12.
 符号化部12には、フレーム単位の画像が入力される。符号化部12は、入力された画像をHEVC方式で符号化する。符号化部12は、符号化の結果得られる符号化データと設定部11から供給されるパラメータセットから符号化ストリームを生成し、伝送部13に供給する。 The frame unit image is input to the encoding unit 12. The encoding unit 12 encodes the input image using the HEVC method. The encoding unit 12 generates an encoded stream from the encoded data obtained as a result of encoding and the parameter set supplied from the setting unit 11, and supplies the encoded stream to the transmission unit 13.
 伝送部13は、符号化部12から供給される符号化ストリームを、後述する復号装置に伝送する。 The transmission unit 13 transmits the encoded stream supplied from the encoding unit 12 to a decoding device to be described later.
 (符号化部の構成例)
 図2は、図1の符号化部12の構成例を示すブロック図である。
(Configuration example of encoding unit)
FIG. 2 is a block diagram illustrating a configuration example of the encoding unit 12 of FIG.
 図2の符号化部12は、A/D変換部31、画面並べ替えバッファ32、演算部33、直交変換部34、量子化部35、可逆符号化部36、蓄積バッファ37、生成部38、逆量子化部39、逆直交変換部40、および加算部41を有する。また、符号化部12は、デブロックフィルタ42、適応オフセットフィルタ43、適応ループフィルタ44、フレームメモリ45、スイッチ46、イントラ予測部47、動き予測・補償部48、決定部49、予測画像選択部50、およびレート制御部51を有する。 2 includes an A / D conversion unit 31, a screen rearrangement buffer 32, a calculation unit 33, an orthogonal transformation unit 34, a quantization unit 35, a lossless encoding unit 36, an accumulation buffer 37, a generation unit 38, An inverse quantization unit 39, an inverse orthogonal transform unit 40, and an addition unit 41 are included. The encoding unit 12 includes a deblocking filter 42, an adaptive offset filter 43, an adaptive loop filter 44, a frame memory 45, a switch 46, an intra prediction unit 47, a motion prediction / compensation unit 48, a determination unit 49, and a prediction image selection unit. 50 and a rate control unit 51.
 符号化部12のA/D変換部31は、符号化対象として入力されたフレーム単位の画像をA/D変換する。A/D変換部31は、変換後のデジタル信号である画像を画面並べ替えバッファ32に出力して記憶させる。 The A / D conversion unit 31 of the encoding unit 12 performs A / D conversion on the frame-by-frame image input as an encoding target. The A / D conversion unit 31 outputs an image, which is a digital signal after conversion, to the screen rearrangement buffer 32 for storage.
 画面並べ替えバッファ32は、記憶した表示の順番のフレーム単位の画像を、GOP構造に応じて、符号化のための順番に並べ替える。画面並べ替えバッファ32は、並べ替え後の画像を、演算部33、イントラ予測部47、および動き予測・補償部48に出力する。 The screen rearrangement buffer 32 rearranges the stored frame-by-frame images in the order for encoding according to the GOP structure. The screen rearrangement buffer 32 outputs the rearranged image to the calculation unit 33, the intra prediction unit 47, and the motion prediction / compensation unit 48.
 演算部33は、符号化部として機能し、画面並べ替えバッファ32から供給される画像から、予測画像選択部50から供給される予測画像を減算することにより符号化を行う。演算部33は、その結果得られる画像を、残差情報として直交変換部34に出力する。なお、予測画像選択部50から予測画像が供給されない場合、演算部33は、画面並べ替えバッファ32から生成された画像をそのまま残差情報として直交変換部34に出力する。 The calculation unit 33 functions as an encoding unit, and performs encoding by subtracting the predicted image supplied from the predicted image selection unit 50 from the image supplied from the screen rearrangement buffer 32. The computing unit 33 outputs the resulting image to the orthogonal transform unit 34 as residual information. When the predicted image is not supplied from the predicted image selection unit 50, the calculation unit 33 outputs the image generated from the screen rearrangement buffer 32 to the orthogonal transform unit 34 as residual information as it is.
 直交変換部34は、演算部33からの残差情報をTU(transform unit)単位で直交変換する。直交変換部34は、直交変換の結果得られる直交変換係数を量子化部35に供給する。 The orthogonal transform unit 34 orthogonally transforms the residual information from the calculation unit 33 in units of TU (transform unit). The orthogonal transform unit 34 supplies an orthogonal transform coefficient obtained as a result of the orthogonal transform to the quantization unit 35.
 量子化部35は、直交変換部34から供給される直交変換係数に対して量子化を行う。量子化部35は、量子化された直交変換係数を可逆符号化部36に供給する。 The quantization unit 35 performs quantization on the orthogonal transform coefficient supplied from the orthogonal transform unit 34. The quantization unit 35 supplies the quantized orthogonal transform coefficient to the lossless encoding unit 36.
 可逆符号化部36は、最適イントラ予測モードを示すイントラ予測モード情報をイントラ予測部47から取得する。また、可逆符号化部36は、最適インター予測モードを示すインター予測モード情報、動きベクトルに関する動きベクトル情報、参照画像を特定する参照画像特定情報、拡大縮小率を表す拡大縮小率情報の符号化結果である符号化拡大縮小率情報などを動き予測・補償部48から取得する。拡大縮小率とは、符号化対象の画像に対する参照画像の拡大または縮小の率であり、ここでは、水平方向および垂直方向で同一である。 The lossless encoding unit 36 acquires the intra prediction mode information indicating the optimal intra prediction mode from the intra prediction unit 47. In addition, the lossless encoding unit 36 encodes the inter prediction mode information indicating the optimal inter prediction mode, the motion vector information regarding the motion vector, the reference image specifying information for specifying the reference image, and the scaling rate information indicating the scaling rate. Is obtained from the motion prediction / compensation unit 48. The enlargement / reduction rate is a rate of enlargement or reduction of the reference image with respect to the image to be encoded, and is the same in the horizontal direction and the vertical direction here.
 また、可逆符号化部36は、適応オフセットフィルタ43からオフセットフィルタに関するオフセットフィルタ情報を取得し、適応ループフィルタ44からフィルタ係数を取得する。 Also, the lossless encoding unit 36 acquires offset filter information related to the offset filter from the adaptive offset filter 43 and acquires filter coefficients from the adaptive loop filter 44.
 可逆符号化部36は、量子化部35から供給される量子化された直交変換係数に対して、可変長符号化(例えば、CAVLC(Context-Adaptive Variable Length Coding)など)、算術符号化(例えば、CABAC(Context-Adaptive Binary Arithmetic Coding)など)などの可逆符号化を行う。 The lossless encoding unit 36 performs variable-length coding (for example, CAVLC (Context-Adaptive Variable Length Coding)) and arithmetic coding (for example, for the quantized orthogonal transform coefficient supplied from the quantization unit 35. , CABAC (Context-Adaptive Binary Arithmetic Coding) etc.).
 また、可逆符号化部36は、イントラ予測モード情報、または、インター予測モード情報、動きベクトル情報、参照画像特定情報、および符号化拡大縮小率情報、オフセットフィルタ情報、並びにフィルタ係数を、符号化に関する符号化情報として可逆符号化する。可逆符号化部36は、可逆符号化された符号化情報と直交変換係数を、符号化データとして蓄積バッファ37に供給し、蓄積させる。なお、可逆符号化された符号化情報は、スライスヘッダ等のヘッダ部として符号化データに付加されるようにしてもよい。 The lossless encoding unit 36 also relates to encoding intra prediction mode information or inter prediction mode information, motion vector information, reference image specifying information, encoded scaling information, offset filter information, and filter coefficients. Lossless encoding is performed as encoded information. The lossless encoding unit 36 supplies the encoding information and the orthogonal transform coefficient, which have been losslessly encoded, to the accumulation buffer 37 as encoded data and accumulates them. Note that the losslessly encoded encoding information may be added to the encoded data as a header portion such as a slice header.
 蓄積バッファ37は、可逆符号化部36から供給される符号化データを、一時的に記憶する。また、蓄積バッファ37は、記憶している符号化データを生成部38に供給する。 The accumulation buffer 37 temporarily stores the encoded data supplied from the lossless encoding unit 36. The accumulation buffer 37 supplies the stored encoded data to the generation unit 38.
 生成部38は、図1の設定部11から供給されるパラメータセットと蓄積バッファ37から供給される符号化データから符号化ストリームを生成し、図1の伝送部13に供給する。 The generating unit 38 generates an encoded stream from the parameter set supplied from the setting unit 11 in FIG. 1 and the encoded data supplied from the accumulation buffer 37, and supplies the encoded stream to the transmission unit 13 in FIG.
 また、量子化部35より出力された、量子化された直交変換係数は、逆量子化部39にも入力される。逆量子化部39は、量子化部35により量子化された直交変換係数に対して、量子化部35における量子化方法に対応する方法で逆量子化を行う。逆量子化部39は、逆量子化の結果得られる直交変換係数を逆直交変換部40に供給する。 The quantized orthogonal transform coefficient output from the quantization unit 35 is also input to the inverse quantization unit 39. The inverse quantization unit 39 performs inverse quantization on the orthogonal transform coefficient quantized by the quantization unit 35 by a method corresponding to the quantization method in the quantization unit 35. The inverse quantization unit 39 supplies the orthogonal transform coefficient obtained as a result of the inverse quantization to the inverse orthogonal transform unit 40.
 逆直交変換部40は、TU単位で、逆量子化部39から供給される直交変換係数に対して、直交変換部34における直交変換方法に対応する方法で逆直交変換を行う。逆直交変換部40は、その結果得られる残差情報を加算部41に供給する。 The inverse orthogonal transform unit 40 performs inverse orthogonal transform on the orthogonal transform coefficient supplied from the inverse quantization unit 39 by a method corresponding to the orthogonal transform method in the orthogonal transform unit 34 in units of TUs. The inverse orthogonal transform unit 40 supplies the residual information obtained as a result to the addition unit 41.
 加算部41は、逆直交変換部40から供給される残差情報と、予測画像選択部50から供給される予測画像を加算し、局部的に復号を行う。なお、予測画像選択部50から予測画像が供給されない場合、加算部41は、逆直交変換部40から供給される残差情報を局部的に復号された画像とする。加算部41は、局部的に復号された画像をデブロックフィルタ42とフレームメモリ45に供給する。 The addition unit 41 adds the residual information supplied from the inverse orthogonal transform unit 40 and the prediction image supplied from the prediction image selection unit 50, and performs decoding locally. In addition, when a prediction image is not supplied from the prediction image selection part 50, the addition part 41 makes the residual information supplied from the inverse orthogonal transformation part 40 the image decoded locally. The adder 41 supplies the locally decoded image to the deblock filter 42 and the frame memory 45.
 デブロックフィルタ42は、加算部41から供給される局部的に復号された画像に対して、ブロック歪を除去するデブロックフィルタ処理を行い、その結果得られる画像を適応オフセットフィルタ43に供給する。 The deblocking filter 42 performs deblocking filter processing for removing block distortion on the locally decoded image supplied from the adding unit 41, and supplies the resulting image to the adaptive offset filter 43.
 適応オフセットフィルタ43は、デブロックフィルタ42によるデブロックフィルタ処理後の画像に対して、主にリンギングを除去する適応オフセットフィルタ(SAO(Sample adaptive offset))処理を行う。 The adaptive offset filter 43 performs an adaptive offset filter (SAO (Sample adaptive offset)) process that mainly removes ringing on the image after the deblock filter process by the deblock filter 42.
 具体的には、適応オフセットフィルタ43は、最大の符号化単位であるLCU(Largest Coding Unit)ごとに適応オフセットフィルタ処理の種類を決定し、その適応オフセットフィルタ処理で用いられるオフセットを求める。適応オフセットフィルタ43は、求められたオフセットを用いて、デブロックフィルタ処理後の画像に対して、決定された種類の適応オフセットフィルタ処理を行う。 Specifically, the adaptive offset filter 43 determines the type of adaptive offset filter processing for each LCU (Largest Coding Unit) which is the maximum coding unit, and obtains an offset used in the adaptive offset filter processing. The adaptive offset filter 43 performs the determined type of adaptive offset filter processing on the image after the deblocking filter processing using the obtained offset.
 適応オフセットフィルタ43は、適応オフセットフィルタ処理後の画像を適応ループフィルタ44に供給する。また、適応オフセットフィルタ43は、行われた適応オフセットフィルタ処理の種類とオフセットを示す情報を、オフセットフィルタ情報として可逆符号化部36に供給する。 The adaptive offset filter 43 supplies the image after the adaptive offset filter processing to the adaptive loop filter 44. Further, the adaptive offset filter 43 supplies information indicating the type and offset of the adaptive offset filter processing performed to the lossless encoding unit 36 as offset filter information.
 適応ループフィルタ44は、例えば、2次元のウィナーフィルタ(Wiener Filter)により構成される。適応ループフィルタ44は、適応オフセットフィルタ43から供給される適応オフセットフィルタ処理後の画像に対して、例えば、LCUごとに、適応ループフィルタ(ALF(Adaptive Loop Filter))処理を行う。 The adaptive loop filter 44 is constituted by, for example, a two-dimensional Wiener filter. The adaptive loop filter 44 performs an adaptive loop filter (ALF (Adaptive Loop Filter)) process on the image after the adaptive offset filter process supplied from the adaptive offset filter 43, for example, for each LCU.
 具体的には、適応ループフィルタ44は、LCUごとに、画面並べ替えバッファ32から出力される画像である原画像と適応ループフィルタ処理後の画像の残差が最小となるように、適応ループフィルタ処理で用いられるフィルタ係数を算出する。そして、適応ループフィルタ44は、適応オフセットフィルタ処理後の画像に対して、算出されたフィルタ係数を用いて、LCUごとに適応ループフィルタ処理を行う。 Specifically, the adaptive loop filter 44 is configured so that the residual of the original image that is the image output from the screen rearrangement buffer 32 and the image after the adaptive loop filter processing is minimized for each LCU. A filter coefficient used in the processing is calculated. Then, the adaptive loop filter 44 performs adaptive loop filter processing for each LCU using the calculated filter coefficient on the image after the adaptive offset filter processing.
 適応ループフィルタ44は、適応ループフィルタ処理後の画像をフレームメモリ45に供給する。また、適応ループフィルタ44は、適応ループフィルタ処理に用いられたフィルタ係数を可逆符号化部36に供給する。 The adaptive loop filter 44 supplies the image after the adaptive loop filter processing to the frame memory 45. The adaptive loop filter 44 supplies the filter coefficient used for the adaptive loop filter process to the lossless encoding unit 36.
 なお、ここでは、適応ループフィルタ処理は、LCUごとに行われるものとするが、適応ループフィルタ処理の処理単位は、LCUに限定されない。但し、適応オフセットフィルタ43と適応ループフィルタ44の処理単位を合わせることにより、処理を効率的に行うことができる。 Note that here, the adaptive loop filter processing is performed for each LCU, but the processing unit of the adaptive loop filter processing is not limited to the LCU. However, the processing can be efficiently performed by combining the processing units of the adaptive offset filter 43 and the adaptive loop filter 44.
 フレームメモリ45は、適応ループフィルタ44から供給される画像と、加算部41から供給される画像を蓄積する。フレームメモリ45に蓄積されたフィルタ処理が行われていない画像のうちのPU(Prediction Unit)に隣接する画素は、周辺画素としてスイッチ46を介してイントラ予測部47に供給される。一方、フレームメモリ45に蓄積されたフィルタ処理が行われた画像は、参照画像としてスイッチ46を介して動き予測・補償部48に出力される。 The frame memory 45 stores the image supplied from the adaptive loop filter 44 and the image supplied from the adder 41. Pixels adjacent to a PU (Prediction Unit) in an image that has not been subjected to filter processing accumulated in the frame memory 45 are supplied to the intra prediction unit 47 via the switch 46 as peripheral pixels. On the other hand, the filtered image stored in the frame memory 45 is output to the motion prediction / compensation unit 48 via the switch 46 as a reference image.
 イントラ予測部47は、PU単位で、フレームメモリ45からスイッチ46を介して読み出された周辺画素を用いて、候補となる全てのイントラ予測モードのイントラ予測処理を行う。 The intra prediction unit 47 performs intra prediction processing for all candidate intra prediction modes using peripheral pixels read from the frame memory 45 via the switch 46 in units of PUs.
 また、イントラ予測部47は、画面並べ替えバッファ32から読み出された画像と、イントラ予測処理の結果生成される予測画像とに基づいて、候補となる全てのイントラ予測モードに対してコスト関数値(詳細は後述する)を算出する。そして、イントラ予測部47は、コスト関数値が最小となるイントラ予測モードを、最適イントラ予測モードに決定する。 Further, the intra prediction unit 47 calculates cost function values for all candidate intra prediction modes based on the image read from the screen rearrangement buffer 32 and the prediction image generated as a result of the intra prediction process. (Details will be described later). Then, the intra prediction unit 47 determines the intra prediction mode that minimizes the cost function value as the optimal intra prediction mode.
 イントラ予測部47は、最適イントラ予測モードで生成された予測画像、および、対応するコスト関数値を、予測画像選択部50に供給する。イントラ予測部47は、予測画像選択部50から最適イントラ予測モードで生成された予測画像の選択が通知された場合、イントラ予測モード情報を可逆符号化部36に供給する。 The intra prediction unit 47 supplies the predicted image generated in the optimal intra prediction mode and the corresponding cost function value to the predicted image selection unit 50. The intra prediction unit 47 supplies the intra prediction mode information to the lossless encoding unit 36 when the prediction image selection unit 50 is notified of the selection of the prediction image generated in the optimal intra prediction mode.
 なお、コスト関数値は、RD(Rate Distortion)コストともいい、例えば、H.264/AVC方式における参照ソフトウエアであるJM(Joint Model)で定められているような、High Complexity モードまたはLow Complexity モードの手法に基づいて算出される。なお、H.264/AVC方式における参照ソフトウエアは、http://iphome.hhi.de/suehring/tml/index.htmにおいて公開されている。 Note that the cost function value is also called RD (Rate Distortion) cost. It is calculated based on a method of High Complexity mode or Low Complexity mode as defined by JM (Joint Model) which is reference software in the H.264 / AVC format. H. Reference software in the H.264 / AVC format is published at http://iphome.hhi.de/suehring/tml/index.htm.
 具体的には、コスト関数値の算出手法としてHigh Complexity モードが採用される場合、候補となる全ての予測モードに対して、仮に復号までが行われ、次の式(1)で表わされるコスト関数値が各予測モードに対して算出される。 Specifically, when the High Complexity 採用 mode is employed as a cost function value calculation method, all candidate prediction modes are temporarily decoded until the cost function represented by the following equation (1) A value is calculated for each prediction mode.
Figure JPOXMLDOC01-appb-M000001
Figure JPOXMLDOC01-appb-M000001
 Dは、原画像と復号画像の差分(歪)、Rは、直交変換の係数まで含んだ発生符号量、λは、量子化パラメータQPの関数として与えられるラグランジュ未定乗数である。 D is the difference (distortion) between the original image and the decoded image, R is the generated code amount including even the coefficient of orthogonal transformation, and λ is the Lagrange undetermined multiplier given as a function of the quantization parameter QP.
 一方、コスト関数値の算出手法としてLow Complexity モードが採用される場合、候補となる全ての予測モードに対して、予測画像の生成、および、符号化情報の符号量の算出が行われ、次の式(2)で表わされるコスト関数Cost(Mode)が各予測モードに対して算出される。 On the other hand, when Low Complexity mode is adopted as a cost function value calculation method, prediction image generation and code amount calculation of encoding information are performed for all candidate prediction modes. A cost function Cost (Mode) expressed by Equation (2) is calculated for each prediction mode.
Figure JPOXMLDOC01-appb-M000002
Figure JPOXMLDOC01-appb-M000002
 Dは、原画像と予測画像の差分(歪)、Header_Bitは、符号化情報の符号量、QPtoQuantは、量子化パラメータQPの関数として与えられる関数である。 D is the difference (distortion) between the original image and the predicted image, Header_Bit is the code amount of the encoding information, and QPtoQuant is a function given as a function of the quantization parameter QP.
 Low Complexity モードにおいては、全ての予測モードに対して、予測画像を生成するだけでよく、復号画像を生成する必要がないため、演算量が少なくて済む。 In the Low Complexity mode, it is only necessary to generate a prediction image for all prediction modes, and it is not necessary to generate a decoded image.
 動き予測・補償部48は、PU単位で、決定部49から供給される拡大縮小率、候補となるインター予測モード、動きベクトル、および参照画像に基づいて、動き予測・補償処理を行う。具体的には、動き予測・補償部48は、フレームメモリ45からスイッチ46を介して候補となる参照画像を読み出す。動き予測・補償部48は、参照画像に対して内挿フィルタ処理を行うことにより、参照画像を高解像度化する。 The motion prediction / compensation unit 48 performs motion prediction / compensation processing for each PU based on the enlargement / reduction ratio, candidate inter prediction mode, motion vector, and reference image supplied from the determination unit 49. Specifically, the motion prediction / compensation unit 48 reads candidate reference images from the frame memory 45 via the switch 46. The motion prediction / compensation unit 48 increases the resolution of the reference image by performing an interpolation filter process on the reference image.
 また、動き予測・補償部48は、候補となるインター予測モード、分数画素精度の動きベクトル、および拡大縮小率に基づいて、高解像度化された参照画像に補償処理を施し、予測画像を生成する。なお、インター予測モードとは、PUのサイズと動きベクトルの符号化モードを表すモードである。動きベクトルの符号化モードとしては、マージモード、AMVP(Advanced Motion Vector Prediction)モードなどがある。 In addition, the motion prediction / compensation unit 48 performs compensation processing on the reference image with high resolution based on the candidate inter prediction mode, the motion vector with fractional pixel accuracy, and the enlargement / reduction ratio, and generates a prediction image. . The inter prediction mode is a mode representing a PU size and a motion vector coding mode. The motion vector coding mode includes a merge mode, an AMVP (Advanced Motion Vector Prediction) mode, and the like.
 マージモードとは、処理対象のPUの時間的および空間的に周辺のPU(以下、周辺PUという)の動きベクトルを用いて処理対象のPUの動きベクトルを生成し、動きベクトル情報を伝送しないモードである。なお、時間的な周辺PUの動きベクトルは、マージモードの動きベクトルの生成に用いないようにすることもできる。この場合、時間的な周辺PUの動きベクトルをマージモードの動きベクトルの生成に用いないかどうかを表す情報(emporal_mvp_enabled_flag)がSPSまたはスライスヘッダに設定されるようにしてもよい。 The merge mode is a mode in which motion vectors of a processing target PU are generated using motion vectors of temporally and spatially neighboring PUs (hereinafter referred to as neighboring PUs) of the processing target PU, and no motion vector information is transmitted. It is. Note that temporal motion vectors of peripheral PUs may not be used for generating motion vectors in merge mode. In this case, information (emporal_mvp_enabled_flag) indicating whether the temporal motion vector of the peripheral PU is not used for generating the motion vector in the merge mode may be set in the SPS or the slice header.
 また、AMVPモードとは、周辺PUの動きベクトルと処理対象のPUの動きベクトルの差分を、動きベクトル情報として伝送するモードである。動きベクトルの符号化モードがマージモードであり、直交変換係数が伝送されないブロックが、スキップモードブロック(スキップマクロ)である。 Also, the AMVP mode is a mode in which the difference between the motion vector of the peripheral PU and the motion vector of the processing target PU is transmitted as motion vector information. A motion vector encoding mode is a merge mode, and a block in which orthogonal transform coefficients are not transmitted is a skip mode block (skip macro).
 また、動き予測・補償部48は、画面並べ替えバッファ32から供給される画像と予測画像とに基づいて、インター予測モード、動きベクトル、拡大縮小率、および参照画像の組み合わせに対してコスト関数値を算出する。動き予測・補償部48は、コスト関数値が最小となるインター予測モードを最適インター予測モードに決定する。また、動き予測・補償部48は、コスト関数値が最小となる動きベクトル、拡大縮小率、および参照画像を、最適な動きベクトル、拡大縮小率、および参照画像に決定する。そして、動き予測・補償部48は、最適インター予測モードの予測画像とコスト関数値を予測画像選択部50に供給する。 Further, the motion prediction / compensation unit 48 uses the cost function value for the combination of the inter prediction mode, the motion vector, the enlargement / reduction ratio, and the reference image based on the image and the predicted image supplied from the screen rearrangement buffer 32. Is calculated. The motion prediction / compensation unit 48 determines the inter prediction mode that minimizes the cost function value as the optimal inter prediction mode. In addition, the motion prediction / compensation unit 48 determines the motion vector, the enlargement / reduction ratio, and the reference image that minimize the cost function value as the optimum motion vector, enlargement / reduction ratio, and reference image. Then, the motion prediction / compensation unit 48 supplies the prediction image in the optimal inter prediction mode and the cost function value to the prediction image selection unit 50.
 また、動き予測・補償部48は、予測画像選択部50から最適インター予測モードで生成された予測画像の選択が通知された場合、インター予測モード情報、並びに、最適な動きベクトルの動きベクトル情報、参照画像の参照画像特定情報、および拡大縮小率の符号化拡大縮小率情報を可逆符号化部36に出力する。 Further, when the prediction image selection unit 50 is notified of selection of a prediction image generated in the optimal inter prediction mode, the motion prediction / compensation unit 48 receives inter prediction mode information, motion vector information of an optimal motion vector, The reference image specifying information of the reference image and the encoded enlargement / reduction rate information of the enlargement / reduction rate are output to the lossless encoding unit 36.
 決定部49は、PU単位で、候補となる拡大縮小率を動き予測・補償部48に供給する。本実施の形態では、拡大縮小率は、水平方向および垂直方向で共通の2(rは整数)であり、拡大縮小率情報はrを表す。 The determination unit 49 supplies the candidate enlargement / reduction ratio to the motion prediction / compensation unit 48 in units of PUs. In the present embodiment, the enlargement / reduction ratio is 2 r (r is an integer) that is common in the horizontal direction and the vertical direction, and the enlargement / reduction ratio information represents r.
 予測画像選択部50は、イントラ予測部47および動き予測・補償部48から供給されるコスト関数値に基づいて、最適イントラ予測モードと最適インター予測モードのうちの、対応するコスト関数値が小さい方を、最適予測モードに決定する。そして、予測画像選択部50は、最適予測モードの予測画像を、演算部33および加算部41に供給する。また、予測画像選択部50は、最適予測モードの予測画像の選択をイントラ予測部47または動き予測・補償部48に通知する。 Based on the cost function values supplied from the intra prediction unit 47 and the motion prediction / compensation unit 48, the predicted image selection unit 50 has a smaller cost function value corresponding to one of the optimal intra prediction mode and the optimal inter prediction mode. Are determined as the optimum prediction mode. Then, the predicted image selection unit 50 supplies the predicted image in the optimal prediction mode to the calculation unit 33 and the addition unit 41. Further, the predicted image selection unit 50 notifies the intra prediction unit 47 or the motion prediction / compensation unit 48 of selection of the predicted image in the optimal prediction mode.
 レート制御部51は、蓄積バッファ37に蓄積された符号化データに基づいて、オーバーフローあるいはアンダーフローが発生しないように、量子化部35の量子化動作のレートを制御する。 The rate control unit 51 controls the quantization operation rate of the quantization unit 35 based on the encoded data stored in the storage buffer 37 so that overflow or underflow does not occur.
 (符号化単位の説明)
 図3は、HEVC方式における符号化単位であるCoding Unit(CU)を説明する図である。
(Description of coding unit)
FIG. 3 is a diagram for explaining Coding Unit (CU), which is a coding unit in the HEVC scheme.
 HEVC方式では、4000画素×2000画素のUHD(Ultra High Definition)などのような大きな画枠の画像も対象としているため、符号化単位のサイズを16画素×16画素に固定することは最適ではない。従って、HEVC方式では、符号化単位としてCUが定義されている。このCUの詳細については、非特許文献1に記載されている。 Since the HEVC system also targets images with large image frames such as UHD (Ultra High Definition) with 4000 pixels by 2000 pixels, it is not optimal to fix the encoding unit size to 16 pixels by 16 pixels. . Therefore, in the HEVC scheme, CU is defined as a coding unit. Details of this CU are described in Non-Patent Document 1.
 CUは、AVC方式におけるマクロブロックと同様の役割を果たす。具体的には、CUはPUに分割されたり、TUに分割されたりする。TUのサイズは、例えば、4×4画素、16×16画素、32×32画素である。 CU plays the same role as a macroblock in the AVC method. Specifically, the CU is divided into PUs or TUs. The size of the TU is, for example, 4 × 4 pixels, 16 × 16 pixels, or 32 × 32 pixels.
 但し、CUのサイズは、シーケンスごとに可変の2のべき乗画素で表される正方形である。具体的には、CUは、最大のサイズのCUであるLCUを、最小のサイズのCUであるSCU(Smallest Coding Unit)より小さくならないように、任意の回数だけ水平方向および垂直方向に2分割することにより設定される。即ち、LCUを、SCUになるまで、上の階層のサイズが下の階層のサイズの1/4となるように階層化したときの任意の階層のサイズがCUのサイズである。 However, the size of the CU is a square represented by a power-of-two pixel that is variable for each sequence. Specifically, the CU divides the LCU, which is the largest CU, into two in the horizontal direction and the vertical direction an arbitrary number of times so as not to be smaller than the SCU (Smallest Coding Unit) which is the smallest CU. Is set by That is, the size of an arbitrary hierarchy when the LCU is hierarchized so that the size of the upper hierarchy becomes 1/4 of the size of the lower hierarchy until the SCU becomes the SCU is the size of the CU.
 例えば、図3では、LCUのサイズが128であり、SCUのサイズが8である。従って、LCUの階層深度(Depth)は0乃至4となり、階層深度数は5となる。即ち、CUに対応する分割数は0乃至4のいずれかである。 For example, in FIG. 3, the LCU size is 128 and the SCU size is 8. Accordingly, the hierarchical depth (Depth) of the LCU is 0 to 4, and the hierarchical depth number is 5. That is, the number of divisions corresponding to the CU is one of 0 to 4.
 なお、LCUとSCUのサイズを指定する情報は、SPSに含められる。また、CUに対応する分割数は、各階層においてさらに分割するかどうかを表すsplit_flagにより指定される。 Note that information specifying the LCU and SCU sizes is included in the SPS. Also, the number of divisions corresponding to the CU is specified by split_flag indicating whether or not to further divide each layer.
 TUのサイズは、CUのsplit_flagと同様に、split_transform_flagを用いて指定することができる。インター予測時およびイントラ予測時のTUの最大分割数は、それぞれ、max_transform_hierarchy_depth_inter,max_transform_hierarchy_depth_intraとして、SPSにより指定される。 TU size can be specified using split_transform_flag, similar to CU split_flag. The maximum number of TU divisions at the time of inter prediction and intra prediction is specified by SPS as max_transform_hierarchy_depth_inter and max_transform_hierarchy_depth_intra, respectively.
 また、本明細書において、CTU(Coding Tree Unit)は、LCUのCTB(Coding Tree Block)と、そのLCUベース(レベル)で処理するときのパラメータを含む単位であるとする。また、CTUを構成するCUは、CB(Coding Block)と、そのCUベース(レベル)で処理するときのパラメータを含む単位であるとする。 Also, in this specification, CTU (Coding Tree Unit) is a unit including parameters for processing in CTB (Coding Tree Block) of LCU and its LCU base (level). Further, it is assumed that a CU constituting a CTU is a unit including CB (Coding Block) and a parameter for processing on the CU base (level).
 (動き予測・補償部の構成例)
 図4は、図2の動き予測・補償部48の構成例を示すブロック図である。
(Configuration example of motion prediction / compensation unit)
FIG. 4 is a block diagram illustrating a configuration example of the motion prediction / compensation unit 48 of FIG.
 図4の動き予測・補償部48は、線形内挿フィルタ81、参照画像バッファ82、ローパスフィルタ83、生成部84、入力画像バッファ85、PUバッファ86、算出部87、決定部88、および情報符号化部89により構成される。 The motion prediction / compensation unit 48 of FIG. 4 includes a linear interpolation filter 81, a reference image buffer 82, a low-pass filter 83, a generation unit 84, an input image buffer 85, a PU buffer 86, a calculation unit 87, a determination unit 88, and an information code. It is comprised by the conversion part 89.
 動き予測・補償部48の線形内挿フィルタ81は、2次元の線形内挿フィルタである。線形内挿フィルタ81は、候補となる参照画像をフレームメモリ45からスイッチ46を介して読み出す。線形内挿フィルタ81は、読み出された参照画像に対して内挿フィルタ処理を行うことにより、高解像度化を行う。線形内挿フィルタ81は、高解像度化された参照画像を参照画像バッファ82に供給する。 The linear interpolation filter 81 of the motion prediction / compensation unit 48 is a two-dimensional linear interpolation filter. The linear interpolation filter 81 reads candidate reference images from the frame memory 45 via the switch 46. The linear interpolation filter 81 increases the resolution by performing an interpolation filter process on the read reference image. The linear interpolation filter 81 supplies the reference image with a high resolution to the reference image buffer 82.
 参照画像バッファ82は、線形内挿フィルタ81から供給される参照画像を保持する。参照画像バッファ82は、拡大縮小部として機能し、決定部49から供給される拡大縮小率に基づいて、保持している参照画像を読み出すことにより、拡大縮小率で拡大または縮小された参照画像を生成し、ローパスフィルタ83に供給する。 The reference image buffer 82 holds the reference image supplied from the linear interpolation filter 81. The reference image buffer 82 functions as an enlargement / reduction unit, and reads out a stored reference image based on the enlargement / reduction rate supplied from the determination unit 49, so that the reference image enlarged or reduced at the enlargement / reduction rate can be obtained. Generated and supplied to the low-pass filter 83.
 ローパスフィルタ83は、例えば、121型のローパスフィルタである。ローパスフィルタ83は、参照画像バッファ82から供給される参照画像に対して、水平方向および垂直方向にローパスフィルタ処理を施す。これにより、参照画像の折り返し歪みを減少させることができる。その結果、予測精度が向上し、符号化効率が向上する。ローパスフィルタ83は、ローパスフィルタ処理後の参照画像を生成部84に供給する。 The low pass filter 83 is, for example, a 121 type low pass filter. The low-pass filter 83 performs low-pass filter processing on the reference image supplied from the reference image buffer 82 in the horizontal direction and the vertical direction. Thereby, the aliasing distortion of the reference image can be reduced. As a result, prediction accuracy is improved and coding efficiency is improved. The low pass filter 83 supplies the reference image after the low pass filter process to the generation unit 84.
 生成部84は、PU単位で、候補となる動きベクトルに基づいて、ローパスフィルタ83から供給される参照画像に補償処理を施し、予測画像を生成する。生成部84は、予測画像を算出部87に供給する。候補となる動きベクトルは、マージモードまたはAMVPモード時の動きベクトルとしての、周辺PUの動きベクトルを用いて決定される動きベクトルと、分数精度の所定の動きベクトルである。 The generation unit 84 performs a compensation process on the reference image supplied from the low-pass filter 83 based on a candidate motion vector in units of PUs, and generates a predicted image. The generation unit 84 supplies the predicted image to the calculation unit 87. The candidate motion vectors are a motion vector determined using a motion vector of a peripheral PU as a motion vector in the merge mode or AMVP mode, and a predetermined motion vector with fractional accuracy.
 入力画像バッファ85は、画面並べ替えバッファ32から供給される画像を保持する。入力画像バッファ85は、候補となるインター予測モードごとに、保持している画像をPU単位でPUバッファ86に供給する。PUバッファ86は、入力画像バッファ85から供給されるPU単位の画像を保持する。 The input image buffer 85 holds the image supplied from the screen rearrangement buffer 32. The input image buffer 85 supplies the held image to the PU buffer 86 in units of PUs for each candidate inter prediction mode. The PU buffer 86 holds the PU unit image supplied from the input image buffer 85.
 算出部87は、PUバッファ86からPU単位の画像を読み出す。算出部87は、インター予測モード、動きベクトル、参照画像、および拡大縮小率の組み合わせに対して、読み出された画像と予測画像とに基づいて、コスト関数値を算出する。算出部87は、コスト関数値と、対応するインター予測モード、動きベクトル、参照画像、および拡大縮小率の組み合わせ並びに予測画像とを決定部88に供給する。 The calculation unit 87 reads an image in PU units from the PU buffer 86. The calculation unit 87 calculates a cost function value based on the read image and the predicted image for the combination of the inter prediction mode, the motion vector, the reference image, and the enlargement / reduction ratio. The calculation unit 87 supplies the cost function value, the corresponding inter prediction mode, the motion vector, the reference image, the combination of the enlargement / reduction ratio, and the prediction image to the determination unit 88.
 決定部88は、算出部87から供給されるコスト関数値が最小となるときのインター予測モードを最適インター予測モードに決定し、動きベクトル、参照画像、および拡大縮小率を最適な動きベクトル、参照画像、および拡大縮小率に決定する。決定部88は、最適インター予測モードの予測画像とコスト関数値を図2の予測画像選択部50に供給する。また、予測画像選択部50から最適インター予測モードで生成された予測画像の選択が通知された場合、決定部88は、最適インター予測モード、並びに、最適な動きベクトル、参照画像の参照画像特定情報、および拡大縮小率の拡大縮小率情報を情報符号化部89に供給する。 The determination unit 88 determines the inter prediction mode when the cost function value supplied from the calculation unit 87 is the minimum as the optimal inter prediction mode, and determines the motion vector, reference image, and scaling ratio as the optimal motion vector and reference. Determine the image and the enlargement / reduction ratio. The determination unit 88 supplies the prediction image and the cost function value in the optimal inter prediction mode to the prediction image selection unit 50 in FIG. In addition, when the prediction image selection unit 50 notifies the selection of the prediction image generated in the optimal inter prediction mode, the determination unit 88 determines the optimal inter prediction mode, the optimal motion vector, and the reference image specifying information of the reference image. , And the enlargement / reduction ratio information of the enlargement / reduction ratio is supplied to the information encoding unit 89.
 情報符号化部89は、決定部88から供給される拡大縮小率情報をコンテクストモデリングにより符号化し、符号化拡大縮小率情報を生成する。具体的には、情報符号化部89は、処理対象のPUの拡大縮小率情報と処理対象のPUの周辺のPUの拡大縮小率情報の差分を、符号化拡大縮小率情報として算出する。 The information encoding unit 89 encodes the enlargement / reduction rate information supplied from the determination unit 88 by context modeling, and generates encoded enlargement / reduction rate information. Specifically, the information encoding unit 89 calculates a difference between the enlargement / reduction rate information of the processing target PU and the enlargement / reduction rate information of the PUs around the processing target PU as the encoded enlargement / reduction rate information.
 また、情報符号化部89は、動きベクトルの符号化モードがマージモードである場合、動きベクトル情報として何も生成しない。情報符号化部89は、動きベクトルの符号化モードがAMVPモードである場合、処理対象のPUの動きベクトルと周辺PUの動きベクトルの差分を、動きベクトル情報として生成する。一方、動きベクトルの符号化モードがマージモードおよびAMVPモードではない場合、情報符号化部89は、処理対象のPUの動きベクトルを表す情報を動きベクトル情報として生成する。 Also, when the motion vector encoding mode is the merge mode, the information encoding unit 89 generates nothing as motion vector information. When the motion vector encoding mode is the AMVP mode, the information encoding unit 89 generates a difference between the motion vector of the processing target PU and the motion vector of the peripheral PU as motion vector information. On the other hand, when the motion vector encoding mode is not the merge mode or AMVP mode, the information encoding unit 89 generates information representing the motion vector of the PU to be processed as motion vector information.
 情報符号化部89は、インター予測モード情報、動きベクトル情報、参照画像特定情報、および符号化拡大縮小率情報を図2の可逆符号化部36に供給する。 The information encoding unit 89 supplies the inter prediction mode information, motion vector information, reference image specifying information, and encoded enlargement / reduction rate information to the lossless encoding unit 36 of FIG.
 (インター予測のPUの説明)
 図5は、インター予測のPU(動き補償パーテーション)を説明する図である。
(Explanation of inter prediction PU)
FIG. 5 is a diagram illustrating inter prediction PU (motion compensation partition).
 図5では、CUが2N×2N画素であるものとする。 In FIG. 5, CU is assumed to be 2N × 2N pixels.
 インター予測のPUは、図5の上段に示すようにCUを対称分割したり、図5の下段に示すようにCUを非対称分割したりすることにより形成される。 The PU of inter prediction is formed by dividing a CU symmetrically as shown in the upper part of FIG. 5 or asymmetrically dividing a CU as shown in the lower part of FIG.
 具体的には、インター予測のPUは、CUそのものである2N×2N画素、CUを左右対称に2分割したN×2N画素、またはCUを上下対称に2分割した2N×N画素とすることができる。但し、インター予測のPUは、CUを上下左右対称に2分割したN×N画素とすることはできない。従って、例えば、16×16画素をインター予測のPUとする場合には、CUを32×32画素ではなく、16×16画素にする必要がある。 Specifically, the PU of inter prediction may be a 2N × 2N pixel that is a CU itself, an N × 2N pixel that bisects a CU bilaterally, or a 2N × N pixel that bisects a CU vertically. it can. However, the inter prediction PU cannot be an N × N pixel obtained by dividing the CU into two vertically and horizontally symmetrically. Therefore, for example, when 16 × 16 pixels are used as an inter prediction PU, the CU needs to be 16 × 16 pixels instead of 32 × 32 pixels.
 また、インター予測のPUは、CUを非対称分割(AMP(asymmetric motion partition))することにより構成されることもできる。即ち、インター予測のPUは、CUを左右非対称に左側が小さくなるように2分割した1/2N×2N画素(Left)、またはCUを左右非対称に右側が小さくなるように2分割した1/2N×2N画素(Right)とすることもできる。また、インター予測のPUは、CUを上下非対称に上側が小さくなるように2分割した2N×1/2N画素(Upper)、または、CUを上下非対称に下側が小さくなるように2分割した2N×1/2N画素(Lower)とすることもできる。 Also, the PU of inter prediction can be configured by asymmetric partitioning (AMP (asymmetric motion partition)). That is, the inter prediction PU is ½N × 2N pixels (Left) obtained by dividing the CU into two parts so that the left side is asymmetrically left or right, or ½N obtained by dividing the CU into two parts so that the right side is asymmetrically reduced. × 2N pixels (Right) can also be used. The inter prediction PU is a 2N × 1 / 2N pixel (Upper) obtained by dividing the CU into two parts so that the upper side is asymmetrical in the vertical direction, or 2N × 1 / 2N pixels (upper) obtained by dividing the CU into two parts so that the lower side is asymmetrical in the vertical direction A 1 / 2N pixel (Lower) can also be used.
 インター予測のPUが、CUを非対称分割することにより構成されるかどうかを表す情報(amp_enabled_flag)は、SPSに設定される。 Information (amp_enabled_flag) indicating whether or not the inter prediction PU is configured by asymmetrical division of the CU is set in the SPS.
 インター予測の各PUに対しては、独立して、インター予測モード、動きベクトル、参照画像、拡大縮小率などが設定される。HEVC方式では、CUの最小サイズが8×8画素であり、インター予測のPUの最小サイズは、4×8画素または8×4画素である。HEVC方式では、メモリバンド幅を緩和するため、インター予測のPUのサイズを4×4画素とすることはできない。 Inter prediction mode, motion vector, reference image, enlargement / reduction ratio, etc. are set independently for each PU of inter prediction. In the HEVC scheme, the minimum size of the CU is 8 × 8 pixels, and the minimum size of the PU for inter prediction is 4 × 8 pixels or 8 × 4 pixels. In the HEVC scheme, the size of the inter prediction PU cannot be set to 4 × 4 pixels in order to reduce the memory bandwidth.
 (輝度信号に対する内挿フィルタ処理の説明)
 図6は、図4の線形内挿フィルタ81による輝度信号に対する内挿フィルタ処理を説明する図である。
(Description of interpolation filter processing for luminance signal)
FIG. 6 is a diagram for explaining the interpolation filter processing for the luminance signal by the linear interpolation filter 81 of FIG.
 なお、図6において、斜線が付された正方形は、内挿フィルタ処理前の参照画像の画素(以下、前画素という)を表し、斜線が付されていな正方形は、内挿フィルタ処理後の参照画像の画素(以下、後画素という)を表す。このことは、後述する図8においても同様である。 In FIG. 6, a hatched square represents a reference image pixel (hereinafter referred to as a previous pixel) before the interpolation filter process, and a hatched square represents a reference after the interpolation filter process. It represents a pixel of an image (hereinafter referred to as a back pixel). The same applies to FIG. 8 described later.
 動き予測・補償部48は、1/4画素精度で輝度信号の動き予測・補償処理を行う。従って、線形内挿フィルタ81は、8タップまたは7タップの2次元の線形内挿適応フィルタを用いて、参照画像の輝度信号に対して水平方向および垂直方向に内挿フィルタ処理を行うことにより、前画素の間隔の1/4の間隔の後画素を生成する。 The motion prediction / compensation unit 48 performs motion prediction / compensation processing of the luminance signal with 1/4 pixel accuracy. Therefore, the linear interpolation filter 81 performs an interpolation filter process in the horizontal direction and the vertical direction on the luminance signal of the reference image using an 8-tap or 7-tap two-dimensional linear interpolation adaptive filter. A pixel after an interval that is 1/4 of the interval between the previous pixels is generated.
 例えば、ある前画素A0,0に対して、前画素A0,0と、前画素A0,0に隣接する前画素A1,0および前画素A0,1との間に、前画素A0,0の位置を左上の位置とした4×4の位置の前画素A0,0並びに後画素a0,0乃至k0,0,n0,0、およびp0,0乃至r0,0が生成される。なお、前画素Ai,jのiは、前画素Ai,jの水平方向の位置を表し、jは垂直方向の位置を表す。また、後画素ai,j乃至ki,j,ni,j、およびpi,j乃至ri,jのiは、対応する前画素Ai,jの水平方向の位置を表し、jは垂直方向の位置を表す。 For example, for a certain previous pixel A 0,0 , the previous pixel A 0,0 and the previous pixel A 1,0 and the previous pixel A 0,1 adjacent to the previous pixel A 0,0 The front pixel A 0,0 and the rear pixels a 0,0 to k 0,0 , n 0,0 , and p 0,0 to r 0 at a 4 × 4 position with the position of A 0,0 as the upper left position , 0 is generated. Incidentally, the preceding pixel A i, i of j, the front pixel A i, represents the horizontal position of the j, j represents the position in the vertical direction. In addition, i of the rear pixels a i, j to k i, j , n i, j and p i, j to r i, j represents the horizontal position of the corresponding front pixel A i, j , j Represents the position in the vertical direction.
 8タップまたは7タップの2次元の線形内挿適応フィルタのフィルタ係数は、図7に示すようになる。即ち、生成する後画素に最も近い前画素のインデックス(index)が0とされ、その画素の前画素に対する方向に並ぶ画素のインデックスが、生成する後画素から近い順に大きくされ、その方向と逆の方向に並ぶ画素のインデックスが、生成する後画素から近い順に小さくされる。 The filter coefficients of an 8-tap or 7-tap two-dimensional linear interpolation adaptive filter are as shown in FIG. In other words, the index of the previous pixel closest to the subsequent pixel to be generated is set to 0, and the index of the pixel arranged in the direction with respect to the previous pixel of the pixel is increased in the order from the rear pixel to be generated, which is opposite to that direction. The index of the pixels lined up in the direction is made smaller in order from the next pixel to be generated.
 このとき、内挿フィルタ処理の方向に最も近い前画素との距離が前画素の間隔の1/2である後画素を生成する際の各インデックスi(i=-3,-2,-1,0,1,2,3,4)の画素に対する8タップのフィルタ係数(hfilter[i])は、iが小さい方から順に、-1,4,-11,40,40,-11,4,-1となる。 At this time, each index i (i = -3, -2, -1, -1, The filter coefficients (hfilter [i]) of 8 taps for the pixels of 0,1,2,3,4) are -1,4, -11,40,40, -11,4, in ascending order of i. -1.
 また、内挿フィルタ処理の方向に最も近い前画素との距離が前画素の間隔の1/4である後画素を生成する際の各インデックスiの画素に対する7タップのフィルタ係数(qfilter[i])は、iが小さい方から順に、-1,4,-10,58,17,-5,1となる。 Further, a 7-tap filter coefficient (qfilter [i]) for the pixel of each index i when generating a subsequent pixel whose distance from the previous pixel closest to the direction of the interpolation filter processing is 1/4 of the interval of the previous pixel. ) Becomes -1,4, -10,58,17, -5,1 in ascending order of i.
 従って、後画素a0,0乃至d0,0,h0,0、およびn0,0は、以下の式(3)により算出される。 Therefore, the rear pixels a 0,0 to d 0,0 , h 0,0 and n 0,0 are calculated by the following equation (3).
Figure JPOXMLDOC01-appb-M000003
Figure JPOXMLDOC01-appb-M000003
 なお、式(3)において、shift1は、符号化対象の画像の輝度信号のビット深度BitDepthyから8を減算した値である。 In equation (3), shift1 is a value obtained by subtracting 8 from the bit depth BitDepthy of the luminance signal of the image to be encoded.
 また、後画素e0,0乃至g0,0,i0,0乃至k0,0、およびp0,0乃至r0,0は、以下の式(4)により算出される。 Further, the rear pixels e 0,0 to g 0,0 , i 0,0 to k 0,0 and p 0,0 to r 0,0 are calculated by the following equation (4).
Figure JPOXMLDOC01-appb-M000004
Figure JPOXMLDOC01-appb-M000004
 なお、式(4)において、shift2は、ビット深度BitDepthyから6を減算した値である。 In equation (4), shift2 is a value obtained by subtracting 6 from the bit depth BitDepthy.
 (色差信号に対する内挿フィルタ処理の説明)
 図8は、図4の線形内挿フィルタ81による色差信号に対する内挿フィルタ処理を説明する図である。
(Description of interpolation filter processing for color difference signal)
FIG. 8 is a diagram for explaining the interpolation filter processing for the color difference signal by the linear interpolation filter 81 of FIG.
 動き予測・補償部48は、1/8画素精度で色差信号の動き予測・補償処理を行う。従って、線形内挿フィルタ81は、4タップの2次元の線形内挿適応フィルタを用いて、参照画像の色差信号に対して水平方向および垂直方向に内挿フィルタ処理を行うことにより、前画素の間隔の1/8の間隔の後画素を生成する。 The motion prediction / compensation unit 48 performs motion prediction / compensation processing of color difference signals with 1/8 pixel accuracy. Therefore, the linear interpolation filter 81 uses the 4-tap two-dimensional linear interpolation adaptive filter to perform the interpolation filter processing in the horizontal direction and the vertical direction on the color difference signal of the reference image, thereby Generate a pixel after the interval 1/8 of the interval.
 例えば、ある前画素B0,0に対して、前画素B0,0と、前画素B0,0に隣接する前画素B1,0および前画素B0,1との間に、前画素B0,0の位置を左上の位置とした8×8の位置の前画素B0,0並びに後画素ab0,0乃至ah0,0,ba0,0乃至bh0,0,ca0,0乃至ch0,0,da0,0乃至dh0,0,ea0,0乃至eh0,0,fa0,0乃至fh0,0,ga0,0乃至gh0,0、およびha0,0乃至hh0,0が生成される。 For example, for a certain previous pixel B 0,0 , the previous pixel B 0,0 and the previous pixel B 1,0 and the previous pixel B 0,1 adjacent to the previous pixel B 0,0 The front pixel B 0,0 and the rear pixel ab 0,0 to ah 0,0 , ba 0,0 to bh 0,0 , ca 0 at the position of 8 × 8 with the position of B 0,0 being the upper left position 0 to ch 0,0 , da 0,0 to dh 0,0 , ea 0,0 to eh 0,0 , fa 0 , 0 to fh 0,0 , ga 0 , 0 to gh 0,0 , and ha 0 , 0 to hh 0,0 are generated.
 なお、前画素Bi,jのiは、前画素Ai,jの水平方向の位置を表し、jは垂直方向の位置を表す。また、後画素abi,j乃至ahi,j,bai,j乃至bhi,j,cai,j乃至chi,j,dai,j乃至dhi,j,eai,j乃至ehi,j,fai,j乃至fhi,j,gai,j乃至ghi,j、およびhai,j乃至hhi,jのiは、対応する前画素Bi,jの水平方向の位置を表し、jは垂直方向の位置を表す。 Note that i of the previous pixel B i, j represents the horizontal position of the previous pixel A i, j , and j represents the vertical position. Further, the rear pixels abi , j to ah i, j , ba i, j to bh i, j , ca i, j to ch i, j , da i, j to dh i, j , ea i, j to eh i, j , fa i, j to fh i, j , ga i, j to gh i, j , and i of ha i, j to hh i, j are the horizontal direction of the corresponding previous pixel B i, j Represents the position, and j represents the position in the vertical direction.
 4タップの2次元の線形内挿適応フィルタのフィルタ係数は、図9に示すようになる。即ち、生成する後画素に最も近い画素のインデックスが0とされ、その画素の前画素に対する方向に並ぶ画素のインデックスが、生成する後画素から近い順に大きくされ、その方向と逆の方向に並ぶ画素のインデックスが、生成する後画素から近い順に小さくされる。 The filter coefficients of a 4-tap two-dimensional linear interpolation adaptive filter are as shown in FIG. That is, the index of the pixel closest to the subsequent pixel to be generated is set to 0, and the index of the pixel aligned in the direction with respect to the previous pixel of the pixel is increased in the order closer to the subsequent pixel to be generated, and the pixel aligned in the direction opposite to that direction Are made smaller in order from the next pixel to be generated.
 このとき、内挿フィルタ処理の方向に最も近い前画素との距離が前画素の間隔の1/8である後画素を生成する際の各インデックスi(i=-1,0,1,2)の画素に対するフィルタ係数(filter1[i])は、iが小さい方から順に、-2,58,10,-2となる。 At this time, each index i (i = -1,0,1,2) when generating a subsequent pixel whose distance to the previous pixel closest to the direction of the interpolation filter processing is 1/8 of the interval of the previous pixel The filter coefficients (filter1 [i]) for the pixel of −2 are −2, 58, 10, and −2 in order from the smallest i.
 また、内挿フィルタ処理の方向に最も近い前画素との距離が前画素の間隔の2/8である後画素を生成する際の各インデックスiの画素に対するフィルタ係数(filter2[i])は、iが小さい方から順に、-4,54,16,-2となる。内挿フィルタ処理の方向に最も近い前画素との距離が前画素の間隔の3/8である後画素を生成する際の各インデックスiの画素に対するフィルタ係数(filter3[i])は、iが小さい方から順に、-6,46,28,-4となる。 Also, the filter coefficient (filter2 [i]) for the pixel of each index i when generating a subsequent pixel whose distance from the previous pixel closest to the direction of the interpolation filter processing is 2/8 of the interval of the previous pixel is In order from the smallest i, -4, 54, 16, and -2. The filter coefficient (filter3 [i]) for each index i pixel when generating a subsequent pixel whose distance to the previous pixel closest to the direction of the interpolation filter processing is 3/8 of the previous pixel interval is In order from the smallest, -6, 46, 28, -4.
 さらに、内挿フィルタ処理の方向に最も近い前画素との距離が前画素の間隔の4/8である後画素を生成する際の各インデックスiの画素に対するフィルタ係数(filter4[i])は、iが小さい方から順に、-4,36,36,-4となる。 Furthermore, the filter coefficient (filter4 [i]) for each index i pixel when generating a subsequent pixel whose distance to the previous pixel closest to the direction of the interpolation filter processing is 4/8 of the interval of the previous pixel is In order from the smallest i, -4, 36, 36, -4.
 従って、後画素ab0,0乃至ah0,0は、以下の式(5)により算出される。 Accordingly, the rear pixels ab 0,0 to ah 0,0 are calculated by the following equation (5).
Figure JPOXMLDOC01-appb-M000005
Figure JPOXMLDOC01-appb-M000005
 なお、式(5)において、shift1は、符号化対象の画像の色差信号のビット深度BitDepthcから8を減算した値である。このことは、後述する式(6)においても同様である。 In equation (5), shift1 is a value obtained by subtracting 8 from the bit depth BitDepthc of the color difference signal of the image to be encoded. The same applies to the equation (6) described later.
 また、後画素ba0,0乃至ha0,0は、以下の式(6)により算出される。 Further, the rear pixels ba 0,0 to ha 0,0 are calculated by the following equation (6).
Figure JPOXMLDOC01-appb-M000006
Figure JPOXMLDOC01-appb-M000006
 さらに、後画素bX0,0乃至hX0,0(X=b,c,d,e,f,g,h)は、以下の式(7)により算出される。 Further, the rear pixels bX 0,0 to hX 0,0 (X = b, c, d, e, f, g, h) are calculated by the following equation (7).
Figure JPOXMLDOC01-appb-M000007
Figure JPOXMLDOC01-appb-M000007
 なお、式(7)において、shift2は、ビット深度BitDepthcから6を減算した値である。 In equation (7), shift2 is a value obtained by subtracting 6 from the bit depth BitDepthc.
 輝度信号および色差信号の内挿フィルタ処理は、16ビット精度に収まるようにされる。 輝 度 Interpolation filter processing of luminance signal and chrominance signal is made to fit within 16-bit accuracy.
 (参照画像バッファにおける読み出し処理の説明)
 図10および図11は、図4の参照画像バッファ82における読み出し処理を説明する図である。なお、図10および図11において、丸は画素を表す。
(Description of read processing in reference image buffer)
10 and 11 are diagrams for explaining the reading process in the reference image buffer 82 of FIG. In FIGS. 10 and 11, a circle represents a pixel.
 図10に示すように、拡大縮小率情報が0より小さい値である場合、即ち、拡大縮小率情報が拡大の率を表す場合、参照画像バッファ82は、拡大縮小率情報が表す拡大縮小率に基づいて、参照画像91を拡大し、拡大後の参照画像92を生成する。 As shown in FIG. 10, when the enlargement / reduction ratio information is a value smaller than 0, that is, when the enlargement / reduction ratio information represents the enlargement ratio, the reference image buffer 82 sets the enlargement / reduction ratio indicated by the enlargement / reduction ratio information. Based on this, the reference image 91 is enlarged, and an enlarged reference image 92 is generated.
 例えば、図10に示すように、拡大縮小率情報が-1であり、参照画像91のサイズが4×4画素である場合、参照画像バッファ82は、参照画像91の各画素91aを、その画素91aに対応する位置の2×2の画素92a乃至92dとして読み出す。これにより、参照画像バッファ82は、8×8画素の拡大後の参照画像92を生成する。 For example, as shown in FIG. 10, when the enlargement / reduction ratio information is −1 and the size of the reference image 91 is 4 × 4 pixels, the reference image buffer 82 sets each pixel 91a of the reference image 91 as the pixel. Read out as 2 × 2 pixels 92a to 92d at positions corresponding to 91a. As a result, the reference image buffer 82 generates an enlarged reference image 92 of 8 × 8 pixels.
 一方、図11に示すように、拡大縮小率情報が0より大きい値である場合、参照画像バッファ82は、拡大縮小率情報が表す拡大縮小率に基づいて、参照画像93を縮小し、縮小後の参照画像94を生成する。 On the other hand, as shown in FIG. 11, when the enlargement / reduction ratio information is a value larger than 0, the reference image buffer 82 reduces the reference image 93 based on the enlargement / reduction ratio represented by the enlargement / reduction ratio information and The reference image 94 is generated.
 例えば、図11に示すように、拡大縮小率情報が1であり、参照画像93のサイズが8×8画素である場合、参照画像バッファ82は、参照画像93を2×2画素のブロック93aに分割する。参照画像バッファ82は、各ブロック93a内の1つの画素93b(図11の例では左上の画素)を代表画素として選択する。参照画像バッファ82は、各ブロック93aの画素93bを、そのブロック93aに対応する位置の画素94aとして読み出す。これにより、参照画像バッファ82は、4×4画素の縮小後の参照画像94を生成する。 For example, as shown in FIG. 11, when the enlargement / reduction ratio information is 1 and the size of the reference image 93 is 8 × 8 pixels, the reference image buffer 82 converts the reference image 93 into a block 93a of 2 × 2 pixels. To divide. The reference image buffer 82 selects one pixel 93b (upper left pixel in the example of FIG. 11) in each block 93a as a representative pixel. The reference image buffer 82 reads the pixel 93b of each block 93a as a pixel 94a at a position corresponding to the block 93a. Thereby, the reference image buffer 82 generates a reference image 94 after reduction of 4 × 4 pixels.
 なお、参照画像バッファ82は、代表画素として選択された画素93bを画素94aにするのではなく、ブロック93a内の画素を用いてブロック93aの中央の画素を生成し、画素94aとしてもよい。 Note that the reference image buffer 82 may generate the pixel at the center of the block 93a by using the pixel in the block 93a instead of the pixel 93b selected as the representative pixel as the pixel 94a.
 (マージモードにおける周辺PUの例)
 図12は、マージモードにおける周辺PUの例を示す図である。
(Example of neighboring PUs in merge mode)
FIG. 12 is a diagram illustrating an example of peripheral PUs in the merge mode.
 図12に示すように、処理対象のPU101のマージモードにおける空間的な周辺PUの候補としては、PU101と左方向に隣接するPU102および左下方向に隣接するPU103がある。また、上方向に隣接するPU104、右上方向に隣接するPU105、左上方向に隣接するPU106がある。 As shown in FIG. 12, the spatial peripheral PU candidates in the merge mode of the PU 101 to be processed include the PU 102 adjacent to the PU 101 in the left direction and the PU 103 adjacent in the lower left direction. Further, there are a PU 104 adjacent in the upper direction, a PU 105 adjacent in the upper right direction, and a PU 106 adjacent in the upper left direction.
 空間的な周辺PUとしては、availableのPU102および103、並びに、PU104乃至106のうちのavailableのPUから、それぞれ1つずつが、以下の優先順位にしたがって選択される。なお、PU102乃至PU106の中で動きベクトルが同一であるものは、冗長性を排除するため、1つを除いて全てnot availableとされる。 As spatial peripheral PUs, one from each of the available PUs 102 and 103 and the available PUs among the PUs 104 to 106 is selected according to the following priority order. Note that all of the PUs 102 to 106 that have the same motion vector are not available, except for one, in order to eliminate redundancy.
 1.処理対象のPU101と、参照画像および予測方向が同一であるPU
 2.処理対象のPU101と、参照画像は同一であるが、予測方向は異なるPU
 3.処理対象のPU101と、参照画像は異なるが、予測方向は同一であるPU
 4.処理対象のPU101と、参照画像も、予測方向も異なるPU
1. PU with the same reference image and prediction direction as the processing target PU 101
2. The PU 101 to be processed and the reference image are the same, but the PUs with different prediction directions
3. PU 101 to be processed is different from the reference image, but the prediction direction is the same PU
4). The PU to be processed differs from the reference image in the prediction direction.
 優先順位が3番目または4番目である空間的な周辺PUが選択される場合には、その周辺PUの動きベクトルに対して以下の式(8)に示すスケーリング処理が行われ、スケーリング処理後の動きベクトルが、処理対象のPU101の動きベクトルの生成に用いられる。 When a spatial neighboring PU having the third or fourth priority is selected, the scaling process shown in the following equation (8) is performed on the motion vector of the neighboring PU, The motion vector is used to generate a motion vector of the processing target PU 101.
Figure JPOXMLDOC01-appb-M000008
Figure JPOXMLDOC01-appb-M000008
 なお、式(8)において、mvLxAは、空間的な周辺PUの動きベクトルである。また、tbとtdは、以下の式(9)で定義される。 In Equation (8), mvLxA is a spatial motion vector of a peripheral PU. Tb and td are defined by the following equation (9).
Figure JPOXMLDOC01-appb-M000009
Figure JPOXMLDOC01-appb-M000009
 式(9)によれば、tdは、処理対象のPU101にコロケーテッドなPU108とPU108の参照画像のPOCの差分である。また、tbは、処理対象のPU101とPU101の参照画像のPOC(Picture Order Count)の差分である。なお、処理対象のPU101にコロケーテッドなPU108とは、処理対象のPU101とは時間的に異なるが、空間的な位置は同一であるPUである。 According to Equation (9), td is the difference between the POC collocated on the PU 101 to be processed and the POC of the reference image of the PU 108. Also, tb is the difference between the processing target PU 101 and the reference image POC (Picture 処理 Order Count) of the PU 101. Note that the PU 108 that is collocated on the processing target PU 101 is a PU that is temporally different from the processing target PU 101 but has the same spatial position.
 また、処理対象のPU101のマージモードにおける時間的な周辺PUの候補としては、処理対象のPU101とは時間的に異なるが、空間的な位置およびサイズが同一である領域107の中央のPU108と右下のPU109がある。 In addition, the temporally neighboring PU candidates in the merge mode of the processing target PU 101 are different from the processing target PU 101 in terms of time, but the right PU and the central PU 108 in the region 107 having the same spatial position and size. There is PU109 below.
 PU109がavailableである場合、時間的な周辺PUはPU109とされる。また、PU109がnot availableであるが、PU108がavailableである場合には、時間的な周辺PUはPU108とされる。 When the PU 109 is available, the temporal peripheral PU is the PU 109. If the PU 109 is not available but the PU 108 is available, the temporally neighboring PU is set as the PU 108.
 (mvd_codingのシンタクスの例)
 図13は、PUのmvd_codingのシンタクスの例を示す図である。
(Mvd_coding syntax example)
FIG. 13 is a diagram illustrating an example of the syntax of mvd_coding of a PU.
 図13に示すように、拡大縮小率情報は、mvd_codingにlog2_expanding_factorとして設定される。 As shown in FIG. 13, the enlargement / reduction ratio information is set as log2_expanding_factor in mvd_coding.
 (符号化装置の処理の説明)
 図14は、図1の符号化装置10のストリーム生成処理を説明するフローチャートである。
(Description of processing of encoding device)
FIG. 14 is a flowchart illustrating a stream generation process of the encoding device 10 of FIG.
 図14のステップS11において、符号化装置10の設定部11は、パラメータセットを設定する。設定部11は、設定されたパラメータセットを符号化部12に供給する。 In step S11 of FIG. 14, the setting unit 11 of the encoding device 10 sets a parameter set. The setting unit 11 supplies the set parameter set to the encoding unit 12.
 ステップS12において、符号化部12は、外部から入力されたフレーム単位の画像をHEVC方式で符号化する符号化処理を行う。この符号化処理の詳細は、後述する図15および図16を参照して説明する。 In step S12, the encoding unit 12 performs an encoding process for encoding an image of a frame unit input from the outside using the HEVC method. Details of the encoding process will be described with reference to FIGS. 15 and 16 to be described later.
 ステップS13において、符号化部12の生成部38(図2)は、設定部11から供給されるパラメータセットと蓄積バッファ37から供給される符号化データから符号化ストリームを生成し、伝送部13に供給する。 In step S <b> 13, the generation unit 38 (FIG. 2) of the encoding unit 12 generates an encoded stream from the parameter set supplied from the setting unit 11 and the encoded data supplied from the accumulation buffer 37, and sends it to the transmission unit 13. Supply.
 ステップS14において、伝送部13は、設定部11から供給される符号化ストリームを、後述する復号装置に伝送し、処理を終了する。 In step S14, the transmission unit 13 transmits the encoded stream supplied from the setting unit 11 to a decoding device to be described later, and ends the process.
 図15および図16は、図14のステップS12の符号化処理の詳細を説明するフローチャートである。 15 and 16 are flowcharts illustrating details of the encoding process in step S12 of FIG.
 図15のステップS30において、符号化部12のA/D変換部31は、符号化対象として入力されたフレーム単位の画像をA/D変換する。A/D変換部31は、変換後のデジタル信号である画像を画面並べ替えバッファ32に出力して記憶させる。 In step S30 of FIG. 15, the A / D conversion unit 31 of the encoding unit 12 performs A / D conversion on the frame unit image input as the encoding target. The A / D conversion unit 31 outputs an image, which is a digital signal after conversion, to the screen rearrangement buffer 32 for storage.
 ステップS31において、画面並べ替えバッファ32は、記憶した表示の順番のフレームの画像を、GOP構造に応じて、符号化のための順番に並べ替える。画面並べ替えバッファ32は、並べ替え後のフレーム単位の画像を、演算部33、イントラ予測部47、および動き予測・補償部48に供給する。 In step S31, the screen rearrangement buffer 32 rearranges the images of the stored frames in the display order in the order for encoding according to the GOP structure. The screen rearrangement buffer 32 supplies the rearranged frame-unit images to the calculation unit 33, the intra prediction unit 47, and the motion prediction / compensation unit 48.
 ステップS32において、イントラ予測部47は、PU単位で、候補となる全てのイントラ予測モードのイントラ予測処理を行う。また、イントラ予測部47は、画面並べ替えバッファ32から読み出された画像と、イントラ予測処理の結果生成される予測画像とに基づいて、候補となる全てのイントラ予測モードに対してコスト関数値を算出する。そして、イントラ予測部47は、コスト関数値が最小となるイントラ予測モードを、最適イントラ予測モードに決定する。イントラ予測部47は、最適イントラ予測モードで生成された予測画像、および、対応するコスト関数値を、予測画像選択部50に供給する。 In step S32, the intra prediction unit 47 performs intra prediction processing for all candidate intra prediction modes in units of PUs. Further, the intra prediction unit 47 calculates cost function values for all candidate intra prediction modes based on the image read from the screen rearrangement buffer 32 and the prediction image generated as a result of the intra prediction process. Is calculated. Then, the intra prediction unit 47 determines the intra prediction mode that minimizes the cost function value as the optimal intra prediction mode. The intra prediction unit 47 supplies the predicted image generated in the optimal intra prediction mode and the corresponding cost function value to the predicted image selection unit 50.
 また、動き予測・補償部48は、PU単位で、候補となるインター予測モード、動きベクトル、参照画像、および拡大縮小率に基づいて、動き予測・補償処理を行う。この動き予測・補償処理の詳細は、後述する図17を参照して説明する。 Also, the motion prediction / compensation unit 48 performs motion prediction / compensation processing in units of PUs based on candidate inter prediction modes, motion vectors, reference images, and enlargement / reduction ratios. Details of this motion prediction / compensation processing will be described with reference to FIG.
 ステップS33において、予測画像選択部50は、イントラ予測部47および動き予測・補償部48から供給されるコスト関数値に基づいて、最適イントラ予測モードと最適インター予測モードのうちのコスト関数値が最小となる方を、最適予測モードに決定する。そして、予測画像選択部50は、最適予測モードの予測画像を、演算部33および加算部41に供給する。 In step S <b> 33, the predicted image selection unit 50 has the cost function value of the optimal intra prediction mode and the optimal inter prediction mode that is the minimum based on the cost function values supplied from the intra prediction unit 47 and the motion prediction / compensation unit 48. Is determined as the optimum prediction mode. Then, the predicted image selection unit 50 supplies the predicted image in the optimal prediction mode to the calculation unit 33 and the addition unit 41.
 ステップS34において、予測画像選択部50は、最適予測モードが最適インター予測モードであるかどうかを判定する。ステップS34で最適予測モードが最適インター予測モードであると判定された場合、予測画像選択部50は、最適インター予測モードで生成された予測画像の選択を動き予測・補償部48に通知する。これにより、動き予測・補償部48の決定部88(図4)は、最適インター予測モード、並びに、最適な動きベクトル、参照画像の参照画像特定情報、および拡大縮小率の拡大縮小率情報を情報符号化部89に供給する。 In step S34, the predicted image selecting unit 50 determines whether or not the optimal prediction mode is the optimal inter prediction mode. When it is determined in step S34 that the optimal prediction mode is the optimal inter prediction mode, the predicted image selection unit 50 notifies the motion prediction / compensation unit 48 of the selection of the predicted image generated in the optimal inter prediction mode. Thereby, the determination unit 88 (FIG. 4) of the motion prediction / compensation unit 48 provides information about the optimal inter prediction mode, the optimal motion vector, the reference image specifying information of the reference image, and the enlargement / reduction rate information of the enlargement / reduction rate. This is supplied to the encoding unit 89.
 そして、ステップS35において、情報符号化部89は、動きベクトルの符号化モードに応じて動きベクトル情報を生成する。また、情報符号化部89は、決定部88から供給される拡大縮小率をコンテクストモデリングにより符号化し、符号化拡大縮小率情報を生成する。 In step S35, the information encoding unit 89 generates motion vector information according to the motion vector encoding mode. The information encoding unit 89 encodes the enlargement / reduction rate supplied from the determination unit 88 by context modeling, and generates encoded enlargement / reduction rate information.
 ステップS36において、情報符号化部89は、インター予測モード情報、動きベクトル情報、参照画像特定情報、および符号化拡大縮小率情報を可逆符号化部36に供給し、処理をステップS38に進める。 In step S36, the information encoding unit 89 supplies the inter prediction mode information, the motion vector information, the reference image specifying information, and the encoded enlargement / reduction rate information to the lossless encoding unit 36, and the process proceeds to step S38.
 一方、ステップS34で最適予測モードが最適インター予測モードではないと判定された場合、即ち最適予測モードが最適イントラ予測モードである場合、予測画像選択部50は、最適イントラ予測モードで生成された予測画像の選択をイントラ予測部47に通知する。そして、ステップS37において、イントラ予測部47は、イントラ予測モード情報を可逆符号化部36に供給し、処理をステップS38に進める。 On the other hand, when it is determined in step S34 that the optimal prediction mode is not the optimal inter prediction mode, that is, when the optimal prediction mode is the optimal intra prediction mode, the predicted image selection unit 50 performs the prediction generated in the optimal intra prediction mode. The intra prediction unit 47 is notified of the image selection. In step S37, the intra prediction unit 47 supplies the intra prediction mode information to the lossless encoding unit 36, and the process proceeds to step S38.
 ステップS38において、演算部33は、画面並べ替えバッファ32から供給される画像から、予測画像選択部50から供給される予測画像を減算することにより符号化を行う。演算部33は、その結果得られる画像を、残差情報として直交変換部34に出力する。 In step S38, the calculation unit 33 performs encoding by subtracting the predicted image supplied from the predicted image selection unit 50 from the image supplied from the screen rearrangement buffer 32. The computing unit 33 outputs the resulting image to the orthogonal transform unit 34 as residual information.
 ステップS39において、直交変換部34は、演算部33からの残差情報に対してTU単位で直交変換を施し、その結果得られる直交変換係数を量子化部35に供給する。 In step S39, the orthogonal transform unit 34 performs orthogonal transform on the residual information from the operation unit 33 in units of TUs, and supplies the resulting orthogonal transform coefficient to the quantization unit 35.
 ステップS40において、量子化部35は、直交変換部34から供給される直交変換係数を量子化し、量子化された直交変換係数を可逆符号化部36と逆量子化部39に供給する。 In step S40, the quantization unit 35 quantizes the orthogonal transform coefficient supplied from the orthogonal transform unit 34, and supplies the quantized orthogonal transform coefficient to the lossless encoding unit 36 and the inverse quantization unit 39.
 図16のステップS41において、逆量子化部39は、量子化部35から供給される量子化された直交変換係数を逆量子化し、その結果得られる直交変換係数を逆直交変換部40に供給する。 In step S41 in FIG. 16, the inverse quantization unit 39 inversely quantizes the quantized orthogonal transform coefficient supplied from the quantization unit 35, and supplies the resulting orthogonal transform coefficient to the inverse orthogonal transform unit 40. .
 ステップS42において、逆直交変換部40は、逆量子化部39から供給される直交変換係数に対してTU単位で逆直交変換を施し、その結果得られる残差情報を加算部41に供給する。 In step S42, the inverse orthogonal transform unit 40 performs inverse orthogonal transform on the orthogonal transform coefficient supplied from the inverse quantization unit 39 in units of TUs, and supplies the residual information obtained as a result to the addition unit 41.
 ステップS43において、加算部41は、逆直交変換部40から供給される残差情報と、予測画像選択部50から供給される予測画像を加算し、局部的に復号を行う。加算部41は、局部的に復号された画像をデブロックフィルタ42とフレームメモリ45に供給する。 In step S43, the addition unit 41 adds the residual information supplied from the inverse orthogonal transform unit 40 and the prediction image supplied from the prediction image selection unit 50, and performs decoding locally. The adder 41 supplies the locally decoded image to the deblock filter 42 and the frame memory 45.
 ステップS44において、デブロックフィルタ42は、加算部41から供給される局部的に復号された画像に対して、デブロックフィルタ処理を行う。デブロックフィルタ42は、その結果得られる画像を適応オフセットフィルタ43に供給する。 In step S44, the deblocking filter 42 performs a deblocking filter process on the locally decoded image supplied from the adding unit 41. The deblocking filter 42 supplies the resulting image to the adaptive offset filter 43.
 ステップS45において、適応オフセットフィルタ43は、デブロックフィルタ42から供給される画像に対して、LCUごとに適応オフセットフィルタ処理を行う。適応オフセットフィルタ43は、その結果得られる画像を適応ループフィルタ44に供給する。また、適応オフセットフィルタ43は、LCUごとに、オフセットフィルタ情報を可逆符号化部36に供給する。 In step S45, the adaptive offset filter 43 performs an adaptive offset filter process on the image supplied from the deblocking filter 42 for each LCU. The adaptive offset filter 43 supplies the resulting image to the adaptive loop filter 44. Further, the adaptive offset filter 43 supplies the offset filter information to the lossless encoding unit 36 for each LCU.
 ステップS46において、適応ループフィルタ44は、適応オフセットフィルタ43から供給される画像に対して、LCUごとに適応ループフィルタ処理を行う。適応ループフィルタ44は、その結果得られる画像をフレームメモリ45に供給する。また、適応ループフィルタ44は、適応ループフィルタ処理で用いられたフィルタ係数を可逆符号化部36に供給する。 In step S46, the adaptive loop filter 44 performs an adaptive loop filter process on the image supplied from the adaptive offset filter 43 for each LCU. The adaptive loop filter 44 supplies the resulting image to the frame memory 45. The adaptive loop filter 44 supplies the filter coefficient used in the adaptive loop filter process to the lossless encoding unit 36.
 ステップS47において、フレームメモリ45は、適応ループフィルタ44から供給される画像と加算部41から供給される画像を蓄積する。フレームメモリ45に蓄積されたフィルタ処理が行われていない画像のうちのPUに隣接する画素は、周辺画素としてスイッチ46を介してイントラ予測部47に供給される。一方、フレームメモリ45に蓄積されたフィルタ処理が行われた画像は、参照画像としてスイッチ46を介して動き予測・補償部48に出力される。 In step S47, the frame memory 45 stores the image supplied from the adaptive loop filter 44 and the image supplied from the adder 41. Pixels adjacent to the PU in the image that has not been subjected to the filter processing accumulated in the frame memory 45 are supplied to the intra prediction unit 47 through the switch 46 as peripheral pixels. On the other hand, the filtered image stored in the frame memory 45 is output to the motion prediction / compensation unit 48 via the switch 46 as a reference image.
 ステップS48において、可逆符号化部36は、イントラ予測モード情報、または、インター予測モード情報、動きベクトル情報、参照画像特定情報、および符号化拡大縮小率情報、オフセットフィルタ情報、並びにフィルタ係数を、符号化情報として可逆符号化する。 In step S48, the lossless encoding unit 36 encodes intra prediction mode information, inter prediction mode information, motion vector information, reference image specifying information, encoded enlargement / reduction ratio information, offset filter information, and filter coefficients. Lossless encoding as the conversion information.
 ステップS49において、可逆符号化部36は、量子化部35から供給される量子化された直交変換係数を可逆符号化する。そして、可逆符号化部36は、ステップS48の処理で可逆符号化された符号化情報と可逆符号化された直交変換係数から、符号化データを生成し、蓄積バッファ37に供給する。 In step S49, the lossless encoding unit 36 performs lossless encoding on the quantized orthogonal transform coefficient supplied from the quantization unit 35. Then, the lossless encoding unit 36 generates encoded data from the encoded information that has been losslessly encoded in the process of step S48 and the orthogonal transform coefficient that has been losslessly encoded, and supplies the encoded data to the accumulation buffer 37.
 ステップS50において、蓄積バッファ37は、可逆符号化部36から供給される符号化データを、一時的に蓄積する。 In step S50, the accumulation buffer 37 temporarily accumulates the encoded data supplied from the lossless encoding unit 36.
 ステップS51において、レート制御部51は、蓄積バッファ37に蓄積された符号化データに基づいて、オーバーフローあるいはアンダーフローが発生しないように、量子化部35の量子化動作のレートを制御する。 In step S51, the rate control unit 51 controls the rate of the quantization operation of the quantization unit 35 based on the encoded data stored in the storage buffer 37 so that overflow or underflow does not occur.
 ステップS52において、蓄積バッファ37は、記憶している符号化データを、生成部38に出力する。そして、処理は、図14のステップS12に戻り、ステップS13に進む。そして、処理は、図14のステップS12に戻り、ステップS13に進む。 In step S52, the accumulation buffer 37 outputs the stored encoded data to the generation unit 38. And a process returns to step S12 of FIG. 14, and progresses to step S13. And a process returns to step S12 of FIG. 14, and progresses to step S13.
 なお、図15および図16の符号化処理では、説明を簡単化するため、常に、イントラ予測処理と動き予測・補償処理が行われるようにしたが、実際には、ピクチャタイプ等によっていずれか一方のみが行われる場合もある。 In the encoding processing of FIGS. 15 and 16, in order to simplify the description, the intra prediction processing and the motion prediction / compensation processing are always performed. Sometimes only.
 図17は、図15のステップS32の動き予測・補償処理の詳細を説明するフローチャートである。この動き予測・補償処理は、PU単位で行われる。 FIG. 17 is a flowchart for explaining the details of the motion prediction / compensation process in step S32 of FIG. This motion prediction / compensation process is performed in units of PUs.
 図17のステップS71において、動き予測・補償部48は、候補となる参照画像のうちのまだ現在の処理の参照画像に決定されていないものを、現在の処理の参照画像に決定する。 In step S71 of FIG. 17, the motion prediction / compensation unit 48 determines a candidate reference image that has not yet been determined as a reference image for the current process, as a reference image for the current process.
 ステップS72において、決定部49は、候補となる拡大縮小率のうちのまだ現在の処理の拡大縮小率に決定されていないものを、現在の処理の拡大縮小率に決定する。 In step S72, the determination unit 49 determines the candidate enlargement / reduction ratio that has not yet been decided as the enlargement / reduction ratio of the current process as the enlargement / reduction ratio of the current process.
 ステップS73において、動き予測・補償部48は、候補となるインター予測モードが表すPUのサイズのうちの、まだ現在の処理のPUのサイズに決定されていないものを、現在の処理のPUのサイズに決定する。 In step S <b> 73, the motion prediction / compensation unit 48 determines the PU size of the current process that has not yet been determined as the PU size of the current process among the PU sizes represented by the candidate inter prediction modes. To decide.
 ステップS74において、動き予測・補償部48の線形内挿フィルタ81(図4)は、ステップS71で決定された参照画像を、フレームメモリ45からスイッチ46を介して読み出す。 In step S74, the linear interpolation filter 81 (FIG. 4) of the motion prediction / compensation unit 48 reads the reference image determined in step S71 from the frame memory 45 via the switch 46.
 ステップS75において、線形内挿フィルタ81は、読み出された参照画像に対して内挿フィルタ処理を行うことにより、参照画像を高解像度化する。線形内挿フィルタ81は、高解像度化された参照画像を参照画像バッファ82に供給して保持させる。 In step S75, the linear interpolation filter 81 increases the resolution of the reference image by performing an interpolation filter process on the read reference image. The linear interpolation filter 81 supplies the reference image with high resolution to the reference image buffer 82 and holds it.
 ステップS76において、参照画像バッファ82は、決定部49から供給される拡大縮小率に基づいて、保持している参照画像を読み出すことにより、拡大縮小率で拡大または縮小された参照画像を生成し、ローパスフィルタ83に供給する。 In step S76, the reference image buffer 82 reads the stored reference image based on the enlargement / reduction ratio supplied from the determination unit 49, thereby generating a reference image enlarged or reduced at the enlargement / reduction ratio, The low-pass filter 83 is supplied.
 ステップS77において、ローパスフィルタ83は、参照画像バッファ82から供給される参照画像に対して、水平方向および垂直方向にローパスフィルタ処理を施す。 In step S77, the low-pass filter 83 performs a low-pass filter process on the reference image supplied from the reference image buffer 82 in the horizontal direction and the vertical direction.
 ステップS78において、入力画像バッファ85は、画面並べ替えバッファ32から供給され、保持している画像のうちの、ステップS73で決定されたサイズのPUを読み出し、PUバッファ86に供給して保持させる。 In step S78, the input image buffer 85 reads out the PU having the size determined in step S73 from the images supplied and held from the screen rearranging buffer 32, and supplies the PU to the PU buffer 86 for holding.
 ステップS79において、生成部84は、候補となる動きベクトルのうちの、まだ現在の処理対象の動きベクトルとして決定されていないものを、現在の処理対象の動きベクトルに決定する。 In step S79, the generation unit 84 determines a candidate motion vector that has not yet been determined as the current processing target motion vector as the current processing target motion vector.
 ステップS80において、生成部84は、ステップS79で決定された動きベクトルに基づいて、ローパスフィルタ83から供給される参照画像に補償処理を施し、予測画像を生成する。生成部84は、予測画像を算出部87に供給する。 In step S80, the generation unit 84 performs compensation processing on the reference image supplied from the low-pass filter 83 based on the motion vector determined in step S79, and generates a predicted image. The generation unit 84 supplies the predicted image to the calculation unit 87.
 ステップS81において、算出部87は、PUバッファ86からPU単位の画像を読み出し、その画像と予測画像とに基づいてコスト関数値を算出する。算出部87は、コスト関数値と予測画像を決定部88に供給する。また、算出部87は、ステップS71,S72、およびS79で決定された参照画像、拡大縮小率、および動きベクトル、並びに、その動きベクトルに対応する動きベクトルの符号化モードとステップS73で決定されたPUのサイズとを表すインター予測モードの組み合わせを決定部88に供給する。 In step S81, the calculation unit 87 reads an image in PU units from the PU buffer 86, and calculates a cost function value based on the image and the predicted image. The calculation unit 87 supplies the cost function value and the predicted image to the determination unit 88. The calculation unit 87 determines the reference image, the enlargement / reduction ratio, and the motion vector determined in steps S71, S72, and S79, and the motion vector encoding mode corresponding to the motion vector and the step S73. A combination of inter prediction modes representing the PU size is supplied to the determination unit 88.
 ステップS82において、動き予測・補償部48は、候補となる動きベクトルの全てについてコスト関数値を算出したかどうか、即ち、ステップS79で候補となる動きベクトルの全てが現在の処理の動きベクトルに決定されたかどうかを判定する。 In step S82, the motion prediction / compensation unit 48 determines whether or not the cost function value has been calculated for all candidate motion vectors, that is, all candidate motion vectors are determined to be motion vectors of the current process in step S79. Determine whether it was done.
 ステップS82で候補となる動きベクトルの全てについてコスト関数値を算出していないと判定された場合、処理はステップS79に戻る。そして、候補となる動きベクトルの全てについてコスト関数値を算出したと判定されるまで、ステップS79乃至S82の処理が繰り返される。 If it is determined in step S82 that cost function values have not been calculated for all candidate motion vectors, the process returns to step S79. Then, the processes in steps S79 to S82 are repeated until it is determined that the cost function values have been calculated for all candidate motion vectors.
 一方、ステップS82で候補となる動きベクトルの全てについてコスト関数値を算出したと判定された場合、処理はステップS83に進む。ステップS83において、動き予測・補償部48は、候補となるPUのサイズの全てについてコスト関数値を算出したかどうか、即ち、ステップS73で候補となるPUのサイズの全てが現在の処理のPUのサイズに決定されたかどうかを判定する。 On the other hand, if it is determined in step S82 that cost function values have been calculated for all candidate motion vectors, the process proceeds to step S83. In step S83, the motion prediction / compensation unit 48 has calculated cost function values for all candidate PU sizes, that is, all candidate PU sizes in step S73 are the current processing PUs. Determine whether the size has been determined.
 ステップS83で候補となるPUのサイズの全てについてコスト関数値を算出していないと判定された場合、処理はステップS73に戻る。そして、候補となるPUのサイズの全てについてコスト関数値を算出したと判定されるまで、ステップS73乃至S83の処理が繰り返される。 If it is determined in step S83 that cost function values have not been calculated for all candidate PU sizes, the process returns to step S73. Then, the processes of steps S73 to S83 are repeated until it is determined that the cost function values have been calculated for all candidate PU sizes.
 一方、ステップS83で候補となるPUのサイズの全てについてコスト関数値を算出したと判定された場合、処理はステップS84に進む。ステップS84において、決定部49は、候補となる拡大縮小率の全てについてコスト関数値を算出したかどうか、即ち、ステップS72で候補となる拡大縮小率の全てが現在の処理の拡大縮小率に決定されたかどうかを判定する。 On the other hand, if it is determined in step S83 that the cost function value has been calculated for all candidate PU sizes, the process proceeds to step S84. In step S84, the determination unit 49 determines whether or not the cost function value has been calculated for all of the candidate enlargement / reduction ratios, that is, all of the candidate enlargement / reduction ratios in step S72 are the enlargement / reduction ratios of the current process. Determine whether it was done.
 ステップS84で候補となる拡大縮小率の全てについてコスト関数値を算出していないと判定された場合、処理はステップS72に戻る。そして、候補となる拡大縮小率の全てについてコスト関数値を算出したと判定されるまで、ステップS72乃至S84の処理が繰り返される。 If it is determined in step S84 that cost function values have not been calculated for all of the candidate enlargement / reduction ratios, the process returns to step S72. Then, the processes of steps S72 to S84 are repeated until it is determined that the cost function value has been calculated for all of the candidate enlargement / reduction ratios.
 一方、ステップS84で候補となる拡大縮小率の全てについてコスト関数値を算出したと判定された場合、処理はステップS85に進む。ステップS85において、動き予測・補償部48は、候補となる参照画像の全てについてコスト関数値を算出したかどうか、即ち、ステップS71で候補となる参照画像の全てが現在の処理の参照画像に決定されたかどうかを判定する。 On the other hand, if it is determined in step S84 that the cost function values have been calculated for all of the candidate enlargement / reduction ratios, the process proceeds to step S85. In step S85, the motion prediction / compensation unit 48 determines whether or not the cost function value has been calculated for all candidate reference images, that is, all candidate reference images are determined as reference images for the current process in step S71. Determine whether it was done.
 ステップS85で候補となる参照画像の全てについてコスト関数値を算出していないと判定された場合、処理はステップS71に戻る。そして、候補となる参照画像の全てについてコスト関数値を算出したと判定されるまで、ステップS71乃至S85の処理が繰り返される。 If it is determined in step S85 that the cost function value has not been calculated for all candidate reference images, the process returns to step S71. Then, the processes in steps S71 to S85 are repeated until it is determined that the cost function value has been calculated for all candidate reference images.
 一方、ステップS85で候補となる参照画像の全てについてコスト関数値を算出したと判定された場合、ステップS86において、決定部88は、算出部87から供給されるコスト関数値が最小となるときのインター予測モードを最適インター予測モードに決定する。また、決定部88は、コスト関数値が最小となるときの動きベクトル、参照画像、および拡大縮小率を、最適な動きベクトル、参照画像、および拡大縮小率に決定する。 On the other hand, when it is determined in step S85 that the cost function value has been calculated for all candidate reference images, in step S86, the determination unit 88 determines that the cost function value supplied from the calculation unit 87 is minimum. The inter prediction mode is determined as the optimal inter prediction mode. Further, the determination unit 88 determines the motion vector, reference image, and enlargement / reduction ratio at the time when the cost function value is minimum as the optimum motion vector, reference image, and enlargement / reduction ratio.
 ステップS87において、決定部88は、最適インター予測モードのコスト関数値と予測画像を図2の予測画像選択部50に供給する。 In step S87, the determination unit 88 supplies the cost function value and the prediction image in the optimal inter prediction mode to the prediction image selection unit 50 in FIG.
 以上のように、符号化装置10は、拡大縮小率情報に基づいて参照画像を拡大または縮小し、拡大または縮小された参照画像を用いて予測画像を生成する。従って、符号化対象の画像が拡大や縮小する場合の予測精度が向上し、符号化効率が向上する。 As described above, the encoding device 10 enlarges or reduces the reference image based on the enlargement / reduction ratio information, and generates a predicted image using the enlarged or reduced reference image. Therefore, the prediction accuracy when the image to be encoded is enlarged or reduced is improved, and the encoding efficiency is improved.
 (復号装置の第1実施の形態の構成例)
 図18は、図1の符号化装置10から伝送される符号化ストリームを復号する、本開示を適用した復号装置の第1実施の形態の構成例を示すブロック図である。
(Configuration example of first embodiment of decoding device)
FIG. 18 is a block diagram illustrating a configuration example of a first embodiment of a decoding device to which the present disclosure is applied, which decodes an encoded stream transmitted from the encoding device 10 in FIG. 1.
 図18の復号装置110は、受け取り部111、抽出部112、および復号部113により構成される。 18 is configured by a receiving unit 111, an extracting unit 112, and a decoding unit 113.
 復号装置110の受け取り部111は、図1の符号化装置10から伝送されてくる符号化ストリームを受け取り、抽出部112に供給する。 The receiving unit 111 of the decoding device 110 receives the encoded stream transmitted from the encoding device 10 in FIG. 1 and supplies it to the extracting unit 112.
 抽出部112は、受け取り部111から供給される符号化ストリームから、パラメータセットと符号化データを抽出し、復号部113に供給する。 The extraction unit 112 extracts a parameter set and encoded data from the encoded stream supplied from the receiving unit 111 and supplies the extracted parameter set and encoded data to the decoding unit 113.
 復号部113は、抽出部112から供給される符号化データをHEVC方式で復号する。このとき、復号部113は、必要に応じて、抽出部112から供給されるパラメータセットも参照する。復号部113は、復号の結果得られる画像を出力する。 The decoding unit 113 decodes the encoded data supplied from the extraction unit 112 using the HEVC method. At this time, the decoding unit 113 also refers to the parameter set supplied from the extraction unit 112 as necessary. The decoding unit 113 outputs an image obtained as a result of decoding.
 (復号部の構成例)
 図19は、図18の復号部113の構成例を示すブロック図である。
(Configuration example of decoding unit)
FIG. 19 is a block diagram illustrating a configuration example of the decoding unit 113 in FIG.
 図19の復号部113は、蓄積バッファ131、可逆復号部132、逆量子化部133、逆直交変換部134、加算部135、デブロックフィルタ136、適応オフセットフィルタ137、適応ループフィルタ138、および画面並べ替えバッファ139を有する。また、復号部113は、D/A変換部140、フレームメモリ141、スイッチ142、イントラ予測部143、動き補償部144、情報復号部145、およびスイッチ146を有する。 19 includes an accumulation buffer 131, a lossless decoding unit 132, an inverse quantization unit 133, an inverse orthogonal transform unit 134, an addition unit 135, a deblock filter 136, an adaptive offset filter 137, an adaptive loop filter 138, and a screen. A rearrangement buffer 139 is provided. The decoding unit 113 includes a D / A conversion unit 140, a frame memory 141, a switch 142, an intra prediction unit 143, a motion compensation unit 144, an information decoding unit 145, and a switch 146.
 復号部113の蓄積バッファ131は、図18の抽出部112から符号化データを受け取り、蓄積する。蓄積バッファ131は、蓄積されている符号化データを可逆復号部132に供給する。 The accumulation buffer 131 of the decoding unit 113 receives and accumulates the encoded data from the extraction unit 112 of FIG. The accumulation buffer 131 supplies the accumulated encoded data to the lossless decoding unit 132.
 可逆復号部132は、蓄積バッファ131からの符号化データに対して、図2の可逆符号化部36の可逆符号化に対応する、可変長復号や、算術復号等の可逆復号を施すことで、量子化された直交変換係数と符号化情報を得る。可逆復号部132は、量子化された直交変換係数を逆量子化部133に供給する。また、可逆復号部132は、符号化情報としてのイントラ予測モード情報などをイントラ予測部143に供給する。可逆復号部132は、インター予測モード情報と参照画像特定情報を動き補償部144に供給し、インター予測モード情報、動きベクトル情報、および符号化拡大縮小率情報を情報復号部145に供給する。 The lossless decoding unit 132 performs lossless decoding such as variable length decoding and arithmetic decoding corresponding to the lossless encoding of the lossless encoding unit 36 of FIG. 2 on the encoded data from the accumulation buffer 131, A quantized orthogonal transform coefficient and encoding information are obtained. The lossless decoding unit 132 supplies the quantized orthogonal transform coefficient to the inverse quantization unit 133. Further, the lossless decoding unit 132 supplies intra prediction mode information as encoded information to the intra prediction unit 143. The lossless decoding unit 132 supplies inter prediction mode information and reference image specifying information to the motion compensation unit 144, and supplies inter prediction mode information, motion vector information, and encoded enlargement / reduction rate information to the information decoding unit 145.
 さらに、可逆復号部132は、符号化情報としてのイントラ予測モード情報またはインター予測モード情報をスイッチ146に供給する。可逆復号部132は、符号化情報としてのオフセットフィルタ情報を適応オフセットフィルタ137に供給する。可逆復号部132は、符号化情報としてのフィルタ係数を適応ループフィルタ138に供給する。 Further, the lossless decoding unit 132 supplies intra prediction mode information or inter prediction mode information as encoded information to the switch 146. The lossless decoding unit 132 supplies offset filter information as encoded information to the adaptive offset filter 137. The lossless decoding unit 132 supplies filter coefficients as encoded information to the adaptive loop filter 138.
 逆量子化部133、逆直交変換部134、加算部135、デブロックフィルタ136、適応オフセットフィルタ137、適応ループフィルタ138、フレームメモリ141、スイッチ142、イントラ予測部143、および動き補償部144は、図2の逆量子化部39、逆直交変換部40、加算部41、デブロックフィルタ42、適応オフセットフィルタ43、適応ループフィルタ44、フレームメモリ45、スイッチ46、イントラ予測部47、および動き予測・補償部48とそれぞれ同様の処理を行い、これにより、画像が復号される。 The inverse quantization unit 133, the inverse orthogonal transform unit 134, the addition unit 135, the deblock filter 136, the adaptive offset filter 137, the adaptive loop filter 138, the frame memory 141, the switch 142, the intra prediction unit 143, and the motion compensation unit 144 Inverse quantization unit 39, inverse orthogonal transform unit 40, addition unit 41, deblock filter 42, adaptive offset filter 43, adaptive loop filter 44, frame memory 45, switch 46, intra prediction unit 47, and motion prediction / The same processing as that of the compensation unit 48 is performed, whereby the image is decoded.
 具体的には、逆量子化部133は、可逆復号部132からの量子化された直交変換係数を逆量子化し、その結果得られる直交変換係数を逆直交変換部134に供給する。 Specifically, the inverse quantization unit 133 inversely quantizes the quantized orthogonal transform coefficient from the lossless decoding unit 132 and supplies the orthogonal transform coefficient obtained as a result to the inverse orthogonal transform unit 134.
 逆直交変換部134は、逆量子化部133からの直交変換係数に対してTU単位で逆直交変換を行う。逆直交変換部134は、逆直交変換の結果得られる残差情報を加算部135に供給する。 The inverse orthogonal transform unit 134 performs inverse orthogonal transform on the orthogonal transform coefficient from the inverse quantization unit 133 in units of TUs. The inverse orthogonal transform unit 134 supplies residual information obtained as a result of the inverse orthogonal transform to the addition unit 135.
 加算部135は、復号部として機能し、逆直交変換部134から供給される残差情報と、スイッチ146から供給される予測画像を加算することにより、復号を行う。加算部135は、復号の結果得られる画像をデブロックフィルタ136とフレームメモリ141に供給する。 The addition unit 135 functions as a decoding unit, and performs decoding by adding the residual information supplied from the inverse orthogonal transform unit 134 and the prediction image supplied from the switch 146. The adding unit 135 supplies an image obtained as a result of decoding to the deblocking filter 136 and the frame memory 141.
 なお、スイッチ146から予測画像が供給されない場合、加算部135は、逆直交変換部134から供給される残差情報である画像を復号の結果得られる画像として、デブロックフィルタ136とフレームメモリ141に供給する。 When the predicted image is not supplied from the switch 146, the adding unit 135 sets the image that is the residual information supplied from the inverse orthogonal transform unit 134 as an image obtained as a result of decoding in the deblocking filter 136 and the frame memory 141. Supply.
 デブロックフィルタ136は、加算部135から供給される画像に対してデブロックフィルタ処理を行い、その結果得られる画像を適応オフセットフィルタ137に供給する。 The deblocking filter 136 performs a deblocking filter process on the image supplied from the adding unit 135, and supplies the resulting image to the adaptive offset filter 137.
 適応オフセットフィルタ137は、LCUごとに、可逆復号部132からのオフセットフィルタ情報が表すオフセットを用いて、デブロックフィルタ処理後の画像に対して、オフセットフィルタ情報が表す種類の適応オフセットフィルタ処理を行う。適応オフセットフィルタ137は、適応オフセットフィルタ処理後の画像を適応ループフィルタ138に供給する。 The adaptive offset filter 137 performs adaptive offset filter processing of the type represented by the offset filter information on the image after the deblocking filter processing using the offset represented by the offset filter information from the lossless decoding unit 132 for each LCU. . The adaptive offset filter 137 supplies the image after the adaptive offset filter processing to the adaptive loop filter 138.
 適応ループフィルタ138は、適応オフセットフィルタ137から供給される画像に対して、可逆復号部132から供給されるフィルタ係数を用いて、LCUごとに適応ループフィルタ処理を行う。適応ループフィルタ138は、その結果得られる画像をフレームメモリ141および画面並べ替えバッファ139に供給する。 The adaptive loop filter 138 performs an adaptive loop filter process for each LCU on the image supplied from the adaptive offset filter 137 using the filter coefficient supplied from the lossless decoding unit 132. The adaptive loop filter 138 supplies the resulting image to the frame memory 141 and the screen rearrangement buffer 139.
 画面並べ替えバッファ139は、適応ループフィルタ138から供給される画像をフレーム単位で記憶する。画面並べ替えバッファ139は、記憶した符号化のための順番のフレーム単位の画像を、元の表示の順番に並び替え、D/A変換部140に供給する。 The screen rearrangement buffer 139 stores the image supplied from the adaptive loop filter 138 in units of frames. The screen rearrangement buffer 139 rearranges the stored frame-by-frame images for encoding in the original display order and supplies them to the D / A conversion unit 140.
 D/A変換部140は、画面並べ替えバッファ139から供給されるフレーム単位の画像をD/A変換し、出力する。 The D / A conversion unit 140 performs D / A conversion on the frame-based image supplied from the screen rearrangement buffer 139 and outputs it.
 フレームメモリ141は、適応ループフィルタ138から供給される画像と加算部135から供給される画像を蓄積する。フレームメモリ141に蓄積されたフィルタ処理が行われていない画像のうちのPUに隣接する画素は、周辺画素としてスイッチ142を介してイントラ予測部143に供給される。一方、フレームメモリ141に蓄積されたフィルタ処理が行われた画像は、参照画像として、スイッチ142を介して動き補償部144に供給される。 The frame memory 141 stores the image supplied from the adaptive loop filter 138 and the image supplied from the adding unit 135. Pixels adjacent to the PU in the image that has not been subjected to filter processing accumulated in the frame memory 141 are supplied to the intra prediction unit 143 via the switch 142 as peripheral pixels. On the other hand, the filtered image stored in the frame memory 141 is supplied to the motion compensation unit 144 via the switch 142 as a reference image.
 イントラ予測部143は、PU単位で、フレームメモリ141からスイッチ142を介して読み出された周辺画素を用いて、可逆復号部132から供給されるイントラ予測モード情報が示す最適イントラ予測モードのイントラ予測処理を行う。イントラ予測部143は、その結果生成される予測画像をスイッチ146に供給する。 The intra prediction unit 143 uses the peripheral pixels read from the frame memory 141 via the switch 142 in units of PUs, and performs intra prediction in the optimal intra prediction mode indicated by the intra prediction mode information supplied from the lossless decoding unit 132. Process. The intra prediction unit 143 supplies the prediction image generated as a result to the switch 146.
 動き補償部144は、PU単位で、情報復号部145から供給される拡大縮小率情報および動きベクトル、並びに、可逆復号部132から供給されるインター予測モード情報および参照画像特定情報に基づいて、動き補償処理を行う。具体的には、動き補償部144は、フレームメモリ141からスイッチ142を介して、可逆復号部132から供給される参照画像特定情報により特定される参照画像を読み出す。動き補償部144は、参照画像に対して内挿フィルタ処理を行うことにより、参照画像を高解像度化する。動き補償部144は、情報復号部145から供給される拡大縮小率情報および動きベクトル、並びに、インター予測モード情報が表すPUのサイズに基づいて、高解像度化された参照画像を用いて予測画像を生成する。動き補償部144は、予測画像をスイッチ146に供給する。 The motion compensation unit 144 is based on the enlargement / reduction rate information and the motion vector supplied from the information decoding unit 145 and the inter prediction mode information and the reference image specifying information supplied from the lossless decoding unit 132 in units of PUs. Perform compensation processing. Specifically, the motion compensation unit 144 reads the reference image specified by the reference image specifying information supplied from the lossless decoding unit 132 from the frame memory 141 via the switch 142. The motion compensation unit 144 increases the resolution of the reference image by performing an interpolation filter process on the reference image. The motion compensation unit 144 uses the reference image with high resolution based on the enlargement / reduction rate information and the motion vector supplied from the information decoding unit 145 and the PU size represented by the inter prediction mode information to generate a prediction image. Generate. The motion compensation unit 144 supplies the predicted image to the switch 146.
 情報復号部145は、可逆復号部132から供給される符号化拡大縮小率情報を復号する。具体的には、情報復号部145は、処理対象のPUの周辺のPUの拡大縮小率情報と、符号化拡大縮小率情報である差分を加算し、処理対象のPUの拡大縮小率情報を生成する。 The information decoding unit 145 decodes the encoded enlargement / reduction rate information supplied from the lossless decoding unit 132. Specifically, the information decoding unit 145 adds the enlargement / reduction rate information of the PUs around the processing target PU and the difference that is the encoded enlargement / reduction rate information to generate the enlargement / reduction rate information of the processing target PU. To do.
 また、情報復号部145は、可逆復号部132から供給されるインター予測情報が表す動きベクトルの符号化モードがマージモードである場合、周辺PUの動きベクトルを用いて処理対象のPUの動きベクトルを生成する。一方、情報復号部145は、動きベクトルの符号化モードがAMVPモードである場合、処理対象のPUの周辺のPUの動きベクトルと動きベクトル情報である動きベクトルの差分とを加算し、処理対象のPUの動きベクトルを生成する。 In addition, when the motion vector encoding mode represented by the inter prediction information supplied from the lossless decoding unit 132 is the merge mode, the information decoding unit 145 uses the motion vector of the peripheral PU to calculate the motion vector of the PU to be processed. Generate. On the other hand, when the motion vector encoding mode is the AMVP mode, the information decoding unit 145 adds the motion vector of the PU around the PU to be processed and the difference between the motion vectors as the motion vector information, and A motion vector of the PU is generated.
 また、情報復号部145は、動きベクトルの符号化モードがマージモードおよびAMVPモードではない場合、動きベクトル情報である動きベクトルを、処理対象のPUの動きベクトルとして生成する。情報復号部145は、拡大縮小率情報と動きベクトルを動き補償部144に供給する。 In addition, when the motion vector encoding mode is not the merge mode or the AMVP mode, the information decoding unit 145 generates a motion vector that is motion vector information as a motion vector of the PU to be processed. The information decoding unit 145 supplies the enlargement / reduction ratio information and the motion vector to the motion compensation unit 144.
 スイッチ146は、可逆復号部132からイントラ予測モード情報が供給された場合、イントラ予測部143から供給される予測画像を加算部135に供給する。一方、可逆復号部132からインター予測モード情報が供給された場合、スイッチ146は、動き補償部144から供給される予測画像を加算部135に供給する。 When the intra prediction mode information is supplied from the lossless decoding unit 132, the switch 146 supplies the prediction image supplied from the intra prediction unit 143 to the addition unit 135. On the other hand, when the inter prediction mode information is supplied from the lossless decoding unit 132, the switch 146 supplies the prediction image supplied from the motion compensation unit 144 to the adding unit 135.
 (動き補償部の構成例)
 図20は、図19の動き補償部144の構成例を示すブロック図である。
(Configuration example of motion compensation unit)
FIG. 20 is a block diagram illustrating a configuration example of the motion compensation unit 144 of FIG.
 図20の動き補償部144は、線形内挿フィルタ161、参照画像バッファ162、ローパスフィルタ163、および生成部164により構成される。 20 includes a linear interpolation filter 161, a reference image buffer 162, a low-pass filter 163, and a generation unit 164.
 動き補償部144の線形内挿フィルタ161は、2次元の線形内挿フィルタである。線形内挿フィルタ161は、図19の可逆復号部132から供給される参照画像特定情報で特定される参照画像を、フレームメモリ141からスイッチ142を介して読み出す。線形内挿フィルタ161は、読み出された参照画像に対して内挿フィルタ処理を行うことにより、高解像度化を行う。線形内挿フィルタ161は、高解像度化された参照画像を参照画像バッファ162に供給する。 The linear interpolation filter 161 of the motion compensation unit 144 is a two-dimensional linear interpolation filter. The linear interpolation filter 161 reads the reference image specified by the reference image specifying information supplied from the lossless decoding unit 132 in FIG. 19 from the frame memory 141 via the switch 142. The linear interpolation filter 161 increases the resolution by performing an interpolation filter process on the read reference image. The linear interpolation filter 161 supplies the reference image with a high resolution to the reference image buffer 162.
 参照画像バッファ162は、線形内挿フィルタ161から供給される参照画像を保持する。参照画像バッファ162は、拡大縮小部として機能し、図4の参照画像バッファ82と同様に、情報復号部145から供給される拡大縮小率情報に基づいて、保持している参照画像を読み出す。これにより、拡大縮小率情報が表す拡大縮小率で拡大または縮小された参照画像が生成される。参照画像バッファ162は、参照画像をローパスフィルタ163に供給する。 The reference image buffer 162 holds the reference image supplied from the linear interpolation filter 161. The reference image buffer 162 functions as an enlargement / reduction unit, and reads the held reference image based on the enlargement / reduction rate information supplied from the information decoding unit 145, similarly to the reference image buffer 82 of FIG. Thereby, a reference image enlarged or reduced at the enlargement / reduction ratio represented by the enlargement / reduction ratio information is generated. The reference image buffer 162 supplies the reference image to the low pass filter 163.
 ローパスフィルタ163は、例えば、121型のローパスフィルタである。ローパスフィルタ163は、参照画像バッファ162から供給される参照画像に対して、ローパスフィルタ83と同様に、水平方向および垂直方向にローパスフィルタ処理を施す。ローパスフィルタ163は、ローパスフィルタ処理後の参照画像を生成部164に供給する。 The low pass filter 163 is, for example, a 121 type low pass filter. The low-pass filter 163 performs low-pass filter processing on the reference image supplied from the reference image buffer 162 in the horizontal direction and the vertical direction in the same manner as the low-pass filter 83. The low pass filter 163 supplies the reference image after the low pass filter process to the generation unit 164.
 生成部164は、可逆復号部132から供給されるインター予測モードが表すPUのサイズと、情報復号部145から供給される動きベクトルとに基づいて、PU単位で、ローパスフィルタ163から供給される参照画像に補償処理を施す。生成部164は、その結果生成される予測画像を図19のスイッチ146に供給する。 The generation unit 164 is a reference supplied from the low-pass filter 163 in units of PUs based on the PU size represented by the inter prediction mode supplied from the lossless decoding unit 132 and the motion vector supplied from the information decoding unit 145. Compensate the image. The generation unit 164 supplies the predicted image generated as a result to the switch 146 in FIG.
 (復号装置の処理の説明)
 図21は、図18の復号装置110の画像生成処理を説明するフローチャートである。
(Description of processing of decoding device)
FIG. 21 is a flowchart illustrating the image generation processing of the decoding device 110 in FIG.
 図21のステップS111において、復号装置110の受け取り部111は、図1の符号化装置10から伝送されてくる符号化ストリームを受け取り、抽出部112に供給する。 21, the reception unit 111 of the decoding device 110 receives the encoded stream transmitted from the encoding device 10 of FIG. 1 and supplies the encoded stream to the extraction unit 112.
 ステップS112において、抽出部112は、受け取り部111から供給される符号化ストリームから、符号化データとパラメータセットを抽出し、復号部113に供給する。 In step S112, the extraction unit 112 extracts encoded data and a parameter set from the encoded stream supplied from the reception unit 111, and supplies the extracted encoded data and parameter set to the decoding unit 113.
 ステップS113において、復号部113は、必要に応じて抽出部112から供給されるパラメータセットを用いて、抽出部112から供給される符号化データをHEVC方式に準ずる方式で復号する復号処理を行う。この復号処理の詳細は、後述する図22を参照して説明する。そして、処理は終了する。 In step S113, the decoding unit 113 performs a decoding process for decoding the encoded data supplied from the extraction unit 112 by a method according to the HEVC method, using the parameter set supplied from the extraction unit 112 as necessary. Details of this decoding process will be described with reference to FIG. Then, the process ends.
 図22は、図21のステップS113の復号処理の詳細を説明するフローチャートである。 FIG. 22 is a flowchart for explaining the details of the decoding process in step S113 of FIG.
 図22のステップS130において、復号部113の蓄積バッファ131(図19)は、図18の抽出部112からフレーム単位の符号化データを受け取り、蓄積する。蓄積バッファ131は、蓄積されている符号化データを可逆復号部132に供給する。 22, the accumulation buffer 131 (FIG. 19) of the decoding unit 113 receives the encoded data in units of frames from the extraction unit 112 of FIG. 18 and accumulates it. The accumulation buffer 131 supplies the accumulated encoded data to the lossless decoding unit 132.
 ステップS131において、可逆復号部132は、蓄積バッファ131からの符号化データを可逆復号し、量子化された直交変換係数と符号化情報を得る。可逆復号部132は、量子化された直交変換係数を逆量子化部133に供給する。 In step S131, the lossless decoding unit 132 losslessly decodes the encoded data from the accumulation buffer 131 to obtain quantized orthogonal transform coefficients and encoded information. The lossless decoding unit 132 supplies the quantized orthogonal transform coefficient to the inverse quantization unit 133.
 また、可逆復号部132は、符号化情報としてのイントラ予測モード情報などをイントラ予測部143に供給する。可逆復号部132は、インター予測モード情報と参照画像特定情報を動き補償部144に供給し、インター予測モード情報、動きベクトル情報、および符号化拡大縮小率情報を情報復号部145に供給する。 Also, the lossless decoding unit 132 supplies intra prediction mode information as encoded information to the intra prediction unit 143. The lossless decoding unit 132 supplies inter prediction mode information and reference image specifying information to the motion compensation unit 144, and supplies inter prediction mode information, motion vector information, and encoded enlargement / reduction rate information to the information decoding unit 145.
 さらに、可逆復号部132は、符号化情報としてのイントラ予測モード情報またはインター予測モード情報をスイッチ146に供給する。可逆復号部132は、符号化情報としてのオフセットフィルタ情報を適応オフセットフィルタ137に供給し、フィルタ係数を適応ループフィルタ138に供給する。 Further, the lossless decoding unit 132 supplies intra prediction mode information or inter prediction mode information as encoded information to the switch 146. The lossless decoding unit 132 supplies offset filter information as encoded information to the adaptive offset filter 137 and supplies filter coefficients to the adaptive loop filter 138.
 ステップS132において、逆量子化部133は、可逆復号部132からの量子化された直交変換係数を逆量子化し、その結果得られる直交変換係数を逆直交変換部134に供給する。 In step S132, the inverse quantization unit 133 performs inverse quantization on the quantized orthogonal transform coefficient from the lossless decoding unit 132, and supplies the resulting orthogonal transform coefficient to the inverse orthogonal transform unit 134.
 ステップS133において、逆直交変換部134は、逆量子化部133からの直交変換係数に対して逆直交変換を施し、その結果得られる残差情報を加算部135に供給する。 In step S133, the inverse orthogonal transform unit 134 performs inverse orthogonal transform on the orthogonal transform coefficient from the inverse quantization unit 133, and supplies the residual information obtained as a result to the addition unit 135.
 ステップS134において、動き補償部144は、可逆復号部132からインター予測モード情報が供給されたかどうかを判定する。ステップS134でインター予測モード情報が供給されたと判定された場合、処理はステップS135に進む。 In step S134, the motion compensation unit 144 determines whether or not the inter prediction mode information is supplied from the lossless decoding unit 132. If it is determined in step S134 that the inter prediction mode information has been supplied, the process proceeds to step S135.
 ステップS135において、情報復号部145は、可逆復号部132から供給されるインター予測情報が表す動きベクトルの符号化モードに応じて、PU単位で、動きベクトル情報から動きベクトルを生成する。また、情報復号部145は、PU単位で、可逆復号部132から供給される符号化拡大縮小率情報を復号し、拡大縮小率情報を生成する。情報復号部145は、拡大縮小率情報と動きベクトルを動き補償部144に供給する。 In step S135, the information decoding unit 145 generates a motion vector from the motion vector information in units of PUs according to the motion vector encoding mode represented by the inter prediction information supplied from the lossless decoding unit 132. Also, the information decoding unit 145 decodes the encoded enlargement / reduction rate information supplied from the lossless decoding unit 132 in units of PUs, and generates enlargement / reduction rate information. The information decoding unit 145 supplies the enlargement / reduction ratio information and the motion vector to the motion compensation unit 144.
 ステップS136において、動き補償部144は、PU単位で、情報復号部145から供給される拡大縮小率および動きベクトル、並びに、可逆復号部132から供給されるインター予測モード情報および参照画像特定情報に基づいて、動き補償処理を行う。この動き補償処理の詳細は、後述する図23を参照して説明する。ステップS136の処理後、処理はステップS138に進む。 In step S136, the motion compensation unit 144 is based on the enlargement / reduction ratio and motion vector supplied from the information decoding unit 145, and the inter prediction mode information and reference image specifying information supplied from the lossless decoding unit 132 in units of PUs. Then, motion compensation processing is performed. Details of this motion compensation processing will be described with reference to FIG. After the process of step S136, the process proceeds to step S138.
 一方、ステップS134でインター予測モード情報が供給されていないと判定された場合、即ちイントラ予測モード情報がイントラ予測部143に供給された場合、処理はステップS137に進む。 On the other hand, if it is determined in step S134 that the inter prediction mode information is not supplied, that is, if the intra prediction mode information is supplied to the intra prediction unit 143, the process proceeds to step S137.
 ステップS137において、イントラ予測部143は、PU単位で、フレームメモリ141からスイッチ142を介して読み出された周辺画素を用いて、イントラ予測モード情報が示すイントラ予測モードのイントラ予測処理を行う。イントラ予測部143は、イントラ予測処理の結果生成される予測画像を、スイッチ146を介して加算部135に供給し、処理をステップS138に進める。 In step S137, the intra prediction unit 143 performs intra prediction processing in the intra prediction mode indicated by the intra prediction mode information using the peripheral pixels read from the frame memory 141 via the switch 142 in units of PUs. The intra prediction unit 143 supplies the prediction image generated as a result of the intra prediction process to the addition unit 135 via the switch 146, and the process proceeds to step S138.
 ステップS138において、加算部135は、逆直交変換部134から供給される残差情報と、スイッチ146から供給される予測画像を加算することにより、局部的に復号を行う。加算部135は、復号の結果得られる画像をデブロックフィルタ136とフレームメモリ141に供給する。 In step S138, the addition unit 135 performs decoding locally by adding the residual information supplied from the inverse orthogonal transform unit 134 and the prediction image supplied from the switch 146. The adding unit 135 supplies an image obtained as a result of decoding to the deblocking filter 136 and the frame memory 141.
 ステップS139において、デブロックフィルタ136は、加算部135から供給される画像に対してデブロックフィルタ処理を行い、ブロック歪を除去する。デブロックフィルタ136は、その結果得られる画像を適応オフセットフィルタ137に供給する。 In step S139, the deblock filter 136 performs a deblock filter process on the image supplied from the adder 135 to remove block distortion. The deblocking filter 136 supplies the resulting image to the adaptive offset filter 137.
 ステップS140において、適応オフセットフィルタ137は、可逆復号部132から供給されるオフセットフィルタ情報に基づいて、デブロックフィルタ136からの画像に対して、LCUごとに適応オフセットフィルタ処理を行う。適応オフセットフィルタ137は、適応オフセットフィルタ処理後の画像を、適応ループフィルタ138に供給する。 In step S140, the adaptive offset filter 137 performs adaptive offset filter processing for each LCU on the image from the deblocking filter 136 based on the offset filter information supplied from the lossless decoding unit 132. The adaptive offset filter 137 supplies the image after the adaptive offset filter processing to the adaptive loop filter 138.
 ステップS141において、適応ループフィルタ138は、適応オフセットフィルタ137から供給される画像に対して、可逆復号部132から供給されるフィルタ係数を用いて、LCUごとに適応ループフィルタ処理を行う。適応ループフィルタ138は、その結果得られる画像をフレームメモリ141および画面並べ替えバッファ139に供給する。 In step S141, the adaptive loop filter 138 performs adaptive loop filter processing for each LCU on the image supplied from the adaptive offset filter 137 using the filter coefficient supplied from the lossless decoding unit 132. The adaptive loop filter 138 supplies the resulting image to the frame memory 141 and the screen rearrangement buffer 139.
 ステップS142において、フレームメモリ141は、加算部135から供給される画像と、適応ループフィルタ138から供給される画像を蓄積する。フレームメモリ141に蓄積されたフィルタ処理が行われていない画像のうちのPUに隣接する画素は、周辺画素としてスイッチ142を介してイントラ予測部143に供給される。一方、フレームメモリ141に蓄積されたフィルタ処理が行われた画像は、参照画像として、スイッチ142を介して動き補償部144に供給される。 In step S142, the frame memory 141 stores the image supplied from the adder 135 and the image supplied from the adaptive loop filter 138. Pixels adjacent to the PU in the image that has not been subjected to filter processing accumulated in the frame memory 141 are supplied to the intra prediction unit 143 via the switch 142 as peripheral pixels. On the other hand, the filtered image stored in the frame memory 141 is supplied to the motion compensation unit 144 via the switch 142 as a reference image.
 ステップS143において、画面並べ替えバッファ139は、適応ループフィルタ138から供給される画像をフレーム単位で記憶し、記憶した符号化のための順番のフレーム単位の画像を、元の表示の順番に並び替え、D/A変換部140に供給する。 In step S143, the screen rearrangement buffer 139 stores the image supplied from the adaptive loop filter 138 in units of frames, and rearranges the stored frame-by-frame images for encoding in the original display order. To the D / A converter 140.
 ステップS144において、D/A変換部140は、画面並べ替えバッファ139から供給されるフレーム単位の画像をD/A変換し、出力する。そして、処理は、図21のステップS113に戻り、終了する。 In step S144, the D / A conversion unit 140 performs D / A conversion on the frame-based image supplied from the screen rearrangement buffer 139, and outputs it. Then, the process returns to step S113 in FIG. 21 and ends.
 図23は、図22のステップS136の動き補償処理の詳細を説明するフローチャートである。この動き補償処理は、PU単位で行われる。 FIG. 23 is a flowchart for explaining the details of the motion compensation processing in step S136 of FIG. This motion compensation process is performed in units of PUs.
 図23のステップS150において、動き補償部144の線形内挿フィルタ161(図20)は、可逆復号部132から参照画像特定情報を取得する。ステップS151において、線形内挿フィルタ161は、参照画像特定情報で特定される参照画像をフレームメモリ141からスイッチ142を介して読み出す。 23, the linear interpolation filter 161 (FIG. 20) of the motion compensation unit 144 acquires reference image specifying information from the lossless decoding unit 132. In step S151, the linear interpolation filter 161 reads the reference image specified by the reference image specifying information from the frame memory 141 via the switch 142.
 ステップS152において、線形内挿フィルタ161は、読み出された参照画像に対して内挿フィルタ処理を行うことにより、参照画像を高解像度化する。線形内挿フィルタ161は、高解像度化された参照画像を参照画像バッファ162に供給し、保持させる。 In step S152, the linear interpolation filter 161 increases the resolution of the reference image by performing an interpolation filter process on the read reference image. The linear interpolation filter 161 supplies the high-resolution reference image to the reference image buffer 162 and holds it.
 ステップS153において、参照画像バッファ162は、情報復号部145から拡大縮小率情報を取得する。ステップS154において、参照画像バッファ162は、拡大縮小率情報に基づいて保持している参照画像を読み出すことにより、拡大縮小率が表す拡大縮小率で拡大または縮小された参照画像を生成する。参照画像バッファ162は、参照画像をローパスフィルタ163に供給する。 In step S153, the reference image buffer 162 acquires the enlargement / reduction ratio information from the information decoding unit 145. In step S154, the reference image buffer 162 reads the reference image held based on the enlargement / reduction ratio information, thereby generating a reference image enlarged or reduced at the enlargement / reduction ratio represented by the enlargement / reduction ratio. The reference image buffer 162 supplies the reference image to the low pass filter 163.
 ステップS155において、ローパスフィルタ163は、参照画像バッファ162から供給される参照画像に対して、水平方向および垂直方向にローパスフィルタ処理を施す。ローパスフィルタ163は、ローパスフィルタ処理後の参照画像を生成部164に供給する。 In step S155, the low-pass filter 163 performs low-pass filter processing on the reference image supplied from the reference image buffer 162 in the horizontal direction and the vertical direction. The low pass filter 163 supplies the reference image after the low pass filter process to the generation unit 164.
 ステップS156において、生成部164は、可逆復号部132からインター予測モードを取得する。ステップS157において、生成部164は、情報復号部145から動きベクトルを取得する。 In step S156, the generation unit 164 acquires the inter prediction mode from the lossless decoding unit 132. In step S157, the generation unit 164 acquires a motion vector from the information decoding unit 145.
 ステップS158において、生成部164は、インター予測モード情報が表すPUのサイズと動きベクトルに基づいて、ローパスフィルタ163から供給される参照画像に補償処理を施す。生成部164は、その結果生成される予測画像を図19のスイッチ146に供給する。 In step S158, the generation unit 164 performs compensation processing on the reference image supplied from the low-pass filter 163 based on the PU size and the motion vector represented by the inter prediction mode information. The generation unit 164 supplies the predicted image generated as a result to the switch 146 in FIG.
 以上のように、復号装置110は、拡大縮小率情報に基づいて参照画像を拡大または縮小し、拡大または縮小された参照画像を用いて予測画像を生成する。従って、符号化装置10により符号化対象の画像が拡大や縮小する場合の符号化効率を向上させるように符号化された符号化ストリームを復号することができる。 As described above, the decoding apparatus 110 enlarges or reduces the reference image based on the enlargement / reduction ratio information, and generates a predicted image using the enlarged or reduced reference image. Therefore, it is possible to decode the encoded stream that is encoded by the encoding device 10 so as to improve the encoding efficiency when the image to be encoded is enlarged or reduced.
 なお、参照画像に対してローパスフィルタ処理を施さないようにすることもできる。また、ローパスフィルタ処理の有無は、PUやCU単位で制御されるようにしてもよい。この場合、例えば、PUやCUのサイズが所定のサイズより小さい場合、即ち折り返し歪みによる画質劣化が顕著である場合にのみ、ローパスフィルタ処理が施されるようにすることができる。また、この場合、必要に応じて、符号化装置10は、ローパスフィルタ処理が施されたかどうかを表す情報をPUやCU単位で復号装置110に伝送し、復号装置110は、その情報に基づいて参照画像に対してローパスフィルタ処理を施す。 Note that it is possible not to perform low-pass filter processing on the reference image. The presence / absence of low-pass filter processing may be controlled in units of PUs or CUs. In this case, for example, the low pass filter process can be performed only when the size of the PU or CU is smaller than a predetermined size, that is, when the image quality deterioration due to aliasing distortion is significant. In this case, as necessary, the encoding device 10 transmits information indicating whether low-pass filter processing has been performed to the decoding device 110 in units of PUs or CUs, and the decoding device 110 performs the processing based on the information. Low-pass filter processing is performed on the reference image.
 また、参照画像の拡大および縮小は、ピクチャ単位でオンオフされるようにしてもよい。この場合、PPSに参照画像を拡大または縮小するかどうかを表す情報(enabled_flag)が設定され、enabled_flagが参照画像を拡大または縮小することを表す1である場合、拡大縮小率が設定される。そして、enabled_flagが1である場合、参照画像がPPSに設定されている拡大縮小率で拡大または縮小され、0である場合、参照画像は拡大および縮小されない。同様に、参照画像の拡大および縮小は、スライス単位でオンオフされるようにしてもよい。この場合、スライスヘッダにenabled_flagが設定され、enabled_flagが1である場合、拡大縮小率が設定される。また、参照画像の拡大および縮小は、CU単位でオンオフされるようにしてもよい。 Also, the enlargement and reduction of the reference image may be turned on and off in units of pictures. In this case, information (enabled_flag) indicating whether to enlarge or reduce the reference image is set in the PPS, and when enabled_flag is 1 indicating that the reference image is enlarged or reduced, an enlargement / reduction rate is set. When enabled_flag is 1, the reference image is enlarged or reduced at the enlargement / reduction ratio set in PPS. When it is 0, the reference image is not enlarged or reduced. Similarly, the enlargement and reduction of the reference image may be turned on / off in units of slices. In this case, enabled_flag is set in the slice header, and when enabled_flag is 1, the enlargement / reduction ratio is set. Further, the enlargement and reduction of the reference image may be turned on / off in units of CUs.
 さらに、符号化拡大縮小率情報は、PU単位で伝送されるようにしてもよいし、CU単位で伝送されるようにしてもよい。 Further, the encoded enlargement / reduction ratio information may be transmitted in units of PUs or may be transmitted in units of CUs.
 また、動きベクトルの符号化モードがマージモードである場合、動きベクトルの参照先である周辺PUの拡大縮小率が、参照元の処理対象のPUの最適な拡大縮小率に決定されてもよい。この場合、符号化装置10は、符号化拡大縮小率情報を伝送せず、復号装置110は、マージモード時に、周辺PUの拡大縮小率を処理対象のPUの拡大縮小率とする。 Also, when the motion vector encoding mode is the merge mode, the enlargement / reduction rate of the peripheral PU that is the reference destination of the motion vector may be determined as the optimum enlargement / reduction rate of the PU that is the reference source processing target. In this case, the encoding device 10 does not transmit the encoding enlargement / reduction rate information, and the decoding device 110 sets the enlargement / reduction rate of the peripheral PU as the enlargement / reduction rate of the processing target PU in the merge mode.
 さらに、上述した説明では、拡大縮小率は、水平方向および垂直方向で同一であるようにしたが、異なるようにしてもよい。 Furthermore, in the above description, the enlargement / reduction ratio is the same in the horizontal direction and the vertical direction, but may be different.
 また、拡大縮小率は、参照方向ごとに独立して設定されるようにしてもよい。参照方向には、参照画像の符号化順が符号化対象の画像より前である前方向と、参照画像の符号化順が符号化対象の画像より後である後方向がある。 Also, the enlargement / reduction ratio may be set independently for each reference direction. The reference direction includes a forward direction in which the encoding order of the reference image is before the encoding target image, and a backward direction in which the encoding order of the reference image is after the encoding target image.
 拡大縮小率が参照方向ごとに独立して設定される場合、符号化装置10は、参照方向ごとに符号化拡大縮小率情報を伝送するようにしてもよいし、前方向と後方向のうちのいずれか一方の符号化拡大縮小率情報のみを伝送するようにしてもよい。 When the enlargement / reduction ratio is set independently for each reference direction, the encoding apparatus 10 may transmit the encoded enlargement / reduction ratio information for each reference direction, or the forward direction and the rear direction may be transmitted. Only one of the encoded enlargement / reduction ratio information may be transmitted.
 符号化装置10が、参照方向のうちのいずれか一方の符号化拡大縮小率情報のみを伝送する場合、復号装置110は、一方の参照画像、復号対象の画像、および他方の参照画像の時間的距離と、一方の拡大縮小率とに基づいて、他方の拡大縮小率を算出する。 When the encoding device 10 transmits only the encoding enlargement / reduction rate information of one of the reference directions, the decoding device 110 temporally compares one reference image, the image to be decoded, and the other reference image. Based on the distance and one enlargement / reduction ratio, the other enlargement / reduction ratio is calculated.
 具体的には、例えば、図24に示すように、参照方向が前方向である場合の拡大縮小率情報が-1であり、その拡大縮小率情報の符号化拡大縮小率情報が伝送される場合、復号装置110は、符号化対象の画像181と前方向の参照画像182との時間的距離を算出する。また、復号装置110は、符号化対象の画像181と後方向の参照画像183との時間的距離を算出する。なお、時間的距離とは、POC(Picture Order Count)の差分である。 Specifically, for example, as illustrated in FIG. 24, when the reference direction is the forward direction, the enlargement / reduction rate information is -1, and the encoded enlargement / reduction rate information of the enlargement / reduction rate information is transmitted. The decoding apparatus 110 calculates a temporal distance between the encoding target image 181 and the forward reference image 182. Also, the decoding device 110 calculates the temporal distance between the encoding target image 181 and the backward reference image 183. The temporal distance is a difference between POC (Picture (Order Count).
 図24の例では、符号化対象の画像181と参照画像182の時間的距離と、符号化対象の画像181と参照画像183の時間的距離は同一である。従って、復号装置110は、参照方向が前方向である場合の拡大縮小率情報の正負を反対にした値の1倍、即ち1を、参照方向が後方向である場合の拡大縮小率情報として生成する。 24, the temporal distance between the encoding target image 181 and the reference image 182 and the temporal distance between the encoding target image 181 and the reference image 183 are the same. Therefore, the decoding apparatus 110 generates 1 times the value obtained by reversing the sign of the enlargement / reduction rate information when the reference direction is the forward direction, that is, 1 as the enlargement / reduction rate information when the reference direction is the backward direction. To do.
 <第2実施の形態>
 (符号化装置の第2実施の形態の構成例)
 本開示を適用した符号化装置の第2実施の形態の構成は、符号化部12を除いて、図1の符号化装置10と同様に構成される。従って、以下では、符号化部についてのみ説明する。
<Second Embodiment>
(Configuration example of the second embodiment of the encoding device)
The configuration of the encoding apparatus according to the second embodiment to which the present disclosure is applied is configured similarly to the encoding device 10 of FIG. 1 except for the encoding unit 12. Therefore, only the encoding unit will be described below.
 図25は、本開示を適用した符号化装置の第2実施の形態の符号化部の構成例を示すブロック図である。 FIG. 25 is a block diagram illustrating a configuration example of the encoding unit of the second embodiment of the encoding device to which the present disclosure is applied.
 図25に示す構成のうち、図2の構成と同じ構成には同じ符号を付してある。重複する説明については適宜省略する。 25, the same reference numerals are given to the same components as those in FIG. The overlapping description will be omitted as appropriate.
 図25の符号化部200の構成は、決定部49が設けられない点、拡大縮小部201が設けられる点、および、フレームメモリ45、動き予測・補償部48、可逆符号化部36の代わりにフレームメモリ202、動き予測・補償部203、可逆符号化部204が設けられる点が、図2の符号化部12の構成と異なる。符号化部200は、各復号画像について拡大縮小率の異なる複数の復号画像をフレームメモリ202に保持し、その復号画像に対して異なる参照画像特定情報を付与する。 The configuration of the encoding unit 200 in FIG. 25 is that the determination unit 49 is not provided, the enlargement / reduction unit 201 is provided, and the frame memory 45, the motion prediction / compensation unit 48, and the lossless encoding unit 36 are used. 2 is different from the configuration of the encoding unit 12 in that a frame memory 202, a motion prediction / compensation unit 203, and a lossless encoding unit 204 are provided. The encoding unit 200 holds a plurality of decoded images having different enlargement / reduction ratios for each decoded image in the frame memory 202, and assigns different reference image specifying information to the decoded images.
 具体的には、符号化部200の拡大縮小部201は、PPSに設定される拡大縮小率対応情報に基づいて、適応ループフィルタ44から供給される画像を参照画像の候補として拡大または縮小し、フレームメモリ202に供給する。拡大縮小率対応情報とは、参照画像の候補の参照画像特定情報と、その参照画像特定情報で特定される参照画像の候補の拡大縮小率の対応関係を表す情報である。この拡大縮小率は、水平方向および垂直方向で同一であってもよいし、異なっていてもよい。 Specifically, the enlargement / reduction unit 201 of the encoding unit 200 enlarges or reduces the image supplied from the adaptive loop filter 44 as a reference image candidate based on the enlargement / reduction rate correspondence information set in the PPS, The frame memory 202 is supplied. The enlargement / reduction rate correspondence information is information representing the correspondence between reference image candidate reference image specification information and the reference image candidate enlargement / reduction rate specified by the reference image specification information. This enlargement / reduction ratio may be the same in the horizontal direction and the vertical direction, or may be different.
 フレームメモリ202は、拡大縮小部201から供給される画像と、加算部41から供給される画像を蓄積する。フレームメモリ202に蓄積されたフィルタ処理が行われていない画像のうちのPUに隣接する画素は、周辺画素としてスイッチ46を介してイントラ予測部47に供給される。一方、フレームメモリ202に蓄積されたフィルタ処理が行われた画像は、参照画像としてスイッチ46を介して動き予測・補償部203に出力される。 The frame memory 202 stores the image supplied from the enlargement / reduction unit 201 and the image supplied from the addition unit 41. Pixels adjacent to the PU in the image that has not been subjected to the filter processing accumulated in the frame memory 202 are supplied as peripheral pixels to the intra prediction unit 47 via the switch 46. On the other hand, the filtered image stored in the frame memory 202 is output to the motion prediction / compensation unit 203 via the switch 46 as a reference image.
 動き予測・補償部203は、PU単位で、候補となるインター予測モード、動きベクトル、および参照画像に基づいて、動き予測・補償処理を行う。具体的には、動き予測・補償部203は、フレームメモリ202からスイッチ46を介して候補となる参照画像を読み出す。動き予測・補償部203は、参照画像に対して内挿フィルタ処理を行うことにより、参照画像を高解像度化する。 The motion prediction / compensation unit 203 performs a motion prediction / compensation process based on the candidate inter prediction mode, the motion vector, and the reference image for each PU. Specifically, the motion prediction / compensation unit 203 reads candidate reference images from the frame memory 202 via the switch 46. The motion prediction / compensation unit 203 increases the resolution of the reference image by performing an interpolation filter process on the reference image.
 また、動き予測・補償部203は、候補となるインター予測モードと分数画素精度の動きベクトルに基づいて、高解像度化された参照画像に補償処理を施し、予測画像を生成する。動き予測・補償部203は、画面並べ替えバッファ32から供給される画像と予測画像とに基づいて、インター予測モード、動きベクトル、および参照画像の組み合わせに対してコスト関数値を算出する。動き予測・補償部203は、コスト関数値が最小となるインター予測モードを最適インター予測モードに決定する。また、動き予測・補償部203は、コスト関数値が最小となる動きベクトルと参照画像を、最適な動きベクトルと参照画像に決定する。そして、動き予測・補償部203は、最適インター予測モードの予測画像とコスト関数値を予測画像選択部50に供給する。 Also, the motion prediction / compensation unit 203 performs compensation processing on the reference image that has been increased in resolution based on the candidate inter prediction mode and the motion vector with fractional pixel accuracy, and generates a predicted image. The motion prediction / compensation unit 203 calculates a cost function value for the combination of the inter prediction mode, the motion vector, and the reference image based on the image and the predicted image supplied from the screen rearrangement buffer 32. The motion prediction / compensation unit 203 determines the inter prediction mode that minimizes the cost function value as the optimal inter prediction mode. In addition, the motion prediction / compensation unit 203 determines the motion vector and reference image that minimize the cost function value as the optimal motion vector and reference image. Then, the motion prediction / compensation unit 203 supplies the predicted image and the cost function value in the optimal inter prediction mode to the predicted image selection unit 50.
 また、動き予測・補償部203は、予測画像選択部50から最適インター予測モードで生成された予測画像の選択が通知された場合、インター予測モード情報、並びに、最適な動きベクトルの動きベクトル情報および参照画像の参照画像特定情報を可逆符号化部204に出力する。 In addition, when the prediction image selection unit 50 is notified of the selection of the prediction image generated in the optimal inter prediction mode, the motion prediction / compensation unit 203 receives the inter prediction mode information, the motion vector information of the optimal motion vector, and The reference image specifying information of the reference image is output to the lossless encoding unit 204.
 可逆符号化部204は、量子化部35から供給される量子化された直交変換係数に対して可逆符号化を行う。また、可逆符号化部204は、イントラ予測モード情報、または、インター予測モード情報、動きベクトル情報、および参照画像特定情報、オフセットフィルタ情報、並びにフィルタ係数を、符号化情報として可逆符号化する。可逆符号化部204は、可逆符号化された符号化情報と直交変換係数を、符号化データとして蓄積バッファ37に供給し、蓄積させる。なお、可逆符号化された符号化情報は、スライスヘッダ等のヘッダ部として符号化データに付加されるようにしてもよい。 The lossless encoding unit 204 performs lossless encoding on the quantized orthogonal transform coefficient supplied from the quantization unit 35. Further, the lossless encoding unit 204 performs lossless encoding on intra prediction mode information, inter prediction mode information, motion vector information, reference image specifying information, offset filter information, and filter coefficients as encoded information. The lossless encoding unit 204 supplies the encoded information and the orthogonal transform coefficient, which are losslessly encoded, to the accumulation buffer 37 as encoded data, and accumulates them. Note that the losslessly encoded encoding information may be added to the encoded data as a header portion such as a slice header.
 (動き予測・補償部の構成例)
 図26は、図25の動き予測・補償部203の構成例を示すブロック図である。
(Configuration example of motion prediction / compensation unit)
FIG. 26 is a block diagram illustrating a configuration example of the motion prediction / compensation unit 203 of FIG.
 図26に示す構成のうち、図4の構成と同じ構成には同じ符号を付してある。重複する説明については適宜省略する。 26, the same components as those in FIG. 4 are denoted by the same reference numerals. The overlapping description will be omitted as appropriate.
 図26の動き予測・補償部203の構成は、ローパスフィルタ83が設けられない点、参照画像バッファ82、生成部84、算出部87、決定部88、情報符号化部89の代わりに、参照画像バッファ221、生成部222、算出部223、決定部224、情報符号化部225が設けられる点が、図4の動き予測・補償部48の構成と異なる。 The configuration of the motion prediction / compensation unit 203 in FIG. 26 is that a low-pass filter 83 is not provided, and a reference image is used instead of the reference image buffer 82, the generation unit 84, the calculation unit 87, the determination unit 88, and the information encoding unit 89. 4 is different from the configuration of the motion prediction / compensation unit 48 in that a buffer 221, a generation unit 222, a calculation unit 223, a determination unit 224, and an information encoding unit 225 are provided.
 参照画像バッファ221は、線形内挿フィルタ81から供給される参照画像を保持する。 The reference image buffer 221 holds the reference image supplied from the linear interpolation filter 81.
 生成部222は、PU単位で、候補となる動きベクトルに基づいて、参照画像バッファ221に保持されている参照画像に補償処理を施し、予測画像を生成する。生成部222は、予測画像を算出部223に供給する。候補となる動きベクトルは、第1実施の形態の場合と同様である。 The generating unit 222 performs a compensation process on the reference image held in the reference image buffer 221 based on a candidate motion vector for each PU, and generates a predicted image. The generation unit 222 supplies the predicted image to the calculation unit 223. Candidate motion vectors are the same as in the first embodiment.
 算出部223は、PUバッファ86からPU単位の画像を読み出す。算出部223は、インター予測モード、動きベクトル、および参照画像の組み合わせに対して、読み出された画像と予測画像とに基づいて、コスト関数値を算出する。算出部223は、コスト関数値と、対応するインター予測モード、動きベクトル、および参照画像の組み合わせ並びに予測画像とを決定部224に供給する。 The calculation unit 223 reads the PU unit image from the PU buffer 86. The calculation unit 223 calculates a cost function value for the combination of the inter prediction mode, the motion vector, and the reference image based on the read image and the predicted image. The calculation unit 223 supplies the cost function value, the corresponding inter prediction mode, the motion vector, the combination of the reference image, and the prediction image to the determination unit 224.
 決定部224は、算出部223から供給されるコスト関数値が最小となるときのインター予測モードを最適インター予測モードに決定し、動きベクトルおよび参照画像を最適な動きベクトルおよび参照画像に決定する。決定部224は、最適インター予測モードの予測画像とコスト関数値を図25の予測画像選択部50に供給する。また、予測画像選択部50から最適インター予測モードで生成された予測画像の選択が通知された場合、決定部224は、最適インター予測モード、並びに、最適な動きベクトルおよび参照画像の参照画像特定情報を情報符号化部225に供給する。 The determination unit 224 determines the inter prediction mode when the cost function value supplied from the calculation unit 223 is minimum as the optimal inter prediction mode, and determines the motion vector and the reference image as the optimal motion vector and the reference image. The determination unit 224 supplies the prediction image and the cost function value in the optimal inter prediction mode to the prediction image selection unit 50 in FIG. In addition, when the prediction image selection unit 50 notifies the selection of the prediction image generated in the optimal inter prediction mode, the determination unit 224 determines the optimal inter prediction mode, the optimal motion vector, and the reference image specifying information of the reference image. Is supplied to the information encoding unit 225.
 情報符号化部225は、図4の情報符号化部89と同様に、処理対象のPUの動きベクトル情報を生成する。情報符号化部225は、最適インター予測モード、動きベクトル情報、および参照画像特定情報を図25の可逆符号化部204に供給する。 The information encoding unit 225 generates the motion vector information of the PU to be processed, similar to the information encoding unit 89 in FIG. The information encoding unit 225 supplies the optimal inter prediction mode, motion vector information, and reference image specifying information to the lossless encoding unit 204 in FIG.
 (符号化部の処理の説明)
 図27および図28は、図25の符号化部200の符号化処理を説明するフローチャートである。
(Description of processing of encoding unit)
27 and 28 are flowcharts illustrating the encoding process of the encoding unit 200 in FIG.
 図27のステップS170およびS171の処理は、図15のステップS30およびS31の処理と同様であるので、説明は省略する。 27 is the same as the process of steps S30 and S31 of FIG. 15, and thus the description thereof is omitted.
 ステップS172において、イントラ予測部47は、PU単位で、候補となる全てのイントラ予測モードのイントラ予測処理を行う。また、イントラ予測部47は、画面並べ替えバッファ32から読み出された画像と、イントラ予測処理の結果生成される予測画像とに基づいて、候補となる全てのイントラ予測モードに対してコスト関数値を算出する。そして、イントラ予測部47は、コスト関数値が最小となるイントラ予測モードを、最適イントラ予測モードに決定する。イントラ予測部47は、最適イントラ予測モードで生成された予測画像、および、対応するコスト関数値を、予測画像選択部50に供給する。 In step S172, the intra prediction unit 47 performs intra prediction processing for all candidate intra prediction modes in units of PUs. Further, the intra prediction unit 47 calculates cost function values for all candidate intra prediction modes based on the image read from the screen rearrangement buffer 32 and the prediction image generated as a result of the intra prediction process. Is calculated. Then, the intra prediction unit 47 determines the intra prediction mode that minimizes the cost function value as the optimal intra prediction mode. The intra prediction unit 47 supplies the predicted image generated in the optimal intra prediction mode and the corresponding cost function value to the predicted image selection unit 50.
 また、動き予測・補償部203は、PU単位で、候補となるインター予測モード、動きベクトル、および参照画像に基づいて、動き予測・補償処理を行う。この動き予測・補償処理の詳細は、後述する図29を参照して説明する。 Also, the motion prediction / compensation unit 203 performs a motion prediction / compensation process based on the candidate inter prediction mode, motion vector, and reference image in units of PUs. Details of the motion prediction / compensation processing will be described with reference to FIG. 29 described later.
 ステップS173およびS174の処理は、図15のステップS33およびS34の処理と同様であるので、説明は省略する。 Since the processing in steps S173 and S174 is the same as the processing in steps S33 and S34 in FIG.
 ステップS175において、動き予測・補償部203の情報符号化部225(図26)は、動きベクトルの符号化モードに応じて動きベクトル情報を生成する。ステップS176において、情報符号化部225は、インター予測モード情報、動きベクトル情報、および参照画像特定情報を可逆符号化部204に供給し、処理をステップS178に進める。 In step S175, the information encoding unit 225 (FIG. 26) of the motion prediction / compensation unit 203 generates motion vector information in accordance with the motion vector encoding mode. In step S176, the information encoding unit 225 supplies the inter prediction mode information, the motion vector information, and the reference image specifying information to the lossless encoding unit 204, and the process proceeds to step S178.
 ステップS177乃至S186の処理は、図15および図16のステップS37乃至S46の処理と同様であるので、説明は省略する。 Since the processing of steps S177 to S186 is the same as the processing of steps S37 to S46 of FIGS. 15 and 16, description thereof will be omitted.
 ステップS187において、拡大縮小部201は、PPSに設定される拡大縮小率対応情報に基づいて、適応ループフィルタ44から供給される画像を参照画像の候補として拡大または縮小する。具体的には、拡大縮小部201は、拡大縮小率対応情報において、適応ループフィルタ44から供給される画像を特定する複数の参照画像特定情報に対応付けられている全ての拡大縮小率を、その画像の拡大縮小率とする。 In step S187, the enlargement / reduction unit 201 enlarges or reduces the image supplied from the adaptive loop filter 44 as a reference image candidate based on the enlargement / reduction rate correspondence information set in the PPS. Specifically, the enlargement / reduction unit 201 sets all the enlargement / reduction rates associated with a plurality of pieces of reference image specifying information for specifying images supplied from the adaptive loop filter 44 in the enlargement / reduction rate correspondence information. The image scaling rate.
 拡大縮小部201は、拡大縮小率が拡大の率である場合、適応ループフィルタ44から供給される画像内の1つの画素を、拡大後の画像を構成する複数の画素として生成する。また、拡大縮小部201は、拡大縮小率が縮小の率である場合、適応ループフィルタ44から供給される画像の複数の画素からなる領域内の1つの画素を、その領域に対応する縮小後の画像の画素として生成する。そして、拡大縮小部201は、拡大後の画像または縮小後の画像を、フレームメモリ202に供給する。 When the enlargement / reduction ratio is an enlargement ratio, the enlargement / reduction unit 201 generates one pixel in the image supplied from the adaptive loop filter 44 as a plurality of pixels constituting the enlarged image. In addition, when the enlargement / reduction ratio is the reduction ratio, the enlargement / reduction unit 201 selects one pixel in an area composed of a plurality of pixels of the image supplied from the adaptive loop filter 44 after the reduction corresponding to the area. Generated as image pixels. Then, the enlargement / reduction unit 201 supplies the enlarged image or the reduced image to the frame memory 202.
 ステップS188において、フレームメモリ202は、拡大縮小部201から供給される画像と加算部41から供給される画像を蓄積する。フレームメモリ202に蓄積されたフィルタ処理が行われていない画像のうちのPUに隣接する画素は、周辺画素としてスイッチ46を介してイントラ予測部47に供給される。一方、フレームメモリ202に蓄積されたフィルタ処理が行われた画像は、参照画像としてスイッチ46を介して動き予測・補償部203に出力される。 In step S188, the frame memory 202 accumulates the image supplied from the enlargement / reduction unit 201 and the image supplied from the addition unit 41. Pixels adjacent to the PU in the image that has not been subjected to the filter processing accumulated in the frame memory 202 are supplied as peripheral pixels to the intra prediction unit 47 via the switch 46. On the other hand, the filtered image stored in the frame memory 202 is output to the motion prediction / compensation unit 203 via the switch 46 as a reference image.
 ステップS189乃至S193の処理は、図16のステップS48乃至S52の処理と同様であるので、説明は省略する。 The processing in steps S189 through S193 is the same as the processing in steps S48 through S52 in FIG.
 図29は、図27のステップS172の動き予測・補償処理の詳細を説明するフローチャートである。 FIG. 29 is a flowchart for explaining the details of the motion prediction / compensation processing in step S172 of FIG.
 図29のステップS201乃至S207の処理は、図17のステップS71,S73乃至S75、およびS78乃至S80の処理と同様であるので、説明は省略する。 29 is the same as the processes in steps S71, S73 to S75, and S78 to S80 in FIG.
 ステップS208において、算出部223は、PUバッファ86からPU単位の画像を読み出し、その画像と予測画像とに基づいてコスト関数値を算出する。算出部223は、コスト関数値と予測画像を決定部224に供給する。また、算出部223は、ステップS201およびS206で決定された参照画像および動きベクトル、並びに、その動きベクトルに対応する動きベクトルの符号化モードとステップS202で決定されたPUのサイズとを表すインター予測モードの組み合わせを決定部224に供給する。 In step S208, the calculation unit 223 reads the PU unit image from the PU buffer 86, and calculates the cost function value based on the image and the predicted image. The calculation unit 223 supplies the cost function value and the predicted image to the determination unit 224. The calculation unit 223 also performs inter prediction that represents the reference image and motion vector determined in steps S201 and S206, the motion vector encoding mode corresponding to the motion vector, and the PU size determined in step S202. The combination of modes is supplied to the determination unit 224.
 ステップS209乃至S211の処理は、ステップS82,S83、およびS85の処理と同様であるので、説明は省略する。 Since the processing of steps S209 to S211 is the same as the processing of steps S82, S83, and S85, description thereof will be omitted.
 ステップS212において、決定部224は、算出部223から供給されるコスト関数値が最小となるときのインター予測モードを最適インター予測モードに決定する。また、決定部224は、コスト関数値が最小となるときの動きベクトルと参照画像を、最適な動きベクトルと参照画像に決定する。 In step S212, the determination unit 224 determines the inter prediction mode when the cost function value supplied from the calculation unit 223 is minimum as the optimal inter prediction mode. In addition, the determination unit 224 determines the motion vector and reference image when the cost function value is minimum as the optimal motion vector and reference image.
 ステップS213において、決定部224は、最適インター予測モードのコスト関数値と予測画像を図25の予測画像選択部50に供給する。 In step S213, the determination unit 224 supplies the cost function value and the prediction image in the optimal inter prediction mode to the prediction image selection unit 50 in FIG.
 以上のように、符号化部200は、拡大縮小率対応情報に基づいて、参照画像の候補となる復号画像を拡大または縮小し、拡大または縮小された復号画像を参照画像として用いて予測画像を生成する。従って、符号化対象の画像が拡大や縮小する場合の予測精度が向上し、符号化効率が向上する。 As described above, the encoding unit 200 enlarges or reduces a decoded image that is a reference image candidate based on the enlargement / reduction ratio correspondence information, and uses the enlarged or reduced decoded image as a reference image to generate a predicted image. Generate. Therefore, the prediction accuracy when the image to be encoded is enlarged or reduced is improved, and the encoding efficiency is improved.
 (復号装置の第2実施の形態の構成例)
 本開示を適用した復号装置の第2実施の形態の構成は、復号部113を除いて、図18の復号装置110と同様であるので、以下では、復号部についてのみ説明する。
(Configuration example of second embodiment of decoding device)
Since the configuration of the second embodiment of the decoding device to which the present disclosure is applied is the same as that of the decoding device 110 in FIG. 18 except for the decoding unit 113, only the decoding unit will be described below.
 図30は、本開示を適用した復号装置の第2実施の形態の復号部の構成例を示すブロック図である。 FIG. 30 is a block diagram illustrating a configuration example of a decoding unit according to the second embodiment of the decoding device to which the present disclosure is applied.
 図30に示す構成のうち、図19の構成と同じ構成には同じ符号を付してある。重複する説明については適宜省略する。 30, the same reference numerals are given to the same components as those in FIG. 19. The overlapping description will be omitted as appropriate.
 図30の復号部240の構成は、可逆復号部132、情報復号部145、フレームメモリ141、動き補償部144の代わりに、可逆復号部241、情報復号部242、フレームメモリ244、動き補償部245が設けられる点、および、拡大縮小部243が新たに設けられる点が、図19の復号部113の構成と異なる。 30 includes a lossless decoding unit 132, an information decoding unit 145, a frame memory 141, and a motion compensation unit 144 instead of the lossless decoding unit 241, the information decoding unit 242, the frame memory 244, and the motion compensation unit 245. Is different from the configuration of the decoding unit 113 in FIG. 19 in that the point is provided and the point that the enlargement / reduction unit 243 is newly provided.
 具体的には、可逆復号部241は、蓄積バッファ131からの符号化データに対して、図25の可逆符号化部204の可逆符号化に対応する可逆復号を施すことで、量子化された直交変換係数と符号化情報を得る。可逆復号部241は、量子化された直交変換係数を逆量子化部133に供給する。また、可逆復号部241は、符号化情報としてのイントラ予測モード情報などをイントラ予測部143に供給する。可逆復号部241は、インター予測モード情報と参照画像特定情報を動き補償部245に供給し、インター予測モード情報と動きベクトル情報を情報復号部242に供給する。 Specifically, the lossless decoding unit 241 performs quantized orthogonality by performing lossless decoding corresponding to the lossless encoding of the lossless encoding unit 204 of FIG. 25 on the encoded data from the accumulation buffer 131. Obtain transform coefficients and encoding information. The lossless decoding unit 241 supplies the quantized orthogonal transform coefficient to the inverse quantization unit 133. In addition, the lossless decoding unit 241 supplies intra prediction mode information as encoded information to the intra prediction unit 143. The lossless decoding unit 241 supplies the inter prediction mode information and the reference image specifying information to the motion compensation unit 245, and supplies the inter prediction mode information and the motion vector information to the information decoding unit 242.
 情報復号部242は、図19の情報復号部145と同様に、可逆復号部241から供給されるインター予測情報が表す動きベクトルの符号化モードに基づいて、処理対象のPUの動きベクトルを生成する。情報復号部242は、生成された動きベクトルを動き補償部245に供給する。 Similarly to the information decoding unit 145 in FIG. 19, the information decoding unit 242 generates a motion vector of the PU to be processed based on the motion vector encoding mode represented by the inter prediction information supplied from the lossless decoding unit 241. . The information decoding unit 242 supplies the generated motion vector to the motion compensation unit 245.
 拡大縮小部243は、図18の抽出部112から供給されるPPSに含まれる拡大縮小率対応情報に基づいて、適応ループフィルタ138から供給される画像を拡大または縮小し、フレームメモリ244に供給する。 The enlargement / reduction unit 243 enlarges or reduces the image supplied from the adaptive loop filter 138 based on the enlargement / reduction rate correspondence information included in the PPS supplied from the extraction unit 112 in FIG. 18 and supplies the image to the frame memory 244. .
 フレームメモリ244は、拡大縮小部243から供給される画像と加算部135から供給される画像を蓄積する。フレームメモリ244に蓄積されたフィルタ処理が行われていない画像のうちのPUに隣接する画素は、周辺画素としてスイッチ142を介してイントラ予測部143に供給される。一方、フレームメモリ244に蓄積されたフィルタ処理が行われた画像は、参照画像として、スイッチ142を介して動き補償部245に供給される。 The frame memory 244 stores the image supplied from the enlargement / reduction unit 243 and the image supplied from the addition unit 135. Pixels adjacent to the PU in the image that has not been subjected to filter processing accumulated in the frame memory 244 are supplied to the intra prediction unit 143 via the switch 142 as peripheral pixels. On the other hand, the filtered image stored in the frame memory 244 is supplied as a reference image to the motion compensation unit 245 via the switch 142.
 動き補償部245は、PU単位で、情報復号部242から供給される動きベクトル、並びに、可逆復号部241から供給されるインター予測モード情報および参照画像特定情報に基づいて、動き補償処理を行う。具体的には、動き補償部245は、フレームメモリ244からスイッチ142を介して、可逆復号部241から供給される参照画像特定情報により特定される参照画像を読み出す。動き補償部245は、参照画像に対して内挿フィルタ処理を行うことにより、参照画像を高解像度化する。動き補償部245は、情報復号部242から供給される動きベクトルとインター予測モード情報が表すPUのサイズとに基づいて、高解像度化された参照画像を用いて予測画像を生成する。動き補償部245は、予測画像をスイッチ146に供給する。 The motion compensation unit 245 performs motion compensation processing in units of PUs based on the motion vector supplied from the information decoding unit 242 and the inter prediction mode information and reference image specifying information supplied from the lossless decoding unit 241. Specifically, the motion compensation unit 245 reads the reference image specified by the reference image specifying information supplied from the lossless decoding unit 241 from the frame memory 244 via the switch 142. The motion compensation unit 245 increases the resolution of the reference image by performing an interpolation filter process on the reference image. Based on the motion vector supplied from the information decoding unit 242 and the size of the PU represented by the inter prediction mode information, the motion compensation unit 245 generates a prediction image using the reference image that has been increased in resolution. The motion compensation unit 245 supplies the predicted image to the switch 146.
 (動き補償部の構成例)
 図31は、図30の動き補償部245の構成例を示すブロック図である。
(Configuration example of motion compensation unit)
FIG. 31 is a block diagram illustrating a configuration example of the motion compensation unit 245 of FIG.
 図31に示す構成のうち、図20の構成と同じ構成には同じ符号を付してある。重複する説明については適宜省略する。 31, the same reference numerals are given to the same components as those in FIG. 20. The overlapping description will be omitted as appropriate.
 図31の動き補償部245の構成は、参照画像バッファ162の代わりに参照画像バッファ261が設けられる点が、図20の動き補償部144の構成と異なる。 31 differs from the configuration of the motion compensation unit 144 in FIG. 20 in that a reference image buffer 261 is provided instead of the reference image buffer 162. The configuration of the motion compensation unit 245 in FIG.
 動き補償部245の参照画像バッファ261は、線形内挿フィルタ161から供給される参照画像を保持する。この参照画像は、生成部164において補償処理が施される。 The reference image buffer 261 of the motion compensation unit 245 holds the reference image supplied from the linear interpolation filter 161. This reference image is subjected to compensation processing in the generation unit 164.
 (復号部の処理の説明)
 図32は、図30の復号部240の復号処理を説明するフローチャートである。
(Description of processing of the decoding unit)
FIG. 32 is a flowchart illustrating the decoding process of the decoding unit 240 in FIG.
 図32のステップS230において、復号部240の蓄積バッファ131は、図18の抽出部112からフレーム単位の符号化データを受け取り、蓄積する。蓄積バッファ131は、蓄積されている符号化データを可逆復号部241に供給する。 32, the accumulation buffer 131 of the decoding unit 240 receives and accumulates encoded data in units of frames from the extraction unit 112 of FIG. The accumulation buffer 131 supplies the accumulated encoded data to the lossless decoding unit 241.
 ステップS231において、可逆復号部241は、蓄積バッファ131からの符号化データを可逆復号し、量子化された直交変換係数と符号化情報を得る。可逆復号部241は、量子化された直交変換係数を逆量子化部133に供給する。 In step S231, the lossless decoding unit 241 performs lossless decoding of the encoded data from the accumulation buffer 131, and obtains quantized orthogonal transform coefficients and encoded information. The lossless decoding unit 241 supplies the quantized orthogonal transform coefficient to the inverse quantization unit 133.
 また、可逆復号部241は、符号化情報としてのイントラ予測モード情報などをイントラ予測部143に供給する。可逆復号部241は、インター予測モード情報と参照画像特定情報を動き補償部144に供給し、インター予測モード情報と動きベクトル情報を情報復号部242に供給する。 Also, the lossless decoding unit 241 supplies intra prediction mode information as encoded information to the intra prediction unit 143. The lossless decoding unit 241 supplies the inter prediction mode information and the reference image specifying information to the motion compensation unit 144, and supplies the inter prediction mode information and the motion vector information to the information decoding unit 242.
 さらに、可逆復号部241は、符号化情報としてのイントラ予測モード情報またはインター予測モード情報をスイッチ146に供給する。可逆復号部241は、符号化情報としてのオフセットフィルタ情報を適応オフセットフィルタ137に供給し、フィルタ係数を適応ループフィルタ138に供給する。 Furthermore, the lossless decoding unit 241 supplies intra prediction mode information or inter prediction mode information as encoded information to the switch 146. The lossless decoding unit 241 supplies offset filter information as encoded information to the adaptive offset filter 137 and supplies filter coefficients to the adaptive loop filter 138.
 ステップS232乃至S234の処理は、図22のステップS132乃至S134の処理と同様であるので、説明は省略する。 Since the processing in steps S232 through S234 is the same as the processing in steps S132 through S134 in FIG.
 ステップS235において、情報復号部242は、可逆復号部241から供給されるインター予測情報が表す動きベクトルの符号化モードに基づいて、処理対象のPUの動きベクトルを生成する。 In step S235, the information decoding unit 242 generates a motion vector of the PU to be processed based on the motion vector encoding mode represented by the inter prediction information supplied from the lossless decoding unit 241.
 ステップS236において、動き補償部245は、PU単位で、情報復号部242から供給される動きベクトル、並びに、可逆復号部241から供給されるインター予測モード情報および参照画像特定情報に基づいて、動き補償処理を行う。この動き補償処理の詳細は、後述する図33を参照して説明する。 In step S236, the motion compensation unit 245 performs motion compensation on a PU basis based on the motion vector supplied from the information decoding unit 242 and the inter prediction mode information and reference image specifying information supplied from the lossless decoding unit 241. Process. Details of this motion compensation processing will be described with reference to FIG. 33 described later.
 ステップS237乃至S241の処理は、図32のステップS137乃至S141の処理と同様であるので、説明は省略する。 Since the processing of steps S237 to S241 is the same as the processing of steps S137 to S141 in FIG. 32, description thereof is omitted.
 ステップS242において、拡大縮小部243は、図18の抽出部112から供給されるPPSに含まれる拡大縮小率対応情報に基づいて、適応ループフィルタ138から供給される画像を拡大または縮小し、フレームメモリ244に供給する。 In step S242, the enlargement / reduction unit 243 enlarges or reduces the image supplied from the adaptive loop filter 138 based on the enlargement / reduction rate correspondence information included in the PPS supplied from the extraction unit 112 in FIG. 244.
 ステップS243において、フレームメモリ244は、加算部135から供給される画像と、拡大縮小部243から供給される画像を蓄積する。フレームメモリ244に蓄積されたフィルタ処理が行われていない画像のうちのPUに隣接する画素は、周辺画素としてスイッチ142を介してイントラ予測部143に供給される。一方、フレームメモリ244に蓄積されたフィルタ処理が行われた画像は、参照画像として、スイッチ142を介して動き補償部144に供給される。 In step S243, the frame memory 244 stores the image supplied from the adder 135 and the image supplied from the enlargement / reduction unit 243. Pixels adjacent to the PU in the image that has not been subjected to filter processing accumulated in the frame memory 244 are supplied to the intra prediction unit 143 via the switch 142 as peripheral pixels. On the other hand, the filtered image stored in the frame memory 244 is supplied as a reference image to the motion compensation unit 144 via the switch 142.
 ステップS244およびS245は、図22のステップS143およびS144の処理と同様であるので、説明は省略する。 Since steps S244 and S245 are the same as the processes of steps S143 and S144 in FIG.
 図33は、図32のステップS236の動き補償処理の詳細を説明するフローチャートである。 FIG. 33 is a flowchart for explaining the details of the motion compensation processing in step S236 of FIG.
 図33のステップS260乃至S265の処理は、図23のステップS150乃至S152およびS156乃至S158の処理と同様であるので、説明は省略する。 33 are the same as the processes of steps S150 to S152 and S156 to S158 of FIG. 23, and thus the description thereof is omitted.
 以上のように、復号部240は、拡大縮小率対応情報に基づいて参照画像の候補となる復号画像を拡大または縮小し、拡大または縮小された復号画像を参照画像として用いて予測画像を生成する。従って、符号化部200を備える符号化装置10により符号化対象の画像が拡大や縮小する場合の符号化効率を向上させるように符号化された符号化ストリームを復号することができる。 As described above, the decoding unit 240 enlarges or reduces a decoded image that is a reference image candidate based on the enlargement / reduction ratio correspondence information, and generates a predicted image using the enlarged or reduced decoded image as a reference image. . Therefore, it is possible to decode the encoded stream that is encoded by the encoding device 10 including the encoding unit 200 so as to improve the encoding efficiency when the encoding target image is enlarged or reduced.
 なお、第2実施の形態においても、第1実施の形態の場合と同様に、拡大または縮小された画像に対してローパスフィルタ処理が施されるようにしてもよい。 In the second embodiment, as in the case of the first embodiment, low-pass filter processing may be performed on an enlarged or reduced image.
 <第3実施の形態>
 (本開示を適用したコンピュータの説明)
 上述した一連の処理は、ハードウエアにより実行することもできるし、ソフトウエアにより実行することもできる。一連の処理をソフトウエアにより実行する場合には、そのソフトウエアを構成するプログラムが、コンピュータにインストールされる。ここで、コンピュータには、専用のハードウエアに組み込まれているコンピュータや、各種のプログラムをインストールすることで、各種の機能を実行することが可能な、例えば汎用のパーソナルコンピュータなどが含まれる。
<Third Embodiment>
(Description of computer to which the present disclosure is applied)
The series of processes described above can be executed by hardware or can be executed by software. When a series of processing is executed by software, a program constituting the software is installed in the computer. Here, the computer includes, for example, a general-purpose personal computer capable of executing various functions by installing various programs by installing a computer incorporated in dedicated hardware.
 図34は、上述した一連の処理をプログラムにより実行するコンピュータのハードウエアの構成例を示すブロック図である。 FIG. 34 is a block diagram showing an example of the hardware configuration of a computer that executes the above-described series of processing by a program.
 コンピュータ500において、CPU(Central Processing Unit)501,ROM(Read Only Memory)502,RAM(Random Access Memory)503は、バス504により相互に接続されている。 In the computer 500, a CPU (Central Processing Unit) 501, a ROM (Read Only Memory) 502, and a RAM (Random Access Memory) 503 are connected to each other via a bus 504.
 バス504には、さらに、入出力インタフェース505が接続されている。入出力インタフェース505には、入力部506、出力部507、記憶部508、通信部509、及びドライブ510が接続されている。 An input / output interface 505 is further connected to the bus 504. An input unit 506, an output unit 507, a storage unit 508, a communication unit 509, and a drive 510 are connected to the input / output interface 505.
 入力部506は、キーボード、マウス、マイクロホンなどよりなる。出力部507は、ディスプレイ、スピーカなどよりなる。記憶部508は、ハードディスクや不揮発性のメモリなどよりなる。通信部509は、ネットワークインタフェースなどよりなる。ドライブ510は、磁気ディスク、光ディスク、光磁気ディスク、又は半導体メモリなどのリムーバブルメディア511を駆動する。 The input unit 506 includes a keyboard, a mouse, a microphone, and the like. The output unit 507 includes a display, a speaker, and the like. The storage unit 508 includes a hard disk, a nonvolatile memory, and the like. The communication unit 509 includes a network interface or the like. The drive 510 drives a removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory.
 以上のように構成されるコンピュータ500では、CPU501が、例えば、記憶部508に記憶されているプログラムを、入出力インタフェース505及びバス504を介して、RAM503にロードして実行することにより、上述した一連の処理が行われる。 In the computer 500 configured as described above, for example, the CPU 501 loads the program stored in the storage unit 508 to the RAM 503 via the input / output interface 505 and the bus 504 and executes the program. A series of processing is performed.
 コンピュータ500(CPU501)が実行するプログラムは、例えば、パッケージメディア等としてのリムーバブルメディア511に記録して提供することができる。また、プログラムは、ローカルエリアネットワーク、インターネット、デジタル衛星放送といった、有線または無線の伝送媒体を介して提供することができる。 The program executed by the computer 500 (CPU 501) can be provided by being recorded on a removable medium 511 as a package medium, for example. The program can be provided via a wired or wireless transmission medium such as a local area network, the Internet, or digital satellite broadcasting.
 コンピュータ500では、プログラムは、リムーバブルメディア511をドライブ510に装着することにより、入出力インタフェース505を介して、記憶部508にインストールすることができる。また、プログラムは、有線または無線の伝送媒体を介して、通信部509で受信し、記憶部508にインストールすることができる。その他、プログラムは、ROM502や記憶部508に、あらかじめインストールしておくことができる。 In the computer 500, the program can be installed in the storage unit 508 via the input / output interface 505 by installing the removable medium 511 in the drive 510. Further, the program can be received by the communication unit 509 via a wired or wireless transmission medium and installed in the storage unit 508. In addition, the program can be installed in the ROM 502 or the storage unit 508 in advance.
 なお、コンピュータ500が実行するプログラムは、本明細書で説明する順序に沿って時系列に処理が行われるプログラムであっても良いし、並列に、あるいは呼び出しが行われたとき等の必要なタイミングで処理が行われるプログラムであっても良い。 Note that the program executed by the computer 500 may be a program that is processed in time series in the order described in this specification, or a necessary timing such as in parallel or when a call is made. It may be a program in which processing is performed.
  <第4実施の形態>
  (多視点画像符号化・多視点画像復号への適用)
  上述した一連の処理は、多視点画像符号化・多視点画像復号に適用することができる。図35は、多視点画像符号化方式の一例を示す。
<Fourth embodiment>
(Application to multi-view image coding and multi-view image decoding)
The series of processes described above can be applied to multi-view image encoding / multi-view image decoding. FIG. 35 shows an example of a multi-view image encoding method.
  図35に示されるように、多視点画像は、複数の視点(ビュー(view))の画像を含む。この多視点画像の複数のビューは、他のビューの画像を利用せずに自身のビューの画像のみを用いて符号化・復号を行うベースビューと、他のビューの画像を利用して符号化・復号を行うノンベースビューとによりなる。ノンベースビューは、ベースビューの画像を利用するようにしても良いし、他のノンベースビューの画像を利用するようにしてもよい。 As shown in FIG. 35, the multi-viewpoint image includes images of a plurality of viewpoints (views). Multiple views of this multi-viewpoint image are encoded using the base view that encodes and decodes using only the image of its own view without using the image of the other view, and the image of the other view. -It consists of a non-base view that performs decoding. For the non-base view, an image of the base view may be used, or an image of another non-base view may be used.
  図35のような多視点画像を符号化・復号する場合、各ビューの画像を符号化・復号するが、この各ビューの符号化・復号に対して、上述した第1および2実施の形態の方法を適用するようにしてもよい。このようにすることにより、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させることができる。 In the case of encoding / decoding a multi-view image as shown in FIG. 35, each view image is encoded / decoded. For the encoding / decoding of each view, the first and second embodiments described above are used. You may make it apply a method. By doing so, it is possible to improve the encoding efficiency when the image to be encoded is enlarged or reduced.
  さらに、各ビューの符号化・復号において、上述した第1および2実施の形態の方法で使用されるフラグやパラメータを共有するようにしてもよい。より具体的には、例えば、mvd_codingやPPSのシンタクス要素等を、各ビューの符号化・復号において共有するようにしてもよい。もちろん、これら以外の必要な情報も、各ビューの符号化・復号において共有するようにしてもよい。 Furthermore, in encoding / decoding of each view, flags and parameters used in the methods of the first and second embodiments described above may be shared. More specifically, for example, mvd_coding, PPS syntax elements, and the like may be shared in encoding / decoding of each view. Of course, other necessary information may be shared in encoding / decoding of each view.
 このようにすることにより、冗長な情報の伝送を抑制し、伝送する情報量(符号量)を低減することができる(つまり、符号化効率の低減を抑制することができる)。 By doing in this way, transmission of redundant information can be suppressed and the amount of information to be transmitted (code amount) can be reduced (that is, reduction in encoding efficiency can be suppressed).
  (多視点画像符号化装置)
  図36は、上述した多視点画像符号化を行う多視点画像符号化装置を示す図である。図36に示されるように、多視点画像符号化装置600は、符号化部601、符号化部602、および多重化部603を有する。
(Multi-view image encoding device)
FIG. 36 is a diagram illustrating a multi-view image encoding apparatus that performs the above-described multi-view image encoding. As illustrated in FIG. 36, the multi-view image encoding apparatus 600 includes an encoding unit 601, an encoding unit 602, and a multiplexing unit 603.
  符号化部601は、ベースビュー画像を符号化し、ベースビュー画像符号化ストリームを生成する。符号化部602は、ノンベースビュー画像を符号化し、ノンベースビュー画像符号化ストリームを生成する。多重化部603は、符号化部601において生成されたベースビュー画像符号化ストリームと、符号化部602において生成されたノンベースビュー画像符号化ストリームとを多重化し、多視点画像符号化ストリームを生成する。 The cocoon encoding unit 601 encodes the base view image and generates a base view image encoded stream. The encoding unit 602 encodes the non-base view image and generates a non-base view image encoded stream. The multiplexing unit 603 multiplexes the base view image encoded stream generated by the encoding unit 601 and the non-base view image encoded stream generated by the encoding unit 602 to generate a multi-view image encoded stream. To do.
  この多視点画像符号化装置600の符号化部601および符号化部602に対して、符号化装置の第1および第2実施の形態を適用することができる。つまり、各ビューに対する符号化において、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させることができる。また、符号化部601および符号化部602は、互いに同一のフラグやパラメータ(例えば、画像間の処理に関するシンタクス要素等)を用いて、符号化を行うことができる(すなわち、フラグやパラメータを共有することができる)ので、符号化効率の低減を抑制することができる。 The first and second embodiments of the encoding device can be applied to the encoding unit 601 and the encoding unit 602 of the multi-view image encoding device 600. That is, in the encoding for each view, it is possible to improve the encoding efficiency when the image to be encoded is enlarged or reduced. Also, the encoding unit 601 and the encoding unit 602 can perform encoding using the same flags and parameters (for example, syntax elements related to processing between images) (that is, share the flags and parameters). Therefore, it is possible to suppress a reduction in encoding efficiency.
  (多視点画像復号装置)
  図37は、上述した多視点画像復号を行う多視点画像復号装置を示す図である。図37に示されるように、多視点画像復号装置610は、逆多重化部611、復号部612、および復号部613を有する。
(Multi-viewpoint image decoding device)
FIG. 37 is a diagram illustrating a multi-view image decoding apparatus that performs the above-described multi-view image decoding. As illustrated in FIG. 37, the multi-view image decoding device 610 includes a demultiplexing unit 611, a decoding unit 612, and a decoding unit 613.
  逆多重化部611は、ベースビュー画像符号化ストリームとノンベースビュー画像符号化ストリームとが多重化された多視点画像符号化ストリームを逆多重化し、ベースビュー画像符号化ストリームと、ノンベースビュー画像符号化ストリームとを抽出する。復号部612は、逆多重化部611により抽出されたベースビュー画像符号化ストリームを復号し、ベースビュー画像を得る。復号部613は、逆多重化部611により抽出されたノンベースビュー画像符号化ストリームを復号し、ノンベースビュー画像を得る。 The demultiplexing unit 611 demultiplexes the multi-view image encoded stream in which the base view image encoded stream and the non-base view image encoded stream are multiplexed, and the base view image encoded stream and the non-base view image The encoded stream is extracted. The decoding unit 612 decodes the base view image encoded stream extracted by the demultiplexing unit 611 to obtain a base view image. The decoding unit 613 decodes the non-base view image encoded stream extracted by the demultiplexing unit 611 to obtain a non-base view image.
  この多視点画像復号装置610の復号部612および復号部613に対して、復号装置の第1および第2実施の形態を適用することができる。つまり、各ビューに対する復号において、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させるように符号化された符号化ストリームを復号することができる。また、復号部612および復号部613は、互いに同一のフラグやパラメータ(例えば、画像間の処理に関するシンタクス要素等)を用いて、復号を行うことができる(すなわち、フラグやパラメータを共有することができる)ので、符号化効率の低減を抑制することができる。 The first and second embodiments of the decoding device can be applied to the decoding unit 612 and the decoding unit 613 of the multi-view image decoding device 610. That is, in decoding for each view, it is possible to decode an encoded stream that has been encoded so as to improve encoding efficiency when an image to be encoded is enlarged or reduced. In addition, the decoding unit 612 and the decoding unit 613 can perform decoding using the same flags and parameters (for example, syntax elements related to processing between images) (that is, the flags and parameters can be shared). Therefore, it is possible to suppress a reduction in encoding efficiency.
  <第5実施の形態>
  (階層画像符号化・階層画像復号への適用)
  上述した一連の処理は、階層画像符号化・階層画像復号(スケーラブル符号化・スケーラブル復号)に適用することができる。図38は、階層画像符号化方式の一例を示す。
<Fifth embodiment>
(Application to hierarchical image coding / hierarchical image decoding)
The series of processes described above can be applied to hierarchical image encoding / hierarchical image decoding (scalable encoding / scalable decoding). FIG. 38 shows an example of a hierarchical image encoding method.
  階層画像符号化(スケーラブル符号化)は、画像データを、所定のパラメータについてスケーラブル(scalable)機能を有するように、画像を複数レイヤ化(階層化)し、レイヤ毎に符号化するものである。階層画像復号(スケーラブル復号)は、その階層画像符号化に対応する復号である。 Hierarchical image coding (scalable coding) is a method in which image data is divided into a plurality of layers (hierarchized) so as to have a scalable function with respect to a predetermined parameter, and is encoded for each layer. Hierarchical image decoding (scalable decoding) is decoding corresponding to the hierarchical image encoding.
  図38に示されるように、画像の階層化においては、スケーラブル機能を有する所定のパラメータを基準として1の画像が複数の画像(レイヤ)に分割される。つまり、階層化された画像(階層画像)は、その所定のパラメータの値が互いに異なる複数の階層(レイヤ)の画像を含む。この階層画像の複数のレイヤは、他のレイヤの画像を利用せずに自身のレイヤの画像のみを用いて符号化・復号を行うベースレイヤと、他のレイヤの画像を利用して符号化・復号を行うノンベースレイヤ(エンハンスメントレイヤとも称する)とによりなる。ノンベースレイヤは、ベースレイヤの画像を利用するようにしても良いし、他のノンベースレイヤの画像を利用するようにしてもよい。 38. As shown in FIG. 38, in image hierarchization, one image is divided into a plurality of images (layers) based on a predetermined parameter having a scalable function. That is, the hierarchized image (hierarchical image) includes images of a plurality of hierarchies (layers) having different predetermined parameter values. A plurality of layers of this hierarchical image are encoded / decoded using only the image of the own layer without using the image of the other layer, and encoded / decoded using the image of the other layer. It consists of a non-base layer (also called enhancement layer) that performs decoding. As the non-base layer, an image of the base layer may be used, or an image of another non-base layer may be used.
  一般的に、ノンベースレイヤは、冗長性が低減されるように、自身の画像と、他のレイヤの画像との差分画像のデータ(差分データ)により構成される。例えば、1の画像をベースレイヤとノンベースレイヤ(エンハンスメントレイヤとも称する)に2階層化した場合、ベースレイヤのデータのみで元の画像よりも低品質な画像が得られ、ベースレイヤのデータとノンベースレイヤのデータを合成することで、元の画像(すなわち高品質な画像)が得られる。 Generally, the non-base layer is composed of difference image data (difference data) between its own image and an image of another layer so that redundancy is reduced. For example, when one image is divided into two layers of a base layer and a non-base layer (also referred to as an enhancement layer), an image with lower quality than the original image can be obtained using only the base layer data. By synthesizing the base layer data, an original image (that is, a high-quality image) can be obtained.
  このように画像を階層化することにより、状況に応じて多様な品質の画像を容易に得ることができる。例えば携帯電話のような、処理能力の低い端末に対しては、ベースレイヤ(base layer)のみの画像圧縮情報を伝送し、空間時間解像度の低い、或いは、画質の良くない動画像を再生し、テレビやパーソナルコンピュータのような、処理能力の高い端末に対しては、ベースレイヤ(base layer)に加えて、エンハンスメントレイヤ(enhancement layer)の画像圧縮情報を伝送し、空間時間解像度の高い、或いは、画質の高い動画像を再生するといったように、トランスコード処理を行うことなく、端末やネットワークの能力に応じた画像圧縮情報を、サーバから送信することが可能となる。 By layering images in this way, images of various qualities can be easily obtained according to the situation. For example, to a terminal with low processing capability such as a mobile phone, image compression information of only the base layer (base layer) is transmitted, and a moving image with low spatiotemporal resolution or poor image quality is reproduced. For terminals with high processing power, such as televisions and personal computers, in addition to the base layer (base layer), image enhancement information of the enhancement layer (enhancement layer) is transmitted. Image compression information corresponding to the capabilities of the terminal and the network can be transmitted from the server without performing transcoding processing, such as playing a moving image with high image quality.
  図38の例のような階層画像を符号化・復号する場合、各レイヤの画像を符号化・復号するが、この各レイヤの符号化・復号に対して、上述した第1および2実施の形態の方法を適用するようにしてもよい。このようにすることにより、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させることができる。 In the case of encoding / decoding the hierarchical image as in the example of FIG. 38, the image of each layer is encoded / decoded. For the encoding / decoding of each layer, the first and second embodiments described above are used. The method may be applied. By doing so, it is possible to improve the encoding efficiency when the image to be encoded is enlarged or reduced.
  さらに、各レイヤの符号化・復号において、上述した第1および2実施の形態の方法で使用されるフラグやパラメータを共有するようにしてもよい。より具体的には、例えば、mvd_codingやPPSのシンタクス要素等を、各レイヤの符号化・復号において共有するようにしてもよい。もちろん、これら以外の必要な情報も、各レイヤの符号化・復号において共有するようにしてもよい。 Furthermore, in encoding / decoding of each layer, the flags and parameters used in the methods of the first and second embodiments described above may be shared. More specifically, for example, mvd_coding, PPS syntax elements, and the like may be shared in encoding / decoding of each layer. Of course, other necessary information may be shared in encoding / decoding of each layer.
 このようにすることにより、冗長な情報の伝送を抑制し、伝送する情報量(符号量)を低減することができる(つまり、符号化効率の低減を抑制することができる)。 By doing in this way, transmission of redundant information can be suppressed and the amount of information to be transmitted (code amount) can be reduced (that is, reduction in encoding efficiency can be suppressed).
  (スケーラブルなパラメータ)
  このような階層画像符号化・階層画像復号(スケーラブル符号化・スケーラブル復号)において、スケーラブル(scalable)機能を有するパラメータは、任意である。例えば、図39に示されるような空間解像度をそのパラメータとしてもよい(spatial scalability)。このスペーシャルスケーラビリティ(spatial scalability)の場合、レイヤ毎に画像の解像度が異なる。つまり、この場合、図39に示されるように、各ピクチャが、元の画像より空間的に低解像度のベースレイヤと、ベースレイヤと合成することにより元の空間解像度が得られるエンハンスメントレイヤの2階層に階層化される。もちろん、この階層数は一例であり、任意の階層数に階層化することができる。
(Scalable parameters)
In such hierarchical image encoding / hierarchical image decoding (scalable encoding / scalable decoding), parameters having a scalable function are arbitrary. For example, the spatial resolution as shown in FIG. 39 may be used as the parameter (spatial scalability). In the case of this spatial scalability, the resolution of the image is different for each layer. That is, in this case, as shown in FIG. 39, each picture has two layers of a base layer having a spatially lower resolution than the original image and an enhancement layer in which the original spatial resolution is obtained by combining with the base layer. Is layered. Of course, this number of hierarchies is an example, and the number of hierarchies can be hierarchized.
  また、このようなスケーラブル性を持たせるパラメータとして、他には、例えば、図40に示されるような、時間解像度を適用しても良い(temporal scalability)。このテンポラルスケーラビリティ(temporal scalability)の場合、レイヤ毎にフレームレートが異なる。つまり、この場合、図40に示されるように、各ピクチャが、元の動画像より低フレームレートのベースレイヤと、ベースレイヤと合成することにより元のフレームレートが得られるエンハンスメントレイヤの2階層に階層化される。もちろん、この階層数は一例であり、任意の階層数に階層化することができる。 In addition, as a parameter for providing such a scalable property, for example, a temporal resolution as shown in FIG. 40 may be applied (temporal scalability). In the case of this temporal scalability (temporal scalability), the frame rate is different for each layer. That is, in this case, as shown in FIG. 40, each picture is divided into two layers of a base layer having a lower frame rate than the original moving image and an enhancement layer in which the original frame rate is obtained by combining with the base layer. Layered. Of course, this number of hierarchies is an example, and the number of hierarchies can be hierarchized.
  さらに、このようなスケーラブル性を持たせるパラメータとして、例えば、信号雑音比(SNR(Signal to Noise ratio))を適用しても良い(SNR scalability)。このSNRスケーラビリティ(SNR scalability)の場合、レイヤ毎にSN比が異なる。つまり、この場合、図41に示されるように、各ピクチャが、元の画像よりSNRの低いベースレイヤと、ベースレイヤと合成することにより元のSNRが得られるエンハンスメントレイヤの2階層に階層化される。もちろん、この階層数は一例であり、任意の階層数に階層化することができる。 Furthermore, for example, a signal-to-noise ratio (SNR (Signal to Noise ratio)) may be applied (SNR せ る scalability) as a parameter for providing such scalability. In the case of this SNR scalability (SNR scalability), the SN ratio is different for each layer. That is, in this case, as shown in FIG. 41, each picture is hierarchized into two layers: a base layer having a lower SNR than the original image, and an enhancement layer from which the original SNR is obtained by combining with the base layer. The Of course, this number of hierarchies is an example, and the number of hierarchies can be hierarchized.
  スケーラブル性を持たせるパラメータは、上述した例以外であっても、もちろんよい。例えば、スケーラブル性を持たせるパラメータとして、ビット深度を用いることもできる(bit-depth scalability)。このビット深度スケーラビリティ(bit-depth scalability)の場合、レイヤ毎にビット深度が異なる。この場合、例えば、ベースレイヤ(base layer)が8ビット(bit)画像よりなり、これにエンハンスメントレイヤ(enhancement layer)を加えることにより、10ビット(bit)画像が得られるようにすることができる。 Of course, parameters other than the above-described example may be used as the parameters for providing scalability. For example, bit depth can also be used as a parameter for providing scalability (bit-depth scalability). In the case of this bit depth scalability (bit-depth scalability), the bit depth differs for each layer. In this case, for example, the base layer is composed of an 8-bit image, and an enhancement layer is added to the base layer, whereby a 10-bit image can be obtained.
  また、スケーラブル性を持たせるパラメータとして、クロマフォーマットを用いることもできる(chroma scalability)。このクロマスケーラビリティ(chroma scalability)の場合、レイヤ毎にクロマフォーマットが異なる。この場合、例えば、ベースレイヤ(base layer)が4:2:0フォーマットのコンポーネント画像よりなり、これにエンハンスメントレイヤ(enhancement layer)を加えることにより、4:2:2フォーマットのコンポーネント画像が得られるようにすることができる。 In addition, a chroma format can be used as a parameter for providing scalability (chroma scalability). In the case of this chroma scalability, the chroma format differs for each layer. In this case, for example, the base layer (base layer) is composed of component images in 4: 2: 0 format, and by adding an enhancement layer (enhancement layer) to this, a component image in 4: 2: 2 format can be obtained. Can be.
  (階層画像符号化装置)
  図42は、上述した階層画像符号化を行う階層画像符号化装置を示す図である。図42に示されるように、階層画像符号化装置620は、符号化部621、符号化部622、および多重化部623を有する。
(Hierarchical image encoding device)
FIG. 42 is a diagram illustrating a hierarchical image encoding apparatus that performs the hierarchical image encoding described above. As illustrated in FIG. 42, the hierarchical image encoding device 620 includes an encoding unit 621, an encoding unit 622, and a multiplexing unit 623.
  符号化部621は、ベースレイヤ画像を符号化し、ベースレイヤ画像符号化ストリームを生成する。符号化部622は、ノンベースレイヤ画像を符号化し、ノンベースレイヤ画像符号化ストリームを生成する。多重化部623は、符号化部621において生成されたベースレイヤ画像符号化ストリームと、符号化部622において生成されたノンベースレイヤ画像符号化ストリームとを多重化し、階層画像符号化ストリームを生成する。 The cocoon encoding unit 621 encodes the base layer image and generates a base layer image encoded stream. The encoding unit 622 encodes the non-base layer image and generates a non-base layer image encoded stream. The multiplexing unit 623 multiplexes the base layer image encoded stream generated by the encoding unit 621 and the non-base layer image encoded stream generated by the encoding unit 622 to generate a hierarchical image encoded stream. .
  この階層画像符号化装置620の符号化部621および符号化部622に対して、符号化装置の第1および第2実施の形態を適用することができる。つまり、各レイヤに対する符号化において、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させることができる。また、符号化部621および符号化部622は、互いに同一のフラグやパラメータ(例えば、画像間の処理に関するシンタクス要素等)を用いて、イントラ予測のフィルタ処理の制御等を行うことができる(すなわち、フラグやパラメータを共有することができる)ので、符号化効率の低減を抑制することができる。 The first and second embodiments of the encoding device can be applied to the encoding unit 621 and the encoding unit 622 of the hierarchical image encoding device 620. That is, in the encoding for each layer, it is possible to improve the encoding efficiency when the image to be encoded is enlarged or reduced. Also, the encoding unit 621 and the encoding unit 622 can perform control of intra prediction filter processing using the same flags and parameters (for example, syntax elements related to processing between images) (that is, the intra prediction processing). Therefore, it is possible to share a flag and a parameter), and it is possible to suppress a reduction in encoding efficiency.
  (階層画像復号装置)
  図43は、上述した階層画像復号を行う階層画像復号装置を示す図である。図43に示されるように、階層画像復号装置630は、逆多重化部631、復号部632、および復号部633を有する。
(Hierarchical image decoding device)
FIG. 43 is a diagram illustrating a hierarchical image decoding apparatus that performs the above-described hierarchical image decoding. As illustrated in FIG. 43, the hierarchical image decoding device 630 includes a demultiplexing unit 631, a decoding unit 632, and a decoding unit 633.
  逆多重化部631は、ベースレイヤ画像符号化ストリームとノンベースレイヤ画像符号化ストリームとが多重化された階層画像符号化ストリームを逆多重化し、ベースレイヤ画像符号化ストリームと、ノンベースレイヤ画像符号化ストリームとを抽出する。復号部632は、逆多重化部631により抽出されたベースレイヤ画像符号化ストリームを復号し、ベースレイヤ画像を得る。復号部633は、逆多重化部631により抽出されたノンベースレイヤ画像符号化ストリームを復号し、ノンベースレイヤ画像を得る。 The demultiplexing unit 631 demultiplexes the hierarchical image encoded stream in which the base layer image encoded stream and the non-base layer image encoded stream are multiplexed, and the base layer image encoded stream and the non-base layer image code Stream. The decoding unit 632 decodes the base layer image encoded stream extracted by the demultiplexing unit 631 to obtain a base layer image. The decoding unit 633 decodes the non-base layer image encoded stream extracted by the demultiplexing unit 631 to obtain a non-base layer image.
  この階層画像復号装置630の復号部632および復号部633に対して、復号装置の第1および第2実施の形態を適用することができる。つまり、各レイヤに対する復号において、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させるように符号化された符号化ストリームを復号することができる。また、復号部612および復号部613は、互いに同一のフラグやパラメータ(例えば、画像間の処理に関するシンタクス要素等)を用いて、復号を行うことができる(すなわち、フラグやパラメータを共有することができる)ので、符号化効率の低減を抑制することができる。 The first and second embodiments of the decoding device can be applied to the decoding unit 632 and the decoding unit 633 of the hierarchical image decoding device 630. That is, in the decoding for each layer, it is possible to decode an encoded stream that has been encoded so as to improve the encoding efficiency when the image to be encoded is enlarged or reduced. In addition, the decoding unit 612 and the decoding unit 613 can perform decoding using the same flags and parameters (for example, syntax elements related to processing between images) (that is, the flags and parameters can be shared). Therefore, it is possible to suppress a reduction in encoding efficiency.
 <第6実施の形態>
 (テレビジョン装置の構成例)
 図44は、本技術を適用したテレビジョン装置の概略構成を例示している。テレビジョン装置900は、アンテナ901、チューナ902、デマルチプレクサ903、デコーダ904、映像信号処理部905、表示部906、音声信号処理部907、スピーカ908、外部インタフェース部909を有している。さらに、テレビジョン装置900は、制御部910、ユーザインタフェース部911等を有している。
<Sixth embodiment>
(Example configuration of television device)
FIG. 44 illustrates a schematic configuration of a television apparatus to which the present technology is applied. The television apparatus 900 includes an antenna 901, a tuner 902, a demultiplexer 903, a decoder 904, a video signal processing unit 905, a display unit 906, an audio signal processing unit 907, a speaker 908, and an external interface unit 909. Furthermore, the television apparatus 900 includes a control unit 910, a user interface unit 911, and the like.
 チューナ902は、アンテナ901で受信された放送波信号から所望のチャンネルを選局して復調を行い、得られた符号化ビットストリームをデマルチプレクサ903に出力する。 The tuner 902 selects a desired channel from the broadcast wave signal received by the antenna 901, demodulates it, and outputs the obtained encoded bit stream to the demultiplexer 903.
 デマルチプレクサ903は、符号化ビットストリームから視聴対象である番組の映像や音声のパケットを抽出して、抽出したパケットのデータをデコーダ904に出力する。また、デマルチプレクサ903は、EPG(Electronic Program Guide)等のデータのパケットを制御部910に供給する。なお、スクランブルが行われている場合、デマルチプレクサ等でスクランブルの解除を行う。 The demultiplexer 903 extracts video and audio packets of the program to be viewed from the encoded bit stream, and outputs the extracted packet data to the decoder 904. Further, the demultiplexer 903 supplies a packet of data such as EPG (Electronic Program Guide) to the control unit 910. If scrambling is being performed, descrambling is performed by a demultiplexer or the like.
 デコーダ904は、パケットの復号化処理を行い、復号処理化によって生成された映像データを映像信号処理部905、音声データを音声信号処理部907に出力する。 The decoder 904 performs packet decoding processing, and outputs video data generated by the decoding processing to the video signal processing unit 905 and audio data to the audio signal processing unit 907.
 映像信号処理部905は、映像データに対して、ノイズ除去やユーザ設定に応じた映像処理等を行う。映像信号処理部905は、表示部906に表示させる番組の映像データや、ネットワークを介して供給されるアプリケーションに基づく処理による画像データなどを生成する。また、映像信号処理部905は、項目の選択などのメニュー画面等を表示するための映像データを生成し、それを番組の映像データに重畳する。映像信号処理部905は、このようにして生成した映像データに基づいて駆動信号を生成して表示部906を駆動する。 The video signal processing unit 905 performs noise removal, video processing according to user settings, and the like on the video data. The video signal processing unit 905 generates video data of a program to be displayed on the display unit 906, image data by processing based on an application supplied via a network, and the like. The video signal processing unit 905 generates video data for displaying a menu screen for selecting an item and the like, and superimposes the video data on the video data of the program. The video signal processing unit 905 generates a drive signal based on the video data generated in this way, and drives the display unit 906.
 表示部906は、映像信号処理部905からの駆動信号に基づき表示デバイス(例えば液晶表示素子等)を駆動して、番組の映像などを表示させる。 The display unit 906 drives a display device (for example, a liquid crystal display element or the like) based on a drive signal from the video signal processing unit 905 to display a program video or the like.
 音声信号処理部907は、音声データに対してノイズ除去などの所定の処理を施し、処理後の音声データのD/A変換処理や増幅処理を行いスピーカ908に供給することで音声出力を行う。 The audio signal processing unit 907 performs predetermined processing such as noise removal on the audio data, performs D / A conversion processing and amplification processing on the processed audio data, and outputs the audio data to the speaker 908.
 外部インタフェース部909は、外部機器やネットワークと接続するためのインタフェースであり、映像データや音声データ等のデータ送受信を行う。 The external interface unit 909 is an interface for connecting to an external device or a network, and transmits and receives data such as video data and audio data.
 制御部910にはユーザインタフェース部911が接続されている。ユーザインタフェース部911は、操作スイッチやリモートコントロール信号受信部等で構成されており、ユーザ操作に応じた操作信号を制御部910に供給する。 A user interface unit 911 is connected to the control unit 910. The user interface unit 911 includes an operation switch, a remote control signal receiving unit, and the like, and supplies an operation signal corresponding to a user operation to the control unit 910.
 制御部910は、CPU(Central Processing Unit)やメモリ等を用いて構成されている。メモリは、CPUにより実行されるプログラムやCPUが処理を行う上で必要な各種のデータ、EPGデータ、ネットワークを介して取得されたデータ等を記憶する。メモリに記憶されているプログラムは、テレビジョン装置900の起動時などの所定タイミングでCPUにより読み出されて実行される。CPUは、プログラムを実行することで、テレビジョン装置900がユーザ操作に応じた動作となるように各部を制御する。 The control unit 910 is configured using a CPU (Central Processing Unit), a memory, and the like. The memory stores a program executed by the CPU, various data necessary for the CPU to perform processing, EPG data, data acquired via a network, and the like. The program stored in the memory is read and executed by the CPU at a predetermined timing such as when the television device 900 is activated. The CPU executes each program to control each unit so that the television device 900 operates in accordance with the user operation.
 なお、テレビジョン装置900では、チューナ902、デマルチプレクサ903、映像信号処理部905、音声信号処理部907、外部インタフェース部909等と制御部910を接続するためバス912が設けられている。 Note that the television device 900 includes a bus 912 for connecting the tuner 902, the demultiplexer 903, the video signal processing unit 905, the audio signal processing unit 907, the external interface unit 909, and the control unit 910.
 このように構成されたテレビジョン装置では、デコーダ904に本願の復号装置(復号方法)の機能が設けられる。このため、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させるように符号化された符号化ストリームを復号することができる。 In the thus configured television apparatus, the decoder 904 is provided with the function of the decoding apparatus (decoding method) of the present application. Therefore, it is possible to decode an encoded stream that has been encoded so as to improve the encoding efficiency when an image to be encoded is enlarged or reduced.
 <第7実施の形態>
 (携帯電話機の構成例)
 図45は、本技術を適用した携帯電話機の概略構成を例示している。携帯電話機920は、通信部922、音声コーデック923、カメラ部926、画像処理部927、多重分離部928、記録再生部929、表示部930、制御部931を有している。これらは、バス933を介して互いに接続されている。
<Seventh embodiment>
(Configuration example of mobile phone)
FIG. 45 illustrates a schematic configuration of a mobile phone to which the present technology is applied. The cellular phone 920 includes a communication unit 922, an audio codec 923, a camera unit 926, an image processing unit 927, a demultiplexing unit 928, a recording / reproducing unit 929, a display unit 930, and a control unit 931. These are connected to each other via a bus 933.
 また、通信部922にはアンテナ921が接続されており、音声コーデック923には、スピーカ924とマイクロホン925が接続されている。さらに制御部931には、操作部932が接続されている。 In addition, an antenna 921 is connected to the communication unit 922, and a speaker 924 and a microphone 925 are connected to the audio codec 923. Further, an operation unit 932 is connected to the control unit 931.
 携帯電話機920は、音声通話モードやデータ通信モード等の各種モードで、音声信号の送受信、電子メールや画像データの送受信、画像撮影、またはデータ記録等の各種動作を行う。 The mobile phone 920 performs various operations such as transmission / reception of voice signals, transmission / reception of e-mail and image data, image shooting, and data recording in various modes such as a voice call mode and a data communication mode.
 音声通話モードにおいて、マイクロホン925で生成された音声信号は、音声コーデック923で音声データへの変換やデータ圧縮が行われて通信部922に供給される。通信部922は、音声データの変調処理や周波数変換処理等を行い、送信信号を生成する。また、通信部922は、送信信号をアンテナ921に供給して図示しない基地局へ送信する。また、通信部922は、アンテナ921で受信した受信信号の増幅や周波数変換処理および復調処理等を行い、得られた音声データを音声コーデック923に供給する。音声コーデック923は、音声データのデータ伸張やアナログ音声信号への変換を行いスピーカ924に出力する。 In the voice call mode, the voice signal generated by the microphone 925 is converted into voice data and compressed by the voice codec 923 and supplied to the communication unit 922. The communication unit 922 performs audio data modulation processing, frequency conversion processing, and the like to generate a transmission signal. The communication unit 922 supplies a transmission signal to the antenna 921 and transmits it to a base station (not shown). In addition, the communication unit 922 performs amplification, frequency conversion processing, demodulation processing, and the like of the reception signal received by the antenna 921, and supplies the obtained audio data to the audio codec 923. The audio codec 923 performs data expansion of the audio data and conversion into an analog audio signal and outputs the result to the speaker 924.
 また、データ通信モードにおいて、メール送信を行う場合、制御部931は、操作部932の操作によって入力された文字データを受け付けて、入力された文字を表示部930に表示する。また、制御部931は、操作部932におけるユーザ指示等に基づいてメールデータを生成して通信部922に供給する。通信部922は、メールデータの変調処理や周波数変換処理等を行い、得られた送信信号をアンテナ921から送信する。また、通信部922は、アンテナ921で受信した受信信号の増幅や周波数変換処理および復調処理等を行い、メールデータを復元する。このメールデータを、表示部930に供給して、メール内容の表示を行う。 In the data communication mode, when mail transmission is performed, the control unit 931 receives character data input by operating the operation unit 932 and displays the input characters on the display unit 930. In addition, the control unit 931 generates mail data based on a user instruction or the like in the operation unit 932 and supplies the mail data to the communication unit 922. The communication unit 922 performs mail data modulation processing, frequency conversion processing, and the like, and transmits the obtained transmission signal from the antenna 921. In addition, the communication unit 922 performs amplification, frequency conversion processing, demodulation processing, and the like of the reception signal received by the antenna 921, and restores mail data. This mail data is supplied to the display unit 930 to display the mail contents.
 なお、携帯電話機920は、受信したメールデータを、記録再生部929で記憶媒体に記憶させることも可能である。記憶媒体は、書き換え可能な任意の記憶媒体である。例えば、記憶媒体は、RAMや内蔵型フラッシュメモリ等の半導体メモリ、ハードディスク、磁気ディスク、光磁気ディスク、光ディスク、USB(Universal Serial Bus)メモリ、またはメモリカード等のリムーバブルメディアである。 Note that the mobile phone 920 can also store the received mail data in a storage medium by the recording / playback unit 929. The storage medium is any rewritable storage medium. For example, the storage medium is a removable memory such as a RAM, a semiconductor memory such as a built-in flash memory, a hard disk, a magnetic disk, a magneto-optical disk, an optical disk, a USB (Universal Serial Bus) memory, or a memory card.
 データ通信モードにおいて画像データを送信する場合、カメラ部926で生成された画像データを、画像処理部927に供給する。画像処理部927は、画像データの符号化処理を行い、符号化データを生成する。 When transmitting image data in the data communication mode, the image data generated by the camera unit 926 is supplied to the image processing unit 927. The image processing unit 927 performs encoding processing of image data and generates encoded data.
 多重分離部928は、画像処理部927で生成された符号化データと、音声コーデック923から供給された音声データを所定の方式で多重化して通信部922に供給する。通信部922は、多重化データの変調処理や周波数変換処理等を行い、得られた送信信号をアンテナ921から送信する。また、通信部922は、アンテナ921で受信した受信信号の増幅や周波数変換処理および復調処理等を行い、多重化データを復元する。この多重化データを多重分離部928に供給する。多重分離部928は、多重化データの分離を行い、符号化データを画像処理部927、音声データを音声コーデック923に供給する。画像処理部927は、符号化データの復号化処理を行い、画像データを生成する。この画像データを表示部930に供給して、受信した画像の表示を行う。音声コーデック923は、音声データをアナログ音声信号に変換してスピーカ924に供給して、受信した音声を出力する。 The demultiplexing unit 928 multiplexes the encoded data generated by the image processing unit 927 and the audio data supplied from the audio codec 923 by a predetermined method, and supplies the multiplexed data to the communication unit 922. The communication unit 922 performs modulation processing and frequency conversion processing of multiplexed data, and transmits the obtained transmission signal from the antenna 921. In addition, the communication unit 922 performs amplification, frequency conversion processing, demodulation processing, and the like of the reception signal received by the antenna 921, and restores multiplexed data. This multiplexed data is supplied to the demultiplexing unit 928. The demultiplexing unit 928 performs demultiplexing of the multiplexed data, and supplies the encoded data to the image processing unit 927 and the audio data to the audio codec 923. The image processing unit 927 performs a decoding process on the encoded data to generate image data. The image data is supplied to the display unit 930 and the received image is displayed. The audio codec 923 converts the audio data into an analog audio signal, supplies the analog audio signal to the speaker 924, and outputs the received audio.
 このように構成された携帯電話装置では、画像処理部927に本願の符号化装置および復号装置(符号化方法および復号方法)の機能が設けられる。このため、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させることができる。また、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させるように符号化された符号化ストリームを復号することができる。 In the cellular phone device configured as described above, the image processing unit 927 is provided with the functions of the encoding device and the decoding device (encoding method and decoding method) of the present application. For this reason, it is possible to improve the encoding efficiency when the image to be encoded is enlarged or reduced. Also, it is possible to decode an encoded stream that has been encoded so as to improve encoding efficiency when an image to be encoded is enlarged or reduced.
 <第8実施の形態>
 (記録再生装置の構成例)
 図46は、本技術を適用した記録再生装置の概略構成を例示している。記録再生装置940は、例えば受信した放送番組のオーディオデータとビデオデータを、記録媒体に記録して、その記録されたデータをユーザの指示に応じたタイミングでユーザに提供する。また、記録再生装置940は、例えば他の装置からオーディオデータやビデオデータを取得し、それらを記録媒体に記録させることもできる。さらに、記録再生装置940は、記録媒体に記録されているオーディオデータやビデオデータを復号して出力することで、モニタ装置等において画像表示や音声出力を行うことができるようにする。
<Eighth embodiment>
(Configuration example of recording / reproducing apparatus)
FIG. 46 illustrates a schematic configuration of a recording / reproducing apparatus to which the present technology is applied. The recording / reproducing apparatus 940 records, for example, audio data and video data of a received broadcast program on a recording medium, and provides the recorded data to the user at a timing according to a user instruction. The recording / reproducing device 940 can also acquire audio data and video data from another device, for example, and record them on a recording medium. Further, the recording / reproducing apparatus 940 decodes and outputs the audio data and video data recorded on the recording medium, thereby enabling image display and audio output on the monitor apparatus or the like.
 記録再生装置940は、チューナ941、外部インタフェース部942、エンコーダ943、HDD(Hard Disk Drive)部944、ディスクドライブ945、セレクタ946、デコーダ947、OSD(On-Screen Display)部948、制御部949、ユーザインタフェース部950を有している。 The recording / reproducing apparatus 940 includes a tuner 941, an external interface unit 942, an encoder 943, an HDD (Hard Disk Drive) unit 944, a disk drive 945, a selector 946, a decoder 947, an OSD (On-Screen Display) unit 948, a control unit 949, A user interface unit 950 is included.
 チューナ941は、図示しないアンテナで受信された放送信号から所望のチャンネルを選局する。チューナ941は、所望のチャンネルの受信信号を復調して得られた符号化ビットストリームをセレクタ946に出力する。 Tuner 941 selects a desired channel from a broadcast signal received by an antenna (not shown). The tuner 941 outputs an encoded bit stream obtained by demodulating the received signal of a desired channel to the selector 946.
 外部インタフェース部942は、IEEE1394インタフェース、ネットワークインタフェース部、USBインタフェース、フラッシュメモリインタフェース等の少なくともいずれかで構成されている。外部インタフェース部942は、外部機器やネットワーク、メモリカード等と接続するためのインタフェースであり、記録する映像データや音声データ等のデータ受信を行う。 The external interface unit 942 includes at least one of an IEEE 1394 interface, a network interface unit, a USB interface, a flash memory interface, and the like. The external interface unit 942 is an interface for connecting to an external device, a network, a memory card, and the like, and receives data such as video data and audio data to be recorded.
 エンコーダ943は、外部インタフェース部942から供給された映像データや音声データが符号化されていないとき所定の方式で符号化を行い、符号化ビットストリームをセレクタ946に出力する。 The encoder 943 performs encoding by a predetermined method when the video data and audio data supplied from the external interface unit 942 are not encoded, and outputs an encoded bit stream to the selector 946.
 HDD部944は、映像や音声等のコンテンツデータ、各種プログラムやその他のデータ等を内蔵のハードディスクに記録し、また再生時等にそれらを当該ハードディスクから読み出す。 The HDD unit 944 records content data such as video and audio, various programs, and other data on a built-in hard disk, and reads them from the hard disk during playback.
 ディスクドライブ945は、装着されている光ディスクに対する信号の記録および再生を行う。光ディスク、例えばDVDディスク(DVD-Video、DVD-RAM、DVD-R、DVD-RW、DVD+R、DVD+RW等)やBlu-ray(登録商標)ディスク等である。 The disk drive 945 records and reproduces signals with respect to the mounted optical disk. An optical disk such as a DVD disk (DVD-Video, DVD-RAM, DVD-R, DVD-RW, DVD + R, DVD + RW, etc.), a Blu-ray (registered trademark) disk, or the like.
 セレクタ946は、映像や音声の記録時には、チューナ941またはエンコーダ943からのいずれかの符号化ビットストリームを選択して、HDD部944やディスクドライブ945のいずれかに供給する。また、セレクタ946は、映像や音声の再生時に、HDD部944またはディスクドライブ945から出力された符号化ビットストリームをデコーダ947に供給する。 The selector 946 selects one of the encoded bit streams from the tuner 941 or the encoder 943 and supplies it to either the HDD unit 944 or the disk drive 945 when recording video or audio. Further, the selector 946 supplies the encoded bit stream output from the HDD unit 944 or the disk drive 945 to the decoder 947 at the time of reproduction of video and audio.
 デコーダ947は、符号化ビットストリームの復号化処理を行う。デコーダ947は、復号処理化を行うことにより生成された映像データをOSD部948に供給する。また、デコーダ947は、復号処理化を行うことにより生成された音声データを出力する。 The decoder 947 performs a decoding process on the encoded bit stream. The decoder 947 supplies the video data generated by performing the decoding process to the OSD unit 948. The decoder 947 outputs audio data generated by performing the decoding process.
 OSD部948は、項目の選択などのメニュー画面等を表示するための映像データを生成し、それをデコーダ947から出力された映像データに重畳して出力する。 The OSD unit 948 generates video data for displaying a menu screen for selecting an item and the like, and superimposes it on the video data output from the decoder 947 and outputs the video data.
 制御部949には、ユーザインタフェース部950が接続されている。ユーザインタフェース部950は、操作スイッチやリモートコントロール信号受信部等で構成されており、ユーザ操作に応じた操作信号を制御部949に供給する。 A user interface unit 950 is connected to the control unit 949. The user interface unit 950 includes an operation switch, a remote control signal receiving unit, and the like, and supplies an operation signal corresponding to a user operation to the control unit 949.
 制御部949は、CPUやメモリ等を用いて構成されている。メモリは、CPUにより実行されるプログラムやCPUが処理を行う上で必要な各種のデータを記憶する。メモリに記憶されているプログラムは、記録再生装置940の起動時などの所定タイミングでCPUにより読み出されて実行される。CPUは、プログラムを実行することで、記録再生装置940がユーザ操作に応じた動作となるように各部を制御する。 The control unit 949 is configured using a CPU, a memory, and the like. The memory stores programs executed by the CPU and various data necessary for the CPU to perform processing. The program stored in the memory is read and executed by the CPU at a predetermined timing such as when the recording / reproducing apparatus 940 is activated. The CPU executes the program to control each unit so that the recording / reproducing device 940 operates according to the user operation.
 このように構成された記録再生装置では、デコーダ947に本願の復号装置(復号方法)の機能が設けられる。このため、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させるように符号化された符号化ストリームを復号することができる。 In the recording / reproducing apparatus configured as described above, the decoder 947 is provided with the function of the decoding apparatus (decoding method) of the present application. Therefore, it is possible to decode an encoded stream that has been encoded so as to improve the encoding efficiency when an image to be encoded is enlarged or reduced.
 <第9実施の形態>
 (撮像装置の構成例)
 図47は、本技術を適用した撮像装置の概略構成を例示している。撮像装置960は、被写体を撮像し、被写体の画像を表示部に表示させたり、それを画像データとして、記録媒体に記録する。
<Ninth Embodiment>
(Configuration example of imaging device)
FIG. 47 illustrates a schematic configuration of an imaging apparatus to which the present technology is applied. The imaging device 960 images a subject, displays an image of the subject on a display unit, and records it on a recording medium as image data.
 撮像装置960は、光学ブロック961、撮像部962、カメラ信号処理部963、画像データ処理部964、表示部965、外部インタフェース部966、メモリ部967、メディアドライブ968、OSD部969、制御部970を有している。また、制御部970には、ユーザインタフェース部971が接続されている。さらに、画像データ処理部964や外部インタフェース部966、メモリ部967、メディアドライブ968、OSD部969、制御部970等は、バス972を介して接続されている。 The imaging device 960 includes an optical block 961, an imaging unit 962, a camera signal processing unit 963, an image data processing unit 964, a display unit 965, an external interface unit 966, a memory unit 967, a media drive 968, an OSD unit 969, and a control unit 970. Have. In addition, a user interface unit 971 is connected to the control unit 970. Furthermore, the image data processing unit 964, the external interface unit 966, the memory unit 967, the media drive 968, the OSD unit 969, the control unit 970, and the like are connected via a bus 972.
 光学ブロック961は、フォーカスレンズや絞り機構等を用いて構成されている。光学ブロック961は、被写体の光学像を撮像部962の撮像面に結像させる。撮像部962は、CCDまたはCMOSイメージセンサを用いて構成されており、光電変換によって光学像に応じた電気信号を生成してカメラ信号処理部963に供給する。 The optical block 961 is configured using a focus lens, a diaphragm mechanism, and the like. The optical block 961 forms an optical image of the subject on the imaging surface of the imaging unit 962. The imaging unit 962 is configured using a CCD or CMOS image sensor, generates an electrical signal corresponding to the optical image by photoelectric conversion, and supplies the electrical signal to the camera signal processing unit 963.
 カメラ信号処理部963は、撮像部962から供給された電気信号に対してニー補正やガンマ補正、色補正等の種々のカメラ信号処理を行う。カメラ信号処理部963は、カメラ信号処理後の画像データを画像データ処理部964に供給する。 The camera signal processing unit 963 performs various camera signal processing such as knee correction, gamma correction, and color correction on the electrical signal supplied from the imaging unit 962. The camera signal processing unit 963 supplies the image data after the camera signal processing to the image data processing unit 964.
 画像データ処理部964は、カメラ信号処理部963から供給された画像データの符号化処理を行う。画像データ処理部964は、符号化処理を行うことにより生成された符号化データを外部インタフェース部966やメディアドライブ968に供給する。また、画像データ処理部964は、外部インタフェース部966やメディアドライブ968から供給された符号化データの復号化処理を行う。画像データ処理部964は、復号化処理を行うことにより生成された画像データを表示部965に供給する。また、画像データ処理部964は、カメラ信号処理部963から供給された画像データを表示部965に供給する処理や、OSD部969から取得した表示用データを、画像データに重畳させて表示部965に供給する。 The image data processing unit 964 performs an encoding process on the image data supplied from the camera signal processing unit 963. The image data processing unit 964 supplies the encoded data generated by performing the encoding process to the external interface unit 966 and the media drive 968. Further, the image data processing unit 964 performs a decoding process on the encoded data supplied from the external interface unit 966 and the media drive 968. The image data processing unit 964 supplies the image data generated by performing the decoding process to the display unit 965. Further, the image data processing unit 964 superimposes the processing for supplying the image data supplied from the camera signal processing unit 963 to the display unit 965 and the display data acquired from the OSD unit 969 on the image data. To supply.
 OSD部969は、記号、文字、または図形からなるメニュー画面やアイコンなどの表示用データを生成して画像データ処理部964に出力する。 The OSD unit 969 generates display data such as a menu screen and icons made up of symbols, characters, or figures and outputs them to the image data processing unit 964.
 外部インタフェース部966は、例えば、USB入出力端子などで構成され、画像の印刷を行う場合に、プリンタと接続される。また、外部インタフェース部966には、必要に応じてドライブが接続され、磁気ディスク、光ディスク等のリムーバブルメディアが適宜装着され、それらから読み出されたコンピュータプログラムが、必要に応じて、インストールされる。さらに、外部インタフェース部966は、LANやインターネット等の所定のネットワークに接続されるネットワークインタフェースを有する。制御部970は、例えば、ユーザインタフェース部971からの指示にしたがって、メディアドライブ968から符号化データを読み出し、それを外部インタフェース部966から、ネットワークを介して接続される他の装置に供給させることができる。また、制御部970は、ネットワークを介して他の装置から供給される符号化データや画像データを、外部インタフェース部966を介して取得し、それを画像データ処理部964に供給したりすることができる。 The external interface unit 966 includes, for example, a USB input / output terminal, and is connected to a printer when printing an image. In addition, a drive is connected to the external interface unit 966 as necessary, a removable medium such as a magnetic disk or an optical disk is appropriately mounted, and a computer program read from them is installed as necessary. Furthermore, the external interface unit 966 has a network interface connected to a predetermined network such as a LAN or the Internet. For example, the control unit 970 reads encoded data from the media drive 968 in accordance with an instruction from the user interface unit 971, and supplies the encoded data to the other device connected via the network from the external interface unit 966. it can. Also, the control unit 970 may acquire encoded data and image data supplied from another device via the network via the external interface unit 966 and supply the acquired data to the image data processing unit 964. it can.
 メディアドライブ968で駆動される記録メディアとしては、例えば、磁気ディスク、光磁気ディスク、光ディスク、または半導体メモリ等の、読み書き可能な任意のリムーバブルメディアが用いられる。また、記録メディアは、リムーバブルメディアとしての種類も任意であり、テープデバイスであってもよいし、ディスクであってもよいし、メモリカードであってもよい。もちろん、非接触IC(Integrated Circuit)カード等であってもよい。 As the recording medium driven by the media drive 968, any readable / writable removable medium such as a magnetic disk, a magneto-optical disk, an optical disk, or a semiconductor memory is used. The recording medium may be any type of removable medium, and may be a tape device, a disk, or a memory card. Of course, a non-contact IC (Integrated Circuit) card may be used.
 また、メディアドライブ968と記録メディアを一体化し、例えば、内蔵型ハードディスクドライブやSSD(Solid State Drive)等のように、非可搬性の記憶媒体により構成されるようにしてもよい。 Further, the media drive 968 and the recording medium may be integrated and configured by a non-portable storage medium such as a built-in hard disk drive or an SSD (Solid State Drive).
 制御部970は、CPUを用いて構成されている。メモリ部967は、制御部970により実行されるプログラムや制御部970が処理を行う上で必要な各種のデータ等を記憶する。メモリ部967に記憶されているプログラムは、撮像装置960の起動時などの所定タイミングで制御部970により読み出されて実行される。制御部970は、プログラムを実行することで、撮像装置960がユーザ操作に応じた動作となるように各部を制御する。 The control unit 970 is configured using a CPU. The memory unit 967 stores a program executed by the control unit 970, various data necessary for the control unit 970 to perform processing, and the like. The program stored in the memory unit 967 is read and executed by the control unit 970 at a predetermined timing such as when the imaging device 960 is activated. The control unit 970 controls each unit so that the imaging device 960 performs an operation according to a user operation by executing a program.
 このように構成された撮像装置では、画像データ処理部964に本願の符号化装置および復号装置(符号化方法および復号方法)の機能が設けられる。このため、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させることができる。また、符号化対象の画像が拡大や縮小する場合の符号化効率を向上させるように符号化された符号化ストリームを復号することができる。 In the imaging apparatus configured as described above, the image data processing unit 964 is provided with the functions of the encoding apparatus and decoding apparatus (encoding method and decoding method) of the present application. For this reason, it is possible to improve the encoding efficiency when the image to be encoded is enlarged or reduced. Also, it is possible to decode an encoded stream that has been encoded so as to improve encoding efficiency when an image to be encoded is enlarged or reduced.
 <スケーラブル符号化の応用例>
 (第1のシステム)
 次に、スケーラブル符号化(階層符号化)されたスケーラブル符号化データの具体的な利用例について説明する。スケーラブル符号化は、例えば、図48に示される例のように、伝送するデータの選択のために利用される。
<Application example of scalable coding>
(First system)
Next, a specific usage example of scalable encoded data that has been subjected to scalable encoding (hierarchical encoding) will be described. The scalable coding is used for selection of data to be transmitted, for example, as in the example shown in FIG.
 図48に示されるデータ伝送システム1000において、配信サーバ1002は、スケーラブル符号化データ記憶部1001に記憶されているスケーラブル符号化データを読み出し、ネットワーク1003を介して、パーソナルコンピュータ1004、AV機器1005、タブレットデバイス1006、および携帯電話機1007等の端末装置に配信する。 In the data transmission system 1000 shown in FIG. 48, the distribution server 1002 reads the scalable encoded data stored in the scalable encoded data storage unit 1001, and via the network 1003, the personal computer 1004, the AV device 1005, the tablet This is distributed to the terminal device such as the device 1006 and the mobile phone 1007.
 その際、配信サーバ1002は、端末装置の能力や通信環境等に応じて、適切な品質の符号化データを選択して伝送する。配信サーバ1002が不要に高品質なデータを伝送しても、端末装置において高画質な画像を得られるとは限らず、遅延やオーバーフローの発生要因となる恐れがある。また、不要に通信帯域を占有したり、端末装置の負荷を不要に増大させたりしてしまう恐れもある。逆に、配信サーバ1002が不要に低品質なデータを伝送しても、端末装置において十分な画質の画像を得ることができない恐れがある。そのため、配信サーバ1002は、スケーラブル符号化データ記憶部1001に記憶されているスケーラブル符号化データを、適宜、端末装置の能力や通信環境等に対して適切な品質の符号化データとして読み出し、伝送する。 At this time, the distribution server 1002 selects and transmits encoded data of appropriate quality according to the capability of the terminal device, the communication environment, and the like. Even if the distribution server 1002 transmits unnecessarily high-quality data, the terminal device does not always obtain a high-quality image, and may cause a delay or an overflow. Moreover, there is a possibility that the communication band is unnecessarily occupied or the load on the terminal device is unnecessarily increased. On the other hand, even if the distribution server 1002 transmits unnecessarily low quality data, there is a possibility that an image with sufficient image quality cannot be obtained in the terminal device. Therefore, the distribution server 1002 appropriately reads and transmits the scalable encoded data stored in the scalable encoded data storage unit 1001 as encoded data having an appropriate quality with respect to the capability and communication environment of the terminal device. .
 例えば、スケーラブル符号化データ記憶部1001は、スケーラブルに符号化されたスケーラブル符号化データ(BL+EL)1011を記憶するとする。このスケーラブル符号化データ(BL+EL)1011は、ベースレイヤとエンハンスメントレイヤの両方を含む符号化データであり、復号することにより、ベースレイヤの画像およびエンハンスメントレイヤの画像の両方を得ることができるデータである。 For example, it is assumed that the scalable encoded data storage unit 1001 stores scalable encoded data (BL + EL) 1011 encoded in a scalable manner. The scalable encoded data (BL + EL) 1011 is encoded data including both a base layer and an enhancement layer, and is a data that can be decoded to obtain both a base layer image and an enhancement layer image. It is.
 配信サーバ1002は、データを伝送する端末装置の能力や通信環境等に応じて、適切なレイヤを選択し、そのレイヤのデータを読み出す。例えば、配信サーバ1002は、処理能力の高いパーソナルコンピュータ1004やタブレットデバイス1006に対しては、高品質なスケーラブル符号化データ(BL+EL)1011をスケーラブル符号化データ記憶部1001から読み出し、そのまま伝送する。これに対して、例えば、配信サーバ1002は、処理能力の低いAV機器1005や携帯電話機1007に対しては、スケーラブル符号化データ(BL+EL)1011からベースレイヤのデータを抽出し、スケーラブル符号化データ(BL+EL)1011と同じコンテンツのデータであるが、スケーラブル符号化データ(BL+EL)1011よりも低品質なスケーラブル符号化データ(BL)1012として伝送する。 The distribution server 1002 selects an appropriate layer according to the capability of the terminal device that transmits data, the communication environment, and the like, and reads the data of the layer. For example, the distribution server 1002 reads high-quality scalable encoded data (BL + EL) 1011 from the scalable encoded data storage unit 1001 and transmits it to the personal computer 1004 and the tablet device 1006 with high processing capability as they are. . On the other hand, for example, the distribution server 1002 extracts base layer data from the scalable encoded data (BL + EL) 1011 for the AV device 1005 and the cellular phone 1007 having a low processing capability, and performs scalable encoding. Although it is data of the same content as the data (BL + EL) 1011, it is transmitted as scalable encoded data (BL) 1012 having a lower quality than the scalable encoded data (BL + EL) 1011.
 このようにスケーラブル符号化データを用いることにより、データ量を容易に調整することができるので、遅延やオーバーフローの発生を抑制したり、端末装置や通信媒体の負荷の不要な増大を抑制したりすることができる。また、スケーラブル符号化データ(BL+EL)1011は、レイヤ間の冗長性が低減されているので、各レイヤの符号化データを個別のデータとする場合よりもそのデータ量を低減させることができる。したがって、スケーラブル符号化データ記憶部1001の記憶領域をより効率よく使用することができる。 By using scalable encoded data in this way, the amount of data can be easily adjusted, so that the occurrence of delay and overflow can be suppressed, and the unnecessary increase in the load on the terminal device and communication medium can be suppressed. be able to. In addition, since scalable encoded data (BL + EL) 1011 has reduced redundancy between layers, the amount of data can be reduced as compared with the case where encoded data of each layer is used as individual data. . Therefore, the storage area of the scalable encoded data storage unit 1001 can be used more efficiently.
 なお、パーソナルコンピュータ1004乃至携帯電話機1007のように、端末装置には様々な装置を適用することができるので、端末装置のハードウエアの性能は、装置によって異なる。また、端末装置が実行するアプリケーションも様々であるので、そのソフトウエアの能力も様々である。さらに、通信媒体となるネットワーク1003も、例えばインターネットやLAN(Local Area Network)等、有線若しくは無線、またはその両方を含むあらゆる通信回線網を適用することができ、そのデータ伝送能力は様々である。さらに、他の通信等によっても変化する恐れがある。 Note that since various devices can be applied to the terminal device, such as the personal computer 1004 to the cellular phone 1007, the hardware performance of the terminal device varies depending on the device. Moreover, since the application which a terminal device performs is also various, the capability of the software is also various. Furthermore, the network 1003 serving as a communication medium can be applied to any communication network including wired, wireless, or both, such as the Internet and a LAN (Local Area Network), and has various data transmission capabilities. Furthermore, there is a risk of change due to other communications.
 そこで、配信サーバ1002は、データ伝送を開始する前に、データの伝送先となる端末装置と通信を行い、端末装置のハードウエア性能や、端末装置が実行するアプリケーション(ソフトウエア)の性能等といった端末装置の能力に関する情報、並びに、ネットワーク1003の利用可能帯域幅等の通信環境に関する情報を得るようにしてもよい。そして、配信サーバ1002が、ここで得た情報を基に、適切なレイヤを選択するようにしてもよい。 Therefore, the distribution server 1002 communicates with the terminal device that is the data transmission destination before starting data transmission, and the hardware performance of the terminal device, the performance of the application (software) executed by the terminal device, etc. Information regarding the capability of the terminal device and information regarding the communication environment such as the available bandwidth of the network 1003 may be obtained. The distribution server 1002 may select an appropriate layer based on the information obtained here.
 なお、レイヤの抽出は、端末装置において行うようにしてもよい。例えば、パーソナルコンピュータ1004が、伝送されたスケーラブル符号化データ(BL+EL)1011を復号し、ベースレイヤの画像を表示しても良いし、エンハンスメントレイヤの画像を表示しても良い。また、例えば、パーソナルコンピュータ1004が、伝送されたスケーラブル符号化データ(BL+EL)1011から、ベースレイヤのスケーラブル符号化データ(BL)1012を抽出し、記憶したり、他の装置に転送したり、復号してベースレイヤの画像を表示したりするようにしてもよい。 Note that the layer extraction may be performed by the terminal device. For example, the personal computer 1004 may decode the transmitted scalable encoded data (BL + EL) 1011 and display a base layer image or an enhancement layer image. Further, for example, the personal computer 1004 extracts the base layer scalable encoded data (BL) 1012 from the transmitted scalable encoded data (BL + EL) 1011 and stores it or transfers it to another device. The base layer image may be displayed after decoding.
 もちろん、スケーラブル符号化データ記憶部1001、配信サーバ1002、ネットワーク1003、および端末装置の数はいずれも任意である。また、以上においては、配信サーバ1002がデータを端末装置に伝送する例について説明したが、利用例はこれに限定されない。データ伝送システム1000は、スケーラブル符号化された符号化データを端末装置に伝送する際、端末装置の能力や通信環境等に応じて、適切なレイヤを選択して伝送するシステムであれば、任意のシステムに適用することができる。 Of course, the numbers of the scalable encoded data storage unit 1001, the distribution server 1002, the network 1003, and the terminal devices are arbitrary. In the above, the example in which the distribution server 1002 transmits data to the terminal device has been described, but the usage example is not limited to this. The data transmission system 1000 may be any system as long as it transmits a scalable encoded data to a terminal device by selecting an appropriate layer according to the capability of the terminal device or a communication environment. Can be applied to the system.
 (第2のシステム)
 また、スケーラブル符号化は、例えば、図49に示される例のように、複数の通信媒体を介する伝送のために利用される。
(Second system)
In addition, scalable coding is used for transmission via a plurality of communication media as in the example shown in FIG. 49, for example.
 図49に示されるデータ伝送システム1100において、放送局1101は、地上波放送1111により、ベースレイヤのスケーラブル符号化データ(BL)1121を伝送する。また、放送局1101は、有線若しくは無線またはその両方の通信網よりなる任意のネットワーク1112を介して、エンハンスメントレイヤのスケーラブル符号化データ(EL)1122を伝送する(例えばパケット化して伝送する)。 49, a broadcasting station 1101 transmits base layer scalable encoded data (BL) 1121 by terrestrial broadcasting 1111. In the data transmission system 1100 shown in FIG. Also, the broadcast station 1101 transmits enhancement layer scalable encoded data (EL) 1122 via an arbitrary network 1112 including a wired or wireless communication network or both (for example, packetized transmission).
 端末装置1102は、放送局1101が放送する地上波放送1111の受信機能を有し、この地上波放送1111を介して伝送されるベースレイヤのスケーラブル符号化データ(BL)1121を受け取る。また、端末装置1102は、ネットワーク1112を介した通信を行う通信機能をさらに有し、このネットワーク1112を介して伝送されるエンハンスメントレイヤのスケーラブル符号化データ(EL)1122を受け取る。 The terminal apparatus 1102 has a reception function of the terrestrial broadcast 1111 broadcast by the broadcast station 1101 and receives base layer scalable encoded data (BL) 1121 transmitted via the terrestrial broadcast 1111. The terminal apparatus 1102 further has a communication function for performing communication via the network 1112, and receives enhancement layer scalable encoded data (EL) 1122 transmitted via the network 1112.
 端末装置1102は、例えばユーザ指示等に応じて、地上波放送1111を介して取得したベースレイヤのスケーラブル符号化データ(BL)1121を、復号してベースレイヤの画像を得たり、記憶したり、他の装置に伝送したりする。 The terminal device 1102 decodes the base layer scalable encoded data (BL) 1121 acquired via the terrestrial broadcast 1111 according to, for example, a user instruction, and obtains or stores a base layer image. Or transmit to other devices.
 また、端末装置1102は、例えばユーザ指示等に応じて、地上波放送1111を介して取得したベースレイヤのスケーラブル符号化データ(BL)1121と、ネットワーク1112を介して取得したエンハンスメントレイヤのスケーラブル符号化データ(EL)1122とを合成して、スケーラブル符号化データ(BL+EL)を得たり、それを復号してエンハンスメントレイヤの画像を得たり、記憶したり、他の装置に伝送したりする。 Also, the terminal device 1102, for example, in response to a user instruction, the base layer scalable encoded data (BL) 1121 acquired via the terrestrial broadcast 1111 and the enhancement layer scalable encoded acquired via the network 1112 Data (EL) 1122 is combined to obtain scalable encoded data (BL + EL), or decoded to obtain an enhancement layer image, stored, or transmitted to another device.
 以上のように、スケーラブル符号化データは、例えばレイヤ毎に異なる通信媒体を介して伝送させることができる。したがって、負荷を分散させることができ、遅延やオーバーフローの発生を抑制することができる。 As described above, the scalable encoded data can be transmitted via a communication medium that is different for each layer, for example. Therefore, the load can be distributed, and the occurrence of delay and overflow can be suppressed.
 また、状況に応じて、伝送に使用する通信媒体を、レイヤ毎に選択することができるようにしてもよい。例えば、データ量が比較的多いベースレイヤのスケーラブル符号化データ(BL)1121を帯域幅の広い通信媒体を介して伝送させ、データ量が比較的少ないエンハンスメントレイヤのスケーラブル符号化データ(EL)1122を帯域幅の狭い通信媒体を介して伝送させるようにしてもよい。また、例えば、エンハンスメントレイヤのスケーラブル符号化データ(EL)1122を伝送する通信媒体を、ネットワーク1112とするか、地上波放送1111とするかを、ネットワーク1112の利用可能帯域幅に応じて切り替えるようにしてもよい。もちろん、任意のレイヤのデータについて同様である。 Also, depending on the situation, the communication medium used for transmission may be selected for each layer. For example, scalable encoded data (BL) 1121 of a base layer having a relatively large amount of data is transmitted via a communication medium having a wide bandwidth, and scalable encoded data (EL) 1122 having a relatively small amount of data is transmitted. You may make it transmit via a communication medium with a narrow bandwidth. Further, for example, the communication medium for transmitting the enhancement layer scalable encoded data (EL) 1122 is switched between the network 1112 and the terrestrial broadcast 1111 according to the available bandwidth of the network 1112. May be. Of course, the same applies to data of an arbitrary layer.
 このように制御することにより、データ伝送における負荷の増大を、より抑制することができる。 By controlling in this way, an increase in load in data transmission can be further suppressed.
 もちろん、レイヤ数は任意であり、伝送に利用する通信媒体の数も任意である。また、データ配信先となる端末装置1102の数も任意である。さらに、以上においては、放送局1101からの放送を例に説明したが、利用例はこれに限定されない。データ伝送システム1100は、スケーラブル符号化された符号化データを、レイヤを単位として複数に分割し、複数の回線を介して伝送するシステムであれば、任意のシステムに適用することができる。 Of course, the number of layers is arbitrary, and the number of communication media used for transmission is also arbitrary. In addition, the number of terminal devices 1102 serving as data distribution destinations is also arbitrary. Furthermore, in the above description, broadcasting from the broadcasting station 1101 has been described as an example, but the usage example is not limited to this. The data transmission system 1100 can be applied to any system as long as it is a system that divides scalable encoded data into a plurality of layers and transmits them through a plurality of lines.
 (第3のシステム)
 また、スケーラブル符号化は、例えば、図50に示される例のように、符号化データの記憶に利用される。
(Third system)
Also, scalable coding is used for storing coded data, for example, as in the example shown in FIG.
 図50に示される撮像システム1200において、撮像装置1201は、被写体1211を撮像して得られた画像データをスケーラブル符号化し、スケーラブル符号化データ(BL+EL)1221として、スケーラブル符号化データ記憶装置1202に供給する。 In the imaging system 1200 shown in FIG. 50, the imaging device 1201 performs scalable coding on the image data obtained by imaging the subject 1211, and obtains scalable coded data (BL + EL) 1221 as a scalable coded data storage device 1202. To supply.
 スケーラブル符号化データ記憶装置1202は、撮像装置1201から供給されるスケーラブル符号化データ(BL+EL)1221を、状況に応じた品質で記憶する。例えば、通常時の場合、スケーラブル符号化データ記憶装置1202は、スケーラブル符号化データ(BL+EL)1221からベースレイヤのデータを抽出し、低品質でデータ量の少ないベースレイヤのスケーラブル符号化データ(BL)1222として記憶する。これに対して、例えば、注目時の場合、スケーラブル符号化データ記憶装置1202は、高品質でデータ量の多いスケーラブル符号化データ(BL+EL)1221のまま記憶する。 The scalable encoded data storage device 1202 stores the scalable encoded data (BL + EL) 1221 supplied from the imaging device 1201 with quality according to the situation. For example, in the normal case, the scalable encoded data storage device 1202 extracts base layer data from the scalable encoded data (BL + EL) 1221, and the base layer scalable encoded data ( BL) 1222. On the other hand, for example, in the case of attention, the scalable encoded data storage device 1202 stores scalable encoded data (BL + EL) 1221 with high quality and a large amount of data.
 このようにすることにより、スケーラブル符号化データ記憶装置1202は、必要な場合のみ、画像を高画質に保存することができるので、画質劣化による画像の価値の低減を抑制しながら、データ量の増大を抑制することができ、記憶領域の利用効率を向上させることができる。 By doing so, the scalable encoded data storage device 1202 can store an image with high image quality only when necessary, so that an increase in the amount of data can be achieved while suppressing a reduction in the value of the image due to image quality degradation. And the use efficiency of the storage area can be improved.
 例えば、撮像装置1201が監視カメラであるとする。撮像画像に監視対象(例えば侵入者)が写っていない場合(通常時の場合)、撮像画像の内容は重要でない可能性が高いので、データ量の低減が優先され、その画像データ(スケーラブル符号化データ)は、低品質に記憶される。これに対して、撮像画像に監視対象が被写体1211として写っている場合(注目時の場合)、その撮像画像の内容は重要である可能性が高いので、画質が優先され、その画像データ(スケーラブル符号化データ)は、高品質に記憶される。 For example, assume that the imaging device 1201 is a surveillance camera. When the monitoring target (for example, an intruder) is not shown in the captured image (in the normal case), the content of the captured image is likely to be unimportant, so reduction of the data amount is given priority, and the image data (scalable coding) Data) is stored in low quality. On the other hand, when the monitoring target appears in the captured image as the subject 1211 (at the time of attention), since the content of the captured image is likely to be important, the image quality is given priority and the image data (scalable) (Encoded data) is stored with high quality.
 なお、通常時であるか注目時であるかは、例えば、スケーラブル符号化データ記憶装置1202が、画像を解析することにより判定しても良い。また、撮像装置1201が判定し、その判定結果をスケーラブル符号化データ記憶装置1202に伝送するようにしてもよい。 Note that whether it is normal time or attention time may be determined by the scalable encoded data storage device 1202 analyzing an image, for example. Alternatively, the imaging apparatus 1201 may make a determination, and the determination result may be transmitted to the scalable encoded data storage device 1202.
 なお、通常時であるか注目時であるかの判定基準は任意であり、判定基準とする画像の内容は任意である。もちろん、画像の内容以外の条件を判定基準とすることもできる。例えば、収録した音声の大きさや波形等に応じて切り替えるようにしてもよいし、所定の時間毎に切り替えるようにしてもよいし、ユーザ指示等の外部からの指示によって切り替えるようにしてもよい。 It should be noted that the criterion for determining whether the time is normal or noting is arbitrary, and the content of the image as the criterion is arbitrary. Of course, conditions other than the contents of the image can also be used as the criterion. For example, it may be switched according to the volume or waveform of the recorded sound, may be switched at every predetermined time, or may be switched by an external instruction such as a user instruction.
 また、以上においては、通常時と注目時の2つの状態を切り替える例を説明したが、状態の数は任意であり、例えば、通常時、やや注目時、注目時、非常に注目時等のように、3つ以上の状態を切り替えるようにしてもよい。ただし、この切り替える状態の上限数は、スケーラブル符号化データのレイヤ数に依存する。 In the above, an example of switching between the normal state and the attention state has been described. However, the number of states is arbitrary, for example, normal, slightly attention, attention, very attention, etc. Alternatively, three or more states may be switched. However, the upper limit number of states to be switched depends on the number of layers of scalable encoded data.
 また、撮像装置1201が、スケーラブル符号化のレイヤ数を、状態に応じて決定するようにしてもよい。例えば、通常時の場合、撮像装置1201が、低品質でデータ量の少ないベースレイヤのスケーラブル符号化データ(BL)1222を生成し、スケーラブル符号化データ記憶装置1202に供給するようにしてもよい。また、例えば、注目時の場合、撮像装置1201が、高品質でデータ量の多いベースレイヤのスケーラブル符号化データ(BL+EL)1221を生成し、スケーラブル符号化データ記憶装置1202に供給するようにしてもよい。 Also, the imaging apparatus 1201 may determine the number of layers for scalable coding according to the state. For example, in a normal case, the imaging apparatus 1201 may generate base layer scalable encoded data (BL) 1222 with low quality and a small amount of data, and supply the scalable encoded data storage apparatus 1202 to the scalable encoded data storage apparatus 1202. For example, when attention is paid, the imaging device 1201 generates scalable encoded data (BL + EL) 1221 having a high quality and a large amount of data, and supplies the scalable encoded data storage device 1202 to the scalable encoded data storage device 1202. May be.
 以上においては、監視カメラを例に説明したが、この撮像システム1200の用途は任意であり、監視カメラに限定されない。 In the above, the monitoring camera has been described as an example. However, the use of the imaging system 1200 is arbitrary and is not limited to the monitoring camera.
 <第10実施の形態>
 (実施のその他の例)
  以上において本技術を適用する装置やシステム等の例を説明したが、本技術は、これに限らず、このような装置またはシステムを構成する装置に搭載するあらゆる構成、例えば、システムLSI(Large Scale Integration)等としてのプロセッサ、複数のプロセッサ等を用いるモジュール、複数のモジュール等を用いるユニット、ユニットにさらにその他の機能を付加したセット等(すなわち、装置の一部の構成)として実施することもできる。
<Tenth embodiment>
(Other examples of implementation)
In the above, examples of devices and systems to which the present technology is applied have been described. However, the present technology is not limited thereto, and any configuration mounted on such devices or devices constituting the system, for example, a system LSI (Large Scale) Integration) etc., a module using a plurality of processors, etc., a unit using a plurality of modules, etc., a set in which other functions are added to the unit, etc. (that is, a partial configuration of the apparatus) .
 (ビデオセットの構成例)
  本技術をセットとして実施する場合の例について、図51を参照して説明する。図51は、本技術を適用したビデオセットの概略的な構成の一例を示している。
(Video set configuration example)
An example in which the present technology is implemented as a set will be described with reference to FIG. FIG. 51 illustrates an example of a schematic configuration of a video set to which the present technology is applied.
  近年、電子機器の多機能化が進んでおり、その開発や製造において、その一部の構成を販売や提供等として実施する場合、1機能を有する構成として実施を行う場合だけでなく、関連する機能を有する複数の構成を組み合わせ、複数の機能を有する1セットとして実施を行う場合も多く見られるようになってきた。 In recent years, multi-functionalization of electronic devices has progressed, and in the development and manufacture, when implementing a part of the configuration as sales or provision, etc., not only when implementing as a configuration having one function, but also related In many cases, a plurality of configurations having functions are combined and implemented as a set having a plurality of functions.
  図51に示されるビデオセット1300は、このような多機能化された構成であり、画像の符号化や復号(いずれか一方でもよいし、両方でも良い)に関する機能を有するデバイスに、その機能に関連するその他の機能を有するデバイスを組み合わせたものである。 The video set 1300 shown in FIG. 51 has such a multi-functional configuration, and a device having a function related to image encoding and decoding (either one or both) can be used for the function. It is a combination of devices having other related functions.
  図51に示されるように、ビデオセット1300は、ビデオモジュール1311、外部メモリ1312、パワーマネージメントモジュール1313、およびフロントエンドモジュール1314等のモジュール群と、コネクティビティ1321、カメラ1322、およびセンサ1323等の関連する機能を有するデバイスとを有する。 As shown in FIG. 51, the video set 1300 includes a module group such as a video module 1311, an external memory 1312, a power management module 1313, and a front-end module 1314, and a related group such as a connectivity 1321, a camera 1322, and a sensor 1323. And a device having a function.
  モジュールは、互いに関連するいくつかの部品的機能をまとめ、まとまりのある機能を持った部品としたものである。具体的な物理的構成は任意であるが、例えば、それぞれ機能を有する複数のプロセッサ、抵抗やコンデンサ等の電子回路素子、その他のデバイス等を配線基板等に配置して一体化したものが考えられる。また、モジュールに他のモジュールやプロセッサ等を組み合わせて新たなモジュールとすることも考えられる。 A cocoon module is a component that has several functions that are related to each other and that have a coherent function. The specific physical configuration is arbitrary. For example, a plurality of processors each having a function, electronic circuit elements such as resistors and capacitors, and other devices arranged on a wiring board or the like can be considered. . It is also possible to combine the module with another module, a processor, or the like to form a new module.
  図51の例の場合、ビデオモジュール1311は、画像処理に関する機能を有する構成を組み合わせたものであり、アプリケーションプロセッサ、ビデオプロセッサ、ブロードバンドモデム1333、およびRFモジュール1334を有する。 51, the video module 1311 is a combination of configurations having functions related to image processing, and includes an application processor, a video processor, a broadband modem 1333, and an RF module 1334.
  プロセッサは、所定の機能を有する構成をSoC(System On a Chip)により半導体チップに集積したものであり、例えばシステムLSI(Large Scale Integration)等と称されるものもある。この所定の機能を有する構成は、論理回路(ハードウエア構成)であってもよいし、CPU、ROM、RAM等と、それらを用いて実行されるプログラム(ソフトウエア構成)であってもよいし、その両方を組み合わせたものであってもよい。例えば、プロセッサが、論理回路とCPU、ROM、RAM等とを有し、機能の一部を論理回路(ハードウエア構成)により実現し、その他の機能をCPUにおいて実行されるプログラム(ソフトウエア構成)により実現するようにしてもよい。 The processor is a configuration in which a configuration having a predetermined function is integrated on a semiconductor chip by an SoC (System On Chip), and for example, there is also a system LSI (Large Scale Integration) or the like. The configuration having the predetermined function may be a logic circuit (hardware configuration), a CPU, a ROM, a RAM, and the like, and a program (software configuration) executed using them. , Or a combination of both. For example, a processor has a logic circuit and a CPU, ROM, RAM, etc., a part of the function is realized by a logic circuit (hardware configuration), and other functions are executed by the CPU (software configuration) It may be realized by.
  図51のアプリケーションプロセッサ1331は、画像処理に関するアプリケーションを実行するプロセッサである。このアプリケーションプロセッサ1331において実行されるアプリケーションは、所定の機能を実現するために、演算処理を行うだけでなく、例えばビデオプロセッサ1332等、ビデオモジュール1311内外の構成を必要に応じて制御することもできる。 51 is a processor that executes an application related to image processing. The application executed in the application processor 1331 not only performs arithmetic processing to realize a predetermined function, but also can control the internal and external configurations of the video module 1311 such as the video processor 1332 as necessary. .
  ビデオプロセッサ1332は、画像の符号化・復号(その一方若しくは両方)に関する機能を有するプロセッサである。 The video processor 1332 is a processor having a function related to image encoding / decoding (one or both of them).
  ブロードバンドモデム1333は、インターネットや公衆電話回線網等の広帯域の回線を介して行われる有線若しくは無線(またはその両方)の広帯域通信に関する処理を行うプロセッサ(若しくはモジュール)である。例えば、ブロードバンドモデム1333は、送信するデータ(デジタル信号)をデジタル変調する等してアナログ信号に変換したり、受信したアナログ信号を復調してデータ(デジタル信号)に変換したりする。例えば、ブロードバンドモデム1333は、ビデオプロセッサ1332が処理する画像データや画像データが符号化されたストリーム、アプリケーションプログラム、設定データ等、任意の情報をデジタル変調・復調することができる。 The broadband modem 1333 is a processor (or module) that performs processing related to wired or wireless (or both) broadband communication performed via a broadband line such as the Internet or a public telephone line network. For example, the broadband modem 1333 digitally modulates data to be transmitted (digital signal) to convert it into an analog signal, or demodulates the received analog signal to convert it into data (digital signal). For example, the broadband modem 1333 can digitally modulate and demodulate arbitrary information such as image data processed by the video processor 1332, a stream obtained by encoding the image data, an application program, setting data, and the like.
  RFモジュール1334は、アンテナを介して送受信されるRF(Radio Frequency)信号に対して、周波数変換、変復調、増幅、フィルタ処理等を行うモジュールである。例えば、RFモジュール1334は、ブロードバンドモデム1333により生成されたベースバンド信号に対して周波数変換等を行ってRF信号を生成する。また、例えば、RFモジュール1334は、フロントエンドモジュール1314を介して受信されたRF信号に対して周波数変換等を行ってベースバンド信号を生成する。 The RF module 1334 is a module that performs frequency conversion, modulation / demodulation, amplification, filter processing, and the like on an RF (Radio RF Frequency) signal transmitted and received via an antenna. For example, the RF module 1334 generates an RF signal by performing frequency conversion or the like on the baseband signal generated by the broadband modem 1333. Further, for example, the RF module 1334 generates a baseband signal by performing frequency conversion or the like on the RF signal received via the front end module 1314.
  なお、図51において点線1341に示されるように、アプリケーションプロセッサ1331とビデオプロセッサ1332を、一体化し、1つのプロセッサとして構成されるようにしてもよい。 Note that, as indicated by a dotted line 1341 in FIG. 51, the application processor 1331 and the video processor 1332 may be integrated into a single processor.
  外部メモリ1312は、ビデオモジュール1311の外部に設けられた、ビデオモジュール1311により利用される記憶デバイスを有するモジュールである。この外部メモリ1312の記憶デバイスは、どのような物理構成により実現するようにしてもよいが、一般的にフレーム単位の画像データのような大容量のデータの格納に利用されることが多いので、例えばDRAM(Dynamic Random Access Memory)のような比較的安価で大容量の半導体メモリにより実現するのが望ましい。 The external memory 1312 is a module having a storage device that is provided outside the video module 1311 and is used by the video module 1311. The storage device of the external memory 1312 may be realized by any physical configuration, but is generally used for storing a large amount of data such as image data in units of frames. For example, it is desirable to realize it with a relatively inexpensive and large-capacity semiconductor memory such as DRAM (Dynamic Random Access Memory).
  パワーマネージメントモジュール1313は、ビデオモジュール1311(ビデオモジュール1311内の各構成)への電力供給を管理し、制御する。 The power management module 1313 manages and controls power supply to the video module 1311 (each component in the video module 1311).
  フロントエンドモジュール1314は、RFモジュール1334に対してフロントエンド機能(アンテナ側の送受信端の回路)を提供するモジュールである。図51に示されるように、フロントエンドモジュール1314は、例えば、アンテナ部1351、フィルタ1352、および増幅部1353を有する。 The front end module 1314 is a module that provides the RF module 1334 with a front end function (a circuit on a transmitting / receiving end on the antenna side). As illustrated in FIG. 51, the front end module 1314 includes, for example, an antenna unit 1351, a filter 1352, and an amplifying unit 1353.
  アンテナ部1351は、無線信号を送受信するアンテナおよびその周辺の構成を有する。アンテナ部1351は、増幅部1353から供給される信号を無線信号として送信し、受信した無線信号を電気信号(RF信号)としてフィルタ1352に供給する。フィルタ1352は、アンテナ部1351を介して受信されたRF信号に対してフィルタ処理等を行い、処理後のRF信号をRFモジュール1334に供給する。増幅部1353は、RFモジュール1334から供給されるRF信号を増幅し、アンテナ部1351に供給する。 Antenna unit 1351 has an antenna for transmitting and receiving a radio signal and its peripheral configuration. The antenna unit 1351 transmits the signal supplied from the amplification unit 1353 as a radio signal, and supplies the received radio signal to the filter 1352 as an electric signal (RF signal). The filter 1352 performs a filtering process on the RF signal received via the antenna unit 1351 and supplies the processed RF signal to the RF module 1334. The amplifying unit 1353 amplifies the RF signal supplied from the RF module 1334 and supplies the amplified RF signal to the antenna unit 1351.
  コネクティビティ1321は、外部との接続に関する機能を有するモジュールである。コネクティビティ1321の物理構成は、任意である。例えば、コネクティビティ1321は、ブロードバンドモデム1333が対応する通信規格以外の通信機能を有する構成や、外部入出力端子等を有する。 Connectivity 1321 is a module having a function related to connection with the outside. The physical configuration of the connectivity 1321 is arbitrary. For example, the connectivity 1321 has a configuration having a communication function other than the communication standard supported by the broadband modem 1333, an external input / output terminal, and the like.
  例えば、コネクティビティ1321が、Bluetooth(登録商標)、IEEE 802.11(例えばWi-Fi(Wireless Fidelity、登録商標))、NFC(Near Field Communication)、IrDA(InfraRed Data Association)等の無線通信規格に準拠する通信機能を有するモジュールや、その規格に準拠した信号を送受信するアンテナ等を有するようにしてもよい。また、例えば、コネクティビティ1321が、USB(Universal Serial Bus)、HDMI(登録商標)(High-Definition Multimedia Interface)等の有線通信規格に準拠する通信機能を有するモジュールや、その規格に準拠した端子を有するようにしてもよい。さらに、例えば、コネクティビティ1321が、アナログ入出力端子等のその他のデータ(信号)伝送機能等を有するようにしてもよい。 For example, the communication 1321 is compliant with wireless communication standards such as Bluetooth (registered trademark), IEEE 802.11 (for example, Wi-Fi (Wireless Fidelity, registered trademark)), NFC (Near Field Communication), IrDA (InfraRed Data Association), etc. You may make it have a module which has a function, an antenna etc. which transmit / receive the signal based on the standard. Further, for example, the connectivity 1321 has a module having a communication function compliant with a wired communication standard such as USB (Universal Serial Bus), HDMI (registered trademark) (High-Definition Multimedia Interface), or a terminal compliant with the standard. You may do it. Further, for example, the connectivity 1321 may have other data (signal) transmission functions such as analog input / output terminals.
  なお、コネクティビティ1321が、データ(信号)の伝送先のデバイスを含むようにしてもよい。例えば、コネクティビティ1321が、磁気ディスク、光ディスク、光磁気ディスク、または半導体メモリ等の記録媒体に対してデータの読み出しや書き込みを行うドライブ(リムーバブルメディアのドライブだけでなく、ハードディスク、SSD(Solid State Drive)、NAS(Network Attached Storage)等も含む)を有するようにしてもよい。また、コネクティビティ1321が、画像や音声の出力デバイス(モニタやスピーカ等)を有するようにしてもよい。 It should be noted that the connectivity 1321 may include a data (signal) transmission destination device. For example, the drive 1321 reads and writes data to and from a recording medium such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory (not only a removable medium drive, but also a hard disk, SSD (Solid State Drive) NAS (including Network Attached Storage) and the like. In addition, the connectivity 1321 may include an image or audio output device (a monitor, a speaker, or the like).
  カメラ1322は、被写体を撮像し、被写体の画像データを得る機能を有するモジュールである。カメラ1322の撮像により得られた画像データは、例えば、ビデオプロセッサ1332に供給されて符号化される。 The eyelid camera 1322 is a module having a function of capturing an image of a subject and obtaining image data of the subject. Image data obtained by imaging by the camera 1322 is supplied to, for example, a video processor 1332 and encoded.
  センサ1323は、例えば、音声センサ、超音波センサ、光センサ、照度センサ、赤外線センサ、イメージセンサ、回転センサ、角度センサ、角速度センサ、速度センサ、加速度センサ、傾斜センサ、磁気識別センサ、衝撃センサ、温度センサ等、任意のセンサ機能を有するモジュールである。センサ1323により検出されたデータは、例えば、アプリケーションプロセッサ1331に供給されてアプリケーション等により利用される。 The sensor 1323 includes, for example, a voice sensor, an ultrasonic sensor, an optical sensor, an illuminance sensor, an infrared sensor, an image sensor, a rotation sensor, an angle sensor, an angular velocity sensor, a velocity sensor, an acceleration sensor, an inclination sensor, a magnetic identification sensor, an impact sensor, It is a module having an arbitrary sensor function such as a temperature sensor. For example, the data detected by the sensor 1323 is supplied to the application processor 1331 and used by an application or the like.
  以上においてモジュールとして説明した構成をプロセッサとして実現するようにしてもよいし、逆にプロセッサとして説明した構成をモジュールとして実現するようにしてもよい。 The configuration described above as a module may be realized as a processor, or conversely, the configuration described as a processor may be realized as a module.
  以上のような構成のビデオセット1300において、後述するようにビデオプロセッサ1332に本技術を適用することができる。したがって、ビデオセット1300は、本技術を適用したセットとして実施することができる。 In the video set 1300 configured as described above, the present technology can be applied to the video processor 1332 as described later. Therefore, the video set 1300 can be implemented as a set to which the present technology is applied.
 (ビデオプロセッサの構成例)
  図52は、本技術を適用したビデオプロセッサ1332(図51)の概略的な構成の一例を示している。
(Video processor configuration example)
FIG. 52 shows an example of a schematic configuration of a video processor 1332 (FIG. 51) to which the present technology is applied.
  図52の例の場合、ビデオプロセッサ1332は、ビデオ信号およびオーディオ信号の入力を受けてこれらを所定の方式で符号化する機能と、符号化されたビデオデータおよびオーディオデータを復号し、ビデオ信号およびオーディオ信号を再生出力する機能とを有する。 In the case of the example of FIG. 52, the video processor 1332 receives the video signal and the audio signal and encodes them in a predetermined method, decodes the encoded video data and audio data, A function of reproducing and outputting an audio signal.
  図52に示されるように、ビデオプロセッサ1332は、ビデオ入力処理部1401、第1画像拡大縮小部1402、第2画像拡大縮小部1403、ビデオ出力処理部1404、フレームメモリ1405、およびメモリ制御部1406を有する。また、ビデオプロセッサ1332は、エンコード・デコードエンジン1407、ビデオES(Elementary Stream)バッファ1408Aおよび1408B、並びに、オーディオESバッファ1409Aおよび1409Bを有する。さらに、ビデオプロセッサ1332は、オーディオエンコーダ1410、オーディオデコーダ1411、多重化部(MUX(Multiplexer))1412、逆多重化部(DMUX(Demultiplexer))1413、およびストリームバッファ1414を有する。 As shown in FIG. 52, the video processor 1332 includes a video input processing unit 1401, a first image enlargement / reduction unit 1402, a second image enlargement / reduction unit 1403, a video output processing unit 1404, a frame memory 1405, and a memory control unit 1406. Have The video processor 1332 includes an encoding / decoding engine 1407, video ES (ElementaryElementStream) buffers 1408A and 1408B, and audio ES buffers 1409A and 1409B. Further, the video processor 1332 includes an audio encoder 1410, an audio decoder 1411, a multiplexing unit (MUX (Multiplexer)) 1412, a demultiplexing unit (DMUX (Demultiplexer)) 1413, and a stream buffer 1414.
  ビデオ入力処理部1401は、例えばコネクティビティ1321(図51)等から入力されたビデオ信号を取得し、デジタル画像データに変換する。第1画像拡大縮小部1402は、画像データに対してフォーマット変換や画像の拡大縮小処理等を行う。第2画像拡大縮小部1403は、画像データに対して、ビデオ出力処理部1404を介して出力する先でのフォーマットに応じて画像の拡大縮小処理を行ったり、第1画像拡大縮小部1402と同様のフォーマット変換や画像の拡大縮小処理等を行ったりする。ビデオ出力処理部1404は、画像データに対して、フォーマット変換やアナログ信号への変換等を行って、再生されたビデオ信号として例えばコネクティビティ1321(図51)等に出力する。 The video input processing unit 1401 acquires a video signal input from, for example, the connectivity 1321 (FIG. 51) and converts it into digital image data. The first image enlargement / reduction unit 1402 performs format conversion, image enlargement / reduction processing, and the like on the image data. The second image enlargement / reduction unit 1403 performs image enlargement / reduction processing on the image data in accordance with the format of the output destination via the video output processing unit 1404, or is the same as the first image enlargement / reduction unit 1402. Format conversion and image enlargement / reduction processing. The video output processing unit 1404 performs format conversion, conversion to an analog signal, and the like on the image data, and outputs the reproduced video signal to, for example, the connectivity 1321 (FIG. 51).
  フレームメモリ1405は、ビデオ入力処理部1401、第1画像拡大縮小部1402、第2画像拡大縮小部1403、ビデオ出力処理部1404、およびエンコード・デコードエンジン1407によって共用される画像データ用のメモリである。フレームメモリ1405は、例えばDRAM等の半導体メモリとして実現される。 The frame memory 1405 is a memory for image data shared by the video input processing unit 1401, the first image scaling unit 1402, the second image scaling unit 1403, the video output processing unit 1404, and the encoding / decoding engine 1407. . The frame memory 1405 is realized as a semiconductor memory such as a DRAM, for example.
  メモリ制御部1406は、エンコード・デコードエンジン1407からの同期信号を受けて、アクセス管理テーブル1406Aに書き込まれたフレームメモリ1405へのアクセススケジュールに従ってフレームメモリ1405に対する書き込み・読み出しのアクセスを制御する。アクセス管理テーブル1406Aは、エンコード・デコードエンジン1407、第1画像拡大縮小部1402、第2画像拡大縮小部1403等で実行される処理に応じて、メモリ制御部1406により更新される。 The memory control unit 1406 receives the synchronization signal from the encoding / decoding engine 1407, and controls the writing / reading access to the frame memory 1405 according to the access schedule to the frame memory 1405 written in the access management table 1406A. The access management table 1406A is updated by the memory control unit 1406 in accordance with processing executed by the encoding / decoding engine 1407, the first image enlargement / reduction unit 1402, the second image enlargement / reduction unit 1403, and the like.
  エンコード・デコードエンジン1407は、画像データのエンコード処理、並びに、画像データが符号化されたデータであるビデオストリームのデコード処理を行う。例えば、エンコード・デコードエンジン1407は、フレームメモリ1405から読み出した画像データを符号化し、ビデオストリームとしてビデオESバッファ1408Aに順次書き込む。また、例えば、ビデオESバッファ1408Bからビデオストリームを順次読み出して復号し、画像データとしてフレームメモリ1405に順次書き込む。エンコード・デコードエンジン1407は、これらの符号化や復号において、フレームメモリ1405を作業領域として使用する。また、エンコード・デコードエンジン1407は、例えばマクロブロック毎の処理を開始するタイミングで、メモリ制御部1406に対して同期信号を出力する。 The encoding / decoding engine 1407 performs encoding processing of image data and decoding processing of a video stream that is data obtained by encoding the image data. For example, the encoding / decoding engine 1407 encodes the image data read from the frame memory 1405 and sequentially writes the data as a video stream in the video ES buffer 1408A. Further, for example, the video stream is sequentially read from the video ES buffer 1408B, decoded, and sequentially written in the frame memory 1405 as image data. The encoding / decoding engine 1407 uses the frame memory 1405 as a work area in the encoding and decoding. Also, the encoding / decoding engine 1407 outputs a synchronization signal to the memory control unit 1406, for example, at a timing at which processing for each macroblock is started.
  ビデオESバッファ1408Aは、エンコード・デコードエンジン1407によって生成されたビデオストリームをバッファリングして、多重化部(MUX)1412に供給する。ビデオESバッファ1408Bは、逆多重化部(DMUX)1413から供給されたビデオストリームをバッファリングして、エンコード・デコードエンジン1407に供給する。 The video ES buffer 1408A buffers the video stream generated by the encoding / decoding engine 1407 and supplies the buffered video stream to the multiplexing unit (MUX) 1412. The video ES buffer 1408B buffers the video stream supplied from the demultiplexer (DMUX) 1413 and supplies the buffered video stream to the encoding / decoding engine 1407.
  オーディオESバッファ1409Aは、オーディオエンコーダ1410によって生成されたオーディオストリームをバッファリングして、多重化部(MUX)1412に供給する。オーディオESバッファ1409Bは、逆多重化部(DMUX)1413から供給されたオーディオストリームをバッファリングして、オーディオデコーダ1411に供給する。 The audio ES buffer 1409A buffers the audio stream generated by the audio encoder 1410 and supplies the buffered audio stream to the multiplexing unit (MUX) 1412. The audio ES buffer 1409B buffers the audio stream supplied from the demultiplexer (DMUX) 1413 and supplies the buffered audio stream to the audio decoder 1411.
  オーディオエンコーダ1410は、例えばコネクティビティ1321(図51)等から入力されたオーディオ信号を例えばデジタル変換し、例えばMPEGオーディオ方式やAC3(AudioCode number 3)方式等の所定の方式で符号化する。オーディオエンコーダ1410は、オーディオ信号が符号化されたデータであるオーディオストリームをオーディオESバッファ1409Aに順次書き込む。オーディオデコーダ1411は、オーディオESバッファ1409Bから供給されたオーディオストリームを復号し、例えばアナログ信号への変換等を行って、再生されたオーディオ信号として例えばコネクティビティ1321(図51)等に供給する。 The audio encoder 1410 converts, for example, an audio signal input from the connectivity 1321 (FIG. 51), for example, into a digital format, and encodes the audio signal using a predetermined method such as an MPEG audio method or an AC3 (Audio Code number 3) method. The audio encoder 1410 sequentially writes an audio stream, which is data obtained by encoding an audio signal, in the audio ES buffer 1409A. The audio decoder 1411 decodes the audio stream supplied from the audio ES buffer 1409B, performs conversion to, for example, an analog signal, and supplies the reproduced audio signal to, for example, the connectivity 1321 (FIG. 51).
  多重化部(MUX)1412は、ビデオストリームとオーディオストリームとを多重化する。この多重化の方法(すなわち、多重化により生成されるビットストリームのフォーマット)は任意である。また、この多重化の際に、多重化部(MUX)1412は、所定のヘッダ情報等をビットストリームに付加することもできる。つまり、多重化部(MUX)1412は、多重化によりストリームのフォーマットを変換することができる。例えば、多重化部(MUX)1412は、ビデオストリームとオーディオストリームとを多重化することにより、転送用のフォーマットのビットストリームであるトランスポートストリームに変換する。また、例えば、多重化部(MUX)1412は、ビデオストリームとオーディオストリームとを多重化することにより、記録用のファイルフォーマットのデータ(ファイルデータ)に変換する。 Multiplexer (MUX) 1412 multiplexes the video stream and the audio stream. The multiplexing method (that is, the format of the bit stream generated by multiplexing) is arbitrary. At the time of this multiplexing, the multiplexing unit (MUX) 1412 can also add predetermined header information or the like to the bit stream. That is, the multiplexing unit (MUX) 1412 can convert the stream format by multiplexing. For example, the multiplexing unit (MUX) 1412 multiplexes the video stream and the audio stream to convert it into a transport stream that is a bit stream in a transfer format. Further, for example, the multiplexing unit (MUX) 1412 multiplexes the video stream and the audio stream, thereby converting the data into file format data (file data) for recording.
  逆多重化部(DMUX)1413は、多重化部(MUX)1412による多重化に対応する方法で、ビデオストリームとオーディオストリームとが多重化されたビットストリームを逆多重化する。つまり、逆多重化部(DMUX)1413は、ストリームバッファ1414から読み出されたビットストリームからビデオストリームとオーディオストリームとを抽出する(ビデオストリームとオーディオストリームとを分離する)。つまり、逆多重化部(DMUX)1413は、逆多重化によりストリームのフォーマットを変換(多重化部(MUX)1412による変換の逆変換)することができる。例えば、逆多重化部(DMUX)1413は、例えばコネクティビティ1321やブロードバンドモデム1333等(いずれも図51)から供給されたトランスポートストリームを、ストリームバッファ1414を介して取得し、逆多重化することにより、ビデオストリームとオーディオストリームとに変換することができる。また、例えば、逆多重化部(DMUX)1413は、例えばコネクティビティ1321により(図51)各種記録媒体から読み出されたファイルデータを、ストリームバッファ1414を介して取得し、逆多重化することにより、ビデオストリームとオーディオストリームとに変換することができる。 The demultiplexing unit (DMUX) 1413 demultiplexes the bit stream in which the video stream and the audio stream are multiplexed by a method corresponding to the multiplexing by the multiplexing unit (MUX) 1412. That is, the demultiplexer (DMUX) 1413 extracts the video stream and the audio stream from the bit stream read from the stream buffer 1414 (separates the video stream and the audio stream). That is, the demultiplexer (DMUX) 1413 can convert the stream format by demultiplexing (inverse conversion of the conversion by the multiplexer (MUX) 1412). For example, the demultiplexing unit (DMUX) 1413 obtains a transport stream supplied from, for example, the connectivity 1321 and the broadband modem 1333 (both in FIG. 51) via the stream buffer 1414 and demultiplexes the transport stream. Can be converted into a video stream and an audio stream. Further, for example, the demultiplexer (DMUX) 1413 obtains the file data read from various recording media by the connectivity 1321 (FIG. 51) via the stream buffer 1414 and demultiplexes it, for example. It can be converted into a video stream and an audio stream.
  ストリームバッファ1414は、ビットストリームをバッファリングする。例えば、ストリームバッファ1414は、多重化部(MUX)1412から供給されたトランスポートストリームをバッファリングし、所定のタイミングにおいて、若しくは外部からの要求等に基づいて、例えばコネクティビティ1321やブロードバンドモデム1333(いずれも図51)等に供給する。 The stream buffer 1414 buffers the bit stream. For example, the stream buffer 1414 buffers the transport stream supplied from the multiplexing unit (MUX) 1412 and, for example, at the predetermined timing or based on a request from the outside, for example, the connectivity 1321 or the broadband modem 1333 (whichever Are also supplied to FIG.
  また、例えば、ストリームバッファ1414は、多重化部(MUX)1412から供給されたファイルデータをバッファリングし、所定のタイミングにおいて、若しくは外部からの要求等に基づいて、例えばコネクティビティ1321(図51)等に供給し、各種記録媒体に記録させる。 Further, for example, the stream buffer 1414 buffers the file data supplied from the multiplexing unit (MUX) 1412 and, for example, connectivity 1321 (FIG. 51) or the like at a predetermined timing or based on an external request or the like. To be recorded on various recording media.
  さらに、ストリームバッファ1414は、例えばコネクティビティ1321やブロードバンドモデム1333等(いずれも図51)を介して取得したトランスポートストリームをバッファリングし、所定のタイミングにおいて、若しくは外部からの要求等に基づいて、逆多重化部(DMUX)1413に供給する。 Further, the stream buffer 1414 buffers the transport stream acquired through, for example, the connectivity 1321 and the broadband modem 1333 (both of which are shown in FIG. 51), and performs reverse processing at a predetermined timing or based on an external request or the like. The data is supplied to a multiplexing unit (DMUX) 1413.
  また、ストリームバッファ1414は、例えばコネクティビティ1321(図51)等において各種記録媒体から読み出されたファイルデータをバッファリングし、所定のタイミングにおいて、若しくは外部からの要求等に基づいて、逆多重化部(DMUX)1413に供給する。 In addition, the stream buffer 1414 buffers file data read from various recording media in the connectivity 1321 (FIG. 51), for example, and at a predetermined timing or based on an external request or the like, a demultiplexing unit (DMUX) 1413.
  次に、このような構成のビデオプロセッサ1332の動作の例について説明する。例えば、コネクティビティ1321(図51)等からビデオプロセッサ1332に入力されたビデオ信号は、ビデオ入力処理部1401において4:2:2Y/Cb/Cr方式等の所定の方式のデジタル画像データに変換され、フレームメモリ1405に順次書き込まれる。このデジタル画像データは、第1画像拡大縮小部1402または第2画像拡大縮小部1403に読み出されて、4:2:0Y/Cb/Cr方式等の所定の方式へのフォーマット変換および拡大縮小処理が行われ、再びフレームメモリ1405に書き込まれる。この画像データは、エンコード・デコードエンジン1407によって符号化され、ビデオストリームとしてビデオESバッファ1408Aに書き込まれる。 Next, an example of the operation of the video processor 1332 having such a configuration will be described. For example, a video signal input to the video processor 1332 from the connectivity 1321 (FIG. 51) or the like is converted into digital image data of a predetermined format such as 4: 2: 2Y / Cb / Cr format by the video input processing unit 1401. The data is sequentially written into the frame memory 1405. This digital image data is read by the first image enlargement / reduction unit 1402 or the second image enlargement / reduction unit 1403, and format conversion to a predetermined method such as 4: 2: 0Y / Cb / Cr method and enlargement / reduction processing are performed. Is written again in the frame memory 1405. This image data is encoded by the encoding / decoding engine 1407 and written as a video stream in the video ES buffer 1408A.
  また、コネクティビティ1321(図51)等からビデオプロセッサ1332に入力されたオーディオ信号は、オーディオエンコーダ1410によって符号化され、オーディオストリームとして、オーディオESバッファ1409Aに書き込まれる。 In addition, an audio signal input to the video processor 1332 from the connectivity 1321 (FIG. 51) or the like is encoded by the audio encoder 1410 and written as an audio stream in the audio ES buffer 1409A.
  ビデオESバッファ1408Aのビデオストリームと、オーディオESバッファ1409Aのオーディオストリームは、多重化部(MUX)1412に読み出されて多重化され、トランスポートストリーム若しくはファイルデータ等に変換される。多重化部(MUX)1412により生成されたトランスポートストリームは、ストリームバッファ1414にバッファされた後、例えばコネクティビティ1321やブロードバンドモデム1333(いずれも図51)等を介して外部ネットワークに出力される。また、多重化部(MUX)1412により生成されたファイルデータは、ストリームバッファ1414にバッファされた後、例えばコネクティビティ1321(図51)等に出力され、各種記録媒体に記録される。 The video stream of the video ES buffer 1408A and the audio stream of the audio ES buffer 1409A are read and multiplexed by the multiplexing unit (MUX) 1412 and converted into a transport stream or file data. The transport stream generated by the multiplexing unit (MUX) 1412 is buffered in the stream buffer 1414 and then output to the external network via, for example, the connectivity 1321 and the broadband modem 1333 (both of which are shown in FIG. 51). Further, the file data generated by the multiplexing unit (MUX) 1412 is buffered in the stream buffer 1414, and then output to, for example, the connectivity 1321 (FIG. 51) and recorded on various recording media.
  また、例えばコネクティビティ1321やブロードバンドモデム1333(いずれも図51)等を介して外部ネットワークからビデオプロセッサ1332に入力されたトランスポートストリームは、ストリームバッファ1414にバッファされた後、逆多重化部(DMUX)1413により逆多重化される。また、例えばコネクティビティ1321(図51)等において各種記録媒体から読み出され、ビデオプロセッサ1332に入力されたファイルデータは、ストリームバッファ1414にバッファされた後、逆多重化部(DMUX)1413により逆多重化される。つまり、ビデオプロセッサ1332に入力されたトランスポートストリームまたはファイルデータは、逆多重化部(DMUX)1413によりビデオストリームとオーディオストリームとに分離される。 For example, a transport stream input from an external network to the video processor 1332 via the connectivity 1321 or the broadband modem 1333 (both in FIG. 51) is buffered in the stream buffer 1414 and then demultiplexed (DMUX). 1413 is demultiplexed. Further, for example, file data read from various recording media in the connectivity 1321 (FIG. 51) and inputted to the video processor 1332 is buffered in the stream buffer 1414 and then demultiplexed by the demultiplexer (DMUX) 1413. It becomes. That is, the transport stream or file data input to the video processor 1332 is separated into a video stream and an audio stream by the demultiplexer (DMUX) 1413.
  オーディオストリームは、オーディオESバッファ1409Bを介してオーディオデコーダ1411に供給され、復号されてオーディオ信号が再生される。また、ビデオストリームは、ビデオESバッファ1408Bに書き込まれた後、エンコード・デコードエンジン1407により順次読み出されて復号されてフレームメモリ1405に書き込まれる。復号された画像データは、第2画像拡大縮小部1403によって拡大縮小処理されて、フレームメモリ1405に書き込まれる。そして、復号された画像データは、ビデオ出力処理部1404に読み出されて、4:2:2Y/Cb/Cr方式等の所定の方式にフォーマット変換され、さらにアナログ信号に変換されて、ビデオ信号が再生出力される。 The audio stream is supplied to the audio decoder 1411 via the audio ES buffer 1409B and decoded to reproduce the audio signal. The video stream is written to the video ES buffer 1408B, and then sequentially read and decoded by the encoding / decoding engine 1407, and written to the frame memory 1405. The decoded image data is enlarged / reduced by the second image enlargement / reduction unit 1403 and written to the frame memory 1405. The decoded image data is read out to the video output processing unit 1404, format-converted to a predetermined system such as 4: 2: 2Y / Cb / Cr system, and further converted into an analog signal to be converted into a video signal. Is played out.
  このように構成されるビデオプロセッサ1332に本技術を適用する場合、エンコード・デコードエンジン1407に、上述した各実施形態に係る本技術を適用すればよい。つまり、例えば、エンコード・デコードエンジン1407が、第1および第2実施の形態に係る符号化装置や復号装置の機能を有するようにすればよい。このようにすることにより、ビデオプロセッサ1332は、図1乃至図700を参照して上述した効果と同様の効果を得ることができる。 場合 When the present technology is applied to the video processor 1332 configured as described above, the present technology according to each embodiment described above may be applied to the encoding / decoding engine 1407. That is, for example, the encoding / decoding engine 1407 may have the functions of the encoding device and the decoding device according to the first and second embodiments. In this way, the video processor 1332 can obtain the same effects as those described above with reference to FIGS.
  なお、エンコード・デコードエンジン1407において、本技術(すなわち、上述した各実施形態に係る画像符号化装置や画像復号装置の機能)は、論理回路等のハードウエアにより実現するようにしてもよいし、組み込みプログラム等のソフトウエアにより実現するようにしてもよいし、それらの両方により実現するようにしてもよい。 In the encoding / decoding engine 1407, the present technology (that is, the functions of the image encoding device and the image decoding device according to each embodiment described above) may be realized by hardware such as a logic circuit. It may be realized by software such as an embedded program, or may be realized by both of them.
 (ビデオプロセッサの他の構成例)
  図53は、本技術を適用したビデオプロセッサ1332(図51)の概略的な構成の他の例を示している。図53の例の場合、ビデオプロセッサ1332は、ビデオデータを所定の方式で符号化・復号する機能を有する。
(Another configuration example of the video processor)
FIG. 53 illustrates another example of a schematic configuration of the video processor 1332 (FIG. 51) to which the present technology is applied. In the case of the example in FIG. 53, the video processor 1332 has a function of encoding and decoding video data by a predetermined method.
  より具体的には、図53に示されるように、ビデオプロセッサ1332は、制御部1511、ディスプレイインタフェース1512、ディスプレイエンジン1513、画像処理エンジン1514、および内部メモリ1515を有する。また、ビデオプロセッサ1332は、コーデックエンジン1516、メモリインタフェース1517、多重化・逆多重化部(MUX DMUX)1518、ネットワークインタフェース1519、およびビデオインタフェース1520を有する。 More specifically, as illustrated in FIG. 53, the video processor 1332 includes a control unit 1511, a display interface 1512, a display engine 1513, an image processing engine 1514, and an internal memory 1515. The video processor 1332 includes a codec engine 1516, a memory interface 1517, a multiplexing / demultiplexing unit (MUX DMUX) 1518, a network interface 1519, and a video interface 1520.
  制御部1511は、ディスプレイインタフェース1512、ディスプレイエンジン1513、画像処理エンジン1514、およびコーデックエンジン1516等、ビデオプロセッサ1332内の各処理部の動作を制御する。 The eyelid control unit 1511 controls the operation of each processing unit in the video processor 1332 such as the display interface 1512, the display engine 1513, the image processing engine 1514, and the codec engine 1516.
  図53に示されるように、制御部1511は、例えば、メインCPU1531、サブCPU1532、およびシステムコントローラ1533を有する。メインCPU1531は、ビデオプロセッサ1332内の各処理部の動作を制御するためのプログラム等を実行する。メインCPU1531は、そのプログラム等に従って制御信号を生成し、各処理部に供給する(つまり、各処理部の動作を制御する)。サブCPU1532は、メインCPU1531の補助的な役割を果たす。例えば、サブCPU1532は、メインCPU1531が実行するプログラム等の子プロセスやサブルーチン等を実行する。システムコントローラ1533は、メインCPU1531およびサブCPU1532が実行するプログラムを指定する等、メインCPU1531およびサブCPU1532の動作を制御する。 As shown in FIG. 53, the control unit 1511 includes, for example, a main CPU 1531, a sub CPU 1532, and a system controller 1533. The main CPU 1531 executes a program and the like for controlling the operation of each processing unit in the video processor 1332. The main CPU 1531 generates a control signal according to the program and supplies it to each processing unit (that is, controls the operation of each processing unit). The sub CPU 1532 plays an auxiliary role of the main CPU 1531. For example, the sub CPU 1532 executes a child process such as a program executed by the main CPU 1531, a subroutine, or the like. The system controller 1533 controls operations of the main CPU 1531 and the sub CPU 1532 such as designating a program to be executed by the main CPU 1531 and the sub CPU 1532.
  ディスプレイインタフェース1512は、制御部1511の制御の下、画像データを例えばコネクティビティ1321(図51)等に出力する。例えば、ディスプレイインタフェース1512は、デジタルデータの画像データをアナログ信号に変換し、再生されたビデオ信号として、またはデジタルデータの画像データのまま、コネクティビティ1321(図51)のモニタ装置等に出力する。 The display interface 1512 outputs image data to, for example, the connectivity 1321 (FIG. 51) or the like under the control of the control unit 1511. For example, the display interface 1512 converts the digital data image data into an analog signal, and outputs it to the monitor device of the connectivity 1321 (FIG. 51) as a reproduced video signal or as the digital data image data.
  ディスプレイエンジン1513は、制御部1511の制御の下、画像データに対して、その画像を表示させるモニタ装置等のハードウエアスペックに合わせるように、フォーマット変換、サイズ変換、色域変換等の各種変換処理を行う。 Under the control of the control unit 1511, the display engine 1513 performs various conversion processes such as format conversion, size conversion, color gamut conversion, and the like so as to match the image data with hardware specifications such as a monitor device that displays the image. I do.
  画像処理エンジン1514は、制御部1511の制御の下、画像データに対して、例えば画質改善のためのフィルタ処理等、所定の画像処理を施す。 The eyelid image processing engine 1514 performs predetermined image processing such as filter processing for improving image quality on the image data under the control of the control unit 1511.
  内部メモリ1515は、ディスプレイエンジン1513、画像処理エンジン1514、およびコーデックエンジン1516により共用される、ビデオプロセッサ1332の内部に設けられたメモリである。内部メモリ1515は、例えば、ディスプレイエンジン1513、画像処理エンジン1514、およびコーデックエンジン1516の間で行われるデータの授受に利用される。例えば、内部メモリ1515は、ディスプレイエンジン1513、画像処理エンジン1514、またはコーデックエンジン1516から供給されるデータを格納し、必要に応じて(例えば、要求に応じて)、そのデータを、ディスプレイエンジン1513、画像処理エンジン1514、またはコーデックエンジン1516に供給する。この内部メモリ1515は、どのような記憶デバイスにより実現するようにしてもよいが、一般的にブロック単位の画像データやパラメータ等といった小容量のデータの格納に利用することが多いので、例えばSRAM(Static Random Access Memory)のような比較的(例えば外部メモリ1312と比較して)小容量だが応答速度が高速な半導体メモリにより実現するのが望ましい。 The internal memory 1515 is a memory provided inside the video processor 1332 that is shared by the display engine 1513, the image processing engine 1514, and the codec engine 1516. The internal memory 1515 is used, for example, for data exchange performed between the display engine 1513, the image processing engine 1514, and the codec engine 1516. For example, the internal memory 1515 stores data supplied from the display engine 1513, the image processing engine 1514, or the codec engine 1516, and stores the data as needed (eg, upon request). This is supplied to the image processing engine 1514 or the codec engine 1516. The internal memory 1515 may be realized by any storage device, but is generally used for storing a small amount of data such as image data or parameters in units of blocks. It is desirable to realize a semiconductor memory having a relatively small capacity but a high response speed (for example, as compared with the external memory 1312) such as “Static Random Access Memory”.
  コーデックエンジン1516は、画像データの符号化や復号に関する処理を行う。このコーデックエンジン1516が対応する符号化・復号の方式は任意であり、その数は1つであってもよいし、複数であってもよい。例えば、コーデックエンジン1516は、複数の符号化・復号方式のコーデック機能を備え、その中から選択されたもので画像データの符号化若しくは符号化データの復号を行うようにしてもよい。 The codec engine 1516 performs processing related to encoding and decoding of image data. The encoding / decoding scheme supported by the codec engine 1516 is arbitrary, and the number thereof may be one or plural. For example, the codec engine 1516 may be provided with codec functions of a plurality of encoding / decoding schemes, and may be configured to perform encoding of image data or decoding of encoded data using one selected from them.
  図53に示される例において、コーデックエンジン1516は、コーデックに関する処理の機能ブロックとして、例えば、MPEG-2 Video1541、AVC/H.2641542、HEVC/H.2651543、HEVC/H.265(Scalable)1544、HEVC/H.265(Multi-view)1545、およびMPEG-DASH1551を有する。 In the example shown in FIG. 53, the codec engine 1516 includes, for example, MPEG-2 video 1541, AVC / H.2641542, HEVC / H.2651543, HEVC / H.265 (Scalable) 1544, as function blocks for processing related to the codec. HEVC / H.265 (Multi-view) 1545 and MPEG-DASH 1551 are included.
  MPEG-2 Video1541は、画像データをMPEG-2方式で符号化したり復号したりする機能ブロックである。AVC/H.2641542は、画像データをAVC方式で符号化したり復号したりする機能ブロックである。HEVC/H.2651543は、画像データをHEVC方式で符号化したり復号したりする機能ブロックである。HEVC/H.265(Scalable)1544は、画像データをHEVC方式でスケーラブル符号化したりスケーラブル復号したりする機能ブロックである。HEVC/H.265(Multi-view)1545は、画像データをHEVC方式で多視点符号化したり多視点復号したりする機能ブロックである。 “MPEG-2” Video 1541 is a functional block that encodes and decodes image data in the MPEG-2 format. AVC / H.2641542 is a functional block that encodes and decodes image data using the AVC method. HEVC / H.2651543 is a functional block that encodes and decodes image data using the HEVC method. HEVC / H.265 (Scalable) 1544 is a functional block that performs scalable encoding and scalable decoding of image data using the HEVC method. HEVC / H.265 (Multi-view) 1545 is a functional block that multi-view encodes or multi-view decodes image data using the HEVC method.
  MPEG-DASH1551は、画像データをMPEG-DASH(MPEG-Dynamic Adaptive Streaming over HTTP)方式で送受信する機能ブロックである。MPEG-DASHは、HTTP(HyperText Transfer Protocol)を使ってビデオのストリーミングを行う技術であり、予め用意された解像度等が互いに異なる複数の符号化データの中から適切なものをセグメント単位で選択し伝送することを特徴の1つとする。MPEG-DASH1551は、規格に準拠するストリームの生成やそのストリームの伝送制御等を行い、画像データの符号化・復号については、上述したMPEG-2 Video1541乃至HEVC/H.265(Multi-view)1545を利用する。 “MPEG-DASH 1551” is a functional block that transmits and receives image data in the MPEG-DASH (MPEG-Dynamic Adaptive Streaming over HTTP) method. MPEG-DASH is a technology for streaming video using HTTP (HyperText Transfer Protocol), and selects and transmits appropriate data from multiple encoded data with different resolutions prepared in advance in segments. This is one of the features. MPEG-DASH 1551 generates a stream compliant with the standard, controls transmission of the stream, and the like. For encoding / decoding of image data, MPEG-2 Video 1541 to HEVC / H.265 (Multi-view) 1545 described above are used. Is used.
  メモリインタフェース1517は、外部メモリ1312用のインタフェースである。画像処理エンジン1514やコーデックエンジン1516から供給されるデータは、メモリインタフェース1517を介して外部メモリ1312に供給される。また、外部メモリ1312から読み出されたデータは、メモリインタフェース1517を介してビデオプロセッサ1332(画像処理エンジン1514若しくはコーデックエンジン1516)に供給される。 The memory interface 1517 is an interface for the external memory 1312. Data supplied from the image processing engine 1514 or the codec engine 1516 is supplied to the external memory 1312 via the memory interface 1517. The data read from the external memory 1312 is supplied to the video processor 1332 (the image processing engine 1514 or the codec engine 1516) via the memory interface 1517.
  多重化・逆多重化部(MUX DMUX)1518は、符号化データのビットストリーム、画像データ、ビデオ信号等、画像に関する各種データの多重化や逆多重化を行う。この多重化・逆多重化の方法は任意である。例えば、多重化の際に、多重化・逆多重化部(MUX DMUX)1518は、複数のデータを1つにまとめるだけでなく、所定のヘッダ情報等をそのデータに付加することもできる。また、逆多重化の際に、多重化・逆多重化部(MUX DMUX)1518は、1つのデータを複数に分割するだけでなく、分割した各データに所定のヘッダ情報等を付加することもできる。つまり、多重化・逆多重化部(MUX DMUX)1518は、多重化・逆多重化によりデータのフォーマットを変換することができる。例えば、多重化・逆多重化部(MUX DMUX)1518は、ビットストリームを多重化することにより、転送用のフォーマットのビットストリームであるトランスポートストリームや、記録用のファイルフォーマットのデータ(ファイルデータ)に変換することができる。もちろん、逆多重化によりその逆変換も可能である。 A multiplexing / demultiplexing unit (MUX DMUX) 1518 multiplexes and demultiplexes various data related to images such as a bit stream of encoded data, image data, and a video signal. This multiplexing / demultiplexing method is arbitrary. For example, at the time of multiplexing, the multiplexing / demultiplexing unit (MUX DMUX) 1518 can not only combine a plurality of data into one but also add predetermined header information or the like to the data. Further, in the demultiplexing, the multiplexing / demultiplexing unit (MUX DMUX) 1518 not only divides one data into a plurality of data but also adds predetermined header information or the like to each divided data. it can. That is, the multiplexing / demultiplexing unit (MUX DMUX) 1518 can convert the data format by multiplexing / demultiplexing. For example, the multiplexing / demultiplexing unit (MUX DMUX) 1518 multiplexes the bitstream, thereby transporting the transport stream, which is a bit stream in a transfer format, or data in a file format for recording (file data). Can be converted to Of course, the inverse transformation is also possible by demultiplexing.
  ネットワークインタフェース1519は、例えばブロードバンドモデム1333やコネクティビティ1321(いずれも図51)等向けのインタフェースである。ビデオインタフェース1520は、例えばコネクティビティ1321やカメラ1322(いずれも図51)等向けのインタフェースである。 The network interface 1519 is an interface for a broadband modem 1333, connectivity 1321 (both in FIG. 51), and the like. The video interface 1520 is an interface for connectivity 1321 and a camera 1322 (both of which are shown in FIG. 51), for example.
  次に、このようなビデオプロセッサ1332の動作の例について説明する。例えば、例えばコネクティビティ1321やブロードバンドモデム1333(いずれも図51)等を介して外部ネットワークからトランスポートストリームを受信すると、そのトランスポートストリームは、ネットワークインタフェース1519を介して多重化・逆多重化部(MUX DMUX)1518に供給されて逆多重化され、コーデックエンジン1516により復号される。コーデックエンジン1516の復号により得られた画像データは、例えば、画像処理エンジン1514により所定の画像処理が施され、ディスプレイエンジン1513により所定の変換が行われ、ディスプレイインタフェース1512を介して例えばコネクティビティ1321(図51)等に供給され、その画像がモニタに表示される。また、例えば、コーデックエンジン1516の復号により得られた画像データは、コーデックエンジン1516により再符号化され、多重化・逆多重化部(MUX DMUX)1518により多重化されてファイルデータに変換され、ビデオインタフェース1520を介して例えばコネクティビティ1321(図51)等に出力され、各種記録媒体に記録される。 Next, an example of the operation of the video processor 1332 will be described. For example, when a transport stream is received from an external network via, for example, the connectivity 1321 or the broadband modem 1333 (both of which are shown in FIG. 51), the transport stream is transmitted to the multiplexing / demultiplexing unit (MUX) via the network interface 1519. DMUX) 1518 is demultiplexed and decoded by the codec engine 1516. For example, the image data obtained by decoding by the codec engine 1516 is subjected to predetermined image processing by the image processing engine 1514, subjected to predetermined conversion by the display engine 1513, and connected to, for example, the connectivity 1321 (see FIG. 51) etc., and the image is displayed on the monitor. Also, for example, image data obtained by decoding by the codec engine 1516 is re-encoded by the codec engine 1516, multiplexed by a multiplexing / demultiplexing unit (MUX DMUX) 1518, converted into file data, and video The data is output to, for example, the connectivity 1321 (FIG. 51) via the interface 1520 and recorded on various recording media.
  さらに、例えば、コネクティビティ1321(図51)等により図示せぬ記録媒体から読み出された、画像データが符号化された符号化データのファイルデータは、ビデオインタフェース1520を介して多重化・逆多重化部(MUX DMUX)1518に供給されて逆多重化され、コーデックエンジン1516により復号される。コーデックエンジン1516の復号により得られた画像データは、画像処理エンジン1514により所定の画像処理が施され、ディスプレイエンジン1513により所定の変換が行われ、ディスプレイインタフェース1512を介して例えばコネクティビティ1321(図51)等に供給され、その画像がモニタに表示される。また、例えば、コーデックエンジン1516の復号により得られた画像データは、コーデックエンジン1516により再符号化され、多重化・逆多重化部(MUX DMUX)1518により多重化されてトランスポートストリームに変換され、ネットワークインタフェース1519を介して例えばコネクティビティ1321やブロードバンドモデム1333(いずれも図51)等に供給され図示せぬ他の装置に伝送される。 Further, for example, encoded data file data obtained by encoding image data read from a recording medium (not shown) by the connectivity 1321 (FIG. 51) is multiplexed / demultiplexed via the video interface 1520. Is supplied to a unit (MUX DMUX) 1518, demultiplexed, and decoded by the codec engine 1516. Image data obtained by decoding by the codec engine 1516 is subjected to predetermined image processing by the image processing engine 1514, subjected to predetermined conversion by the display engine 1513, and, for example, connectivity 1321 (FIG. 51) via the display interface 1512. And the image is displayed on the monitor. Also, for example, image data obtained by decoding by the codec engine 1516 is re-encoded by the codec engine 1516, multiplexed by the multiplexing / demultiplexing unit (MUX DMUX) 1518, and converted into a transport stream, For example, the connectivity 1321 and the broadband modem 1333 (both in FIG. 51) are supplied via the network interface 1519 and transmitted to another device (not shown).
  なお、ビデオプロセッサ1332内の各処理部の間での画像データやその他のデータの授受は、例えば、内部メモリ1515や外部メモリ1312を利用して行われる。また、パワーマネージメントモジュール1313は、例えば制御部1511への電力供給を制御する。 Note that image data and other data are exchanged between the processing units in the video processor 1332 using, for example, the internal memory 1515 and the external memory 1312. The power management module 1313 controls power supply to the control unit 1511, for example.
  このように構成されるビデオプロセッサ1332に本技術を適用する場合、コーデックエンジン1516に、上述した各実施形態に係る本技術を適用すればよい。つまり、例えば、コーデックエンジン1516が、第1および第2実施の形態に係る符号化装置や復号装置を実現する機能ブロックを有するようにすればよい。コーデックエンジン1516が、このようにすることにより、ビデオプロセッサ1332は、図1乃至図700を参照して上述した効果と同様の効果を得ることができる。 場合 When the present technology is applied to the video processor 1332 configured as described above, the present technology according to each of the above-described embodiments may be applied to the codec engine 1516. That is, for example, the codec engine 1516 may have a functional block that realizes the encoding device and the decoding device according to the first and second embodiments. With the codec engine 1516 doing in this way, the video processor 1332 can obtain the same effects as those described above with reference to FIGS.
  なお、コーデックエンジン1516において、本技術(すなわち、上述した各実施形態に係る画像符号化装置や画像復号装置の機能)は、論理回路等のハードウエアにより実現するようにしてもよいし、組み込みプログラム等のソフトウエアにより実現するようにしてもよいし、それらの両方により実現するようにしてもよい。 Note that in the codec engine 1516, the present technology (that is, the functions of the image encoding device and the image decoding device according to each of the above-described embodiments) may be realized by hardware such as a logic circuit or an embedded program. It may be realized by software such as the above, or may be realized by both of them.
  以上にビデオプロセッサ1332の構成を2例示したが、ビデオプロセッサ1332の構成は任意であり、上述した2例以外のものであってもよい。また、このビデオプロセッサ1332は、1つの半導体チップとして構成されるようにしてもよいが、複数の半導体チップとして構成されるようにしてもよい。例えば、複数の半導体を積層する3次元積層LSIとしてもよい。また、複数のLSIにより実現されるようにしてもよい。 Although two examples of the configuration of the video processor 1332 have been described above, the configuration of the video processor 1332 is arbitrary and may be other than the two examples described above. The video processor 1332 may be configured as one semiconductor chip, but may be configured as a plurality of semiconductor chips. For example, a three-dimensional stacked LSI in which a plurality of semiconductors are stacked may be used. Further, it may be realized by a plurality of LSIs.
 (装置への適用例)
  ビデオセット1300は、画像データを処理する各種装置に組み込むことができる。例えば、ビデオセット1300は、テレビジョン装置900(図44)、携帯電話機920(図45)、記録再生装置940(図46)、撮像装置960(図47)等に組み込むことができる。ビデオセット1300を組み込むことにより、その装置は、図1乃至図700を参照して上述した効果と同様の効果を得ることができる。
(Application example for equipment)
Video set 1300 can be incorporated into various devices that process image data. For example, the video set 1300 can be incorporated in the television device 900 (FIG. 44), the mobile phone 920 (FIG. 45), the recording / reproducing device 940 (FIG. 46), the imaging device 960 (FIG. 47), or the like. By incorporating the video set 1300, the apparatus can obtain the same effects as those described above with reference to FIGS.
  また、ビデオセット1300は、例えば、図48のデータ伝送システム1000におけるパーソナルコンピュータ1004、AV機器1005、タブレットデバイス1006、および携帯電話機1007等の端末装置、図49のデータ伝送システム1100における放送局1101および端末装置1102、並びに、図50の撮像システム1200における撮像装置1201およびスケーラブル符号化データ記憶装置1202等にも組み込むことができる。ビデオセット1300を組み込むことにより、その装置は、図1乃至図700を参照して上述した効果と同様の効果を得ることができる。 The video set 1300 includes, for example, terminal devices such as the personal computer 1004, the AV device 1005, the tablet device 1006, and the mobile phone 1007 in the data transmission system 1000 in FIG. 48, the broadcasting station 1101 in the data transmission system 1100 in FIG. It can also be incorporated into the terminal device 1102, the imaging device 1201 in the imaging system 1200 of FIG. 50, the scalable encoded data storage device 1202, and the like. By incorporating the video set 1300, the apparatus can obtain the same effects as those described above with reference to FIGS.
  なお、上述したビデオセット1300の各構成の一部であっても、ビデオプロセッサ1332を含むものであれば、本技術を適用した構成として実施することができる。例えば、ビデオプロセッサ1332のみを本技術を適用したビデオプロセッサとして実施することができる。また、例えば、上述したように点線1341により示されるプロセッサやビデオモジュール1311等を本技術を適用したプロセッサやモジュール等として実施することができる。さらに、例えば、ビデオモジュール1311、外部メモリ1312、パワーマネージメントモジュール1313、およびフロントエンドモジュール1314を組み合わせ、本技術を適用したビデオユニット1361として実施することもできる。いずれの構成の場合であっても、図1乃至図700を参照して上述した効果と同様の効果を得ることができる。 Note that even a part of each configuration of the video set 1300 described above can be implemented as a configuration to which the present technology is applied as long as it includes the video processor 1332. For example, only the video processor 1332 can be implemented as a video processor to which the present technology is applied. Further, for example, as described above, the processor, the video module 1311 and the like indicated by the dotted line 1341 can be implemented as a processor or a module to which the present technology is applied. Furthermore, for example, the video module 1311, the external memory 1312, the power management module 1313, and the front end module 1314 can be combined and implemented as a video unit 1361 to which the present technology is applied. In any case, the same effects as those described above with reference to FIGS. 1 to 700 can be obtained.
  つまり、ビデオプロセッサ1332を含むものであればどのような構成であっても、ビデオセット1300の場合と同様に、画像データを処理する各種装置に組み込むことができる。例えば、ビデオプロセッサ1332、点線1341により示されるプロセッサ、ビデオモジュール1311、または、ビデオユニット1361を、テレビジョン装置900(図44)、携帯電話機920(図45)、記録再生装置940(図46)、撮像装置960(図47)、図48のデータ伝送システム1000におけるパーソナルコンピュータ1004、AV機器1005、タブレットデバイス1006、および携帯電話機1007等の端末装置、図49のデータ伝送システム1100における放送局1101および端末装置1102、並びに、図50の撮像システム1200における撮像装置1201およびスケーラブル符号化データ記憶装置1202等に組み込むことができる。そして、本技術を適用したいずれかの構成を組み込むことにより、その装置は、ビデオセット1300の場合と同様に、図1乃至図700を参照して上述した効果と同様の効果を得ることができる。 That is, any configuration including the video processor 1332 can be incorporated into various devices that process image data, as in the case of the video set 1300. For example, a video processor 1332, a processor indicated by a dotted line 1341, a video module 1311, or a video unit 1361, a television device 900 (FIG. 44), a mobile phone 920 (FIG. 45), a recording / playback device 940 (FIG. 46), Imaging device 960 (FIG. 47), terminal devices such as personal computer 1004, AV device 1005, tablet device 1006, and mobile phone 1007 in data transmission system 1000 in FIG. 48, broadcast station 1101 and terminal in data transmission system 1100 in FIG. It can be incorporated in the apparatus 1102, the imaging apparatus 1201 in the imaging system 1200 of FIG. 50, the scalable encoded data storage apparatus 1202, and the like. Then, by incorporating any configuration to which the present technology is applied, the apparatus can obtain the same effects as those described above with reference to FIGS. 1 to 700 as in the case of the video set 1300. .
 なお、本明細書では、拡大縮小率情報、拡大縮小率対応情報などの各種情報が、符号化データに多重化されて、符号化側から復号側へ伝送される例について説明した。しかしながら、これら情報を伝送する手法はかかる例に限定されない。例えば、これら情報は、符号化データに多重化されることなく、符号化データと関連付けられた別個のデータとして伝送され又は記録されてもよい。ここで、「関連付ける」という用語は、ビットストリームに含まれる画像(スライスやブロックなど、画像の一部であってもよい)と当該画像に対応する情報とを復号時にリンクさせ得るようにすることを意味する。即ち、情報は、符号化データとは別の伝送路上で伝送されてもよい。また、情報は、符号化データとは別の記録媒体(又は同一の記録媒体の別の記録エリア)に記録されてもよい。さらに、情報と符号化データとは、例えば、複数フレーム、1フレーム、又はフレーム内の一部分などの任意の単位で互いに関連付けられてよい。 In the present specification, an example in which various types of information such as enlargement / reduction ratio information and enlargement / reduction ratio correspondence information are multiplexed with encoded data and transmitted from the encoding side to the decoding side has been described. However, the method for transmitting such information is not limited to such an example. For example, these pieces of information may be transmitted or recorded as separate data associated with the encoded data without being multiplexed with the encoded data. Here, the term “associate” means that an image (which may be a part of an image such as a slice or a block) included in the bitstream and information corresponding to the image can be linked at the time of decoding. Means. That is, the information may be transmitted on a transmission path different from the encoded data. The information may be recorded on a recording medium different from the encoded data (or another recording area of the same recording medium). Furthermore, the information and the encoded data may be associated with each other in an arbitrary unit such as a plurality of frames, one frame, or a part of the frame.
 本開示は、MPEG,H.26x等のように、離散コサイン変換等の直交変換と動き補償によって圧縮されたビットストリームを、衛星放送、ケーブルTV、インターネット、携帯電話などのネットワークメディアを介して受信する際、または光、磁気ディスク、フラッシュメモリのような記憶メディア上で処理する際に用いられる符号化装置や復号装置に適用することができる。 This disclosure receives bitstreams compressed by orthogonal transform such as discrete cosine transform and motion compensation, such as MPEG, H.26x, etc., via network media such as satellite broadcasting, cable TV, the Internet, and mobile phones. The present invention can be applied to an encoding device or a decoding device that is used when processing on a storage medium such as an optical, magnetic disk, or flash memory.
 また、本開示は、インター予測処理を行うHEVC方式以外の符号化方式の符号化装置および復号装置に適用することもできる。 In addition, the present disclosure can also be applied to an encoding device and a decoding device of an encoding method other than the HEVC method that performs inter prediction processing.
 また、本明細書において、システムとは、複数の構成要素(装置、モジュール(部品)等)の集合を意味し、すべての構成要素が同一筐体中にあるか否かは問わない。したがって、別個の筐体に収納され、ネットワークを介して接続されている複数の装置、及び、1つの筐体の中に複数のモジュールが収納されている1つの装置は、いずれも、システムである。 In this specification, the system means a set of a plurality of components (devices, modules (parts), etc.), and it does not matter whether all the components are in the same housing. Accordingly, a plurality of devices housed in separate housings and connected via a network and a single device housing a plurality of modules in one housing are all systems. .
 さらに、本明細書に記載された効果はあくまで例示であって限定されるものではなく、他の効果があってもよい。 Furthermore, the effects described in the present specification are merely examples and are not limited, and may have other effects.
 また、本開示の実施の形態は、上述した実施の形態に限定されるものではなく、本開示の要旨を逸脱しない範囲において種々の変更が可能である。 The embodiments of the present disclosure are not limited to the above-described embodiments, and various modifications can be made without departing from the scope of the present disclosure.
 例えば、本開示は、1つの機能をネットワークを介して複数の装置で分担、共同して処理するクラウドコンピューティングの構成をとることができる。 For example, the present disclosure can take a cloud computing configuration in which one function is shared by a plurality of devices via a network and is processed jointly.
 また、上述のフローチャートで説明した各ステップは、1つの装置で実行する他、複数の装置で分担して実行することができる。 Further, each step described in the above flowchart can be executed by one device or can be shared by a plurality of devices.
 さらに、1つのステップに複数の処理が含まれる場合には、その1つのステップに含まれる複数の処理は、1つの装置で実行する他、複数の装置で分担して実行することができる。 Further, when a plurality of processes are included in one step, the plurality of processes included in the one step can be executed by being shared by a plurality of apparatuses in addition to being executed by one apparatus.
 本開示は、以下のような構成もとることができる。 This disclosure can have the following configurations.
 (1)
 インター符号化画像に対する参照画像の拡大または縮小の率を表す拡大縮小率情報に基づいて、前記参照画像を拡大または縮小する拡大縮小部と、
 前記拡大縮小部により拡大または縮小された前記参照画像を用いて予測画像を生成する生成部と、
 前記生成部により生成された前記予測画像を用いて、前記インター符号化画像を復号する復号部と
 を備える復号装置。
 (2)
 前記拡大縮小部は、前記拡大縮小率情報が拡大の率を表す場合、前記参照画像内の1つの画素を、前記予測画像を構成する複数の画素として生成する
 ように構成された
 前記(1)に記載の復号装置。
 (3)
 前記拡大縮小部は、前記拡大縮小率が縮小の率を表す場合、前記参照画像の領域内の1つの画素を、その領域に対応する予測画像の画素として生成する
 ように構成された
 前記(1)または(2)に記載の復号装置。
 (4)
 前記拡大縮小部により拡大または縮小された前記参照画像に対して、ブロック単位でローパスフィルタ処理を施すフィルタ処理部
 をさらに備え、
 前記生成部は、前記フィルタ処理部によりローパスフィルタ処理が施された前記参照画像を用いて前記予測画像を生成する
 前記(1)乃至(3)のいずれかに記載の復号装置。
 (5)
 前記フィルタ処理部は、前記ブロックのサイズが所定のサイズより小さい場合、前記参照画像に対して前記ローパスフィルタ処理を施す
 ように構成された
 前記(4)に記載の復号装置。
 (6)
 前記拡大縮小率情報は、前記インター符号化画像の水平方向と垂直方向について独立して設定される
 ように構成された
 前記(1)乃至(5)のいずれかに記載の復号装置。
 (7)
 前記拡大縮小部は、前記インター符号化画像より符号化順で前の前記参照画像または後の前記参照画像のいずれか一方に対する前記拡大縮小率情報と、前記インター符号化画像並びに前記インター符号化画像より符号化順で前の前記参照画像および後の前記参照画像の時間距離とに基づいて、他方に対する前記拡大縮小率情報を算出する
 ように構成された
 前記(1)乃至(6)のいずれかに記載の復号装置。
 (8)
 前記予測画像のブロックに対応する前記拡大縮小率情報と、そのブロックの周辺のブロックである周辺ブロックに対応する前記拡大縮小率情報との差分と、前記周辺ブロックの前記拡大縮小率情報とに基づいて、前記予測画像のブロックの前記拡大縮小率情報を決定する情報復号部
 をさらに備える
 前記(1)乃至(7)のいずれかに記載の復号装置。
 (9)
 前記インター符号化画像における動きベクトルの符号化モードがマージモードである場合、前記マージモードで動きベクトルが参照される前記予測画像のブロックに対応する拡大縮小率情報を、参照元の前記予測画像のブロックに対応する前記拡大縮小率情報に決定する決定部
 をさらに備える
 前記(1)乃至(8)のいずれかに記載の復号装置。
 (10)
 復号装置が、
 インター符号化画像に対する参照画像の拡大または縮小の率を表す拡大縮小率情報に基づいて、前記参照画像を拡大または縮小する拡大縮小ステップと、
 前記拡大縮小ステップの処理により拡大または縮小された前記参照画像を用いて予測画像を生成する生成ステップと、
 前記生成ステップの処理により生成された前記予測画像を用いて、前記インター符号化画像を復号する復号ステップと
 を含む復号方法。
 (11)
 符号化対象の画像に対する参照画像の拡大または縮小の率を表す拡大縮小率情報に基づいて、前記参照画像を拡大または縮小する拡大縮小部と、
 前記拡大縮小部により拡大または縮小された前記参照画像を用いて予測画像を生成する生成部と、
 前記生成部により生成された前記予測画像を用いて、前記符号化対象の画像を符号化し、符号化データを生成する符号化部と、
 前記符号化部により生成された前記符号化データと前記拡大縮小率情報とを伝送する伝送部と
 を備える符号化装置。
 (12)
 前記伝送部は、前記符号化対象の画像より符号化順で前の前記参照画像または後の前記参照画像のいずれか一方に対する前記拡大縮小率情報のみを伝送する
 ように構成された
 前記(11)に記載の符号化装置。
 (13)
 前記予測画像のブロックに対応する前記拡大縮小率情報と、そのブロックの周辺のブロックである周辺ブロックに対応する前記拡大縮小率情報との差分を算出する情報符号化部
 をさらに備え、
 前記伝送部は、前記情報符号化部により算出された前記拡大縮小率情報の差分を伝送する
 ように構成された
 前記(11)または(12)に記載の符号化装置。
 (14)
 前記符号化対象の画像における動きベクトルの符号化モードがマージモードである場合、前記マージモードで動きベクトルが参照される前記予測画像のブロックに対応する拡大縮小率情報を、参照元の前記予測画像のブロックに対応する前記拡大縮小率情報に決定する決定部
 をさらに備え、
 前記伝送部は、前記動きベクトルの符号化モードがマージモード以外である場合、前記拡大縮小率情報を伝送する
 前記(11)乃至(13)のいずれかに記載の符号化装置。
 (15)
 符号化装置が、
 符号化対象の画像に対する参照画像の拡大または縮小の率を表す拡大縮小率情報に基づいて、前記参照画像を拡大または縮小する拡大縮小ステップと、
 前記拡大縮小ステップの処理により拡大または縮小された前記参照画像を用いて予測画像を生成する生成ステップと、
 前記生成ステップの処理により生成された前記予測画像を用いて、前記符号化対象の画像を符号化し、符号化データを生成する符号化ステップと、
 前記符号化ステップの処理により生成された前記符号化データと前記拡大縮小率情報とを伝送する伝送ステップと
 を含む符号化方法。
(1)
An enlargement / reduction unit that enlarges or reduces the reference image based on enlargement / reduction rate information indicating a rate of enlargement or reduction of the reference image with respect to the inter-coded image;
A generation unit that generates a predicted image using the reference image enlarged or reduced by the enlargement / reduction unit;
A decoding device comprising: a decoding unit that decodes the inter-coded image using the prediction image generated by the generation unit.
(2)
The enlargement / reduction unit is configured to generate one pixel in the reference image as a plurality of pixels constituting the predicted image when the enlargement / reduction ratio information represents an enlargement ratio. (1) The decoding device according to 1.
(3)
The enlargement / reduction unit is configured to generate one pixel in a region of the reference image as a pixel of a predicted image corresponding to the region when the enlargement / reduction rate represents a reduction rate. ) Or (2).
(4)
A filter processing unit that performs low pass filter processing on a block-by-block basis for the reference image enlarged or reduced by the enlargement / reduction unit;
The decoding device according to any one of (1) to (3), wherein the generation unit generates the prediction image using the reference image subjected to low-pass filter processing by the filter processing unit.
(5)
The decoding device according to (4), wherein the filter processing unit is configured to perform the low-pass filter processing on the reference image when a size of the block is smaller than a predetermined size.
(6)
The decoding device according to any one of (1) to (5), wherein the enlargement / reduction ratio information is configured to be set independently in a horizontal direction and a vertical direction of the inter-coded image.
(7)
The enlargement / reduction unit includes the enlargement / reduction ratio information for either the reference image before or after the inter-encoded image in the encoding order, the inter-encoded image, and the inter-encoded image. Any one of (1) to (6) configured to calculate the enlargement / reduction ratio information for the other based on the time distance between the previous reference image and the subsequent reference image in the encoding order. The decoding device according to 1.
(8)
Based on the difference between the enlargement / reduction rate information corresponding to the block of the predicted image and the enlargement / reduction rate information corresponding to the peripheral block that is a block around the block, and the enlargement / reduction rate information of the peripheral block The decoding device according to any one of (1) to (7), further including: an information decoding unit that determines the enlargement / reduction ratio information of the block of the predicted image.
(9)
When the motion vector encoding mode in the inter-encoded image is the merge mode, the enlargement / reduction rate information corresponding to the block of the predicted image to which the motion vector is referenced in the merge mode is displayed. The decoding device according to any one of (1) to (8), further including: a determination unit that determines the enlargement / reduction ratio information corresponding to a block.
(10)
The decryption device
An enlargement / reduction step for enlarging or reducing the reference image based on enlargement / reduction ratio information indicating a rate of enlargement or reduction of the reference image with respect to the inter-coded image;
Generating a predicted image using the reference image enlarged or reduced by the process of the enlargement / reduction step;
And a decoding step of decoding the inter-coded image using the prediction image generated by the processing of the generation step.
(11)
An enlargement / reduction unit that enlarges or reduces the reference image based on enlargement / reduction rate information indicating a rate of enlargement / reduction of the reference image with respect to the encoding target image;
A generation unit that generates a predicted image using the reference image enlarged or reduced by the enlargement / reduction unit;
An encoding unit that encodes the image to be encoded using the predicted image generated by the generation unit and generates encoded data;
An encoding apparatus comprising: a transmission unit that transmits the encoded data generated by the encoding unit and the enlargement / reduction ratio information.
(12)
The transmission unit is configured to transmit only the enlargement / reduction ratio information for either the reference image before or the reference image after the reference image in the encoding order from the image to be encoded (11) The encoding device described in 1.
(13)
An information encoding unit that calculates a difference between the enlargement / reduction rate information corresponding to the block of the predicted image and the enlargement / reduction rate information corresponding to a peripheral block that is a peripheral block of the block;
The encoding device according to (11) or (12), wherein the transmission unit is configured to transmit a difference between the enlargement / reduction rate information calculated by the information encoding unit.
(14)
When the motion vector encoding mode in the encoding target image is the merge mode, the enlargement / reduction rate information corresponding to the block of the prediction image to which the motion vector is referred in the merge mode is used as the reference source prediction image. A determination unit for determining the enlargement / reduction ratio information corresponding to the block of
The encoding device according to any one of (11) to (13), wherein the transmission unit transmits the enlargement / reduction rate information when an encoding mode of the motion vector is other than a merge mode.
(15)
The encoding device
An enlargement / reduction step for enlarging or reducing the reference image based on enlargement / reduction rate information indicating a rate of enlargement or reduction of the reference image with respect to the image to be encoded;
Generating a predicted image using the reference image enlarged or reduced by the process of the enlargement / reduction step;
Using the predicted image generated by the processing of the generating step, the encoding step of encoding the image to be encoded and generating encoded data;
An encoding method comprising: a transmission step of transmitting the encoded data generated by the processing of the encoding step and the enlargement / reduction ratio information.
 10 符号化装置, 13 伝送部, 33 演算部, 82 参照画像バッファ, 83 ローパスフィルタ, 84 生成部, 110 復号装置, 135 加算部, 145 情報復号部, 162 参照画像バッファ, 163 ローパスフィルタ, 164 生成部 10 encoding device, 13 transmission unit, 33 operation unit, 82 reference image buffer, 83 low pass filter, 84 generation unit, 84 decoding unit, 110 decoding unit, 135 addition unit, 145 information decoding unit, 162 reference image buffer, 163 low pass filter, 164 generation Part

Claims (15)

  1.  インター符号化画像に対する参照画像の拡大または縮小の率を表す拡大縮小率情報に基づいて、前記参照画像を拡大または縮小する拡大縮小部と、
     前記拡大縮小部により拡大または縮小された前記参照画像を用いて予測画像を生成する生成部と、
     前記生成部により生成された前記予測画像を用いて、前記インター符号化画像を復号する復号部と
     を備える復号装置。
    An enlargement / reduction unit that enlarges or reduces the reference image based on enlargement / reduction rate information indicating a rate of enlargement or reduction of the reference image with respect to the inter-coded image;
    A generation unit that generates a predicted image using the reference image enlarged or reduced by the enlargement / reduction unit;
    A decoding device comprising: a decoding unit that decodes the inter-coded image using the prediction image generated by the generation unit.
  2.  前記拡大縮小部は、前記拡大縮小率情報が拡大の率を表す場合、前記参照画像内の1つの画素を、前記予測画像を構成する複数の画素として生成する
     ように構成された
     請求項1に記載の復号装置。
    The scaling unit is configured to generate one pixel in the reference image as a plurality of pixels constituting the predicted image when the scaling factor information represents a scaling factor. The decoding device described.
  3.  前記拡大縮小部は、前記拡大縮小率情報が縮小の率を表す場合、前記参照画像の領域内の1つの画素を、その領域に対応する予測画像の画素として生成する
     ように構成された
     請求項1に記載の復号装置。
    The scaling unit is configured to generate one pixel in a region of the reference image as a pixel of a predicted image corresponding to the region when the scaling factor information represents a reduction rate. The decoding device according to 1.
  4.  前記拡大縮小部により拡大または縮小された前記参照画像に対して、ブロック単位でローパスフィルタ処理を施すフィルタ処理部
     をさらに備え、
     前記生成部は、前記フィルタ処理部によりローパスフィルタ処理が施された前記参照画像を用いて前記予測画像を生成する
     請求項1に記載の復号装置。
    A filter processing unit that performs low pass filter processing on a block-by-block basis for the reference image enlarged or reduced by the enlargement / reduction unit;
    The decoding device according to claim 1, wherein the generation unit generates the predicted image using the reference image that has been subjected to low-pass filter processing by the filter processing unit.
  5.  前記フィルタ処理部は、前記ブロックのサイズが所定のサイズより小さい場合、前記参照画像に対して前記ローパスフィルタ処理を施す
     ように構成された
     請求項4に記載の復号装置。
    The decoding device according to claim 4, wherein the filter processing unit is configured to perform the low-pass filter processing on the reference image when a size of the block is smaller than a predetermined size.
  6.  前記拡大縮小率情報は、前記インター符号化画像の水平方向と垂直方向について独立して設定される
     ように構成された
     請求項1に記載の復号装置。
    The decoding apparatus according to claim 1, wherein the enlargement / reduction ratio information is configured to be set independently in a horizontal direction and a vertical direction of the inter-coded image.
  7.  前記拡大縮小部は、前記インター符号化画像より符号化順で前の前記参照画像または後の前記参照画像のいずれか一方に対する前記拡大縮小率情報と、前記インター符号化画像並びに前記インター符号化画像より符号化順で前の前記参照画像および後の前記参照画像の時間距離とに基づいて、他方に対する前記拡大縮小率情報を算出する
     ように構成された
     請求項1に記載の復号装置。
    The enlargement / reduction unit includes the enlargement / reduction ratio information for either the reference image before or after the inter-encoded image in the encoding order, the inter-encoded image, and the inter-encoded image. The decoding device according to claim 1, further configured to calculate the enlargement / reduction ratio information for the other based on the time distance between the previous reference image and the subsequent reference image in the encoding order.
  8.  前記予測画像のブロックに対応する前記拡大縮小率情報と、そのブロックの周辺のブロックである周辺ブロックに対応する前記拡大縮小率情報との差分と、前記周辺ブロックの前記拡大縮小率情報とに基づいて、前記予測画像のブロックの前記拡大縮小率情報を決定する情報復号部
     をさらに備える
     請求項1に記載の復号装置。
    Based on the difference between the enlargement / reduction rate information corresponding to the block of the predicted image and the enlargement / reduction rate information corresponding to the peripheral block that is a block around the block, and the enlargement / reduction rate information of the peripheral block The decoding apparatus according to claim 1, further comprising: an information decoding unit that determines the enlargement / reduction ratio information of the block of the predicted image.
  9.  前記インター符号化画像における動きベクトルの符号化モードがマージモードである場合、前記マージモードで動きベクトルが参照される前記予測画像のブロックに対応する拡大縮小率情報を、参照元の前記予測画像のブロックに対応する前記拡大縮小率情報に決定する決定部
     をさらに備える
     請求項1に記載の復号装置。
    When the motion vector encoding mode in the inter-encoded image is the merge mode, the enlargement / reduction rate information corresponding to the block of the predicted image to which the motion vector is referenced in the merge mode is displayed. The decoding device according to claim 1, further comprising: a determination unit that determines the enlargement / reduction ratio information corresponding to a block.
  10.  復号装置が、
     インター符号化画像に対する参照画像の拡大または縮小の率を表す拡大縮小率情報に基づいて、前記参照画像を拡大または縮小する拡大縮小ステップと、
     前記拡大縮小ステップの処理により拡大または縮小された前記参照画像を用いて予測画像を生成する生成ステップと、
     前記生成ステップの処理により生成された前記予測画像を用いて、前記インター符号化画像を復号する復号ステップと
     を含む復号方法。
    The decryption device
    An enlargement / reduction step for enlarging or reducing the reference image based on enlargement / reduction ratio information indicating a rate of enlargement or reduction of the reference image with respect to the inter-coded image;
    Generating a predicted image using the reference image enlarged or reduced by the process of the enlargement / reduction step;
    And a decoding step of decoding the inter-coded image using the prediction image generated by the processing of the generation step.
  11.  符号化対象の画像に対する参照画像の拡大または縮小の率を表す拡大縮小率情報に基づいて、前記参照画像を拡大または縮小する拡大縮小部と、
     前記拡大縮小部により拡大または縮小された前記参照画像を用いて予測画像を生成する生成部と、
     前記生成部により生成された前記予測画像を用いて、前記符号化対象の画像を符号化し、符号化データを生成する符号化部と、
     前記符号化部により生成された前記符号化データと前記拡大縮小率情報とを伝送する伝送部と
     を備える符号化装置。
    An enlargement / reduction unit that enlarges or reduces the reference image based on enlargement / reduction rate information indicating a rate of enlargement / reduction of the reference image with respect to the encoding target image;
    A generation unit that generates a predicted image using the reference image enlarged or reduced by the enlargement / reduction unit;
    An encoding unit that encodes the image to be encoded using the predicted image generated by the generation unit and generates encoded data;
    An encoding apparatus comprising: a transmission unit that transmits the encoded data generated by the encoding unit and the enlargement / reduction ratio information.
  12.  前記伝送部は、前記符号化対象の画像より符号化順で前の前記参照画像または後の前記参照画像のいずれか一方に対する前記拡大縮小率情報のみを伝送する
     ように構成された
     請求項11に記載の符号化装置。
    The transmission unit is configured to transmit only the enlargement / reduction ratio information for one of the previous reference image and the subsequent reference image in encoding order with respect to the encoding target image. The encoding device described.
  13.  前記予測画像のブロックに対応する前記拡大縮小率情報と、そのブロックの周辺のブロックである周辺ブロックに対応する前記拡大縮小率情報との差分を算出する情報符号化部
     をさらに備え、
     前記伝送部は、前記情報符号化部により算出された前記拡大縮小率情報の差分を伝送する
     ように構成された
     請求項11に記載の符号化装置。
    An information encoding unit that calculates a difference between the enlargement / reduction rate information corresponding to the block of the predicted image and the enlargement / reduction rate information corresponding to a peripheral block that is a peripheral block of the block;
    The encoding device according to claim 11, wherein the transmission unit is configured to transmit a difference between the enlargement / reduction rate information calculated by the information encoding unit.
  14.  前記符号化対象の画像における動きベクトルの符号化モードがマージモードである場合、前記マージモードで動きベクトルが参照される前記予測画像のブロックに対応する拡大縮小率情報を、参照元の前記予測画像のブロックに対応する前記拡大縮小率情報に決定する決定部
     をさらに備え、
     前記伝送部は、前記動きベクトルの符号化モードがマージモード以外である場合、前記拡大縮小率情報を伝送する
     請求項11に記載の符号化装置。
    When the motion vector encoding mode in the encoding target image is the merge mode, the enlargement / reduction rate information corresponding to the block of the prediction image to which the motion vector is referred in the merge mode is used as the reference source prediction image. A determination unit for determining the enlargement / reduction ratio information corresponding to the block of
    The encoding device according to claim 11, wherein the transmission unit transmits the enlargement / reduction rate information when an encoding mode of the motion vector is other than a merge mode.
  15.  符号化装置が、
     符号化対象の画像に対する参照画像の拡大または縮小の率を表す拡大縮小率情報に基づいて、前記参照画像を拡大または縮小する拡大縮小ステップと、
     前記拡大縮小ステップの処理により拡大または縮小された前記参照画像を用いて予測画像を生成する生成ステップと、
     前記生成ステップの処理により生成された前記予測画像を用いて、前記符号化対象の画像を符号化し、符号化データを生成する符号化ステップと、
     前記符号化ステップの処理により生成された前記符号化データと前記拡大縮小率情報とを伝送する伝送ステップと
     を含む符号化方法。
    The encoding device
    An enlargement / reduction step for enlarging or reducing the reference image based on enlargement / reduction rate information indicating a rate of enlargement or reduction of the reference image with respect to the image to be encoded;
    Generating a predicted image using the reference image enlarged or reduced by the process of the enlargement / reduction step;
    Using the predicted image generated by the processing of the generating step, the encoding step of encoding the image to be encoded and generating encoded data;
    An encoding method comprising: a transmission step of transmitting the encoded data generated by the processing of the encoding step and the enlargement / reduction ratio information.
PCT/JP2014/082920 2013-12-27 2014-12-12 Decoding device, decoding method, encoding device, and encoding method WO2015098559A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2013272511A JP2015128205A (en) 2013-12-27 2013-12-27 Decoder, decoding method, encoder and encoding method
JP2013-272511 2013-12-27

Publications (1)

Publication Number Publication Date
WO2015098559A1 true WO2015098559A1 (en) 2015-07-02

Family

ID=53478423

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2014/082920 WO2015098559A1 (en) 2013-12-27 2014-12-12 Decoding device, decoding method, encoding device, and encoding method

Country Status (2)

Country Link
JP (1) JP2015128205A (en)
WO (1) WO2015098559A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493477A (en) * 2016-06-10 2017-12-19 Arm有限公司 Video data processing system
EP3413565A1 (en) 2017-06-07 2018-12-12 Fujitsu Limited Image compression method using homography transformation of a reference picture

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017047900A1 (en) * 2015-09-18 2017-03-23 엘지전자(주) Method for processing image on basis of inter prediction mode, and device therefor

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02274081A (en) * 1989-04-17 1990-11-08 Nippon Telegr & Teleph Corp <Ntt> Method and device for encoding image
JPH0349373A (en) * 1989-07-17 1991-03-04 Nippon Telegr & Teleph Corp <Ntt> Picture encoding system
JPH06153185A (en) * 1992-11-06 1994-05-31 Toshiba Corp Motion compensation device and coder using the device
JPH0795590A (en) * 1993-09-17 1995-04-07 Sony Corp Method and device for processing video signal and image pickup device
JP2000059612A (en) * 1998-08-04 2000-02-25 Canon Inc Image processing device and method therefor
JP2004129099A (en) * 2002-10-07 2004-04-22 Nec Corp Motion vector searching method and device
WO2010095556A1 (en) * 2009-02-19 2010-08-26 ソニー株式会社 Image processing device and method
JP2013102296A (en) * 2011-11-07 2013-05-23 Canon Inc Motion vector encoder, motion vector encoding method and program, motion vector decoder, and motion vector decoding method and program
JP2013145971A (en) * 2012-01-13 2013-07-25 Jvc Kenwood Corp Image decoding device, image decoding method, and image decoding program

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02274081A (en) * 1989-04-17 1990-11-08 Nippon Telegr & Teleph Corp <Ntt> Method and device for encoding image
JPH0349373A (en) * 1989-07-17 1991-03-04 Nippon Telegr & Teleph Corp <Ntt> Picture encoding system
JPH06153185A (en) * 1992-11-06 1994-05-31 Toshiba Corp Motion compensation device and coder using the device
JPH0795590A (en) * 1993-09-17 1995-04-07 Sony Corp Method and device for processing video signal and image pickup device
JP2000059612A (en) * 1998-08-04 2000-02-25 Canon Inc Image processing device and method therefor
JP2004129099A (en) * 2002-10-07 2004-04-22 Nec Corp Motion vector searching method and device
WO2010095556A1 (en) * 2009-02-19 2010-08-26 ソニー株式会社 Image processing device and method
JP2013102296A (en) * 2011-11-07 2013-05-23 Canon Inc Motion vector encoder, motion vector encoding method and program, motion vector decoder, and motion vector decoding method and program
JP2013145971A (en) * 2012-01-13 2013-07-25 Jvc Kenwood Corp Image decoding device, image decoding method, and image decoding program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493477A (en) * 2016-06-10 2017-12-19 Arm有限公司 Video data processing system
CN107493477B (en) * 2016-06-10 2023-05-09 Arm有限公司 Method, system and computer readable storage medium for encoding and decoding frames
EP3413565A1 (en) 2017-06-07 2018-12-12 Fujitsu Limited Image compression method using homography transformation of a reference picture
US10567790B2 (en) 2017-06-07 2020-02-18 Fujitsu Limited Non-transitory computer-readable storage medium for storing image compression program, image compression device, and image compression method

Also Published As

Publication number Publication date
JP2015128205A (en) 2015-07-09

Similar Documents

Publication Publication Date Title
JP6741126B2 (en) Image decoding apparatus and method
JP6358475B2 (en) Image decoding apparatus and method, and image encoding apparatus and method
JP6287035B2 (en) Decoding device and decoding method
WO2015053115A1 (en) Decoding device, decoding method, encoding device, and encoding method
JP2017195620A (en) Encoder and encoding method
US10148959B2 (en) Image coding device and method, and image decoding device and method
JPWO2019039283A1 (en) Image processing device and image processing method
WO2015053116A1 (en) Decoding device, decoding method, encoding device, and encoding method
WO2016104179A1 (en) Image processing apparatus and image processing method
WO2015098561A1 (en) Decoding device, decoding method, coding device, and coding method
JP2015005899A (en) Decoder and decoding method, encoder and encoding method
JPWO2015064402A1 (en) Image processing apparatus and method
JPWO2015064403A1 (en) Image processing apparatus and method
WO2015098559A1 (en) Decoding device, decoding method, encoding device, and encoding method
WO2015053112A1 (en) Decoding device and decoding method, and encoding device and encoding method
WO2014208326A1 (en) Image encoding device and method, and image decoding device and method
JP6150134B2 (en) Image encoding apparatus and method, image decoding apparatus and method, program, and recording medium
JP6477930B2 (en) Encoding apparatus and encoding method
WO2015053111A1 (en) Decoding device and decoding method, and encoding device and encoding method
JP6402802B2 (en) Image processing apparatus and method, program, and recording medium
WO2015098563A1 (en) Image encoding device and method and image decoding device and method
WO2015064401A1 (en) Image processing device and method
JP2015050738A (en) Decoder and decoding method, encoder and encoding method
WO2014162916A1 (en) Image encoding apparatus and method, and image decoding apparatus and method
WO2014203762A1 (en) Decoding device, decoding method, encoding device, and encoding method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14874661

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14874661

Country of ref document: EP

Kind code of ref document: A1