HK1237160B - Image processing apparatus and image processing method - Google Patents
Image processing apparatus and image processing method Download PDFInfo
- Publication number
- HK1237160B HK1237160B HK17110623.5A HK17110623A HK1237160B HK 1237160 B HK1237160 B HK 1237160B HK 17110623 A HK17110623 A HK 17110623A HK 1237160 B HK1237160 B HK 1237160B
- Authority
- HK
- Hong Kong
- Prior art keywords
- image
- section
- prediction
- current
- motion vector
- Prior art date
Links
Description
技术领域Technical Field
本公开涉及影像处理设备和影像处理方法,更具体地,涉及能够在使用画面内的相关性执行预测时提高编码效率的影像处理设备和影像处理方法。The present disclosure relates to an image processing device and an image processing method, and more particularly, to an image processing device and an image processing method capable of improving encoding efficiency when performing prediction using correlation within a picture.
背景技术Background Art
近年来,下述设备已经普及:所述设备处理作为数字的影像信息,并且此时,出于高效信息传输和累积的目的,采用利用影像信息特有的冗余通过正交变换和运动补偿如离散余弦变换而进行压缩的编码系统来对影像执行压缩编码。该编码系统的示例包括MPEG(运动图像专家组)、H.264和MPEG-4第10部分(高级视频编码,在下文中被描述为AVC)。In recent years, devices that process digital image information and, for the purpose of efficient information transmission and accumulation, compression-encode the images using a coding system that utilizes the redundancy inherent in image information through orthogonal transform and motion compensation, such as discrete cosine transform, have become widespread. Examples of such coding systems include MPEG (Moving Picture Experts Group), H.264, and MPEG-4 Part 10 (Advanced Video Coding, hereinafter referred to as AVC).
现在,为了比H.264/AVC更加提高编码效率,JCTVC(联合合作团队-视频编码)正在进行被称作HEVC(高效视频编码)的编码系统的标准化,JCTVC是由ITU-T(国际电信联盟电信标准化部门)和ISO/IEC(国际标准化组织/国际电工委员会)构成的联合标准化组织。Currently, in order to further improve coding efficiency compared to H.264/AVC, JCTVC (Joint Collaborative Team-Video Coding) is standardizing a coding system called HEVC (High Efficiency Video Coding). JCTVC is a joint standardization organization composed of ITU-T (International Telecommunication Union Telecommunication Standardization Sector) and ISO/IEC (International Organization for Standardization/International Electrotechnical Commission).
此外,在HEVC中,已经研究了范围扩展(HEVC范围扩展)以支持高阶格式,例如,像4:2:2和4:4:4这样的色差信号格式的影像、用于画面内容的简档(参见例如非专利文献1)。Furthermore, in HEVC, range extension (HEVC range extension) has been studied to support higher-order formats, for example, images in color difference signal formats such as 4:2:2 and 4:4:4, profiles for picture contents (see, for example, Non-Patent Document 1).
顺便提及,帧内块拷贝(Intra BC)是通过使用画面内的相关性并且执行在画面内的运动补偿来执行预测的编码工具。Intra BC被认为是有助于提高人工影像如计算机画面和CG影像的编码效率的工具。Intra Block Copy (Intra BC) is a coding tool that uses correlation within a frame and performs motion compensation to perform prediction. Intra BC is considered to be a tool that helps improve the coding efficiency of artificial images such as computer graphics and CG images.
然而,Intra BC的技术在上述HEVC范围扩展(HEVC Range Extension)扩展中未被采用,而是针对画面内容编码(SCC)扩展的标准化被持续研究(参见例如非专利文献2)。However, the Intra BC technology is not adopted in the HEVC Range Extension described above, but is being studied for standardization of the Picture Content Coding (SCC) extension (see, for example, Non-Patent Document 2).
从2014年12月起,在HEVC SCC扩展的标准化中,正在讨论将Intra BC和帧间编码(inter coding)共通化(commonalize)。在Intra BC和帧间编码被共通化的情况下,预测向量(MV预测器)的选择、参考图像的索引(RefIdx)的传输、当前运动向量与预测向量之间的差分向量(MVD)的传输等必须共通化。Since December 2014, the standardization of the HEVC SCC extension has been discussing the commonization of Intra BC and inter coding. Commonalization of Intra BC and inter coding requires commonality in the selection of prediction vectors (MV predictors), the transmission of reference image indices (RefIdx), and the transmission of the difference vector (MVD) between the current motion vector and the prediction vector.
引用列表Reference List
非专利文献Non-patent literature
非专利文献1:Jill Boyce,et al.“Draft high efficiency video coding(HEVC)version 2,combined format range extensions(RExt),scalability(SHVC),andmulti-view(MV-HEVC)extensions”,JCTVC-R1013_v6,2014.10.1Non-patent document 1: Jill Boyce, et al. "Draft high efficiency video coding (HEVC) version 2, combined format range extensions (RExt), scalability (SHVC), and multi-view (MV-HEVC) extensions", JCTVC-R1013_v6, 2014.10.1
非专利文献2:Rajan Joshi,et al.“High Efficiency Video Coding(HEVC)Screen Content Coding:Draft 1”,JCTVC-R1005-v3,2014.9.27Non-Patent Document 2: Rajan Joshi, et al. “High Efficiency Video Coding (HEVC) Screen Content Coding: Draft 1”, JCTVC-R1005-v3, September 27, 2014
发明内容Summary of the Invention
技术问题Technical issues
然而,在以下情况下,差分向量会变大,并且编码效率降低:在对Intra BC中使用的运动向量进行编码时,使用参考帧间编码中使用的运动向量生成的预测向量。However, the difference vector becomes large and the encoding efficiency decreases in the following case: when encoding the motion vector used in Intra BC, a prediction vector generated with reference to the motion vector used in inter-frame encoding is used.
鉴于如上所述的情况而做出了本公开,并且本公开能够在使用画面内的相关性执行预测时提高编码效率。The present disclosure has been made in view of the circumstances as described above, and can improve encoding efficiency when prediction is performed using correlation within a screen.
问题的解决方案Solution to the problem
根据本公开的第一方面的影像处理设备是以下影像处理设备,其包括:预测向量生成部,在对使用画面内的相关性进行预测所使用的当前块的当前运动向量进行编码时,在当前块的参考图像的类型与对应于参考运动向量的候选的候选块的参考图像的类型彼此不同的情况下,所述预测向量生成部将候选块设置为不可用,并且通过使用参考运动向量生成当前运动向量的预测向量,所述参考运动向量在生成当前运动向量的预测向量时被参考;以及差分向量生成部,所述差分向量生成部生成当前运动向量与由预测向量生成部生成的预测向量之间的差分向量。The image processing device according to the first aspect of the present disclosure is the following image processing device, which includes: a prediction vector generation unit, which, when encoding a current motion vector of a current block used for prediction using correlation within a picture, sets the candidate block to be unavailable when the type of the reference image of the current block and the type of the reference image of the candidate block corresponding to the reference motion vector are different from each other, and generates a prediction vector of the current motion vector by using the reference motion vector, and the reference motion vector is referenced when generating the prediction vector of the current motion vector; and a differential vector generation unit, which generates a differential vector between the current motion vector and the prediction vector generated by the prediction vector generation unit.
根据本公开的第一方面的影像处理方法对应于根据本公开的第一方面的影像处理设备。The image processing method according to the first aspect of the present disclosure corresponds to the image processing apparatus according to the first aspect of the present disclosure.
在本公开的第一方面中,在对使用画面内的相关性进行预测所使用的当前块的当前运动向量进行编码时,在当前块的参考图像的类型与对应于参考运动向量的候选的候选块的参考图像的类型彼此不同的情况下,将候选块设置成不可用,通过使用参考运动向量来生成当前运动向量的预测向量,并且生成当前运动向量与预测向量之间的差分向量,所述参考运动向量在生成当前运动向量的预测向量时被参考。In a first aspect of the present disclosure, when encoding a current motion vector of a current block used for prediction using correlation within a picture, in a case where a type of a reference image of the current block and a type of a reference image of a candidate block corresponding to a candidate of the reference motion vector are different from each other, the candidate block is set to be unavailable, a prediction vector of the current motion vector is generated by using the reference motion vector, and a differential vector between the current motion vector and the prediction vector is generated, wherein the reference motion vector is referenced when generating the prediction vector of the current motion vector.
根据本公开的第二方面的影像处理设备是以下影像处理设备,包括:预测向量生成部,在对使用画面内的相关性进行预测所使用的当前块的当前运动向量进行解码时,在当前块的参考图像的类型与对应于参考运动向量的候选的候选块的参考图像的类型彼此不同的情况下,所述预测向量生成部将候选块设置成不可用,并且通过使用参考运动向量生成当前运动向量的预测向量,所述参考运动向量在生成当前运动向量的预测向量时被参考;以及An image processing device according to a second aspect of the present disclosure is an image processing device including: a prediction vector generating section that, when decoding a current motion vector of a current block used for prediction using correlation within a picture, sets the candidate block to be unavailable when a type of a reference image of the current block and a type of a reference image of a candidate block corresponding to a candidate of the reference motion vector are different from each other, and generates a prediction vector of the current motion vector by using the reference motion vector, the reference motion vector being referenced when generating the prediction vector of the current motion vector; and
运动向量生成部,所述运动向量生成部将当前运动向量与预测向量之间的差分向量和由预测向量生成部生成的预测向量相加,并且生成当前运动向量。A motion vector generation section that adds a differential vector between a current motion vector and a prediction vector and the prediction vector generated by the prediction vector generation section to generate a current motion vector.
根据本公开的第二方面的影像处理方法对应于根据本公开的第二方面的影像处理设备。The image processing method according to the second aspect of the present disclosure corresponds to the image processing device according to the second aspect of the present disclosure.
在本公开的第二方面中,在对使用画面内的相关性进行预测所使用的当前块的当前运动向量进行解码时,在当前块的参考图像的类型与对应于参考运动向量的候选的候选块的参考图像的类型彼此不同的情况下,将候选块设置成不可用,通过使用参考运动向量来生成当前运动向量的预测向量,将当前运动向量与预测向量之间的差分向量和预测向量相加,并且生成当前运动向量,所述参考运动向量在生成当前运动向量的预测向量时被参考。In a second aspect of the present disclosure, when decoding a current motion vector of a current block used for prediction using correlation within a picture, in a case where the type of a reference image of the current block and the type of a reference image of a candidate block corresponding to a candidate of the reference motion vector are different from each other, the candidate block is set to be unavailable, a prediction vector of the current motion vector is generated by using the reference motion vector, a differential vector between the current motion vector and the prediction vector and the prediction vector are added, and the current motion vector is generated, wherein the reference motion vector is referenced when generating the prediction vector of the current motion vector.
应当注意,可以通过使计算机执行程序来实现根据第一方面和第二方面的影像处理设备。It should be noted that the image processing apparatuses according to the first aspect and the second aspect can be realized by causing a computer to execute a program.
此外,可以通过经由传输介质的传输或者记录在记录介质上来提供为了实现根据第一方面和第二方面的影像处理设备而由计算机执行的程序。Furthermore, the program executed by a computer in order to realize the image processing apparatus according to the first aspect and the second aspect may be provided by being transmitted via a transmission medium or recorded on a recording medium.
根据第一方面和第二方面的影像处理设备可以是独立的设备,或者可以是构成一个设备的内部块。The image processing apparatus according to the first aspect and the second aspect may be an independent apparatus, or may be an internal block constituting one apparatus.
本发明的有益效果Beneficial effects of the present invention
根据本公开的第一方面,可以对影像进行编码。此外,根据本公开的第一方面,能够在使用画面内的相关性执行预测时提高编码效率。According to the first aspect of the present disclosure, it is possible to encode an image. In addition, according to the first aspect of the present disclosure, it is possible to improve encoding efficiency when performing prediction using correlation within a screen.
根据本公开的第二方面,可以对编码流进行解码。此外,根据本公开的第二方面,能够在使用画面内的相关性执行预测时对具有提高的编码效率的编码流进行解码。According to the second aspect of the present disclosure, it is possible to decode an encoded stream. In addition, according to the second aspect of the present disclosure, it is possible to decode an encoded stream with improved encoding efficiency when prediction is performed using correlation within a picture.
应当注意,本文所描述的效果不一定受限制,并且可以产生本文所描述的效果中的任意效果。It should be noted that the effects described herein are not necessarily limited, and any of the effects described herein may be produced.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
【图1】图1是用于描述Intra BC的图。[Figure 1] Figure 1 is a diagram used to describe Intra BC.
【图2】图2是用于描述Intra BC与帧间编码之间的差异的图。[Figure 2] Figure 2 is a diagram used to describe the difference between Intra BC and inter-frame coding.
【图3】图3是用于描述HEVC中的参考图像的类型的图。[Figure 3] Figure 3 is a diagram for describing the types of reference images in HEVC.
【图4】图4是示出HEVC中的候选块的设置的示例的图。[Fig. 4] Fig. 4 is a diagram showing an example of setting of candidate blocks in HEVC.
【图5】图5是示出HEVC中的候选块的设置的示例的图。[Fig. 5] Fig. 5 is a diagram showing an example of setting of candidate blocks in HEVC.
【图6】图6是用于描述参考运动向量的候选的图。[Figure 6] Figure 6 is a diagram for describing candidates for a reference motion vector.
【图7】图7是示出第一实施例中的候选块的设置的示例的图。[ Fig. 7] Fig. 7 is a diagram showing an example of setting of candidate blocks in the first embodiment.
【图8】图8是示出第一实施例中的候选块的设置的示例的图。[ Fig. 8] Fig. 8 is a diagram showing an example of setting of candidate blocks in the first embodiment.
【图9】图9是示出HEVC中的参考图像的候选的示例的图。[ Fig. 9] Fig. 9 is a diagram showing an example of candidates for reference images in HEVC.
【图10】图10是用于描述HEVC中的参考图像列表创建处理的图。[Figure 10] Figure 10 is a diagram for describing the reference image list creation process in HEVC.
【图11】图11是示出第一实施例中的参考图像的候选的示例的图。[ Fig. 11] Fig. 11 is a diagram showing an example of candidates for a reference image in the first embodiment.
【图12】图12是用于描述第一实施例中的参考图像列表创建处理的图。[Fig. 12] Fig. 12 is a diagram for describing the reference image list creation process in the first embodiment.
【图13】图13是示出应用本公开的编码设备的第一实施例的构造示例的框图。[ Fig. 13] Fig. 13 is a block diagram showing a configuration example of a first embodiment of an encoding device to which the present disclosure is applied.
【图14】图14是示出图13的编码部的构造示例的框图。[Figure 14] Figure 14 is a block diagram showing a configuration example of the encoding unit of Figure 13.
【图15】图15是用于描述图13的编码设备的流生成处理的流程图。[Figure 15] Figure 15 is a flowchart for describing the stream generation processing of the encoding device of Figure 13.
【图16】图16是用于描述图15的编码处理的细节的流程图。[Figure 16] Figure 16 is a flowchart used to describe the details of the encoding process of Figure 15.
【图17】图17是用于描述图15的编码处理的细节的流程图。[Figure 17] Figure 17 is a flowchart used to describe the details of the encoding process of Figure 15.
【图18】图18是用于描述图16的参考图像创建处理的细节的流程图。[Figure 18] Figure 18 is a flowchart for describing the details of the reference image creation processing of Figure 16.
【图19】图19是用于描述图16的预测向量列表生成处理的细节的流程图。[Figure 19] Figure 19 is a flowchart used to describe the details of the prediction vector list generation processing of Figure 16.
【图20】图20是示出应用本公开的解码设备的第一实施例的构造示例的框图。[Figure 20] Figure 20 is a block diagram showing a configuration example of a first embodiment of a decoding device to which the present disclosure is applied.
【图21】图21是示出图20的解码部的构造示例的框图。[Figure 21] Figure 21 is a block diagram showing a configuration example of the decoding unit of Figure 20.
【图22】图22是用于描述图20的解码设备的影像生成处理的流程图。[Figure 22] Figure 22 is a flowchart used to describe the image generation processing of the decoding device of Figure 20.
【图23】图23是用于描述图22的解码处理的细节的流程图。[Figure 23] Figure 23 is a flowchart used to describe the details of the decoding process of Figure 22.
【图24】图24是用于描述第二实施例中的预测向量列表生成方法的图。[Figure 24] Figure 24 is a diagram used to describe the prediction vector list generation method in the second embodiment.
【图25】图25是用于描述第二实施例中的预测向量列表生成方法的图。[Figure 25] Figure 25 is a diagram used to describe the prediction vector list generation method in the second embodiment.
【图26】图26是用于描述第二实施例中的预测向量列表生成方法的图。[Figure 26] Figure 26 is a diagram used to describe the prediction vector list generation method in the second embodiment.
【图27】图27是示出第二实施例中的候选块的设置的示例的图。[ Fig. 27] Fig. 27 is a diagram showing an example of setting of candidate blocks in the second embodiment.
【图28】图28是用于描述第二实施例中的参考图像创建处理的细节的流程图。[Figure 28] Figure 28 is a flowchart for describing the details of the reference image creation process in the second embodiment.
【图29】图29是用于描述第二实施例中的预测向量列表生成处理的细节的流程图。[Figure 29] Figure 29 is a flowchart for describing the details of the prediction vector list generation processing in the second embodiment.
【图30】图30是用于描述第三实施例中的参考图像列表创建处理的图。[Figure 30] Figure 30 is a diagram used to describe the reference image list creation processing in the third embodiment.
【图31】图31是用于描述第三实施例中的参考图像列表创建处理的细节的流程图。[Figure 31] Figure 31 is a flowchart for describing the details of the reference image list creation processing in the third embodiment.
【图32】图32是示出计算机硬件的构造示例的框图。[Figure 32] Figure 32 is a block diagram showing a configuration example of computer hardware.
【图33】图33是示出应用本公开的电视设备的示意性构造示例的图。[Figure 33] Figure 33 is a diagram showing a schematic configuration example of a television device to which the present disclosure is applied.
【图34】图34是示出应用本公开的移动电话的示意性构造示例的图。[ Fig. 34] Fig. 34 is a diagram showing a schematic configuration example of a mobile phone to which the present disclosure is applied.
【图35】图35是示出应用本公开的记录/再现设备的示意性构造示例的图。[ Fig. 35] Fig. 35 is a diagram illustrating a schematic configuration example of a recording/reproducing device to which the present disclosure is applied.
【图36】图36是示出应用本公开的成像设备的示意性构造示例的图。[ Fig. 36] Fig. 36 is a diagram illustrating a schematic configuration example of an imaging apparatus to which the present disclosure is applied.
【图37】图37示出了应用本公开的视频套组的示意性构造示例。[Figure 37] Figure 37 shows a schematic configuration example of a video set to which the present disclosure is applied.
【图38】图38示出了应用本公开的视频处理器的示意性构造示例。[Figure 38] Figure 38 shows a schematic configuration example of a video processor to which the present disclosure is applied.
【图39】图39示出了应用本公开的视频处理器的另一示意性构造示例。[Figure 39] Figure 39 shows another schematic configuration example of a video processor to which the present disclosure is applied.
具体实施方式DETAILED DESCRIPTION
在下文中,将描述本公开的前提和用于执行本公开的方式(在下文中,被称为实施例)。应当注意,将按照下面的顺序给出描述。Hereinafter, the premise of the present disclosure and a mode for carrying out the present disclosure (hereinafter, referred to as an embodiment) will be described. It should be noted that the description will be given in the following order.
0.本公开的前提(图1和图2)0. Premise of the present disclosure (Figures 1 and 2)
1.第一实施例:编码设备和解码设备(图3至图23)1. First Embodiment: Encoding Device and Decoding Device (FIGS. 3 to 23)
2.第二实施例:编码设备和解码设备(图24至图29)2. Second Embodiment: Encoding Device and Decoding Device (FIGS. 24 to 29)
3.第三实施例:编码设备和解码设备(图30和图31)3. Third Embodiment: Encoding Device and Decoding Device (FIGS. 30 and 31)
4.第四实施例:计算机(图32)4. Fourth embodiment: Computer (Figure 32)
5.第五实施例:电视设备(图33)5. Fifth embodiment: Television device (FIG. 33)
6.第六实施例:移动电话(图34)6. Sixth embodiment: mobile phone (Figure 34)
7.第七实施例:记录/再现设备(图35)7. Seventh Embodiment: Recording/Reproducing Device (FIG. 35)
8.第八实施例:成像设备(图36)8. Eighth Embodiment: Imaging Device (FIG. 36)
9.第九实施例:视频套组(图37至图39)9. Ninth embodiment: Video suite (Figures 37 to 39)
<本公开的前提><Prerequisites of this Disclosure>
关于Intra BC的描述Description of Intra BC
图1是用于描述帧内块拷贝(Intra BC)的图。FIG. 1 is a diagram for describing an intra block copy (Intra BC).
如图1中所示,在Intra BC中,用于预测图像10内的PU(预测单元)11的参考图像是图像10。因此,与PU 11包含在同一图像10内并且与PU 11具有高相关性的块12被设置为PU11的参考块,并且PU 11与PU 12之间的向量13被检测为运动向量。As shown in FIG1 , in Intra BC, the reference image for predicting a PU (Prediction Unit) 11 within an image 10 is the image 10. Therefore, a block 12 that is included in the same image 10 as the PU 11 and has a high correlation with the PU 11 is set as a reference block for the PU 11, and a vector 13 between the PUs 11 and 12 is detected as a motion vector.
(关于Intra BC与帧间编码之间的差异的描述)(Description of the difference between Intra BC and Inter-frame coding)
图2是用于描述Intra BC与帧间编码之间的差异的图。FIG. 2 is a diagram for describing the difference between Intra BC and inter-frame coding.
如图2中所示,Intra BC中的运动向量的精度是整数像素精度,而帧间编码中的运动向量的精度是1/4像素精度。此外,在Intra BC中,由于同一画面内的编码块被设置为参考块,所以运动向量的沿纵向方向的长度和沿横向方向的长度中的至少一个长度较长。然而,在帧间编码中,由于不同画面内的编码块被设置为参考块,所以运动向量的长度取决于画面之间的运动。As shown in Figure 2, the precision of motion vectors in intra coding is integer pixel precision, while the precision of motion vectors in inter coding is 1/4 pixel precision. Furthermore, in intra coding, since the coding blocks within the same picture are set as reference blocks, at least one of the lengths in the longitudinal direction and the length in the transverse direction of the motion vector is longer. However, in inter coding, since coding blocks in different pictures are set as reference blocks, the length of the motion vector depends on the motion between pictures.
此外,在Intra BC中,使用经受滤波处理之前的图像作为参考图像,但是在帧间编码中,使用经受滤波处理之后的图像作为参考图像。通常,将经受滤波处理之前的图像存储在高速缓冲存储器中,而将经受滤波处理之后的图像存储在DRAM(动态随机存取存储器)中。Intra BC uses the image before filtering as the reference image, but in inter-frame coding, the image after filtering is used as the reference image. Typically, the image before filtering is stored in a cache memory, while the image after filtering is stored in a DRAM (Dynamic Random Access Memory).
如上所述,Intra BC与帧间编码之间的运动向量的精度和长度是不同的。因此,如果Intra BC和帧间编码被共通化,并且在对Intra BC的运动向量进行编码时使用参考帧间编码的运动向量生成的预测向量,则差分向量变大,并且编码效率降低。应当注意,生成预测向量时所参考的运动向量在下文中被称为参考运动向量。As described above, the accuracy and length of motion vectors differ between Intra BC and Inter coding. Therefore, if Intra BC and Inter coding are standardized and a prediction vector generated by referencing an Inter coding motion vector is used when encoding an Intra BC motion vector, the difference vector becomes larger, and coding efficiency decreases. It should be noted that the motion vector referenced when generating the prediction vector is hereinafter referred to as a reference motion vector.
此外,用于存储参考图像的目的地在Intra BC与帧间编码之间是不同的。因此,在Intra BC和帧间编码被共通化的情况下,高速缓冲存储器和DRAM被混合作为存储参考图像的目的地。然而,由于解码设备不识别其存储参考图像的目的地,所以解码设备徒劳无益地访问DRAM。因此,增大了DRAM的访问带宽。Furthermore, the storage destination for reference images differs between Intra BC and Inter coding. Therefore, when Intra BC and Inter coding are standardized, cache memory and DRAM are used interchangeably as the storage destination for reference images. However, since the decoding device does not know the storage destination for its reference images, it accesses the DRAM in vain. This increases the access bandwidth of the DRAM.
<第一实施例><First embodiment>
(第一实施例的概要)(Overview of the First Embodiment)
首先,将参照图3至图12来描述第一实施例的概要。First, an outline of the first embodiment will be described with reference to FIG. 3 to FIG. 12 .
图3是用于描述HEVC(高效视频编码)中的参考图像的类型的图。FIG. 3 is a diagram for describing types of reference pictures in HEVC (High Efficiency Video Coding).
如图3中所示,在HEVC中,与当前要处理的图像(在下文中,被称为当前图像)的POC(图像序列号)具有小差分的参考图像的类型被设置为STRP(短期参考图像)。此外,与当前图像(Current Pic)的POC具有大差分的参考图像的类型被设置为LTRP(长期参考图像)。As shown in FIG3, in HEVC, the type of a reference picture with a small difference from the POC (Picture Sequence Number) of the image to be processed currently (hereinafter referred to as the current picture) is set to STRP (Short-Term Reference Picture). In addition, the type of a reference picture with a large difference from the POC of the current picture (Current Pic) is set to LTRP (Long-Term Reference Picture).
如图4和图5中所示,在以下情况下,将候选块设置成不可用:当前图像内的当前要处理的PU(在下文中,被称为当前块)的参考图像与对应于参考运动向量的候选的PU(在下文中,候选块)的参考图像在类型上彼此不同。As shown in Figures 4 and 5, the candidate block is set to unavailable in the following case: the reference image of the current PU to be processed within the current image (hereinafter, referred to as the current block) and the reference image of the candidate PU corresponding to the reference motion vector (hereinafter, the candidate block) are different in type from each other.
例如,如图3中所示,在以下情况下,将候选块22设置成不可用:当前块21的参考图像的类型是STRP,并且与当前运动向量(目标MV)的参考运动向量的候选(PMV)对应的候选块22的参考图像的类型是LTRP。因此,候选块22的运动向量被从参考运动向量的候选中排除,并且不用于生成预测向量。For example, as shown in FIG3 , the candidate block 22 is set to be unavailable in the following case: the type of the reference image of the current block 21 is STRP, and the type of the reference image of the candidate block 22 corresponding to the candidate (PMV) of the reference motion vector of the current motion vector (target MV) is LTRP. Therefore, the motion vector of the candidate block 22 is excluded from the candidate of the reference motion vector and is not used to generate the prediction vector.
应当注意,候选块是在一天的相同时刻在当前块的左、左上、左下、上和右上与当前块相邻的PU、以及在一天的不同时刻与当前块位于相同位置的PU和在当前块的右下与当前块相邻的PU。在下文中,在特别区分与当前块处于一天的相同时刻的候选块和其他候选块的情况下,与当前块处于一天的相同时刻的候选块被称为空间方向候选块,并且在特别区分与当前块处于一天的不同时刻的候选块与其他候选块的情况下,与当前块处于一天的不同时刻的候选块被称为时间方向候选块。It should be noted that the candidate blocks are PUs adjacent to the left, upper left, lower left, upper, and upper right of the current block at the same time of the day, as well as PUs located at the same position as the current block at different times of the day and PUs adjacent to the current block at the lower right of the current block. Hereinafter, in the case of specifically distinguishing between candidate blocks at the same time of the day as the current block and other candidate blocks, candidate blocks at the same time of the day as the current block are referred to as spatial-direction candidate blocks, and in the case of specifically distinguishing between candidate blocks at different times of the day than the current block and other candidate blocks, candidate blocks at different times of the day than the current block are referred to as temporal-direction candidate blocks.
此外,如图4和图5中所示,在当前块的参考图像的类型与候选块的参考图像的类型彼此相同的情况下,候选块被设置成可用。因此,将候选块的运动向量设置为参考运动向量的候选。4 and 5, when the type of the reference image of the current block is the same as the type of the reference image of the candidate block, the candidate block is set to be available. Therefore, the motion vector of the candidate block is set as a candidate for the reference motion vector.
在以下情况下,通过基于当前块的参考图像与候选块的参考图像之间的POC的差分按比例缩放参考运动向量来生成预测向量:在当前块的参考图像的类型和候选块的参考图像的类型两者为STRP时,选择候选块的运动向量作为参考运动向量。In the following case, a prediction vector is generated by scaling the reference motion vector based on the difference in POC between the reference image of the current block and the reference image of the candidate block: when the type of the reference image of the current block and the type of the reference image of the candidate block are both STRP, the motion vector of the candidate block is selected as the reference motion vector.
同时,在以下情况下,在不改变(不按比例缩放)的情况下将参考运动向量设置为预测向量:在当前块的参考图像的类型和候选块的参考图像的类型两者为LTRP时,选择候选块的运动向量作为参考运动向量。At the same time, in the following cases, the reference motion vector is set as the prediction vector without change (not scaled): when the type of the reference image of the current block and the type of the reference image of the candidate block are both LTRP, the motion vector of the candidate block is selected as the reference motion vector.
应当注意,在现在的HEVC中,Intra BC和帧间编码未被共通化,因此如图5中所示,未假定除LTRP和STRP以外的参考图像的类型。因此,在以下情况下,候选块的设置不确定:参考图像的类型是“Intra BC”,“Intra BC”是Intra BC中所使用的参考图像的类型。Note that in current HEVC, Intra BC and inter-frame coding are not standardized, so as shown in Figure 5, reference picture types other than LTRP and STRP are not assumed. Therefore, in the following case, the setting of candidate blocks is undefined: the reference picture type is "Intra BC", and "Intra BC" is the type of reference picture used in Intra BC.
在Intra BC和帧间编码被简单共通化的情况下,Intra BC中所使用的参考图像的类型与实际类型不同,并且被设置为STRP。因此,如图6中所示,当前块31的Intra BC中所使用的当前运动向量(目标MV)的参考运动向量的候选中包括候选块32的运动向量(PMV),该候选块32的参考图像的实际类型是STRP。When Intra BC and Inter coding are simply commonized, the type of the reference picture used in Intra BC differs from the actual type and is set to STRP. Therefore, as shown in FIG6 , the candidates for the reference motion vector of the current motion vector (target MV) used in Intra BC of the current block 31 include the motion vector (PMV) of the candidate block 32, whose actual reference picture type is STRP.
然而,如图2中所示,Intra BC与帧间编码之间的运动向量的精度和长度不同。因此,如果选择候选块32的运动向量作为当前块31的当前运动向量的参考运动向量,则当前运动向量与预测向量之间的差分向量变大。因此,编码效率降低。However, as shown in Figure 2, the precision and length of motion vectors differ between Intra BC and Inter coding. Therefore, if the motion vector of candidate block 32 is selected as the reference motion vector for the current motion vector of current block 31, the difference vector between the current motion vector and the predicted vector becomes larger. Consequently, coding efficiency decreases.
关于这一点,在第一实施例中,将Intra BC中所使用的参考图像的类型(即实际类型为“Intra BC”的参考图像的类型)设置为LTRP。具体地,将当前图像新定义为参考图像的候选,(如果intra_block_copy_enabled_flag等于1,则以下适用。RefPicCurr=CurrPic)。然后,添加新定义的当前图像作为参考图像的候选,该参考图像的类型被设置为LTRP(将RefPicCurr、RefPicSetLtCurr和RefPicSetLtFoll中包括的所有参考图像标记为“用于长期参考”。)。In this regard, in the first embodiment, the type of reference picture used in Intra BC (i.e., the type of reference picture whose actual type is "Intra BC") is set to LTRP. Specifically, the current picture is newly defined as a candidate for a reference picture (if intra_block_copy_enabled_flag is equal to 1, the following applies: RefPicCurr = CurrPic). Then, the newly defined current picture is added as a candidate for a reference picture, and the type of the reference picture is set to LTRP (all reference pictures included in RefPicCurr, RefPicSetLtCurr, and RefPicSetLtFoll are marked as "used for long-term reference.").
因此,将当前图像添加至参考图像列表,并且标记为“用于长期参考”,该参考图像列表是参考图像的候选的列表。因此,与对于其参考图像的实际类型为LTRP的当前块的候选块的设置类似地执行对于其参考图像的实际类型为“Intra BC”的当前块的候选块的设置。Therefore, the current image is added to the reference image list, which is a list of candidates for reference images, and marked as "used for long-term reference." Therefore, the setting of candidate blocks for the current block whose actual reference image type is "Intra BC" is performed similarly to the setting of candidate blocks for the current block whose actual reference image type is LTRP.
具体地,如图7和图8中所示,在当前块的参考图像的实际类型和候选块的参考图像的实际类型中的任一实际类型是“Intra BC”并且另一实际类型是STRP的情况下,将候选块设置成不可用。因此,将候选块的运动向量从参考运动向量的候选中排除,并且候选块的运动向量不用于生成预测向量。Specifically, as shown in Figures 7 and 8, if either the actual type of the reference image of the current block or the actual type of the reference image of the candidate block is "Intra BC" and the other actual type is STRP, the candidate block is set to be unavailable. Therefore, the motion vector of the candidate block is excluded from the candidates for the reference motion vector and is not used to generate the prediction vector.
此外,如图7和图8中所示,在当前块的参考图像的实际类型和候选块的参考图像的实际类型两者为“Intra BC”或LTRP的情况下,将候选块设置成可用。因此,将候选块的运动向量设置为参考运动向量的候选。In addition, as shown in Figures 7 and 8, when both the actual type of the reference image of the current block and the actual type of the reference image of the candidate block are "Intra BC" or LTRP, the candidate block is set to be available. Therefore, the motion vector of the candidate block is set as a candidate for the reference motion vector.
如上所述,在当前块的参考图像的实际类型和候选块的参考图像的实际类型中的任一实际类型是“Intra BC”并且另一实际类型是STRP的情况下,候选块的运动向量不用于生成预测向量,并且提高了编码效率。As described above, in a case where either the actual type of the reference image of the current block and the actual type of the reference image of the candidate block is "Intra BC" and the other actual type is STRP, the motion vector of the candidate block is not used to generate a prediction vector, and encoding efficiency is improved.
图9是示出HEVC中的参考图像的候选的示例的图。FIG. 9 is a diagram illustrating an example of candidates for a reference image in HEVC.
如图9中所示,在HEVC中,按显示顺序在当前图像(C)之前并且与当前图像的POC具有小差分的图像(Short-term before Curr)是参考图像的候选。此外,按显示顺序在当前图像(C)之后并且与当前图像的POC具有小差分的图像(Short-term after Curr)是参考图像的候选。As shown in Figure 9, in HEVC, an image that precedes the current image (C) in display order and has a small difference with the POC of the current image (Short-term before Curr) is a candidate for a reference image. In addition, an image that follows the current image (C) in display order and has a small difference with the POC of the current image (Short-term after Curr) is a candidate for a reference image.
此外,按显示顺序在当前图像(C)之前并且与当前图像的POC具有大差分的图像(Long-term)是参考图像的候选。此外,按显示顺序与当前图像(C)相同但是视点、位数、空间分辨率、S/N、帧率、色差信号格式等不同的图像(Inter-layer)是参考图像的候选。In addition, images that precede the current image (C) in display order and have a large difference in POC with the current image (Long-term) are candidates for reference images. In addition, images that are the same as the current image (C) in display order but have different viewpoints, bits, spatial resolutions, S/Ns, frame rates, color difference signal formats, etc. (Inter-layer) are candidates for reference images.
图10是用于描述登记图9的参考图像的候选的参考图像列表创建处理的图。FIG. 10 is a diagram for describing a reference image list creation process for registering candidates for the reference image of FIG. 9 .
如图10中所示,在参考图像列表创建处理中,首先,针对参考图像的候选的每一种类创建单独的列表,在单独的列表中,登记用于识别参考图像的候选图像的信息(在下文中,被称为图像识别信息)。换言之,创建RefPicSetStCurrBefore列表,其中,按照与当前图像的POC的差分由小到大的顺序来登记图像(Short-term before Curr)中的每个图像的图像识别信息。As shown in Figure 10, in the reference image list creation process, a separate list is first created for each category of reference image candidates. Information used to identify the reference image candidates (hereinafter referred to as image identification information) is registered in the separate list. In other words, a RefPicSetStCurrBefore list is created, in which the image identification information of each image (short-term before Curr) is registered in ascending order of difference from the POC of the current image.
类似地创建图像(Short-term after Curr)的RefPicSetStCurrAfter列表和图像(Long-term)的RefPicSetLtCurr列表。此外,创建RefPicSetIvCurr列表,其中,按照预定的顺序来登记图像(Inter-layer)中的每个图像的图像识别信息。Similarly, a RefPicSetStCurrAfter list of the image (Short-term after Curr) and a RefPicSetLtCurr list of the image (Long-term) are created. In addition, a RefPicSetIvCurr list is created in which the image identification information of each image in the image (Inter-layer) is registered in a predetermined order.
对于RefPicSetStCurrBefore列表、RefPicSetStCurrAfter列表和RefPicSetLtCurr列表中登记的每条图像识别信息,可以设置used_by_curr。used_by_curr指示是否使用由该图像识别信息识别的图像作为当前图像的参考图像的候选。当used_by_curr指示使用图像作为当前图像的参考图像的候选时,used_by_curr为1,并且当used_by_curr指示不使用图像时,used_by_curr为0。For each piece of image identification information registered in the RefPicSetStCurrBefore list, the RefPicSetStCurrAfter list, and the RefPicSetLtCurr list, used_by_curr can be set. used_by_curr indicates whether the image identified by the image identification information is used as a candidate for the reference image of the current image. When used_by_curr indicates that the image is used as a candidate for the reference image of the current image, used_by_curr is 1, and when used_by_curr indicates that the image is not used, used_by_curr is 0.
在图10的示例中,将RefPicSetStCurrBefore列表和RefPicSetStCurrAfter列表的第一条图像识别信息和第二条图像识别信息以及RefPicSetLtCurr列表的第一条图像识别信息的used_by_curr设置为1。In the example of FIG. 10 , used_by_curr is set to 1 for the first and second pieces of image identification information in the RefPicSetStCurrBefore and RefPicSetStCurrAfter lists and the first piece of image identification information in the RefPicSetLtCurr list.
接下来,基于单独的列表来创建两个暂时列表即RefPicListTemp0列表和RefPicListTemp1列表,RefPicListTemp0列表优先登记按显示顺序在当前图像之前的参考图像的候选,并且RefPicListTemp1列表优先登记按显示顺序在当前图像之后的参考图像的候选。Next, two temporary lists, namely, RefPicListTemp0 list and RefPicListTemp1 list, are created based on separate lists. RefPicListTemp0 list prioritizes registering candidates for reference images that precede the current image in display order, and RefPicListTemp1 list prioritizes registering candidates for reference images that follow the current image in display order.
具体地,创建RefPicListTemp0列表,其按顺序登记used_by_curr被设置为1的RefPicSetStCurrBefore列表的图像识别信息、RefPicSetIvCurr列表中登记的图像识别信息、used_by_curr被设置为1的RefPicSetStCurrAfter列表的图像识别信息、以及used_by_curr被设置为1的RefPicSetLtCurr列表的图像识别信息。Specifically, the RefPicListTemp0 list is created, which sequentially registers image identification information of the RefPicSetStCurrBefore list with used_by_curr set to 1, image identification information registered in the RefPicSetIvCurr list, image identification information of the RefPicSetStCurrAfter list with used_by_curr set to 1, and image identification information of the RefPicSetLtCurr list with used_by_curr set to 1.
此外,创建RefPicListTemp1列表,其按顺序登记used_by_curr被设置为1的RefPicSetStCurrAfter列表的图像识别信息、used_by_curr被设置为1的RefPicSetStCurrBefore列表的图像识别信息、used_by_curr被设置为1的RefPicSetLtCurr列表的图像识别信息、以及RefPicSetIvCurr列表中登记的图像识别信息。Furthermore, a RefPicListTemp1 list is created which sequentially registers image identification information of the RefPicSetStCurrAfter list with used_by_curr set to 1, image identification information of the RefPicSetStCurrBefore list with used_by_curr set to 1, image identification information of the RefPicSetLtCurr list with used_by_curr set to 1, and image identification information registered in the RefPicSetIvCurr list.
接下来,根据需要来改变RefPicListTemp0列表和RefPicListTemp1列表中登记的图像识别信息的顺序(参考重排序)。Next, the order of the image identification information registered in the RefPicListTemp0 list and the RefPicListTemp1 list is changed as needed (refer to reordering).
最后,创建参考图像列表RefPicList0,其中,RefPicListTemp0列表中登记的从开头起算预定数目(图10的示例中为五个)的图像识别信息被从开头起按顺序登记。Finally, a reference picture list RefPicList0 is created in which a predetermined number (five in the example of FIG. 10 ) of image identification information from the head registered in the list RefPicListTemp0 are registered in order from the head.
此外,创建参考图像列表RefPicList1,其中,RefPicListTemp1列表中登记的从开头起算预定数目(图10的示例中为四个)的图像识别信息被从开头起按顺序登记。Furthermore, a reference image list RefPicList1 is created in which a predetermined number (four in the example of FIG. 10 ) of image identification information from the head registered in the list RefPicListTemp1 are registered in order from the head.
应当注意,通过从参考图像列表RefPicList0(RefPicList1)中登记的图像识别信息的数目中减去1而获得的值作为num_ref_idx_l0_active_minus1(num_ref_idx_l1_active_minus1)布置在切片(slice)首部中。It should be noted that a value obtained by subtracting 1 from the number of image identification information registered in the reference picture list RefPicList0 (RefPicList1) is arranged in the slice header as num_ref_idx_l0_active_minus1 (num_ref_idx_l1_active_minus1).
如图11中所示,在Intra BC和帧间编码被共通化的情况下,必须添加作为IntraBC中的参考图像的当前图像(CurrPic),作为参考图像的候选。As shown in FIG. 11 , when Intra BC and inter-frame coding are standardized, the current picture (CurrPic), which is a reference picture in IntraBC, must be added as a candidate for the reference picture.
在第一实施例中,如上所述,由于将当前图像定义为参考图像的候选,所以可以在参考图像列表创建处理中创建登记有当前图像的图像识别信息的当前图像列表(RefPicCurr)。因此,在参考图像列表中登记当前图像的图像识别信息。In the first embodiment, as described above, since the current image is defined as a candidate for a reference image, a current image list (RefPicCurr) in which the image identification information of the current image is registered can be created in the reference image list creation process. Therefore, the image identification information of the current image is registered in the reference image list.
然而,在Intra BC和帧间编码被简单共通化的情况下,不知道当前图像的图像识别信息被登记在参考图像列表的哪个位置。However, when Intra BC and inter-frame coding are simply unified, it is unknown at which position in the reference picture list the picture identification information of the current picture is registered.
同时,如图2中所示,Intra BC与帧间编码之间用于存储参考图像的目的地是不同的。因此,为了不徒劳无益地访问DRAM,当解码设备从编码设备获取参考图像列表内的参考图像的图像识别信息的索引时,解码设备需要识别参考图像是Intra BC和帧间编码中的哪一者中的参考图像。换言之,解码设备需要识别参考图像是当前图像和与当前图像不同的图像中的哪一者。Furthermore, as shown in Figure 2, the storage locations for reference images differ between Intra BC and Inter coding. Therefore, to avoid wasted DRAM access, when the decoding device obtains the index of image identification information for a reference image within the reference image list from the encoding device, it must identify whether the reference image is for Intra BC or Inter coding. In other words, the decoding device must identify whether the reference image is for the current image or a different image.
关于这一点,在第一实施例中,如图12中所示,在两个参考图像列表(RefPicListTemp0列表和RefPicListTemp1列表)的开头中登记当前图像列表中登记的当前图像的图像识别信息。In this regard, in the first embodiment, as shown in FIG. 12 , the image identification information of the current image registered in the current image list is registered in the beginnings of two reference image lists (RefPicListTemp0 list and RefPicListTemp1 list).
因此,在解码设备从编码设备中获取参考图像列表的开头中的索引的情况下,解码设备可以识别参考图像是当前图像,即Intra BC中的参考图像。因此,解码设备可以从高速缓冲存储器中读取当前图像作为参考图像而不访问DRAM。Therefore, when the decoding device obtains the index at the beginning of the reference picture list from the encoding device, the decoding device can recognize that the reference picture is the current picture, that is, the reference picture in the intra BC. Therefore, the decoding device can read the current picture as the reference picture from the cache memory without accessing the DRAM.
应当注意,可以仅在RefPicList0列表中登记当前图像的图像识别信息。此外,除了开头以外,还可以将登记当前图像的图像识别信息的位置设置为提前确定的任意预定位置如末尾端。It should be noted that only the image identification information of the current image may be registered in the list RefPicList0. In addition, the position where the image identification information of the current image is registered may be set to any predetermined position determined in advance, such as the end, other than the beginning.
(编码设备的第一实施例的构造示例)(Configuration Example of First Embodiment of Encoding Device)
图13是示出作为应用本公开的影像处理设备的编码设备的第一实施例的构造示例的框图。FIG. 13 is a block diagram showing a configuration example of a first embodiment of an encoding device as an image processing device to which the present disclosure is applied.
图13的编码设备50包括设置部51、编码部52和传输部53,并且通过根据HEVC的系统来对图像进行编码。An encoding device 50 of FIG. 13 includes a setting section 51 , an encoding section 52 , and a transmission section 53 , and encodes an image by a system according to HEVC.
编码的单元是具有递归层次结构的编码单元(CU)。具体地,通过将图像划分成具有固定尺寸的CTU(编码树单元)并且将CTU沿水平方向和竖直方向以任意次数划分为2来设置CU。CU的最大尺寸是LCU(最大编码单元),并且CU的最小尺寸是SCU(最小编码单元)。此外,将CU划分成PU或TU(变换单元)。The unit of coding is a coding unit (CU) having a recursive hierarchical structure. Specifically, a CU is set by dividing an image into CTUs (Coding Tree Units) of a fixed size and dividing the CTU into two any number of times in the horizontal and vertical directions. The maximum size of a CU is the LCU (Largest Coding Unit), and the minimum size of a CU is the SCU (Smallest Coding Unit). In addition, a CU is divided into PUs or TUs (Transform Units).
编码设备50的设置部51设置参数集,如SPS(序列参数集)、PPS(图像参数集)、VUI(视频可用信息)和SEI(补充增强信息)。SPS包括指定LCU和SCU的尺寸的信息、用于创建参考图像列表的参考图像列表信息等。The setting unit 51 of the encoding device 50 sets parameter sets such as SPS (Sequence Parameter Set), PPS (Picture Parameter Set), VUI (Video Usable Information), and SEI (Supplemental Enhancement Information). The SPS includes information specifying the sizes of LCU and SCU, reference picture list information for creating a reference picture list, and the like.
参考图像列表信息由例如指定单独列表和当前图像列表中登记的图像识别信息的信息、used_by_curr等构成。设置部51将所设置的参数集供给至编码部52。The reference picture list information is made up of, for example, information specifying picture identification information registered in the separate list and the current picture list, used_by_curr, etc. The setting section 51 supplies the set parameter set to the encoding section 52 .
对编码部52输入以帧为单位的图像。编码部52通过根据HEVC的系统对所输入的图像进行编码。此时,根据需要来使用从设置部51供给的参数集。编码部52根据编码而获得的编码数据和从设置部51供给的参数集来生成编码流,并且将编码流供给至传输部53。The encoding unit 52 receives an image in frames. It encodes the input image using the HEVC system. The parameter set supplied from the setup unit 51 is used as needed. The encoding unit 52 generates an encoded stream based on the encoded data obtained from the encoding and the parameter set supplied from the setup unit 51, and supplies the encoded stream to the transmission unit 53.
传输部53将从编码部52供给的编码流传输至稍后将描述的解码设备。The transmission section 53 transmits the encoded stream supplied from the encoding section 52 to a decoding device to be described later.
(编码部的构造示例)(Configuration Example of Encoding Unit)
图14是示出图13的编码部52的构造示例的框图。FIG14 is a block diagram showing a configuration example of the encoding section 52 of FIG13 .
图14的编码部52包括A/D转换部71、画面排序缓冲器72、计算部73、正交变换部74、量化部75、无损编码部76、累积缓冲器77、生成部78、逆量化部79、逆正交变换部80和相加部81。此外,编码部52包括滤波器82、帧存储器85、开关86、帧内预测部87、列表创建部88、运动预测/补偿部89、预测向量生成部90、差分向量生成部91、预测影像选择部92和速率控制部93。The encoding section 52 of FIG14 includes an A/D conversion section 71, a screen sorting buffer 72, a calculation section 73, an orthogonal transform section 74, a quantization section 75, a lossless encoding section 76, an accumulation buffer 77, a generation section 78, an inverse quantization section 79, an inverse orthogonal transform section 80, and an addition section 81. Furthermore, the encoding section 52 includes a filter 82, a frame memory 85, a switch 86, an intra-frame prediction section 87, a list creation section 88, a motion prediction/compensation section 89, a prediction vector generation section 90, a difference vector generation section 91, a prediction picture selection section 92, and a rate control section 93.
编码部52的A/D转换部71对作为编码对象而输入的以帧为单位的图像执行A/D转换。A/D转换部71将作为转换后的数字信号的图像输出至画面排序缓冲器72以将其存储在画面排序缓冲器72中。The A/D conversion unit 71 of the encoding unit 52 performs A/D conversion on the frame-by-frame image input as the encoding target, and outputs the converted image as a digital signal to the screen sorting buffer 72 to store it in the screen sorting buffer 72.
画面排序缓冲器72根据GOP(图像组)结构将按照显示顺序存储的以帧为单位的图像排序成编码顺序。画面排序缓冲器72将所排序的图像中的每个图像作为当前图像输出至计算部73、帧内预测部87和运动预测/补偿部89。The picture sorting buffer 72 sorts the pictures stored in the display order in units of frames into the encoding order according to the GOP (Group of Picture) structure. The picture sorting buffer 72 outputs each of the sorted pictures as the current picture to the calculation section 73, the intra prediction section 87, and the motion prediction/compensation section 89.
计算部73通过从由画面排序缓冲器72供给的当前图像中减去由预测影像选择部92供给的预测影像来执行编码。计算部73将所得的图像作为残差信息而输出至正交变换部74。应当注意,在不从预测影像选择部92供给预测影像的情况下,计算部73在不改变从画面排序缓冲器72读取的当前图像的情况下将其作为残差信息而输出至正交变换部74。The calculation unit 73 performs encoding by subtracting the predicted image supplied by the predicted image selection unit 92 from the current image supplied by the screen sorting buffer 72. The calculation unit 73 outputs the resulting image as residual information to the orthogonal transformation unit 74. It should be noted that when the predicted image is not supplied from the predicted image selection unit 92, the calculation unit 73 outputs the current image read from the screen sorting buffer 72 as residual information to the orthogonal transformation unit 74 without changing it.
正交变换部74以TU为单位对来自计算部73的残差信息执行正交变换。正交变换部74将作为正交变换结果所获得的正交变换系数供给至量化部75。The orthogonal transform section 74 performs an orthogonal transform on the residual information from the calculation section 73 in units of TUs. The orthogonal transform section 74 supplies an orthogonal transform coefficient obtained as a result of the orthogonal transform to the quantization section 75.
量化部75对从正交变换部74供给的正交变换系数进行量化。量化部75将经量化的正交变换系数供给至无损编码部76。The quantization section 75 quantizes the orthogonal transform coefficient supplied from the orthogonal transform section 74. The quantization section 75 supplies the quantized orthogonal transform coefficient to the lossless encoding section 76.
无损编码部76从帧内预测部87获取指示最佳帧内预测模式的帧内预测模式信息。此外,无损编码部76从运动预测/补偿部89获取指示最佳帧间预测模式的帧间预测模式信息、参考图像的索引等,并且从差分向量生成部91获取运动向量信息。此外,无损编码部76从滤波器82获取关于自适应偏移滤波处理的偏移滤波信息。The lossless encoding section 76 acquires intra-prediction mode information indicating the optimal intra-prediction mode from the intra-prediction section 87. Furthermore, the lossless encoding section 76 acquires inter-prediction mode information indicating the optimal inter-prediction mode, an index of a reference image, and the like from the motion prediction/compensation section 89, and acquires motion vector information from the difference vector generation section 91. Furthermore, the lossless encoding section 76 acquires offset filter information regarding the adaptive offset filter process from the filter 82.
无损编码部76对从量化部75供给的经量化的正交变换系数执行无损编码,如可变长编码(例如,CAVLC(上下文自适应可变长编码)等)和算术编码(例如,CABAC(上下文自适应二进制算术编码)等)。The lossless encoding unit 76 performs lossless encoding such as variable length coding (e.g., CAVLC (Context Adaptive Variable Length Coding), etc.) and arithmetic coding (e.g., CABAC (Context Adaptive Binary Arithmetic Coding), etc.) on the quantized orthogonal transform coefficients supplied from the quantization unit 75.
此外,无损编码部76将帧内预测模式信息或帧间预测模式信息、运动向量信息、参考图像的索引、偏移滤波信息等作为关于编码的编码信息而对其执行无损编码。无损编码部76将经无损编码的编码信息、通过从参考图像列表的登记数中减去1而获得的预定数(num_ref_idx_lo_minus1,num_ref_idx_lo_minus1)等布置在切片首部等中。Furthermore, the lossless encoding section 76 performs lossless encoding on intra prediction mode information or inter prediction mode information, motion vector information, reference image index, offset filter information, and the like as encoding information related to encoding. The lossless encoding section 76 places the lossless encoded encoding information, a predetermined number (num_ref_idx_lo_minus1, num_ref_idx_lo_minus1) obtained by subtracting 1 from the number of registrations in the reference image list, and the like in a slice header or the like.
无损编码部76将切片首部添加至从量化部75供给的正交变换系数中,并且然后将所得的数据作为编码数据供给至累积缓冲器77。The lossless encoding section 76 adds a slice header to the orthogonal transform coefficient supplied from the quantization section 75 , and then supplies the resultant data to the accumulation buffer 77 as encoded data.
累积缓冲器77暂时存储从无损编码部76供给的编码数据。此外,累积缓冲器77将所存储的编码数据供给至生成部78。The accumulation buffer 77 temporarily stores the encoded data supplied from the lossless encoding section 76. Furthermore, the accumulation buffer 77 supplies the stored encoded data to the generation section 78.
生成部78根据从图13的设置部51供给的参数集和从累积缓冲器77供给的编码数据来生成编码流,并且将编码流供给至图13的传输部53。The generation section 78 generates an encoded stream from the parameter set supplied from the setting section 51 of FIG. 13 and the encoded data supplied from the accumulation buffer 77 , and supplies the encoded stream to the transmission section 53 of FIG. 13 .
此外,从量化部75输出的经量化的正交变换系数也被输入至逆量化部79。逆量化部79通过与量化部75的量化方法对应的方法对由量化部75量化的正交变换系数进行逆量化。逆量化部79将作为逆量化结果而获得的正交变换系数供给至逆正交变换部80。Furthermore, the quantized orthogonal transform coefficients output from the quantization section 75 are also input to the inverse quantization section 79. The inverse quantization section 79 inversely quantizes the orthogonal transform coefficients quantized by the quantization section 75 using a method corresponding to the quantization method of the quantization section 75. The inverse quantization section 79 supplies the orthogonal transform coefficients obtained as a result of the inverse quantization to the inverse orthogonal transform section 80.
逆正交变换部80以TU为单位通过与正交变换部74的正交变换方法对应的方法对从逆量化部79供给的正交变换系数执行逆正交变换。逆正交变换部80将所得的残差信息供给至相加部81。The inverse orthogonal transform section 80 performs inverse orthogonal transform on the orthogonal transform coefficients supplied from the inverse quantization section 79 in units of TUs by a method corresponding to the orthogonal transform method of the orthogonal transform section 74 . The inverse orthogonal transform section 80 supplies the resulting residual information to the addition section 81 .
相加部81将从逆正交变换部80供给的残差信息和从预测影像选择部92供给的预测影像相加,以对当前图像进行局部解码。应当注意,在不从预测影像选择部92供给预测影像的情况下,相加部81将从逆正交变换部80供给的残差信息设置为解码结果。相加部81将局部解码的当前图像供给至帧存储器85。此外,相加部81将所有区域都被解码的当前图像作为编码图像供给至滤波器82。The addition unit 81 adds the residual information supplied from the inverse orthogonal transform unit 80 and the predicted image supplied from the predicted image selection unit 92 to locally decode the current image. It should be noted that, if no predicted image is supplied from the predicted image selection unit 92, the addition unit 81 uses the residual information supplied from the inverse orthogonal transform unit 80 as the decoding result. The addition unit 81 supplies the locally decoded current image to the frame memory 85. Furthermore, the addition unit 81 supplies the current image, with all regions decoded, to the filter 82 as an encoded image.
滤波器82对从相加部81供给的编码图像执行滤波处理。具体地,滤波器82依次执行去块滤波处理和自适应偏移滤波(SAO(采样自适应偏移))处理。滤波器82将经受滤波处理之后的编码图像供给至帧存储器85。此外,滤波器82将指示所执行的自适应偏移滤波处理的偏移和种类的信息作为偏移滤波信息供给至无损编码部76。The filter 82 performs filtering processing on the encoded image supplied from the addition section 81. Specifically, the filter 82 sequentially performs deblocking filtering processing and adaptive offset filtering (SAO (Sample Adaptive Offset)) processing. The filter 82 supplies the encoded image after the filtering processing to the frame memory 85. In addition, the filter 82 supplies information indicating the offset and type of the adaptive offset filtering processing performed to the lossless encoding section 76 as offset filter information.
帧存储器85由例如高速缓冲存储器和DRAM构成。帧存储器85将从相加部81供给的当前图像存储在高速缓冲存储器中,并且将从滤波器82供给的编码图像存储在DRAM中。将与高速缓冲存储器中存储的当前图像中的当前块相邻的像素设置为周边像素,并且经由开关86供给至帧内预测部87。The frame memory 85 is composed of, for example, a cache memory and a DRAM. The frame memory 85 stores the current image supplied from the adding section 81 in the cache memory, and stores the encoded image supplied from the filter 82 in the DRAM. Pixels adjacent to the current block in the current image stored in the cache memory are set as peripheral pixels and supplied to the intra prediction section 87 via the switch 86.
此外,将高速缓冲存储器中存储的当前图像和DRAM中存储的编码图像设置为参考图像并且经由开关86输出至运动预测/补偿部89。Furthermore, the current image stored in the cache memory and the encoded image stored in the DRAM are set as reference images and output to the motion prediction/compensation section 89 via the switch 86 .
帧内预测部87通过使用经由开关86从帧存储器85读取的周边像素来在所有候选帧内预测模式下对当前块执行帧内预测处理。The intra prediction section 87 performs intra prediction processing on the current block in all candidate intra prediction modes by using peripheral pixels read from the frame memory 85 via the switch 86 .
此外,帧内预测部87基于从画面排序缓冲器72读取的当前图像和作为帧内预测处理的结果生成的预测影像来计算所有候选帧内预测模式的代价函数值(稍后将描述其细节)。然后,帧内预测部87将代价函数值最小的帧内预测模式确定为最佳帧内预测模式。Furthermore, the intra prediction unit 87 calculates cost function values (details of which will be described later) for all candidate intra prediction modes based on the current image read from the screen sorting buffer 72 and the predicted image generated as a result of the intra prediction process. The intra prediction unit 87 then determines the intra prediction mode with the smallest cost function value as the optimal intra prediction mode.
帧内预测部87将在最佳帧内预测模式下生成的预测影像以及相应的代价函数值供给至预测影像选择部92。在预测影像选择部92向帧内预测部87通知选择在最佳帧内预测模式下生成的预测影像的情况下,帧内预测部87将帧内预测模式信息供给至无损编码部76。The intra prediction unit 87 supplies the predicted image generated in the optimal intra prediction mode and the corresponding cost function value to the predicted image selection unit 92. When the predicted image selection unit 92 notifies the intra prediction unit 87 of the selection of the predicted image generated in the optimal intra prediction mode, the intra prediction unit 87 supplies the intra prediction mode information to the lossless encoding unit 76.
应当注意,代价函数值也被称为RD(速率失真)代价,并且例如基于如JM(联合模型)中所确定的高复杂度模式或低复杂度模式的技术来计算,JM是H.264/AVC系统中的参考软件。应当注意,H.264/AVC系统中的参考软件被公开于http://iphome.hhi.de/suehring/tml/index.htm。It should be noted that the cost function value is also called RD (Rate Distortion) cost and is calculated based on the technique of High Complexity Mode or Low Complexity Mode as determined in JM (Joint Model), which is reference software in the H.264/AVC system. It should be noted that the reference software in the H.264/AVC system is disclosed at http://iphome.hhi.de/suehring/tml/index.htm.
具体地,在采用高复杂度模式作为计算代价函数值的技术的情况下,所有候选预测模式暂时经受至解码的处理,并且针对每个预测模式计算由下式(1)表示的代价函数值。Specifically, in the case of adopting the High Complexity Mode as a technique for calculating a cost function value, all candidate prediction modes are temporarily subjected to processing up to decoding, and a cost function value expressed by the following equation (1) is calculated for each prediction mode.
[数学式1][Mathematical formula 1]
Cost(Mode)=D+λ·R…(1)Cost(Mode)=D+λ·R…(1)
D表示原始影像与解码影像之间的差分(失真),R表示也包括正交变换系数的生成代码的量,并且λ表示作为量化参数QP的函数而给出的拉格朗日乘数。D represents the difference (distortion) between the original image and the decoded image, R represents the amount of generated code including the orthogonal transform coefficient, and λ represents the Lagrange multiplier given as a function of the quantization parameter QP.
同时,在采用低复杂度模式作为计算代价函数值的技术的情况下,针对所有候选预测模式执行预测影像的生成和编码信息的代码量的计算,并且针对每个预测模式计算由下式(2)表示的代价函数Cost(Mode)。At the same time, when the low complexity mode is adopted as the technology for calculating the cost function value, the generation of the predicted image and the calculation of the code amount of the encoding information are performed for all candidate prediction modes, and the cost function Cost(Mode) represented by the following formula (2) is calculated for each prediction mode.
[数学式2][Mathematical formula 2]
Cost(Mode)=D+QPtoQuant(QP)·Header_Bit …(2)Cost(Mode)=D+QPtoQuant(QP)·Header_Bit…(2)
D表示原始影像与预测影像之间的差分(失真),Header_Bit表示编码信息的代码量,并且QPtoQuant表示作为量化参数QP的函数而给出的函数。D represents the difference (distortion) between the original image and the predicted image, Header_Bit represents the code amount of the encoding information, and QPtoQuant represents a function given as a function of the quantization parameter QP.
在低复杂度模式下,仅需生成所有预测模式的预测影像,而不必生成解码影像。这导致较小的计算量。In low complexity mode, only the predicted images for all prediction modes need to be generated, without generating decoded images, which results in a smaller amount of computation.
列表创建部88基于由图13的设置部51设置的SPS中所包含的参考图像列表信息、布置在切片首部中的信息等,例如以切片为单位来执行上述参考图像列表创建处理。The list creation section 88 performs the above-described reference image list creation processing, for example, in units of slices, based on the reference image list information contained in the SPS set by the setting section 51 of FIG. 13 , information arranged in the slice header, and the like.
换言之,列表创建部88基于参考图像列表信息、布置在切片首部中的信息等依次执行单独列表的创建、暂时列表的创建、暂时列表中登记的图像识别信息的顺序的重新排列,以创建参考图像列表。然后,列表创建部88在参考图像列表的开头中登记当前图像的图像识别信息。In other words, the list creation unit 88 creates a reference picture list by sequentially creating a separate list, creating a temporary list, and rearranging the order of the image identification information registered in the temporary list based on the reference picture list information, the information arranged in the slice header, etc. The list creation unit 88 then registers the image identification information of the current picture at the beginning of the reference picture list.
此外,列表创建部88为参考图像列表中登记的每条图像识别信息设置SRTP或LRTP作为由该图像识别信息识别的图像的参考图像的类型。例如,列表创建部88(设置部)为当前图像的图像识别信息设置LTRP(用于长期参考)作为当前图像的类型。列表创建部88保存参考图像列表,并且还将参考图像列表供给至运动预测/补偿部89。Furthermore, the list creation section 88 sets SRTP or LRTP as the reference image type for each piece of image identification information registered in the reference image list. For example, the list creation section 88 (setting section) sets LTRP (for long-term reference) as the reference image type for the image identified by that image identification information. The list creation section 88 stores the reference image list and also supplies the reference image list to the motion prediction/compensation section 89.
运动预测/补偿部89在所有候选帧间预测模式下对当前块执行运动预测/补偿处理。具体地,基于从列表创建部88供给的参考图像列表,运动预测/补偿部89经由开关86从帧存储器85读取由该参考图像列表中登记的图像识别信息识别的图像作为参考图像的候选。The motion prediction/compensation unit 89 performs motion prediction/compensation processing on the current block in all candidate inter-frame prediction modes. Specifically, based on the reference image list supplied from the list creation unit 88, the motion prediction/compensation unit 89 reads an image identified by the image identification information registered in the reference image list from the frame memory 85 via the switch 86 as a candidate for the reference image.
基于来自画面排序缓冲器72的当前图像和作为参考图像的候选而读取的当前图像,运动预测/补偿部89以整数像素精度在所有候选帧间预测模式下检测当前块的IntraBC的运动向量。此外,基于来自画面排序缓冲器72的当前图像和除了作为参考图像的候选而读取的当前图像以外的图像,运动预测/补偿部89以分数像素精度在所有候选帧间预测模式下检测当前块的帧间编码的运动向量。The motion prediction/compensation section 89 detects the motion vector of IntraBC of the current block in all candidate inter prediction modes with integer pixel accuracy based on the current image from the picture sorting buffer 72 and the current image read as a candidate for the reference image. Furthermore, the motion prediction/compensation section 89 detects the motion vector of inter coding of the current block in all candidate inter prediction modes with fractional pixel accuracy based on the current image from the picture sorting buffer 72 and images other than the current image read as a candidate for the reference image.
然后,运动预测/补偿部89基于所检测的运动向量对参考图像的候选执行补偿处理,并且生成预测影像。应当注意,帧间预测模式是指示当前块的尺寸等的模式。Then, the motion prediction/compensation section 89 performs compensation processing on the candidate for the reference image based on the detected motion vector, and generates a predicted image. It should be noted that the inter prediction mode is a mode that indicates the size of the current block and the like.
此外,运动预测/补偿部89基于从画面排序缓冲器72供给的当前图像和预测影像来计算所有候选帧间预测模式的代价函数值和参考图像的候选。运动预测/补偿部89将代价函数值最小的帧间预测模式确定为最佳帧间预测模式。然后,运动预测/补偿部89将最小代价函数值和相应的预测影像供给至预测影像选择部92。Furthermore, the motion prediction/compensation unit 89 calculates the cost function values of all candidate inter-frame prediction modes and the candidate reference images based on the current image and the predicted image supplied from the screen sorting buffer 72. The motion prediction/compensation unit 89 determines the inter-frame prediction mode with the smallest cost function value as the optimal inter-frame prediction mode. The motion prediction/compensation unit 89 then supplies the minimum cost function value and the corresponding predicted image to the predicted image selection unit 92.
在预测影像选择部92向运动预测/补偿部89通知选择在最佳帧间预测模式下生成的预测影像的情况下,运动预测/补偿部89将与该预测影像对应的当前块的运动向量确定为当前运动向量,并且将运动向量供给至差分向量生成部91。此外,运动预测/补偿部89将与该预测影像对应的参考图像的候选确定为参考图像,并且将与该参考图像的图像识别信息在参考图像列表中的位置对应的索引供给至预测向量生成部90和无损编码部76。此外,运动预测/补偿部89将帧间预测模式信息供给至无损编码部76。When the predicted image selection unit 92 notifies the motion prediction/compensation unit 89 of the selection of the predicted image generated in the optimal inter-frame prediction mode, the motion prediction/compensation unit 89 determines the motion vector of the current block corresponding to the predicted image as the current motion vector and supplies the motion vector to the difference vector generation unit 91. Furthermore, the motion prediction/compensation unit 89 determines a candidate reference image corresponding to the predicted image as the reference image and supplies an index corresponding to the position of the image identification information of the reference image in the reference image list to the prediction vector generation unit 90 and the lossless encoding unit 76. Furthermore, the motion prediction/compensation unit 89 supplies the inter-frame prediction mode information to the lossless encoding unit 76.
预测向量生成部90基于从运动预测/补偿部89供给的索引对登记有参考图像的每个参考图像列表生成当前运动向量的预测向量列表。The prediction vector generation unit 90 generates a prediction vector list of the current motion vector for each reference image list in which a reference image is registered, based on the index supplied from the motion prediction/compensation unit 89 .
具体地,预测向量生成部90基于索引从保存在列表创建部88中的参考图像列表读取与该索引对应的参考图像的类型,并且保存该类型。预测向量生成部90按照预定顺序将空间方向候选块设置为要处理的候选块,并且按照预定顺序将时间方向候选块设置为要处理的候选块。Specifically, the prediction vector generation unit 90 reads the type of the reference image corresponding to the index from the reference image list stored in the list creation unit 88 based on the index and stores the type. The prediction vector generation unit 90 sets the spatial direction candidate blocks as candidate blocks to be processed in a predetermined order, and sets the temporal direction candidate blocks as candidate blocks to be processed in a predetermined order.
预测向量生成部90将保存在其中的要处理的候选块的参考图像的类型与从列表创建部88读取的当前块的参考图像的类型进行比较。在那些类型彼此匹配的情况下,预测向量生成部90将要处理的候选块设置成可用。在那些类型彼此不匹配的情况下,预测向量生成部90将要处理的候选块设置成不可用。The prediction vector generation section 90 compares the type of the reference image of the candidate block to be processed stored therein with the type of the reference image of the current block read from the list creation section 88. If the types match each other, the prediction vector generation section 90 sets the candidate block to be processed as available. If the types do not match each other, the prediction vector generation section 90 sets the candidate block to be processed as unavailable.
在将要处理的候选块设置成可用的情况下,预测向量生成部90通过使用作为要处理的候选块的运动向量的参考运动向量的候选来生成当前运动向量的预测向量。然后,预测向量生成部90生成预测向量列表,该预测向量列表登记预定数目的空间方向候选块和时间方向候选块的所生成的预测向量。应当注意,所生成的预测向量的数目未达到预定数目,将零向量等登记在预测向量列表中。预测向量生成部90将预测向量列表供给至差分向量生成部91。When the candidate block to be processed is set to be available, the prediction vector generation unit 90 generates a prediction vector for the current motion vector by using a candidate reference motion vector for the motion vector of the candidate block to be processed. The prediction vector generation unit 90 then generates a prediction vector list that registers the generated prediction vectors for a predetermined number of spatial candidate blocks and temporal candidate blocks. It should be noted that if the number of generated prediction vectors does not reach the predetermined number, a zero vector or the like is registered in the prediction vector list. The prediction vector generation unit 90 supplies the prediction vector list to the difference vector generation unit 91.
差分向量生成部91生成预定数目的预测向量中的每个预测向量之间的差分向量和当前运动向量以对当前运动向量执行预测编码,该预定数目的预测向量登记在从预测向量生成部90供给的预测向量列表中。差分向量生成部91将差分向量的最小值和与相应预测向量在预测向量列表中的位置对应的索引供给至无损编码部76。The difference vector generation section 91 generates a difference vector between each of a predetermined number of prediction vectors registered in the prediction vector list supplied from the prediction vector generation section 90 and the current motion vector to perform prediction encoding on the current motion vector. The difference vector generation section 91 supplies the minimum value of the difference vectors and an index corresponding to the position of the corresponding prediction vector in the prediction vector list to the lossless encoding section 76.
基于从帧内预测部87和运动预测/补偿部89供给的代价函数值,预测影像选择部92将在最佳帧内预测模式和最佳帧间预测模式中具有最小相应代价函数值的模式确定为最佳预测模式。然后,预测影像选择部92将最佳预测模式的预测影像供给至计算部73和相加部81。此外,预测影像选择部92向帧内预测部87或运动预测/补偿部89通知最佳预测模式的预测影像的选择。Based on the cost function values supplied from the intra prediction unit 87 and the motion prediction/compensation unit 89, the predicted image selection unit 92 determines the mode with the smallest corresponding cost function value among the optimal intra prediction mode and the optimal inter prediction mode as the optimal prediction mode. The predicted image selection unit 92 then supplies the predicted image of the optimal prediction mode to the calculation unit 73 and the addition unit 81. The predicted image selection unit 92 also notifies the intra prediction unit 87 or the motion prediction/compensation unit 89 of the selection of the predicted image of the optimal prediction mode.
速率控制部93基于在累积缓冲器77中累积的编码数据来控制量化部75的量化操作的速率,使得不会发生上溢或下溢。The rate control section 93 controls the rate of the quantization operation of the quantization section 75 based on the encoded data accumulated in the accumulation buffer 77 so that overflow or underflow does not occur.
(关于编码设备的处理的描述)(Description of Processing of Encoding Device)
图15是用于描述图13的编码设备50的流生成处理的流程图。FIG. 15 is a flowchart for describing a stream generation process of the encoding device 50 of FIG. 13 .
在图15的步骤S11中,编码设备50的设置部51设置参数集。设置部51将所设置的参数集供给至编码部52。15 , the setting section 51 of the encoding device 50 sets a parameter set. The setting section 51 supplies the set parameter set to the encoding section 52.
在步骤S12中,编码部52通过根据HEVC的系统对从外部输入的以帧为单位的编码图像执行编码处理。将参照稍后将描述的图16和图17来描述编码处理的细节。In step S12, the encoding section 52 performs encoding processing on the encoding image in units of frames input from the outside by the system according to HEVC. The details of the encoding processing will be described with reference to FIG16 and FIG17 which will be described later.
在步骤S13中,编码部52的生成部78(图14)根据从设置部51供给的参数集和所累积的编码数据来生成编码流,并且将编码流供给至传输部53。In step S13 , the generation section 78 ( FIG. 14 ) of the encoding section 52 generates an encoded stream from the parameter set supplied from the setting section 51 and the accumulated encoded data, and supplies the encoded stream to the transmission section 53 .
在步骤S14中,传输部53将从设置部51供给的编码流传输至稍后将描述的解码设备,并且然后终止处理。In step S14 , the transmission section 53 transmits the encoded stream supplied from the setting section 51 to a decoding device to be described later, and then terminates the processing.
图16和图17是用于描述图15的步骤S12中的编码处理的细节的流程图。16 and 17 are flowcharts for describing details of the encoding process in step S12 of FIG. 15 .
在图16的步骤S31中,编码部52的A/D转换部71对作为编码对象而输入的以帧为单位的图像执行A/D转换,并且将作为转换后的数字信号的图像输出至画面排序缓冲器72以将其存储在画面排序缓冲器72中。In step S31 of FIG. 16 , the A/D conversion section 71 of the encoding section 52 performs A/D conversion on the image in frame units input as the encoding object, and outputs the image as the converted digital signal to the screen sorting buffer 72 to store it in the screen sorting buffer 72 .
在步骤S32中,画面排序缓冲器72根据GOP结构将按照显示顺序存储的以帧为单位的图像排序成编码顺序。画面排序缓冲器72将排序后的以帧为单位的图像中的每个图像作为当前图像供给至计算部73、帧内预测部87和运动预测/补偿部89。In step S32, the picture sorting buffer 72 sorts the images stored in the display order into the encoding order according to the GOP structure. The picture sorting buffer 72 supplies each of the sorted frame-based images as the current image to the calculation unit 73, the intra-frame prediction unit 87, and the motion prediction/compensation unit 89.
在步骤S33中,列表创建部88基于SPS中所包含的参考图像列表信息、布置在切片首部中的信息等,例如以切片为单位来执行参考图像列表创建处理。将参照图18来描述参考图像列表创建处理的细节。In step S33 , the list creation section 88 performs reference picture list creation processing, for example, in units of slices, based on the reference picture list information contained in the SPS, information arranged in the slice header, etc. Details of the reference picture list creation processing will be described with reference to FIG.
在步骤S34中,帧内预测部87通过使用经由开关86从帧存储器85读取的周边像素在所有候选帧内预测模式下对当前块执行帧内预测处理。此外,帧内预测部87基于来自画面排序缓冲器72的当前图像和作为帧内预测处理的结果生成的预测影像来计算所有候选帧内预测模式的代价函数值。然后,帧内预测部87将代价函数值最小的帧内预测模式确定为最佳帧内预测模式。帧内预测部87将在最佳帧内预测模式下生成的预测影像以及相应的代价函数值供给至预测影像选择部92。In step S34, the intra prediction unit 87 performs intra prediction processing on the current block in all candidate intra prediction modes using the surrounding pixels read from the frame memory 85 via the switch 86. Furthermore, the intra prediction unit 87 calculates cost function values for all candidate intra prediction modes based on the current image from the screen sorting buffer 72 and the predicted image generated as a result of the intra prediction processing. The intra prediction unit 87 then determines the intra prediction mode with the smallest cost function value as the optimal intra prediction mode. The intra prediction unit 87 supplies the predicted image generated in the optimal intra prediction mode and the corresponding cost function value to the predicted image selection unit 92.
此外,运动预测/补偿部89基于从列表创建部88供给的参考图像列表在所有候选帧间预测模式下对当前块执行运动预测/补偿处理。此外,运动预测/补偿部89基于从画面排序缓冲器72供给的当前图像和作为运动预测/补偿处理的结果生成的预测影像来计算所有候选帧间预测模式的代价函数值和参考图像。运动预测/补偿部89将代价函数值最小的帧间预测模式确定为最佳帧间预测模式。然后,运动预测/补偿部89将最小代价函数值和相应的预测影像供给至预测影像选择部92。Furthermore, the motion prediction/compensation unit 89 performs motion prediction/compensation processing on the current block in all candidate inter-frame prediction modes based on the reference image list supplied from the list creation unit 88. Furthermore, the motion prediction/compensation unit 89 calculates cost function values and reference images for all candidate inter-frame prediction modes based on the current image supplied from the screen sorting buffer 72 and the predicted image generated as a result of the motion prediction/compensation processing. The motion prediction/compensation unit 89 determines the inter-frame prediction mode with the smallest cost function value as the optimal inter-frame prediction mode. The motion prediction/compensation unit 89 then supplies the smallest cost function value and the corresponding predicted image to the predicted image selection unit 92.
在步骤S35中,预测影像选择部92基于从帧内预测部87和运动预测/补偿部89供给的代价函数值将在最佳帧内预测模式和最佳帧间预测模式中具有最小代价函数值的模式确定为最佳预测模式。然后,预测影像选择部92将最佳预测模式的预测影像供给至计算部73和相加部81。In step S35, the predicted image selection unit 92 determines the mode having the smallest cost function value between the optimal intra prediction mode and the optimal inter prediction mode as the optimal prediction mode based on the cost function values supplied from the intra prediction unit 87 and the motion prediction/compensation unit 89. The predicted image selection unit 92 then supplies the predicted image of the optimal prediction mode to the calculation unit 73 and the addition unit 81.
在步骤S36中,预测影像选择部92确定最佳预测模式是否为最佳帧间预测模式。在确定步骤S36中的最佳预测模式是最佳帧间预测模式的情况下,预测影像选择部92向运动预测/补偿部89通知选择在最佳帧间预测模式下生成的预测影像。In step S36, the predicted image selection unit 92 determines whether the optimal prediction mode is the optimal inter prediction mode. If the optimal prediction mode is determined to be the optimal inter prediction mode in step S36, the predicted image selection unit 92 notifies the motion prediction/compensation unit 89 of the selection of the predicted image generated in the optimal inter prediction mode.
运动预测/补偿部89根据该通知将与预测影像对应的当前块的运动向量确定为当前运动向量,并且将当前运动向量供给至差分向量生成部91。此外,运动预测/补偿部89将与预测影像对应的参考图像的候选确定为参考图像,并且将与该参考图像的图像识别信息在参考图像列表中的位置对应的索引供给至预测向量生成部90。In response to the notification, the motion prediction/compensation unit 89 determines the motion vector of the current block corresponding to the predicted image as the current motion vector, and supplies the current motion vector to the difference vector generation unit 91. Furthermore, the motion prediction/compensation unit 89 determines a candidate reference image corresponding to the predicted image as the reference image, and supplies an index corresponding to the position of the image identification information of the reference image in the reference image list to the prediction vector generation unit 90.
在步骤S37中,预测向量生成部90基于从运动预测/补偿部89供给的索引执行生成当前运动向量的预测向量列表的预测向量列表生成处理。稍后将参照图19来描述预测向量列表生成处理的细节。In step S37, the prediction vector generation section 90 performs a prediction vector list generation process of generating a prediction vector list of the current motion vector based on the index supplied from the motion prediction/compensation section 89. Details of the prediction vector list generation process will be described later with reference to FIG.
在步骤S38中,差分向量生成部91生成预定数目的预测向量中的每个预测向量和当前运动向量之间的差分向量以对当前运动向量执行预测编码,该预定数目的预测向量登记在从预测向量生成部90供给的预测向量列表中。然后,差分向量生成部91生成差分向量的最小值和与相应预测向量在预测向量列表中的位置对应的索引作为运动向量信息。In step S38, the differential vector generation section 91 generates a differential vector between each of a predetermined number of prediction vectors registered in the prediction vector list supplied from the prediction vector generation section 90 and the current motion vector to perform predictive encoding on the current motion vector. Then, the differential vector generation section 91 generates the minimum value of the differential vectors and an index corresponding to the position of the corresponding prediction vector in the prediction vector list as motion vector information.
在步骤S39中,运动预测/补偿部89将帧间预测模式信息和参考图像的索引供给至无损编码部76,并且差分向量生成部91将运动向量信息供给至无损编码部76。然后,处理前进至步骤S41。In step S39, the motion prediction/compensation section 89 supplies the inter prediction mode information and the index of the reference image to the lossless encoding section 76, and the difference vector generation section 91 supplies the motion vector information to the lossless encoding section 76. Then, the process proceeds to step S41.
同时,在步骤S36中确定最佳预测模式不是最佳帧间预测模式的情况下,也就是说,在最佳预测模式是最佳帧内预测模式的情况下,预测影像选择部92向帧内预测部87通知选择在最佳帧内预测模式下生成的预测影像。在步骤S40中,帧内预测部87将帧内预测模式信息供给至无损编码部76,并且处理前进至步骤S41。Meanwhile, if it is determined in step S36 that the optimal prediction mode is not the optimal inter prediction mode, that is, if the optimal prediction mode is the optimal intra prediction mode, the predicted image selection unit 92 notifies the intra prediction unit 87 of the selection of the predicted image generated in the optimal intra prediction mode. In step S40, the intra prediction unit 87 supplies the intra prediction mode information to the lossless encoding unit 76, and the process proceeds to step S41.
在步骤S41中,计算部73通过从由画面排序缓冲器72供给的当前图像中减去由预测影像选择部92供给的预测影像来执行编码。计算部73将所得的图像作为残差信息而输出至正交变换部74。In step S41, the calculation unit 73 performs encoding by subtracting the predicted image supplied from the predicted image selection unit 92 from the current image supplied from the screen sorting buffer 72. The calculation unit 73 outputs the obtained image to the orthogonal transformation unit 74 as residual information.
在步骤S42中,正交变换部74以TU为单位对来自计算部73的残差信息执行正交变换,并且将所得的正交变换系数供给至量化部75。In step S42 , the orthogonal transform section 74 performs orthogonal transform on the residual information from the calculation section 73 in units of TUs, and supplies the resultant orthogonal transform coefficients to the quantization section 75 .
在步骤S43中,量化部75对从正交变换部74供给的正交变换系数进行量化,并且将经量化的正交变换系数供给至无损编码部76和逆量化部79。In step S43 , the quantization section 75 quantizes the orthogonal transform coefficient supplied from the orthogonal transform section 74 , and supplies the quantized orthogonal transform coefficient to the lossless encoding section 76 and the inverse quantization section 79 .
在图17的步骤S44中,逆量化部79对由量化部75供给的经量化的系数进行逆量化,并且将所得的正交变换系数供给至逆正交变换部80。In step S44 of FIG. 17 , the inverse quantization section 79 inversely quantizes the quantized coefficients supplied from the quantization section 75 , and supplies the resultant orthogonal transform coefficients to the inverse orthogonal transform section 80 .
在步骤S45中,逆正交变换部80以TU为单位对从逆量化部79供给的正交变换系数执行逆正交变换,并且将所得的残差信息供给至相加部81。In step S45 , the inverse orthogonal transform section 80 performs inverse orthogonal transform on the orthogonal transform coefficient supplied from the inverse quantization section 79 in units of TUs, and supplies the resultant residual information to the addition section 81 .
在步骤S46中,相加部81将从逆正交变换部80供给的残差信息和从预测影像选择部92供给的预测影像相加,以对当前图像进行局部解码。相加部81将局部解码的当前图像供给至帧存储器85。此外,相加部81将所有区域都被解码的当前图像作为编码图像供给至滤波器82。In step S46, the addition unit 81 locally decodes the current image by adding the residual information supplied from the inverse orthogonal transform unit 80 and the predicted image supplied from the predicted image selection unit 92. The addition unit 81 supplies the locally decoded current image to the frame memory 85. Furthermore, the addition unit 81 supplies the current image, in which all regions have been decoded, to the filter 82 as a coded image.
在步骤S47中,滤波器82对从相加部81供给的编码图像执行去块滤波处理。In step S47 , the filter 82 performs a deblocking filtering process on the encoded image supplied from the adding section 81 .
在步骤S48中,滤波器82针对每个LCU对经受去块滤波处理之后的编码图像执行自适应偏移滤波处理。滤波器82将所得的编码图像供给至帧存储器85。此外,滤波器82针对每个LCU将偏移滤波信息供给至无损编码部76。In step S48, the filter 82 performs adaptive offset filtering on the encoded image after deblocking filtering for each LCU. The filter 82 supplies the resulting encoded image to the frame memory 85. In addition, the filter 82 supplies offset filter information to the lossless encoding unit 76 for each LCU.
在步骤S49中,帧存储器85将从相加部81供给的当前图像存储在高速缓冲存储器中,并且将从滤波器82供给的编码图像存储在DRAM中。将与高速缓冲存储器中存储的当前图像中的当前块相邻的像素设置为周边像素,并且经由开关86供给至帧内预测部87。此外,将高速缓冲存储器中存储的当前图像和DRAM中存储的编码图像设置为参考图像并且经由开关86输出至运动预测/补偿部89。In step S49, the frame memory 85 stores the current image supplied from the addition section 81 in the cache memory, and stores the encoded image supplied from the filter 82 in the DRAM. Pixels adjacent to the current block in the current image stored in the cache memory are set as peripheral pixels, and are supplied to the intra prediction section 87 via the switch 86. Furthermore, the current image stored in the cache memory and the encoded image stored in the DRAM are set as reference images and are output to the motion prediction/compensation section 89 via the switch 86.
在步骤S50中,无损编码部76对作为编码信息的帧内预测模式信息或帧间预测模式信息、运动向量信息、参考图像的索引、偏移滤波信息等执行无损编码。In step S50 , the lossless encoding section 76 performs lossless encoding on the intra prediction mode information or inter prediction mode information, motion vector information, an index of a reference image, offset filter information, and the like as encoding information.
在步骤S51中,无损编码部76对从量化部75供给的经量化的正交变换系数执行无损编码。然后,无损编码部76根据通过步骤S50的处理而无损编码的编码信息和无损编码的正交变换系数来生成编码数据,并且将编码数据供给至累积缓冲器77。In step S51, the lossless encoding section 76 performs lossless encoding on the quantized orthogonal transform coefficient supplied from the quantization section 75. Then, the lossless encoding section 76 generates encoded data from the encoding information losslessly encoded by the process of step S50 and the losslessly encoded orthogonal transform coefficient, and supplies the encoded data to the accumulation buffer 77.
在步骤S52中,累积缓冲器77暂时累积从无损编码部76供给的编码数据。In step S52 , the accumulation buffer 77 temporarily accumulates the encoded data supplied from the lossless encoding section 76 .
在步骤S53中,速率控制部93基于在累积缓冲器77中累积的编码数据来控制量化部75的量化操作的速率,使得不会发生上溢或下溢。In step S53 , the rate control section 93 controls the rate of the quantization operation of the quantization section 75 based on the encoded data accumulated in the accumulation buffer 77 so that overflow or underflow does not occur.
在步骤S54中,累积缓冲器77将所存储的编码数据输出至生成部78。然后,处理返回至图15的步骤S12,并且前进至步骤S13。In step S54, the accumulation buffer 77 outputs the stored encoded data to the generation section 78. Then, the process returns to step S12 of Fig. 15 and proceeds to step S13.
应当注意,出于简化描述的目的,在图16和图17的编码处理中恒定地执行帧内预测处理和运动预测/补偿处理,但是实际上,在一些情况下,取决于图像类型等执行所述处理中的任意处理。It should be noted that for the purpose of simplifying the description, intra-frame prediction processing and motion prediction/compensation processing are constantly performed in the encoding processing of Figures 16 and 17, but in fact, in some cases, any of the processing is performed depending on the image type, etc.
图18是用于描述图16的步骤S33中的参考图像列表创建处理的细节的流程图。FIG18 is a flowchart for describing the details of the reference image list creation processing in step S33 of FIG16 .
在图18的步骤S71中,列表创建部88针对参考图像的候选的每一种类创建4个单独的列表,即RefPicSetStCurrBefore列表、RefPicSetStCurrAfter列表、RefPicSetLtCurr列表和RefPicSetIvCurr列表。在每个单独列表的图像识别信息中,设置由该图像识别信息识别的图像的参考图像的类型。此外,针对RefPicSetStCurrBefore列表、RefPicSetStCurrAfter列表和RefPicSetLtCurr列表的每条图像识别信息设置used_by_curr。In step S71 of FIG18 , list creation unit 88 creates four separate lists for each type of reference image candidate: the RefPicSetStCurrBefore list, the RefPicSetStCurrAfter list, the RefPicSetLtCurr list, and the RefPicSetIvCurr list. The image identification information in each separate list specifies the type of reference image identified by that image identification information. Furthermore, used_by_curr is set for each piece of image identification information in the RefPicSetStCurrBefore list, the RefPicSetStCurrAfter list, and the RefPicSetLtCurr list.
在步骤S72中,列表创建部88创建下述当前图像列表:在该当前图像列表中登记有参考图像的类型被设置为LTRP的当前图像的图像识别信息。In step S72 , the list creation section 88 creates a current image list in which the image identification information of the current image whose type of reference image is set to LTRP is registered.
在步骤S73中,列表创建部88基于单独列表的图像识别信息和used_by_curr来创建两个暂时列表,即RefpicListTemp0列表和RefpicListTemp1列表。In step S73 , the list creation section 88 creates two temporary lists, ie, the RefpicListTemp0 list and the RefpicListTemp1 list, based on the image identification information and used_by_curr of the individual lists.
在步骤S74中,列表创建部88基于布置在切片首部中的ref_pic_list_modification来重新排列图像识别信息在暂时列表中的顺序,并且指定图像识别信息在暂时列表中的顺序。In step S74 , the list creation section 88 rearranges the order of the image identification information in the temporary list based on ref_pic_list_modification arranged in the slice header, and specifies the order of the image identification information in the temporary list.
在步骤S75中,列表创建部88基于每个暂时列表来创建参考图像列表,在参考图像列表中,在暂时列表中登记的从开头起算预定数目的图像识别信息被从开头起按顺序登记。In step S75 , the list creating section 88 creates, based on each temporary list, a reference image list in which a predetermined number of pieces of image identification information registered in the temporary list are registered in order from the head.
在步骤S76中,列表创建部88将当前图像列表中登记的当前图像的图像识别信息登记在参考图像列表的开头中。然后,处理返回至图16的步骤S33并且前进至步骤S34。In step S76, the list creation section 88 registers the image identification information of the current image registered in the current image list at the beginning of the reference image list. The process then returns to step S33 of FIG. 16 and proceeds to step S34.
图19是用于描述图16的步骤S37中的预测向量列表生成处理的细节的流程图。针对登记有参考图像的每个参考图像列表来执行预测向量列表生成处理。Fig. 19 is a flowchart for describing the details of the prediction vector list generation process in step S37 of Fig. 16. The prediction vector list generation process is performed for each reference image list in which a reference image is registered.
在图19的步骤S91中,预测向量生成部90将预定的候选块确定为要处理的候选块。在步骤S91的第一处理中,将预定的空间方向候选块确定为要处理的候选块。In step S91 of Fig. 19 , the prediction vector generation unit 90 determines a predetermined candidate block as a candidate block to be processed. In the first process of step S91, a predetermined spatial direction candidate block is determined as a candidate block to be processed.
在步骤S92中,预测向量生成部90基于从运动预测/补偿部89供给的索引从参考图像列表中读取与该索引对应的当前块的参考图像的类型,并且保存该类型。然后,预测向量生成部90确定当前块的参考图像的所读取的类型是否为STRP。In step S92, the prediction vector generation unit 90 reads the type of the reference image of the current block corresponding to the index from the reference image list based on the index supplied from the motion prediction/compensation unit 89, and stores the type. Then, the prediction vector generation unit 90 determines whether the read type of the reference image of the current block is STRP.
在步骤S92中确定当前块的参考图像的类型是STRP的情况下,处理前进至步骤S93。在步骤S93中,预测向量生成部90确定保存在其中的要处理的候选块的参考图像的类型是否为STRP。In the event that the type of the reference image of the current block is determined to be STRP in step S92, the process proceeds to step S93. In step S93, the prediction vector generation section 90 determines whether the type of the reference image of the candidate block to be processed stored therein is STRP.
在步骤S93中确定要处理的候选块的参考图像的类型是STRP的情况下,也就是说,在当前块的参考图像的类型和候选块的参考图像的类型均为STRP的情况下,处理前进至步骤S94。When it is determined in step S93 that the type of the reference image of the candidate block to be processed is STRP, that is, when the type of the reference image of the current block and the type of the reference image of the candidate block are both STRP, the processing proceeds to step S94.
在步骤S94中,预测向量生成部90将要处理的候选块设置成可用。在步骤S95中,预测向量生成部90基于当前块的参考图像与候选块的参考图像之间的POC的差分对作为要处理的候选块的运动向量的参考运动向量的候选执行按比例缩放,并且生成预测向量。然后,预测向量生成部90将该预测向量登记在预测向量列表中,并且处理前进至步骤S100。In step S94, the prediction vector generation unit 90 sets the candidate block to be processed as available. In step S95, the prediction vector generation unit 90 performs scaling on the candidate reference motion vector for the motion vector of the candidate block to be processed based on the difference in the POC between the reference image of the current block and the reference image of the candidate block, and generates a prediction vector. The prediction vector generation unit 90 then registers the prediction vector in the prediction vector list, and the process proceeds to step S100.
同时,在步骤S92中确定当前块的参考图像的类型不是STRP的情况下,也就是说,在当前块的参考图像的类型是LTRP的情况下,处理前进至步骤S96。Meanwhile, in a case where it is determined in step S92 that the type of the reference image of the current block is not STRP, that is, in a case where the type of the reference image of the current block is LTRP, the process proceeds to step S96.
在步骤S96中,与步骤S93中的处理类似,预测向量生成部90确定要处理的候选块的参考图像的类型是否为STRP。在步骤S96中确定要处理的候选块的参考图像的类型是STRP的情况下,也就是说,在当前块的参考图像的类型是LTRP并且候选块的参考图像的类型是STRP的情况下,处理前进至步骤S97。In step S96, similar to the process in step S93, the prediction vector generation section 90 determines whether the type of the reference image of the candidate block to be processed is STRP. In the case where it is determined in step S96 that the type of the reference image of the candidate block to be processed is STRP, that is, in the case where the type of the reference image of the current block is LTRP and the type of the reference image of the candidate block is STRP, the process proceeds to step S97.
在步骤S97中,预测向量生成部90将要处理的候选块设置成不可用,并且处理前进至步骤S100。In step S97 , the prediction vector generation section 90 sets the candidate block to be processed to be unavailable, and the process proceeds to step S100 .
同时,在步骤S93中确定要处理的候选块的参考图像的类型不是STRP的情况下,也就是说,在当前块的参考图像的类型是STRP并且候选块的参考图像的类型是LTRP的情况下,处理前进至步骤S97。因此,将要处理的候选块设置成不可用。Meanwhile, if it is determined in step S93 that the type of the reference image of the candidate block to be processed is not STRP, that is, if the type of the reference image of the current block is STRP and the type of the reference image of the candidate block is LTRP, the process proceeds to step S97. Therefore, the candidate block to be processed is set to unavailable.
此外,在步骤S96中确定要处理的候选块的参考图像的类型不是STRP的情况下,也就是说,在当前块的参考图像的类型和候选块的参考图像的类型均为LTRP的情况下,处理前进至步骤S98。In addition, when it is determined in step S96 that the type of the reference image of the candidate block to be processed is not STRP, that is, when the type of the reference image of the current block and the type of the reference image of the candidate block are both LTRP, the processing proceeds to step S98.
在步骤S98中,预测向量生成部90将要处理的候选块设置成可用。在步骤S99中,预测向量生成部90将作为要处理的候选块的运动向量的参考运动向量的候选在不改变的情况下生成为预测向量。然后,预测向量生成部90将该预测向量登记在预测向量列表中,并且处理前进至步骤S100。In step S98, the prediction vector generation unit 90 sets the candidate block to be processed as available. In step S99, the prediction vector generation unit 90 generates a prediction vector without changing the candidate reference motion vector for the motion vector of the candidate block to be processed. The prediction vector generation unit 90 then registers the prediction vector in the prediction vector list, and the process proceeds to step S100.
在步骤S100中,预测向量生成部90确定预定数目的预测向量是否登记在预测向量列表中。在步骤S100中确定尚未登记预定数目的预测向量的情况下,处理返回至步骤S91。将尚未被确定为要处理的候选块的预定的空间方向候选块或时间方向候选块确定为要处理的候选块,并且执行后续处理。In step S100, the prediction vector generation unit 90 determines whether a predetermined number of prediction vectors are registered in the prediction vector list. If it is determined in step S100 that the predetermined number of prediction vectors have not been registered, the process returns to step S91. A predetermined spatial candidate block or temporal candidate block that has not yet been determined as a candidate block to be processed is determined as a candidate block to be processed, and subsequent processing is performed.
同时,在步骤S100中确定登记了预定数目的预测向量的情况下,预测向量生成部90将预测向量列表供给至差分向量生成部91。然后,处理返回至图16的步骤S37,并且前进至步骤S38。Meanwhile, in the event that determination is made in step S100 that the predetermined number of prediction vectors are registered, the prediction vector generation section 90 supplies the prediction vector list to the difference vector generation section 91. Then, the process returns to step S37 of FIG16 and proceeds to step S38.
如上所述,在对Intra BC中使用的当前运动向量进行编码时,在当前块的参考图像的实际类型和候选块的参考图像的实际类型彼此不同的情况下,编码设备50将候选块设置成不可用。因此,其参考图像的实际类型与当前块的参考图像的实际类型不同的候选块的运动向量不用于生成预测向量。因此,差分向量变小,并且提高了编码效率。As described above, when encoding the current motion vector used in Intra BC, if the actual type of the reference image of the current block and the actual type of the reference image of the candidate block differ, the encoding device 50 sets the candidate block to be unavailable. Therefore, the motion vector of the candidate block whose actual type of reference image differs from the actual type of the reference image of the current block is not used to generate the prediction vector. As a result, the difference vector becomes smaller, and encoding efficiency is improved.
此外,编码设备50将其实际类型为“Intra BC”的当前块的参考图像的类型设置为LTRP。因此,在候选块的参考图像的实际类型是STRP的情况下,编码设备50将候选块设置成不可用。因此,能够提高Intra BC和帧间编码被共通化的情况下的编码效率,而不必大大地改变Intra BC和帧间编码未被共通化的情况下的HEVC。Furthermore, the encoding device 50 sets the reference image type of the current block, whose actual type is "Intra BC," to LTRP. Therefore, when the actual type of the reference image of the candidate block is STRP, the encoding device 50 sets the candidate block to be unavailable. This improves encoding efficiency when Intra BC and inter-frame coding are standardized, without significantly changing HEVC when Intra BC and inter-frame coding are not standardized.
此外,编码设备50将当前图像的图像识别信息登记在当前块的参考图像列表的预定位置中。因此,稍后将描述的解码设备可以基于与参考图像的图像识别信息在参考图像列表中的位置对应的索引来知道参考图像是否为当前图像。因此,在参考图像是当前图像的情况下,能够防止发生对DRAM的徒劳无益的访问。Furthermore, the encoding device 50 registers the image identification information of the current image in a predetermined position in the reference image list of the current block. Therefore, the decoding device, which will be described later, can determine whether the reference image is the current image based on the index corresponding to the position of the reference image's image identification information in the reference image list. Therefore, when the reference image is the current image, it is possible to prevent unnecessary access to the DRAM.
(解码设备的第一实施例的构造示例)(Configuration Example of First Embodiment of Decoding Device)
图20是示出作为应用本公开的影像处理设备的解码设备的第一实施例的构造示例的框图,解码设备对从图13的编码设备50传输的编码流进行解码。FIG. 20 is a block diagram showing a configuration example of a first embodiment of a decoding device as an image processing device to which the present disclosure is applied, which decodes an encoded stream transmitted from the encoding device 50 of FIG. 13 .
图20的解码设备110由接收部111、提取部112和解码部113构成。The decoding device 110 of FIG. 20 is composed of a receiving section 111 , an extracting section 112 , and a decoding section 113 .
解码设备110的接收部111接收从图13的编码设备50传输的编码流,并且将编码流供给至提取部112。The receiving section 111 of the decoding device 110 receives the encoded stream transmitted from the encoding device 50 of FIG. 13 , and supplies the encoded stream to the extracting section 112 .
提取部112从由接收部111供给的编码流中提取参数集和编码数据,并且将参数集和编码数据供给至解码部113。The extraction section 112 extracts a parameter set and encoded data from the encoded stream supplied from the reception section 111 , and supplies the parameter set and encoded data to the decoding section 113 .
解码部113通过根据HEVC的系统对从提取部112供给的编码数据进行解码。此时,解码部113还根据需要来参考从提取部112供给的参数集。解码部113输出作为解码结果获得的图像。The decoding unit 113 decodes the encoded data supplied from the extraction unit 112 using the HEVC system. At this time, the decoding unit 113 also refers to the parameter set supplied from the extraction unit 112 as needed. The decoding unit 113 outputs an image obtained as a result of the decoding.
(解码部的构造示例)(Configuration Example of Decoding Unit)
图21是示出图20的解码部113的构造示例的框图。FIG. 21 is a block diagram showing a configuration example of the decoding section 113 of FIG. 20 .
图21的解码部113包括累积缓冲器131、无损解码部132、逆量化部133、逆正交变换部134、相加部135、滤波器136和画面排序缓冲器139。此外,解码部113包括D/A转换部140、帧存储器141、开关142、帧内预测部143、预测向量生成部144、运动向量生成部145、列表创建部146、运动补偿部147和开关148。The decoding section 113 of FIG21 includes an accumulation buffer 131, a lossless decoding section 132, an inverse quantization section 133, an inverse orthogonal transform section 134, an addition section 135, a filter 136, and a screen sorting buffer 139. Furthermore, the decoding section 113 includes a D/A conversion section 140, a frame memory 141, a switch 142, an intra-frame prediction section 143, a prediction vector generation section 144, a motion vector generation section 145, a list creation section 146, a motion compensation section 147, and a switch 148.
解码部113的累积缓冲器131从图20的提取部112接收编码数据,并且累积编码数据。累积缓冲器131将所累积的编码数据作为当前图像的编码数据供给至无损解码部132。The accumulation buffer 131 of the decoding section 113 receives the encoded data from the extraction section 112 of Fig. 20 and accumulates the encoded data. The accumulation buffer 131 supplies the accumulated encoded data to the lossless decoding section 132 as encoded data of the current image.
无损解码部132对来自累积缓冲器131的编码数据执行与图14的无损编码部76的无损编码对应的无损解码,如可变长解码和算术解码,以获得经量化的正交变换系数和编码信息。无损解码部132将经量化的正交变换系数供给至逆量化部133。此外,无损解码部132将帧内预测模式信息等作为编码信息供给至帧内预测部143。无损解码部132将参考图像的索引供给至预测向量生成部144,将运动向量信息供给至运动向量生成部145,并且将帧间预测模式信息和参考图像的索引供给至运动补偿部147。The lossless decoding section 132 performs lossless decoding corresponding to the lossless encoding by the lossless encoding section 76 of FIG. 14 on the encoded data from the accumulation buffer 131, such as variable-length decoding and arithmetic decoding, to obtain quantized orthogonal transform coefficients and encoding information. The lossless decoding section 132 supplies the quantized orthogonal transform coefficients to the inverse quantization section 133. Furthermore, the lossless decoding section 132 supplies intra-frame prediction mode information and the like as encoding information to the intra-frame prediction section 143. The lossless decoding section 132 supplies the reference image index to the prediction vector generation section 144, supplies the motion vector information to the motion vector generation section 145, and supplies the inter-frame prediction mode information and the reference image index to the motion compensation section 147.
此外,无损解码部132将帧内预测模式信息或帧间预测模式信息作为编码信息供给至开关148。无损解码部132将偏移滤波信息作为编码信息供给至滤波器136。Furthermore, the lossless decoding section 132 supplies the intra prediction mode information or the inter prediction mode information as encoding information to the switch 148. The lossless decoding section 132 supplies the offset filter information to the filter 136 as encoding information.
逆量化部133、逆正交变换部134、相加部135、滤波器136、帧存储器141、开关142、帧内预测部143、预测向量生成部144、列表创建部146和运动补偿部147分别执行与逆量化部79、逆正交变换部80、相加部81、滤波器82、帧存储器85、开关86、帧内预测部87、预测向量生成部90、列表创建部88和运动预测/补偿部89类似的处理。因此,图像被解码。The inverse quantization section 133, the inverse orthogonal transform section 134, the addition section 135, the filter 136, the frame memory 141, the switch 142, the intra prediction section 143, the prediction vector generation section 144, the list creation section 146, and the motion compensation section 147 respectively perform processes similar to those of the inverse quantization section 79, the inverse orthogonal transform section 80, the addition section 81, the filter 82, the frame memory 85, the switch 86, the intra prediction section 87, the prediction vector generation section 90, the list creation section 88, and the motion prediction/compensation section 89. Thus, the image is decoded.
具体地,逆量化部133对从无损解码部132供给的经量化的正交变换系数进行逆量化,并且将所得的正交变换系数供给至逆正交变换部134。Specifically, the inverse quantization section 133 inversely quantizes the quantized orthogonal transform coefficient supplied from the lossless decoding section 132 , and supplies the resultant orthogonal transform coefficient to the inverse orthogonal transform section 134 .
逆正交变换部134以TU为单位对从逆量化部133供给的正交变换系数执行逆正交变换。逆正交变换部134将作为逆正交变换的结果获得的残差信息供给至相加部135。The inverse orthogonal transform section 134 performs inverse orthogonal transform on the orthogonal transform coefficient supplied from the inverse quantization section 133 in units of TUs. The inverse orthogonal transform section 134 supplies residual information obtained as a result of the inverse orthogonal transform to the addition section 135.
相加部135将从逆正交变换部134供给的残差信息和从开关148供给的预测影像相加,以对当前图像进行局部解码。应当注意,在不从开关148供给预测影像的情况下,相加部135将从逆正交变换部134供给的残差信息设置为解码结果。相加部135将作为解码结果获得的局部解码的当前图像供给至帧存储器141。此外,相加部135将所有区域都被解码的当前图像作为解码图像供给至滤波器136。The addition unit 135 adds the residual information supplied from the inverse orthogonal transform unit 134 and the predicted image supplied from the switch 148 to locally decode the current image. It should be noted that, if the predicted image is not supplied from the switch 148, the addition unit 135 sets the residual information supplied from the inverse orthogonal transform unit 134 as the decoding result. The addition unit 135 supplies the locally decoded current image obtained as the decoding result to the frame memory 141. Furthermore, the addition unit 135 supplies the current image, in which all regions have been decoded, as a decoded image to the filter 136.
滤波器136对从相加部135供给的解码图像执行滤波处理。具体地,滤波器136首先对解码图像执行去块滤波处理。接着,滤波器136通过使用由来自无损解码部132的偏移滤波信息指示的偏移来针对每个LCU对经受去块滤波处理之后的解码图像执行自适应偏移滤波处理,该自适应偏移滤波处理的种类由偏移滤波信息来指示。滤波器136将经受自适应偏移滤波处理之后的解码图像供给至帧存储器141和画面排序缓冲器139。The filter 136 performs filtering on the decoded image supplied from the addition unit 135. Specifically, the filter 136 first performs deblocking filtering on the decoded image. Next, the filter 136 performs adaptive offset filtering on the decoded image after deblocking filtering for each LCU, using the offset indicated by the offset filtering information from the lossless decoding unit 132. The type of adaptive offset filtering is indicated by the offset filtering information. The filter 136 supplies the decoded image after undergoing adaptive offset filtering to the frame memory 141 and the screen sorting buffer 139.
画面排序缓冲器139以帧为单元存储从滤波器136供给的解码图像。画面排序缓冲器139将按照编码顺序存储的以帧为单位的解码图像排序成原始的显示顺序,并且将那些图像供给至D/A转换部140。The screen sorting buffer 139 stores the decoded images in units of frames supplied from the filter 136 . The screen sorting buffer 139 sorts the decoded images in units of frames stored in the encoding order into the original display order, and supplies those images to the D/A conversion section 140 .
D/A转换部140对从画面排序缓冲器139供给的以帧为单位的解码图像执行D/A转换,并且输出那些图像。The D/A conversion section 140 performs D/A conversion on the decoded images in units of frames supplied from the screen sorting buffer 139 , and outputs those images.
帧存储器141由例如高速缓冲存储器和DRAM构成。帧存储器141将从相加部135供给的当前图像存储在高速缓冲存储器中,并且将从滤波器136供给的解码图像存储在DRAM中。将与高速缓冲存储器中存储的当前图像中的当前块相邻的像素设置为周边像素,并且经由开关142供给至帧内预测部143。The frame memory 141 is composed of, for example, a cache memory and a DRAM. The frame memory 141 stores the current image supplied from the adder 135 in the cache memory, and stores the decoded image supplied from the filter 136 in the DRAM. Pixels adjacent to the current block in the current image stored in the cache memory are set as peripheral pixels and are supplied to the intra prediction unit 143 via the switch 142.
此外,将高速缓冲存储器中存储的当前图像或DRAM中存储的解码图像设置为参考图像并且经由开关142输出至运动补偿部147。Furthermore, the current image stored in the cache memory or the decoded image stored in the DRAM is set as a reference image and output to the motion compensation section 147 via the switch 142 .
帧内预测部143通过使用经由开关142从帧存储器141读取的周边像素来对当前块执行最佳帧内预测模式的帧内预测处理,该最佳帧内预测模式由从无损解码部132供给的帧内预测模式信息来指示。帧内预测部143将所得的预测影像供给至开关148。The intra prediction unit 143 performs intra prediction processing on the current block using the surrounding pixels read from the frame memory 141 via the switch 142 in the optimal intra prediction mode indicated by the intra prediction mode information supplied from the lossless decoding unit 132. The intra prediction unit 143 supplies the resulting predicted image to the switch 148.
与图14的预测向量生成部90类似,预测向量生成部144基于从无损解码部132供给的索引和列表创建部146中保存的参考图像列表来生成当前运动向量的预测向量列表。预测向量生成部144将预测向量列表供给至运动向量生成部145。14 , the prediction vector generation unit 144 generates a prediction vector list for the current motion vector based on the index supplied from the lossless decoding unit 132 and the reference image list stored in the list creation unit 146. The prediction vector generation unit 144 supplies the prediction vector list to the motion vector generation unit 145.
运动向量生成部145基于从无损解码部132供给的运动向量信息中的索引从由预测向量生成部144供给的预测向量列表中读取与该索引对应的预测向量。运动向量生成部145将预测向量和在运动向量信息中的差分向量相加,以对当前运动向量执行预测解码。运动向量生成部145将所得的当前运动向量供给至运动补偿部147。The motion vector generation unit 145 reads a prediction vector corresponding to an index from the prediction vector list supplied by the prediction vector generation unit 144 based on the index in the motion vector information supplied from the lossless decoding unit 132. The motion vector generation unit 145 adds the prediction vector to the difference vector in the motion vector information to perform predictive decoding on the current motion vector. The motion vector generation unit 145 supplies the resulting current motion vector to the motion compensation unit 147.
与图14的列表创建部88类似,列表创建部146基于由图20的提取部112提取的SPS中所包含的参考图像列表信息、布置在切片首部中的信息等来执行参考图像列表创建处理。列表创建部146保存所得的参考图像列表,并且将其供给至运动补偿部147。Similar to the list creation unit 88 of FIG14 , the list creation unit 146 performs reference picture list creation processing based on the reference picture list information contained in the SPS extracted by the extraction unit 112 of FIG20 , the information arranged in the slice header, etc. The list creation unit 146 stores the obtained reference picture list and supplies it to the motion compensation unit 147.
运动补偿部147基于来自无损解码部132的帧间预测模式信息、参考图像的索引和来自运动向量生成部145的当前运动向量来对当前块执行运动补偿处理。The motion compensation section 147 performs a motion compensation process on the current block based on the inter prediction mode information from the lossless decoding section 132 , the index of the reference image, and the current motion vector from the motion vector generation section 145 .
具体地,运动补偿部147在列表创建部146中所保存的图像列表中登记的图像识别信息中,读取参考图像的索引的图像识别信息。运动补偿部147经由开关142从帧存储器141读取由所读取的图像识别信息识别的参考图像。运动补偿部147通过使用参考图像和当前运动向量、在由帧间预测模式信息指示的最佳帧间预测模式下对当前块执行运动补偿处理。运动补偿部147将所得的预测影像供给至开关148。Specifically, the motion compensation unit 147 reads the image identification information of the reference image index from the image identification information registered in the image list stored in the list creation unit 146. The motion compensation unit 147 reads the reference image identified by the read image identification information from the frame memory 141 via the switch 142. The motion compensation unit 147 performs motion compensation processing on the current block using the reference image and the current motion vector in the optimal inter-frame prediction mode indicated by the inter-frame prediction mode information. The motion compensation unit 147 supplies the resulting predicted image to the switch 148.
在从无损解码部132供给帧内预测模式信息的情况下,开关148将从帧内预测部143供给的预测影像供给至相加部135。同时,在从无损解码部132供给帧间预测模式信息的情况下,开关148将从运动补偿部147供给的预测影像供给至相加部135。When intra prediction mode information is supplied from the lossless decoding section 132, the switch 148 supplies the predicted image supplied from the intra prediction section 143 to the addition section 135. Meanwhile, when inter prediction mode information is supplied from the lossless decoding section 132, the switch 148 supplies the predicted image supplied from the motion compensation section 147 to the addition section 135.
(解码设备的处理的描述)(Description of Processing of Decoding Device)
图22是用于描述图20的解码设备110的影像生成处理的流程图。FIG22 is a flowchart for describing the image generation process of the decoding device 110 of FIG20 .
在图22的步骤S111中,解码设备110的接收部111接收从图13的编码设备50传输的编码流,并且将编码流供给至提取部112。In step S111 of FIG. 22 , the reception section 111 of the decoding device 110 receives the encoded stream transmitted from the encoding device 50 of FIG. 13 , and supplies the encoded stream to the extraction section 112 .
在步骤S112中,提取部112从由接收部111供给的编码流中提取编码数据和参数集,并且将编码数据和参数集供给至解码部113。In step S112 , the extraction section 112 extracts the encoded data and the parameter set from the encoded stream supplied from the reception section 111 , and supplies the encoded data and the parameter set to the decoding section 113 .
在步骤S113中,解码部113通过根据需要而使用从提取部112供给的参数集、通过根据HEVC的系统来执行对从提取部112供给的编码数据进行解码的解码处理。将参照稍后将描述的图23来描述解码处理的细节。因此,处理终止。In step S113, the decoding unit 113 performs a decoding process for decoding the encoded data supplied from the extraction unit 112 using the parameter set supplied from the extraction unit 112 as needed, using the HEVC system. The details of the decoding process will be described with reference to FIG. 23 to be described later. Thus, the process is terminated.
图23是用于描述图22的步骤S113中的解码处理的细节的流程图。FIG23 is a flowchart for describing the details of the decoding process in step S113 of FIG22 .
在图23的步骤S131中,解码部113的累积缓冲器131(图21)从提取部112接收以帧为单位的编码数据,并且累积编码数据。累积缓冲器131将所累积的编码数据作为当前图像的编码数据供给至无损解码部132。In step S131 of FIG23 , the accumulation buffer 131 ( FIG21 ) of the decoding section 113 receives the encoded data in frames from the extraction section 112 and accumulates the encoded data. The accumulation buffer 131 supplies the accumulated encoded data to the lossless decoding section 132 as the encoded data of the current image.
在步骤S132中,无损解码部132对来自累积缓冲器131的编码数据执行无损解码,并且获得经量化的正交变换系数和编码信息。无损解码部132将经量化的正交变换系数供给至逆量化部133。In step S132 , the lossless decoding section 132 performs lossless decoding on the encoded data from the accumulation buffer 131 and obtains quantized orthogonal transform coefficients and encoding information. The lossless decoding section 132 supplies the quantized orthogonal transform coefficients to the inverse quantization section 133 .
此外,无损解码部132将帧内预测模式信息等作为编码信息供给至帧内预测部143。无损解码部132将参考图像的索引供给至预测向量生成部144,将运动向量信息供给至运动向量生成部145,并且将帧间预测模式信息和参考图像的索引供给至运动补偿部147。Furthermore, the lossless decoding section 132 supplies the intra prediction mode information and the like as encoding information to the intra prediction section 143. The lossless decoding section 132 supplies the index of the reference image to the prediction vector generation section 144, supplies the motion vector information to the motion vector generation section 145, and supplies the inter prediction mode information and the index of the reference image to the motion compensation section 147.
此外,无损解码部132将帧内预测模式信息或帧间预测模式信息作为编码信息供给至开关148。无损解码部132将偏移滤波信息作为编码信息供给至滤波器136。Furthermore, the lossless decoding section 132 supplies the intra prediction mode information or the inter prediction mode information as encoding information to the switch 148. The lossless decoding section 132 supplies the offset filter information to the filter 136 as encoding information.
在步骤S133中,列表创建部146基于由提取部112提取的SPS中所包含的参考图像列表信息、布置在切片首部中的信息等来执行与图18的参考图像创建处理类似的参考图像列表创建处理。In step S133 , the list creation section 146 performs reference image list creation processing similar to that of FIG. 18 based on the reference image list information contained in the SPS extracted by the extraction section 112 , information arranged in the slice header, and the like.
在步骤S134中,逆量化部133对从无损解码部132供给的经量化的正交变换系数进行逆量化,并且将所得的正交变换系数供给至逆正交变换部134。In step S134 , the inverse quantization section 133 inversely quantizes the quantized orthogonal transform coefficient supplied from the lossless decoding section 132 , and supplies the resultant orthogonal transform coefficient to the inverse orthogonal transform section 134 .
在步骤S135中,逆正交变换部134对从逆量化部133供给的正交变换系数执行逆正交变换,并且将所得的残差信息供给至相加部135。In step S135 , the inverse orthogonal transform section 134 performs inverse orthogonal transform on the orthogonal transform coefficient supplied from the inverse quantization section 133 , and supplies the resultant residual information to the addition section 135 .
在步骤S136中,运动补偿部147确定是否从无损解码部132供给帧间预测模式信息。在步骤S136中确定供给帧间预测模式信息的情况下,处理前进至步骤S137。In step S136, the motion compensation section 147 determines whether or not the inter prediction mode information is supplied from the lossless decoding section 132. In a case where it is determined in step S136 that the inter prediction mode information is supplied, the process proceeds to step S137.
在步骤S137中,预测向量生成部144基于从无损解码部132供给的索引和列表创建部146中保存的参考图像列表来执行与图19的预测向量列表生成处理类似的预测向量列表生成处理。In step S137 , the prediction vector generation section 144 performs a prediction vector list generation process similar to that of FIG. 19 based on the index supplied from the lossless decoding section 132 and the reference image list held in the list creation section 146 .
在步骤S138中,运动向量生成部145基于运动向量信息中的索引从预测向量列表中读取与该索引对应的预测向量。运动向量生成部145将预测向量和在运动向量信息中的差分向量相加,以对当前运动向量执行预测解码。运动向量生成部145将所得的当前运动向量供给至运动补偿部147。In step S138, the motion vector generator 145 reads the prediction vector corresponding to the index in the motion vector information from the prediction vector list. The motion vector generator 145 adds the prediction vector to the difference vector in the motion vector information to perform predictive decoding on the current motion vector. The motion vector generator 145 supplies the resulting current motion vector to the motion compensation unit 147.
在步骤S139中,运动补偿部147基于来自无损解码部132的帧间预测模式信息和参考图像的索引以及来自运动向量生成部145的当前运动向量来对当前块执行运动补偿处理。运动补偿部147将所得的预测影像供给至开关148,并且处理前进至步骤S141。In step S139, the motion compensation unit 147 performs motion compensation processing on the current block based on the inter-prediction mode information and the reference image index from the lossless decoding unit 132, and the current motion vector from the motion vector generation unit 145. The motion compensation unit 147 supplies the resulting predicted image to the switch 148, and the process proceeds to step S141.
同时,在步骤S136中确定未供给帧间预测模式信息的情况下,也就是说,在将帧内预测模式信息供给至帧内预测部143的情况下,处理前进至步骤S140。Meanwhile, in a case where determination is made in step S136 that the inter prediction mode information is not supplied, that is, in a case where the intra prediction mode information is supplied to the intra prediction section 143 , the process proceeds to step S140 .
在步骤S140中,帧内预测部143通过使用经由开关142从帧存储器141读取的周边像素来对当前块执行最佳帧内预测模式的帧内预测处理,该最佳帧内预测模式由帧内预测模式信息来指示。帧内预测部143将作为帧内预测处理的结果生成的预测影像经由开关148供给至相加部135,并且处理前进至步骤S141。In step S140, the intra prediction unit 143 performs intra prediction processing on the current block in the optimal intra prediction mode indicated by the intra prediction mode information, using the surrounding pixels read from the frame memory 141 via the switch 142. The intra prediction unit 143 supplies the predicted image generated as a result of the intra prediction processing to the addition unit 135 via the switch 148, and the process proceeds to step S141.
在步骤S141中,相加部135将从逆正交变换部134供给的残差信息和从开关148供给的预测影像相加,以对当前图像进行局部解码。相加部135将作为解码结果获得的局部解码的当前图像供给至帧存储器141。此外,相加部135将所有区域都被解码的当前图像作为解码图像供给至滤波器136。In step S141, the addition unit 135 adds the residual information supplied from the inverse orthogonal transform unit 134 and the predicted image supplied from the switch 148 to locally decode the current image. The addition unit 135 supplies the locally decoded current image obtained as a result of the decoding to the frame memory 141. The addition unit 135 also supplies the current image, in which all regions have been decoded, to the filter 136 as a decoded image.
在步骤S142中,滤波器136对从相加部135供给的解码图像执行去块滤波处理,以去除块失真。In step S142 , the filter 136 performs a deblocking filter process on the decoded image supplied from the adding section 135 to remove block distortion.
在步骤S143中,滤波器136基于从无损解码部132供给的偏移滤波信息来针对每个LCU对经受去块滤波处理之后的解码图像执行自适应偏移滤波处理。滤波器136将经受自适应偏移滤波处理之后的图像供给至画面排序缓冲器139和帧存储器141。In step S143, the filter 136 performs adaptive offset filtering on the decoded image after the deblocking filtering process for each LCU based on the offset filter information supplied from the lossless decoding section 132. The filter 136 supplies the image after the adaptive offset filtering process to the screen sorting buffer 139 and the frame memory 141.
在步骤S144中,帧存储器141将从相加部81供给的当前图像存储在高速缓冲存储器中,并且将从滤波器136供给的解码图像存储在DRAM中。将与高速缓冲存储器中存储的当前图像中的当前块相邻的像素设置为周边像素,并且经由开关142供给至帧内预测部143。此外,将高速缓冲存储器中存储的当前图像或DRAM中存储的解码图像设置为参考图像并且经由开关142输出至运动补偿部147。In step S144, the frame memory 141 stores the current image supplied from the addition section 81 in the cache memory, and stores the decoded image supplied from the filter 136 in the DRAM. Pixels adjacent to the current block in the current image stored in the cache memory are set as peripheral pixels, and are supplied to the intra prediction section 143 via the switch 142. Furthermore, the current image stored in the cache memory or the decoded image stored in the DRAM is set as a reference image and output to the motion compensation section 147 via the switch 142.
在步骤S145中,画面排序缓冲器139以帧为单元存储从滤波器136供给的解码图像,将按照编码顺序存储的以帧为单位的图像排序成原始的显示顺序,并且将那些图像供给至D/A转换部140。In step S145 , the screen sorting buffer 139 stores the decoded images supplied from the filter 136 in frame units, sorts the images in frame units stored in the encoding order into the original display order, and supplies those images to the D/A conversion section 140 .
在步骤S146中,D/A转换部140对从画面排序缓冲器139供给的以帧为单位的图像执行D/A转换,并且输出图像。然后,处理返回至图22的步骤S133,并且终止。In step S146, the D/A conversion section 140 performs D/A conversion on the image in units of frames supplied from the screen sorting buffer 139, and outputs the image. The process then returns to step S133 of FIG. 22 and terminates.
如上所述,在对Intra BC中使用的当前运动向量进行解码时,在当前块的参考图像的实际类型和候选块的参考图像的实际类型彼此不同的情况下,解码设备110将候选块设置成不可用。因此,其参考图像的实际类型与当前块的参考图像的实际类型不同的候选块的运动向量不用于生成预测向量。As described above, when decoding the current motion vector used in the Intra BC, if the actual type of the reference image of the current block and the actual type of the reference image of the candidate block are different from each other, the decoding device 110 sets the candidate block to be unavailable. Therefore, the motion vector of the candidate block whose actual type of the reference image is different from the actual type of the reference image of the current block is not used to generate the prediction vector.
因此,参考图像的实际类型与当前块的参考图像的实际类型不同的候选块的参考运动向量不用于生成预测向量,并且因此,可以将具有提高的编码效率的编码流解码。Therefore, the reference motion vector of the candidate block whose actual type of reference image is different from that of the current block is not used to generate the prediction vector, and thus, an encoded stream with improved encoding efficiency can be decoded.
此外,解码设备110将其实际类型为“Intra BC”的当前块的参考图像的类型设置为LTRP。因此,在候选块的参考图像的实际类型是STRP的情况下,解码设备110将候选块设置成不可用。因此,能够将在Intra BC和帧间编码被共通化的情况下的具有提高的编码效率的编码流解码,而不必大大地改变Intra BC和帧间编码未被共通化的情况下的HEVC。Furthermore, the decoding device 110 sets the reference image type of the current block, whose actual type is "Intra BC," to LTRP. Therefore, if the actual type of the reference image of the candidate block is STRP, the decoding device 110 sets the candidate block to be unavailable. This makes it possible to decode a coded stream with improved coding efficiency when Intra BC and inter-frame coding are common, without having to significantly change HEVC when Intra BC and inter-frame coding are not common.
然而,解码设备110将当前图像的图像识别信息登记在当前块的参考图像列表的预定位置中。因此,解码设备110可以基于与参考图像的图像识别信息在参考图像列表中的位置对应的索引来知道参考图像是否为当前图像。因此,在参考图像是当前图像的情况下,能够防止发生对DRAM的徒劳无益的访问。However, decoding device 110 registers the image identification information of the current image in a predetermined position in the reference image list of the current block. Therefore, decoding device 110 can determine whether the reference image is the current image based on the index corresponding to the position of the reference image's image identification information in the reference image list. Therefore, when the reference image is the current image, futile access to the DRAM can be prevented.
<第二实施例><Second embodiment>
(第二实施例的概要)(Overview of Second Embodiment)
首先,将参照图24至图27来描述第二实施例的概要。First, an outline of the second embodiment will be described with reference to FIG. 24 to FIG. 27 .
在第二实施例中,Intra BC和帧间编码被共通化的情况下的编码效率不是通过将作为Intra BC中的参考图像的当前图像的类型设置为LTRP来提高的,而是通过在参考图像的实际类型为“Intra BC”的情况下改变生成预测向量列表的方法来提高的。In the second embodiment, the coding efficiency when Intra BC and inter-frame coding are unified is not improved by setting the type of the current image serving as the reference image in Intra BC to LTRP, but is improved by changing the method of generating the prediction vector list when the actual type of the reference image is "Intra BC".
图24至图26是用于描述在第二实施例中参考图像的实际类型为“Intra BC”的情况下生成预测向量列表的方法的图。24 to 26 are diagrams for describing a method of generating a prediction vector list in a case where the actual type of a reference image is “Intra BC” in the second embodiment.
应当注意,DiffPicOrderCnt(X,Y)表示图像X与图像Y之间的POC的差分(X-Y)。此外,RefPicListX[refIdxLX]和LX[refIdxLX](X=0或X=1)分别表示在用于对包括当前块的切片进行编码的参考图像列表RefPicListX中登记的图像识别信息中,由当前块的参考图像的索引refIdxLX的图像识别信息识别的参考图像。It should be noted that DiffPicOrderCnt(X, Y) represents the difference (X-Y) in the POC between image X and image Y. Furthermore, RefPicListX[refIdxLX] and LX[refIdxLX] (X=0 or X=1) respectively represent the reference image identified by the image identification information of the index refIdxLX of the reference image of the current block, among the image identification information registered in the reference image list RefPicListX used for encoding the slice including the current block.
此外,CurrPic表示当前图像,并且ColPic表示时间方向候选块的图像。此外,xNbAK和yNbAK分别表示与当前块的左、左上或左下相邻的空间方向候选块(在下文中,被称为左候选块)在x方向上的位置和y方向上的位置。xNbBK和yNbBK分别表示与当前块的上、右上相邻的空间方向候选块(在下文中,被称为上候选块)在x方向上的位置和y方向上的位置。In addition, CurrPic represents the current image, and ColPic represents the image of the temporal candidate block. In addition, xNbAK and yNbAK respectively represent the position in the x direction and the y direction of the spatial candidate block adjacent to the left, upper left, or lower left of the current block (hereinafter referred to as the left candidate block). xNbBK and yNbBK respectively represent the position in the x direction and the y direction of the spatial candidate block adjacent to the upper and upper right of the current block (hereinafter referred to as the upper candidate block).
listCol[refIdxCol]表示在用于对包括时间方向候选块的切片进行编码的参考图像列表RefPicListX中登记的图像识别信息中,由时间方向候选块的参考图像的索引refIdxCol的图像识别信息识别的参考图像。listCol[refIdxCol] represents a reference image identified by the image identification information of the index refIdxCol of the reference image of the temporal candidate block, among the image identification information registered in the reference image list RefPicListX used for encoding the slice including the temporal candidate block.
如图24中所示,在第二实施例中,在要处理的候选块是左候选块的情况下,当DiffPicOrderCnt(RefPicListX[refIdxLX],CurrPic)=0并且当DiffPicOrderCnt(RefPicListX[refIdxLX],CurrPic)和DiffPicOrderCnt(RefPicListX[RefIdxLX[xNbAK][yNbAK]],CurrPic)彼此相等时,将要处理的候选块设置成可用。As shown in Figure 24, in the second embodiment, in the case where the candidate block to be processed is the left candidate block, when DiffPicOrderCnt(RefPicListX[refIdxLX],CurrPic)=0 and when DiffPicOrderCnt(RefPicListX[refIdxLX],CurrPic) and DiffPicOrderCnt(RefPicListX[RefIdxLX[xNbAK][yNbAK]],CurrPic) are equal to each other, the candidate block to be processed is set to available.
换言之,在当前图像的参考图像和左候选块的参考图像分别是当前图像的情况下,也就是说,在当前图像的参考图像的实际类型和左候选块的参考图像的实际类型是“Intra BC”的情况下,将左候选块设置成可用。然后,将作为左候选块的运动向量的参考运动向量的候选在不改变的情况下生成为预测向量。In other words, when the reference image of the current image and the reference image of the left candidate block are both the current image, that is, when the actual type of the reference image of the current image and the actual type of the reference image of the left candidate block are "Intra BC", the left candidate block is set to be available. Then, the candidate of the reference motion vector of the motion vector of the left candidate block is generated as a prediction vector without change.
类似地,在第二实施例中,如图25中所示,在要处理的候选块是上候选块的情况下,当DiffPicOrderCnt(RefPicListX[refIdxLX],CurrPic)=0并且当DiffPicOrderCnt(RefPicListX[refIdxLX],CurrPic)和DiffPicOrderCnt(RefPicListX[RefIdxLX[xNbBK][yNbBK]],CurrPic)彼此相等时,将要处理的候选块设置成可用。Similarly, in the second embodiment, as shown in Figure 25, in the case where the candidate block to be processed is the upper candidate block, when DiffPicOrderCnt(RefPicListX[refIdxLX],CurrPic)=0 and when DiffPicOrderCnt(RefPicListX[refIdxLX],CurrPic) and DiffPicOrderCnt(RefPicListX[RefIdxLX[xNbBK][yNbBK]],CurrPic) are equal to each other, the candidate block to be processed is set to available.
换言之,在当前图像的参考图像的实际类型和上候选块的参考图像的实际类型是“Intra BC”的情况下,将上候选块设置成可用。然后,将作为上候选块的运动向量的参考运动向量的候选在不改变的情况下生成为预测向量。针对登记有参考图像的参考图像列表中的每一个参考图像列表来执行预测向量的生成。In other words, if the actual type of the reference image of the current image and the actual type of the reference image of the upper candidate block are both "Intra BC," the upper candidate block is set to be available. Then, the candidate for the reference motion vector of the motion vector of the upper candidate block is generated as a prediction vector without any changes. This prediction vector generation is performed for each reference image list in which a reference image is registered.
此外,在第二实施例中,如图26中所示,在要处理的候选块是时间方向候选块的情况下,当DiffPicOrderCnt(LX[refIdxLX],CurrPic)=0并且当DiffPicOrderCnt(LX[refIdxLX],CurrPic)和针对colPb的DiffPicOrderCnt(listCol[refIdxCol],ColPic)彼此相等时,将要处理的候选块设置成可用。In addition, in the second embodiment, as shown in Figure 26, in the case where the candidate block to be processed is a time direction candidate block, when DiffPicOrderCnt(LX[refIdxLX],CurrPic)=0 and when DiffPicOrderCnt(LX[refIdxLX],CurrPic) and DiffPicOrderCnt(listCol[refIdxCol],ColPic) for colPb are equal to each other, the candidate block to be processed is set to available.
换言之,在当前图像的参考图像的实际类型和时间方向候选块的参考图像的实际类型是“Intra BC”的情况下,将时间方向候选块设置成可用。然后,将作为时间方向候选块的运动向量的参考运动向量的候选在不改变的情况下生成为预测向量。In other words, if the actual type of the reference image of the current image and the actual type of the reference image of the temporal candidate block are both "Intra BC," the temporal candidate block is set to be available. Then, the candidate for the reference motion vector of the motion vector of the temporal candidate block is generated as a prediction vector without any changes.
因此,如图27中所示,在当前图像的参考图像的实际类型是“Intra BC”的情况下,并且仅在候选块的参考图像的实际类型是“Intra BC”的情况下,将候选块的运动向量在不改变的情况下生成为预测向量。同时,在除了上述以外的情况下,将候选块设置成不可用。应当注意,将其实际类型为“Intra BC”的参考图像的候选的类型设置为STRP。Therefore, as shown in FIG27 , when the actual type of the reference image of the current image is "Intra BC," and only when the actual type of the reference image of the candidate block is "Intra BC," the motion vector of the candidate block is generated as a prediction vector without change. Meanwhile, in cases other than the above, the candidate block is set to unavailable. It should be noted that the type of a candidate whose reference image actual type is "Intra BC" is set to STRP.
除了在列表创建部88和列表创建部146中执行的参考图像列表创建处理以及在预测向量生成部90和预测向量生成部144中执行的预测向量列表生成处理以外,第二实施例的编码设备和解码设备的构造与图13的编码设备50和图20的解码设备110的构造类似。因此,在下文中,将使用图13的编码设备50和图20的解码设备110的各部作为第二实施例中的编码设备和解码设备的各部,并且将仅描述参考图像列表创建处理和预测向量生成处理。The configurations of the encoding device and decoding device of the second embodiment are similar to those of the encoding device 50 of FIG. 13 and the decoding device 110 of FIG. 20 , except for the reference image list creation processing performed in the list creation section 88 and the list creation section 146, and the prediction vector list generation processing performed in the prediction vector generation section 90 and the prediction vector generation section 144. Therefore, hereinafter, the respective sections of the encoding device 50 of FIG. 13 and the decoding device 110 of FIG. 20 will be used as the respective sections of the encoding device and the decoding device of the second embodiment, and only the reference image list creation processing and the prediction vector generation processing will be described.
(关于编码设备的处理的描述)(Description of Processing of Encoding Device)
图28是用于描述第二实施例中的编码设备50的列表创建部88的参考图像列表创建处理的流程图。FIG28 is a flowchart for describing a reference image list creation process by the list creation section 88 of the encoding device 50 in the second embodiment.
在图28的步骤S161中,列表创建部88与图18中的步骤S71的处理类似地创建四个单独的列表。针对每个单独的列表的图像识别信息设置STRP或LTRP。In step S161 of Fig. 28, the list creation section 88 creates four separate lists similarly to the process of step S71 of Fig. 18. STRP or LTRP is set for the image recognition information of each separate list.
在步骤S162中,列表创建部88创建下述当前图像列表:在该当前图像列表中登记有其参考图像的类型被设置为STRP的当前图像的图像识别信息。In step S162 , the list creation section 88 creates a current image list in which the image identification information of the current image whose reference image type is set to STRP is registered.
步骤S163至S166中的处理与图18的步骤S73至S76中的处理类似,因此将省略其描述。The processing in steps S163 to S166 is similar to the processing in steps S73 to S76 of FIG. 18 , and thus description thereof will be omitted.
应当注意,虽然在附图中未示出,但是也与图28的参考图像列表创建处理类似地执行第二实施例中的解码设备110的列表创建部146的参考图像列表创建处理。It should be noted that, although not shown in the drawings, the reference image list creation process of the list creation section 146 of the decoding device 110 in the second embodiment is also performed similarly to the reference image list creation process of FIG. 28 .
图29是用于描述第二实施例中的编码设备50的预测向量生成部90的预测向量列表生成处理的细节的流程图。针对其中登记有参考图像的每个参考图像列表来执行预测向量列表生成处理。29 is a flowchart for describing details of the prediction vector list generation process of the prediction vector generation section 90 of the encoding device 50 in the second embodiment. The prediction vector list generation process is performed for each reference picture list in which a reference picture is registered.
图29的步骤S181至S183中的处理与图19的步骤S91至S93中的处理类似,因此将省略其描述。在步骤S183中确定要处理的候选块的参考图像的类型是STRP的情况下,处理前进至步骤S184。The processing in steps S181 to S183 of Figure 29 is similar to that in steps S91 to S93 of Figure 19, so its description will be omitted. In the case where it is determined in step S183 that the type of the reference image of the candidate block to be processed is STRP, the processing proceeds to step S184.
在步骤S184中,预测向量生成部90确定当前块的参考图像的实际类型和候选块的参考图像的实际类型两者是否为STRP。具体地,例如,预测向量生成部90确定当前块的参考图像与当前图像之间的POC的差分以及候选块的参考图像与候选块的图像之间的POC的差分是否均为1或更大。In step S184, the prediction vector generation unit 90 determines whether both the actual type of the reference image of the current block and the actual type of the reference image of the candidate block are STRP. Specifically, for example, the prediction vector generation unit 90 determines whether the difference in POC between the reference image of the current block and the current image and the difference in POC between the reference image of the candidate block and the image of the candidate block are both 1 or greater.
在预测向量生成部90确定当前块的参考图像与当前图像之间的POC的差分以及候选块的参考图像与候选块的图像之间的POC的差分均为1或更大的情况下,预测向量生成部90确定当前块的参考图像的实际类型和候选块的参考图像的实际类型两者为STRP,并且处理前进至步骤S185。When the prediction vector generation unit 90 determines that the difference in POC between the reference image of the current block and the current image and the difference in POC between the reference image of the candidate block and the image of the candidate block are both 1 or greater, the prediction vector generation unit 90 determines that the actual type of the reference image of the current block and the actual type of the reference image of the candidate block are both STRP, and the processing proceeds to step S185.
步骤S185和S186中的处理与图19的步骤S94和S95中的处理类似,因此将省略其描述。The processing in steps S185 and S186 is similar to the processing in steps S94 and S95 of FIG. 19 , and thus description thereof will be omitted.
同时,在当前块的参考图像与当前图像之间的POC的差分以及候选块的参考图像与候选块的图像之间的POC的差分中的至少一个差分为0的情况下,预测向量生成部90在步骤S184中确定当前块的参考图像的实际类型和候选块的参考图像的实际类型中的至少一个实际类型不是STRP。At the same time, when at least one of the differences in POC between the reference image of the current block and the current image and the differences in POC between the reference image of the candidate block and the image of the candidate block is 0, the prediction vector generation unit 90 determines in step S184 that at least one of the actual types of the reference image of the current block and the actual type of the reference image of the candidate block is not STRP.
在步骤S187中,预测向量生成部90确定当前块的参考图像的实际类型和候选块的参考图像的实际类型两者是否为“Intra BC”。具体地,预测向量生成部90确定当前块的参考图像与当前图像之间的POC的差分以及候选块的参考图像与候选块的图像之间的POC的差分是否为0。In step S187, the prediction vector generation unit 90 determines whether both the actual type of the reference image of the current block and the actual type of the reference image of the candidate block are "Intra BC." Specifically, the prediction vector generation unit 90 determines whether the difference in POC between the reference image of the current block and the current image, and the difference in POC between the reference image of the candidate block and the image of the candidate block are zero.
在预测向量生成部90确定当前块的参考图像与当前图像之间的POC的差分以及/或者候选块的参考图像与候选块的图像之间的POC的差分不是0的情况下,预测向量生成部90确定当前块的参考图像的实际类型和候选块的参考图像的实际类型中的任一实际类型不是“Intra BC”,并且处理前进至步骤S188。When the prediction vector generation unit 90 determines that the difference in POC between the reference image of the current block and the current image and/or the difference in POC between the reference image of the candidate block and the image of the candidate block is not 0, the prediction vector generation unit 90 determines that either the actual type of the reference image of the current block or the actual type of the reference image of the candidate block is not "Intra BC", and the processing proceeds to step S188.
换言之,在当前块的参考图像是当前图像但是候选块的图像与候选块的参考图像彼此不同的情况下,以及在候选块的图像与候选块的参考图像相同但是当前块的参考图像不是当前图像的情况下,预测向量生成部90确定当前块的参考图像的实际类型与候选块的参考图像的实际类型彼此不同,并且处理前进至步骤S188。In other words, in the case where the reference image of the current block is the current image but the image of the candidate block and the reference image of the candidate block are different from each other, and in the case where the image of the candidate block and the reference image of the candidate block are the same but the reference image of the current block is not the current image, the prediction vector generation unit 90 determines that the actual type of the reference image of the current block and the actual type of the reference image of the candidate block are different from each other, and the processing proceeds to step S188.
在步骤S188中,预测向量生成部90将要处理的候选块设置成不可用。In step S188 , the prediction vector generation section 90 sets the candidate block to be processed to be unavailable.
此外,在步骤S182中确定当前块的参考图像的类型不是STRP的情况下,也就是说,在当前块的参考图像的类型是LTRP的情况下,处理前进至步骤S189。In addition, in a case where it is determined in step S182 that the type of the reference image of the current block is not STRP, that is, in a case where the type of the reference image of the current block is LTRP, the process proceeds to step S189.
在与步骤S183的处理类似的步骤S189中,预测向量生成部90确定要处理的候选块的参考图像的类型是否为STRP。在步骤S189中确定要处理的候选块的参考图像的类型是STRP的情况下,也就是说,在当前块的参考图像的类型是LTRP并且候选块的参考图像的类型是STRP的情况下,处理前进至步骤S188。因此,将要处理的候选块设置成不可用。In step S189, similar to the process of step S183, the prediction vector generation unit 90 determines whether the type of the reference image of the candidate block to be processed is STRP. If it is determined in step S189 that the type of the reference image of the candidate block to be processed is STRP, that is, if the type of the reference image of the current block is LTRP and the type of the reference image of the candidate block is STRP, the process proceeds to step S188. Therefore, the candidate block to be processed is set to unavailable.
同时,在步骤S189中确定要处理的候选块的参考图像的类型不是STRP的情况下,也就是说,在当前块的参考图像的类型和候选块的参考图像的类型两者是LTRP的情况下,处理前进至步骤S190。步骤S190和S191中的处理与图19的步骤S98和S99中的处理类似,因此将省略其描述。Meanwhile, in the case where it is determined in step S189 that the type of the reference image of the candidate block to be processed is not STRP, that is, in the case where both the type of the reference image of the current block and the type of the reference image of the candidate block are LTRP, the process proceeds to step S190. The processes in steps S190 and S191 are similar to those in steps S98 and S99 of FIG. 19, and thus description thereof will be omitted.
同时,在预测向量生成部90确定当前块的参考图像与当前图像之间的POC的差分以及候选块的参考图像与候选块的图像之间的POC的差分均是0的情况下,预测向量生成部90在步骤S187中确定当前块的参考图像的实际类型和候选块的参考图像的实际类型是“Intra BC”。At the same time, when the prediction vector generation unit 90 determines that the difference in POC between the reference image of the current block and the current image and the difference in POC between the reference image of the candidate block and the image of the candidate block are both 0, the prediction vector generation unit 90 determines in step S187 that the actual type of the reference image of the current block and the actual type of the reference image of the candidate block are "Intra BC".
然后,预测向量生成部90将处理前进至步骤S190。因此,将要处理的候选块设置成可用,并且将要处理的候选块的参考运动向量的候选生成为预测向量。Then, the prediction vector generation section 90 advances the process to step S 190. Thus, the candidate block to be processed is set to be available, and a candidate of the reference motion vector of the candidate block to be processed is generated as a prediction vector.
在步骤S186、S188或S191的处理之后,处理前进至步骤S192。步骤S192的处理与图19中的步骤S100的处理类似,因此将省略其描述。After the processing of step S186, S188 or S191, the processing proceeds to step S 192. The processing of step S192 is similar to the processing of step S100 in FIG19, so the description thereof will be omitted.
应当注意,虽然在附图中未示出,但是也与图29的预测向量列表生成处理类似地执行第二实施例中的解码设备110的预测向量生成部144的预测向量列表生成处理。It should be noted that, although not shown in the drawings, the prediction vector list generation process of the prediction vector generation section 144 of the decoding device 110 in the second embodiment is also performed similarly to the prediction vector list generation process of FIG. 29 .
<第三实施例><Third embodiment>
(第三实施例的概要)(Overview of the Third Embodiment)
在第三实施例中,当前图像的图像识别信息登记在暂时列表的开头中,而不是参考图像列表中。In the third embodiment, the image identification information of the current image is registered in the head of the temporary list, not in the reference image list.
换言之,在第三实施例中,如图30中所示,在基于图10的单独列表创建两个暂时列表即RefpicListTemp0和RefpicListTemp1之后,将当前图像的图像识别信息登记在每个暂时列表的开头中。30 , after creating two temporary lists RefpicListTemp0 and RefpicListTemp1 based on the individual lists of FIG. 10 , the image identification information of the current image is registered in the head of each temporary list.
接下来,根据需要来改变RefPicListTemp0列表和RefPicListTemp1列表中登记的图像识别信息的顺序(参考记录)。然而,禁止改变当前图像的图像识别信息的顺序。Next, the order of the image identification information registered in the RefPicListTemp0 list and the RefPicListTemp1 list is changed as needed (reference record). However, the order of the image identification information of the current image is prohibited from being changed.
最后,创建参考图像列表RefPicList0,其中,RefPicListTemp0列表中登记的开头的图像识别信息以及通过对num_ref_idx_l0_active_minus1加1而获得的数目(图30的示例中为五个)的图像识别信息被从开头起按顺序登记。Finally, a reference picture list RefPicList0 is created in which the head picture identification information registered in the RefPicListTemp0 list and the number of picture identification information obtained by adding 1 to num_ref_idx_10_active_minus1 (five in the example of FIG. 30 ) are registered in order from the head.
此外,创建参考图像列表RefPicList1,其中,RefPicListTemp1列表中登记的开头的图像识别信息以及通过对num_ref_idx_l1_active_minus1加1而获得的数目(图30的示例中为四个)的图像识别信息被从开头起按顺序登记。Furthermore, a reference picture list RefPicList1 is created in which the head picture identification information registered in the RefPicListTemp1 list and the number of picture identification information obtained by adding 1 to num_ref_idx_l1_active_minus1 (four in the example of FIG. 30 ) are registered in order from the head.
除了在列表创建部88和列表创建部146中执行的参考图像列表创建处理以外,第三实施例的编码设备和解码设备的构造与图13的编码设备50和图20的解码设备110的构造类似。因此,在下文中,将使用图13的编码设备50和图20的解码设备110的各部作为第三实施例中的编码设备和解码设备的各部,并且将仅描述参考图像列表创建处理。The configurations of the encoding device and the decoding device of the third embodiment are similar to those of the encoding device 50 of FIG. 13 and the decoding device 110 of FIG. 20 , except for the reference image list creation processing performed in the list creation section 88 and the list creation section 146. Therefore, hereinafter, the respective sections of the encoding device 50 of FIG. 13 and the decoding device 110 of FIG. 20 will be used as the respective sections of the encoding device and the decoding device in the third embodiment, and only the reference image list creation processing will be described.
(关于编码设备的处理的描述)(Description of Processing of Encoding Device)
图31是用于描述第三实施例中的编码设备50的列表创建部88的参考图像列表创建处理的流程图。FIG31 is a flowchart for describing a reference image list creation process by the list creation section 88 of the encoding device 50 in the third embodiment.
图31的步骤S201至S203中的处理与图18的步骤S71至S73中的处理类似,因此将省略其描述。The processing in steps S201 to S203 of FIG. 31 is similar to the processing in steps S71 to S73 of FIG. 18 , and thus description thereof will be omitted.
在步骤S204中,列表创建部88将当前图像列表中登记的当前图像的图像识别信息登记在暂时列表的开头中。In step S204 , the list creation unit 88 registers the image identification information of the current image registered in the current image list at the beginning of the temporary list.
在步骤S205中,列表创建部88基于布置在切片首部中的ref_pic_list_modification来重新排列除当前图像的图像识别信息以外的图像识别信息在暂时列表中的顺序。In step S205 , the list creation section 88 rearranges the order of the image identification information other than the image identification information of the current image in the temporary list based on ref_pic_list_modification arranged in the slice header.
在步骤S206中,列表创建部88基于每个暂时列表来创建参考图像列表。换言之,列表创建部88创建下述参考图像列表:在该参考图像列表中,暂时列表中登记的开头的图像识别信息以及通过对布置在切片首部中的num_ref_idx_l0_active_minus1(num_ref_idx_l1_active_minus1)加1而获得的数目的图像识别信息被从开头起按顺序登记。In step S206, the list creation unit 88 creates a reference picture list based on each temporary list. In other words, the list creation unit 88 creates a reference picture list in which the first picture identification information registered in the temporary list and the number of picture identification information obtained by adding 1 to num_ref_idx_l0_active_minus1 (num_ref_idx_l1_active_minus1) arranged in the slice header are registered in order from the beginning.
应当注意,虽然在附图中未示出,但是也与图31的参考图像列表创建处理类似地执行第三实施例中的解码设备110的列表创建部146的参考图像列表创建处理。It should be noted that, although not shown in the drawings, the reference image list creation process of the list creation section 146 of the decoding device 110 in the third embodiment is also performed similarly to the reference image list creation process of FIG. 31 .
<第四实施例><Fourth embodiment>
(关于应用本公开的计算机的描述)(Description of a computer to which the present disclosure is applied)
以上所描述的一系列处理可以通过硬件或软件来执行。在通过软件来执行该一系列处理的情况下,构成软件的程序安装在计算机中。此处,计算机包括合并在专用硬件中的计算机以及例如可以通过在其中安装各种程序来执行各种功能的通用个人计算机。The series of processes described above can be performed by hardware or software. In the case of performing the series of processes by software, the program constituting the software is installed in a computer. Here, the computer includes a computer incorporated in dedicated hardware and, for example, a general-purpose personal computer that can perform various functions by installing various programs therein.
图32是示出通过程序来执行上述一系列处理的计算机的硬件构造示例的框图。FIG32 is a block diagram showing a hardware configuration example of a computer that executes the above-described series of processes by a program.
在计算机中,CPU(中央处理器)201、ROM(只读存储器)202和RAM(随机存取存储器)203经由总线204彼此连接。In the computer, a CPU (Central Processing Unit) 201 , a ROM (Read Only Memory) 202 , and a RAM (Random Access Memory) 203 are connected to one another via a bus 204 .
此外,输入/输出接口205连接至总线204。输入部206、输出部207、存储部208、通信部209和驱动器210连接至输入/输出接口205。Furthermore, an input/output interface 205 is connected to the bus 204 . An input section 206 , an output section 207 , a storage section 208 , a communication section 209 , and a drive 210 are connected to the input/output interface 205 .
输入部206由键盘、鼠标、麦克风等构成。输出部207由显示器、扬声器等构成。存储部208由硬盘、非易失性存储器等构成。通信部209由网络接口等构成。驱动器210驱动可移除介质211如磁盘、光盘、磁光盘或半导体存储器。The input unit 206 is composed of a keyboard, a mouse, a microphone, etc. The output unit 207 is composed of a display, a speaker, etc. The storage unit 208 is composed of a hard disk, a nonvolatile memory, etc. The communication unit 209 is composed of a network interface, etc. The drive 210 drives a removable medium 211 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory.
在如上所述构造的计算机中,CPU 201经由输入/输出接口205和总线204将存储在例如存储部208中的程序加载至RAM 203,并且执行程序以执行上述一系列处理。In the computer configured as described above, the CPU 201 loads a program stored in, for example, the storage section 208 to the RAM 203 via the input/output interface 205 and the bus 204 , and executes the program to perform the above-described series of processing.
由计算机(CPU 201)执行的程序可以通过例如将其记录在如封装介质等的可移除介质211中来提供。此外,可以经由有线或无线传输介质如局域网、因特网和数字卫星广播来提供程序。The program executed by the computer (CPU 201) can be provided by, for example, recording it in the removable medium 211 such as a package medium. In addition, the program can be provided via a wired or wireless transmission medium such as a local area network, the Internet, and digital satellite broadcasting.
在计算机中,当将可移除介质211安装至驱动器210时,可以经由输入/输出接口205将程序安装在存储部208中。此外,可以经由有线或无线传输介质通过通信部209来接收程序,并且将其安装在存储部208中。此外,可以将程序预先安装在ROM 202中或存储部208中。In the computer, when the removable medium 211 is mounted to the drive 210, the program can be installed in the storage unit 208 via the input/output interface 205. In addition, the program can be received by the communication unit 209 via a wired or wireless transmission medium and installed in the storage unit 208. In addition, the program can be pre-installed in the ROM 202 or in the storage unit 208.
应当注意,由计算机执行的程序可以是按照本说明中描述的顺序而按时间顺序处理的程序,或者可以是并行处理的或在必要的时刻如当执行调用时处理的程序。It should be noted that the program executed by the computer may be a program that is processed time-sequentially in the order described in this specification, or may be a program that is processed in parallel or at necessary timing such as when a call is executed.
<第五实施例><Fifth embodiment>
(电视设备的构造示例)(Configuration Example of Television Apparatus)
图33例示了应用本公开的电视设备的示意性构造。电视设备900包括天线901、调谐器902、多路分离器903、解码器904、视频信号处理部905、显示部906、音频信号处理部907、扬声器908和外部接口部909。此外,电视设备900包括控制部910、用户接口部911等。33 illustrates a schematic configuration of a television device to which the present disclosure is applied. A television device 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 device 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 signal received by the antenna 901 for demodulation, and outputs the obtained encoded bit stream to the demultiplexer 903 .
多路分离器903从编码比特流中提取要观看的节目的视频或音频分组,并且将所提取的分组的数据输出至解码器904。此外,多路分离器903将数据分组如EPG(电子节目指南)供给至控制部910。应当理解,在执行扰频的情况下,通过多路分离器等来解扰。The demultiplexer 903 extracts a video or audio packet of a program to be viewed from the encoded bit stream, and outputs the data of the extracted packet to the decoder 904. In addition, the demultiplexer 903 supplies data packets such as an EPG (Electronic Program Guide) to the control section 910. It should be understood that in the case where scrambling is performed, descrambling is performed by the demultiplexer or the like.
解码器904执行分组解码处理,并且将通过解码处理而生成的视频数据输出至视频信号处理部905以及将通过解码处理而生成的音频数据输出至音频信号处理部907。The decoder 904 performs a packet decoding process, and outputs the video data generated by the decoding process to the video signal processing section 905 and outputs the audio data generated by the decoding process to the audio signal processing section 907 .
视频信号处理部905对视频信号执行噪音去除、与用户设置对应的视频处理等。视频信号处理部905生成要在显示部906上显示的节目的视频数据、基于经由网络供给的应用而处理的影像数据等。此外,视频信号处理部905生成用于显示菜单画面的视频数据以选择项目等,并且将这样的视频数据叠加在节目的视频数据上。视频信号处理部905基于所生成的视频数据来生成驱动信号,并且驱动显示部906。The video signal processing unit 905 performs noise removal and video processing corresponding to user settings on the video signal. The video signal processing unit 905 generates video data for programs to be displayed on the display unit 906, as well as image data processed based on applications supplied via the network. Furthermore, the video signal processing unit 905 generates video data for displaying menu screens for selecting items, and superimposes this video data on the program video data. Based on the generated video data, the video signal processing unit 905 generates a drive signal and drives the display unit 906.
显示部906基于来自视频信号处理部905的驱动信号来驱动显示装置(例如,液晶显示元件)以显示节目的视频等。The display section 906 drives a display device (for example, a liquid crystal display element) based on a drive signal from the video signal processing section 905 to display a video of a program or the like.
音频信号处理部907对音频数据执行预定的处理如噪音去除,对经处理的音频数据执行D/A转换处理或放大处理,并且将这样的音频数据供给至扬声器908以执行音频输出。The audio signal processing section 907 performs predetermined processing such as noise removal on the audio data, performs D/A conversion processing or amplification processing on the processed audio data, and supplies such audio data to the speaker 908 to perform audio output.
外部接口部909是用于与外部装置或网络连接的接口,并且发送和接收数据如视频数据和音频数据。The external interface section 909 is an interface for connection with an external device or a network, and transmits and receives data such as video data and audio data.
用户接口部911连接至控制部910。用户接口部911由操作开关、远程控制信号接收部等构成,并且将与用户操作对应的操作信号供给至控制部910。The user interface section 911 is connected to the control section 910. The user interface section 911 is composed of an operation switch, a remote control signal receiving section, and the like, and supplies an operation signal corresponding to a user operation to the control section 910.
控制部910由CPU(中央处理单元)、存储器等构成。存储器存储由CPU执行的程序、CPU执行处理所必需的各种类型的数据、EPG数据、经由网络获取的数据等。在预定的时刻如启动电视设备900时由CPU读取并执行存储在存储器中的程序。CPU执行程序以控制各部,使得电视设备900根据用户操作而操作。The control unit 910 is composed of a CPU (Central Processing Unit), a memory, and the like. The memory stores programs executed by the CPU, various types of data necessary for the CPU to perform processing, EPG data, data acquired via a network, and the like. The CPU reads and executes the programs stored in the memory at predetermined times, such as when the television device 900 is turned on. The CPU executes the programs to control the various components, causing the television device 900 to operate in accordance with user operations.
应当注意,在电视设备900中,设置总线912以将调谐器902、多路分离器903、视频信号处理部905、音频信号处理部907、外部接口部909等连接至控制部910。It should be noted that in the television apparatus 900 , a bus 912 is provided to connect the tuner 902 , the demultiplexer 903 , the video signal processing section 905 , the audio signal processing section 907 , the external interface section 909 , and the like to the control section 910 .
在所构造的电视设备中,解码器904设置有本申请的解码设备(解码方法)的功能。这使得能够在使用画面内的相关性执行预测时将具有提高的编码效率的编码流进行解码。In the constructed television device, the decoder 904 is provided with the function of the decoding device (decoding method) of the present application. This enables decoding of a coded stream with improved coding efficiency when prediction is performed using correlation within a screen.
<第六实施例><Sixth embodiment>
(移动电话的构造示例)(Configuration Example of Mobile Phone)
图34例示了应用本公开的移动电话的示意性构造。移动电话920包括通信部922、音频编解码器923、相机部926、影像处理部927、多路复用/多路分离部928、记录/再现部929、显示部930和控制部931。那些部件经由总线933彼此连接。FIG34 illustrates a schematic configuration of a mobile phone to which the present disclosure is applied. A mobile phone 920 includes a communication unit 922, an audio codec 923, a camera unit 926, an image processing unit 927, a multiplexing/demultiplexing unit 928, a recording/reproducing unit 929, a display unit 930, and a control unit 931. These components are connected to each other via a bus 933.
此外,天线921连接至通信部922,并且扬声器924和麦克风925连接至音频编解码器923。此外,操作部932连接至控制部931。Furthermore, the antenna 921 is connected to the communication section 922, and the speaker 924 and the microphone 925 are connected to the audio codec 923. Furthermore, an operation section 932 is connected to the control section 931.
移动电话920在各种模式如语音通信模式和数据通信模式下执行各种操作,如发送和接收音频信号、发送和接收电子邮件或影像数据、成像和数据记录。The mobile phone 920 performs various operations such as transmission and reception of audio signals, transmission and reception of electronic mail or image data, imaging, and data recording in various modes such as a voice communication mode and a data communication mode.
在语音通信模式下,在音频编解码器923中在麦克风925中生成的音频信号转换成音频数据或经受数据压缩,然后供给至通信部922。通信部922对音频数据执行调制处理、频率转换处理等以生成发送信号。此外,通信部922将发送信号供给至天线921以将其发送至图中未示出的基站。此外,通信部922对在天线921中接收到的接收信号执行放大、频率转换处理、解调处理等,并且将所获得的音频数据供给至音频编解码器923。音频编解码器923对音频数据执行数据解压缩或者将其转换成模拟音频信号,并且将所得的信号输出至扬声器924。In voice communication mode, the audio signal generated by the microphone 925 is converted into audio data or subjected to data compression in the audio codec 923 and then supplied to the communication unit 922. The communication unit 922 performs modulation processing, frequency conversion processing, etc. on the audio data to generate a transmission signal. In addition, the communication unit 922 supplies the transmission signal to the antenna 921 to transmit it to a base station (not shown in the figure). In addition, the communication unit 922 performs amplification, frequency conversion processing, demodulation processing, etc. on the received signal received by the antenna 921, and supplies the obtained audio data to the audio codec 923. The audio codec 923 performs data decompression on the audio data or converts it into an analog audio signal, and outputs the resulting signal to the speaker 924.
此外,在以数据通信模式发送邮件的情况下,控制部931接收通过操作部932的操作而输入的字符数据,并且在显示部930上显示输入的字符。此外,控制部931基于操作部932中的用户指示等来生成邮件数据,并且将邮件数据供给至通信部922。通信部922对邮件数据执行调制处理、频率转换处理等,并且从天线921发送所获得的发送信号。此外,通信部922对在天线921中接收到的接收信号执行放大、频率转换处理、解调处理等以恢复邮件数据。将邮件数据供给至显示部930以显示邮件内容。Furthermore, when sending mail in data communication mode, the control unit 931 receives character data input through operation of the operation unit 932 and displays the input characters on the display unit 930. Furthermore, the control unit 931 generates mail data based on user instructions and the like from the operation unit 932 and supplies the mail data to the communication unit 922. The communication unit 922 performs modulation processing, frequency conversion processing, and the like on the mail data and transmits the resulting transmission signal from the antenna 921. Furthermore, the communication unit 922 performs amplification, frequency conversion processing, demodulation processing, and the like on the received signal received by the antenna 921 to restore the mail data. The mail data is then supplied to the display unit 930 to display the mail content.
应当理解,移动电话920还使得记录/再现部929将所接收的邮件数据存储在存储介质中。存储介质是任意可擦写的存储介质。例如,存储介质是半导体存储器如RAM和内置闪存、硬盘或可移除介质如磁盘、磁光盘、光盘、USB(通用串行总线)存储器和存储卡。It should be understood that the mobile phone 920 also causes the recording/reproducing unit 929 to store the received mail data in a storage medium. The storage medium is any rewritable storage medium. For example, the storage medium is a semiconductor memory such as RAM and built-in flash memory, a hard disk, or a removable medium such as a magnetic disk, a magneto-optical disk, an optical disk, a USB (Universal Serial Bus) memory, and a memory card.
在以数据通信模式发送影像数据的情况下,将在相机部926中生成的影像数据供给至影像处理部927。影像处理部927对影像数据执行编码处理,并且生成编码数据。When image data is transmitted in the data communication mode, the image data generated in the camera section 926 is supplied to the image processing section 927. The image processing section 927 performs encoding processing on the image data, and generates encoded data.
多路复用/多路分离部928通过预定的系统来多路复用在影像处理部927中生成的编码数据和从音频编解码器923供给的音频数据,并且将所得的数据供给至通信部922。通信部922对多路复用数据执行调制处理、频率转换处理等,并且从天线921发送所获得的发送信号。此外,通信部922对在天线921中接收到的接收信号执行放大、频率转换处理、解调处理等以恢复多路复用数据。将多路复用数据供给至多路复用/多路分离部928。多路复用/多路分离部928对多路复用数据进行多路分离,并且将编码数据供给至影像处理部927以及将音频数据供给至音频编解码器923。影像处理部927对编码数据执行解码处理,以生成影像数据。将影像数据供给至显示部930,以显示所接收的影像。音频编解码器923将音频数据转换成模拟音频信号,并且将模拟音频信号供给至扬声器924,以输出所接收的音频。The multiplexing/demultiplexing unit 928 multiplexes the coded data generated by the image processing unit 927 and the audio data supplied from the audio codec 923 using a predetermined system, and supplies the resulting data to the communication unit 922. The communication unit 922 performs modulation processing, frequency conversion processing, and other processing on the multiplexed data, and transmits the resulting transmission signal from the antenna 921. Furthermore, the communication unit 922 performs amplification, frequency conversion processing, demodulation processing, and other processing on the received signal received by the antenna 921 to restore the multiplexed data. The multiplexed data is supplied to the multiplexing/demultiplexing unit 928. The multiplexing/demultiplexing unit 928 demultiplexes the multiplexed data and supplies the coded data to the image processing unit 927 and the audio data to the audio codec 923. The image processing unit 927 performs decoding processing on the coded data to generate image data. The image data is supplied to the display unit 930 to display the received image. The audio codec 923 converts the audio data into an analog audio signal, and supplies the analog audio signal to the speaker 924 to output the received audio.
在所构造的移动电话装置中,影像处理部927设置有本申请的编码设备和解码设备(编码方法和解码方法)的功能。这使得能够在使用画面内的相关性执行预测时提高编码效率。此外,能够在使用画面内的相关性执行预测时将具有提高的编码效率的编码流进行解码。In the constructed mobile phone device, the image processing unit 927 is provided with the functions of the encoding device and decoding device (encoding method and decoding method) of the present application. This makes it possible to improve encoding efficiency when performing prediction using correlation within a picture. In addition, it is possible to decode a coded stream with improved encoding efficiency when performing prediction using correlation within a picture.
<第七实施例><Seventh embodiment>
(记录/再现设备的构造示例)(Configuration Example of Recording/Reproducing Device)
图35例示了应用本公开的记录/再现设备的示意性构造。记录/再现设备940在记录介质上记录例如所接收的广播节目的音频数据和视频数据,并且在与用户指示对应的时刻将所记录的数据提供至用户。此外,记录/再现设备940还可以从另外的设备获取例如音频数据和视频数据,并且将那些数据记录在记录介质上。此外,记录/再现设备940对记录在记录介质上的音频数据和视频数据进行解码和输出,以使得监测设备等能够执行影像显示或音频输出。FIG35 illustrates a schematic configuration of a recording/reproducing device to which the present disclosure is applied. The recording/reproducing device 940 records, for example, audio and video data of a received broadcast program on a recording medium and provides the recorded data to the user at a time corresponding to a user instruction. Furthermore, the recording/reproducing device 940 can also obtain, for example, audio and video data from another device and record that data on a recording medium. Furthermore, the recording/reproducing device 940 decodes and outputs the audio and video data recorded on the recording medium so that monitoring equipment, etc., can perform image display or audio output.
记录/再现设备940包括调谐器941、外部接口部942、编码器943、HDD(硬盘驱动)部944、盘驱动器945、选择器946、解码器947、OSD(屏上显示)部948、控制部949和用户接口部950。The recording/reproducing device 940 includes a tuner 941, an external interface section 942, an encoder 943, an HDD (hard disk drive) section 944, a disk drive 945, a selector 946, a decoder 947, an OSD (on screen display) section 948, a control section 949 and a user interface section 950.
调谐器941从由图中未示出的天线接收的广播波信号中选择期望的频道。调谐器941将通过解调所接收的期望频道的信号而获得的编码比特流输出至选择器946。The tuner 941 selects a desired channel from broadcast wave signals received by an antenna (not shown in the figure), and outputs an encoded bit stream obtained by demodulating the received signal of the desired channel to the selector 946 .
外部接口部942由IEEE1394接口、网络接口部、USB接口、闪存接口等中的至少任一者构成。外部接口部942是用于与外部装置、网络、存储卡等连接的接口,并且接收如要记录的视频数据或音频数据等数据。The external interface unit 942 is configured from at least one of an IEEE1394 interface, a network interface, a USB interface, a flash memory interface, etc. The external interface unit 942 is an interface for connecting to an external device, a network, a memory card, etc., and receives data such as video data or audio data to be recorded.
当未对从外部接口部942供给的视频数据或音频数据编码时,编码器943通过预定的系统执行编码,并且将编码比特流输出至选择器946。When the video data or the audio data supplied from the external interface section 942 is not encoded, the encoder 943 performs encoding by a predetermined system and outputs an encoded bit stream to the selector 946 .
HDD部944将内容数据如视频和音频、各种程序和其他数据记录在内置硬盘中,并且在再现等时从硬盘读取那些数据。The HDD section 944 records content data such as video and audio, various programs, and other data in a built-in hard disk, and reads those data from the hard disk at the time of reproduction or the like.
盘驱动器945对所安装的光盘进行记录和再现信号。光盘是例如DVD盘(DVD-Video、DVD-RAM、DVD-R、DVD-RW、DVD+R、DVD+RW等)或蓝光(注册商标)盘。The disk drive 945 records and reproduces signals on a loaded optical disk, such as a DVD disk (DVD-Video, DVD-RAM, DVD-R, DVD-RW, DVD+R, DVD+RW, etc.) or a Blu-ray (registered trademark) disk.
在记录视频或音频时,选择器946从调谐器941或编码器943中选择任意编码比特流,并且将编码比特流供给至HDD部944和盘驱动器945中的任一者。此外,在再现视频或音频时,选择器946将从HDD部944或盘驱动器945输出的编码比特流供给至解码器947。When recording video or audio, the selector 946 selects an arbitrary encoded bit stream from the tuner 941 or the encoder 943, and supplies the encoded bit stream to either the HDD unit 944 or the disk drive 945. Furthermore, when reproducing video or audio, the selector 946 supplies the encoded bit stream output from the HDD unit 944 or the disk drive 945 to the decoder 947.
解码器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 the decoding process to the OSD section 948. Furthermore, the decoder 947 outputs the audio data generated by the decoding process.
OSD部948生成用于显示菜单画面的视频数据以选择项目等,并且将这样的视频信号叠加在从解码器947输出的视频数据上以将其输出。The OSD section 948 generates video data for displaying a menu screen to select an item or the like, and superimposes such a video signal on the video data output from the decoder 947 to output it.
用户接口部950连接至控制部949。用户接口部950由操作开关、远程控制信号接收部等构成,并且将与用户操作对应的操作信号供给至控制部949。The user interface section 950 is connected to the control section 949. The user interface section 950 is configured by an operation switch, a remote control signal receiving section, and the like, and supplies an operation signal corresponding to a user operation to the control section 949.
控制部949由CPU、存储器等构成。存储器存储由CPU执行的程序和CPU执行处理所必需的各种类型的数据。在预定的时刻如启动记录/再现设备940时由CPU读取并执行存储在存储器中的程序。CPU执行程序以控制各部,使得记录/再现设备940根据用户操作而操作。The control unit 949 is composed of a CPU, a memory, and the like. The memory stores programs executed by the CPU and various types of data necessary for the CPU to perform processing. The CPU reads and executes the programs stored in the memory at predetermined times, such as when the recording/reproducing device 940 is activated. The CPU executes the programs to control various components, causing the recording/reproducing device 940 to operate in accordance with user operations.
在所构造的记录/再现设备中,编码器943设置有本申请的编码设备(编码方法)的功能,并且解码器947设置有本申请的解码设备(解码方法)的功能。这使得能够在使用画面内的相关性执行预测时提高编码效率。此外,能够在使用画面内的相关性执行预测时将具有提高的编码效率的编码流进行解码。In the recording/reproducing device thus constructed, the encoder 943 is provided with the function of the encoding device (encoding method) of the present application, and the decoder 947 is provided with the function of the decoding device (decoding method) of the present application. This makes it possible to improve encoding efficiency when performing prediction using correlation within a picture. In addition, it is possible to decode an encoded stream having improved encoding efficiency when performing prediction using correlation within a picture.
<第八实施例><Eighth Embodiment>
(成像设备的构造示例)(Configuration Example of Imaging Apparatus)
图36例示了应用本公开的成像设备的示意性构造。成像设备960对对象进行成像,并且然后在显示部上显示对象的影像或者将这样的影像数据记录在记录介质上。36 illustrates a schematic configuration of an imaging device to which the present disclosure is applied. The imaging device 960 images a subject and then displays the image of the subject on a display section or records such image data on a recording medium.
成像设备960包括光学块961、成像部962、相机信号处理部963、影像数据处理部964、显示部965、外部接口部966、存储部967、媒体驱动器968、OSD部969和控制部970。此外,用户接口部971连接至控制部970。此外,影像数据处理部964、外部接口部966、存储部967、媒体驱动器968、OSD部969、控制部970等经由总线972彼此连接。The imaging device 960 includes an optical block 961, an imaging section 962, a camera signal processing section 963, an image data processing section 964, a display section 965, an external interface section 966, a storage section 967, a media driver 968, an OSD section 969, and a control section 970. Furthermore, a user interface section 971 is connected to the control section 970. Furthermore, the image data processing section 964, the external interface section 966, the storage section 967, the media driver 968, the OSD section 969, the control section 970, and the like are connected to one another via a bus 972.
光学块961由聚焦透镜、光圈机构等构成。光学块961在成像部962的成像表面上形成对象的光学影像。成像部962由CCD或CMOS影像传感器构成,并且通过光电转换生成与光学影像对应的电信号,并且将电信号供给至相机信号处理部963。The optical block 961 is composed of a focusing lens, an aperture mechanism, etc. The optical block 961 forms an optical image of a subject on an imaging surface of the imaging section 962. The imaging section 962 is composed of a CCD or CMOS image sensor, generates an electrical signal corresponding to the optical image through photoelectric conversion, and supplies the electrical signal to the camera signal processing section 963.
相机信号处理部963对从成像部962供给的电信号执行各种类型的相机信号处理,如拐点校正、伽马校正和色彩校正。相机信号处理部963将经受相机信号处理之后的影像数据供给至影像数据处理部964。The camera signal processing section 963 performs various types of camera signal processing such as knee correction, gamma correction, and color correction on the electrical signal supplied from the imaging section 962. The camera signal processing section 963 supplies the image data after undergoing the camera signal processing to the image data processing section 964.
影像数据处理部964对从相机信号处理部963供给的影像数据执行编码处理。影像数据处理部964将通过编码处理而生成的编码数据供给至外部接口部966或媒体驱动器968。此外,影像数据处理部964对从外部接口部966或媒体驱动器968供给的编码数据执行解码处理。影像数据处理部964将通过解码处理而生成的影像数据供给至显示部965。此外,影像数据处理部964执行将从相机信号处理部963供给的影像数据供给至显示部965的处理,或者将从OSD部969获取的显示数据叠加在影像数据上,并且将这样的显示数据供给至显示部965。The image data processing section 964 performs encoding processing on the image data supplied from the camera signal processing section 963. The image data processing section 964 supplies the encoded data generated by the encoding processing to the external interface section 966 or the media drive 968. The image data processing section 964 also performs decoding processing on the encoded data supplied from the external interface section 966 or the media drive 968. The image data processing section 964 supplies the image data generated by the decoding processing to the display section 965. The image data processing section 964 also performs processing to supply the image data supplied from the camera signal processing section 963 to the display section 965, or superimposes display data acquired from the OSD section 969 on the image data and supplies such display data to the display section 965.
OSD部969生成由符号、字符和图形、图标等构成的菜单画面的显示数据,并且将显示数据输出至影像数据处理部964。The OSD portion 969 generates display data of a menu screen composed of symbols, characters, graphics, icons, and the like, and outputs the display data to the image data processing portion 964 .
外部接口部966由例如USB输入和输出终端构成,并且在打印影像的情况下连接至打印机。此外,根据需要将驱动器连接至外部接口部966,并且适当地安装可移除介质如磁盘和光盘,以便根据需要来安装从其中读取的计算机程序。此外,外部接口部966包括连接至预定网络如LAN(局域网)和因特网的网络接口。控制部970可以例如根据来自用户接口部971的指示来从媒体驱动器968读取编码数据,并且可以将来自外部接口部966的编码数据供给至经由网络而连接的另一设备。此外,控制部970可以经由外部接口部966来获取经由网络而从另一设备供给的编码数据或影像数据,并且将数据供给至影像数据处理部964。The external interface unit 966 is composed of, for example, USB input and output terminals, and is connected to a printer in the case of printing an image. In addition, a drive is connected to the external interface unit 966 as needed, and removable media such as disks and optical disks are appropriately installed so that computer programs read therefrom can be installed as needed. In addition, the external interface unit 966 includes a network interface connected to a predetermined network such as a LAN (local area network) and the Internet. The control unit 970 can, for example, read coded data from the media drive 968 according to an instruction from the user interface unit 971, and can supply the coded data from the external interface unit 966 to another device connected via the network. In addition, the control unit 970 can obtain coded data or image data supplied from another device via the network via the external interface unit 966, and supply the data to the image data processing unit 964.
使用例如任意可读可写的可移除介质如磁盘、磁光盘、光盘和半导体存储器作为由媒体驱动器968驱动的记录介质。此外,记录介质可以是任意类型的记录介质如可移除介质,并且可以是磁带装置、光碟或存储卡。当然,记录介质可以是非接触式IC(集成电路)卡等。As the recording medium driven by the media drive 968, for example, any readable and writable removable medium such as a magnetic disk, a magneto-optical disk, an optical disk, and a semiconductor memory is used. In addition, the recording medium may be any type of recording medium such as a removable medium, and may be a magnetic tape device, an optical disk, or a memory card. Of course, the recording medium may be a contactless IC (Integrated Circuit) card or the like.
此外,媒体驱动器968和记录介质可以被集成,并且由非便携式存储介质如内置硬盘驱动器和SSD(固态驱动器)构成。Furthermore, the media drive 968 and the recording medium may be integrated and configured from a non-portable storage medium such as a built-in hard disk drive and an SSD (Solid State Drive).
控制部970由CPU构成。存储部967存储由控制部970执行的程序、控制部970执行处理所必需的各种类型的数据等。在预定的时刻如启动成像设备960时由控制部970读取并执行存储在存储部967中的程序。控制部970执行程序以控制各部,使得成像设备960根据用户操作而操作。The control unit 970 is composed of a CPU. The storage unit 967 stores programs executed by the control unit 970, various types of data necessary for the control unit 970 to perform processing, and the like. The control unit 970 reads and executes the programs stored in the storage unit 967 at predetermined times, such as when the imaging device 960 is activated. The control unit 970 executes the programs to control various components, causing the imaging device 960 to operate in accordance with user operations.
在所构造的成像设备中,影像数据处理部964设置有本申请的编码设备和解码设备(编码方法和解码方法)的功能。这使得能够在使用画面内的相关性执行预测时提高编码效率。此外,能够在使用画面内的相关性执行预测时将具有提高的编码效率的编码流进行解码。In the constructed imaging device, the image data processing unit 964 is provided with the functions of the encoding device and decoding device (encoding method and decoding method) of the present application. This makes it possible to improve encoding efficiency when performing prediction using correlation within a picture. In addition, it is possible to decode a coded stream with improved encoding efficiency when performing prediction using correlation within a picture.
<第九实施例>Ninth embodiment
(实施例的其它示例)(Other Examples of Embodiments)
在上文中已经描述了应用本公开的设备、系统等的示例,但是本公开不限于此,并且可以被实施为要安装至构成上述设备或系统的设备的任何其他构造,例如,作为系统LSI(大规模集成)的处理器等、使用多个处理器的模块等、使用多个模块的单元等、通过向单元进一步添加另外的功能而获得的套组等(即,设备的部分的构造)。Examples of devices, systems, etc. to which the present disclosure is applied have been described above, but the present disclosure is not limited thereto and may be implemented as any other configuration to be installed in devices constituting the above-mentioned devices or systems, for example, a processor as a system LSI (large-scale integration), a module using multiple processors, a unit using multiple modules, a set obtained by further adding additional functions to a unit, etc. (i.e., a configuration of a portion of a device).
(视频套组的构造示例)(Example of video kit configuration)
将参照图37来描述将本公开实施为套组的情况的示例。图37示出了应用本公开的视频套组的示意性构造的示例。An example of a case where the present disclosure is implemented as a video suite will be described with reference to Fig. 37. Fig. 37 shows an example of a schematic configuration of a video suite to which the present disclosure is applied.
近年来,电子设备的多功能性已经取得进步,并且在其开发和制造中,通过销售、提供等来实施其构造的一部分的情况下,不仅会频繁地发现该部分被实施为具有一个功能的构造的情况,而且会频繁地发现通过组合具有相关联的功能的多个构造而将该部分实施为具有多个功能的一个套组的情况。In recent years, the multifunctionality of electronic devices has been progressing, and in the development and manufacture of electronic devices, when a part of their structure is implemented through sales, provision, etc., it is frequently found that not only is the part implemented as a structure having one function, but it is also frequently found that the part is implemented as a set having multiple functions by combining multiple structures having related functions.
图37中所示的视频套组1300具有这样的多功能化的构造,并且是具有影像编码和解码(任一者或它们两者)功能的装置和具有与该功能相关联的另一功能的装置的组合。The video set 1300 shown in FIG. 37 has such a multifunctional structure and is a combination of a device having image encoding and decoding (either or both) functions and a device having another function associated with the functions.
如图37中所示,视频套组1300包括:模块组,该模块组包括视频模块1311、外部存储器1312、电力管理模块1313、前端模块1314等;以及具有相关联的功能的装置如连接件1321、相机1322和传感器1323。As shown in Figure 37, the video suite 1300 includes: a module group, which includes a video module 1311, an external memory 1312, a power management module 1313, a front-end module 1314, etc.; and devices with associated functions such as a connector 1321, a camera 1322 and a sensor 1323.
将模块假定为下述组件:在该组件中,将彼此相关联的数个组件类功能整合以具有连贯的功能。具体的物理构造是任意的,但是将构造假定成例如通过在用于集成的布线基板等上布置具有相应功能的多个处理器、诸如电阻器和电容器等电子电路元件、其他装置等而获得的构造。此外,也设想可以将模块与另一模块、处理器等组合以成为新模块。A module is assumed to be a component in which several related component-like functions are integrated to provide coherent functionality. The specific physical configuration is arbitrary, but it is assumed to be a configuration obtained by, for example, arranging multiple processors with corresponding functions, electronic circuit elements such as resistors and capacitors, and other devices on a wiring substrate for integration. Furthermore, it is also assumed that a module can be combined with another module, a processor, etc. to form a new module.
在图37的示例的情况下,视频模块1311是具有影像处理的功能的构造的组合,并且包括应用处理器、视频处理器、宽带调制解调器1333和RF(射频)模块1334。In the case of the example of FIG. 37 , the video module 1311 is a combination of configurations having an image processing function, and includes an application processor, a video processor, a broadband modem 1333 , and an RF (Radio Frequency) module 1334 .
处理器是通过SoC(片上系统)将具有预定功能的构造集成在半导体芯片中的部件,并且可以被称为例如系统LSI(大规模集成)。具有预定功能的这样的构造可以是逻辑电路(硬件构造)、CPU、ROM、RAM等、以及通过使用以上构造而执行的程序(软件构造),或者可以是上述构造两者的组合。例如,处理器可以包括逻辑电路、CPU、ROM、RAM等,并且可以通过逻辑电路(硬件构造)来实现功能的一部分以及通过由CPU执行的程序(软件构造)来实现其他功能。A processor is a component in which a structure having a predetermined function is integrated into a semiconductor chip by SoC (System on Chip), and may be referred to as, for example, System LSI (Large Scale Integration). Such a structure having a predetermined function may be a logic circuit (hardware structure), a CPU, ROM, RAM, etc., and a program executed by using the above structure (software structure), or may be a combination of the above structures. For example, a processor may include a logic circuit, a CPU, ROM, RAM, etc., and may implement a part of the function by the logic circuit (hardware structure) and implement other functions by a program executed by the CPU (software structure).
图37的应用处理器1331是执行关于影像处理的应用的处理器。由应用处理器1331执行的应用不仅可以执行计算处理,而且还可以根据需要来控制视频模块1311内部和外部的构造如视频处理器1332以实现预定功能。The application processor 1331 in FIG37 is a processor that executes an application related to image processing. The application executed by the application processor 1331 can not only perform computing processing, but also control the internal and external components of the video module 1311, such as the video processor 1332, as needed to achieve predetermined functions.
视频处理器1332是具有影像编码/解码(一者或它们两者)的功能的处理器。The video processor 1332 is a processor having functions of image encoding/decoding (one or both).
宽带调制解调器1333是对经由宽带连接如因特网和公用电话网络而执行的有线或无线(或它们两者)宽带通信执行处理的处理器(或模块)。例如,宽带调制解调器1333例如对要发送的数据(数字信号)执行数字调制以将其转换成模拟信号,或者对所接收的模拟信号进行解调以将其转换成数据(数字信号)。例如,宽带调制解调器1333可以对任意信息如由视频处理器1332处理的影像数据、影像数据被编码的流、应用程序和设置数据执行数字调制/解调。The broadband modem 1333 is a processor (or module) that processes wired or wireless (or both) broadband communications via a broadband connection, such as the Internet and a public telephone network. For example, the broadband modem 1333 performs digital modulation on transmitted data (digital signals) to convert them into analog signals, or demodulates received analog signals to convert them into data (digital signals). For example, the broadband modem 1333 can perform digital modulation/demodulation on arbitrary information, such as image data processed by the video processor 1332, encoded image data streams, application programs, and configuration data.
RF模块1334是对经由天线发送和接收的RF(射频)信号执行频率转换、调制和解调、放大、滤波处理等的模块。例如,RF模块1334对由宽带调制解调器1333生成的基带信号执行频率转换等,并且生成RF信号。此外,例如,RF模块1334对经由前端模块1314接收的RF信号执行频率转换等,并且生成基带信号。The RF module 1334 is a module that performs frequency conversion, modulation and demodulation, amplification, filtering, and the like on RF (Radio Frequency) signals transmitted and received via the antenna. For example, the RF module 1334 performs frequency conversion, etc. on the baseband signal generated by the broadband modem 1333, and generates an RF signal. In addition, for example, the RF module 1334 performs frequency conversion, etc. on the RF signal received via the front-end module 1314, and generates a baseband signal.
应当注意,如由图37中的虚线1341所表示的,可以将应用处理器1331和视频处理器1332集成并且构成为一个处理器。It should be noted that, as indicated by a dotted line 1341 in FIG. 37 , the application processor 1331 and the video processor 1332 may be integrated and constituted as one processor.
外部存储器1312是设置在视频模块1311外部的模块,并且包括由视频模块1311使用的存储装置。可以通过任意物理构造来实现外部存储器1312的存储装置。通常,由于存储装置频繁地被用于存储大量的数据如以帧为单位的影像数据,所以存储装置期望通过例如相对不贵并且具有大容量的半导体存储器如DRAM(动态随机存取存储器)来实现。The external memory 1312 is a module provided outside the video module 1311 and includes a storage device used by the video module 1311. The storage device of the external memory 1312 can be implemented by any physical structure. Generally, since the storage device is frequently used to store a large amount of data such as image data in units of frames, the storage device is preferably implemented by, for example, 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 the power supply to the video module 1311 (the configuration within the video module 1311 ).
前端模块1314是向RF模块1334提供前端功能(在天线侧的发送和接收端处的电路)的模块。如图37中所示,前端模块1314包括例如天线部1351、滤波器1352和放大部1353。The front-end module 1314 is a module that provides a front-end function (circuitry at the transmitting and receiving ends on the antenna side) to the RF module 1334. As shown in FIG37 , the front-end module 1314 includes, for example, an antenna portion 1351, a filter 1352, and an amplifier portion 1353.
天线部1351包括发送和接收无线电信号的天线及其外围构造。天线部1351将从放大部1353供给的信号作为无线电信号进行发送,并且将所接收的无线电信号作为电信号(RF信号)供给至滤波器1352。滤波器1352对经由天线部1351接收的RF信号执行滤波处理等,并且将经处理的RF信号供给至RF模块1334。放大部1353将从RF模块1334供给的RF信号放大,并且将所得的信号供给至天线部1351。Antenna section 1351 includes an antenna and its peripheral components for transmitting and receiving radio signals. Antenna section 1351 transmits the signal supplied from amplifier section 1353 as a radio signal and supplies the received radio signal to filter 1352 as an electrical signal (RF signal). Filter 1352 performs filtering and other processing on the RF signal received via antenna section 1351 and supplies the processed RF signal to RF module 1334. Amplifier section 1353 amplifies the RF signal supplied from RF module 1334 and supplies the resulting signal to antenna section 1351.
连接件1321是具有外部连接功能的模块。连接件1321的物理构造是任意的。例如,连接件1321包括具有除了与宽带调制解调器1333、外部输入/输出端子等对应的通信标准以外的通信功能的构造。The connector 1321 is a module having an external connection function. The physical structure of the connector 1321 is arbitrary. For example, the connector 1321 includes a structure having a communication function other than a communication standard corresponding to the broadband modem 1333, an external input/output terminal, etc.
例如,连接件1321可以包括具有根据无线通信标准如蓝牙(注册商标)、IEEE802.11(例如,Wi-Fi(无线保真,注册商标))、NFC(近场通信)和IrDA(红外数据组织)的通信功能的模块、根据这样的标准来发送和接收信号的天线等。此外,例如,连接件1321可以包括具有根据有线通信标准如USB(通用串行总线)和HDMI(注册商标)(高清晰多媒体接口)的通信功能的模块、以及根据这样的标准的端子。此外,例如,连接件1321可以具有另外的数据(信号)传送功能等,如模块输入/输出端子。For example, the connector 1321 may include a module having a communication function according to wireless communication standards such as Bluetooth (registered trademark), IEEE802.11 (e.g., Wi-Fi (Wireless Fidelity, registered trademark)), NFC (Near Field Communication), and IrDA (Infrared Data Association), an antenna for transmitting and receiving signals according to such standards, etc. In addition, for example, the connector 1321 may include a module having a communication function according to wired communication standards such as USB (Universal Serial Bus) and HDMI (registered trademark) (High-Definition Multimedia Interface), and terminals according to such standards. In addition, for example, the connector 1321 may have additional data (signal) transmission functions, such as module input/output terminals.
应当注意,连接件1321可以包括作为数据(信号)传送目的地的装置。例如,连接件1321可以包括对记录介质如磁盘、光盘、磁光盘和半导体存储器读取和写入数据的驱动器(不仅包括可移除介质的驱动器,还包括硬盘、SSD(固态驱动器)、NAS(网络附加存储))等。此外,连接件1321可以包括影像或音频输出装置(监测器、扬声器等)。It should be noted that the connection member 1321 may include a device that serves as a data (signal) transmission destination. For example, the connection member 1321 may include a drive that reads and writes data to recording media such as magnetic disks, optical disks, magneto-optical disks, and semiconductor memories (including not only drives for removable media but also hard disks, SSDs (solid-state drives), and NAS (network attached storage)). Furthermore, the connection member 1321 may include an image or audio output device (monitor, speaker, etc.).
相机1322是具有对对象进行成像并且获取对象的影像数据的功能的模块。通过相机1322的成像而获得的影像数据被例如供给至视频处理器1332并且被编码。The camera 1322 is a module having a function of imaging a subject and acquiring image data of the subject. Image data obtained by imaging by the camera 1322 is supplied to the video processor 1332 and encoded, for example.
传感器1323是具有任意传感器例如音频传感器、超声传感器、光学传感器、照度传感器、红外传感器、影像传感器、旋转传感器、角度传感器、角速度传感器、速度传感器、加速度传感器、倾斜传感器、磁性识别传感器、振动传感器和温度传感器的功能的模块。由传感器1323检测的数据例如被供给至应用处理器1331,并且被应用等使用。The sensor 1323 is a module having the functions of any sensor, such as an audio sensor, an ultrasonic sensor, an optical sensor, an illumination sensor, an infrared sensor, an image sensor, a rotation sensor, an angle sensor, an angular velocity sensor, a speed sensor, an acceleration sensor, a tilt sensor, a magnetic recognition sensor, a vibration sensor, and a temperature sensor. Data detected by the sensor 1323 is supplied to the application processor 1331, for example, and used by an application or the like.
以上作为模块而描述的构造可以被实现为处理器,并且反之,作为处理器而描述的构造可以被实现为模块。The configuration described above as a module may be implemented as a processor, and conversely, the configuration described as a processor may be implemented as a module.
在如上所述构造的视频套组1300中,本公开可以应用于稍后将描述的视频处理器1332。因此,视频套组1300可以被实施为应用本公开的套组。In the video suite 1300 constructed as described above, the present disclosure can be applied to a video processor 1332 to be described later. Therefore, the video suite 1300 can be implemented as a suite to which the present disclosure is applied.
(视频处理器的构造示例)(Configuration Example of Video Processor)
图38示出了应用本公开的视频处理器1332(图37)的示意性构造的示例。FIG38 shows an example of a schematic configuration of the video processor 1332 ( FIG37 ) to which the present disclosure is applied.
在图38的示例的情况下,视频处理器1332具有接收视频信号和音频信号的输入并且通过预定系统对那些信号进行编码的功能以及对编码的视频信号和音频信号进行解码并且再现和输出视频信号和音频信号的功能。In the case of the example of FIG. 38 , the video processor 1332 has a function of receiving input of video signals and audio signals and encoding those signals through a predetermined system, and a function of decoding the encoded video signals and audio signals and reproducing and outputting the video signals and audio signals.
如图38中所示,视频处理器1332包括视频输入处理部1401、第一影像缩放部1402、第二影像缩放部1403、视频输出处理部1404、帧存储器1405和存储器控制部1406。此外,视频处理器1332包括编码/解码引擎1407、视频ES(基本流)缓冲器1408A和1408B以及音频ES缓冲器1409A和1409B。此外,视频处理器1332包括音频编码器1410、音频解码器1411、多路复用部(MUX(多路复用器)1412)、多路分离部(DMUX(多路分离器))1413和流缓冲器1414。As shown in FIG38 , the video processor 1332 includes a video input processing unit 1401, a first image scaling unit 1402, a second image scaling unit 1403, a video output processing unit 1404, a frame memory 1405, and a memory control unit 1406. Furthermore, the video processor 1332 includes an encoding/decoding engine 1407, video ES (elementary stream) buffers 1408A and 1408B, and audio ES buffers 1409A and 1409B. Furthermore, 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(图37)输入的视频信号,并且将视频信号转换成数字影像数据。第一影像缩放部1402对影像数据执行格式转换、图像缩放处理等。第二影像缩放部1403根据用于经由视频输出处理部1404输出的目的地的格式对影像数据执行图像缩放处理,或者对影像数据执行与第一影像缩放部1402类似的格式转换、图像缩放处理等。视频输出处理部1404对影像数据执行格式转换、转换成模拟信号等,并且将数据作为再现的视频信号输出至例如连接件1321(图37)。The video input processing unit 1401 receives a video signal input from, for example, the connector 1321 ( FIG. 37 ), and converts the video signal into digital image data. The first image scaling unit 1402 performs format conversion, image scaling, and other processing on the image data. The second image scaling unit 1403 performs image scaling processing on the image data in accordance with the format of the destination for output via the video output processing unit 1404, or performs format conversion, image scaling, and other processing similar to that of the first image scaling unit 1402. The video output processing unit 1404 performs format conversion, conversion into an analog signal, and other processing on the image data, and outputs the data as a reproduced video signal to, for example, the connector 1321 ( FIG. 37 ).
帧存储器1405是用于与视频输入处理部1401、第一影像缩放部1402、第二影像缩放部1403、视频输出处理部1404和编码/解码引擎1407共享的影像数据的存储器。将帧存储器1405实现为半导体存储器如DRAM。The frame memory 1405 is a memory for image data shared with 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 implemented as a semiconductor memory such as a DRAM.
响应于来自编码/解码引擎1407的同步信号,存储器控制部1406根据访问管理表1406A中所写入的访问帧存储器1405的进度表来控制对写入和读取帧存储器1405的访问。由存储器控制部1406根据在编码/解码引擎1407、第一影像缩放部1402、第二影像缩放部1403等中执行的处理来更新访问管理表1406A。In response to a synchronization signal from the encoding/decoding engine 1407, the memory control unit 1406 controls access to and reading from the frame memory 1405 according to the schedule for accessing the frame memory 1405 written to the access management table 1406A. The access management table 1406A is updated by the memory control unit 1406 based on the processing executed by the encoding/decoding engine 1407, the first image scaling unit 1402, the second image scaling unit 1403, and the like.
编码/解码引擎1407对影像数据执行编码处理,并且对其中影像数据是编码数据的视频流执行解码处理。例如,编码/解码引擎1407对从帧存储器1405读取的影像数据进行编码,并且随后将影像数据作为视频流写入视频ES缓冲器1408A中。此外,例如,编码/解码引擎1407随后从视频ES缓冲器1408B读取视频流以用于解码,并且随后将解码的视频流作为影像数据写入帧存储器1405中。在编码和解码中,编码/解码引擎1407使用帧存储器1405作为工作区域。此外,例如,在开始基于宏块的处理时,编码/解码引擎1407将同步信号输出至存储器控制部1406。The encoding/decoding engine 1407 encodes the image data and decodes the video stream, which contains the encoded image data. For example, the encoding/decoding engine 1407 encodes the image data read from the frame memory 1405 and then writes the image data as a video stream to the video ES buffer 1408A. Furthermore, for example, the encoding/decoding engine 1407 then reads the video stream from the video ES buffer 1408B for decoding and then writes the decoded video stream as image data to the frame memory 1405. During encoding and decoding, the encoding/decoding engine 1407 uses the frame memory 1405 as a work area. Furthermore, for example, when starting macroblock-based processing, the encoding/decoding engine 1407 outputs a synchronization signal to the memory control unit 1406.
视频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 video stream to the multiplexing section (MUX) 1412. The video ES buffer 1408B buffers the video stream supplied from the demultiplexing section (DMUX) 1413 and supplies the 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 audio stream to the multiplexing section (MUX) 1412. The audio ES buffer 1409B buffers the audio stream supplied from the demultiplexing section (DMUX) 1413 and supplies the audio stream to the audio decoder 1411.
音频编码器1410对从例如连接件1321(图37)输入的音频信号执行例如数字转换,并且通过预定的系统如MPEG音频系统和AC3(音频编码3)系统对所得的信号进行编码。音频编码器1410随后将音频流写入音频ES缓冲器1409A中,该音频流是其中音频信号被编码的数据。音频解码器1411对从音频ES缓冲器1409B供给的音频流进行解码,执行转换成例如模拟信号,并且将模拟信号作为再现的音频信号供给至例如连接件1321(图37)。The audio encoder 1410 performs, for example, digital conversion on the audio signal input from, for example, the connector 1321 ( FIG. 37 ), and encodes the resulting signal using a predetermined system such as the MPEG audio system and the AC3 (Audio Coding 3) system. The audio encoder 1410 then writes the audio stream, which is the data in which the audio signal is encoded, into the audio ES buffer 1409A. The audio decoder 1411 decodes the audio stream supplied from the audio ES buffer 1409B, converts it into, for example, an analog signal, and supplies the analog signal as a reproduced audio signal to, for example, the connector 1321 ( FIG. 37 ).
多路复用部(MUX)1412对视频流和音频流进行多路复用。多路复用方法(即,通过多路复用而生成的比特流的格式)是任意的。此外,在多路复用时,多路复用部(MUX)1412还可以将预定的首部信息等添加至比特流。换言之,多路复用部(MUX)1412通过多路复用来转换流的格式。例如,多路复用部(MUX)1412对视频信号和音频信号进行多路复用以将那些流转换成传输流,该传输流是具有用于传输的格式的比特流。此外,例如,多路复用部(MUX)1412对视频信号和音频信号进行多路复用以将那些流转换成具有用于记录的文件格式的数据(文件数据)。The multiplexing unit (MUX) 1412 multiplexes the video stream and the audio stream. The multiplexing method (i.e., the format of the bit stream generated by multiplexing) is arbitrary. In addition, during multiplexing, the multiplexing unit (MUX) 1412 can also add predetermined header information, etc. to the bit stream. In other words, the multiplexing unit (MUX) 1412 converts the format of the stream by multiplexing. For example, the multiplexing unit (MUX) 1412 multiplexes the video signal and the audio signal to convert those streams into a transport stream, which is a bit stream having a format for transmission. In addition, for example, the multiplexing unit (MUX) 1412 multiplexes the video signal and the audio signal to convert those streams into data (file data) having a file format for recording.
多路分离部(DMUX)1413通过与多路复用部(MUX)1412的多路复用对应的方法对其中视频流和音频流被多路复用的比特流进行多路分离。换言之,多路分离部(DMUX)1413从自流缓冲器1414读取的比特流中提取视频流和音频流(将视频流和音频流彼此分离)。换言之,多路分离部(DMUX)1413可以通过多路分离(多路复用部(MUX)1412的转换的逆转换)来转换流的格式。例如,多路分离部(DMUX)1413可以获取经由流缓冲器1414从例如连接件1321或宽带调制解调器1333(它们中的每一个均在图37中示出)供给的传输流,并且对传输流进行多路分离以将传输流转换成视频流和音频流。此外,例如,多路分离部(DMUX)1413可以获取通过例如连接件1321(图37)、经由流缓冲器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 of the multiplexing unit (MUX) 1412. In other words, the demultiplexing unit (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 from each other). In other words, the demultiplexing unit (DMUX) 1413 can convert the format of the stream by demultiplexing (the inverse conversion of the conversion of the multiplexing unit (MUX) 1412). For example, the demultiplexing unit (DMUX) 1413 can obtain a transport stream supplied from, for example, the connector 1321 or the broadband modem 1333 (each of which is shown in FIG. 37) via the stream buffer 1414, and demultiplex the transport stream to convert the transport stream into a video stream and an audio stream. In addition, for example, the demultiplexing unit (DMUX) 1413 can obtain file data read from various recording media through, for example, the connector 1321 (Figure 37) and the stream buffer 1414, and demultiplex the file data to convert the file data into video streams and audio streams.
流缓冲器1414缓冲比特流。例如,流缓冲器1414缓冲从多路复用部(MUX)1412供给的传输流,并且在预定时刻或基于来自外界等的请求将传输流供给至例如连接件1321或宽带调制解调器1333(它们中的每一个均在图37中示出)。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 supplies the transport stream to, for example, the connection 1321 or the broadband modem 1333 (each of which is shown in FIG. 37 ) at a predetermined timing or based on a request from the outside world.
此外,例如,流缓冲器1414缓冲从多路复用部(MUX)1412供给的文件数据,在预定时刻或基于来自外界等的请求将文件数据供给至例如连接件1321(图37),并且将文件数据记录在各种记录介质上。In addition, for example, the stream buffer 1414 buffers the file data supplied from the multiplexing unit (MUX) 1412, supplies the file data to, for example, the connector 1321 (Figure 37) at a predetermined time or based on a request from the outside world, and records the file data on various recording media.
此外,流缓冲器1414缓冲经由例如连接件1321或宽带调制解调器1333(它们中的每一个均在图37中示出)而获得的传输流,并且在预定时刻或基于来自外界等的请求将传输流供给至多路分离部(DMUX)1413。In addition, the stream buffer 1414 buffers the transmission stream obtained via, for example, the connection member 1321 or the broadband modem 1333 (each of which is shown in Figure 37), and supplies the transmission stream to the demultiplexing unit (DMUX) 1413 at a predetermined time or based on a request from the outside world, etc.
此外,流缓冲器1414在例如连接件1321(图37)中缓冲从各种记录介质读取的文件数据,并且在预定时刻或基于来自外界等的请求将文件数据供给至多路分离部(DMUX)1413。Furthermore, the stream buffer 1414 buffers file data read from various recording media in, for example, the connector 1321 ( FIG. 37 ), and supplies the file data to the demultiplexing section (DMUX) 1413 at a predetermined timing or based on a request from the outside or the like.
接着,将描述具有这样的构造的视频处理器1332的操作示例。例如,在视频输入处理部1401中,从连接件1321(图37)等输入至视频处理器1332的视频信号被转换成预定系统如4:2:2Y/Cb/Cr系统的数字影像数据,并且随后被写入帧存储器1405中。数字影像数据被第一影像缩放部1402或第二影像缩放部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, in the video input processing section 1401, a video signal input from the connector 1321 ( FIG. 37 ) or the like to the video processor 1332 is converted into digital image data of a predetermined system, such as a 4:2:2 Y/Cb/Cr system, and then written into the frame memory 1405. The digital image data is read by the first image scaling section 1402 or the second image scaling section 1403, subjected to format conversion to a predetermined system, such as a 4:2:0 Y/Cb/Cr system, and scaling processing, and then written again into the frame memory 1405. The image data is encoded by the encoding/decoding engine 1407 and written as a video stream into the video ES buffer 1408A.
此外,从连接件1321(图37)等输入至视频处理器1332的音频信号被音频编码器1410编码,并且作为音频流写入音频ES缓冲器1409A中。Furthermore, the audio signal input from the connector 1321 ( FIG. 37 ) or the like to the video processor 1332 is encoded by the audio encoder 1410 and written in the audio ES buffer 1409A as an audio stream.
视频ES缓冲器1408A的视频流和音频ES缓冲器1409A的音频流被多路复用部(MUX)1412读取和多路复用,并且被转换成传输流、文件数据等。由多路复用部(MUX)1412生成的传输流被流缓冲器1414缓冲,然后经由例如连接件1321或宽带调制解调器1333(它们中的每一个均在图37中示出)输出至外部网络。此外,由多路复用部(MUX)1412生成的文件数据被流缓冲器1414缓冲,然后输出至连接件1321(图37),并且被记录在各种记录介质上。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 are converted into a transport stream, file data, etc. The transport stream generated by the multiplexing unit (MUX) 1412 is buffered by the stream buffer 1414 and then output to the external network via, for example, the connection 1321 or the broadband modem 1333 (each of which is shown in Figure 37). In addition, the file data generated by the multiplexing unit (MUX) 1412 is buffered by the stream buffer 1414 and then output to the connection 1321 (Figure 37) and recorded on various recording media.
此外,经由例如连接件1321或宽带调制解调器1333(它们中的每一个均在图37中示出)从外部网络输入至视频处理器1332的传输流在流缓冲器1414中被缓冲,然后被多路分离部(DMUX)1413多路分离。此外,在例如连接件1321(图37)中从各种记录介质读取的并且输入至视频处理器1332的文件数据在流缓冲器1414中被缓冲,然后被多路分离部(DMUX)1413多路分离。换言之,输入至视频处理器1332的传输流或文件数据被多路分离部(DMUX)1413分离成视频流和音频流。Furthermore, a transport stream input to the video processor 1332 from an external network via, for example, the connection 1321 or the broadband modem 1333 (each of which is shown in FIG. 37 ) is buffered in the stream buffer 1414 and then demultiplexed by the demultiplexing section (DMUX) 1413. Furthermore, file data read from various recording media in, for example, the connection 1321 ( FIG. 37 ) and input to the video processor 1332 is buffered in the stream buffer 1414 and then demultiplexed by the demultiplexing section (DMUX) 1413. In other words, the transport stream or file data input to the video processor 1332 is separated into a video stream and an audio stream by the demultiplexing section (DMUX) 1413.
音频流经由音频ES缓冲器1409B被供给至音频解码器1411,并且被解码以再现音频信号。此外,视频流被写入视频ES缓冲器1408B中,随后被编码/解码引擎1407读取、解码并写入帧存储器1405中。经解码的影像数据经受第二影像缩放部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. Furthermore, the video stream is written to the video ES buffer 1408B, then read by the encoding/decoding engine 1407, decoded, and written to the frame memory 1405. The decoded image data undergoes scaling processing by the second image scaling unit 1403 and is written to the frame memory 1405. The decoded image data is then read by the video output processing unit 1404, subjected to format conversion to a predetermined system, such as the 4:2:2 Y/Cb/Cr system, and converted into an analog signal to reproduce and output the video signal.
在本公开应用于如上所述构造的视频处理器1332的情况下,仅需要将根据上述每个实施例的本公开应用于编码/解码引擎1407。换言之,例如,编码/解码引擎1407仅需要具有根据第一至第三实施例的编码设备或解码设备的功能。这使得视频处理器1332能够获得与以上参照图1至图31所描述的效果类似的效果。In the case where the present disclosure is applied to the video processor 1332 configured as described above, it is only necessary to apply the present disclosure according to each of the above-described embodiments to the encoding/decoding engine 1407. In other words, for example, the encoding/decoding engine 1407 only needs to have the functions of the encoding device or decoding device according to the first to third embodiments. This enables the video processor 1332 to obtain effects similar to those described above with reference to FIG. 1 to FIG. 31.
应当注意,在编码/解码引擎1407中,本公开(即根据上述每个实施例的编码设备或解码设备的功能)可以通过硬件如逻辑电路来实现,可以通过软件如嵌入式程序来实现,或者可以通过它们两者来实现。It should be noted that in the encoding/decoding engine 1407, the present disclosure (i.e., the functions of the encoding device or decoding device according to each of the above-mentioned embodiments) can be implemented by hardware such as a logic circuit, can be implemented by software such as an embedded program, or can be implemented by both.
(视频处理器的另一构造示例)(Another Configuration Example of a Video Processor)
图39示出了应用本公开的视频处理器1332(图37)的示意性构造的另一示例。在图39的示例的情况下,视频处理器1332具有通过预定系统来编码/解码视频数据的功能。Fig. 39 shows another example of a schematic configuration of the video processor 1332 (Fig. 37) to which the present disclosure is applied. In the example of Fig. 39, the video processor 1332 has a function of encoding/decoding video data by a predetermined system.
更具体地,如图39中所示,视频处理器1332包括控制部1511、显示接口1512、显示引擎1513、影像处理引擎1514和内部存储器1515。此外,视频处理器1332包括编解码器引擎1516、存储器接口1517、多路复用/多路分离部(MUX DMUX)1518、网络接口1519和视频接口1520。39 , 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. Furthermore, 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控制视频处理器1332内的相应处理部如显示接口1512、显示引擎1513、影像处理引擎1514和编解码器引擎1516的操作。The control unit 1511 controls the operations of corresponding processing units within the video processor 1332 , such as the display interface 1512 , the display engine 1513 , the image processing engine 1514 , and the codec engine 1516 .
如图39中所示,控制部1511包括例如主CPU 1531、副CPU 1532和系统控制器1533。主CPU 1531执行用于控制视频处理器1332内的相应处理部的操作的程序。主CPU 1531根据该程序等来生成控制信号,并且将控制信号供给至处理部(即控制相应处理部的操作)。副CPU 1532扮演主CPU 1531的辅助角色。例如,副CPU 1532执行由主CPU 1531等执行的程序的子处理、子例程等。系统控制器1533控制主CPU 1531和副CPU 1532的操作如指定由主CPU1531和副CPU 1532执行的程序。As shown in FIG39 , 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 for controlling the operation of the corresponding processing unit in the video processor 1332. The main CPU 1531 generates a control signal based on the program and supplies the control signal to the processing unit (i.e., controls the operation of the corresponding processing unit). The sub-CPU 1532 plays an auxiliary role to the main CPU 1531. For example, the sub-CPU 1532 executes a sub-process, a subroutine, etc. of the program executed by the main CPU 1531 and the like. The system controller 1533 controls the operation of the main CPU 1531 and the sub-CPU 1532, such as specifying the program executed by the main CPU 1531 and the sub-CPU 1532.
显示接口1512在控制部1511的控制下将影像数据输出至例如连接件1321(图37)等。例如,显示接口1512将数字数据的影像数据转换成模拟信号,并且将模拟信号作为再现的视频信号或在不改变的情况下将数字数据的影像数据输出至连接件1321(图37)的监控设备等。The display interface 1512 outputs the image data to, for example, the connector 1321 ( FIG. 37 ) under the control of the control unit 1511. For example, the display interface 1512 converts the image data of digital data into an analog signal and outputs the analog signal as a reproduced video signal or the image data of digital data without changing it to a monitoring device or the like of the connector 1321 ( FIG. 37 ).
显示引擎1513在控制部1511的控制下对影像数据执行各种类型的转换处理如格式转换、尺寸转换和色域转换,以将其与显示影像数据的影像的监视设备等的硬件规格相匹配。The display engine 1513 performs various types of conversion processing such as format conversion, size conversion, and color gamut conversion on image data under the control of the control section 1511 to match it with the hardware specifications of a monitor device or the like that displays the image data.
影像处理引擎1514在控制部1511的控制下对影像数据执行预定的影像处理如滤波处理以用于例如提高影像质量。The image processing engine 1514 performs predetermined image processing such as filtering on the image data under the control of the control unit 1511 for improving image quality, for example.
内部存储器1515是设置在视频处理器1332内部并且与显示引擎1513、影像处理引擎1514和编解码器引擎1516共享的存储器。内部存储器1515用于例如在显示引擎1513、影像处理引擎1514和编解码器引擎1516之间给予和接收数据。例如,内部存储器1515存储从显示引擎1513、影像处理引擎1514或编解码器引擎1516供给的数据,并且根据需要(例如,响应于请求)将数据供给至显示引擎1513、影像处理引擎1514或编解码器引擎1516。内部存储器1515可以由任何存储装置来实现。通常,由于内部存储器1515频繁地用于存储少量数据如以块为单位的影像数据和参数,所以内部存储器1515期望由具有相对(与例如外部存储器1312相比)小的容量但具有高速响应的半导体存储器如SRAM(静态随机存取存储器)实现。The internal memory 1515 is provided within the video processor 1332 and is shared with the display engine 1513, the image processing engine 1514, and the codec engine 1516. The internal memory 1515 is used, for example, to transfer data 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 supplies data to the display engine 1513, the image processing engine 1514, or the codec engine 1516 as needed (e.g., in response to a request). The internal memory 1515 can be implemented by any storage device. Generally, since the internal memory 1515 is frequently used to store small amounts of data, such as image data and parameters in units of blocks, it is desirable to implement the internal memory 1515 by a semiconductor memory device, such as SRAM (static random access memory), that has a relatively small capacity (compared to, for example, the external memory 1312) but high-speed response.
编解码器引擎1516对影像数据执行编码或解码的处理。与编解码器引擎1516对应的编码/解码系统是任意的,并且其数目可以是一个或多于一个。例如,编解码器引擎1516可以具有多个编码/解码系统的编解码器功能,并且通过选自上述功能的功能来执行影像数据的编码或编码数据的解码。The codec engine 1516 performs encoding or decoding processing on the image data. The encoding/decoding system corresponding to the codec engine 1516 is arbitrary, and the number of such systems may be one or more. For example, the codec engine 1516 may have codec functions of multiple encoding/decoding systems and perform encoding of the image data or decoding of the encoded data using a function selected from the above functions.
在图39所示的示例中,编解码器引擎1516包括例如MPEG-2视频1541、AVC/H.2641542、HEVC/H.2651543、HEVC/H.265(可按比例缩放)1544、HEVC/H.265(多视点)1545和MPEG-DASH 1551作为关于编解码器的处理的功能块。In the example shown in Figure 39, the codec engine 1516 includes, for example, MPEG-2 Video 1541, AVC/H.2641542, HEVC/H.2651543, HEVC/H.265 (Scalable) 1544, HEVC/H.265 (Multi-view) 1545 and MPEG-DASH 1551 as functional blocks for processing regarding the codec.
MPEG-2视频1541是用于通过MPEG-2系统对影像数据进行编码和解码的功能块。AVC/H.2641542是用于通过AVC系统对影像数据进行编码和解码的功能块。HEVC/H.2651543是用于通过HEVC对影像数据进行编码和解码的功能块。HEVC/H.265(可按比例缩放)1544是用于通过HEVC对影像数据进行可按比例缩放的编码和可按比例缩放的解码的功能块。HEVC/H.265(多视点)1545是用于通过HEVC对影像数据进行多视点编码和多视点解码的功能块。MPEG-2 Video 1541 is a functional block for encoding and decoding image data using the MPEG-2 system. AVC/H.264 1542 is a functional block for encoding and decoding image data using the AVC system. HEVC/H.265 1543 is a functional block for encoding and decoding image data using HEVC. HEVC/H.265 (Scalable) 1544 is a functional block for scalable encoding and scalable decoding of image data using HEVC. HEVC/H.265 (Multiview) 1545 is a functional block for multi-view encoding and multi-view decoding of image data using HEVC.
MPEG-DASH 1551是用于通过MPEG-DASH(MPEG-基于HTTP的动态自适应流媒体)系统来发送和接收影像数据的功能块。MPEG-DASH是使用HTTP(超文本传输协议)的视频流技术,并且其特征之一是从预先准备的分辨率等不同的编码数据中以片段为单位选择并传送适当的编码数据。MPEG-DASH 1551根据标准来执行流的生成、流的传输和控制等,并且使用以上提到的MPEG-2视频1541至HEVC/H.265(多视点)1545以用于影像数据的编码/解码。MPEG-DASH 1551 is a functional block for transmitting and receiving image data via the MPEG-DASH (MPEG-Dynamic Adaptive Streaming over HTTP) system. MPEG-DASH is a video streaming technology that uses HTTP (Hypertext Transfer Protocol), and one of its features is that it selects and transmits appropriate encoded data in units of segments from pre-prepared encoded data of different resolutions, etc. MPEG-DASH 1551 performs stream generation, stream transmission and control, etc. according to the standard, and uses the above-mentioned MPEG-2 Video 1541 to HEVC/H.265 (Multiview) 1545 for encoding and decoding image data.
存储器接口1517是用于外部存储器1312的接口。经由存储器接口1517将从影像处理引擎1514或编解码器引擎1516供给的数据供给至外部存储器1312。此外,经由存储器接口1517将从外部存储器1312读取的数据供给至视频处理器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. In addition, 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不仅可以将几条数据整合成一条数据,而且可以将预定的首部信息等添加至该数据中。此外,在多路分离时,多路复用/多路分离部(MUX DMUX)1518不仅可以将一条数据划分成几条数据,而且可以将预定的首部信息等添加至所划分的数据中。换言之,多路复用/多路分离部(MUX DMUX)1518可以通过多路复用/多路分离来转换数据格式。例如,多路复用/多路分离部(MUX DMUX)1518可以通过多路复用比特流来将比特流转换成传输流或具有用于记录的文件格式的数据(文件数据),该传输流是具有用于传输的格式的比特流。当然,还可以通过多路分离来执行其逆转换。The multiplexing/demultiplexing unit (MUX DMUX) 1518 multiplexes or demultiplexes various types of data about images, such as the bit stream of encoded data, image data, and video signals. The multiplexing/demultiplexing method is arbitrary. For example, during multiplexing, the multiplexing/demultiplexing unit (MUX DMUX) 1518 can not only integrate several pieces of data into one piece of data, but also add predetermined header information, etc. to the data. In addition, during demultiplexing, the multiplexing/demultiplexing unit (MUX DMUX) 1518 can not only divide one piece of data into several pieces of data, but also add predetermined header information, etc. to the divided data. In other words, the multiplexing/demultiplexing unit (MUX DMUX) 1518 can convert the data format by multiplexing/demultiplexing. For example, the multiplexing/demultiplexing section (MUX DMUX) 1518 can convert the bit stream into a transport stream or data (file data) having a file format for recording by multiplexing the bit stream. Of course, the reverse conversion can also be performed by demultiplexing.
网络接口1519是用于例如宽带调制解调器1333、连接件1321(它们中的每一个均在图37中示出)等的接口。视频接口1520是用于例如连接件1321、相机1322(它们中的每一个均在图37中示出)等的接口。The network interface 1519 is an interface for, for example, the broadband modem 1333, the connector 1321 (each of which is shown in FIG37), etc. The video interface 1520 is an interface for, for example, the connector 1321, the camera 1322 (each of which is shown in FIG37), etc.
接下来,将描述如上所述的视频处理器1332的操作示例。例如,当经由连接件1321、宽带调制解调器1333(它们中的每一个均在图37中示出)等从外部网络接收传输流时,经由网络接口1519将传输流供给至多路复用/多路分离部(MUX DMUX)1518,并且传输流被多路分离,然后被编解码器引擎1516解码。通过编解码器引擎1516的解码而获得的影像数据例如经受影像处理引擎1514的预定影像处理,经受显示引擎1513的预定转换,并且经由显示接口1512被供给至例如连接件1321(图37)等,使得其影像显示在监视器上。此外,例如,通过编解码器引擎1516的解码而获得的影像数据被编解码器引擎1516再次编码,被多路复用/多路分离部(MUX DMUX)1518多路复用并转换成文件数据,经由视频接口1520被输出至例如连接件1321(图37)等,并且被记录在各种记录介质上。Next, an example of the operation of the video processor 1332 described above will be described. For example, when a transport stream is received from an external network via the connection 1321, broadband modem 1333 (each of which is shown in FIG37 ), etc., the transport stream is supplied to the multiplexing/demultiplexing unit (MUX DMUX) 1518 via the network interface 1519, demultiplexed, and then decoded by the codec engine 1516. The image data obtained by decoding by the codec engine 1516 undergoes predetermined image processing by the image processing engine 1514, undergoes predetermined conversion by the display engine 1513, and is supplied to, for example, the connection 1321 ( FIG37 ) via the display interface 1512, so that its image is displayed on a monitor. In addition, for example, the image data obtained by decoding by the codec engine 1516 is encoded again by the codec engine 1516, multiplexed and converted into file data by the multiplexing/demultiplexing unit (MUX DMUX) 1518, output to, for example, the connector 1321 (Figure 37) via the video interface 1520, and recorded on various recording media.
此外,例如,经由视频接口1520将编码数据的文件数据供给至多路复用/多路分离部(MUX DMUX)1518,并且文件数据被多路分离,然后被编解码器引擎1516解码,在编码数据的文件数据中影像数据被编码并且编码数据的文件数据通过连接件1321(图37)等从记录介质(图中未示出)中读取。通过编解码器引擎1516的解码而获得的影像数据经受影像处理引擎1514的预定影像处理,经受显示引擎1513的预定转换,并且经由显示接口1512被供给至例如连接件1321(图37)等,使得其影像显示在监视器上。此外,例如,通过编解码器引擎1516的解码而获得的影像数据被编解码器引擎1516再次编码,被多路复用/多路分离部(MUX DMUX)1518多路复用并转换成传输流,经由网络接口1519被供给至例如连接件1321、宽带调制解调器1333(它们中的每一个均在图37中示出)等,并且被传送至图中未示出的另一设备。Furthermore, for example, the file data of the coded data is supplied to the multiplexing/demultiplexing section (MUX DMUX) 1518 via the video interface 1520, and the file data is demultiplexed and then decoded by the codec engine 1516. The file data of the coded data in which the image data is coded is read from a recording medium (not shown) via the connector 1321 (FIG. 37) or the like. The image data obtained by decoding by the codec engine 1516 undergoes predetermined image processing by the image processing engine 1514, undergoes predetermined conversion by the display engine 1513, and is supplied to the connector 1321 (FIG. 37) or the like via the display interface 1512, so that the image thereof is displayed on a monitor. In addition, for example, the image data obtained by decoding by the codec engine 1516 is encoded again by the codec engine 1516, multiplexed and converted into a transport stream by the multiplexing/demultiplexing unit (MUX DMUX) 1518, and supplied to, for example, the connector 1321, the broadband modem 1333 (each of which is shown in FIG37 ), etc. via the network interface 1519, and transmitted to another device not shown in the figure.
应当注意,通过使用例如内部存储器1515或外部存储器1312来执行在视频处理器1332的处理部之间给予和接收影像数据或其他数据。此外,例如,电力管理模块1313控制对控制部1511的电力供给。It should be noted that giving and receiving image data or other data between the processing sections of the video processor 1332 is performed by using, for example, the internal memory 1515 or the external memory 1312. Furthermore, for example, the power management module 1313 controls power supply to the control section 1511.
在本公开应用于如上所述构造的视频处理器1332的情况下,仅需要将根据上述每个实施例的本公开应用于编解码器引擎1516。换言之,例如,编解码器引擎1516仅需要包括实现根据第一至第三实施例的编码设备或解码设备的功能块。在具有所构造的编解码器引擎1516的情况下,视频处理器1332能够获得与以上参照图1至图31所描述的效果类似的效果。When the present disclosure is applied to the video processor 1332 configured as described above, it is only necessary to apply the present disclosure according to each of the above-described embodiments to the codec engine 1516. In other words, for example, the codec engine 1516 only needs to include a functional block that implements the encoding device or decoding device according to the first to third embodiments. With the configured codec engine 1516, the video processor 1332 can achieve effects similar to those described above with reference to FIG. 1 to FIG. 31.
应当注意,在编解码器引擎1516中,本公开(即根据上述每个实施例的编码设备或解码设备的功能)可以通过硬件如逻辑电路来实现,可以通过软件如嵌入式程序来实现,或者可以通过它们两者来实现。It should be noted that in the codec engine 1516, the present disclosure (i.e., the functions of the encoding device or decoding device according to each of the above-mentioned embodiments) can be implemented by hardware such as a logic circuit, can be implemented by software such as an embedded program, or can be implemented by both.
以上已经描述了视频处理器1332的构造的两个示例,但是视频处理器1332的构造是任意的,并且可以是除上述两个示例以外的其他构造。此外,视频处理器1332可以被构造成一个半导体芯片,还可以被构造成多个半导体芯片。例如,视频处理器1332可以是堆叠多个半导体的三维堆叠LSI。此外,视频处理器1332可以通过多个LSI来实现。Two examples of the configuration of the video processor 1332 have been described above, but the configuration of the video processor 1332 is arbitrary and may be other than the two examples described above. In addition, the video processor 1332 may be configured as a single semiconductor chip or may be configured as multiple semiconductor chips. For example, the video processor 1332 may be a three-dimensional stacked LSI in which multiple semiconductors are stacked. In addition, the video processor 1332 may be implemented using multiple LSIs.
(应用于设备的示例)(Example of application to a device)
可以将视频套组1300合并到处理影像数据的各种设备中。例如,可以将视频套组1300合并到电视设备900(图33)、移动电话920(图34)、记录/再现设备940(图35)、成像设备960(图36)等中。通过在设备中合并视频套组1300,设备能够获得与以上参照图1至图31所描述的效果类似的效果。The video suite 1300 can be incorporated into various devices that process image data. For example, the video suite 1300 can be incorporated into the television device 900 ( FIG. 33 ), the mobile phone 920 ( FIG. 34 ), the recording/reproducing device 940 ( FIG. 35 ), the imaging device 960 ( FIG. 36 ), and the like. By incorporating the video suite 1300 into a device, the device can achieve effects similar to those described above with reference to FIG. 1 to FIG. 31 .
应当理解,如果上述视频套组1300的每个构造的部分包括视频处理器1332,则可以将该部分实施为应用本公开的构造。例如,仅可以将视频处理器1332实施为应用本公开的视频处理器。此外,例如,如上所述,可以将由虚线1341指示的处理器、视频模块1311等实施为应用本公开的处理器、模块等。此外,例如,还能够将视频模块1311、外部存储器1312、电力管理模块1313和前端模块1314组合以将其实施为应用本公开的视频单元1361。在任意构造的情况下,能够获得与以上参照图1至图31所描述的效果类似的效果。It should be understood that if each component of the video suite 1300 includes a video processor 1332, that component can be implemented as a component to which the present disclosure applies. For example, only the video processor 1332 can be implemented as a video processor to which the present disclosure applies. Furthermore, for example, as described above, the processor indicated by the dotted line 1341, the video module 1311, and the like can be implemented as processors, modules, and the like to which the present disclosure applies. 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 to form a video unit 1361 to which the present disclosure applies. In any of these configurations, effects similar to those described above with reference to FIG. 1 to FIG. 31 can be achieved.
换言之,与视频套组1300的情况类似,可以将包括视频处理器1332的任意构造合并在处理影像数据的各种设备中。例如,可以将视频处理器1332、由虚线1341指示的处理器、视频模块1311或视频单元1361合并在电视设备900(图33)、移动电话920(图34)、记录/再现设备940(图35)、成像设备960(图36)等中。与视频套组1300的情况类似,通过合并应用本公开的任意构造,这样的设备能够获得与以上参照图1至图31所描述的效果类似的效果。In other words, similar to the case of video suite 1300, any configuration including video processor 1332 can be incorporated into various devices that process image data. For example, video processor 1332, the processor indicated by dotted line 1341, video module 1311, or video unit 1361 can be incorporated into television device 900 (FIG. 33), mobile phone 920 (FIG. 34), recording/reproducing device 940 (FIG. 35), imaging device 960 (FIG. 36), and the like. Similar to the case of video suite 1300, by incorporating and applying any configuration of the present disclosure, such devices can achieve effects similar to those described above with reference to FIG. 1 to FIG. 31.
应当理解,在本说明书中已经描述了下述示例:各种类型的信息被多路复用成编码数据并且从编码侧传送至解码侧。然而,传送那些信息的技术不限于这样的示例。例如,可以在不将那些信息多路复用成编码数据的情况下,将那些信息作为与编码数据相关联的单独数据进行传送或记录。此处,术语“相关联的”意味着包括在比特流中的影像(其可以是影像的部分如片和块)和与该影像对应的信息可以在解码时彼此链接。换言之,可以通过与用于编码数据的传送路径不同的传送路径来传送信息。此外,可以将信息记录在与用于编码数据的记录介质不同的记录介质(或同一记录介质的另一记录区域)上。此外,可以以例如多个帧、一个帧或帧的部分的任意单元将信息和编码数据彼此相关联。It should be understood that the following example has been described in this specification: various types of information are multiplexed into encoded data and transmitted from the encoding side to the decoding side. However, the technology for transmitting those information is not limited to such an example. For example, those information can be transmitted or recorded as separate data associated with the encoded data without multiplexing them into the encoded data. Here, the term "associated" means that the image included in the bit stream (which can be a part of the image such as a slice and a block) and the information corresponding to the image can be linked to each other during decoding. In other words, the information can be transmitted via a transmission path different from the transmission path used for the encoded data. In addition, the information can be recorded on a recording medium different from the recording medium used for the encoded data (or another recording area of the same recording medium). In addition, the information and the encoded data can be associated with each other in arbitrary units such as multiple frames, one frame or a part of a frame.
本公开可以应用于用于下述情况的编码设备或解码设备:如在MPEG、H.26x等中,经由如卫星广播、电缆TV、因特网和移动电话等网络介质来接收通过正交变换如离散余弦变换和运动补偿而压缩的比特流,或者在如光盘、磁盘和闪存等存储介质上处理该比特流。The present disclosure can be applied to encoding devices or decoding devices used in the following situations: as in MPEG, H.26x, etc., a bit stream compressed by orthogonal transform such as discrete cosine transform and motion compensation is received via network media such as satellite broadcasting, cable TV, the Internet and mobile phones, or the bit stream is processed on a storage medium such as an optical disc, a magnetic disk and a flash memory.
此外,在本说明书中,系统意指多个组成元件(设备、模块(部件)等)的集合,而不管是否所有的组成元件都包括在同一壳体中。因此,容纳在分离的壳体中并且经由网络彼此连接的多个设备是系统,并且在一个壳体中包括多个模块的一个设备也是系统。In addition, in this specification, a system means a collection of multiple components (devices, modules (components), etc.), regardless of whether all the components are included in the same housing. Therefore, multiple devices housed in separate housings and connected to each other via a network are a system, and a single device including multiple modules in a single housing is also a system.
此外,本说明书中所描述的效果仅仅是示例性的效果而不是限制性的效果,并且可以产生任何其他效果。Furthermore, the effects described in this specification are merely exemplary effects and not limitative effects, and any other effects may be produced.
此外,本公开的实施例不限于以上所描述的实施例,并且可以在不偏离本公开的要旨的情况下对其进行不同的修改。Furthermore, the embodiments of the present disclosure are not limited to the embodiments described above, and various modifications may be made thereto without departing from the gist of the present disclosure.
例如,在第一和第二实施例中,可以不固定参考图像列表中所登记的当前图像的图像识别信息的位置。此外,在第一和第三实施例中,在参考图像列表中所设置的当前图像的图像类型可以是STRP。For example, in the first and second embodiments, the position of the image identification information of the current image registered in the reference image list may not be fixed. In addition, in the first and third embodiments, the image type of the current image set in the reference image list may be STRP.
此外,在第二实施例中,如在第三实施例中那样,当前图像的图像识别信息可以不登记在参考图像列表中,而是登记在暂时列表中。Furthermore, in the second embodiment, as in the third embodiment, the image identification information of the current image may be registered not in the reference image list but in the temporary list.
此外,在第三实施例中,如在第二实施例中那样,通过在当前图像的参考图像的类型是Intra BC的情况下改变生成预测向量列表的方法,可以提高Intra BC和帧间编码被共通化的情况下的编码效率。Furthermore, in the third embodiment, as in the second embodiment, by changing the method of generating the prediction vector list when the type of the reference image of the current image is Intra BC, the encoding efficiency can be improved when Intra BC and inter-frame encoding are standardized.
此外,例如,本公开可以具有云计算的构造,在云计算中,多个设备共享一个功能并且经由网络来协作以执行处理。Furthermore, for example, the present disclosure may have a configuration of cloud computing in which a plurality of devices share one function and cooperate via a network to perform processing.
此外,在上述流程图中描述的步骤可以由一个设备来执行,或者可以由多个设备共享和执行。Furthermore, the steps described in the above flowcharts may be performed by one device, or may be shared and performed by a plurality of devices.
此外,在一个步骤包括多个处理步骤的情况下,一个步骤中的多个处理步骤可以由一个设备来执行,或者可以由多个设备共享和执行。Furthermore, in the case where one step includes a plurality of processing steps, the plurality of processing steps in one step may be performed by one device, or may be shared and performed by a plurality of devices.
本公开还可以具有下面的构造。The present disclosure may also have the following configurations.
(1)一种影像处理设备,包括:(1) An image processing device comprising:
预测向量生成部,在对使用画面内的相关性进行预测所使用的当前块的当前运动向量进行编码时,在当前块的参考图像的类型与对应于参考运动向量的候选的候选块的参考图像的类型彼此不同的情况下,预测向量生成部将候选块设置为不可用,并且通过使用参考运动向量生成当前运动向量的预测向量,参考运动向量在生成当前运动向量的预测向量时被参考;以及a prediction vector generating section that, when encoding a current motion vector of a current block used for prediction using correlation within a picture, sets a candidate block corresponding to a candidate of the reference motion vector to be unavailable if a type of a reference image of the current block and a type of a reference image of the candidate block are different from each other, and generates a prediction vector of the current motion vector by using the reference motion vector, the reference motion vector being referenced when generating the prediction vector of the current motion vector; and
差分向量生成部,差分向量生成部生成当前运动向量与由预测向量生成部生成的预测向量之间的差分向量。The differential vector generating unit generates a differential vector between the current motion vector and the prediction vector generated by the prediction vector generating unit.
(2)根据(1)所述的影像处理设备,还包括:(2) The image processing device according to (1), further comprising:
设置部,设置部将当前块的参考图像的类型设置为长期参考图像。A setting unit sets the type of the reference image of the current block to a long-term reference image.
(3)根据(1)所述的影像处理设备,其中,(3) The image processing apparatus according to (1), wherein
在候选块的图像与候选块的参考图像彼此不同的情况下,预测向量生成部确定当前块的参考图像的类型与候选块的参考图像的类型彼此不同。In a case where the image of the candidate block and the reference image of the candidate block are different from each other, the prediction vector generation part determines that the type of the reference image of the current block and the type of the reference image of the candidate block are different from each other.
(4)根据(1)至(3)中的任一项所述的影像处理设备,还包括:(4) The image processing apparatus according to any one of (1) to (3), further comprising:
列表创建部,列表创建部将当前块的图像登记在当前块的参考图像的候选的列表的预定位置中。The list creating unit registers the image of the current block in a predetermined position of the list of candidates for the reference image of the current block.
(5)根据(4)所述的影像处理设备,其中,(5) The image processing apparatus according to (4), wherein:
预定位置是开头。The predetermined position is the beginning.
(6)根据(4)或(5)所述的影像处理设备,其中,(6) The image processing apparatus according to (4) or (5), wherein:
列表创建部在登记当前块的图像之前,重新排列参考图像的候选在列表中的顺序。The list creating unit rearranges the order of the reference image candidates in the list before registering the image of the current block.
(7)根据(4)或(5)所述的影像处理设备,其中,(7) The image processing apparatus according to (4) or (5), wherein:
列表创建部在登记当前块的图像之后,重新排列除了当前块的图像以外的参考图像的候选在列表中的顺序。The list creating unit rearranges the order of candidates for reference images other than the image of the current block in the list after registering the image of the current block.
(8)一种用于影像处理设备的影像处理方法,该影像处理方法包括:(8) An image processing method for an image processing device, the image processing method comprising:
预测向量生成步骤,在对使用画面内的相关性进行预测所使用的当前块的当前运动向量进行编码时,在当前块的参考图像的类型与对应于参考运动向量的候选的候选块的参考图像的类型彼此不同的情况下,预测向量生成步骤将候选块设置为不可用,并且通过使用参考运动向量生成当前运动向量的预测向量,参考运动向量在生成当前运动向量的预测向量时被参考;以及a prediction vector generating step of, when encoding a current motion vector of a current block used for prediction using correlation within a picture, setting a candidate block to be unavailable when a type of a reference image of the current block and a type of a reference image of a candidate block corresponding to a candidate of the reference motion vector are different from each other, and generating a prediction vector of the current motion vector by using the reference motion vector, the reference motion vector being referred to when generating the prediction vector of the current motion vector; and
差分向量生成步骤,差分向量生成步骤生成当前运动向量与通过预测向量生成步骤的处理而生成的预测向量之间的差分向量。A differential vector generating step generates a differential vector between the current motion vector and the prediction vector generated by the processing of the prediction vector generating step.
(9)一种影像处理设备,包括:(9) An image processing device comprising:
预测向量生成部,在对使用画面内的相关性进行预测所使用的当前块的当前运动向量进行解码时,在当前块的参考图像的类型与对应于参考运动向量的候选的候选块的参考图像的类型彼此不同的情况下,预测向量生成部将候选块设置成不可用,并且通过使用参考运动向量生成当前运动向量的预测向量,参考运动向量在生成当前运动向量的预测向量时被参考;以及a prediction vector generating section that, when decoding a current motion vector of a current block used for prediction using correlation within a picture, sets a reference image of the current block and a reference image of a candidate block corresponding to a candidate of the reference motion vector to be unavailable when the type of the reference image of the current block and the type of the reference image of the candidate block are different from each other, and generates a prediction vector of the current motion vector by using the reference motion vector, the reference motion vector being referred to when generating the prediction vector of the current motion vector; and
运动向量生成部,运动向量生成部将当前运动向量与预测向量之间的差分向量和由预测向量生成部生成的预测向量相加,并且生成当前运动向量。The motion vector generating section adds a differential vector between the current motion vector and the predicted vector and the predicted vector generated by the predicted vector generating section to generate the current motion vector.
(10)根据(9)所述的影像处理设备,还包括:(10) The image processing device according to (9), further comprising:
设置部,设置部将当前块的参考图像的类型设置为长期参考图像。A setting unit sets the type of the reference image of the current block to a long-term reference image.
(11)根据(9)所述的影像处理设备,其中,(11) The image processing apparatus according to (9), wherein
在候选块的图像与候选块的参考图像彼此不同的情况下,预测向量生成部确定当前块的参考图像的类型与候选块的参考图像的类型彼此不同。In a case where the image of the candidate block and the reference image of the candidate block are different from each other, the prediction vector generation part determines that the type of the reference image of the current block and the type of the reference image of the candidate block are different from each other.
(12)根据(9)至(11)中的任一项所述的影像处理设备,还包括:(12) The image processing apparatus according to any one of (9) to (11), further comprising:
列表创建部,列表创建部将当前块的图像登记在当前块的参考图像的候选的列表的预定位置中。The list creating unit registers the image of the current block in a predetermined position of the list of candidates for the reference image of the current block.
(13)根据(12)所述的影像处理设备,其中,(13) The image processing apparatus according to (12), wherein
预定位置是开头。The predetermined position is the beginning.
(14)根据(12)或(13)所述的影像处理设备,其中,(14) The image processing apparatus according to (12) or (13), wherein:
列表创建部在登记当前块的图像之前,重新排列参考图像的候选在列表中的顺序。The list creating unit rearranges the order of the reference image candidates in the list before registering the image of the current block.
(15)根据(12)或(13)所述的影像处理设备,其中,(15) The image processing apparatus according to (12) or (13), wherein:
列表创建部在登记当前块的图像之后,重新排列除了当前块的图像以外的参考图像的候选在列表中的顺序。The list creating unit rearranges the order of candidates for reference images other than the image of the current block in the list after registering the image of the current block.
(16)一种用于影像处理设备的影像处理方法,该影像处理方法包括:(16) An image processing method for an image processing device, the image processing method comprising:
预测向量生成步骤,在对使用画面内的相关性进行预测所使用的当前块的当前运动向量进行解码时,在当前块的参考图像的类型与对应于参考运动向量的候选的候选块的参考图像的类型彼此不同的情况下,预测向量生成步骤将候选块设置成不可用,并且通过使用参考运动向量生成当前运动向量的预测向量,参考运动向量在生成当前运动向量的预测向量时被参考;以及a prediction vector generating step of, when decoding a current motion vector of a current block used for prediction using correlation within a picture, setting a reference image of the current block and a reference image of a candidate block corresponding to a candidate of the reference motion vector to be unavailable in a case where the type of the reference image of the current block and the type of the reference image of the candidate block are different from each other, and generating a prediction vector of the current motion vector by using the reference motion vector, the reference motion vector being referred to when generating the prediction vector of the current motion vector; and
运动向量生成步骤,运动向量生成步骤将当前运动向量与预测向量之间的差分向量和通过预测向量生成步骤的处理而生成的预测向量相加,并且生成当前运动向量。A motion vector generating step of adding a differential vector between the current motion vector and the predicted vector and the predicted vector generated by the process of the predicted vector generating step, and generating the current motion vector.
附图标记列表Reference Signs List
50 编码设备50 encoding equipment
88 列表创建部88 List Creation Department
90 预测向量生成部90 Prediction vector generation unit
91 差分向量生成部91 Differential vector generation unit
110 解码设备110 decoding device
144 预测向量生成部144 Prediction vector generation unit
145 运动向量生成部145 Motion Vector Generation Unit
146 列表创建部146 List Creation Department
Claims (6)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014-265786 | 2014-12-26 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1237160A1 HK1237160A1 (en) | 2018-04-06 |
| HK1237160B true HK1237160B (en) | 2021-03-05 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12413772B2 (en) | Image processing apparatus and image processing method | |
| CN109040762B (en) | Decoding apparatus and decoding method | |
| JP6711353B2 (en) | Image processing apparatus and image processing method | |
| CN104854868B (en) | Image processing equipment and method | |
| RU2649758C2 (en) | Image processing device and method | |
| CN106105226A (en) | Image encoding device and method and image decoding device and method | |
| HK1237160B (en) | Image processing apparatus and image processing method | |
| WO2016199574A1 (en) | Image processing apparatus and image processing method | |
| HK1237160A1 (en) | Image processing apparatus and image processing method | |
| HK1260568B (en) | Decoding Device and Decoding Method | |
| HK1260568A1 (en) | Decoding Device and Decoding Method |