[go: up one dir, main page]

CN100438631C - Image encoding method and image decoding method - Google Patents

Image encoding method and image decoding method Download PDF

Info

Publication number
CN100438631C
CN100438631C CNB038002353A CN03800235A CN100438631C CN 100438631 C CN100438631 C CN 100438631C CN B038002353 A CNB038002353 A CN B038002353A CN 03800235 A CN03800235 A CN 03800235A CN 100438631 C CN100438631 C CN 100438631C
Authority
CN
China
Prior art keywords
image
memory
picture
management information
encoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CNB038002353A
Other languages
Chinese (zh)
Other versions
CN1509575A (en
Inventor
角野真也
近藤敏志
羽饲诚
安倍清史
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Godo Kaisha IP Bridge 1
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Publication of CN1509575A publication Critical patent/CN1509575A/en
Application granted granted Critical
Publication of CN100438631C publication Critical patent/CN100438631C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/127Prioritisation of hardware or computational resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/174Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a slice, e.g. a line of blocks or a group of blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/573Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/577Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/58Motion compensation with long-term prediction, i.e. the reference frame for a current frame not being the temporally closest one
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/89Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving methods or arrangements for detection of transmission errors at the decoder

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The image coding method includes a step for executing coding of an image (Step 100), a step for judging whether a picture in the memory which is never used as reference exists (Step 102), a step for coding memory management information for releasing the picture in the memory which is never used as reference when a picture in the memory which is never used as reference exists (Step 103), a step for releasing the picture in the memory which is never used as reference (Step 104), a step for judging whether the memory management information that releases the picture in the memory which is never used as reference is coded by coding of an image immediately before (Step 105), and a step for coding again the memory management information that releases the picture in the memory which is never used as reference when the memory management information is coded (Step 106).

Description

图像编码方法及图像编码装置 Image encoding method and image encoding device

技术领域 technical field

本发明涉及利用图像间的相关高效率地压缩动画图像信号的图像编码方法,和将其正确地进行译码的图像译码方法,以及用于用软件执行该操作的程序等。The present invention relates to an image encoding method for efficiently compressing a moving image signal by utilizing inter-image correlation, an image decoding method for correctly decoding it, and a program for performing the operation by software.

背景技术 Background technique

近年来,迎接统一处理声音、图像、其他象素值的多媒体时代,将现有的信息媒体,即报纸、杂志、电视、收音机、电话等的信息传达给人的装置,作为多媒体对象成了热点。一般地,所谓多媒体,是指不仅文字,同时还关联图形、声音,特别是图像等进行表示的信息媒体,但是,要想将上述现有的信息媒体作为多媒体的对象,其必要条件为将其信息以数字形式表示。In recent years, in the era of multimedia that uniformly processes sound, images, and other pixel values, devices that convey information from existing information media, such as newspapers, magazines, TVs, radios, and telephones, to people have become a hot topic as multimedia objects. . Generally speaking, the so-called multimedia refers to not only texts, but also information media that are associated with graphics, sounds, and especially images. However, in order to use the above-mentioned existing information media as multimedia objects, the necessary condition is Information is represented in numerical form.

但是,若将上述各信息媒体所持有的信息量作为数字信息量来估计,则在信息为文字时每一个文字的信息量为1~2字节,而信息为声音时每一秒的信息量为64kbits(电话质量),另外,对于动画,则每一秒需要100Mbits(现行电视接收质量)以上的信息量,在上述信息媒体中以数字形式原样处理该庞大信息是不现实的。例如,利用具有64kbps~1.5Mbps传输速度的综合服务数字网络(ISDN:Integrated Services Digital Network)已实现可视电话,但不能用ISDN原样发送电视和摄影机的影像。However, if the amount of information held by the above-mentioned information media is estimated as the amount of digital information, the amount of information per character is 1 to 2 bytes when the information is text, and the information per second when the information is sound The volume is 64kbits (telephone quality), and for animation, the amount of information above 100Mbits (current TV reception quality) is required per second, and it is unrealistic to process this huge information as it is in digital form in the above-mentioned information media. For example, video telephony has been realized using an Integrated Services Digital Network (ISDN: Integrated Services Digital Network) with a transmission speed of 64kbps to 1.5Mbps, but the images of TVs and cameras cannot be sent as they are by ISDN.

因此,这就需要信息的压缩技术,例如,可视电话的情况下,正在使用由ITU-T(国际电信同盟,国际电信标准化部门)国际标准化的H.261和H.263标准的动画压缩技术。此外,根据MPEG-1标准的信息压缩技术,也可以在通常的音乐用CD(激光唱盘)中与声音信息一同写入图像信息。Therefore, this requires information compression technology, for example, in the case of videophones, the animation compression technology of H.261 and H.263 standards internationally standardized by ITU-T (International Telecommunication Union, International Telecommunication Standardization Sector) is being used . In addition, according to the information compression technology of the MPEG-1 standard, it is also possible to write image information together with audio information on a normal music CD (Compact Disc).

在此,所述MPEG(Moving Picture Experts Group即,动画图形专家组)是活动图像信号的数字压缩国际标准,MPEG-1将活动图像信号压缩到1.5Mbps,即将电视信号的信息压缩到大约百分之一的标准。此外,以MPEG-1标准为对象的传输速度主要限定在大约1.5Mbps,因此,在为满足高画质的要求而标准化的MPEG-2中,活动图像信号被压缩到2~15Mbps。Here, the MPEG (Moving Picture Experts Group, namely, the Moving Picture Experts Group) is an international standard for digital compression of moving image signals, and MPEG-1 compresses moving image signals to 1.5 Mbps, that is, the information of television signals is compressed to about 100%. one of the standards. In addition, the transmission rate for the MPEG-1 standard is mainly limited to about 1.5 Mbps. Therefore, in MPEG-2 standardized to meet the demand for high image quality, moving image signals are compressed to 2 to 15 Mbps.

另外,现在,由推进MPEG-1、MPEG-2标准化的工作组(ISO/IECJTC1/SC29/WG11),已规范出更高压缩率的MPEG-4。在MPEG-4中,一开始不仅能以低位速率进行高效率的编码,而且导入了即使传输线路产生错误,也能减小主观的画质劣化的强有力的防差错技术。此外,ISO/IEC和ITU共同推进了作为下一代图像编码方式的JVT(JointVideo Team即,联合视频小组)的标准化活动,现在最新的称为联合模型2(JM2)。In addition, at present, MPEG-4 with a higher compression rate has been regulated by the working group (ISO/IECJTC1/SC29/WG11) promoting the standardization of MPEG-1 and MPEG-2. In MPEG-4, not only can high-efficiency encoding be performed at a low bit rate from the beginning, but also a strong error prevention technology that can reduce subjective image quality degradation even if an error occurs in the transmission line is introduced. In addition, ISO/IEC and ITU have jointly promoted the standardization activities of JVT (Joint Video Team, the joint video team) as the next-generation image coding method, and the latest one is now called Joint Model 2 (JM2).

在JVT中,与现有的动画图像编码不同,作为前方参照图像,能从多个图像(图像)中选择任意图像(图像)作为参照图像。在此,所述图像表示帧或信息组(filed)。In JVT, unlike conventional moving picture encoding, an arbitrary picture (picture) can be selected as a reference picture from a plurality of pictures (pictures) as a forward reference picture. Here, the image represents a frame or a field.

图1(a)是参照从存储器内保存的多个参照图像中选择了的图像,进行编码的图像编码的说明图。图1(b)是示出保存图像的存储器的结构的结构图。FIG. 1( a ) is an explanatory diagram of image encoding in which encoding is performed with reference to an image selected from a plurality of reference images stored in a memory. FIG. 1( b ) is a structural diagram showing the structure of a memory for storing images.

如图1(b)所示,存储器由短时间保存存储器和长时间保存存储器构成。短时间保存存储器存储在紧前面进行了译码的多幅图像,相当于称作MPEG-1和MPEG-2的P图像(前方预测编码图像)及B图像(双向预测编码图像)的参照图像。长时间保存存储器用于比短时间保存存储器长时间保存图像信号。As shown in FIG. 1(b), the memory is composed of a short-term storage memory and a long-term storage memory. The short-term storage memory stores a plurality of pictures decoded immediately before, which correspond to reference pictures of P pictures (forward predictive coded pictures) and B pictures (bidirectional predictive coded pictures) called MPEG-1 and MPEG-2. The long-term storage memory is used to store image signals for a longer period of time than the short-term storage memory.

通常,短时间保存存储器是FIFO(先入先出)存储器,在短时间保存存储器中保存超过存储器上限的图像的情况下,消除短时间保存存储器内的最早时刻的图像,在该区域中保存新的图像。因此,通常,在欲参照利用FIFO结构从存储器中消除了的参照图像的情况下,通过预先将该参照图像从短时间保存存储器移动到长时间保存存储器中来,保存在长时间保存存储器内,就能长时间参照。长时间存储器是明示保存区域的方法,只要不指定相同的区域进行重写,就可以参照保存在该区域中的图像。Usually, the short-term storage memory is a FIFO (first-in-first-out) memory. When storing images exceeding the upper limit of the memory in the short-term storage memory, the image at the earliest time in the short-term storage memory is deleted, and a new one is stored in this area. image. Therefore, generally, when it is desired to refer to a reference image deleted from the memory using the FIFO structure, the reference image is moved from the short-term storage memory to the long-term storage memory in advance, and stored in the long-term storage memory. can be referred to for a long time. Long-term memory is a method of expressly specifying a storage area, and images stored in this area can be referred to unless the same area is designated for rewriting.

图1(a)示出图像编码时的预测状况,图像编号2的图像参照图像编号0的图像,图像编号1的图像参照图像编号0或图像编号2的图像。同样地,图像编号4的图像参照图像编号0、2的图像,图像编号6的图像参照图像编号0的图像。另外,在图像编号5的图像中则能参照图像编号0、2、4、6的图像。FIG. 1( a ) shows the prediction status at the time of picture encoding. A picture of picture number 2 refers to a picture of picture number 0 , and a picture of picture number 1 refers to a picture of picture number 0 or picture number 2 . Similarly, the picture of picture number 4 refers to the pictures of picture numbers 0 and 2, and the picture of picture number 6 refers to the picture of picture number 0. In addition, in the picture of picture number 5, pictures of picture numbers 0, 2, 4, and 6 can be referred to.

另外,在该图1(a)中,相对于图像编号0、6、12的图像可在比较长时间以后仍被参照,图像编号2、4、8的图像等仅由短时间以后的图像进行参照。因此,如图1(b)所示,将保存图像的存储器区域分割成短时间保存用存储器和长时间保存存储器,能在需要长时间保存的存储器中保存图像(帧)编号为0、6、12的图像。In addition, in this FIG. 1( a ), images with image numbers 0, 6, and 12 can still be referred to after a relatively long time, and images with image numbers 2, 4, and 8 are only referenced by images after a short time. refer to. Therefore, as shown in Figure 1(b), the memory area for storing images is divided into short-term storage memory and long-term storage memory, and images (frames) numbered 0, 6, 12 images.

另外,为了效率使用如图1(a)所示的存储器,需要高度的存储器管理,在JVT中导入用于控制存储器的结构。In addition, in order to efficiently use the memory shown in FIG. 1( a ), advanced memory management is required, and a structure for controlling the memory is introduced into the JVT.

控制存储器的指令如下:The instructions to control the memory are as follows:

1.选择可参照的图像的指令;1. An instruction to select an image that can be referred to;

2.在短时间保存存储器中释放存储器区域的指令,所述存储器区域是保存着作为预测编码的参照图像成为不需要的图像存储器区域;2. An instruction to release a memory area in the short-term storage memory, the memory area is to save an unnecessary image memory area as a reference image for predictive coding;

3.将短时间保存存储器的内容向长时间保存存储器移动的指令。3. An instruction to move the contents of the short-term storage memory to the long-term storage memory.

在图像编码和译码中,由于从可参照的图像中按块单位选择预测误差小的图像作为参照图像,因此,需要有按块单位指示参照图像的信号。通过预先选择可参照的图像,将参照图像的候补数压缩成适当的值,能节约按块单位所需的参照图像指示信号的位数。In image encoding and decoding, since an image with a small prediction error is selected as a reference image in block units from among available reference images, a signal indicating a reference image in block units is required. By selecting a picture that can be referred to in advance and compressing the number of reference picture candidates to an appropriate value, it is possible to save the number of bits of a reference picture designation signal required in units of blocks.

此外,在从短时间保存存储器移动到长时间保存存储器中的情况下,在短时间保存存储器和长时间保存存储器两方保存相同的内容是浪费的,因此,消除短时间保存存储器内的图像。Also, when moving from the short-term storage memory to the long-term storage memory, it is wasteful to store the same content in both the short-term storage memory and the long-term storage memory, so images in the short-term storage memory are deleted.

图2(a)(b)是示出现有的图像编码方法和图像译码方法的流程图。Fig. 2(a)(b) is a flowchart showing a conventional image coding method and image decoding method.

图2(a)示出在释放存储器区域时的图像编码装置的动作,该存储区域是保存着作为预测编码的参照图像成为不需要的图像的存储器区域。在图2(a)中,首先,图像编码装置对所输入的输入图像进行编码(步骤100)。编码之后在存储器内检查不需要的区域(在以后的编码中不参照的图像)(步骤101),判定是否有不需要的存储器区域(步骤102)。在判定为有不需要的存储器区域的情况下(步骤102的Yes),将释放不需要的存储器区域的指令作为存储器管理信息,进行编码(步骤103),并释放该不需要的存储器区域(消除存储器内的图像)(步骤104),结束处理。另一方面,在图像编码装置判定为没有不需要的存储器区域的情况下(步骤102的No),不进行步骤103和步骤104的动作,结束处理。FIG. 2( a ) shows the operation of the image encoding device when freeing a memory area that stores pictures that are unnecessary as reference pictures for predictive encoding. In FIG. 2( a ), first, the image encoding device encodes the input image (step 100 ). After encoding, unnecessary areas (pictures not to be referred to in subsequent encoding) are checked in the memory (step 101), and it is determined whether there is an unnecessary memory area (step 102). When it is determined that there is an unnecessary memory area (Yes in step 102), an instruction to release the unnecessary memory area is coded as memory management information (step 103), and the unnecessary memory area is released (delete image in memory) (step 104), end processing. On the other hand, when the image encoding device determines that there is no unnecessary memory area (No in step 102), the operations in steps 103 and 104 are not performed, and the processing is terminated.

下面,按照图2(b)的流程图,说明在释放存储器区域时的图像译码装置进行的动作,该存储器区域是保存着作为预测编码的参照图像而成为不需要的图像的存储器区域。首先,图像译码装置对存储器管理信息进行译码(步骤110),然后,根据编码信号对图像信号进行译码(步骤111)。图像译码装置判定检查的结果是否有存储器释放指令(步骤112),若有存储器释放指令(步骤112的Yes),就判定是否有应该用该指令消除的图像,或者是否已经释放完存储器(图像消除完了)(步骤113)。若判定为已释放完(步骤113的Yes),则设定为错误(ERROR)。这是因为,在JVT中,禁止在从存储器消除了图像之后发出再次消除相同图像的指令,因此,在再次释放释放完的存储器的情况下,就设为错误。另一方面,图像译码装置若判定为没释放完(步骤113的No),就释放存储器(步骤114),之后结束处理。此外,在判定为没有存储器释放指令的情况下(步骤112的No),不进行步骤113和步骤114的动作,结束处理。再有,步骤110和步骤111的顺序不同,所述两步骤的顺序可以互换。Next, the operation of the image decoding device when freeing a memory area storing unnecessary images as reference images for predictive encoding will be described according to the flowchart of FIG. 2(b). First, the image decoding device decodes the memory management information (step 110), and then decodes the image signal according to the coded signal (step 111). The image decoding device judges whether the result of inspection has memory release instruction (step 112), if there is memory release instruction (step 112 Yes), just judges whether there is an image that should be eliminated by this instruction, or whether the memory has been released (image Eliminated) (step 113). If it is determined that the release has been completed (Yes in step 113), it is set to error (ERROR). This is because, in the JVT, it is prohibited to issue a command to erase the same image again after the image has been erased from the memory, and therefore, an error occurs when the memory that has been released is released again. On the other hand, if the image decoding device judges that the memory has not been released (No in step 113), it releases the memory (step 114), and then ends the process. In addition, when it is determined that there is no memory release command (No in step 112), the operations in steps 113 and 114 are not performed, and the process ends. Furthermore, the order of step 110 and step 111 is different, and the order of the two steps can be interchanged.

图3(a)(b)是示出现有的其他图像编码方法和图像译码方法的流程图。3(a)(b) are flowcharts showing other conventional image coding methods and image decoding methods.

图3(a)示出从短时间保存存储器向长时间保存存储器移动图像时的图像编码装置进行的动作。Fig. 3(a) shows the operation performed by the image encoding device when moving an image from the short-term storage memory to the long-term storage memory.

在图3(a)中,首先,图像编码装置对输入图像进行编码(步骤120)。编码之后检查是否有应该向长时间保存存储器移动的图像(步骤121),并判定是否有应该移动的图像(步骤122)。若有应该移动的图像(步骤122的Yes),就将表示如何向长时间保存存储器移动的指令作为存储器管理信息,进行编码(步骤123),按照该指令向长时间保存存储器移动图像(步骤124),之后结束处理。另一方面,图像编码装置在判定为没有应该向长时间保存存储器移动的图像的情况下(步骤122的No),就不进行步骤123和步骤124的动作,结束处理。In FIG. 3( a ), first, the image encoding device encodes an input image (step 120 ). After encoding, it is checked whether there is an image that should be moved to the long-term storage memory (step 121), and it is determined whether there is an image that should be moved (step 122). If there is an image that should be moved (Yes in step 122), the instruction of how to move to the long-term storage memory is encoded as memory management information (step 123), and the image is moved to the long-term storage memory according to the instruction (step 124) ), and then end processing. On the other hand, when the image encoding device determines that there is no image to be moved to the long-term storage memory (No in step 122), it does not perform the operations in steps 123 and 124, and ends the process.

下面,按照图3(b)的流程图,说明从短时间保存存储器向长时间保存存储器移动图像时的图像译码装置进行的动作。首先,图像译码装置对存储器管理信息进行译码(步骤130),接着,根据编码信号对图像信号进行译码(步骤131)。然后,图像译码装置判定在已译码的存储器管理信息中是否有向长时间保存存储器移动的指令(步骤132),若判定为有(步骤132的Yes),则接着判定是否有应该按该指令移动的图像,或者是否已移动完(由于移动之后消除完了而图像不存在)(步骤133)。在JVT中,禁止在向长时间保存存储器移动之后发送再次向长时间保存存储器移动相同图像的指令,因此,在再次向长时间保存存储器移动已经向长时间保存存储器移动完了的图像的情况下,就设为错误。因而,图像译码装置若判定为已完成向长时间保存存储器移动(步骤133的Yes),则设为错误(ERROR);若判定为没移动完,则向长时间保存存储器移动(步骤134),之后结束处理。Next, the operation of the image decoding device when moving an image from the short-term storage memory to the long-term storage memory will be described in accordance with the flowchart of FIG. 3(b). First, the image decoding device decodes the memory management information (step 130), and then decodes the image signal according to the coded signal (step 131). Then, the image decoding device judges whether there is an instruction to move to the long-term storage memory in the decoded memory management information (step 132), and if it is judged to be (Yes in step 132), then it is judged whether there is an instruction to press the The image to command movement, or whether it has been moved (the image does not exist because it has been eliminated after the movement) (step 133). In the JVT, it is prohibited to issue a command to move the same image to the long-term storage memory again after moving to the long-term storage memory. Therefore, when moving an image that has already been moved to the long-term storage memory to the long-term storage memory again, Just set it to error. Therefore, if the image decoding device determines that the movement to the long-term storage memory has been completed (Yes in step 133), it will be set as an error (ERROR); if it is determined that the movement has not been completed, it will move to the long-term storage memory (step 134) , then end processing.

另一方面,图像译码装置在判定为没有向长时间保存存储器移动的指令的情况下(步骤132的No),就不进行步骤133和步骤134的动作,结束处理。再有,步骤130和步骤131的顺序不同,可以交换所述两步骤的顺序。On the other hand, when the image decoding device determines that there is no command to move to the long-term storage memory (No in step 132), it does not perform the operations in steps 133 and 134, and ends the processing. Furthermore, the order of step 130 and step 131 is different, and the order of the two steps can be exchanged.

图4(a)、(b)是示出现有的另外的图像编码方法和图像译码方法的流程图。4(a), (b) are flowcharts showing another conventional image coding method and image decoding method.

首先,按照图4(a)的流程图,说明选择可参照图像时的图像编码装置进行的动作。First, the operation performed by the image encoding device when selecting a referenceable image will be described according to the flowchart of FIG. 4( a ).

首先,图像编码装置选择预计为与被编码图像相关密切的参照图像(通常是时间上接近的参照图像),作为参照图像的候补(步骤200)。接着,将示出所选择的参照图像的候补的指示信息(存储器管理信息的一种)进行编码(步骤201),从所选择的参照图像的候补中按块单位参照适当的参照图像,进行编码(步骤202),之后结束处理。再有,步骤201和步骤202的顺序不同,可以交换所述两步骤的顺序。First, the image coding apparatus selects a reference picture (usually a temporally close reference picture) that is expected to be closely related to the picture to be coded, as a candidate for the reference picture (step 200). Next, the instruction information (a type of memory management information) indicating the selected reference image candidates is encoded (step 201), and an appropriate reference image is referred to in block units from the selected reference image candidates, and the encoding is performed ( Step 202), and then end the processing. Furthermore, the order of step 201 and step 202 is different, and the order of the two steps can be exchanged.

下面,按照图4(b)的流程图,说明选择可参照图像时的图像译码装置进行的动作。Next, the operation of the picture decoding device when selecting a referenceable picture will be described according to the flowchart of FIG. 4(b).

首先,图像译码装置对作为存储器管理信息的一种的指示信息进行译码(步骤210),作为其结果,从存储器中选择参照图像的候补(步骤211),从选择了的参照图像的候补中按块单位选择适当的参照图像进行参照并进行译码(步骤212),之后结束处理。First, the image decoding device decodes instruction information, which is a type of memory management information (step 210), and as a result, selects a candidate for a reference picture from the memory (step 211), and selects a reference picture from the selected candidate for reference picture Select an appropriate reference picture in units of blocks to refer to and decode (step 212), and then end the process.

另外,在象这样的现有的图像编码方法和图像译码方法中,用图像编码装置将从存储器中消除不需要的图像的指令、和从短时间保存存储器向长时间保存存储器移动图像的指令进行编码之后输出,并传输到图像译码装置中进行译码,但是,由于该传输次数仅限定为一个图像,因此,在随着该指令的图像因传输错误等消失了的情况下,就不能正确地复原存储器内的图像配置,因此就不能对图像进行译码。In addition, in such a conventional image encoding method and image decoding method, an instruction to delete an unnecessary image from the memory and an instruction to move an image from the short-term storage memory to the long-term storage memory are executed by the image encoding device. After being encoded, it is output and transmitted to the image decoding device for decoding. However, since the number of transmissions is limited to one image, it cannot The image configuration in memory is correctly restored, so the image cannot be decoded.

此外,在图像的编码和译码中,在选择参照图像时,若简单地将在时间上接近的图像设为参照图像候补,则不能进行考虑了图像的译码的可变性(scalability)(在图1(a)的预测结构的例子中,即使B图像没有进行译码,I图像和P图像也能进行译码,或即使不对图像编号4、10、16的P图像进行译码,其他的P图像也能进行译码)的最佳的编码。即,虽然在时间上与图像编号6的图像接近的图像是图像编号4、2的图像,但实际上,仅能参照图像编号0的图像,因此,若将不能参照的图像编号4、2的图像放入参照图像的候补中,则编码效率不太好。In addition, in the encoding and decoding of pictures, when selecting a reference picture, if a temporally close picture is simply selected as a reference picture candidate, the variability (scalability) of the decoding of the picture cannot be considered (in the case of In the example of the prediction structure in Fig. 1(a), even if the B picture is not decoded, the I picture and the P picture can be decoded, or even if the P picture with picture numbers 4, 10, and 16 is not decoded, the other P pictures can also be decoded) optimal coding. That is, although the pictures temporally close to the picture of picture number 6 are pictures of picture numbers 4 and 2, in fact, only the picture of picture number 0 can be referred to. If a picture is included as a candidate for a reference picture, the coding efficiency is not so good.

另外,在现有的图像编码方法中,禁止附随着存储器中不保存的图像传输消除存储器内的不需要的图像的指令、或从短时间保存存储器向长时间保存存储器移动图像的指令,因此,妨碍了柔性的存储器管理信息的指令传输。禁止附随着存储器中不保存的图像传输该指令有下述理由。即,这是因为,由于存储器中不保存的图像的重要度最低,不能按可变性(scalability)译码的可能性高,因此,是为了避免附随了该存储器中不保存的图像的该指令不被译码而导致不能正确复原存储器内的图像配置。In addition, in the conventional image coding method, an instruction to delete an unnecessary image in the memory along with transmission of an image not stored in the memory, or an instruction to move an image from the short-term storage memory to the long-term storage memory is prohibited. Therefore, Instruction transmission of flexible memory management information is prevented. This command is prohibited from being transmitted with images that are not stored in the memory for the following reasons. That is, this is because, since the image not stored in the memory has the lowest importance, it is highly likely that it cannot be decoded according to the scalability (scalability). The image configuration in the memory cannot be correctly restored due to being decoded.

发明内容 Contents of the invention

因此,本发明为了解决以上的课题,目的在于提供一种即使因传输线路错误而一部分存储器管理信息消失,也能正确地复原的图像编码方法和图像译码方法等,和更适当地选择可参照的参照图像的候补来提高编码效率的图像编码方法和图像译码方法等。Therefore, in order to solve the above problems, the present invention aims to provide an image encoding method, an image decoding method, etc., which can be correctly restored even if a part of the memory management information is lost due to a transmission line error, and which can be more appropriately selected and referred to. An image encoding method, an image decoding method, etc., which improve encoding efficiency by referring to candidates of an image.

为了解决该课题,本发明涉及的图像编码方法,参照从存储器内保存着的多个参照图像中选择的参照图像进行编码,包括下述步骤:图像编码步骤,参照上述选择了的参照图像,对编码对象图像进行编码;管理信息编码步骤,将用于控制管理上述存储器中保存着的参照图像的存储器管理信息,附随着上述已编码的编码对象图像进行编码;管理信息再编码步骤,与上述管理信息编码步骤中的编码分开地、再次对上述存储器管理信息进行编码。In order to solve this problem, the image encoding method according to the present invention refers to a reference image selected from a plurality of reference images stored in the memory to perform encoding, and includes the following steps: the image encoding step refers to the selected reference image, and Encoding the encoding object image; encoding the management information encoding step, encoding the memory management information for controlling and managing the reference image stored in the above-mentioned memory along with the encoding object image encoded; the management information re-encoding step, and the above-mentioned management The encoding in the information encoding step encodes the above-mentioned memory management information again separately.

这样,由于存储器管理信息多次被编码输出,因此,即使在向译码装置传输时产生了传输线路错误的情况下,由于考虑到将多次被传输的存储器管理信息中的某一个被传输并被译码,因而能正确地复原图像的可能性提高。In this way, since the memory management information is coded and output multiple times, even if a transmission line error occurs when transmitting to the decoding device, it is considered that one of the memory management information to be transmitted multiple times is transmitted and cannot be transmitted. It is decoded, so the possibility of correctly restoring the image increases.

此外,在上述管理信息再编码步骤中,也可以使确定在上述管理信息编码步骤中使存储器管理信息附随的上述编码对象图像的信息,附随上述已再次被编码的存储器管理信息。In addition, in the management information re-encoding step, the re-encoded memory management information may be accompanied by information specifying the encoding target image to be attached to the memory management information in the management information encoding step.

这样,在附随着编码对象图像向图像译码装置传输最初已被编码的存储器管理信息时产生了传输错误的情况下,由于确定存储器管理信息附随的编码对象图像,能检测在哪个时刻产生了传输错误。In this way, when a transmission error occurs when the first encoded memory management information is transmitted to the image decoding device along with the encoding target image, since the encoding target image accompanying the memory management information is identified, it is possible to detect at what time the transmission occurred. mistake.

此外,在上述管理信息编码步骤中,使上述存储器管理信息附随着不保存在上述存储器中的编码对象图像的情况下,在上述管理信息再编码步骤中,也可以使上述存储器管理信息还附随保存在上述存储器中的编码对象图像。In addition, in the step of encoding the management information, when the memory management information is attached to the image to be encoded that is not stored in the memory, in the step of re-encoding the management information, the memory management information may also be stored as an accompanying image. The encoding target image in the above memory.

这样,由于存储器管理信息附随译码后保存在存储器中的重要图像,因此,能准确地进行存储器管理信息的译码,能正确地复原图像的可能性提高。In this way, since the important image stored in the memory after decoding is attached to the memory management information, the decoding of the memory management information can be performed accurately, and the possibility of correctly restoring the image increases.

此外,本发明的图像译码方法参照从存储器内保存着的多个参照图像中选择的参照图像进行译码,其特征在于,在对用于控制管理上述存储器中保存着的参照图像的存储器管理信息进行译码,并基于已译码的存储器管理信息,释放上述存储器中成为不需要的存储器区域的情况下,若进行释放的存储器区域没释放完,则释放存储器区域;若进行释放的存储器区域已经释放完,则不对上述存储器做任何处理。In addition, the image decoding method of the present invention performs decoding by referring to a reference image selected from a plurality of reference images stored in the memory, wherein the memory management for controlling and managing the reference images stored in the memory Information is decoded, and based on the decoded memory management information, when releasing an unnecessary memory area in the above memory, if the memory area to be released has not been released, the memory area will be released; if the memory area to be released If it has been released, no processing will be done on the above memory.

这样,即使在多次接收到表示从存储器消除图像的存储器管理信息的情况下,也不进行错误处理,而能正确地译码图像。In this way, even when the memory management information indicating that the image is deleted from the memory is received multiple times, the image can be correctly decoded without performing error processing.

此外,参照从存储器内保存着的多个参照图像中选择的参照图像进行译码的图像译码方法中,上述存储器包括参照图像的保存时间短的短时间保存存储器、和参照图像的保存时间比上述短时间保存存储器长的长时间保存存储器,上述图像译码方法在对用于控制管理上述存储器中保存着的参照图像的存储器管理信息进行译码,并基于已译码的存储器管理信息,将在上述存储器中保存着的参照图像从上述短时间保存存储器向上述长时间保存存储器移动的情况下,若移动对象的参照图像存在于上述短时间保存存储器中,则将该参照图像从上述短时间保存存储器向上述长时间保存存储器移动;若移动对象的参照图像不存在于上述短时间保存存储器中,则不进行上述存储器内的移动。In addition, in the image decoding method for decoding with reference to a reference image selected from a plurality of reference images stored in the memory, the memory includes a short-term storage memory whose storage time of the reference image is short, and a storage time of the reference image that is shorter than the reference image. In the long-term storage memory having a longer short-term storage memory, the image decoding method decodes memory management information for controlling and managing reference images stored in the memory, and based on the decoded memory management information, converts When the reference image stored in the memory is moved from the short-term storage memory to the long-term storage memory, if the reference image to be moved exists in the short-term storage memory, the reference image is transferred from the short-term storage memory to the short-term storage memory. The storage memory is moved to the long-term storage memory; if the reference image to be moved does not exist in the short-term storage memory, the movement in the memory is not performed.

这样,即使在多次接收到存储器管理信息的情况下,也不进行错误处理,而能正确地对图像进行译码。In this way, even when the memory management information is received multiple times, the image can be correctly decoded without performing error processing.

此外,参照从存储器内保存着的多个参照图像中选择的参照图像进行编码的图像编码方法,也可以将重要度比编码对象图像高的、上述存储器内保存着的参照图像,作为参照图像的候补进行编码。In addition, in the image coding method for coding with reference to a reference picture selected from a plurality of reference pictures stored in the memory, the reference picture stored in the memory that is more important than the picture to be coded may be used as the reference picture. The alternates are encoded.

这样,能更适当地选择可参照的图像的候补,提高编码效率。In this way, it is possible to more appropriately select candidates for pictures that can be referred to, thereby improving coding efficiency.

此外,本发明涉及的图像编码方法的特征在于,包括下述步骤:对编码对象图像进行编码的步骤;在对上述编码对象图像进行编码之后,判断存储器内是否有不被参照的参照图像的步骤;若有上述不被参照的参照图像,则作为释放因不被参照而成为不需要的存储器区域的指令,在对编码数据进行译码的译码装置中对上述编码对象图像进行了译码之后,对表示释放上述成为不需要的存储器区域的指令进行编码的步骤;释放上述成为不需要的存储器区域的步骤;在对比上述编码对象图像晚被编码的另外的编码对象图像进行编码时,在对上述另外的编码对象图像进行译码之前,对表示释放上述成为不需要的存储器区域的内容的指令进行编码的步骤。Furthermore, the image coding method according to the present invention is characterized in that it includes the steps of: coding the coding target picture; after coding the coding target picture, judging whether there is a reference picture that is not referred to in the memory ; If there is a reference picture that is not referred to above, as an instruction to release the unnecessary memory area due to not being referenced, after decoding the above-mentioned coding target picture in the decoding device for decoding coded data , a step of encoding an instruction indicating to release the above-mentioned unnecessary memory area; a step of releasing the above-mentioned unnecessary memory area; when encoding another encoding target image that is encoded later than the above-mentioned encoding target image, when encoding A step of encoding a command indicating to release the contents of the unnecessary memory area before decoding the other encoding target image.

这样,即使在表示释放成为不需要的存储器区域的、最初的指令遗漏的情况下,也能在图像的译码之前执行接着传输的指令,因此,能减少指令执行的滞后。In this way, even if the first instruction is missed, indicating that the release of an unnecessary memory area is missed, the next transferred instruction can be executed before the image is decoded, so that the delay in instruction execution can be reduced.

此外,本发明涉及的图像译码方法的特征在于,包括下述步骤:对附随译码对象图像的、管理存储器的存储器管理信息进行译码的步骤;第一判断步骤,判断上述存储器管理信息是否是表示译码前用指令,该译码前用指令表示在对上述译码对象图像进行译码之前进行管理存储器的处理;第二判断步骤,在上述第一判断步骤中判断为上述存储器管理信息是上述译码前用指令时,判断管理存储器的处理是否完了;在上述第二判断步骤中判断为管理存储器的处理已完了时,对上述译码对象图像进行译码,在上述第二判断步骤中判断为管理存储器的处理还没完了时,在根据上述存储器管理信息进行了管理存储器的处理之后,对上述译码对象图像进行译码的步骤。Furthermore, the image decoding method according to the present invention is characterized in that it includes the steps of: decoding memory management information for managing the memory accompanying the image to be decoded; and a first judging step of judging whether the memory management information is is an instruction before decoding, and the instruction before decoding indicates the processing of managing the memory before decoding the above-mentioned decoding target image; the second judging step is judged as the above-mentioned memory management information in the above-mentioned first judging step When it is the above-mentioned pre-decoding command, it is judged whether the processing of the management memory is completed; when it is judged that the processing of the management memory is completed in the above-mentioned second judgment step, the above-mentioned decoding target image is decoded, and in the above-mentioned second judgment step When it is determined that the process of managing the memory has not been completed, after the process of managing the memory is performed based on the memory management information, the decoding target image is decoded.

这样,即使在表示释放成为不需要的存储器区域的、最初的指令遗漏的情况下,也能在图像的译码之前执行接着传输的指令,因此,能减少指令执行的滞后。In this way, even if the first instruction is missed, indicating that the release of an unnecessary memory area is missed, the next transferred instruction can be executed before the image is decoded, so that the delay in instruction execution can be reduced.

此外,本发明涉及的图像编码方法的特征在于,包括下述步骤:对编码对象图像进行编码的步骤;判断步骤,在对上述编码对象图像进行了编码之后,判断在存储器内的参照图像是否全部是不被参照的图像;在上述判断步骤中判断为在存储器内的参照图像全部是不被参照的图像时,对作为将上述存储器内的参照图像全部删除的命令的、初始化指令进行编码的步骤;将在上述存储器内的参照图像全部删除的初始化步骤;在对比上述编码对象图像晚被编码的另外的编码对象图像进行编码时,根据附加信息,对初始化重发指令进行编码的步骤,所述附加信息将在对上述编码对象图像进行编码时被删除的、比上述编码对象图像先保存在上述存储器内的全部参照图像作为删除对象,所述初始化重发指令是表示删除在存储器内的参照图像的命令。In addition, the image encoding method according to the present invention is characterized in that it includes the following steps: a step of encoding the encoding target image; a judging step of judging whether all the reference images in the memory are is a non-referenced picture; when it is determined in the above-mentioned judging step that all the reference pictures in the memory are non-referenced pictures, a step of encoding an initialization command as a command to delete all the reference pictures in the memory ; The initialization step of deleting all the reference pictures in the above-mentioned memory; When encoding another encoding object image that is encoded later than the above-mentioned encoding object image, according to the additional information, the step of encoding the initialization retransmission instruction, said The additional information is to delete all reference pictures stored in the memory earlier than the picture to be encoded that are deleted when the picture to be coded is encoded, and the initialization retransmission command indicates to delete the reference pictures stored in the memory. The command.

这样,在向译码装置传输初始化指令时,即使在因传输线路错误而初始化指令遗漏的情况下,也能根据初始化重发指令的附加信息,正常地进行存储器内的初始化。In this way, when the initialization command is transmitted to the decoding device, even if the initialization command is missed due to a transmission line error, the initialization in the memory can be normally performed based on the additional information of the initialization retransmission command.

此外,本发明涉及的图像译码方法的特征在于,包括下述步骤:对附随着译码对象图像的、管理存储器的存储器管理信息进行译码的步骤;对上述译码对象图像进行译码的步骤;初始化判断步骤,判断在上述存储器管理信息中是否有全部删除在存储器内的参照图像的命令即初始化指令;在上述初始化判断步骤中没判断到上述存储器管理信息中有上述初始化指令时,初始化重发判断步骤,即,为了删除参照图像而根据表示删除对象的附加信息,判断在上述存储器管理信息中是否有删除存储器内的参照图像的命令即初始化重发指令,上述要删除的参照图像是:应该在对比上述译码对象图像先被译码了的另外的译码对象图像进行译码时进行初始化并删除的、比上述另外的译码对象图像先保存在上述存储器中的参照图像;初始化完了判断步骤,在上述初始化重发判断步骤中判断为上述存储器管理信息是上述初始化重发指令时,判断在存储器内的参照图像是否已被全部删除;删除步骤,在上述初始化完了判断步骤中判断为在存储器内的参照图像未被全部删除时,根据上述附加信息删除在存储器内的图像。Furthermore, the image decoding method according to the present invention is characterized by including the steps of: decoding memory management information for managing memory accompanying the image to be decoded; and decoding the image to be decoded. Step; the initialization judging step, judging whether there is an order to delete all reference images in the memory in the above-mentioned memory management information, that is, an initialization instruction; The retransmission judging step, that is, in order to delete the reference picture, it is judged whether there is a command to delete the reference picture in the memory, that is, an initialization resend command, in the above-mentioned memory management information based on the additional information indicating the deletion object. The above-mentioned reference picture to be deleted is : A reference picture that should be initialized and deleted when decoding another decoding target picture that is decoded earlier than the decoding target picture, and stored in the memory before the decoding target picture; initialization After the judging step is completed, when it is judged in the above-mentioned initialization retransmission judging step that the above-mentioned memory management information is the above-mentioned initialization resend instruction, it is judged whether all reference images in the memory have been deleted; the deletion step is judged in the above-mentioned initialization completion judging step When not all reference images in the memory are deleted, the images in the memory are deleted based on the above additional information.

这样,在向译码装置传输初始化指令时,即使在因传输线路错误而初始化指令遗漏的情况下,也能根据初始化重发指令的附加信息,正常地进行存储器内的初始化。In this way, when the initialization command is transmitted to the decoding device, even if the initialization command is missed due to a transmission line error, the initialization in the memory can be normally performed based on the additional information of the initialization retransmission command.

此外,记录了参照从存储器内保存着的多个参照图像中选择的图像按片单位进行了编码的数据流的记录媒体,在从存储器消除上述存储器内保存着的参照图像的情况下,也可以附随着至少两个片来对指定消除对象的参照图像的信息进行编码。In addition, in a recording medium on which a data stream encoded in units of slices is recorded with reference to a picture selected from a plurality of reference pictures stored in the memory, when the reference picture stored in the memory is deleted from the memory, the Information specifying a reference picture to be deleted is coded along with at least two slices.

这样,在按片单位进行编码的情况中,即使在向译码装置传输时产生了传输线路错误,也由于考虑到对多次被传输的、指定从存储器消除的对象的参照图像的信息中的某一个进行传输并译码,因此,能按片单位正确地复原图像的可能性提高。In this way, in the case of encoding in units of slices, even if a transmission line error occurs when transmitting to the decoding device, due to the consideration of the error in the information specifying the reference picture to be deleted from the memory that has been transmitted multiple times, Since any one of them is transmitted and decoded, the possibility of correctly restoring an image on a slice-by-slice basis increases.

此外,本发明的记录媒体,记录了参照从存储器内保存着的多个参照图像中选择了的图像按片单位编码了的数据流,在从存储器消除上述存储器内保存着的参照图像的情况下,附随着至少两个片来对指定消除对象的参照图像的信息进行编码;另外,也可以附随着上述片,将表示上述片具有指定上述消除对象的参照图像的信息的内容的信息进行编码;在不具有指定上述行消除的对象的参照图像的信息的片中,参照指定上述消除对象的参照图像的信息时,也可以将表示参照指定上述消除对象的参照图像的信息的信息进行编码。Furthermore, the recording medium of the present invention records a data stream coded in units of slices by referring to a picture selected from a plurality of reference pictures stored in the memory, and when the reference picture stored in the memory is deleted from the memory , encoding the information specifying the reference picture of the elimination object by attaching at least two slices; in addition, encoding the information indicating that the slice has the information of the information specifying the reference image of the elimination object along with the slice; When referring to information specifying a reference picture to be deleted in a slice that does not have information specifying a reference picture to be deleted, information indicating reference to information to specify a reference picture to be deleted may be encoded.

这样,在不具有指定上述消除对象的参照图像的信息的片中,能省略上述信息的附加,能提高编码效率。In this way, in a slice that does not have information specifying the reference picture to be deleted, the addition of the above-mentioned information can be omitted, and the coding efficiency can be improved.

如上所述地,根据本发明涉及的图像编码方法和图像译码方法,能实现即使因传输线路错误而一部分存储器管理信息消失,也能正确地复原的图像编码方法和图像译码方法,和更适当地选择可参照的参照图像的候补,提高编码效率的图像编码方法和图像译码方法,其实用价值很高。As described above, according to the image coding method and the image decoding method of the present invention, even if a part of the memory management information is lost due to a transmission line error, the image coding method and the image decoding method that can be restored correctly can be realized, and further An image encoding method and an image decoding method for improving encoding efficiency by appropriately selecting candidates of reference images that can be referred to are highly practical.

再有,本发明不仅能实现象上述的图像编码方法和图像译码方法,也能实现使用了上述方法的图像编码装置和图像译码装置,也能实现记录了由图像编码方法进行了编码的数据流的记录媒体,也能实现将图像编码方法和图像译码方法中的步骤在计算机中执行的程序。当然,象这样的程序也可以通过CD-ROM等记录媒体和因特网等传输媒体来发送。Furthermore, the present invention can realize not only the image coding method and the image decoding method as described above, but also the image coding device and the image decoding device using the above method, and can also realize the recording of the image coded by the image coding method. The recording medium of the data stream can also realize a program for executing the steps in the image coding method and the image decoding method in a computer. Of course, such a program can also be distributed via a recording medium such as a CD-ROM or a transmission medium such as the Internet.

再有,本说明书中摘录了前日本特许申请“特愿2002-110424”、“特愿2002-190955”、“特愿2003-49711”和美国申请“60/377656”的内容。In addition, this specification extracts the content of the former Japanese patent application "Japanese Patent Application No. 2002-110424", "Japanese Patent Application No. 2002-190955", "Japanese Patent Application No. 2003-49711" and the US application "60/377656".

附图说明 Description of drawings

图1(a)是参照从保存在存储器中的多个参照图像选择的图像进行编码的图像编码的说明图,图1(b)是示出保存图像的存储器的结构的结构图。FIG. 1( a ) is an explanatory diagram of picture coding that is coded with reference to a picture selected from a plurality of reference pictures stored in a memory, and FIG. 1( b ) is a structural diagram showing the structure of a memory for storing pictures.

图2(a)是示出现有的图像编码方法的流程图,图2(b)是示出现有的图像译码方法的流程图。FIG. 2( a ) is a flowchart showing a conventional image coding method, and FIG. 2( b ) is a flowchart showing a conventional image decoding method.

图3(a)是示出现有的图像编码方法的另一种流程图,图3(b)是示出现有的图像译码方法的另一种流程图。FIG. 3( a ) is another flowchart showing a conventional image encoding method, and FIG. 3( b ) is another flowchart showing a conventional image decoding method.

图4(a)是示出现有的图像编码方法的另一种流程图,图3(b)是示出现有的图像译码方法的另一种流程图。FIG. 4(a) is another flow chart showing a conventional image encoding method, and FIG. 3(b) is another flow chart showing a conventional image decoding method.

图5是示出本发明的图像编码装置的结构框图。FIG. 5 is a block diagram showing the structure of an image encoding device of the present invention.

图6是示出本发明的实施方式1中的图像编码方法的流程图。FIG. 6 is a flowchart showing an image encoding method in Embodiment 1 of the present invention.

图7是示出本发明的图像译码装置的结构框图。Fig. 7 is a block diagram showing the structure of an image decoding device of the present invention.

图8是示出本发明的实施方式2中的图像译码方法的流程图。FIG. 8 is a flowchart showing an image decoding method in Embodiment 2 of the present invention.

图9是示出本发明的实施方式3中的图像编码方法的流程图。FIG. 9 is a flowchart showing an image encoding method in Embodiment 3 of the present invention.

图10是示出本发明的实施方式4中的图像译码方法的流程图。FIG. 10 is a flowchart showing an image decoding method according to Embodiment 4 of the present invention.

图11是示出本发明的实施方式5中的图像编码方法的流程图。FIG. 11 is a flowchart showing an image coding method in Embodiment 5 of the present invention.

图12是示出本发明的实施方式6中的图像编码方法的流程图。FIG. 12 is a flowchart showing an image coding method in Embodiment 6 of the present invention.

图13是示出本发明的实施方式7中的图像编码方法的流程图。FIG. 13 is a flowchart showing an image coding method in Embodiment 7 of the present invention.

图14(a)是示出图像的图像编号、保存图像编号及传输顺序的关系的说明图,图14(b)是示出进行译码的图像编号、保存着的图像编号及被删除的图像编号之间关系的关系图,图14(c)是示出进行译码的图像编号、保存着的图像编号及被删除的图像编号的其他关系的关系图。Fig. 14(a) is an explanatory diagram showing the relationship between picture numbers, stored picture numbers, and transfer order of pictures, and Fig. 14(b) is a picture number to be decoded, stored picture numbers, and deleted pictures As for the relationship diagram of the relationship between numbers, FIG. 14(c) is a relationship diagram showing other relationships among decoded picture numbers, stored picture numbers, and deleted picture numbers.

图15是示出本发明中的存储器管理信息的指令的对应图。FIG. 15 is a correspondence diagram showing commands of memory management information in the present invention.

图16是示出本发明的实施方式8中的指令执行顺序的流程图。FIG. 16 is a flowchart showing the command execution procedure in Embodiment 8 of the present invention.

图17是示出各图像的编码信号中的标题信息与帧数据之间关系的模式图。Fig. 17 is a schematic diagram showing the relationship between header information and frame data in the encoded signal of each image.

图18是示出编码信号的标题信息中的存储器管理信息的指令的模式图。Fig. 18 is a schematic diagram showing commands of memory management information in header information of an encoded signal.

图19是示出各图像的图像编号、保存图像编号及传输顺序的关系的说明图。FIG. 19 is an explanatory diagram showing the relationship between the picture number of each picture, the stored picture number, and the transfer order.

图20是示出将初始化指令进行编码的方法的流程图。FIG. 20 is a flowchart illustrating a method of encoding initialization instructions.

图21是示出将已编码的初始化指令进行译码的方法的流程图。FIG. 21 is a flowchart illustrating a method of decoding encoded initialization commands.

图22是示出在本发明的实施方式8中使用的存储器管理信息的指令的对应图。FIG. 22 is a map showing commands of memory management information used in Embodiment 8 of the present invention.

图23是示出使用了本发明中的初始化重发指令的图像编码方法的流程图。FIG. 23 is a flowchart showing an image coding method using an initialization retransmission command in the present invention.

图24是示出本发明中的将已编码的初始化重发指令进行译码的方法的流程图。Fig. 24 is a flow chart showing the method of decoding the coded initialization resend command in the present invention.

图25是示出各图像的图像编号、保存图像编号及传输顺序的其他关系的说明图。FIG. 25 is an explanatory diagram showing another relationship among image numbers, stored image numbers, and transfer order of each image.

图26是示出在本发明的实施方式9中使用的存储器管理信息的指令的对应图。FIG. 26 is a map showing commands of memory management information used in Embodiment 9 of the present invention.

图27是示出本发明的实施方式9中的图像编码方法的流程图。Fig. 27 is a flowchart showing an image coding method in Embodiment 9 of the present invention.

图28是示出本发明的实施方式9中的图像译码方法的流程图。Fig. 28 is a flowchart showing an image decoding method according to Embodiment 9 of the present invention.

图29(a)是示出指令的内容和附加信息的对应图,图29(b)是示出指令的执行定时的对应图。FIG. 29( a ) is a correspondence diagram showing the content of a command and additional information, and FIG. 29( b ) is a correspondence diagram showing execution timing of a command.

图30是示出编码信号的标题信息中的存储器管理信息指令的模式图。Fig. 30 is a schematic diagram showing a memory management information command in header information of an encoded signal.

图31是示出其他编码信号的标题信息中的存储器管理信息指令的模式图。Fig. 31 is a schematic diagram showing memory management information commands in header information of another coded signal.

图32是示出按片单位编码的数据流结构的模式图。Fig. 32 is a schematic diagram showing the structure of a data stream encoded in units of slices.

图33(a)(b)都是示出按片单位编码的数据流结构的模式图。33(a) and (b) are schematic diagrams showing the structure of a data stream coded in units of slices.

图34(a)(b)(c)都是对用于存储程序的存储媒体的说明图,所述程序是计算机系统实现本发明的实施方式1至实施方式10的图像编码方法和图像译码方法的程序。34(a), (b) and (c) are explanatory diagrams of a storage medium for storing a program for a computer system to realize the image encoding method and image decoding in Embodiments 1 to 10 of the present invention method of procedure.

图35是示出使用本发明的图像编码方法和图像译码方法的内容供给系统的整体结构的框图。Fig. 35 is a block diagram showing the overall structure of a content supply system using the image coding method and the image decoding method of the present invention.

图36是示出使用本发明的图像编码方法和图像译码方法的携带式电话的一例的外观图。Fig. 36 is an external view showing an example of a mobile phone using the image coding method and the image decoding method of the present invention.

图37是示出上述携带式电话结构的结构框图。Fig. 37 is a structural block diagram showing the structure of the above-mentioned mobile phone.

图38是示出使用本发明的图像编码方法和图像译码方法的数字广播用系统的结构的结构图。Fig. 38 is a configuration diagram showing the configuration of a digital broadcasting system using the image coding method and the image decoding method of the present invention.

具体实施方式 Detailed ways

以下,用附图说明本发明的实施方式。Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(实施方式1)(Embodiment 1)

首先,对实施方式1进行说明。First, Embodiment 1 will be described.

图5是示出用于实现本实施方式中的图像编码方法的图像编码装置的结构框图。FIG. 5 is a block diagram showing the configuration of an image encoding device for realizing the image encoding method in this embodiment.

图像编码装置100由存储器信息控制部101、短时间保存存储器管理部102、长时间保存存储器管理部103、非保存存储器管理信息部104、管理信息编码部105、参照图像选择部106、保存区域指定部107、参照区域指定部108、图像存储器109、图像译码部111、图像编码部110、可变长编码部112、计数器113、计数器114等构成。The image coding device 100 includes a memory information control unit 101, a short-term storage memory management unit 102, a long-term storage memory management unit 103, a non-storage memory management information unit 104, a management information coding unit 105, a reference image selection unit 106, and a storage area designation unit 106. unit 107, reference area specifying unit 108, image memory 109, image decoding unit 111, image encoding unit 110, variable length encoding unit 112, counter 113, counter 114, and the like.

参照图像选择部106根据从外部输入的重要度指示信号Pri和图像类型信息PicType,选择参照图像的候补,并通知存储器信息控制部101。The reference picture selection unit 106 selects a candidate for a reference picture based on the importance indication signal Pri input from outside and the picture type information PicType, and notifies the memory information control unit 101 of the candidate.

存储器信息控制部101根据图像类型信息PicType,判断前方和后方的哪一方或两方的图像(图像)是否可参照,命令参照区域指定部108,从图像存储器109向图像编码部110输出对应的参照图像。The memory information control unit 101 judges whether one or both of the front and rear pictures (pictures) can be referred to based on the picture type information PicType, and instructs the reference area specifying unit 108 to output the corresponding reference from the picture memory 109 to the picture encoding unit 110. image.

图像编码部110参照从图像存储器109输出的参照图像,对输入图像信号Vin进行编码,可变长编码部112进一步进行可变长编码之后,输出图像编码流VideoStr。此外,图像编码部110的输出被图像译码部111译码而成为译码图像,作为参照图像存储到图像存储器109中。The image encoding unit 110 refers to the reference image output from the image memory 109 to encode the input image signal Vin, and the variable length encoding unit 112 further performs variable length encoding to output the encoded image stream VideoStr. In addition, the output of the image encoding unit 110 is decoded by the image decoding unit 111 to become a decoded image, which is stored in the image memory 109 as a reference image.

这时,图像存储器109中的译码图像的可存储的存储器位置如下进行指定。即,存储器信息控制部101向短时间保存存储器管理部102查询,在短时间存储器中确定图像已被消除的存储器位置,保存区域指定部107对图像存储器109发出指示,以使在该存储器位置上记录译码图像。At this time, the memory location where the decoded image can be stored in the image memory 109 is designated as follows. That is, the memory information control unit 101 inquires from the short-term storage memory management unit 102 to specify a memory location in the short-term memory where the image has been deleted, and the storage area specifying unit 107 instructs the image memory 109 to save the image at the memory location. Record the decoded image.

短时间保存存储器管理部102检测短时间保存存储器内的不需要(不被参照)的图像,并向存储器信息控制单元部101通知消除(释放存储器)的指令。此外,长时间保存存储器管理部103向存储器信息控制部101通知将短时间保存存储器内的图像向长时间保存存储器移动的指令。该不需要的图像的消除(存储器的释放)指令和将短时间保存存储器内的图像向长时间保存存储器移动的指令,在管理信息编码部105被进行编码成为存储器管理信息流CtlStr。The short-term save memory management unit 102 detects unnecessary (non-referenced) images in the short-term save memory, and notifies the memory information control unit 101 of an instruction to delete (release the memory). Also, the long-term storage management unit 103 notifies the memory information control unit 101 of an instruction to move the images in the short-term storage memory to the long-term storage memory. The command to delete unnecessary images (release memory) and the command to move images in the short-term storage memory to the long-term storage memory are encoded by the management information encoding unit 105 into a memory management information stream CtlStr.

另一方面,为了防止因传输线路错误而一部分存储器管理信息流CtlStr消失,从而存储器管理信息被损坏,用短时间保存存储器用的计数器113和长时间保存存储器用的计数器114,计测不需要的图像的消除指令和将短时间保存存储器内的图像向长时间保存存储器移动的指令的编码次数,能根据需要进行上述指令的多次传输。On the other hand, in order to prevent a part of the memory management information stream CtlStr from disappearing due to a transmission line error, thereby destroying the memory management information, the counter 113 for the short-term storage memory and the counter 114 for the long-term storage memory are used to measure unnecessary The number of encoding times of the command to delete the image and the command to move the image in the short-term storage memory to the long-term storage memory can be transmitted as many times as necessary.

此外,非保存存储器管理信息部104,管理不需要的图像的消除指令和将短时间保存存储器内的图像向长时间保存存储器移动的指令是否附随着重要度低且难被译码的图像已被编码,在上述指令附随着重要度低的图像被编码了的情况下,向存储器信息控制部101发出指示,以使附随着更高重要度的图像再次对指令进行编码。In addition, the non-storage memory management information unit 104 manages whether an instruction to delete an unnecessary image or an instruction to move an image in the short-term storage memory to the long-term storage memory is accompanied by a low-importance and difficult-to-decode image that has been deleted. For encoding, when the above-mentioned command is encoded with an image of low importance, an instruction is given to the memory information control unit 101 to encode the command again with an image of higher importance.

下面,对本发明的实施方式1中的图像编码方法进行说明。图6是示出实施方式1中的图像编码方法的流程图,示出图5示出的图像编码装置100进行的动作。再有,在图6中,对与图2(a)动作相同的部分标注相同的标记。Next, the image coding method in Embodiment 1 of the present invention will be described. FIG. 6 is a flowchart showing the image coding method in Embodiment 1, and shows operations performed by the image coding device 100 shown in FIG. 5 . In addition, in FIG. 6, the same code|symbol is attached|subjected to the part which operates the same as FIG. 2(a).

图6中示出的图像编码方法的特征在于,在存储器内作为预测编码的参照图像存在不需要的图像(图像)的情况下,反复对释放保存着该图像的存储器区域(消除该图像)的存储器管理信息的指令进行编码。象这样地,通过反复对存储器管理信息的指令进行编码,即使因传输线路错误而其中一方存储器管理信息的指令消失,也能根据另一方存储器管理信息的指令复原保存在存储器内的图像的管理信息,因此,即使有传输线路错误也能正确地复原图像的可能性提高。The picture encoding method shown in FIG. 6 is characterized in that, when there is an unnecessary picture (picture) in the memory as a reference picture for predictive coding, the process of releasing the memory area storing the picture (deleting the picture) is repeated. Instructions for memory management information are encoded. In this way, by repeatedly encoding the memory management information instructions, even if one of the memory management information instructions disappears due to a transmission line error, the image management information stored in the memory can be restored based on the other memory management information instructions. , therefore, the probability that the image can be correctly restored even if there is a transmission line error increases.

图6中,首先,对输入图像(步骤100)进行编码。编码之后在存储器内检查不需要的区域(在以后的编码中不参照的图像)(步骤101),判定是否有不需要的存储器区域(步骤102)。在有不需要的存储器区域的情况下(步骤102的Yes),管理信息编码部105将释放不需要的存储器区域的指令作为存储器管理信息进行编码(步骤103)。然后,释放该不需要的存储器区域(步骤104)。在没有不需要的存储器区域的情况下(步骤102的No),就不进行步骤103和步骤104的动作。In FIG. 6, first, the input image is encoded (step 100). After encoding, unnecessary areas (pictures not to be referred to in subsequent encoding) are checked in the memory (step 101), and it is determined whether there is an unnecessary memory area (step 102). If there is an unnecessary memory area (Yes in step 102), the management information encoding unit 105 encodes a command to release the unnecessary memory area as memory management information (step 103). Then, the unnecessary memory area is released (step 104). If there is no unnecessary memory area (No in step 102), the operations in steps 103 and 104 are not performed.

接着,存储器信息控制部101判定释放不需要的存储器区域的指令是否附随着在紧前面已编码的图像(编码对象之前的图像),作为存储器管理信息进行了编码(步骤105),在指令没有被编码了的情况下(步骤105的No)结束处理,并在指令已被编码了的情况下(步骤105的Yes),管理信息编码部105再次将释放该不需要的存储器区域的指令作为存储器管理信息进行编码(步骤106),并结束处理。Next, the memory information control unit 101 judges whether the command to release unnecessary memory area is accompanied by a picture coded immediately before (picture before the coding target) and coded as memory management information (step 105). If it is coded (No in step 105), the process ends, and if the command has been coded (Yes in step 105), the management information coder 105 again uses the command to release the unnecessary memory area as a memory management command. The information is encoded (step 106), and processing ends.

象这样地,若在紧前面的图像的编码中,释放不需要的存储器(存储器管理信息的)的指令被编码,则存储器管理信息的指令再次被编码。附随着紧前面的图像的编码而被编码了的存储器管理信息、和再次被编码了的存储器管理信息,分别由图像编码装置输出,传输到图像译码装置中被译码。In this way, when an instruction to release unnecessary memory (memory management information) is encoded in the encoding of the immediately preceding image, an instruction to the memory management information is encoded again. The memory management information coded accompanying the coding of the immediately preceding picture and the memory management information coded again are respectively output from the picture coding device, and are transmitted to the picture decoding device to be decoded.

再有,在步骤105中,附随着紧前面已被编码的图像的编码信号,释放不需要的存储器区域的指令被编码了的情况下,再次编码指令,但在不是附随着紧前面的图像的情况,而是附随着几个图像以前的图像的情况下,并且,将上述指令作为存储器管理信息反复进行编码,并附随多个图像进行传输也可以。Furthermore, in step 105, if an instruction to release an unnecessary memory area is encoded along with the coded signal of the image that has been encoded immediately before, the instruction is coded again. In the case of a few pictures, the previous picture may be attached, and the above-mentioned command may be repeatedly encoded as memory management information, and may be transmitted together with a plurality of pictures.

此外,若能将释放上述不需要的存储器区域的指令作为存储器管理信息多次传输就好,在再次编码该指令进行传输时,无需一定使之附随着图像的编码信号进行传输。In addition, it would be desirable if the command to release the above-mentioned unnecessary memory area can be transmitted as memory management information multiple times, and when the command is re-encoded and transmitted, it does not necessarily have to be transmitted along with the coded signal of the image.

此外,在重发存储器管理信息的指令的情况下,其重发的指令也可以不是在与已被编码的图像相同的流中,而是例如作为另外的流进行传输,也可以记录在存储媒体的另外的区域中。In addition, in the case of retransmitting the memory management information command, the retransmitted command may not be in the same stream as the coded image, but may be transmitted as a separate stream, for example, or may be recorded in a storage medium. in another area.

如上所述,由于可认为通过多次传输释放不需要的存储器区域(存储器管理信息的)的指令,即使在产生了传输线路错误的情况下,多次传输的指令中的某一个被传输并被译码,因此,能正确地复原图像的可能性提高。As described above, since it can be considered that an instruction to release an unnecessary memory area (of memory management information) is transferred multiple times, even if a transmission line error occurs, one of the instructions transferred multiple times is transferred and Therefore, it is more likely that the image can be correctly restored due to decoding.

(实施方式2)(Embodiment 2)

下面,对本发明的实施方式2进行说明。Next, Embodiment 2 of the present invention will be described.

图7是用于实现实施方式2中的图像译码方法的图像译码装置的框图。7 is a block diagram of an image decoding device for realizing the image decoding method in Embodiment 2. FIG.

图像译码装置200由存储器信息控制部201、短时间保存存储器管理部202、长时间保存存储器管理部203、管理信息译码部205、保存区域指定部207、参照区域指定部208、图像存储器209、图像译码部210、可变长译码部212等构成。The image decoding device 200 is composed of a memory information control unit 201, a short-term storage memory management unit 202, a long-term storage memory management unit 203, a management information decoding unit 205, a storage area designation unit 207, a reference area designation unit 208, and an image memory 209. , an image decoding unit 210, a variable length decoding unit 212, and the like.

存储器信息控制部201根据图像类型信息PicType,对编码对象判断前方和后方的哪一方或两方的图像是否可参照,命令参照区域指定部208,从图像存储器209向图像译码部210输出对应的参照图像。The memory information control unit 201 judges whether one or both of the front and rear pictures can be referred to for the coding target according to the picture type information PicType, and instructs the reference area specifying unit 208 to output the corresponding picture from the picture memory 209 to the picture decoding unit 210. Refer to image.

可变长译码部212对编码流VideoStr进行译码,图像译码部210将其进一步译码,作为译码图像信号Vout输出,并作为参照图像存储到图像存储器209中。The variable length decoding unit 212 decodes the coded stream VideoStr, and the image decoding unit 210 further decodes it, outputs it as a decoded image signal Vout, and stores it in the image memory 209 as a reference image.

这时,图像存储器209中的译码图像的可存储的存储器位置如下进行指定。存储器信息控制部201向短时间保存存储器管理部202查询,确定的已消除图像的存储器位置,保存区域指定部207对图像存储器209发出指示,以使在该存储器位置上记录译码图像。At this time, the memory location where the decoded image can be stored in the image memory 209 is designated as follows. The memory information control unit 201 inquires the short-term storage memory management unit 202 to determine the memory location of the deleted image, and the storage area specifying unit 207 issues an instruction to the image memory 209 to record the decoded image in the memory location.

管理信息译码部205对存储器管理信息流CtlStr进行译码,通过存储器信息控制部201,向短时间保存存储器管理部202通知短时间保存存储器内的不需要(不参照)的图像信息,对长时间保存存储器管理部203通知将短时间保存存储器内的图像向长时间保存存储器移动的指令。The management information decoding unit 205 decodes the memory management information stream CtlStr, and notifies the short-term storage memory management unit 202 of unnecessary (non-referenced) image information in the short-term storage memory through the memory information control unit 201. The time saving memory management unit 203 notifies an instruction to move the images in the short time saving memory to the long time saving memory.

下面,对本发明的实施方式2中的图像译码方法进行说明。图8是示出实施方式2中的图像译码方法的流程图,示出图7示出的图像译码装置200进行的动作。再有,图8中,在与图2(b)动作相同的部分上标记相同的标记。Next, the image decoding method in Embodiment 2 of the present invention will be described. FIG. 8 is a flowchart showing the image decoding method in Embodiment 2, and shows operations performed by the image decoding device 200 shown in FIG. 7 . In addition, in FIG. 8, the same code|symbol is attached|subjected to the part which operates the same as FIG. 2(b).

在图像编码装置多次传输了释放不需要的存储器区域的指令的情况下,只要不因传输线路错误而指令消失,图像译码装置就多次接收释放存储器内的相同图像区域的指令。因此,必须实现这样的图像译码方法,即,即使在图像译码装置接收到了再次释放已经释放了的存储器区域的指令的情况下,也不作为错误进行处理,而相反判断为能正确地接收。在本实施方式中,实现了这样的图像译码方法。When the image encoding device has transmitted the command to release unnecessary memory areas multiple times, the image decoding device receives the command to release the same image area in the memory multiple times unless the command disappears due to a transmission line error. Therefore, it is necessary to realize such an image decoding method that, even if the image decoding device receives an instruction to release the memory area that has been released again, it does not treat it as an error, but instead judges that it can be received correctly. . In this embodiment, such an image decoding method is realized.

图8中,首先,管理信息译码部205对存储器管理信息译码(步骤110)。接着,根据编码信号对图像信号(步骤111)进行译码。然后,存储器信息控制部201判定在译码后的存储器管理信息中是否有释放存储器的指令(步骤112)。若有释放存储器的指令(步骤112的Yes),就判定是否有应该用该指令消除的图像,或者是否已经释放完(消除完)(步骤113),若存储器释放完(步骤113的Yes),就不做任何处理而结束,若不是这样,就释放存储器(步骤114),之后结束处理。另一方面,在没有存储器释放指令的情况下(步骤112的No),就不进行步骤113和步骤114的动作而结束处理。再有,步骤110和步骤111的顺序不同,可以互换所述两步骤的顺序。In FIG. 8, first, the management information decoding unit 205 decodes the memory management information (step 110). Next, the image signal is decoded according to the coded signal (step 111). Then, the memory information control unit 201 judges whether there is an instruction to release the memory in the decoded memory management information (step 112). If there is an instruction to release memory (Yes in step 112), it is judged whether there is an image that should be eliminated with this instruction, or whether it has released (eliminated) (step 113), if memory has released (Yes in step 113), End without doing any processing, if not, release memory (step 114), and end processing. On the other hand, when there is no memory release command (No in step 112), the operations in steps 113 and 114 are not performed, and the process ends. Furthermore, the order of step 110 and step 111 is different, and the order of the two steps can be interchanged.

根据如上所述的动作,用实施方式1的图像编码方法多次编码并传输释放存储器内的相同图像的区域的指令,即使图像译码装置200多次接收到该信号的情况下,由于不作为错误进行处理,因而能够实现能正确地译码的图像译码方法。According to the above-mentioned operation, even if the image decoding device 200 receives the signal multiple times by encoding and transmitting the command to release the area of the same image in the memory multiple times by the image encoding method of Embodiment 1, it does not act as Errors are handled so that an image decoding method capable of correct decoding can be realized.

再有,只要将释放上述不需要的存储器区域的指令作为存储器管理信息多次进行传输就好,在将该指令再次编码并传输时,无需必须使其附随着图像的编码信号进行传输。In addition, it is only necessary to transmit the command to release the unnecessary memory area multiple times as the memory management information, and when re-encoding and transmitting the command, it is not necessary to transmit the command along with the coded signal of the image.

此外,在重发存储器管理信息的指令的情况下,其重发的指令也可以不是在与已被编码的图像相同的流中,而是例如作为另外的流进行传输,也可以记录在存储媒体的另外的区域中。In addition, in the case of retransmitting the memory management information command, the retransmitted command may not be in the same stream as the coded image, but may be transmitted as a separate stream, for example, or may be recorded in a storage medium. in another area.

(实施方式3)(Embodiment 3)

下面,对实施方式3中的图像编码方法进行说明。图9是示出实施方式3中的图像编码方法的流程图,示出图像编码装置100进行的动作。在图9中,在与图3(a)动作相同的部分标注相同的标记。Next, an image encoding method in Embodiment 3 will be described. FIG. 9 is a flowchart showing the image coding method in Embodiment 3, and shows operations performed by the image coding device 100 . In FIG. 9 , the same symbols are assigned to the same parts as in FIG. 3( a ).

本实施方式的特征在于,在存储器内存在应该从短时间保存存储器向长时间保存存储器移动的图像的情况下,反复对移动该图像的存储器管理信息的指令进行编码。通过反复编码存储器管理信息的指令,即使因传输线路错误而其中部分存储器管理信息的指令消失,也能根据另一部分存储器管理信息的指令复原保存在存储器内的图像的管理信息,因此,即使有传输线路错误也能正确地复原图像的可能性提高。This embodiment is characterized in that, when there is an image to be moved from the short-term storage memory to the long-term storage memory in the memory, a command to move the memory management information of the image is repeatedly encoded. By repeatedly encoding the instructions of the memory management information, even if some of the instructions of the memory management information disappear due to a transmission line error, the management information of the image stored in the memory can be restored according to the instructions of another part of the memory management information. Therefore, even if there is transmission There is an increased possibility that the image can be correctly restored even if there is a line error.

图9中,首先,对输入图像(步骤120)进行编码。编码之后检查是否有应该向长时间保存存储器移动的图像(步骤121)。然后,存储器信息控制部101判定是否有向长时间保存存储器移动的图像(步骤122)。若有应该移动的图像(步骤122的Yes),管理信息编码部105就把表示如何向长时间保存存储器移动的指令作为存储器管理信息进行编码(步骤123)。然后,按照该指令把图像向长时间保存存储器中移动(步骤124)。In FIG. 9, first, the input image is encoded (step 120). After encoding, it is checked whether there is an image that should be moved to the long-term storage memory (step 121). Then, the memory information control unit 101 judges whether or not there is an image to be moved to the long-term storage memory (step 122). If there is an image to be moved (Yes in step 122), the management information encoding unit 105 encodes a command indicating how to move to the long-term storage memory as memory management information (step 123). Then, the image is moved to long-term storage according to the instruction (step 124).

接着,存储器信息控制部101判定是否将编码信号向长时间保存存储器移动的指令,作为存储器管理信息进行了编码(步骤125),所述编码信号是附随着紧前面已编码的图像(编码对象之前的图像)的信号。若没进行编码(步骤125的No),就结束处理;若已编码(步骤125的Yes),则管理信息编码部105就将向该长时间保存存储器移动的指令作为存储器管理信息,再次进行编码(步骤126),之后结束处理。Next, the memory information control unit 101 judges whether or not an instruction to move a coded signal that is attached to an image that has been coded immediately before (before the coding target) is coded as memory management information (step 125). image) signal. If not encoded (No in step 125), the process ends; if encoded (Yes in step 125), the management information encoding unit 105 encodes again the instruction to move to the long-term storage memory as memory management information. (step 126), and then end the process.

如上,若在紧前面的图像的编码中向长时间保存存储器移动(存储器管理信息的)的指令被编码,则编码存储器管理信息的指令再次被编码。分别由图像编码装置输出附随着紧前面的图像的编码而被编码了的存储器管理信息和已再次被编码的存储器管理信息,并传输到图像译码装置中进行译码。As described above, when the instruction to move to the long-term storage memory (for memory management information) is encoded in the encoding of the immediately preceding image, the instruction to encode the memory management information is encoded again. The memory management information coded accompanying the coding of the immediately preceding picture and the memory management information coded again are respectively output from the picture coding device, and are transmitted to the picture decoding device for decoding.

再有,在步骤125中,在附随着紧前面已编码的图像的编码信号,向长时间保存存储器移动的指令已被编码的情况下,再次对指令进行编码,但也可以不是附随着紧前面的图像的情况,而是附随几个图像之前的图像的情况,并且,将上述指令作为存储器管理信息反复进行编码,可以附随着多个图像。In addition, in step 125, when the instruction to move to the long-term storage memory has been encoded along with the encoded signal of the immediately preceding encoded image, the instruction is encoded again, but the instruction may not be attached to the immediately preceding image. In the case of a single image, a few images before the image are attached, and the above-mentioned command is repeatedly coded as memory management information, and a plurality of images may be attached.

此外,只要能多次传输向上述长时间保存存储器移动的指令作为存储器管理信息就好,无需在再次对该指令进行编码并传输时,必须使之附随着图像的编码信号进行传输。In addition, as long as the command to move to the long-term storage memory can be transmitted multiple times as memory management information, it is not necessary to transmit the command along with the coded signal of the image when encoding and transmitting the command again.

此外,在重发存储器管理信息的指令的情况下,其重发的指令也可以不是在与已编码的图像相同的流中,而是例如作为另外的流进行传输,也可以记录在存储媒体的另外的区域中。In addition, in the case of resending the memory management information command, the resent command may not be in the same stream as the coded image, but may be transmitted as a separate stream, for example, or may be recorded in the storage medium. in another area.

如上所述,由于可认为通过多次传输向长时间保存存储器移动的指令,即使在产生了传输线路错误的情况下,多次传输的指令中的某一个仍被传输并被译码,因此,能正确地复原图像的可能性提高。As described above, since it can be considered that the instruction to move to the long-term storage memory is transferred multiple times, even if a transmission line error occurs, one of the instructions transferred multiple times is still transmitted and decoded, therefore, The possibility of correctly restoring an image increases.

(实施方式4)(Embodiment 4)

下面,对实施方式4的图像译码方法进行说明。Next, an image decoding method according to Embodiment 4 will be described.

在图像编码装置多次传输了向长时间保存存储器移动的指令的情况下,指令不因传输线路错误而消失,图像译码装置则多次接收将短时间保存存储器内的相同图像区域向长时间保存存储器移动的指令。因此,必须实现这样的图像译码方法,即,即使在图像译码装置接收到再次移动已移动的图像的指令的情况下,也不作为错误进行处理,而相反地判断为能正确地接收。本实施方式中的图像译码方法的特征在于实现这样的图像译码方法。In the case that the image coding device has transmitted the command to move to the long-term storage memory multiple times, the command will not disappear due to a transmission line error, and the image decoding device will receive and transfer the same image area in the short-term storage memory to the long-term storage multiple times. Instructions for saving memory moves. Therefore, it is necessary to implement an image decoding method that, even when the image decoding device receives an instruction to move the image again, does not treat it as an error, but instead determines that it can be received correctly. The image decoding method in this embodiment is characterized by realizing such an image decoding method.

图10是示出实施方式4中的图像译码方法的流程图,示出图7中示出的图像译码装置200的动作。在图10中,在与图3(b)动作相同的部分上标记相同的标记。FIG. 10 is a flowchart showing the image decoding method in Embodiment 4, and shows the operation of the image decoding device 200 shown in FIG. 7 . In FIG. 10 , the same symbols are assigned to the same parts as in FIG. 3( b ).

图10中,首先,管理信息译码部205译码存储器管理信息(步骤130)。然后,根据编码信号对图像信号进行译码(步骤131)。In FIG. 10, first, the management information decoding unit 205 decodes the memory management information (step 130). Then, the image signal is decoded according to the coded signal (step 131).

然后,存储器信息控制部201判定在已译码的存储器管理信息中是否有向长时间保存存储器移动图像的指令(步骤132)。若有向长时间保存存储器移动的指令(步骤132的Yes),则判定是否有应该按该指令移动的图像,或是否已经移动完(因为在移动之后消除完而不存在图像)(步骤133),若向长时间保存存储器移动完(步骤133的Yes),就不做任何处理而结束,若不是这样,就向长时间保存存储器移动(步骤134)后结束处理。Then, the memory information control unit 201 determines whether or not there is an instruction to move an image to the long-term storage memory in the decoded memory management information (step 132). If there is an instruction to move to the long-term storage memory (Yes in step 132), then it is judged whether there is an image that should be moved by the instruction, or whether it has been moved (because there is no image because it has been eliminated after moving) (step 133) , if move to long-term storage memory (Yes in step 133), do not do any processing and end, if not like this, just end processing after moving (step 134) to long-term storage memory.

另一方面,在没有向长时间保存存储器移动的指令的情况下(步骤132的No),就不进行步骤133和步骤134的动作而结束处理。再有,步骤130和步骤131的顺序不同,也可以交换所述两步骤的顺序。On the other hand, when there is no command to move to the long-term storage memory (No in step 132), the operations of steps 133 and 134 are not performed, and the processing is terminated. Furthermore, the order of step 130 and step 131 is different, and the order of the two steps can also be exchanged.

根据如上所述的动作,即使用实施方式3的图像编码方法多次编码并传输向长时间保存存储器移动图像的指令,也能够实现能正确地译码的图像译码方法。According to the above-mentioned operation, even if the image encoding method according to the third embodiment is used to encode multiple times and transmit an instruction to move the image to the long-term storage memory, an image decoding method capable of accurate decoding can be realized.

再有,只要将向上述长时间保存存储器移动的指令作为存储器管理信息进行多次传输就好,无需必须在再次编码该指令进行传输时,必须使之附随着图像的编码信号进行传输。Furthermore, the command to move to the long-term storage memory may be transmitted multiple times as memory management information, and it is not necessary to transmit the command along with the coded signal of the image when re-encoding the command.

此外,在重发存储器管理信息的指令的情况下,其重发的指令也可以不是在与已编码的图像相同的流中,而是例如作为另外的流进行传输,也可以记录在存储媒体的另外的区域中。In addition, in the case of resending the memory management information command, the resent command may not be in the same stream as the coded image, but may be transmitted as a separate stream, for example, or may be recorded in the storage medium. in another area.

(实施方式5)(Embodiment 5)

下面,对本实施方式中的图像编码方法进行说明。图11是示出实施方式5中的图像编码方法的流程图,示出图5中示出的图像编码装置100的动作。在图11中,在与图6动作相同的部分上标注相同的标记。Next, the image encoding method in this embodiment will be described. FIG. 11 is a flowchart showing an image coding method in Embodiment 5, and shows operations of the image coding device 100 shown in FIG. 5 . In FIG. 11 , the same symbols are attached to the same parts as in FIG. 6 .

图11中示出的本实施方式的特征在于,在存储器内存在不需要的图像的情况下,反复对消除该图像的存储器管理信息的指令进行编码,至少一次附随着保存在存储器中的重要图像进行传输。在反复编码存储器管理信息的指令的情况下,即使在附随着重要度不高的图像传输了存储器管理信息的指令,在译码重要度不高的图像没有全部被译码时,就不能取得存储器管理信息的指令。The present embodiment shown in FIG. 11 is characterized in that, when an unnecessary image exists in the memory, an instruction to delete the memory management information of the image is repeatedly coded, and an important image stored in the memory is attached at least once. to transfer. In the case of repeatedly encoding the memory management information command, even if the memory management information command is transmitted along with the less important pictures, the memory cannot be acquired until all the less important pictures are decoded. Instructions for managing information.

例如,在图1(a)中,由于图像编号4的图像在将图像编号5的图像进行编码之后就成为不需要,因此,能够附随着图像编号5的图像,对释放图像编号4的图像的某个存储器区域的指令进行编码。For example, in FIG. 1(a), since the picture of picture number 4 becomes unnecessary after encoding the picture of picture number 5, it is possible to release the picture of picture number 4 along with the picture of picture number 5. Instructions for a certain memory region are encoded.

但是,在除了附随着图像编号5的图像,将释放该图像编号4的图像所在的存储器区域的指令进行编码之外,附随着图像编号7的图像进行编码时,附随着重要度最低(在不译码的情况下画质劣化少)的B图像,上述指令被编码。有时这些B图像不被译码,释放图像编号4的图像所在的存储器区域的指令不被译码,就不能正确地再现存储器内的管理信息。因此,必须要至少一次附随着重要度高的、必须译码的、保存在存储器中的图像,来对释放图像区域的指令进行编码。However, in addition to encoding an instruction to release the memory area where the picture with picture number 4 is attached to the picture with picture number 5, when the picture with picture number 7 is coded, the accompanying importance is the lowest (when not In the case of decoding a B picture with less image quality degradation), the above command is coded. Sometimes these B pictures are not decoded, and the command to release the memory area where the picture number 4 is located is not decoded, and the management information in the memory cannot be reproduced correctly. Therefore, the instruction to release the image area must be encoded at least once along with the image stored in the memory which is highly important and must be decoded.

图11中,首先,对输入图像进行编码(步骤100)。编码之后在存储器内检查不需要的区域(在以后的编码中不参照的图像)(步骤101),判定是否有不需要的存储器区域(步骤102)。若有不需要的存储器区域(步骤102的Yes),管理信息编码部105就将释放不需要的存储器区域的指令进行编码,作为存储器管理信息(步骤103)。然后,释放该不需要的存储器区域(步骤104)。在没有不需要的存储器区域的情况下(步骤102的No),不进行步骤103和步骤104的动作。In FIG. 11, first, an input image is encoded (step 100). After encoding, unnecessary areas (pictures not to be referred to in subsequent encoding) are checked in the memory (step 101), and it is determined whether there is an unnecessary memory area (step 102). If there is an unnecessary memory area (Yes in step 102), the management information encoding unit 105 encodes a command to release the unnecessary memory area as memory management information (step 103). Then, the unnecessary memory area is released (step 104). When there is no unnecessary memory area (No in step 102), the operations of steps 103 and 104 are not performed.

接着,存储器信息控制部101判定是否附随着重要图像(保存在译码的存储器中),过去已被编码的、释放不需要的存储器区域的指令被编码(步骤140),若附随着重要图像进行了编码(步骤140的Yes),就结束处理,若没附随着重要图像进行了编码(步骤140的No),管理信息编码部105就再次将释放该不需要的存储器区域的指令作为存储器管理信息进行编码(步骤141),之后结束处理。Next, the memory information control unit 101 determines whether an important image is attached (stored in the decoded memory), and an instruction to release an unnecessary memory area that has been encoded in the past is encoded (step 140). After coding (Yes in step 140), the process ends. If no important image is coded (No in step 140), the management information coding unit 105 will release the instruction of the unnecessary memory area as the memory management information again. Encoding is performed (step 141), after which the processing ends.

这样,释放不需要的存储器区域的指令附随着重要图像被编码。In this way, instructions to free unneeded memory areas are coded along with important images.

如上所述,由于上述指令附随译码后保存在存储器中的重要图像,因此,就译码上述指令被译码,在产生了传输线路错误时能正确地复原图像的可能性提高。As described above, since the above-mentioned command is accompanied by the important image decoded and stored in the memory, the possibility of correctly restoring the image when a transmission line error occurs increases by decoding the above-mentioned command.

再有,只要能将释放上述不需要的存储器区域的指令作为存储器管理信息多次传输就可以,在再次编码该指令并进行传输时,无需必须使之附随图像的编码信号进行传输。In addition, as long as the command to release the unnecessary memory area can be transmitted multiple times as the memory management information, when re-encoding and transmitting the command, it is not necessary to transmit it along with the coded signal of the image.

此外,在重发存储器管理信息的指令的情况下,其重发的指令也可以不是在与已被编码的图像相同的流中,而是例如作为另外的流进行传输,也可以记录在存储媒体的另外的区域中。In addition, in the case of retransmitting the memory management information command, the retransmitted command may not be in the same stream as the coded image, but may be transmitted as a separate stream, for example, or may be recorded in a storage medium. in another area.

(实施方式6)(Embodiment 6)

下面,对本实施方式的图像编码方法进行说明。图12是示出实施方式6中的图像编码方法的流程图。图12示出图5中示出的图像编码装置100的动作。在图12中,与图9动作相同的部分标注相同的标记。Next, the image encoding method of this embodiment will be described. FIG. 12 is a flowchart showing an image coding method in Embodiment 6. FIG. FIG. 12 shows the operation of the image coding device 100 shown in FIG. 5 . In FIG. 12 , the parts that operate in the same way as in FIG. 9 are denoted by the same symbols.

图12中示出的本实施方式的特征在于,反复对向长时间保存存储器移动图像的存储器管理信息的指令进行编码,至少一次附随着重要图像(译码后保存在存储器中)进行传输。在反复对向长时间保存存储器移动图像的存储器管理信息的指令进行编码的情况下,即使附随着重要度不高的图像传输了存储器管理信息的指令,在重要度不高的图像没有全部被译码的情况下,就不能取得存储器管理信息的指令。The present embodiment shown in FIG. 12 is characterized in that memory management information instructions for moving images to the long-term storage memory are repeatedly encoded, and at least once are transmitted along with important images (decoded and stored in the memory). In the case of repeatedly encoding the memory management information command to move images to the long-term storage memory, even if the memory management information command is transmitted along with less important pictures, not all of the less important pictures are translated. In the case of code, the command to acquire memory management information cannot be performed.

图12中,首先,对输入图像进行编码(步骤120)。编码之后检查是否有应该向长时间保存存储器移动的图像(步骤121),判定是否有应该移动的图像(步骤122)。In FIG. 12, first, the input image is encoded (step 120). After encoding, it is checked whether there is an image that should be moved to the long-term storage memory (step 121), and it is determined whether there is an image that should be moved (step 122).

若有应该移动的图像(步骤122的Yes),管理信息编码部105就把表示如何向长时间保存存储器移动的指令作为存储器管理信息已被编码(步骤123),并将照该指令将图像移动到长时间保存存储器中(步骤124)。If there is an image that should be moved (Yes in step 122), the management information encoding unit 105 has encoded the instruction how to move to the long-term storage memory as memory management information (step 123), and will move the image according to the instruction. to long-term storage memory (step 124).

接着,存储器信息控制部101判定过去已编码的向长时间保存存储器移动的指令,是否附随着重要图像(保存在译码的存储器中)进行编码(步骤150),若附随着重要图像(步骤150的Yes),就结束处理,若没附随着重要图像(步骤150的No),管理信息编码部105就再次将该向长时间保存存储器移动的指令作为存储器管理信息进行编码(步骤151),之后结束处理。Next, the memory information control unit 101 judges whether the instruction to move to the long-term storage memory that has been coded in the past is encoded with an important image (stored in the decoded memory) (step 150). Yes), the process ends, and if there is no important image attached (No in step 150), the management information encoding unit 105 encodes the instruction to move to the long-term storage memory as memory management information again (step 151), and then Finish processing.

这样,向长时间保存存储器移动图像的指令附随着重要图像被编码。In this way, the command to move the image to the long-term storage memory is coded along with the important image.

如上所述,由于上述指令附随着译码后保存在存储器中的重要图像,因此,就上述指令被译码,在产生了传输线路错误时能正确地复原图像的可能性提高。As described above, since the important image decoded and stored in the memory is attached to the above-mentioned command, the possibility of correctly restoring the image when a transmission line error occurs increases when the above-mentioned command is decoded.

再有,只要多次传输向上述长时间保存存储器移动的指令作为存储器管理信息进行传输就可以,在再次编码该指令进行传输时,无需必须使之附随着图像的编码信号进行传输。In addition, the command to move to the long-term storage memory may be transmitted as memory management information multiple times, and when the command is re-encoded and transmitted, it is not necessary to transmit it along with the coded signal of the image.

此外,在重发存储器管理信息的指令的情况下,其重发的指令也可以不是在与已编码的图像相同的流中,而是例如作为另外的流进行传输,也可以记录在存储媒体的另外的区域中。In addition, in the case of resending the memory management information command, the resent command may not be in the same stream as the coded image, but may be transmitted as a separate stream, for example, or may be recorded in the storage medium. in another area.

(实施方式7)(Embodiment 7)

对实施方式7中的图像编码方法进行说明。The image encoding method in Embodiment 7 will be described.

本实施方式的特征在于,是参照根据图像的重要度选择的参照图像来进行编码的图像编码方法。The present embodiment is characterized in that it is an image encoding method for encoding with reference to a reference image selected according to the importance of the image.

图13是示出本发明的实施方式7中的图像编码方法的流程图。图13示出图5中示出的图像编码装置100进行的动作。FIG. 13 is a flowchart showing an image coding method in Embodiment 7 of the present invention. FIG. 13 shows operations performed by the image coding device 100 shown in FIG. 5 .

图13中,首先,设定编码对象的各图像的重要度(步骤160)。例如,I图像和P图像的重要度高,B图像的重要度低。此外,即使是相同的P图像,被许多图像参照的P图像的重要度高,不太被参照的P图像的重要度低。In FIG. 13, first, the importance of each image to be encoded is set (step 160). For example, the importance of I pictures and P pictures is high, and the importance of B pictures is low. Also, even with the same P picture, a P picture that is referred to by many pictures has a high degree of importance, and a P picture that is not very referenced has a low degree of importance.

接着,从存储器内的参照图像选择重要度与编码对象图像同等以上的图像,设为参照图像的候补(步骤161)。例如,B图像能参照I图像和P图像,但P图像中重要度低的P图像不在参照图像的候补之内。Next, a picture whose importance is equal to or higher than that of the encoding target picture is selected from the reference pictures in the memory, and is used as a candidate for a reference picture (step 161). For example, a B-picture can refer to an I-picture and a P-picture, but a P-picture of low importance among the P-pictures is not a candidate for a reference picture.

接着,对示出选择的参照图像的候补的指示信息(存储器管理信息的一种)进行编码(步骤162),从选择的参照图像的候补中按块单位参照适当的参照图像进行编码(步骤163)。再有,步骤162和步骤163的顺序不同,也可以互换所述两步骤的顺序。Next, the instruction information (a kind of memory management information) indicating the candidates of the selected reference picture is coded (step 162), and an appropriate reference picture is referred to in units of blocks from the candidates of the selected reference picture and coded (step 163 ). Furthermore, the order of step 162 and step 163 is different, and the order of the two steps can also be exchanged.

象这样地,使在参照图像的候补中不加入重要度比编码对象图像的重要度低的图像。In this way, a picture whose importance is lower than that of the encoding target picture is not added to the candidates of the reference picture.

如上所述地,由于在参照图像的候补中不加入重要度比编码对象图像的重要度低的图像,因此,在生成了能实现可变性(scalability)的流的情况下,能将不能参照的图像从参照图像的候补中除去,编码效率提高。As described above, since a picture whose importance degree is lower than that of the encoding target picture is not included in the candidates of the reference picture, when a stream capable of achieving scalability is generated, the unreferable stream can be eliminated. The picture is excluded from the candidates of the reference picture, and the encoding efficiency is improved.

在此,对根据如上所述地设定的图像的重要度进行的图像编码方法,用图14进行具体地说明。Here, an image coding method based on the image importance set as described above will be specifically described with reference to FIG. 14 .

图14(a)是表示赋予各帧的编号(图像(帧)编号)、各帧保存在存储器中时的编号(保存图像(帧)编号)、表示各帧被传输的序号的编号(传输顺序)的关系的说明图。Fig. 14(a) shows the number assigned to each frame (image (frame) number), the number when each frame is stored in the memory (saved image (frame) number), and the number indicating the serial number of each frame transmitted (transmission order ) relationship diagram.

在图14(a)中,图像编号0的I图像因为不参照其他的图像而保存在存储器中,因此保存图像编号为0。接着,由于参照图像编号0的I图像的图像编号2的P图像保存在存储器中,因此与图像编号2的P图像有关的保存图像编号为1。然后,由于参照图像编号0的I图像和图像编号2的P图像的图像编号1的B图像保存在存储器内,因此图像编号1的B图像的保存图像编号为2。传输各图像的序号为保存在存储器中的序号。按同样的顺序决定图像编号与保存图像编号及传输顺序的关系。In FIG. 14( a ), the I picture with the picture number 0 is stored in the memory without referring to other pictures, so the stored picture number is 0. Next, since the P picture of picture number 2 referring to the I picture of picture number 0 is stored in the memory, the stored picture number related to the P picture of picture number 2 is 1. Then, since the B picture of picture number 1 that refers to the I picture of picture number 0 and the P picture of picture number 2 is stored in the memory, the stored picture number of the B picture of picture number 1 is 2. The serial number of each image transmitted is the serial number stored in the memory. Determine the relationship between image numbers, stored image numbers, and transfer order in the same order.

下面,对进行译码(decode)的图像编号、保存在存储器中的图像编号、和被删除的图像编号的关系的一例,用图14(b)进行说明。Next, an example of the relationship between the decoded picture number, the picture number stored in the memory, and the deleted picture number will be described with reference to FIG. 14(b).

图14(b)是示出进行译码的图像编号(帧编号)、保存着的图像编号(帧编号)、和被删除的图像编号(帧编号)的关系的关系图。再有,在此,设能保存在存储器中的图像的最大幅数为5。在存储器中按传输顺序保存图像。FIG. 14( b ) is a relationship diagram showing the relationship between decoded picture numbers (frame numbers), stored picture numbers (frame numbers), and deleted picture numbers (frame numbers). Here, it is assumed that the maximum number of images that can be stored in the memory is five. Images are stored in memory in the order they were transferred.

此外,例如,在图像编号为4的P图像被译码时,由于图像编号为4的P图像的保存图像编号是3,因此,就在存储器上保存保存图像编号为0、1、2的图像。在进行译码的图像编号为3的B图像被译码时,如图14(b)所示,保存着图像编号为4、1、2、0的图像。在此,如图14(a)所示,由于在译码了图像编号3的图像之后,图像编号1的B图像不再被任何图像参照,因此,图像编号为3的图像在被译码的时候,删除图像编号1的B图像。In addition, for example, when the P picture whose picture number is 4 is decoded, since the saved picture number of the P picture whose picture number is 4 is 3, the pictures whose saved picture numbers are 0, 1, and 2 are stored in the memory. . When the B picture whose picture number is 3 to be decoded is decoded, as shown in FIG. 14(b), pictures with picture numbers 4, 1, 2, and 0 are stored. Here, as shown in FIG. 14(a), since the B picture with picture number 1 is no longer referred to by any picture after the picture with picture number 3 is decoded, the picture with picture number 3 is decoded. At this time, the B picture of picture number 1 is deleted.

同样地,在进行译码的图像编号为5的B图像被译码时,如图14(b)所示,保存着图像编号为6、3、4、2、0的图像。在此,由于在译码了图像编号5的图像之后,图像编号3的B图像不再被任何图像参照,因此,在图像编号为5的B图像被译码了的时刻,删除图像编号3的B图像。Similarly, when a B picture whose picture number is 5 to be decoded is decoded, pictures with picture numbers 6, 3, 4, 2, and 0 are stored as shown in FIG. 14(b). Here, since the B picture of picture number 3 is no longer referred to by any picture after the picture of picture number 5 is decoded, the B picture of picture number 3 is deleted when the B picture of picture number 5 is decoded. B image.

另外,在进行译码的图像编号为8的P图像被译码时,如图14(b)所示,保存着图像编号为5、6、4、2、0的图像。在此,由于在存储器中最大仅能保存5帧,因此,为了在后面参照图像编号8的P图像,就必须确保删除图像编号为5、6、4、2、0的某一个图像并存储图像编号8的P图像的存储器。因而,作为在图14(b)中删除帧的选择基准,在将图像编号8的P图像进行译码的时刻,删除在P图像的译码、即在偶数号图像编号的译码中时间上最老的图像,即该情况下是图像编号为0的I图像。Also, when the P picture whose picture number is 8 to be decoded is decoded, as shown in FIG. 14(b), pictures with picture numbers 5, 6, 4, 2, and 0 are stored. Here, since only a maximum of 5 frames can be stored in the memory, in order to refer to the P picture with picture number 8 later, it is necessary to ensure that one of the pictures with picture numbers 5, 6, 4, 2, and 0 is deleted and stored. Memory for P-picture number 8. Therefore, as a selection criterion for deleting a frame in FIG. 14( b ), at the time when the P picture of picture number 8 is decoded, the time frame during decoding of the P picture, that is, decoding of even-numbered picture numbers, is deleted. The oldest picture, in this case the I picture with picture number 0.

同样地,在进行译码的图像编号为7的B图像被译码时,如图14(b)所示,保存着图像编号为8、5、6、4、2的图像。在此,由于在译码了图像编号7的B图像之后,图像编号5的B图像不再被任何图像所参照,因此,在译码了图像编号为7的B图像的时刻,删除图像编号5的B图像。Similarly, when the B picture whose picture number is 7 to be decoded is decoded, pictures with picture numbers 8, 5, 6, 4, and 2 are stored as shown in FIG. 14(b). Here, after the B picture with picture number 7 is decoded, the B picture with picture number 5 is no longer referred to by any picture, therefore, when the B picture with picture number 7 is decoded, the picture with picture number 5 is deleted. B image.

另外,在进行译码的图像编号为10的P图像被译码时,如图14(b)所示,保存着图像编号为7、8、6、4、2的图像。在此,由于在存储器中最大仅能保存5帧,因此,为了在后面参照图像编号10的P图像,就必须确保删除图像编号为7、8、6、4、2的某一个图像并存储图像编号10的图像的存储器。因而,作为在图14(b)中删除帧的选择基准,在译码了图像编号10的P图像的时刻,删除在P图像的译码、即在偶数号图像编号的图像的译码中时间上最旧的图像编号为2的图像。Also, when the P picture whose picture number is 10 to be decoded is decoded, as shown in FIG. 14(b), pictures with picture numbers 7, 8, 6, 4, and 2 are stored. Here, since only a maximum of 5 frames can be stored in the memory, in order to refer to the P picture with picture number 10 later, it is necessary to ensure that one of the pictures with picture numbers 7, 8, 6, 4, and 2 is deleted and stored. Memory for image number 10. Therefore, as a selection criterion for deleting a frame in FIG. 14(b), at the time when the P picture with picture number 10 is decoded, the time frame during the decoding of the P picture, that is, the decoding of the picture with an even-numbered picture number, is deleted. The oldest image number on the image is 2.

象这样地,在删除图像时,用于删除图像的存储器管理信息的指令被编码后,附随着将被译码的图像的编码信号,进行传输。In this way, when erasing an image, the memory management information command for erasing the image is coded and transmitted along with the encoded signal of the image to be decoded.

在上述图14(b)示出的例子中,对在存储器内存在不需要的图像(图像),发送一次消除该图像的存储器管理信息指令的例子进行了叙述。如上,若将消除的存储器管理信息指令仅发送一次,则有不能执行附随着B图像发送的存储器管理信息的指令的可能性。这是因为,由于B图像作为在P图像的编码和译码中参照的图像来使用的可能性低,因此,在不能确保充足的存储容量和传输容量的情况下,优先废弃B图像的数据的可能性高,其结果,就有不能执行附随着B图像发送的存储器管理信息的指令的可能性。In the above-mentioned example shown in FIG. 14(b), an example in which there is an unnecessary image (image) in the memory and a memory management information command to delete the image is sent once has been described. As described above, if the memory management information command to be deleted is sent only once, there is a possibility that the memory management information command sent along with the B picture cannot be executed. This is because B pictures are less likely to be used as pictures to be referred to in encoding and decoding of P pictures, and therefore, when sufficient storage capacity and transmission capacity cannot be ensured, the data of B pictures is preferentially discarded. There is a high possibility that, as a result, the command accompanying the memory management information transmitted with the B picture may not be executed.

为了解决该问题,说明将消除图像的存储器管理信息的指令反复进行编码并传输的例。以下,对图14(c)具体地进行说明。In order to solve this problem, an example in which a command to delete image memory management information is repeatedly encoded and transmitted will be described. Hereinafter, Fig. 14(c) will be specifically described.

图14(c)是示出进行译码的图像编号(帧编号)、保存着的图像编号(帧编号)、和被删除的图像编号(帧编号)的其他关系的关系图。在图14(c)中,示出将被删除的图像编号的图像进行删除的指令附随着进行译码的图像编号图像的编码信号的情况。FIG. 14( c ) is a relationship diagram showing another relationship among decoded picture numbers (frame numbers), stored picture numbers (frame numbers), and deleted picture numbers (frame numbers). FIG. 14(c) shows a case where a command to delete a picture of a picture number to be deleted is accompanied by a coded signal of a picture of a picture number to be decoded.

如图14(c)所示,在图像编号为3的B图像被译码时,保存着图像编号为4、1、2、0的图像。在此,图像编号1的B图像如图14(a)所示,在译码了图像编号3的图像之后,不再被任何图像所参照。因此,在译码了图像编号为3的图像的时刻,删除图像编号1的B图像,用于删除的存储器管理信息的指令附随着图像编号3的图像。As shown in FIG. 14(c), when the B picture with the picture number 3 is decoded, the pictures with the picture numbers 4, 1, 2, and 0 are stored. Here, as shown in FIG. 14( a ), the B picture of picture number 1 is no longer referred to by any picture after the picture of picture number 3 is decoded. Therefore, when the picture with picture number 3 is decoded, the B picture with picture number 1 is deleted, and the memory management information command for deletion is attached to the picture with picture number 3 .

但是,由于图像编号3的图像是B图像,因此,与I图像和P图像相比,在图像再现的这一点上,其重要度如上所述那样低,由于发送时数据易被废弃,因此有不能执行指令的可能性(如图25所示的保存帧的情况),该指令为附随着图像编号3的B图像发送的存储器管理信息的指令。However, since the picture of picture number 3 is a B picture, it is less important in terms of picture reproduction than the I picture and the P picture as described above, and since the data is easily discarded at the time of transmission, there is a Possibility of not being able to execute a command (in the case of saving a frame as shown in FIG. 25 ), which is a command of the memory management information sent along with the B picture of picture number 3.

因此,使表示删除附随着图像编号3的图像编号1的图像的存储器管理信息的指令,附随着接着进行译码的、在图像的再现这点上比图像编号3的B图像其重要度高的图像编号6的P图像(参照图14(c))。Therefore, the instruction indicating the deletion of the memory management information of the picture of picture number 1 attached to the picture number 3 is attached to the next decoded image whose importance is higher than that of the B picture of picture number 3 in terms of reproduction of the picture. P picture of picture number 6 (see FIG. 14(c)).

同样地,使附随着图像编号5的B图像的存储器管理信息的指令(示出删除图像编号3的图像)附随着图像编号8的P图像;使附随着图像编号7的B图像的存储器管理信息的指令(示出删除图像编号5的图像)附随着图像编号10的P图像。再有,由于图像编号8的图像是P图像,因此,如图14(c)所示,不使附随着图像编号8的图像的存储器管理信息的指令附随着图像编号7的B图像,但也可以附随。Similarly, an instruction (indicating deletion of a picture of picture number 3) to be attached to the memory management information of the B picture of picture number 5 is attached to the P picture of picture number 8; The instruction of (showing deletion of the picture of picture number 5) is accompanied by the P picture of picture number 10. Furthermore, since the picture with picture number 8 is a P picture, as shown in FIG. can be attached.

以上,如图14(c)所示,使与最初附随着B图像的存储器管理信息的指令相同的存储器管理信息的指令,反复附随着比最初使存储器管理信息的指令附随的B图像晚保存或传输的图像,且该被反复附随的图像是在图像再现中重要度比B图像高的图像。这样,即使遗漏了最初附随着存储器管理信息的指令的B图像,也能正常地执行存储器管理信息的指令。As described above, as shown in FIG. 14(c), the command of the same memory management information as the command of the memory management information attached to the first B picture is repeatedly attached to the B picture stored later than the command to first attach the memory management information or The transmitted picture, and the repeated accompanying picture is a picture whose importance is higher than that of the B picture in picture reproduction. In this way, even if the B picture accompanying the command of the memory management information at first is omitted, the command of the memory management information can be executed normally.

再有,如用图14(c)说明的,即使在使存储器管理信息的指令附随着B图像,进一步反复使存储器管理信息的指令附随着P图像的情况下,也使用已设定的重要度。再有,重要度的设定不限于本实施方式示出的方式。Furthermore, as described with reference to FIG. 14(c), even when the memory management information command is attached to the B picture and the memory management information command is repeatedly attached to the P picture, the set importance is used. . In addition, the setting of the degree of importance is not limited to the form shown in this embodiment.

再有,在本实施方式中,并非根据各图像的重要度来决定是否发送各图像,而且不能将各图像的重要度象上述实施方式中示出的存储器管理信息那样附随着各图像来进行编码。因此,本实施方式中已编码的数据的译码处理与现有的方法相同。In addition, in this embodiment, it is not determined whether to transmit each image based on the importance of each image, and the importance of each image cannot be encoded with each image as in the memory management information shown in the above-mentioned embodiment. . Therefore, the decoding process of encoded data in this embodiment is the same as the conventional method.

(实施方式8)(Embodiment 8)

下面,对实施方式8进行说明。Next, Embodiment 8 will be described.

本实施方式的特征在于,删除存储器内的全部图像(图像),将进行存储器区域的初始化的(存储器管理信息的)指令多次进行编码并传输。The present embodiment is characterized in that all images (images) in the memory are deleted, and a command (memory management information) for initializing the memory area is encoded and transmitted multiple times.

在上述各实施方式中示出的存储器管理信息,被作为如图15中示出的代码信息而被赋予。The memory management information shown in each of the above-described embodiments is given as code information as shown in FIG. 15 .

图15是示出存储器管理信息的指令的对应图,示出代码编号(Code)、指令的内容(指令)、其附加信息(附加信息)。FIG. 15 is a map showing commands of memory management information, showing a code number (Code), content of the command (command), and its additional information (additional information).

例如,释放短时间保存存储器中不需要的存储器区域的指令(释放短时间保存存储器)作为代码信息Code1而被赋予,进行释放的图像编号(帧编号)作为附加信息而被附加。For example, a command to release an unnecessary memory area in the short-term storage memory (release the short-term storage memory) is provided as code information Code1, and an image number (frame number) to be released is added as additional information.

此外,代码信息作为图17中示出的各帧的标题信息而被赋予。In addition, code information is provided as header information of each frame shown in FIG. 17 .

图17是示出各图像的编码信号中的标题信息与帧数据的关系的模式图。在图17中,各编码信号示出了后述的帧Frm12、Frm11、Frm14的编码信号。各编码信号包括具有标题信息的帧标题和与图像的编码有关的帧数据。例如,帧Frm12的编码信号包括帧标题Frm12Hdr和由各数据MB12a、MB12b、MB12c、MB12d构成的帧数据。FIG. 17 is a schematic diagram showing the relationship between header information and frame data in the encoded signal of each image. In FIG. 17 , the coded signals represent coded signals of frames Frm12 , Frm11 , and Frm14 described later. Each encoded signal includes a frame header including header information and frame data related to encoding of an image. For example, the encoded signal of the frame Frm12 includes a frame header Frm12Hdr and frame data composed of data MB12a, MB12b, MB12c, and MB12d.

图18的模式图中示出该编码信号的详细情况。The details of this coded signal are shown in the schematic diagram of FIG. 18 .

图18是示出编码信号的标题信息中的存储器管理信息的指令的模式图。Fig. 18 is a schematic diagram showing commands of memory management information in header information of an encoded signal.

如图18所示,帧FrmA的编码信号包括具有标题信息的帧标题FrmAHdr和由各数据MBa、MBb、MBc、MBd等构成的帧数据。然后,在帧标题FrmAHdr上附加指令的代码信息CodeA,之后附加代码信息CodeA的附加信息AddA,接着,附加应在代码信息CodeA的指令之后执行的指令的代码信息CodeB和代码信息CodeB的附加信息AddB。若没有附加信息,就如代码信息CodeC仅附加代码信息。As shown in FIG. 18, the coded signal of the frame FrmA includes a frame header FrmAHdr having header information and frame data composed of respective data MBa, MBb, MBc, MBd, and the like. Then, the code information CodeA of the command is added to the frame header FrmAHdr, and then the additional information AddA of the code information CodeA is added, and then the code information CodeB of the command to be executed after the command of the code information CodeA and the additional information AddB of the code information CodeB are added. . If there is no additional information, just like the code information CodeC, only the code information is added.

下面,在图16中示出指令执行的顺序。Next, the sequence of instruction execution is shown in FIG. 16 .

图16是示出指令执行顺序的流程图。Fig. 16 is a flowchart showing the instruction execution sequence.

在图16中,首先,取得指令(步骤C0),判定指令的取得是否已结束(步骤C1)。若指令的取得还没有结束而取得指令(步骤C1的No),则执行所取得的指令(步骤C2),返回到步骤C0,反复进行该动作。另一方面,若指令的取得结束而未取得指令(步骤C1的Yes),则结束指令执行处理。对每一个帧进行一次该过程。再有,即使在按由多个宏块构成的片单位发送指令信息的情况下,也按上述顺序执行指令。In FIG. 16, first, a command is acquired (step C0), and it is determined whether or not the acquisition of the command has been completed (step C1). If the acquisition of the command is not completed and the command is acquired (No in step C1), the acquired command is executed (step C2), and the process returns to step C0, and this operation is repeated. On the other hand, when the acquisition of the command is completed and the command is not acquired (Yes in step C1), the command execution process is terminated. This process is done once for each frame. Note that even when command information is transmitted in units of slices composed of a plurality of macroblocks, commands are executed in the order described above.

下面,对在上述实施方式1中消除不需要的图像(释放存储器)的存储器管理信息的指令进行说明。另外,在实施方式1中,通过反复对消除不需要的图像的存储器管理信息的指令进行编码,即使因传输线路错误而其中部分存储器管理信息的指令消失,也能根据另一些存储器管理信息的指令复原保存在存储器内的图像的管理信息,能正确地复原图像的可能性提高。Next, a command of the memory management information for deleting unnecessary images (freeing the memory) in the above-mentioned first embodiment will be described. In addition, in Embodiment 1, by repeatedly encoding the memory management information commands for eliminating unnecessary images, even if some of the memory management information commands disappear due to a transmission line error, it is still possible to use other memory management information commands. Restoring the image management information stored in the memory increases the probability that the image can be correctly restored.

在此,关于图15中示出的代码信息中的、消除存储器内的全部信息的初始化指令Code5进行讨论。Here, among the code information shown in FIG. 15 , the initialization command Code5 which erases all information in the memory will be discussed.

在仅发送一次初始化指令Code5时,若因传输线路错误而该初始化指令Code5消失,就对本来已初始化之后进行的存储器管理等的处理产生影响。在此,用图19,对与实施方式1同样反复编码初始化指令Code5后传输的情况进行说明。When the initialization command Code 5 is sent only once, if the initialization command Code 5 disappears due to a transmission line error, it will affect the memory management and other processing performed after the initial initialization. Here, referring to FIG. 19 , a case where the initialization command Code 5 is repeatedly encoded and transmitted as in the first embodiment will be described.

图19是关系说明图,示出赋予各帧的编号(图像(帧)编号)、在存储器内保存各帧时的编号(保存图像(帧)编号)、示出传输各帧的序号的编号(传输顺序)的关系。FIG. 19 is an explanatory diagram showing the number assigned to each frame (image (frame) number), the number when storing each frame in the memory (saved image (frame) number), and the number showing the serial number of each frame transferred ( order of transmission).

以下,对图19具体地进行说明。首先,图像编号0的I图像由于不参照其他图像,因此保存在存储器中,其保存图像编号为0。接着,由于在存储器中保存参照图像编号0的I图像的图像编号2的P图像,因此与图像编号2的P图像有关的保存图像编号成为1。然后,由于在存储器中保存参照图像编号0的I图像和图像编号2的P图像的图像编号1的B图像,因此图像编号1的B图像的保存图像编号成为2。传输各图像的序号设为保存在存储器中的序号。按同样的顺序决定图像编号和保存图像编号及传输顺序的关系。Hereinafter, FIG. 19 will be specifically described. First, the I picture with picture number 0 is stored in the memory because it does not refer to other pictures, and its stored picture number is 0. Next, since the P picture of picture number 2 referring to the I picture of picture number 0 is stored in the memory, the stored picture number related to the P picture of picture number 2 becomes 1. Then, since the B picture of picture number 1 that refers to the I picture of picture number 0 and the P picture of picture number 2 is stored in the memory, the stored picture number of the B picture of picture number 1 becomes 2. The serial number of each image transferred is set to the serial number stored in the memory. In the same order, determine the relationship between image numbers, stored image numbers, and transfer order.

设定在对图19中示出的图像编号12的I图像进行编码时发送图15中示出的初始化指令Code5。由于图像编号12的I图像的保存图像编号是11,因此,能利用该初始化指令Code5,从存储器内全部消除保存图像编号为10以下的图像。It is set that the initialization command Code 5 shown in FIG. 15 is transmitted when encoding the I picture of picture number 12 shown in FIG. 19 . Since the stored picture number of the I picture of picture number 12 is 11, all pictures whose stored picture numbers are 10 or less can be deleted from the memory by using the initialization command Code5.

在此,用图20对编码初始化指令Code5的方法进行说明。Here, a method of encoding the initialization command Code5 will be described using FIG. 20 .

图20是示出编码初始化指令Code5的方法的流程图,示出图5中示出的图像编码装置100进行的动作。FIG. 20 is a flowchart illustrating a method of encoding an initialization command Code5, and illustrates operations performed by the image encoding device 100 illustrated in FIG. 5 .

首先,对输入图像进行编码(步骤A0)。编码之后检查存储器内可参照的全部图像是否不需要(是否在以后的编码中不被任何图像所参照)(初始化检查)(步骤A1),并判定在存储器中存储着的图像是否在以后未被参照而进行初始化好一些(步骤A2)。First, an input image is encoded (step A0). After encoding, check whether all images that can be referred to in the memory are unnecessary (whether they are not referenced by any image in subsequent encoding) (initialization check) (step A1), and determine whether the images stored in the memory are not used later. It is better to initialize with reference (step A2).

若进行初始化好(步骤A2的Yes),则将初始化存储器区域的初始化指令Code5作为存储器管理信息,进行编码(步骤A3),并进行初始化(步骤A4),结束处理。另一方面,在没有进行初始化的必要的情况下(步骤A2的No),就不进行步骤A3和步骤A4的动作而结束处理。If the initialization is completed (Yes in step A2), the initialization command Code5 for initializing the memory area is used as memory management information, encoded (step A3), and initialized (step A4), and the process ends. On the other hand, when initialization is not necessary (No in step A2), the operation of step A3 and step A4 is not performed, and the process ends.

下面,用图21,对将已编码的初始化指令Code5进行译码的方法进行说明。Next, a method of decoding the coded initialization command Code5 will be described with reference to FIG. 21 .

图21是示出对已编码的初始化指令Code5进行译码的方法的流程图,示出图7中示出的图像编码装置200进行的动作。FIG. 21 is a flowchart showing a method of decoding the coded initialization command Code5, and shows operations performed by the image coding device 200 shown in FIG. 7 .

首先,将存储器管理信息进行译码(步骤A10),根据编码信号对图像信号进行译码(步骤A11)。接着,判定在译码后的存储器管理信息中是否有初始化指令Code5(步骤A12),若有初始化指令Code5(步骤A12的Yes),则将存储器内存储着的图像全部消除,并进行初始化(步骤A13),结束处理。但是,这时不消除已译码的图像(步骤A11中)。First, the memory management information is decoded (step A10), and the image signal is decoded from the coded signal (step A11). Then, determine whether there is initialization instruction Code5 (step A12) in the memory management information after the decoding, if there is initialization instruction Code5 (Yes of step A12), then all the images stored in the memory are eliminated, and initialize (step A12) A13), end processing. However, the decoded image is not deleted at this time (in step A11).

另一方面,若在存储器管理信息中没有初始化指令Code5(步骤A12的No),就结束处理。On the other hand, if there is no initialization command Code 5 in the memory management information (No in step A12), the process ends.

以下,用图19具体说明进行存储器的初始化的方法。设对图19中示出的图像编号11的B图像赋予与对图像编号12的I图像赋予的初始化指令Code5相同的初始化指令Code5。Hereinafter, a method of initializing the memory will be specifically described with reference to FIG. 19 . It is assumed that the same initialization command Code 5 as the initialization command Code 5 given to the I picture of picture number 12 is given to the B picture of picture number 11 shown in FIG. 19 .

若如在图17所示,则为在帧Frm12(图像编号12)的帧标题Frm12Hdr和帧Frm11(图像编号11)的帧标题Frm11Hdr上赋予初始化指令Code5。由于初始化指令Code5如图15所示,不具有附加信息,因此,就在被译码了的时刻全部消除存储器内保存着的图像。As shown in FIG. 17, the initialization command Code5 is given to the frame header Frm12Hdr of the frame Frm12 (picture number 12) and the frame header Frm11Hdr of the frame Frm11 (picture number 11). Since the initialization command Code5 does not have additional information as shown in FIG. 15, all images stored in the memory are erased at the time of decoding.

因此,若赋予了图像编号12(保存图像编号11)的I图像的初始化指令Code5因传输线路错误而消失,并执行赋予了图像编号11(保存图像编号12)的B图像的初始化指令Code5,则在保存图像编号11之前译码了的图像中,存储器中保存着的图像全部被消除。即,本来不应消除的图像编号12(保存图像编号11)的I图像也被消除。Therefore, if the initialization command Code 5 of the I picture assigned the picture number 12 (saved picture number 11) disappears due to a transmission line error, and the initialization command Code 5 of the B picture assigned the picture number 11 (saved picture number 12) is executed, then Among the pictures decoded before the picture number 11 is stored, all the pictures stored in the memory are deleted. That is, the I picture of picture number 12 (stored picture number 11) that should not be deleted is also deleted.

如上,在对图像编号11的B图像赋予了与对图像编号12的I图像赋予了的初始化指令Code5相同的初始化指令Code5时,就遗漏一幅图像(图像编号12的I图像)。另一方面,若对图像编号14(保存图像编号13)的P图像赋予与对图像编号12(保存图像编号11)的I图像赋予的初始化指令Code5相同的初始化指令Code5,并对图像编号12的I图像赋予的初始化指令Code5因传输线路错误而消失,且赋予图像编号14的P图像的初始化指令Code5被执行,则导致遗漏两幅图像(图像编号11的B图像和图像编号12的I图像)。As described above, when the B picture of picture number 11 is given the same initialization command Code 5 as the initialization command Code 5 given to the I picture of picture number 12, one picture (I picture of picture number 12) is omitted. On the other hand, if the P picture with picture number 14 (stored picture number 13) is given the same initialization command Code 5 as the initialization command Code 5 given to the I picture with picture number 12 (stored picture number 11), and the P picture with picture number 12 The initialization command Code5 assigned to the I picture disappears due to a transmission line error, and the initialization command Code5 assigned to the P picture with picture number 14 is executed, resulting in the omission of two pictures (B picture with picture number 11 and I picture with picture number 12) .

再有,在反复编码初始化指令Code5,并且最初发送的初始化指令Code5和接着发送的初始化指令Code5都在没有传输线路错误地执行的情况下,也产生与上述相同的问题。这是因为,根据最初发送的初始化指令Code5进行初始化,又根据接着发送的初始化指令Code5再次进行初始化。Also, when the initializing command Code5 is coded repeatedly, and the initializing command Code5 transmitted first and the initializing command Code5 transmitted next are all executed without transmission line error, the same problem as above occurs. This is because initialization is performed by the initialization command Code5 sent first, and initialization is performed again by the initialization command Code5 sent next.

对用于解决这样的存储器的初始化中存在的问题的方法进行说明。A method for solving such a problem in initializing the memory will be described.

图22中示出为了解决存储器的初始化中存在的问题而使用的存储器管理信息的指令。FIG. 22 shows commands of memory management information used to solve problems in memory initialization.

与图15的不同点是:在图22中新附加了初始化重发指令Code6。此外,该初始化重发指令Code6具有初始化图像(帧)编号(附随初始化存储器区域的初始化指令Code5的帧的编号)作为附加信息。The difference from FIG. 15 is that the initialization retransmission command Code6 is newly added in FIG. 22 . Also, this initialization retransmission command Code6 has an initialization image (frame) number (the number of the frame accompanying the initialization command Code5 that initializes the memory area) as additional information.

以下,用图23对使用了该初始化重发指令Code6的图像编码处理的流程进行说明。Hereinafter, the flow of the image coding process using this initialization retransmission command Code 6 will be described with reference to FIG. 23 .

图23是示出使用了初始化重发指令Code6的图像编码方法的流程图,示出图5中示出的图像编码装置100进行的动作。在图23中,在与图20相同的动作上标注相同的标记。FIG. 23 is a flowchart showing an image encoding method using the initialization retransmission command Code6, showing operations performed by the image encoding device 100 shown in FIG. 5 . In FIG. 23 , the same operations as in FIG. 20 are assigned the same symbols.

首先,编码输入图像(步骤A0)。编码之后检查存储器内可参照的全部图像是否不需要(是否在以后的编码中哪个图像也不被参照)(初始化检查)(步骤A1)。存储器信息控制部101判定是否需要初始化(步骤A2),若需要初始化(步骤A2的Yes),管理信息编码部105就将初始化存储器区域的初始化指令Code5作为存储器管理信息进行编码(步骤A3),并进行初始化(步骤A4)。在不需要初始化的情况下(步骤A2的No),就不进行步骤A3和步骤A4的动作。First, an input image is encoded (step A0). After encoding, it is checked whether all pictures that can be referred to in the memory are unnecessary (whether any picture will not be referred to in subsequent encoding) (initialization check) (step A1). The memory information control unit 101 determines whether initialization is necessary (step A2), and if initialization is necessary (Yes in step A2), the management information encoding unit 105 encodes the initialization command Code 5 for initializing the memory area as memory management information (step A3), and Initialization is performed (step A4). When initialization is unnecessary (No in step A2), the operations of steps A3 and A4 are not performed.

接着,存储器信息控制部101判定是否将附随着紧前面已编码的图像(比编码对象早的图像)的编码信号进行初始化存储器区域的初始化指令Code5,作为存储器管理信息进行了编码(步骤A30),若进行了编码(步骤A30的Yes),则管理信息编码部105就将初始化该存储器区域的初始化重发指令Code6作为存储器管理信息进行编码(步骤A31),之后结束处理。Next, the memory information control unit 101 judges whether or not the coded signal accompanying the coded picture (picture earlier than the coding target) is coded as memory management information with the initialization command Code 5 for initializing the memory area (step A30), If encoding is performed (Yes in step A30), the management information encoding unit 105 encodes the initialization resend command Code6 for initializing the memory area as memory management information (step A31), and then ends the process.

此外,若没有附随着紧前面已编码的图像(比编码对象早的图像)的编码信号,将初始化存储器区域的初始化指令Code5作为存储器管理信息进行了编码(步骤A30的No),则结束处理。In addition, if there is no coded signal accompanying the picture coded immediately before (picture earlier than the coding target), the initialization command Code 5 for initializing the memory area is coded as memory management information (No in step A30), and the process ends.

再有,在图23中示出的方法中,在附随紧前面已编码的图像的编码信号,初始化存储器区域的初始化指令Code5被编码的情况下,就再次编码初始化重发指令Code6,但也可以在不是附随着紧前面的已编码的图像的编码,而是附随着几个图像以前已编码的图像的编码,将初始化存储器区域的初始化指令Code5进行编码的情况下,再次编码初始化重发指令Code6,此外,也可以附随着多个图像,将初始化存储器区域的初始化重发指令Code6作为存储器管理信息,反复进行编码。In addition, in the method shown in FIG. 23, when the initialization command Code 5 for initializing the memory area is coded accompanying the coded signal of the image coded immediately before, the initialization retransmission command Code 6 is coded again, but it is also possible When encoding the initialization command Code 5 for initializing the memory area not following the encoding of the immediately preceding encoded picture but following the encoding of an image that has been encoded several pictures before, the initialization retransmission command Code 6 is encoded again. , In addition, it is also possible to repeatedly perform encoding using the initialization resend command Code 6 for initializing the memory area as memory management information along with a plurality of images.

具体地,如图19所示,在附随着图像编号12的I图像的编码,将初始化指令Code5进行编码的情况下,也可以附随着图像编号11的B图像的编码,将初始化重发指令Code6进行编码,此外,也可以附随着图像编号14的P图像的编码,将初始化重发指令Code6进行编码。Specifically, as shown in FIG. 19 , when the initialization command Code 5 is encoded along with the encoding of the I picture of the picture number 12, the initialization retransmission command Code 6 may be accompanied by the encoding of the B picture of the picture number 11. The encoding is performed, and the initialization retransmission command Code 6 may be encoded along with the encoding of the P picture with the picture number 14.

前者的情况若用图17示出,就是在帧Frm12的帧标题Frm12Hdr上赋予初始化指令Code5,另外,在帧Frm11的帧标题Frm11Hdr上赋予初始化重发指令Code6。此外,后者的情况,在帧Frm12的帧标题Frm12Hdr上赋予初始化指令Code5,在帧Frm14的帧标题Frm14Hdr上赋予初始化重发指令Code6。In the former case shown in FIG. 17, the initialization command Code5 is given to the frame header Frm12Hdr of the frame Frm12, and the initialization retransmission command Code6 is given to the frame header Frm11Hdr of the frame Frm11. In the latter case, the initialization command Code5 is given to the frame header Frm12Hdr of the frame Frm12, and the initialization retransmission command Code6 is given to the frame header Frm14Hdr of the frame Frm14.

另外,也可以在附随着图像编号11的B图像的编码对初始化重发指令Code6进行编码的同时,附随着图像编号14的P图像的编码对初始化重发指令Code6进行编码。该情况下,若用图17示出,就是在帧Frm12的帧标题Frm12Hdr上赋予初始化指令Code5,在帧Frm11的帧标题Frm11Hdr和帧Frm 14的帧标题Frm14Hdr上赋予初始化重发指令Code6。Alternatively, the initial retransmission command Code 6 may be encoded with the encoding of the P picture with picture number 14 at the same time as the encoding of the B picture with picture number 11 and the initial retransmission command Code 6 . In this case, as shown in FIG. 17, the initialization command Code5 is given to the frame header Frm12Hdr of the frame Frm12, and the initialization retransmission command Code6 is given to the frame header Frm11Hdr of the frame Frm11 and the frame header Frm14Hdr of the frame Frm14.

下面,用图24对将已编码了上述初始化重发指令Code6的数据进行译码时的处理进行说明。图24是示出对已编码的初始化重发指令Code6进行译码的方法的流程图,示出图7中示出的图像译码装置200的动作。在图24中,在与图21动作相同的部分标注相同的标记。Next, the process of decoding the data encoded with the initialization retransmission command Code 6 will be described with reference to FIG. 24 . FIG. 24 is a flowchart showing a method of decoding the coded initialization retransmission command Code6, showing the operation of the image decoding device 200 shown in FIG. 7 . In FIG. 24 , the same reference numerals are attached to the same parts as in FIG. 21 .

首先,管理信息译码部205对存储器管理信息进行译码(步骤A10)。然后,根据编码信号对图像信号进行译码(步骤A11)。First, the management information decoding unit 205 decodes the memory management information (step A10). Then, the image signal is decoded based on the coded signal (step A11).

判定在译码后的存储器管理信息中是否有初始化指令Code5(步骤A12),若有初始化指令Code5(步骤A12的Yes),则全部消除存储器内的图像,并进行初始化(步骤A13),若没有初始化指令Code5(步骤A12的No),就不进行初始化。Determine whether there is initialization instruction Code5 (step A12) in the memory management information after decoding, if there is initialization instruction Code5 (Yes of step A12), then all eliminate the image in memory, and initialize (step A13), if not Initialization instruction Code5 (No in step A12) does not perform initialization.

接着,存储器信息控制部101判定在存储器管理信息中是否有初始化重发指令Code6(步骤A40)。若没有初始化重发指令Code6(步骤A40的No),则结束处理,若有初始化重发指令Code6(步骤A40的Yes),则检查初始化是否完了(步骤A41)。若初始化完了(步骤A41的Yes),就结束处理,若还没进行初始化(步骤A41的No),就基于初始化重发指令Code6的附加信息,删除初始化帧(初始化存储器区域的初始化指令Code5附随的帧)以前的保存帧(在初始化帧进行编码的时刻,参照用图像存储器中存储着的帧),并且,设定长时间保存存储器大小为0(步骤A42),结束处理。再有,不使用长时间保存帧的情况下,则无需使长时间保存存储器的大小设为0。Next, the memory information control unit 101 judges whether or not there is an initialization resend command Code 6 in the memory management information (step A40). If there is no initialization retransmission command Code6 (No in step A40), then end the process, if there is an initialization retransmission command Code6 (Yes in step A40), then check whether the initialization is complete (step A41). If the initialization has been completed (Yes in step A41), the process is ended, and if initialization has not been carried out (No in step A41), the initialization frame (accompanying by the initialization instruction Code5 of the initialization memory area) is deleted based on the additional information of the initialization retransmission instruction Code6 frame) before saving the frame (at the time of encoding the initialization frame, refer to the frame stored in the image memory), and set the long-term storage memory size to 0 (step A42), and end the process. In addition, when the long-term save frame is not used, it is not necessary to set the size of the long-term save memory to 0.

因此,在图19中示出的初始化指令Code5附随着图像编号12的图像,和初始化重发指令Code6附随着图像编号14进行编码的情况中,在初始化指令Code5不因传输线路错误而消失的情况下,就由初始化指令Code5,在初始化指令Code5因传输线路错误而消失的情况下,就由初始化重发指令Code6,来全部删除保存在存储器中的图像中保存图像编号为10以下的图像。Therefore, in the case where the initialization command Code 5 shown in FIG. 19 is encoded with the picture number 12 attached, and the initialization retransmission command Code 6 is encoded with the picture number 14, in the case where the initialization command Code 5 does not disappear due to a transmission line error Next, just by initialization command Code5, under the situation that initialization command Code5 disappears because of transmission line error, just by initialization retransmission command Code6, all delete the picture that saves the picture number below 10 among the pictures that are stored in memory.

象这样地,由于在反复编码初始化指令Code5进行传输时,在第二次以后,将附加了作为附加信息的初始化图像编号的初始化重发指令Code6进行编码并传输,因此,就根据该附加信息初始化帧以前的保存帧(在最初初始化指令Code5附随的初始化帧进行编码的时候,参照用图像存储器中存储着的帧)全部被删除。因此,能解决需要的图像(图像)遗漏的上述问题。In this way, since the initialization retransmission command Code 6 to which the initialization picture number is added as additional information is encoded and transmitted after the second time when the initialization command Code 5 is repeatedly encoded, the initialization is performed based on the additional information. All the saved frames before the frame (frames stored in the image memory for reference when encoding the initialization frame accompanying the initial initialization command Code5) are all deleted. Therefore, the above-mentioned problem of omission of necessary images (pictures) can be solved.

再有,如图25所示,即使在与图19不同的保存图像编号的赋予方法中,上述说明的初始化重发指令Code6也是有效的。In addition, as shown in FIG. 25, the initialization retransmission command Code 6 explained above is effective even in a method of assigning a stored image number different from that in FIG. 19.

以下,具体地说明。Below, it demonstrates concretely.

图25是示出赋予各帧的编号(图像(帧)编号)、各帧保存在存储器内时的编号(保存图像(帧)编号)、表示传输各帧的序号的编号(传输顺序)的其他关系的说明图。Fig. 25 shows the numbers assigned to each frame (image (frame) number), the number when each frame is stored in the memory (saved image (frame) number), and the number indicating the number of transmission of each frame (transfer order) An illustration of the relationship.

对这些编号的赋予方法进行说明。首先,由于图像编号0的I图像不参照其他图像,因此保存在存储器中,其保存图像编号就为0。接着,由于参照图像编号0的I图像的图像编号2的P图像保存在存储器中,因此与图像编号2的P图像有关的保存图像编号就为1。然后,参照图像编号0的I图像和图像编号2的P图像的图像编号1的B图像保存在存储器中,但由于该B图像不被其他图像所参照,因此,保存图像编号与紧前面保存的图像编号2的P图像的保存图像编号相同,均为1。传输各图像的序号设为保存在存储器中的序号。按同样的顺序决定图像编号和保存图像编号及传输顺序的关系。The method of assigning these numbers will be described. First, since the I picture with picture number 0 does not refer to other pictures, it is stored in the memory, and its stored picture number is 0. Next, since the P picture of picture number 2 referring to the I picture of picture number 0 is stored in the memory, the stored picture number related to the P picture of picture number 2 is 1. Then, the B picture of picture number 1 that refers to the I picture of picture number 0 and the P picture of picture number 2 is stored in the memory. The saved picture number of the P picture of picture number 2 is the same as 1. The serial number of each image transferred is set to the serial number stored in the memory. In the same order, determine the relationship between image numbers, stored image numbers, and transfer order.

如图25所示,设定在对图像编号12的I图像进行编码时,附随着发送图15中示出的初始化指令Code5。由于图像编号12的I图像的保存图像编号是6,因此,能由该初始化指令Code5从存储器内全部消除保存图像编号为5以下的图像。As shown in FIG. 25 , it is assumed that the initialization command Code 5 shown in FIG. 15 is sent along with the encoding of the I picture of picture number 12 . Since the stored picture number of the I picture with picture number 12 is 6, all pictures whose stored picture numbers are 5 or less can be deleted from the memory by this initialization command Code 5 .

在此,在反复对初始化指令Code5进行编码的情况下,具体地对在图像编号14的P图像上赋予与在图像编号12的I图像上赋予了的初始化指令Code5相同的初始化指令Code5的情况进行说明。Here, when encoding the initialization command Code 5 repeatedly, specifically, the case where the same initialization command Code 5 as the initialization command Code 5 given to the I picture of the picture number 12 is given to the P picture of the picture number 14 is performed. illustrate.

初始化指令Code5如图15所示,不具有附加信息,因此,就在被译码了的时刻,全部消除参照用存储器内保存着的图像。因此,若赋予了图像编号12(保存图像编号6)的I图像的初始化指令Code5因传输线路错误而消失,且赋予了图像编号14(保存图像编号7)的P图像的初始化指令Code5被执行,就在保存图像编号6以下的图像中,保存在存储器中的图像全部被删除。即,本来不应消除的图像编号12(保存图像编号6)的I图像都被消除。As shown in FIG. 15, the initialization command Code 5 has no additional information, and therefore, when it is decoded, all images stored in the reference memory are erased. Therefore, if the initialization command Code 5 of the I picture assigned the picture number 12 (stored picture number 6) disappears due to a transmission line error, and the initialization command Code 5 of the P picture assigned the picture number 14 (stored picture number 7) is executed, All the images stored in the memory are deleted among the images stored under image number 6. That is, all I pictures of picture number 12 (stored picture number 6) that should not be deleted are all deleted.

但是,由于取代初始化指令Code5,使上述初始化重发指令Code6附随着图像编号14的P图像,因此,在附随图像编号12的I图像的初始化指令Code5不因传输线路错误而消失的情况下,就由初始化指令Code5,在初始化指令Code5因传输线路错误而消失了的情况下,就由附随图像编号14的P图像的初始化重发指令Code6,来全部删除保存在存储器中的图像中保存图像编号为5以下的图像。However, since the above-mentioned initialization retransmission command Code 6 is attached to the P picture with picture number 14 instead of the initialization command Code 5, if the initialization command Code 5 accompanying the I picture with picture number 12 does not disappear due to a transmission line error, then From the initialization command Code5, when the initialization command Code5 disappears due to a transmission line error, all the pictures stored in the memory are deleted by the initialization retransmission command Code6 of the P picture with the picture number 14. The picture number stored in the memory is 5 images below.

即,由于在初始化重发指令Code6中附加了初始化帧(该情况中,图像编号12)编号作为附加信息,因此,删除初始化帧以前的保存帧(在保存初始化帧的时候保存在参照用图像存储器中的保存图像编号为5以下的保存帧)。That is, since the number of the initialization frame (in this case, picture number 12) is added to the initialization retransmission command Code6 as additional information, the saved frame before the initialization frame is deleted (saved in the image memory for reference when saving the initialization frame). Save frames in which the save image number is 5 or less).

如上所述,由于具有附加信息的初始化重发指令Code6,即使在初始化指令Code5因传输线路错误而遗漏的情况下也能正常地执行初始化的可能性提高。再有,也可以将附加信息作为初始化重发指令附随的图像编号,用本实施方式中示出的初始化重发指令代用作初始化指令,用一个指令来实现图22中示出的Code5和Code6。这是因为,由于在为了重发初始化信息的而进行初始化重发时,初始化指令指定附随的帧的编号,因此,不使用重发该帧这样的图像编号。这时,也可以使初始化指令Code5无效。As described above, due to the initialization retransmission command Code6 having additional information, even when the initialization command Code5 is missed due to a transmission line error, there is an increased possibility that initialization can be normally performed. Furthermore, the additional information may be used as the image number accompanying the initialization resend command, and the initialization resend command shown in this embodiment may be used instead of the initialization command, and Code5 and Code6 shown in FIG. 22 may be implemented with one command. This is because, when initial retransmission is performed for retransmission of initialization information, since the initializing command designates the number of the accompanying frame, the picture number for retransmitting the frame is not used. At this time, the initialization command Code5 may be invalidated.

再有,如上,在用一个指令实现上述实施方式中示出的初始化重发指令和初始化指令Code5的情况下,也可以以初始化重发指令作为具有与最初发送的初始化指令Code5相同功能的指令,所述初始化重发指令是具有在上述实施方式中示出的初始化重发指令中不使用的特别的值作为附加信息的指令。Furthermore, as above, in the case where the initialization retransmission command and the initialization command Code5 shown in the above-mentioned embodiment are realized by a single command, the initialization retransmission command may be used as the command having the same function as the initialization command Code5 sent initially, The initial retransmission command is a command having, as additional information, a special value not used in the initial retransmission command described in the above-mentioned embodiment.

此外,如在上述各实施方式所说明,在再次传输释放不需要的存储器区域的指令和初始化指令等的存储器管理信息时,也可以如图17和图18所示,不是包含在与图像的编码有关的帧数据上附加的标题信息中进行传输的,而是与帧数据分开另外传输存储器管理信息包含的标题信息。即,重发的上述指令不在与已编码的图像相同的流中,而也可以例如作为另外的流进行传输。此外,也可以记录在存储媒体的另外的区域中。In addition, as described in each of the above-mentioned embodiments, when retransmitting memory management information such as instructions for releasing unnecessary memory areas and initialization instructions, as shown in FIGS. 17 and 18 , it may not be included in the encoding of images The related frame data is transmitted in the header information attached, but the header information included in the memory management information is transmitted separately from the frame data. That is, the retransmitted above-mentioned command is not in the same stream as the encoded image, but may be transmitted, for example, as a separate stream. In addition, it may also be recorded in another area of the storage medium.

另外,在本实施方式中,在重发初始化指令时,将使初始化指令最初附随的图像的图像编号(初始化帧编号)作为附加信息,附加在初始化重发指令中,但当然也可以在重发上述各实施方式中示出的、存储器管理信息的指令时,也将最初使该指令附随并传输的编码对象图像的图像编号(确定图像的信息)作为参数包含进行传输也可以。所述存储器管理信息为示出释放的存储器区域的指令、和指定从短时间保存存储器向长时间保存存储器移动的对象的图像的指令等。这样,能检测出在传输哪个图像时产生了传输线路错误。In addition, in this embodiment, when retransmitting the initialization command, the picture number (initialization frame number) of the picture accompanying the initialization command first is added as additional information to the initialization retransmission command, but of course, it is also possible to In the case of the memory management information command shown in each of the above-mentioned embodiments, the picture number (information specifying the picture) of the coding target picture that is initially transmitted along with the command may be included as a parameter and transmitted. The memory management information is a command indicating a memory area to be released, a command specifying an image of an object to be moved from the short-term storage memory to the long-term storage memory, and the like. In this way, it is possible to detect which image a transmission line error has occurred in transmission.

(实施方式9)(Embodiment 9)

下面,对实施方式9中的图像编码方法和图像译码方法进行说明。Next, an image encoding method and an image decoding method in Embodiment 9 will be described.

本实施方式的特征在于,在多次传输存储器管理信息时,改变基于在第二次以后被传输的存储器管理信息的处理的定时。The present embodiment is characterized in that when the memory management information is transmitted multiple times, the timing of processing based on the memory management information transmitted after the second time is changed.

在对将上述实施方式中示出的存储器管理信息反复进行编码了的数据进行译码时,在进行反复发送的存储器管理信息的处理之前,必须将存储器管理信息附随的图像信号进行译码。作为具体例在实施方式2中说明了的、多次传输释放不需要的存储器区域的指令的情况,用图19再次进行说明。When decoding data obtained by repeatedly encoding the memory management information described in the above-mentioned embodiments, it is necessary to decode an image signal accompanying the memory management information before processing the repeatedly transmitted memory management information. The case where a command to release an unnecessary memory area is transmitted multiple times as described in Embodiment 2 as a specific example will be described again with reference to FIG. 19 .

使图22中示出的Code1的指令附随着图19中示出的图像编号12的图像进行编码,另外,使Code1的指令也附随着图像编号11的图像进行编码。这时,按照图8进行译码。The code of Code 1 shown in FIG. 22 is encoded along with the picture of picture number 12 shown in FIG. 19 , and the code of Code 1 is also coded along with the picture of picture number 11 . At this time, decoding is performed according to FIG. 8 .

首先,附随图像编号12的图像的Code1被译码(步骤110)。接着,图像编号12的图像被译码(步骤111)。在此,若本来应该正在附随着图像编号12的图像的Code1在传输途中遗漏了(步骤112的No),结束与该帧有关的处理。First, Code1 of the picture accompanying picture number 12 is decoded (step 110). Next, the picture with picture number 12 is decoded (step 111). Here, if the Code 1 that should have been attached to the image with the image number 12 is lost during transmission (No in step 112), the processing related to the frame is terminated.

在传输顺序中,在图像编号12的图像之后进行译码处理的是图像编号11的图像。In the transmission order, it is the picture of picture number 11 that is decoded after the picture of picture number 12.

首先,对附随着图像编号11的图像进行编码了的Code1被译码(步骤110)。接着,图像编号12的图像被译码(步骤111)。在该Code1不在传输途中遗漏而传输了的情况下,由于在已译码的存储器管理信息中存在存储器释放的指令Code 1(步骤112的Yes),因此就过渡到下面的处理(步骤113)。First, Code 1 encoded with the picture with picture number 11 is decoded (step 110). Next, the picture with picture number 12 is decoded (step 111). When this Code 1 is transmitted without being missed during transmission, since there is a memory release command Code 1 in the decoded memory management information (Yes in step 112), it transitions to the following processing (step 113).

在此,由于在对图像编号11的图像被译码之前被译码的图像编号12的图像进行译码时,存储器未被释放(步骤113的No),因此就进行存储器释放处理(步骤114)。Here, since the memory is not released when the picture of picture number 12 decoded before the picture of picture number 11 is decoded (No in step 113), memory release processing is performed (step 114) .

如上述具体例中所示,伴随着多次传输释放不需要的存储器区域的指令的操作,应该对本来没有进行最初的指令执行的图像(图像编号12)执行的指令,在从后面发送的图像(图像编号11)的图像信号的译码处理之后来执行,产生指令执行的延迟。As shown in the above specific example, the instruction to be executed for the image (image number 12) that should not be executed in the first instruction is accompanied by the operation of transmitting the instruction to release the unnecessary memory area multiple times, and the image sent from behind The decoding process of the image signal of (image number 11) is executed later, causing a delay in command execution.

因此,在本实施方式中,用图26、图27和图28对用于解决上述问题的方法进行说明。Therefore, in this embodiment, a method for solving the above-mentioned problems will be described with reference to FIGS. 26 , 27 and 28 .

图26是示出在本实施方式中使用的存储器管理信息和指令的关系的对应图。FIG. 26 is a correspondence diagram showing the relationship between memory management information and commands used in this embodiment.

在图26中,Code表示指令的编号,指令表示指令的内容,附加信息表示附加在指令中的附加信息,处理位置表示执行指令的定时。In FIG. 26, Code represents the number of the command, the command represents the content of the command, the additional information represents additional information added to the command, and the processing position represents the timing at which the command is executed.

与图15的不同点是,在图26中,将CodeA1~CodeA4设定为在图像的译码处理之后执行的指令,另一方面,将与CodeA1~CodeA4对应的CodeA6~CodeA9设定为在图像的译码处理之前执行的指令。The difference from FIG. 15 is that in FIG. 26, CodeA1 to CodeA4 are set as commands executed after the decoding process of the image, and on the other hand, CodeA6 to CodeA9 corresponding to CodeA1 to CodeA4 are set as commands executed after the image is decoded. The decode process executes the instruction before.

然后,在反复发送存储器管理信息的情况下,将最初进行编码的存储器管理信息的指令设定为处理位置是译码后的(在图像的译码之后执行)指令(从CodeA1到CodeA4),将反复(第二次以后)进行编码的指令设定为处理位置是译码前(在图像的译码之前执行)的指令(从CodeA6到CodeA9)。Then, in the case of repeatedly sending the memory management information, the instruction of the first coded memory management information is set as the instruction (from CodeA1 to CodeA4) whose processing position is decoded (executed after decoding of the image), and A command to perform encoding repeatedly (after the second time) is set as a command (from CodeA6 to CodeA9) whose processing position is before decoding (executed before decoding of an image).

这样,即使在最初发送的存储器管理信息遗漏了的情况下,本来应该按最初发送的存储器管理信息执行的指令早期执行,而不容易引起延迟等问题。In this way, even if the first sent memory management information is missing, the instructions that should be executed according to the first sent memory management information are executed early, and problems such as delay are not likely to be caused.

以下,用图27和图28对使用图26的指令时的处理顺序进行说明。Hereinafter, the processing procedure when using the command of FIG. 26 will be described using FIG. 27 and FIG. 28 .

图27是示出本实施方式中的图像编码方法的流程图,示出图5中示出的图像编码装置100的动作。FIG. 27 is a flowchart showing the image coding method in this embodiment, showing the operation of the image coding device 100 shown in FIG. 5 .

在图27中,首先,编码图像(步骤B0)。编码之后检查存储器内的不需要的区域(在以后的编码中不参照的图像)(步骤B1),判定是否有不需要的存储器区域(步骤B2)。若有不需要的存储器区域(步骤B2的Yes),就把释放不需要的存储器区域的指令作为在图像信号的译码之后执行的指令,将译码后用的存储器管理信息进行编码(步骤B3),释放该不需要的存储器区域(步骤B4)。另一方面,在没有不需要的存储器区域的情况下(步骤B2的No),就不进行步骤B3和步骤B4的动作。In Fig. 27, first, an image is encoded (step B0). After encoding, unnecessary areas in the memory (pictures not to be referred to in subsequent encoding) are checked (step B1), and it is determined whether there is an unnecessary memory area (step B2). If there is an unnecessary memory area (Yes in step B2), the instruction to release the unnecessary memory area is used as an instruction to be executed after the decoding of the image signal, and the memory management information used after decoding is encoded (step B3 ), release the unnecessary memory area (step B4). On the other hand, when there is no unnecessary memory area (No in step B2), the operations of steps B3 and B4 are not performed.

接着,存储器信息控制部101判定是否将附随着之前已编码的图像(比编码对象早的图像)的编码释放不需要的存储器区域的指令,作为存储器管理信息进行编码(步骤B30)。若没编码(步骤B30的No),就结束处理,若已编码(步骤B30的Yes),管理信息编码部105就将释放该不需要的存储器区域的指令作为在图像信号的译码之前执行的指令,对译码前用的存储器管理信息进行编码(步骤B31),结束处理。Next, the memory information control unit 101 determines whether or not to encode an instruction to release an unnecessary memory area accompanying encoding of a previously encoded image (an earlier image than the encoding target) as memory management information (step B30). If not coded (No in step B30), the process ends, and if coded (Yes in step B30), the management information coder 105 will release the instruction of the unnecessary memory area as an instruction to be executed before the decoding of the image signal. command to encode the memory management information before decoding (step B31), and the process ends.

再有,在步骤B30中,在释放不需要的存储器区域的指令附随着紧前面已编码的图像的编码信号被编码了的情况下,就再次对指令进行编码,但也可以不是附随着紧前面的图像的情况,而是附随着几个图像以前的图像的情况,并且,也可以反复编码上述指令作为存储器管理信息,附随着多个图像进行传输。Furthermore, in step B30, in the case where the instruction to release unnecessary memory areas is encoded along with the coded signal of the immediately preceding coded image, the instruction is coded again, but it does not need to be accompanied by the immediately preceding coded signal. In the case of an image, it is accompanied by several images before the image, and the above command can also be repeatedly encoded as memory management information, and transmitted with a plurality of images.

下面,用图28和图19,对译码已按照图27的顺序编码了的数据进行译码的顺序进行说明。Next, the procedure for decoding the data encoded in the procedure shown in FIG. 27 will be described with reference to FIG. 28 and FIG. 19 .

图28是示出本实施方式中的图像译码方法的流程图,示出图7中示出的图像译码装置200进行的动作。FIG. 28 is a flowchart showing the image decoding method in this embodiment, showing operations performed by the image decoding device 200 shown in FIG. 7 .

在以下的说明中,在图19中,假设图26中示出的CodeA1的指令附随着图像编号12的图像被进行了编码,并且,使CodeA6的指令附随着图像编号11的图像被进行了编码。如在图17中示出,就成为在图像编号12的帧Frm12的帧标题Frm12Hdr上赋予CodeA1,在图像编号11的帧Frm11的帧标题Frm11Hdr上赋予CodeA6。In the following description, in FIG. 19 , it is assumed that the code of Code A1 shown in FIG. 26 is coded with the image number 12 attached, and that the code of Code A6 is coded with the code of the image number 11. . As shown in FIG. 17, CodeA1 is assigned to the frame header Frm12Hdr of the frame Frm12 of the image number 12, and CodeA6 is assigned to the frame header Frm11Hdr of the frame Frm11 of the image number 11.

再有,在图像译码装置中,只要指令不因传输线路错误而消失,就多次接收释放存储器内的相同的图像区域的指令。因此,必须使图像译码装置进行的图像译码方法,在接收到再次释放已经释放了的图像的指令的情况下,也不当作错误来处理,而相反地,判断为能正确地接收。Furthermore, in the image decoding device, unless the instruction is lost due to a transmission line error, the instruction to release the same image area in the memory is received multiple times. Therefore, it is necessary for the image decoding method performed by the image decoding device not to treat it as an error when receiving an instruction to release an already released image again, but to judge that it can be received correctly on the contrary.

首先,对与图像编号12的图像有关的译码处理进行说明。First, the decoding process for the picture with picture number 12 will be described.

在图28中,首先,译码图像编号12的图像的存储器管理信息(步骤B5),检查该存储器管理信息是否是译码前用的存储器管理信息(步骤B7)。在此,由于该存储器管理信息(CodeA1)是译码后用的存储器管理信息(步骤B7的No),因此图像编号12的图像信号被译码。然后,如上所述地,由于存储器管理信息(CodeA1)是译码后用的存储器管理信息(步骤B9的Yes),因此释放存储器(步骤B11),结束与图像编号12的图像的存储器管理信息有关的处理。In FIG. 28, first, the memory management information of the picture of picture number 12 is decoded (step B5), and it is checked whether the memory management information is the memory management information used before decoding (step B7). Here, since this memory management information (CodeA1) is memory management information for decoding (No in step B7), the image signal of image number 12 is decoded. Then, as described above, since the memory management information (CodeA1) is the memory management information for decoding (Yes in step B9), the memory is released (step B11), and the memory management information related to the picture of picture number 12 is terminated. processing.

另一方面,在存储器管理信息的CodeA1遗漏了时,在步骤B7中,不判断为是译码前用的存储器管理信息(步骤B7的No),此外,在步骤B9中也不判断为是译码后用的存储器管理信息(步骤B9的No),而仅进行图像编号12的图像信号的译码(步骤B6),结束与图像编号12的存储器管理信息有关的处理。On the other hand, when the CodeA1 of the memory management information is missing, it is not judged to be the memory management information before decoding in step B7 (No in step B7), and it is not judged to be decoded in step B9. Only the image signal of image number 12 is decoded (step B6), and the processing related to the memory management information of image number 12 ends.

下面,用图28对与图像编号11的帧有关的译码处理进行说明。Next, the decoding process for the frame of picture number 11 will be described with reference to FIG. 28 .

首先,对图像编号11的存储器管理信息进行译码(步骤B5),检查该存储器管理信息是否是译码前用的存储器管理信息(步骤B7)。在此,由于CodeA6是译码前用的存储器管理信息(步骤B7的Yes),因此检查存储器是否已释放完(步骤B8)。在图像编号12的处理中,若正在执行CodeA1,则由于存储器已释放完(步骤B8的Yes),因此就不进行存储器释放处理(步骤B 10),而进行图像编号11的图像信号的译码(步骤B6)。然后,判定存储器管理信息是否是译码后用的信息(步骤B9),但由于CodeA6是译码前用的存储器管理信息(步骤B9的No),因此结束与图像编号11的图像的存储器管理信息有关的处理。First, the memory management information of picture number 11 is decoded (step B5), and it is checked whether the memory management information is memory management information for before decoding (step B7). Here, since CodeA6 is the memory management information used before decoding (Yes in step B7), it is checked whether the memory has been released (step B8). In the processing of image number 12, if CodeA1 is being executed, since the memory has been released (Yes in step B8), the memory release process (step B10) is not performed, and the decoding of the image signal of image number 11 is performed. (step B6). Then, it is judged whether the memory management information is the information for decoding (step B9), but since CodeA6 is the memory management information for before decoding (No of step B9), the memory management information for the image with the image number 11 is terminated. related processing.

但是,若因传输过程中的包的遗漏等而图像编号12的存储器管理信息遗漏,在与图像编号12有关的处理中,没进行存储器释放,则在与图像编号11有关的处理中,判定为存储器未释放完(步骤B8的No),在接着的步骤中,释放存储器(步骤B10)。在存储器被释放之后,图像编号11的图像信号被译码(步骤B6)。然后,由于CodeA6是译码前用的存储器管理信息(步骤B9的No),因此结束与图像编号11的图像的存储器管理信息有关的处理。However, if the memory management information of picture number 12 is missing due to a packet omission during transmission, etc., and the memory is not released in the process related to picture number 12, it is judged as The memory is not released (No in step B8), and in the next step, the memory is released (step B10). After the memory is released, the picture signal of picture number 11 is decoded (step B6). Then, since Code A6 is the memory management information for before decoding (No in Step B9), the process related to the memory management information of the picture with the picture number 11 ends.

如上所述,通过对重发部分比图像信号的译码先执行指令,即使最初发送的指令遗漏,也能减少指令执行的滞后。As described above, by executing commands in the retransmitted portion prior to decoding the image signal, even if the first transmitted command is missed, the delay in command execution can be reduced.

再有,作为具体例,对存储器管理信息为CodeA1和CodeA6的情况进行了说明,但在使用CodeA2和CodeA7的情况下,也能用同样的处理来实现,在使用CodeA3和CodeA8、CodeA4和CodeA9的情况下,也能用同样的处理来实现。In addition, as a specific example, the case where the memory management information is CodeA1 and CodeA6 has been described, but in the case of using CodeA2 and CodeA7, the same process can be realized. case, the same process can be used to achieve.

此外,也可以设图26中示出的初始化指令CodeA5为译码后用的存储器管理信息,设图22中示出的初始化重发指令CodeA6为译码前用的存储器管理信息,将它们成对地使用。In addition, the initialization command CodeA5 shown in FIG. 26 may be used as memory management information after decoding, and the initialization retransmission command CodeA6 shown in FIG. 22 may be used as memory management information before decoding, and they may be paired. ground use.

此外,在对一个帧赋予了译码后用的存储器管理信息和多个译码前用的存储器管理信息作为标题信息的情况下,也可以比译码后用的存储器管理信息先处理多个译码前用的存储器管理信息。In addition, when post-decoding memory management information and a plurality of pre-decoding memory management information are assigned as header information to one frame, the plurality of decoded memory management information may be processed before the post-decoding memory management information. Memory management information used before coding.

即,也可以在图17中示出的标题信息的前头赋予译码前用的存储器管理信息并进行编码。That is, it is also possible to encode the memory management information before decoding at the head of the header information shown in FIG. 17 .

此外,也可以由图29(a)和图29(b)中示出的命令的组合,将存储器管理信息是译码前用的管理信息还是译码后用的管理信息的内容,作为另外的信息,实现上述实施方式中示出的指令。In addition, it is also possible to use the combination of commands shown in FIG. 29(a) and FIG. 29(b) to determine whether the memory management information is management information for pre-decoding or management information for post-decoding as another information to implement the instructions shown in the above-mentioned embodiments.

图29(a)是示出指令的内容与附加信息的对应图。图29(b)是示出指令的执行定时(处理位置)的对应图。Fig. 29(a) is a diagram showing the correspondence between the content of the command and the additional information. Fig. 29(b) is a corresponding diagram showing the execution timing (processing position) of an instruction.

图30是示出编码信号的标题信息中的存储器管理信息的指令的模式图。Fig. 30 is a schematic diagram showing commands of memory management information in header information of an encoded signal.

在图30中,帧FrmB的编码信号具有帧标题FrmBHdr和MBa、MBb等帧数据等,帧标题FrmBHdr作为标题信息,具有代码信息CodeD等。In FIG. 30, the coded signal of the frame FrmB has a frame header FrmBHdr and frame data such as MBa, MBb, etc., and the frame header FrmBHdr has code information CodeD and the like as header information.

这时,例如,如图30所示,可以设帧FrmB的帧标题FrmBHdr从前到后为:指令的代码信息CodeD、表示处理位置的FlagD、表示指令的附加信息的附加信息AddD。在没有附加信息的情况下,如图30所示,可以在帧标题FrmBHdr上附加指令的CodeE和表示处理位置的FlagE。通过在示出指令的Code之后,不设置表示附加信息的Add,而设置表示处理位置的Flag,使图28中示出的步骤B7和步骤B9的处理最优化。At this time, for example, as shown in FIG. 30 , the frame header FrmBHdr of the frame FrmB can be set from front to back as: code information CodeD of the instruction, FlagD indicating the processing position, and additional information AddD indicating additional information of the instruction. When there is no additional information, as shown in FIG. 30 , CodeE of the command and FlagE indicating the processing position may be added to the frame header FrmBHdr. The processing of Step B7 and Step B9 shown in FIG. 28 is optimized by setting Flag indicating the processing position instead of Add indicating additional information after the Code indicating the command.

此外,为了区别指令的执行定时是图像信号的译码前和译码后的哪一个,也可以使用表示指令的处理位置的新指令,在译码之后实施位于比表示该处理位置的指令的帧标题上的位置靠前的指令,在译码之前实施位于比表示该处理位置的指令在帧标题上的位置靠后的指令。这样,在有多个指令时,能用一个指令表示各指令的执行定时(处理位置),与对每一个指令发送表示处理位置的Flag的情况相比,发送的信息减少,编码效率提高。In addition, in order to distinguish whether the execution timing of the instruction is before decoding or after decoding the image signal, a new instruction indicating the processing position of the instruction may be used, and a frame located at a position higher than that of the instruction indicating the processing position may be executed after decoding. Before decoding, an instruction located earlier on the header is executed on an instruction located later than the instruction indicating the processing position on the frame header. In this way, when there are multiple commands, the execution timing (processing position) of each command can be indicated by one command. Compared with the case of sending a Flag indicating the processing position for each command, the transmitted information is reduced and the encoding efficiency is improved.

用图31说明具体例。A specific example will be described with reference to FIG. 31 .

图31是示出其他的编码信号的标题信息中的存储器管理信息的指令的模式图。Fig. 31 is a schematic diagram showing commands of memory management information in header information of another coded signal.

在图31中,帧FrmC的编码信号具有帧标题FrmCHdr和MBa、MBb等帧数据等,帧标题FrmCHdr作为标题信息,从前依次为指令CodeF、指令dif、指令CodeG、附加信息AddG、指令CodeH。In FIG. 31, the coded signal of the frame FrmC has frame header FrmCHdr and frame data such as MBa and MBb. The frame header FrmCHdr is used as header information, and the order of the past is command CodeF, command dif, command CodeG, additional information AddG, and command CodeH.

然后,判别表示处理位置的指令dif是否在帧标题FrmCHdr中,在帧FrmC的译码之后执行位于比表示处理位置的指令dif靠前位置的指令CodeF,在帧FrmC的译码之前执行位于比指令dif靠后位置的指令CodeG和指令CodeH也可以。该情况下,若没有示出处理位置的指令dif,就在帧FrmC的译码处理之后执行帧标题FrmCHdr内的全部指令。Then, it is judged whether the instruction dif indicating the processing position is in the frame header FrmCHdr, the instruction CodeF located before the instruction dif indicating the processing position is executed after decoding of the frame FrmC, and the instruction located earlier than the instruction dif indicating the processing position is executed before decoding of the frame FrmC. The commands CodeG and CodeH at the rear of the dif are also acceptable. In this case, if there is no instruction dif indicating the processing position, all the instructions in the frame header FrmCHdr are executed after the decoding process of the frame FrmC.

再者,如在上述各实施方式中说明的,在再次传输释放成为不需要的存储器区域的指令和初始化指令等存储器管理信息时,也可以不包含在图像的编码信号中附加的标题信息中进行传输,而存储器管理信息被包含的标题信息与图像的编码信号分开另外传输。即,重发的上述指令也可以不在与已编码的图像相同的流中,而例如作为另外的流进行传输。此外,也可以记录在存储媒体的另外的区域中。Furthermore, as described in each of the above-mentioned embodiments, when retransmitting memory management information such as a command to release an unnecessary memory area and an initialization command, it may not be included in the header information added to the coded signal of the image. transmission, while the header information contained in the memory management information is transmitted separately from the coded signal of the image. That is, the above-mentioned retransmitted command may not be in the same stream as the coded image, but may be transmitted, for example, as a separate stream. In addition, it may also be recorded in another area of the storage medium.

(实施方式10)(Embodiment 10)

下面,对本发明的实施方式10进行说明。Next, Embodiment 10 of the present invention will be described.

在本实施方式中,进行编码的单位与上述各实施方式不同。即,在上述实施方式1中,在多次传输释放不需要的存储器区域的指令时,所述的相当于上述指令的图5中示出的存储器管理信息流CtlStr和图像编码流VideoStr是按图像(图像)单位进行编码的,但在本实施方式中,也可以象图32中示出的流结构,将一帧按片单位进行编码。In this embodiment, the encoding unit is different from the above-mentioned embodiments. That is, in Embodiment 1 above, when an instruction to release an unnecessary memory area is transmitted multiple times, the memory management information stream CtlStr and the image coding stream VideoStr shown in FIG. The coding is performed in units of (pictures), but in this embodiment, one frame may be coded in units of slices like the stream structure shown in FIG. 32 .

所述按片单位进行编码,是指对帧具有的每一个片编码标题、存储器管理信息流CtlStr、图像编码流VideoStr,以便使图32的帧1的片1具有标题1-1、ctlStr1、VideoStr1-1,帧1的片2具有标题1-2、ctlStr1、VideoStr1-2。在图像编码装置中进行编码之后,图像编码装置输出数据流。再有,片是同步复位单位,是由一个或多个块构成的带状区域,由多个片构成图像。此外,图像是对应于一幅图像的基本的编码单位,块是编码和译码的基本单位。The encoding in units of slices refers to encoding titles, memory management information streams CtlStr, and image encoding streams VideoStr for each slice of a frame, so that slice 1 of frame 1 in FIG. 32 has titles 1-1, ctlStr1, and VideoStr1 -1, slice 2 of frame 1 has title 1-2, ctlStr1, VideoStr1-2. After encoding in the image encoding device, the image encoding device outputs a data stream. Note that a slice is a synchronous reset unit, and is a band-shaped area composed of one or a plurality of blocks, and an image is composed of a plurality of slices. Also, a picture is a basic coding unit corresponding to one picture, and a block is a basic unit of coding and decoding.

此外,设如上所述地多次传输存储器管理信息流CtlStr时的内容在同一帧内为同一信息。通过设为同一信息,能省略该存储器管理信息流CtlStr的在片单位中的附加。例如,在片的标题中附加表示在该片中是否省略了多次传输的信息,在该片中省略了多次传输上述指令的内容时,就附加“0”,在该片中传输了上述指令时(没省略时),就附加“1”。具体地在图33(a)中示出一例,以下进行说明。从帧1中的片1到片3中的标题和图像编码流VideoStr各不相同。另一方面,在片1和片2中具有同一存储器管理信息流CtlStr1,在同一帧中的多个片中,片1和片2分别具有表示编码了同一存储器管理信息流CtlStr1的内容的信息“1”。此外,片3具有示出省略了存储器管理信息流CtlStr1的信息“0”。这样,在该片中省略了多次传输的信息时,前头的片等参照表示为上述“1”的片中的存储器管理信息流CtlStr,由此可以省略存储器管理信息流CtlStr的附加,能减少位数。In addition, it is assumed that the contents of the memory management stream CtlStr are the same information in the same frame when the memory management information stream CtlStr is transmitted multiple times as described above. By using the same information, it is possible to omit the addition of the memory management information stream CtlStr in units of slices. For example, information indicating whether the multi-transmission is omitted in the slice is added to the title of the slice. When commanded (when not omitted), "1" is added. Specifically, an example is shown in FIG. 33( a ), and will be described below. The title and image coded stream VideoStr differs from slice 1 to slice 3 in frame 1. On the other hand, slice 1 and slice 2 have the same memory management stream CtlStr1, and among the slices in the same frame, slice 1 and slice 2 respectively have information indicating the contents of the same memory management stream CtlStr1 encoded. 1". Also, the slice 3 has information "0" showing that the memory management stream CtlStr1 is omitted. In this way, when the information transmitted multiple times is omitted in this slice, the first slice and the like refer to the memory management information flow CtlStr in the slice indicated by "1" above, so that the addition of the memory management information flow CtlStr can be omitted, and the reduction can be reduced. number of digits.

即,表示省略了上述存储器管理信息流CtlStr1的信息“0”,是在不具有指定信息的片(片3)中参照指定信息时,表示参照指定信息的信息。上述指定信息是指定进行消除的对象图像的信息。That is, the information "0" indicating that the memory management information stream CtlStr1 is omitted is information indicating that the specifying information is referred to when the specifying information is referred to in a slice (slice 3) that does not have specifying information. The designation information described above is information for designating a target image to be erased.

象这样的能省略存储器管理信息流CtlStr的附加的方法,由于在传输过程中存储器管理信息流CtlStr多次遗漏的可能性少,因此很有效。Such an additional method of omitting the memory management stream CtlStr is effective because there is less possibility of the memory management stream CtlStr being missed many times during transmission.

另外,在没有表示省略了存储器管理信息流CtlStr的信息的情况下能够判别有无存储器管理信息流CtlStr,也可以如图33(b)所示,省略该信息。例如,在能区别存储器管理信息流CtlStr的标头与图像编码流VideoStr的标头的情况下,如图33(b)所示,能同判别从各片中的标头到规定位置上是否有规定的信息,来确认是否有表示编码存储器管理信息流CtlStr1的信息化是否已被编码。In addition, if there is no information indicating that the memory management information flow CtlStr is omitted, the presence or absence of the memory management information flow CtlStr can be determined, but this information may be omitted as shown in FIG. 33(b). For example, when the header of the memory management information stream CtlStr can be distinguished from the header of the coded video stream VideoStr, as shown in FIG. To confirm whether there is information indicating whether the coded memory management information stream CtlStr1 has been coded or not.

象这样的能省略存储器管理信息流CtlStr的附加的方法,对削减编码存储器管理信息流CtlStr的次数、减少位数很有效。Such a method of omitting the addition of the memory management stream CtlStr is effective for reducing the number of times of encoding the memory management stream CtlStr and reducing the number of bits.

以上,对编码进行了说明,但可以同样地按片单位进行一个帧的译码。在上述实施方式2中,在多次传输释放不需要的存储器区域的指令时,在图7中示出的图像译码装置200中,分离相当于上述指令的图32中示出的、具有管理信息流CtlStr和图像编码流VideoStr的流结构,将其各自按图像(图像)单位进行输入,但也可以分别按片单位进行输入。Encoding has been described above, but one frame can be decoded on a slice-by-slice basis in the same manner. In Embodiment 2 above, when an instruction to release an unnecessary memory area is transmitted multiple times, in the image decoding device 200 shown in FIG. 7 , the image decoding device 200 shown in FIG. The stream structures of the information stream CtlStr and the coded image stream VideoStr are input in units of pictures (pictures), but may also be input in units of slices.

再有,在其他实施方式中的编码和译码中,也可以同样用片单位编码和译码一个帧。In addition, in encoding and decoding in other embodiments, one frame may also be encoded and decoded in units of slices.

此外,上述实施方式1~10中示出的编码方法和译码方法,可以利用LSI等半导体安装在携带式电话、汽车驾驶导向系统系统等移动通信设备、数码摄像机、数码相机等摄影设备上。此外,作为安装形式,除具有编码器和译码器两种的收发型终端之外,还可以考虑仅有编码器的发送终端和仅有译码器的接收终端的三种形式。Furthermore, the encoding method and decoding method shown in Embodiments 1 to 10 above can be implemented in mobile communication devices such as mobile phones, car navigation systems, digital video cameras, and digital cameras using semiconductors such as LSIs. In addition, as an installation form, in addition to a transmitting and receiving type terminal having two types of encoder and decoder, three forms of a transmitting terminal having only an encoder and a receiving terminal having only a decoder can be considered.

(实施方式11)(Embodiment 11)

下面,对本发明的实施方式11进行说明。Next, Embodiment 11 of the present invention will be described.

在本实施方式中,另外,将用于实现从实施方式1到实施方式10中示出的图像编码方法或图像译码方法的程序,记录在软盘等存储媒体中,就能在独立的计算机系统中简单地实施在上述实施方式中示出的处理。In this embodiment, programs for realizing the image coding method or the image decoding method shown in Embodiments 1 to 10 are recorded on a storage medium such as a floppy disk, and can be executed on an independent computer system. The processing shown in the above-mentioned embodiment is simply carried out in .

图34是使用存储了上述实施方式1的图像编码方法或图像译码方法的软盘,由计算机系统实施的情况的说明图。Fig. 34 is an explanatory diagram showing a case where the image encoding method or the image decoding method according to the first embodiment is implemented by a computer system using a floppy disk storing the image encoding method or the image decoding method.

图34(b)示出从软盘的正面看的外观、剖面结构和软盘,图34(a)示出作为记录媒体主体的软盘的物理格式例。软盘FD1内装在壳F内,在该磁盘的表面,从外周向内周以同心圆状形成多个磁道Tr,各磁道在角度方向上分割为16个扇区Se。因此,在存储了上述程序的软盘中,在上述软盘FD1上分割的区域中记录着作为上述程序的图像编码方法。FIG. 34(b) shows the appearance, cross-sectional structure, and floppy disk viewed from the front of the floppy disk, and FIG. 34(a) shows an example of the physical format of the floppy disk as the main body of the recording medium. The floppy disk FD1 is housed in a case F. On the surface of the magnetic disk, a plurality of tracks Tr are concentrically formed from the outer circumference to the inner circumference, and each track is divided into 16 sectors Se in the angular direction. Therefore, on the floppy disk storing the above-mentioned program, an image encoding method as the above-mentioned program is recorded in a divided area on the above-mentioned floppy disk FD1.

此外,图34(c)示出用于在软盘FD1上进行上述程序的记录播放的结构。在软盘FD1上记录上述程序的情况下,从计算机系统Cs通过软盘驱动器FDD,写入作为上述程序的图像编码方法或图像译码方法。此外,利用软盘FD1内的程序将上述图像编码方法安装到计算机系统中时,利用软盘驱动器FDD从软盘FD1中读出程序,传送到计算机系统Cs中。Furthermore, FIG. 34(c) shows a structure for recording and playing the above-mentioned program on the floppy disk FD1. When the above-mentioned program is recorded on the floppy disk FD1, the image coding method or the image decoding method as the above-mentioned program is written from the computer system Cs through the floppy disk drive FDD. Furthermore, when the above-mentioned image encoding method is installed in the computer system by using the program in the floppy disk FD1, the program is read from the floppy disk FD1 by the floppy disk drive FDD and transferred to the computer system Cs.

再有,在上述说明中,使用软盘作为记录媒体进行了说明,但是,使用光盘也能同样地进行。此外,记录媒体不限于此,IC卡、盒式ROM等,只要能记录程序的都能同样地实施。In addition, in the above description, a floppy disk was used as the recording medium, but the same can be done using an optical disk. In addition, the recording medium is not limited thereto, and any IC card, ROM cassette, etc. can be similarly implemented as long as the program can be recorded.

此外,上述实施方式中示出的图像编码方法和图像译码方法,可以利用LSI等半导体安装在携带式电话、汽车驾驶导向系统等移动通信设备或数字式录像机、普通摄影机等摄影设备上。此外,作为安装形式,可以考虑除具有编码器和译码器的两种的收发型终端之外,还可以是仅有编码器的发送终端和仅有译码器的接收终端的三种形式。In addition, the image coding method and image decoding method shown in the above-mentioned embodiments can be implemented in mobile communication devices such as mobile phones and car navigation systems, or imaging devices such as digital video recorders and ordinary video cameras using semiconductors such as LSI. In addition, as an installation form, in addition to two types of transmitting and receiving terminals having an encoder and a decoder, three types of a transmitting terminal having only an encoder and a receiving terminal having only a decoder can be considered.

在此,对从上述实施方式1到实施方式10中示出的图像编码方法和图像译码方法的应用例和使用了它的系统进行说明。Here, application examples of the image encoding method and image decoding method shown in Embodiments 1 to 10 above and a system using them will be described.

图35是示出实现内容发送服务的内容供给系统ex100的整体结构框图。将通信服务的提供区域分割成期望的大小,在各单元内分别设置作为固定无线局的基站ex107~ex110。Fig. 35 is a block diagram showing the overall configuration of a content supply system ex100 for realizing a content delivery service. The area for providing communication services is divided into desired sizes, and base stations ex107 to ex110 serving as fixed wireless stations are installed in each cell.

该内容供给系统ex100例如通过因特网服务提供商ex102和电话网ex104及基站ex107~ex110,与因特网ex101连接计算机ex111、PDA(personaldigital assistant即,个人数字化处理器)ex112、摄影机ex113、携带式电话ex114、带摄影机的携带式电话ex115等各设备。The content supply system ex100 is connected to the Internet ex101 via, for example, an Internet service provider ex102, a telephone network ex104, and base stations ex107 to ex110. A computer ex111, a PDA (personal digital assistant) ex112, a camera ex113, a mobile phone ex114, Various equipment such as mobile phone ex115 with video camera.

但是,内容供给系统ex100不限定于如图35中的组合,也可以组合其中某一个来连接。此外,也可以不通过固定无线局即基站ex107~ex110,而在电话网ex104上直接连接各设备。However, the content supply system ex100 is not limited to the combination shown in FIG. 35, and any one of them may be combined and connected. In addition, each device may be directly connected to the telephone network ex104 without passing through the base stations ex107 to ex110 which are fixed wireless stations.

摄影机ex113是数字式录像机等能拍摄动画的设备。此外,携带式电话是PDC(Personal Digital Communications即,个人数字化通信)方式、CDMA(Code Division Multiple Access即,码分多路访问)方式、W-CDMA(Wideband-Code Division Multiple Access即,宽带码分多路访问)方式、或GSM(Global System for Mobile Communications即,全球移动通信系统)方式的携带式电话机,或者PHS(Personal Handyphone System即,个人手持电话系统)等,哪一种都可以。The camera ex113 is a device capable of shooting animation such as a digital video recorder. In addition, portable phones are PDC (Personal Digital Communications, personal digital communication) method, CDMA (Code Division Multiple Access, code division multiple access) method, W-CDMA (Wideband-Code Division Multiple Access, broadband code division Multi-access) method, GSM (Global System for Mobile Communications, Global System for Mobile Communications) mobile phone, or PHS (Personal Handyphone System, personal hand-held phone system), etc., whichever is acceptable.

此外,流服务器ex103从摄影机ex113通过基站ex109和电话网ex104进行连接,能使用摄影机ex113来进行基于用户发送的已编码处理的数据的实况发信等。拍摄到的数据的编码处理可以用摄影机ex113进行,也可以用进行数据的发送处理的服务器等进行。此外,也可以通过计算机ex111向流服务器ex103发送用摄影机ex116拍摄到的动画数据。摄影机ex116是数字式摄影机等可摄影静止图像和动画的设备。该情况下,动画数据的编码即可以用摄影机ex116进行,也可以用计算机ex111进行。此外,编码处理是在计算机ex111和摄影机ex116所具有的LSIex117中进行处理。再有,也可以将图像编码和译码用的软件装在能用计算机ex111等读取的记录媒体的任一种存储媒体(CD-ROM、软盘、硬盘等)中。另外,也可以用带摄影机的携带式电话ex115发送动画数据。这时的动画数据是用携带式电话ex115所具有的LSI进行编码处理后的数据。In addition, the streaming server ex103 is connected from the camera ex113 to the telephone network ex104 via the base station ex109, and can use the camera ex113 to perform live transmission based on encoded data sent by the user. The encoding processing of the captured data may be performed by the camera ex113, or may be performed by a server or the like that performs data transmission processing. In addition, video data captured by the camera ex116 may be transmitted to the streaming server ex103 via the computer ex111. The camera ex116 is a device capable of shooting still images and movies, such as a digital video camera. In this case, encoding of video data may be performed by the camera ex116 or the computer ex111. In addition, encoding processing is performed in the LSI ex117 included in the computer ex111 and the camera ex116. Furthermore, the software for image encoding and decoding may be stored in any storage medium (CD-ROM, floppy disk, hard disk, etc.) that can be read by the computer ex111 or the like. In addition, video data can also be transmitted by the mobile phone ex115 with a video camera. The video data at this time is encoded by the LSI included in the mobile phone ex115.

在该内容供给系统ex100中,一方面,与上述实施方式同样地对用户用摄影机ex113和摄影机(camera)ex116等拍摄的内容(例如,摄影了音乐实况的影像等)进行编码处理,并向流服务器ex103发送,另一方面,流服务器ex103对有请求的客户终端流发送上述内容数据。作为客户终端,有能进行对上述已编码处理的数据进行译码的计算机ex111、PDAex112、摄影机ex113、携带式电话ex114等。通过这样做,内容供给系统ex100能在客户终端接收已编码的数据并进行播放,另外,能在客户终端实时地接收、译码、播放,因此是能实现个人广播的系统。In this content supply system ex100, on the one hand, the content captured by the user with the camera ex113, camera ex116, etc. The server ex103 transmits, and on the other hand, the streaming server ex103 stream transmits the above content data to the requesting client terminal. As client terminals, there are computers ex111, PDA ex112, video cameras ex113, mobile phones ex114, etc. capable of decoding the encoded data. By doing so, the content supply system ex100 can receive encoded data at the client terminal and play it back, and can receive, decode, and play it at the client terminal in real time, so it is a system that can realize personal broadcasting.

在构成该系统的各设备的编码和译码中,也可以使用在上述各实施方式中示出的图像编码方法或图像译码方法。The image encoding method or image decoding method shown in the above-mentioned embodiments may also be used for encoding and decoding of each device constituting the system.

作为一例,对携带式电话进行说明。As an example, a mobile phone will be described.

图36是示出使用了在上述实施方式中说明了的图像编码方法和图像译码方法的携带式电话ex115的图。携带式电话ex115具有下列部分:用于与基站ex110之间收发电波的天线ex201;CCD摄影机等能拍摄影像和静止图像的摄影机部ex203;液晶显示器等显示部ex202,显示用摄影机部ex203摄影到的影像和用天线ex201接收到的影像等被译码了的数据;由操作键ex204群构成的主体部;用于进行声音输出的扬声器等声音输出部ex208;用于进行声音输入的话筒等声音输入部ex205;记录媒体ex207,用于保存摄影到的动画或静止图像数据、接收到的邮件数据、动画数据或静止图像数据等已编码的数据或已译码的数据;用于能在携带式电话ex115中装入记录媒体ex207的卡槽部ex206。记录媒体ex207是SD卡等在塑料壳体内电气地装入能改写和擦除的不易失存储器即EEPROM(Electronically Erasable and ProgrammableRead Only Memory即,电可擦可编程只读存储器)的快闪存储器元件的装置。FIG. 36 is a diagram showing a mobile phone ex115 using the image coding method and the image decoding method described in the above-mentioned embodiments. The mobile phone ex115 has the following parts: an antenna ex201 for transmitting and receiving radio waves to and from the base station ex110; a camera unit ex203 capable of taking video and still images such as a CCD camera; and a display unit ex202 such as a liquid crystal display for displaying images captured by the camera unit ex203. Decoded data such as images and images received by the antenna ex201; a main body composed of a group of operation keys ex204; an audio output section ex208 such as a speaker for outputting audio; and an audio input such as a microphone for inputting audio Part ex205; recording medium ex207, used to store encoded data or decoded data such as photographed video or still image data, received mail data, video data or still image data; The card slot ex206 of the recording medium ex207 is inserted into the ex115. The recording medium ex207 is a flash memory element such as an SD card that is electrically loaded into a plastic case that can be rewritten and erased, that is, EEPROM (Electronically Erasable and Programmable Read Only Memory). device.

另外,用图37对携带式电话ex115进行说明。携带式电话ex115对主控制部ex311,通过同步总线ex313,相互连接着电源电路部ex310、操作输入控制部ex304、图像编码部ex312、摄影机接口部ex303、LCD(Liquid CrystalDisplay即,液晶显示器)控制部ex302、图像译码部ex309、多重分离部ex308、记录播放部ex307、调制解调电路部ex306和声音处理部ex305。主控制部ex311对包括显示部ex202和操作键ex204的主体部的各部分进行统一控制。In addition, the mobile phone ex115 will be described with reference to FIG. 37 . The mobile phone ex115 is connected to the main control unit ex311 through the synchronous bus ex313, and the power supply circuit unit ex310, the operation input control unit ex304, the image coding unit ex312, the camera interface unit ex303, and the LCD (Liquid Crystal Display) control unit are connected to each other. ex302, image decoding unit ex309, multiple separation unit ex308, recording and playback unit ex307, modulation and demodulation circuit unit ex306, and sound processing unit ex305. The main control unit ex311 collectively controls each part of the main body including the display unit ex202 and the operation keys ex204.

电源电路部ex310若由用户操作成通话结束和电源键处于开通状态,则通过由电源向各部分供给电力,来启动带摄影机的数字携带式电话ex115使其处于可工作的状态。The power supply circuit part ex310 activates the digital mobile phone with camera ex115 to be in an operable state by supplying power to each part from the power supply when the call is ended and the power key is turned on by the user.

携带式电话ex115基于由CPU、ROM和RAM等构成的主控制部ex311的控制,在声音通话模式时,利用声音处理部ex305将用声音输入部ex205集音到的声音信号转换成数字声音数据,将其用调制解调电路部ex306进行频谱扩散处理,在由收发信电路部ex301实施了数字模拟转换处理和频率变换处理之后,通过天线ex201发送。此外,携带式电话机ex115在声音通话模式时,放大由天线ex201接收到的接收数据,并对所述接收的数据实施频率变换处理和模拟数字转换处理,用调制解调电路部ex306进行频谱逆扩散处理,并用声音处理部ex305转换成模拟声音数据之后,将其通过声音输出部ex208输出。The portable phone ex115 converts the voice signal collected by the voice input unit ex205 into digital voice data by the voice processing unit ex305 under the control of the main control unit ex311 composed of CPU, ROM and RAM, etc. It is subjected to spectrum diffusion processing by the modulation and demodulation circuit unit ex306, and is transmitted through the antenna ex201 after digital-to-analog conversion processing and frequency conversion processing are performed by the transceiver circuit unit ex301. In addition, when the cellular phone ex115 is in the voice communication mode, it amplifies the reception data received by the antenna ex201, performs frequency conversion processing and analog-to-digital conversion processing on the received data, and performs spectrum inversion by the modem circuit part ex306. Diffusion processing, converted into analog audio data by the audio processing unit ex305, and then output through the audio output unit ex208.

另外,在数据通信模式时发送电子邮件的情况下,由主体部的操作键ex204的操作输入的电子邮件的文本数据,通过操作输入控制部ex304向主控制部ex311发送。主控制部ex311用调制解调部ex 306对文本数据进行频谱扩散处理,在用收发信电路部ex301实施了数字模拟转换处理和频率变换处理之后,通过天线ex201,向基站ex110发送。Also, when sending an e-mail in the data communication mode, the text data of the e-mail input by operating the operation keys ex204 of the main body is sent to the main control unit ex311 through the operation input control unit ex304. The main control unit ex311 performs spectrum diffusion processing on the text data by the modem unit ex306, performs digital-to-analog conversion processing and frequency conversion processing by the transceiver circuit unit ex301, and transmits it to the base station ex110 through the antenna ex201.

在数据通信模式时发送图像数据的情况下,通过摄影机接口部ex303,向图像编码部ex312供给用摄影机部ex203拍摄到的图像数据。此外,在不发送图像数据的情况下,也可以通过摄影机接口部ex303和LCD控制部ex302,在显示部ex202直接显示用摄影机部ex203摄像到的图像数据。When transmitting image data in the data communication mode, the image data captured by the camera unit ex203 is supplied to the image coding unit ex312 through the camera interface unit ex303. In addition, when the image data is not transmitted, the image data captured by the camera unit ex203 may be directly displayed on the display unit ex202 through the camera interface unit ex303 and the LCD control unit ex302.

图像编码部ex312的结构具有已在本申请中说明了的图像编码装置,利用在上述实施方式示出的图像编码装置中使用的编码方法,将由摄影机部ex203供给的图像数据进行压缩编码,转换成编码图像数据,将其向多重分离部ex308发送。此外,与此同时,携带式电话机ex115将由摄影机部ex203在摄像中利用声音输入部ex205集音到的声音作为数字声音数据,通过声音处理部ex305向多重分离部ex308送出。The structure of the image encoding unit ex312 includes the image encoding device described in this application, and compresses and encodes the image data supplied from the camera unit ex203 by using the encoding method used in the image encoding device described in the above-mentioned embodiments, and converts it into The coded image data is sent to the multiplexing unit ex308. At the same time, the mobile phone ex115 sends the voice collected by the camera unit ex203 by the voice input unit ex205 during shooting as digital voice data to the multiplexing unit ex308 through the voice processing unit ex305.

多重分离部ex308用规定的方式,将由图像编码部ex312供给的编码图像数据和由声音处理部ex305供给的声音数据进行多重化,由调制解调电路部ex306对其结果得到的多重数据进行频谱扩散处理,在由收发信电路部ex301实施了数字模拟转换处理和频率变换处理之后,通过天线ex201发送。The multiplexing unit ex308 multiplexes the encoded image data supplied from the image encoding unit ex312 and the audio data supplied from the audio processing unit ex305 in a predetermined manner, and the resulting multiplexed data is subjected to spectrum diffusion by the modem circuit unit ex306. The processing is performed through the antenna ex201 after digital-to-analog conversion processing and frequency conversion processing are performed by the transceiver circuit unit ex301.

在数据通信模式时接收与首页链接的动画图像文件数据的情况下,用调制解调电路部ex306对通过天线ex201从基站ex110接收到的接收数据频谱逆扩散处理,将其结果得到的多重化数据向多重分离部ex308发送。In the case of receiving video image file data linked to the top page in the data communication mode, the reception data received from the base station ex110 through the antenna ex201 is subjected to spectral inverse diffusion processing by the modem circuit unit ex306, and the resultant multiplexed data is obtained. Send to the multiple separation unit ex308.

此外,为对通过天线ex201接收到的多重数据进行编码,多重分离部ex308通过分离多重化数据,分成图像数据位流和声音数据位流,通过同步总线ex313向图像译码部ex309供给该编码图像数据的,并向声音处理部ex305供给该声音数据。In addition, in order to encode the multiplexed data received via the antenna ex201, the multiplexed data is separated by the demultiplexing unit ex308 into an image data bit stream and an audio data bit stream, and the encoded image is supplied to the image decoding unit ex309 through the synchronous bus ex313. data, and supply the audio data to the audio processing unit ex305.

接着,图像译码部ex309的结构具有已在本申请发明中说明了的图像译码装置,通过用对应于上述实施方式中示出的编码方法的译码方法,对图像数据的位流进行译码,生成播放动画图像数据,将其通过LCD控制部ex302向显示部ex202供给,这样,显示例如与首页链接的动画图像文件中包含的动画数据。与此同时,声音处理部ex305在将声音数据转换成模拟声音数据之后,向声音输出部ex208供给,这样,播放例如与首页链接的动画图像文件中包含的声音数据。Next, the configuration of the image decoding unit ex309 includes the image decoding device described in the present invention, and decodes the bit stream of image data by using a decoding method corresponding to the encoding method shown in the above-mentioned embodiment. code to generate playback moving image data, and supply it to the display unit ex202 through the LCD control unit ex302, and thus display, for example, the moving image data included in the moving image file linked to the top page. At the same time, the audio processing unit ex305 converts the audio data into analog audio data, and supplies the audio data to the audio output unit ex208, so that, for example, the audio data included in the animation image file linked to the top page is played.

再有,不限于上述系统的例子,最近,利用卫星和地面波进行的数字广播成为热门话题,如图38所示,也可以在数字广播用系统中组合至少一种上述实施方式的图像编码装置或图像译码装置。具体地说,在广播电台ex409中,通过电波向通信或广播卫星ex410传输影像信息的位流。接收到该位流的广播卫星ex410,发送广播用电波,由具有卫星广播接收设备的家庭天线ex406接收该电波,由电视机(接收机)ex401或机顶盒设备(STB)ex407等装置将位流进行译码并播放。此外,也可以在将记录在记录媒体CD和DVD等存储媒体ex402上的位流进行读取并播放的装置ex403上,安装上述实施方式中示出的图像译码装置。该情况下,在监视器ex404上显示播放的影像信号。此外,也可以考虑在与有线电视用的电缆ex405或卫星/地面波广播的天线ex406连接的机顶盒设备ex407内安装图像译码装置,用电视机的监视器ex408进行播放的结构。这时,不仅在机顶盒设备,也可以在电视机内装入图像译码装置。此外,也可以用具有天线ex411的车ex412从卫星ex410或基站ex107等接收信号,在车ex412所具有的汽车驾驶导向系统ex413等显示装置中播放动画。Furthermore, without being limited to the example of the above-mentioned system, recently, digital broadcasting using satellites and terrestrial waves has become a hot topic, and as shown in FIG. or image decoding means. Specifically, the broadcast station ex409 transmits a bit stream of video information to the communication or broadcast satellite ex410 via radio waves. The broadcast satellite ex410 receiving the bit stream transmits radio waves for broadcasting, and the radio waves are received by the home antenna ex406 equipped with satellite broadcast receiving equipment, and the bit stream is processed by devices such as a TV (receiver) ex401 or a set-top box (STB) ex407. Decode and play. In addition, the image decoding device shown in the above-mentioned embodiment may be installed in the device ex403 which reads and plays the bit stream recorded on the storage medium ex402 such as the recording medium CD or DVD. In this case, the broadcast video signal is displayed on the monitor ex404. In addition, a configuration may be considered in which an image decoding device is installed in a set-top box ex407 connected to a cable ex405 for cable TV or an antenna ex406 for satellite/terrestrial broadcasting, and broadcast on a TV monitor ex408. In this case, not only a set-top box device but also an image decoding device may be incorporated in a television. In addition, a car ex412 equipped with an antenna ex411 may receive signals from a satellite ex410, a base station ex107, etc., and an animation may be played on a display device such as a car navigation system ex413 included in the car ex412.

另外,也可以用上述实施方式中示出的图像编码装置将图像信号进行编码,并记录在记录媒体中。作为具体例,有在DVD盘ex421中记录图像信号的DVD记录器和在硬盘中记录的盘式记录器等的记录器ex420。另外,也可以记录在SD卡ex422中。若记录器ex420具有上述实施方式中示出的图像译码装置,则能播放记录在DVD盘ex421和SD卡ex422中的图像信号,用监视器ex408显示。In addition, an image signal may be encoded by the image encoding device described in the above-mentioned embodiments, and recorded on a recording medium. As specific examples, there is a recorder ex420 such as a DVD recorder for recording image signals on a DVD disk ex421 and a disk recorder for recording on a hard disk. In addition, it can also be recorded in the SD card ex422. If the recorder ex420 has the image decoding device shown in the above-mentioned embodiments, the image signals recorded on the DVD disk ex421 and the SD card ex422 can be played back and displayed on the monitor ex408.

再有,汽车驾驶导向系统ex413的结构可以是例如在图37中示出的结构中除去摄影机部ex203和摄影机接口部ex303、图像编码部ex312的结构,可以考虑用计算机ex111和电视机(接收机)ex401等代替所述去除的部分。Furthermore, the structure of the car driving guidance system ex413 may be, for example, a structure in which the camera unit ex203, the camera interface unit ex303, and the image coding unit ex312 are removed from the structure shown in FIG. ) ex401 etc. to replace the removed part.

此外,上述携带式电话ex114等终端可以是除具有编码器和译码器两种的收发型终端之外,还可以是仅有编码器的发送终端和仅有译码器的接收终端的三种安装形式。In addition, terminals such as the above-mentioned mobile phone ex114 may be of three types: a transmitting terminal having only an encoder and a receiving terminal having only a decoder, in addition to two types of transmitting and receiving terminals having encoders and decoders. installation form.

如上,就能在上述的某一个设备和系统中使用上述实施方式中示出的图像编码方法或图像译码方法,通过使用本发明,能得到上述实施方式中说明的效果。As described above, the image coding method or image decoding method shown in the above-mentioned embodiment can be used in any of the above-mentioned devices and systems, and the effects described in the above-mentioned embodiment can be obtained by using the present invention.

本发明不仅限定于上述实施方式,可以在不脱离本发明的范围内作各种各样的变形和修正。The present invention is not limited to the above-described embodiments, and various modifications and corrections can be made without departing from the scope of the present invention.

工业上利用的可能性Possibility of industrial use

本发明的图像编码装置作为在具有通信功能的个人计算机、PDA、数字广播的广播电台和携带式电话机等中具有的图像编码装置,非常有用。The image encoding device of the present invention is very useful as an image encoding device included in a personal computer having a communication function, a PDA, a digital broadcasting station, a mobile phone, and the like.

此外,本发明的图像译码装置作为在具有通信功能的个人计算机、PDA、接收数字广播的STB和携带式电话机等中具有的图像译码装置,非常有用。Also, the image decoding device of the present invention is very useful as an image decoding device included in a personal computer having a communication function, a PDA, an STB receiving digital broadcasting, a mobile phone, and the like.

Claims (4)

1.一种图像编码方法,参照从存储器内保存着的多个参照图像中选择的参照图像进行编码,包括:1. An image encoding method, encoding with reference to a reference image selected from a plurality of reference images stored in a memory, comprising: 参照所选择的参照图像,对编码对象图像进行编码;Encoding the encoding target image with reference to the selected reference image; 将用于管理存储器中保存着的参照图像的第一存储器管理信息进行编码;encoding first memory management information for managing reference images stored in the memory; 附随于所述已被编码的编码对象图像,输出被编码的所述第一存储器管理信息;outputting the encoded first memory management information along with the encoded encoding target image; 所述第一存储器管理信息已经被编码,并且判断对所述第一存储器管理信息再次进行编码和输出时,将所述第一存储器管理信息作为第二存储器管理信息再次进行编码,并且将被编码的所述第二存储器管理信息附随于与所述编码对象图像不同的并且已被编码的图像,并输出被编码的所述第二存储器管理信息。The first memory management information has been encoded, and when it is judged that the first memory management information is to be encoded and output again, the first memory management information is encoded again as the second memory management information, and will be encoded The second memory management information is attached to an encoded image different from the encoding target image, and the encoded second memory management information is output. 2.如权利要求1所述的图像编码方法,其特征在于,所述第一和第二存储器管理信息是指定所述存储器中成为不需要而释放的存储器区域的信息。2. The image coding method according to claim 1, wherein the first and second memory management information are information specifying a memory area in the memory that is released as unnecessary. 3.一种图像编码装置,参照从存储器内保存着的多个参照图像中选择的参照图像进行编码,包括:3. An image encoding device for encoding with reference to a reference image selected from a plurality of reference images stored in a memory, comprising: 图像编码单元,参照所述选择的参照图像,对编码对象图像进行编码;The image encoding unit encodes the encoding object image with reference to the selected reference image; 管理信息编码单元,将用于管理所述存储器中保存着的参照图像的第一存储器管理信息进行编码;a management information encoding unit, configured to encode the first memory management information used to manage the reference images stored in the memory; 存储器信息控制单元,通过控制使所述被编码的第一存储器管理信息附随于所述已被编码的编码对象图像,并使被编码的所述第一存储器管理信息输出;a memory information control unit, by controlling the encoded first memory management information to be attached to the encoded encoding target image, and output the encoded first memory management information; 在所述第一存储器管理信息已经被编码时,所述存储器信息控制单元判断对所述第一存储器管理信息再次进行编码和输出时,所述管理信息编码单元将所述第一存储器管理信息作为第二存储器管理信息再次进行编码,When the first memory management information has been encoded, and the memory information control unit judges to encode and output the first memory management information again, the management information encoding unit takes the first memory management information as The second memory management information is encoded again, 所述存储器信息控制单元通过控制使被编码的所述第二存储器管理信息附随于与所述编码对象图像不同的并且已被编码的图像,并使被编码的所述第二存储器管理信息输出。The memory information control unit controls to attach the encoded second memory management information to an encoded image different from the encoding target image, and to output the encoded second memory management information. 4.如权利要求3所述的图像编码装置,其特征在于,所述第一和第二存储器管理信息是指定所述存储器中成为不需要而释放的存储器区域的信息。4. The image encoding device according to claim 3, wherein the first and second memory management information are information specifying a memory area in the memory to be released as unnecessary.
CNB038002353A 2002-04-12 2003-04-10 Image encoding method and image decoding method Expired - Lifetime CN100438631C (en)

Applications Claiming Priority (8)

Application Number Priority Date Filing Date Title
JP110424/2002 2002-04-12
JP2002110424 2002-04-12
US37765602P 2002-05-06 2002-05-06
US60/377,656 2002-05-06
JP190955/2002 2002-06-28
JP2002190955 2002-06-28
JP2003049711A JP4215197B2 (en) 2002-04-12 2003-02-26 Image encoding method and image decoding method
JP49711/2003 2003-02-26

Related Child Applications (2)

Application Number Title Priority Date Filing Date
CN 200810170028 Division CN101483773B (en) 2002-04-12 2003-04-10 Image encoding method and image encoding device
CN 200810170022 Division CN101483772B (en) 2002-04-12 2003-04-10 Image encoding method and image encoding device

Publications (2)

Publication Number Publication Date
CN1509575A CN1509575A (en) 2004-06-30
CN100438631C true CN100438631C (en) 2008-11-26

Family

ID=29255480

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB038002353A Expired - Lifetime CN100438631C (en) 2002-04-12 2003-04-10 Image encoding method and image decoding method

Country Status (16)

Country Link
US (3) US7167591B2 (en)
EP (3) EP2178304B1 (en)
JP (1) JP4215197B2 (en)
KR (2) KR100985634B1 (en)
CN (1) CN100438631C (en)
AU (1) AU2003236032B2 (en)
BR (3) BR0303673A (en)
CA (1) CA2448970C (en)
DK (1) DK3096515T3 (en)
ES (1) ES2683241T3 (en)
HU (1) HUE038680T2 (en)
MX (1) MXPA03011407A (en)
MY (1) MY135229A (en)
PT (1) PT3096515T (en)
TW (1) TWI262024B (en)
WO (1) WO2003088677A1 (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100612003B1 (en) * 2000-02-26 2006-08-11 삼성전자주식회사 Apparatus and method for bit stream transmission and reception in communication network
US7310373B2 (en) 2001-11-06 2007-12-18 Matsushita Electric Industrial Co., Ltd. Moving picture coding method, and moving picture decoding method
ES2379265T3 (en) * 2003-03-03 2012-04-24 Panasonic Corporation Video decoding procedure
CN101677383B (en) 2004-04-28 2013-05-29 松下电器产业株式会社 Stream generating device and method, stream reproducing device, method and system, stream recording method
US8195037B2 (en) * 2004-11-12 2012-06-05 Pelco, Inc. Apparatus and method of storing video data
JP2006229457A (en) * 2005-02-16 2006-08-31 Matsushita Electric Ind Co Ltd Image decoder and memory management apparatus
WO2007069579A1 (en) * 2005-12-12 2007-06-21 Nec Corporation Moving image decoding method, moving image decoding apparatus, and program of information processing apparatus
US8711933B2 (en) * 2010-08-09 2014-04-29 Sony Computer Entertainment Inc. Random access point (RAP) formation using intra refreshing technique in video coding
TW201210337A (en) 2010-08-18 2012-03-01 Alpha Imaging Technology Corp High resolution digital image capturing apparatus and reference pixel memory storage space configuration method
EP2749027B1 (en) 2011-08-25 2020-04-29 Sun Patent Trust Methods and apparatuses for encoding and decoding video using updated buffer description
BR112013020486B1 (en) 2011-09-07 2022-07-19 Sun Patent Trust IMAGE ENCODING METHOD, IMAGE DECODING METHOD, IMAGE ENCODING APPARATUS, IMAGE DECODING APPARATUS AND IMAGE ENCODING AND DECODING APPARATUS
WO2013042329A1 (en) 2011-09-19 2013-03-28 パナソニック株式会社 Image encoding method, image decoding method, image encoding device, image decoding device, and image encoding-decoding device
RU2625944C2 (en) 2011-10-19 2017-07-19 Сан Пэтент Траст Image encoding method, image decoding method, image coding device, decoding device and image decoding device and image encoding
JP5727398B2 (en) 2012-01-26 2015-06-03 日本電信電話株式会社 Moving picture coding method, moving picture coding apparatus, and moving picture coding program
US10419760B2 (en) 2014-09-29 2019-09-17 Sony Interactive Entertainment Inc. Picture quality oriented rate control for low-latency streaming applications
US10003813B2 (en) 2015-06-25 2018-06-19 Samsung Electronics Co., Ltd. Method and system for decoding by enabling optimal picture buffer management
KR101717898B1 (en) 2015-09-11 2017-03-20 홍성무 Multi skills gridiron device for roaster which using direct fire power
JP6943091B2 (en) * 2017-09-06 2021-09-29 コニカミノルタ株式会社 Image processing equipment, image processing system and programs
CN115048184B (en) * 2022-06-20 2025-03-14 在线途游(北京)科技有限公司 A method and device for optimizing execution of interpreter instructions

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6084637A (en) * 1996-06-28 2000-07-04 Hitachi, Ltd. Decoding and displaying device for coded picture data
CN1290108A (en) * 1999-09-29 2001-04-04 松下电器产业株式会社 Image decoding device and method

Family Cites Families (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US2316279A (en) * 1942-03-30 1943-04-13 Raymond H Osbrink Apparatus for manufacturing mold members
US5291592A (en) * 1989-05-15 1994-03-01 Sharp Kabushiki Kaisha System having document scanner for optically scanning information whereby a first information contains control information indicating a number of sheets to be scanned
JP3103151B2 (en) * 1990-09-03 2000-10-23 富士写真フイルム株式会社 Electronic still camera and operation control method thereof
US6400996B1 (en) * 1999-02-01 2002-06-04 Steven M. Hoffberg Adaptive pattern recognition based control system and method
US5289276A (en) * 1992-06-19 1994-02-22 General Electric Company Method and apparatus for conveying compressed video data over a noisy communication channel
KR940008389A (en) * 1992-09-30 1994-04-29 가나이 쯔또무 Image signal processing device and information transmitting / receiving device using the same
US5579393A (en) * 1994-06-21 1996-11-26 Escan, Inc. System and method for secure medical and dental record interchange
FR2724243B1 (en) 1994-09-06 1997-08-14 Sgs Thomson Microelectronics MULTI-TASK PROCESSING SYSTEM
DE69525424T2 (en) * 1994-11-25 2002-10-02 Koninklijke Philips Electronics N.V., Eindhoven Method and device for decoding coded video signals
US5867660A (en) * 1995-05-11 1999-02-02 Bay Networks, Inc. Method and apparatus for communicating between a network workstation and an internet
US6542925B2 (en) * 1995-05-30 2003-04-01 Roy-G-Biv Corporation Generation and distribution of motion commands over a distributed network
US5905866A (en) * 1996-04-30 1999-05-18 A.I. Soft Corporation Data-update monitoring in communications network
US6298386B1 (en) * 1996-08-14 2001-10-02 Emc Corporation Network file server having a message collector queue for connection and connectionless oriented protocols
JP3733984B2 (en) * 1997-01-29 2006-01-11 富士ゼロックス株式会社 Information storage device and information storage method
US6463209B2 (en) * 1997-02-18 2002-10-08 Thomson Licensing Sa Controlled data flow
US5974463A (en) * 1997-06-09 1999-10-26 Compaq Computer Corporation Scaleable network system for remote access of a local network
US6823016B1 (en) * 1998-02-20 2004-11-23 Intel Corporation Method and system for data management in a video decoder
US6519646B1 (en) * 1998-09-01 2003-02-11 Sun Microsystems, Inc. Method and apparatus for encoding content characteristics
US6668374B1 (en) * 1999-07-08 2003-12-23 Axis Ab Method and apparatus for upgrading firmware in an embedded system
US6590503B1 (en) * 2000-01-28 2003-07-08 Nintendo Of America Inc. Remote control system
JP2001209573A (en) * 2000-01-28 2001-08-03 Toshiba Corp Memory address converter
JP2001258039A (en) 2000-03-14 2001-09-21 Victor Co Of Japan Ltd Variable image rate encoder, variable image rate decoder, variable image rate coding method, and variable image rate decoding method
US6940911B2 (en) 2000-03-14 2005-09-06 Victor Company Of Japan, Ltd. Variable picture rate coding/decoding method and apparatus
US6804299B2 (en) * 2001-06-15 2004-10-12 Microsoft Corporation Methods and systems for reducing requantization-originated generational error in predictive video streams using motion compensation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6084637A (en) * 1996-06-28 2000-07-04 Hitachi, Ltd. Decoding and displaying device for coded picture data
CN1290108A (en) * 1999-09-29 2001-04-04 松下电器产业株式会社 Image decoding device and method

Also Published As

Publication number Publication date
TWI262024B (en) 2006-09-11
US7221803B2 (en) 2007-05-22
PT3096515T (en) 2018-10-11
AU2003236032A1 (en) 2003-10-27
KR20080023763A (en) 2008-03-14
KR100942344B1 (en) 2010-02-12
US20040146212A1 (en) 2004-07-29
AU2003236032B2 (en) 2008-05-15
CN1509575A (en) 2004-06-30
JP2004088723A (en) 2004-03-18
EP1381238B1 (en) 2016-08-31
TW200412152A (en) 2004-07-01
CA2448970C (en) 2013-03-05
JP4215197B2 (en) 2009-01-28
EP2178304A3 (en) 2010-09-15
WO2003088677A1 (en) 2003-10-23
EP1381238A4 (en) 2006-07-05
US20070041646A1 (en) 2007-02-22
HUE038680T2 (en) 2018-11-28
CA2448970A1 (en) 2003-10-23
US20070041648A1 (en) 2007-02-22
EP2178304A2 (en) 2010-04-21
BR0303673A (en) 2004-04-20
EP1381238A1 (en) 2004-01-14
US7218787B2 (en) 2007-05-15
EP3096515A1 (en) 2016-11-23
MXPA03011407A (en) 2004-06-17
MY135229A (en) 2008-02-29
EP3096515B1 (en) 2018-06-06
BRPI0303673B1 (en) 2019-10-01
EP2178304B1 (en) 2016-09-07
KR100985634B1 (en) 2010-10-05
BRPI0318816B1 (en) 2019-10-01
KR20040099094A (en) 2004-11-26
ES2683241T3 (en) 2018-09-25
US7167591B2 (en) 2007-01-23
DK3096515T3 (en) 2018-08-06

Similar Documents

Publication Publication Date Title
CN100438631C (en) Image encoding method and image decoding method
JP5256243B2 (en) Image decoding method, image decoding apparatus and program
JP2008182730A (en) Transmission apparatus
JP4544879B2 (en) Image coding method, image coding apparatus, and program
CN101483773B (en) Image encoding method and image encoding device
JP4745352B2 (en) Image encoding method and image encoding apparatus
KR100995434B1 (en) Video encoding method and video decoding method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: MATSUSHITA ELECTRIC (AMERICA) INTELLECTUAL PROPERT

Free format text: FORMER OWNER: MATSUSHITA ELECTRIC INDUSTRIAL CO, LTD.

Effective date: 20140926

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20140926

Address after: Seaman Avenue Torrance in the United States of California No. 2000 room 200

Patentee after: PANASONIC INTELLECTUAL PROPERTY CORPORATION OF AMERICA

Address before: Osaka Japan

Patentee before: Matsushita Electric Industrial Co.,Ltd.

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20151112

Address after: Tokyo, Japan

Patentee after: Godo Kaisha IP Bridge 1

Address before: Seaman Avenue Torrance in the United States of California No. 2000 room 200

Patentee before: PANASONIC INTELLECTUAL PROPERTY CORPORATION OF AMERICA

CX01 Expiry of patent term

Granted publication date: 20081126

CX01 Expiry of patent term