KR100962814B1 - Video encoding method and video decoding method - Google Patents

Video encoding method and video decoding method Download PDF

Info

Publication number
KR100962814B1
KR100962814B1 KR1020097018213A KR20097018213A KR100962814B1 KR 100962814 B1 KR100962814 B1 KR 100962814B1 KR 1020097018213 A KR1020097018213 A KR 1020097018213A KR 20097018213 A KR20097018213 A KR 20097018213A KR 100962814 B1 KR100962814 B1 KR 100962814B1
Authority
KR
South Korea
Prior art keywords
picture
memory
encoding
management information
command
Prior art date
Application number
KR1020097018213A
Other languages
Korean (ko)
Other versions
KR20090110927A (en
Inventor
신야 가도노
사토시 곤도
마코토 하가이
기요후미 아베
Original Assignee
파나소닉 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 파나소닉 주식회사 filed Critical 파나소닉 주식회사
Publication of KR20090110927A publication Critical patent/KR20090110927A/en
Application granted granted Critical
Publication of KR100962814B1 publication Critical patent/KR100962814B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/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/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

Landscapes

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

Abstract

화상의 부호화를 행하는 단계(단계 100)와, 불필요한 메모리가 있는지를 판정하는 단계(단계 102)와, 불필요한 메모리가 있는 경우에 불필요한 메모리를 개방하는 메모리 관리정보를 부호화하는 단계(단계 103)와, 불필요한 메모리를 개방하는 단계(단계 104)와, 직전의 화상의 부호화로 불필요한 메모리를 개방하는 메모리 관리정보가 부호화되었는지를 판단하는 단계(단계 105)와, 메모리 관리정보가 부호화된 경우는, 다시 불필요한 메모리를 개방하는 메모리 관리정보를 부호화하는 단계(단계 106)를 포함한다. Encoding the image (step 100), determining whether there is unnecessary memory (step 102), encoding memory management information for opening unnecessary memory when there is unnecessary memory (step 103), The step of opening unnecessary memory (step 104), the step of determining whether the memory management information for opening the unnecessary memory by encoding of the immediately preceding image has been encoded (step 105), and if the memory management information is encoded, unnecessary again Encoding the memory management information to open the memory (step 106).

Description

화상 부호화 방법 및 화상 복호화 방법{VIDEO ENCODING METHOD AND VIDEO DECODING METHOD}Image encoding method and image decoding method {VIDEO ENCODING METHOD AND VIDEO DECODING METHOD}

본 발명은 동화상 신호를 화면간의 상관을 이용하여 효율적으로 압축하는 화상 부호화 방법과 이를 바르게 복호화하는 화상 복호화 방법 및 이를 소프트웨어로 실시하기 위한 프로그램 등에 관한 것이다. The present invention relates to an image encoding method for efficiently compressing a moving image signal using correlation between screens, an image decoding method for correctly decoding the same, a program for implementing the same in software, and the like.

최근, 음성, 화상, 그 이외의 화소값을 통합적으로 취급하는 멀티미디어 시대를 맞이하여, 종래부터의 정보 미디어, 즉 신문, 잡지, 텔레비젼, 전화 등의 정보를 사람에게 전달하는 수단이 멀티미디어의 대상으로 들 수 있게 되었다. 일반적으로, 멀티 미디어란, 문자뿐만 아니라, 도형, 음성, 특히 화상 등을 동시에 관련지어 나타내는 것을 말하는데, 상기 종래의 정보 미디어를 멀티 미디어의 대상으로 하기 위해서는, 그 정보를 디지털 형식으로 하여 나타내는 것이 필수 조건이 된다. In recent years, in the age of multimedia, which integrates audio, images, and other pixel values, a means of delivering information such as information media, such as newspapers, magazines, television, and telephones, to humans has become a subject of multimedia. I could lift it. In general, the term "multimedia" refers not only to text, but also to a figure, voice, and in particular, images and the like. In order to make the conventional information media an object of the multimedia, it is necessary to present the information in a digital format. It becomes a condition.

그런데, 상기 각 정보 미디어가 가지는 정보량을 디지털 정보량으로서 평가해 보면, 문자의 경우 1문자당의 정보량은 1∼2바이트인데 대해, 음성의 경우 1초당 64kbits(전화 품질), 또한 동화상에 대해서는 1초당 100Mbits(현행 텔레비전 수 신 품질) 이상의 정보량이 필요해지고, 상기 정보 미디어로 그 방대한 정보를 디지털 형식으로 그대로 취급하는 것은 현실적이지 않다. 예를 들면, 텔레비전 전화는 64kbps∼1.5Mbps의 전송 속도를 가지는 서비스 종합 디지털망(ISDN : Integrated Services Digital Network)에 의해 이미 실용화되어 있는데, 텔레비전 카메라의 영상을 그대로 ISDN으로 보내는 것은 불가능하다. By the way, when the information amount of each information media is evaluated as digital information amount, the information amount per character is 1 to 2 bytes in case of character, 64kbits per second (telephone quality) for voice, and 100Mbits per second for moving image The amount of information above (current television reception quality) is required, and it is not practical to treat the vast amount of information as it is in digital form with the information media. For example, television telephones have already been put to practical use by an Integrated Services Digital Network (ISDN) having a transmission rate of 64 kbps to 1.5 Mbps. However, it is impossible to directly send an image of a television camera to an ISDN.

그래서, 필요한 것이 정보의 압축 기술이고, 예를 들면, 텔레비전 전화의 경우, ITU-T(국제 전기통신 연합 전기통신 표준화 부문)에서 국제 표준화된 H. 261이나 H. 263 규격의 동화상 압축 기술이 이용되고 있다. 또한, MPEG-1 규격의 정보 압축 기술에 의하면, 통상의 음악용 CD(컴팩트 디스크)에 음성정보와 함께 화상정보를 넣는 것도 가능해진다. Therefore, what is needed is information compression technology, for example, in the case of television telephones, a moving picture compression technology of H. 261 or H. 263 standard which is internationally standardized by ITU-T (International Telecommunication Union Telecommunication Standardization Sector) is used. It is becoming. In addition, according to the MPEG-1 standard information compression technology, it is also possible to embed image information together with audio information in a normal music CD (compact disc).

여기서, MPEG(Moving Picture Experts Group)이란, 동화면 신호의 디지털 압축의 국제규격이고, MPEG-1은 동화면 신호를 1.5Mbps까지, 즉 텔레비전 신호의 정보를 약 100분의 1까지 압축하는 규격이다. 또한, MPEG-1 규격을 대상으로 하는 전송 속도가 주로 약 1.5Mbps로 제한되어 있으므로, 한층더 고화질화의 요구를 만족시키도록 규격화된 MPEG-2에서는 동화상 신호가 2∼15Mbps로 압축된다. Here, MPEG (Moving Picture Experts Group) is an international standard for digital compression of moving picture signals, and MPEG-1 is a standard for compressing moving picture signals up to 1.5 Mbps, that is, about one hundredth of a television signal. . In addition, since the transmission speed for the MPEG-1 standard is mainly limited to about 1.5 Mbps, the moving picture signal is compressed to 2 to 15 Mbps in MPEG-2, which is standardized to satisfy the demand for higher image quality.

또한 현상황에서는, MPEG-1, MPEG-2로 표준화를 진행해 온 작업 그룹(ISO/IEC JTC1/SC29/WG11)에 의해, 보다 압축률이 높은 MPEG-4가 규격화되었다. MPEG-4에서는 당초 저비트 레이트로 효율이 높은 부호화가 가능하게 될 뿐만 아니라, 전송로 오류가 발생해도 주관적인 화질 열화를 작게 할 수 있는 강력한 오류 내성 기술도 도입되어 있다. 또한, ISO/IEC와 ITU의 공동으로 차세대 화면 부호화 방식으로서, JVT(Joint Video Team)의 표준화 활동이 진행되고 있고, 현 시점에서는 조인트·모델2(JM2)이라고 불리는 것이 최신이다. In the present situation, MPEG-4, which has a higher compression ratio, has been standardized by a working group (ISO / IEC JTC1 / SC29 / WG11) that has been standardized to MPEG-1 and MPEG-2. MPEG-4 not only enables efficient encoding at low bit rates, but also introduces powerful error-tolerance technology that can reduce subjective picture quality degradation even if transmission line errors occur. In addition, standardization of Joint Video Team (JVT) is underway as a next-generation picture coding method jointly by ISO / IEC and ITU, and at this point, what is called a joint model 2 (JM2) is the latest.

JVT에서는 종래의 동화상 부호화와 달리, 전방 참조 화상으로서 다수의 화상(픽쳐)으로부터 임의의 화상(픽쳐)을 참조 화상으로서 선택할 수 있다. 여기서, 픽쳐(picture)란 프레임 또는 필드를 나타낸다. In JVT, unlike conventional moving picture coding, an arbitrary picture (picture) can be selected as a reference picture from a plurality of pictures (pictures) as a forward reference picture. Here, a picture represents a frame or a field.

도 1(a)는 메모리에 보존된 다수의 참조 화상으로부터 선택한 화상을 참조하여 부호화하는 화상 부호화의 설명도이다. 도 1(b)는 화상이 보존되는 메모리의 구성을 도시하는 구성도이다. Fig.1 (a) is explanatory drawing of the image coding which encodes with reference to the image selected from the many reference image stored in the memory. Fig. 1B is a block diagram showing the configuration of a memory in which an image is saved.

도 1(b)에 도시하는 바와 같이, 메모리는 단시간 보존 메모리와 장시간 보존 메모리로 구성된다. 단시간 보존 메모리는 직전에 복호화된 몇 화상을 기억하는 것이고, 소위 MPEG-1이나 MPEG-2의 P픽쳐(전방 예측 부호화 픽쳐) 및 B픽쳐(양방향 예측 부호화 픽쳐)의 참조 화상에 상당한다. 장시간 보존 메모리는 단시간 보존 메모리보다도 화상 신호를 장시간 보존하기 위해 이용된다. As shown in Fig. 1B, the memory is composed of a short time storage memory and a long time storage memory. The short-term storage memory stores some pictures decoded immediately before, and corresponds to reference pictures of so-called MPEG-1 or MPEG-2 P pictures (forward predictive coded pictures) and B pictures (bidirectional predictive coded pictures). The long time storage memory is used to store the image signal for a longer time than the short time storage memory.

통상은 단시간 보존 메모리는 FIFO(선입 선출) 메모리이고, 메모리의 상한을 넘은 화상을 단시간 보존 메모리에 저장하는 경우에는, 단시간 보존 메모리내의 가장 오래된 시각의 화상이 제거되어 그 영역에 새로운 화상이 보존된다. 따라서, 통상은 FIFO의 조합에 의해서 메모리로부터 제거된 참조 화상을 참조하고 싶은 경우에는, 그 참조 화상을 미리 단시간 보존 메모리로부터 장시간 보존 메모리로 이동시켜 장시간 보존 메모리내에 보존함으로써 장시간의 참조가 가능해진다. 장시간 메모리는 보존할 영역을 명시하는 방법이고, 동일한 영역을 지정하여 덮어쓰기 하지 않는 한 그 영역에 보존한 픽쳐를 참조 가능하다. Usually, the short-term storage memory is a FIFO (first-in-first-out) memory. When storing an image exceeding the upper limit of the memory in the short-term storage memory, the image of the oldest time in the short-term storage memory is removed and a new image is stored in the area. . Therefore, when it is desired to refer to a reference picture removed from the memory by a combination of FIFOs, a long-term reference is possible by moving the reference picture from the short-term storage memory to the long-term storage memory in advance and storing it in the long-term storage memory. The long-term memory is a method of specifying an area to be saved, and pictures stored in that area can be referred to unless the same area is designated and overwritten.

도 1(a)은 화상 부호화시의 예측 상황을 도시하고 있고, 픽쳐 번호 2의 화상은 픽쳐 번호 0의 화상을 참조하고, 픽쳐 번호 1의 화상은 픽쳐 번호 0 또는 픽쳐 번호 2의 화상을 참조한다. 마찬가지로, 픽쳐 번호 4의 화상은 픽쳐 번호 0, 2의 화상을 참조하고, 픽쳐 번호 6의 화상은 픽쳐 번호 0의 화상을 참조한다. 또한 픽쳐 번호 5의 화상에서는 픽쳐 번호 0, 2, 4, 6의 화상을 참조할 수 있다. FIG. 1 (a) shows a prediction situation at the time of picture coding, the picture of picture number 2 refers to the picture of picture number 0, and the picture of picture number 1 refers to the picture of picture number 0 or picture number 2. . Similarly, the picture of picture number 4 refers to pictures of picture numbers 0 and 2, and the picture of picture number 6 refers to pictures of picture number 0. 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의 화상을 보존할 수 있다. Incidentally, in Fig. 1A, pictures of picture numbers 0, 6, and 12 are referred to for a relatively long time, whereas pictures of picture numbers 2, 4, and 8 are only referred to from pictures after a short time. Therefore, the memory area for storing the image is divided into a short time storage memory and a long time storage memory as shown in FIG. have.

그런데, 이 도 1(a)에 도시하는 것 같이 메모리를 효율적으로 사용하기 위해서는 고도의 메모리 관리가 필요하고, 메모리를 제어하기 위한 구성이 JVT에 도입되어 있다. By the way, as shown in FIG. 1 (a), in order to use the memory efficiently, high memory management is required, and a configuration for controlling the memory is introduced in JVT.

메모리를 제어하는 코맨드는 이하의 것이 있다.The commands for controlling the memory are as follows.

1. 참조 가능한 화상을 선택하는 코맨드1.Command for selecting a referenceable picture

2. 단시간 보존 메모리에서 예측 부호화의 참조 화상으로서 불필요하게 된 픽쳐가 보존되어 있는 메모리 영역을 개방하는 코맨드2. A command to open a memory area in which a picture that is no longer needed as a reference picture of predictive encoding is stored in a short-term storage memory.

3. 단시간 보존 메모리의 내용을 장시간 보존 메모리로 이동하는 코맨드3. A command to move the contents of the short-term storage memory to the long-term storage memory

화상 부호화·복호화에서는 참조 가능한 화상중에서 블록 단위로 예측 오차 가 작은 화상을 참조 화상으로서 선택하기 때문에, 블록 단위로 참조 화상을 지시하는 신호가 필요하다. 미리 참조 가능한 화상을 선택함으로써, 참조 화상의 후보수를 적절한 값으로 압축하고, 블록 단위로 필요한 참조화상 지시신호의 비트수를 절약할 수 있다. In the picture coding / decoding, since a picture having a small prediction error is selected as a reference picture from among the referenceable pictures, a signal indicating the reference picture in block units is required. By selecting a picture that can be referred to in advance, the number of candidates of the reference picture can be compressed to an appropriate value, and the number of bits of the reference picture indicating signal required in units of blocks can be saved.

또한, 단시간 보존 메모리로부터 장시간 보존 메모리로 이동한 경우는, 동일한 내용을 단시간 보존 메모리와 장시간 보존 메모리의 양쪽에 보존하는 것도 불필요하므로, 단시간 보존 메모리 내의 화상을 제거한다. In addition, when moving from the short-term storage memory to the long-term storage memory, it is unnecessary to save the same contents in both the short-term storage memory and the long-term storage memory, so that the image in the short-term storage memory is removed.

도 2(a)(b)는 종래의 화상 부호화 방법 및 화상 복호화 방법을 도시하는 플로우 챠트이다. 2 (a) and 2 (b) are flowcharts illustrating a conventional picture coding method and a picture decoding method.

도 2(a)는 예측 부호화의 참조 화상으로서 불필요하게 된 픽쳐가 보존되어 있는 메모리 영역을 개방할 때의 화상 부호화 장치의 동작을 도시한다. 도 2(a)에 있어서, 우선 화상 부호화 장치는 입력되는 입력 화상을 부호화한다(단계 100). 부호화후에 메모리 내에서 불필요한 영역(이후의 부호화로 참조되지 않는 화상)을 조사하여(단계 101), 불필요한 메모리 영역이 있는지를 판정한다(단계 102). 불필요한 메모리 영역이 있다고 판정했을 때는(단계 102의 Yes), 불필요한 메모리 영역을 개방하는 코맨드를 메모리 관리 정보로서 부호화하고(단계 103), 그 불필요한 메모리 영역을 개방(메모리 내의 화상을 제거)하여(단계 104), 처리를 종료한다. 한편, 화상 부호화 장치는 불필요한 메모리 영역이 없다고 판정한 경우(단계 102의 No)는 단계 103 및 단계 104의 동작은 하지 않고, 처리를 종료한다. Fig. 2A shows the operation of the picture coding apparatus when opening a memory area in which a picture that has become unnecessary as a reference picture of predictive coding is stored. In Fig. 2A, first, the image encoding apparatus encodes an input image (step 100). After encoding, an unnecessary area (image not referred to by subsequent encoding) in the memory is examined (step 101) to determine whether there is an unnecessary memory area (step 102). If it is determined that there is an unnecessary memory area (Yes in step 102), the command for opening the unnecessary memory area is encoded as memory management information (step 103), and the unnecessary memory area is opened (removing the image in the memory) (step 104) The process ends. On the other hand, when the image encoding apparatus determines that there is no unnecessary memory area (No in step 102), the processing in step 103 and step 104 is not performed, and the processing ends.

다음으로 예측 부호화의 참조 화상으로서 불필요하게 된 픽쳐가 보존되어 있 는 메모리 영역을 개방할 때의 화상 복호화 장치가 행하는 동작을, 도 2(b)의 플로우 챠트에 따라 설명한다. 우선, 화상 복호화 장치는 메모리 관리정보를 복호화하고(단계 110), 그리고 부호화 신호로부터 화상 신호를 복호화한다(단계 111). 화상 복호화 장치는 조사한 결과 메모리 개방 코맨드가 있는지를 판정하여(단계 112), 메모리 개방 코맨드가 있으면(단계 112의 Yes), 그 코맨드에서 제거해야 할 화상이 있는지, 혹은 이미 메모리 개방이 완료되었는지를(화상 제거 완료) 판정한다(단계 113). 개방 완료라고 판정하면(단계 113의 Yes), 에러(ERROR)로 한다. JVT에서는 메모리로부터 화상을 제거한 후에 동일한 화상을 다시 제거하는 코맨드를 보내는 것은 금지되어 있고, 따라서 개방이 끝난 메모리를 다시 개방하는 경우에는 에러로 하도록 되어 있기 때문이다. 한편, 화상 복호화 장치는 개방이 완료가 아니라고 판정하면(단계 113의 No), 메모리를 개방하여(단계 114) 처리를 종료한다. 또한, 메모리 개방 코맨드가 없다고 판정한 경우에는(단계 112의 No), 단계 113 및 단계 114의 동작은 행하지 않고, 처리를 종료한다. 또, 단계 110과 단계 111은 순서가 같지 않고 교체해도 상관없다. Next, the operation performed by the picture decoding apparatus when opening a memory area in which a picture that is no longer needed as a reference picture of predictive encoding is stored will be described according to the flowchart of FIG. First, the image decoding device decodes the memory management information (step 110), and decodes the image signal from the coded signal (step 111). The image decoding apparatus determines whether there is a memory open command (step 112), and if there is a memory open command (Yes in step 112), whether there is an image to be removed from the command or whether the memory open command has already been completed ( Image removal is completed) (step 113). If it is determined that the opening is completed (Yes in step 113), an error (ERROR) is set. This is because, in the JVT, a command for removing the same image again after removing the image from the memory is prohibited. Therefore, an error is caused when the opened memory is opened again. On the other hand, if it is determined that the opening is not complete (No in step 113), the image decoding device opens the memory (step 114) to end the processing. If it is determined that there is no memory open command (No in step 112), the operations in steps 113 and 114 are not performed, and the processing ends. Incidentally, the steps 110 and 111 are not in the same order and may be replaced.

도 3(a)(b)는 종래의 다른 화상 부호화 방법 및 화상 복호화 방법을 도시하는 플로우 챠트이다. 3 (a) and 3 (b) are flowcharts showing another conventional image coding method and image decoding method.

도 3(a)는 단시간 보존 메모리로부터 장시간 보존 메모리로 화상을 이동할 때의 화상 부호화 장치가 행하는 동작을 나타낸다. Fig. 3A shows the operation performed by the picture coding apparatus when moving an image from the short time storage memory to the long time storage memory.

도 3(a)에 있어서, 우선, 화상 부호화 장치는 입력 화상을 부호화한다(단계 120). 부호화 후에 장시간 보존 메모리로 이동해야 할 화상이 있는지를 조사하고 (단계 121), 이동해야 할 화상이 있는지를 판정한다(단계 122). 이동해야 할 화상이 있으면(단계 122의 Yes), 어떻게 장시간 보존 메모리로 이동할지를 나타내는 코맨드를 메모리 관리 정보로서 부호화하고(단계 123), 이 코맨드대로 화상을 장시간 보존 메모리로 이동하여(단계 124), 처리를 종료한다. 한편, 화상 부호화 장치는 장시간 보존 메모리로 이동해야 할 화상이 없다고 판정한 경우(단계 122의 No)는 단계 123 및 단계 124의 동작은 행하지 않고, 처리를 종료한다. In Fig. 3A, first, the image encoding device encodes an input image (step 120). After encoding, it is checked whether there is an image to be moved to the storage memory for a long time (step 121), and it is determined whether there is an image to be moved (step 122). If there is an image to be moved (Yes in step 122), a command indicating 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 this command (step 124). The process ends. On the other hand, when the image encoding apparatus determines that there is no image to be moved to the long term storage memory (No in step 122), the operation of step 123 and step 124 is not performed, and the processing ends.

다음으로 단시간 보존 메모리로부터 장시간 보존 메모리로 화상을 이동할 때의 화상 복호화 장치가 행하는 동작을, 도 3(b)의 플로우 챠트에 따라 설명한다. 우선, 화상 복호화 장치가 메모리 관리 정보를 복호화하고(단계 130), 다음에 부호화 신호로부터 화상 신호를 복호화한다(단계 131). 그리고, 화상 복호화 장치는 복호화된 메모리 관리 정보에, 장시간 보존 메모리로 이동하는 코맨드가 있는지를 판정하고(단계 132), 있다고 판정되면(단계 132의 Yes), 다음으로 이 코맨드로 이동해야할 화상이 있는지 혹은 이미 이동 완료(이동후에 제거 완료이므로 화상이 존재하지 않는다)인지를 판정한다(단계 133). JVT에서는 장시간 보존 메모리로 이동한 후에 동일한 화상을 다시 장시간 보존 메모리로 이동하는 코맨드를 보내는 것은 금지되어 있고, 따라서, 장시간 보존 메모리로 이동 완료된 화상을 다시 장시간 보존 메모리로 이동하는 경우에는 에러로 하도록 되어 있다. 따라서, 화상 복호화 장치는 장시간 보존 메모리로 이동 완료라고 판정하면(단계 133의 Yes), 에러(ERROR)로 하고, 이동 완료가 아니라고 판정하면, 장시간 보존 메모리로 이동하여(단계 134) 처리를 종료한다. Next, the operation performed by the image decoding device when moving an image from the short-term storage memory to the long-term storage memory will be described according to the flowchart of FIG. 3B. First, the image decoding device decodes the memory management information (step 130), and then decodes the image signal from the coded signal (step 131). Then, the image decoding apparatus determines whether there is a command to move to the long-term storage memory in the decoded memory management information (step 132), and if it is determined (Yes in step 132), whether there is an image to be moved to this command next. Or, it is determined whether the movement is already completed (the image does not exist since the removal is completed after the movement) (step 133). In JVT, it is forbidden to send a command to move the same image back to the long-term storage memory after moving to the long-term storage memory. Therefore, an error occurs when moving the completed image to the long-term storage memory again. have. Therefore, if the image decoding apparatus determines that the movement is completed to the long time storage memory (Yes in step 133), an error (ERROR) is set. If it is determined that the movement is not completed, the image decoding apparatus moves to the long time storage memory (step 134), and the processing ends. .

한편, 화상 복호화 장치는 장시간 보존 메모리로 이동하는 코맨드가 없다고 판정한 경우에는(단계 132의 No) 단계 133 및 단계 134의 동작은 행하지 않고, 처리를 종료한다. 또, 단계 130과 단계 131은 순서가 같지 않고, 교체해도 상관없다. On the other hand, when the image decoding apparatus determines that no command moves to the long term storage memory (No in step 132), the operations of steps 133 and 134 are not performed, and the processing ends. In addition, the steps 130 and 131 are not in the same order and may be replaced.

도 4(a)(b)는 종래의 다른 화상 부호화 방법 및 화상 복호화 방법을 도시하는 플로우 챠트이다. 4 (a) and 4 (b) are flowcharts showing another conventional image encoding method and image decoding method.

우선, 참조 가능한 화상을 선택할 때의 화상 부호화 장치가 행하는 동작에 대해, 도 4(a)의 플로우 챠트에 따라 설명한다. First, the operation performed by the picture coding apparatus at the time of selecting a referenceable picture will be described according to the flowchart of Fig. 4A.

우선, 화상 부호화 장치는 피부호화 화상과 상관이 높다고 예상되는 참조 화상(통상은 시간적으로 근접한 참조 화상)을 참조 화상의 후보로서 선택한다(단계 200). 다음에 선택한 참조 화상의 후보를 나타내는 지시 정보(메모리 관리 정보의 일종)를 부호화하고(단계 201), 선택한 참조 화상의 후보중에서 블록 단위로 적절한 참조 화상을 참조하여 부호화하고(단계 202), 처리를 종료한다. 또, 단계 201과 단계 202는 순서가 같지 않고, 교체해도 상관없다. First, the picture coding apparatus selects a reference picture (typically a reference picture that is close in time) that is expected to have a high correlation with the skin coded picture (step 200). Next, the instruction information (a kind of memory management information) indicating the candidate of the selected reference picture is encoded (step 201). Among the candidates of the selected reference picture, the reference information is encoded with reference to the appropriate reference picture in block units (step 202). Quit. Incidentally, the steps 201 and 202 are not in the same order and may be replaced.

다음에 참조 가능한 화상을 선택할 때의 화상 복호화 장치가 행하는 동작에 대해, 도 4(b)의 플로우 챠트에 따라 설명한다. Next, the operation performed by the picture decoding apparatus at the time of selecting a referenceable picture will be described according to the flowchart of FIG. 4 (b).

우선, 화상 복호화 장치는 메모리 관리 정보의 일종인 지시 정보를 복호화하여(단계 210), 그 결과로서 참조 화상의 후보를 메모리중에서 선택하고(단계 211), 선택한 참조 화상의 후보중에서 블록 단위로 적절한 참조 화상을 선택하여 참조하면서 복호화하여(단계 212), 처리를 종료한다. First, the picture decoding apparatus decodes the indication information, which is a kind of memory management information (step 210), and as a result, selects a candidate of the reference picture from the memory (step 211), and selects an appropriate reference in block units from among the candidates of the selected reference picture. The image is selected and decoded with reference to it (step 212), and the processing ends.

그런데, 이러한 종래의 화상 부호화 방법 및 화상 복호화 방법에서는 불필요한 화상을 메모리로부터 제거하는 코맨드나, 화상을 단시간 보존 메모리로부터 장시간 보존 메모리로 이동하는 코맨드를 화상 부호화 장치로 부호화하여 출력하고, 화상 복호화 장치에 전송하여 복호화하는데, 이 전송하는 회수가 1개의 픽쳐만에 한정되어 있으므로, 그 코맨드를 동반하는 픽쳐가 전송 에러 등으로 소실된 경우에는 메모리 내의 화상 배치가 정확하게 복원되지 않아서 화상을 복호화할 수 없게 된다. By the way, in the conventional picture coding method and the picture decoding method, a command for removing an unnecessary picture from a memory or a command for moving a picture from a short time storage memory to a long time storage memory is encoded and output by a picture coding apparatus, and then outputted to the picture decoding apparatus. Since the number of transmissions is limited to only one picture, when the picture accompanying the command is lost due to a transmission error or the like, the arrangement of images in the memory is not correctly restored and 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 a picture, when selecting a reference picture, if only a picture close in time is regarded as a reference picture candidate, scalability of decoding of the picture (example of the prediction structure in FIG. 1A) Can not decode I pictures or P pictures without decoding B pictures, or other P pictures without decoding the P pictures of picture numbers 4, 10, and 16). . That is, an image that is temporally close to an image of picture number 6 is an image of picture numbers 4 and 2, but since only an image of picture number 0 can be referred to in practice, an image of picture numbers 4 and 2 that cannot be referred to is referred to as a picture of reference image. When put in the candidate, the coding efficiency is not very good.

또한, 종래의 화상 부호화 방법에서는 메모리에 보존하지 않는 화상에 부수하여, 메모리 내의 불필요한 화상을 제거하는 코맨드나, 화상을 단시간 보존 메모리로부터 장시간 보존 메모리로 이동하는 코맨드를 전송하는 것이 금지되어 있으므로, 유연한 메모리 관리정보의 코맨드 전송이 저해되어 있다. 메모리에 보존하지 않는 화상에 부수하여 해당 코맨드의 전송을 금지하는 데에는, 다음 이유가 있다. 즉, 메모리에 보존하지 않는 화상은 가장 중요도가 낮고, 스케일러빌리티로 복호화되지 않을 가능성이 높기 때문에, 이 메모리에 보존하지 않는 화상에 부수한 해당 코맨드가 복호화되지 않아 메모리 내의 화상 배치를 정확하게 복원할 수 없는 것을 회피하기 위해서이다. In addition, in the conventional image coding method, it is forbidden to transmit a command for removing an unnecessary image in the memory in conjunction with an image not stored in the memory, or for transferring a command for moving the image from the short-term storage memory to the long-term storage memory. Command transmission of memory management information is hindered. There are the following reasons for prohibiting the transmission of the command in conjunction with an image not stored in the memory. In other words, since an image that is not stored in the memory has the least importance and is highly unlikely to be decoded by scalability, the command accompanying the image that is not stored in this memory is not decoded, so that the image arrangement in the memory can be accurately restored. To avoid the missing.

본 발명은 이상의 과제를 해결하기 위해, 전송로 에러로 일부의 메모리 관리 정보가 소실되어도 정확하게 복원 가능한 화상 부호화 방법 및 화상 복호화 방법 등과, 참조 가능한 참조 화상의 후보를 보다 적절하게 선택하여 부호화 효율을 높이는 화상 부호화 방법 및 화상 복호화 방법 등을 제공하는 것을 목적으로 한다. SUMMARY OF THE INVENTION In order to solve the above problems, an image encoding method and an image decoding method that can be correctly restored even if some memory management information is lost due to a transmission path error, and a candidate of a reference picture to be referenced can be selected more appropriately to increase encoding efficiency. It is an object to provide a picture coding method, a picture decoding method and the like.

본 과제를 해결하기 위해, 본 발명에 관한 화상 부호화 방법은 메모리 내에 보존되어 있는 다수의 참조 픽쳐로부터 선택한 참조 픽쳐를 참조하여 부호화하는 화상 부호화 방법으로서, 상기 선택한 참조 픽쳐를 참조하여, 부호화 대상 픽쳐를 부호화하는 픽쳐 부호화 단계와, 상기 메모리에 보존되어 있는 참조 픽쳐를 제어 관리하기 위한 메모리 관리 정보를 상기 부호화된 부호화 대상 픽쳐에 부수시켜 부호화하는 관리 정보 부호화 단계와, 상기 메모리 관리 정보를 상기 관리정보 부호화 단계에 있어서의 부호화와는 별도로 다시 부호화하는 관리정보 재부호화 단계를 포함하는 것을 특징으로 한다. In order to solve the present problem, an image encoding method according to the present invention is an image encoding method for encoding by referring to a reference picture selected from a plurality of reference pictures stored in a memory, wherein the encoding target picture is referred to with reference to the selected reference picture. A picture encoding step of encoding; a management information encoding step of encoding and attaching memory management information for controlling and managing a reference picture stored in the memory to the encoded encoding target picture; and encoding the management information with the memory management information And a management information re-encoding step of re-encoding separately from the encoding in the step.

이에 따라, 메모리 관리정보가 다수회 부호화 출력되므로, 복호화 장치에 전송될 때에 전송로 에러가 발생한 경우라도, 다수회 전송된 메모리 관리정보 중 어느 하나가 전송되어 복호되는 것으로 생각할 수 있으므로, 픽쳐를 정확하게 복원할 수 있는 가능성이 높아진다. Accordingly, since the memory management information is encoded and output a plurality of times, even if a transmission path error occurs when it is transmitted to the decoding apparatus, any one of the memory management information transmitted multiple times can be considered to be transmitted and decoded. The possibility of restoration is increased.

또한, 상기 관리정보 재부호화 단계에서는 상기 다시 부호화된 메모리 관리 정보에, 상기 관리정보 부호화 단계에 있어서 메모리 관리정보를 부수시킨 상기 부호화 대상 픽쳐를 특정하는 정보를 부수시키도록 해도 된다. In the management information re-encoding step, the re-coded memory management information may be accompanied by information specifying the picture to be encoded, which is accompanied by the memory management information in the management information encoding step.

이에 따라, 부호화 대상 픽쳐에 부수시켜 최초에 부호화된 메모리 관리정보가 화상 복호화 장치에 전송될 때에 전송 에러가 발생한 경우, 메모리 관리정보에 부수된 부호화 대상 픽쳐가 특정되므로, 어느 시점에서 전송 에러가 발생했는지를 검출할 수 있다. As a result, when a transmission error occurs when the memory management information encoded with the picture to be encoded is first transmitted to the picture decoding apparatus, the picture to be encoded accompanying the memory management information is specified, so that a transmission error occurs at some point in time. Can be detected.

또한, 상기 관리정보 부호화 단계에 있어서, 상기 메모리 관리정보를 상기 메모리에 보존되지 않는 부호화 대상 픽쳐에 부수시키는 경우에는, 상기 관리정보 재부호화 단계에 있어서, 상기 메모리 관리정보를 상기 메모리에 보존되는 부호화 대상 픽쳐에도 부수시키도록 해도 된다. In the management information encoding step, when the memory management information is appended to an encoding target picture not stored in the memory, in the management information re-encoding step, the memory management information is stored in the memory. It may also be accompanied by the target picture.

이에 따라, 복호되어 메모리에 보존되는 중요 화상에 메모리 관리정보가 부수되므로, 메모리 관리정보의 복호가 확실하게 행해지고, 픽쳐를 정확하게 복원할 수 있는 가능성이 높아진다. As a result, since the memory management information accompanies the important image decoded and stored in the memory, the memory management information is reliably decoded, and the possibility of accurately reconstructing the picture increases.

또한, 본 발명의 화상 복호화 방법은 메모리내에 보존되어 있는 다수의 참조 픽쳐로부터 선택한 참조 픽쳐를 참조하여 복호화하는 화상 복호화 방법으로서, 상기 메모리에 보존되어 있는 참조 픽쳐를 제어 관리하기 위한 메모리 관리정보를 복호화하고, 복호화된 메모리 관리정보에 따라서, 상기 메모리의 불필요하게 되는 메모리 영역을 개방하는 경우에, 개방하는 메모리 영역이 개방 완료가 아니면 메모리 영역을 개방하고, 개방하는 메모리 영역이 이미 개방 완료이면 상기 메모리에 대해 어떠한 처리를 행하지 않는 것을 특징으로 한다. The picture decoding method of the present invention is a picture decoding method for decoding with reference to a reference picture selected from a plurality of reference pictures stored in a memory, and decodes memory management information for controlling and managing the reference picture stored in the memory. If the memory area to be made unnecessary of the memory is opened in accordance with the decoded memory management information, the memory area is opened if the open memory area is not completed. If the memory area to be opened is already completed, the memory is opened. No processing is performed for the above.

이에 따라, 픽쳐를 메모리로부터 제거하는 것을 나타내는 메모리 관리정보를 다수회 수신한 경우라도, 에러 처리하지 않고, 픽쳐를 바르게 복호화할 수 있다. Accordingly, even when memory management information indicating the removal of the picture from the memory is received a plurality of times, the picture can be correctly decoded without error processing.

또한, 메모리 내에 보존되어 있는 다수의 참조 픽쳐로부터 선택한 참조 픽쳐를 참조하여 복호화하는 화상 복호화 방법으로서, 상기 메모리는 참조 픽쳐의 보존 시간이 짧은 단시간 보존 메모리와, 상기 단시간 보존 메모리보다도 참조 픽쳐의 보존 시간이 긴 장시간 보존 메모리를 구비하고, 상기 화상 복호화 방법은 상기 메모리에 보존되어 있는 참조 픽쳐를 제어 관리하기 위한 메모리 관리정보를 복호화하고, 복호화한 메모리 관리정보에 따라서, 상기 메모리 내에 보존되어 있는 참조 픽쳐를 상기 단시간 보존 메모리로부터 상기 장시간 보존 메모리로 이동하는 경우에, 이동 대상의 참조 픽쳐가 상기 단시간 보존 메모리에 존재하면 해당 참조 픽쳐를 상기 단시간 보존 메모리로부터 상기 장시간 보존 메모리로 이동하고, 이동 대상의 참조 픽쳐가 상기 단시간 보존 메모리에 존재하지 않으면 상기 메모리 내의 이동을 행하지 않도록 해도 된다. A picture decoding method for decoding with reference to a reference picture selected from a plurality of reference pictures stored in a memory, wherein the memory includes a short-term storage memory having a shorter retention time of a reference picture and a retention time of a reference picture than the short-term storage memory. This long time storage memory, wherein the image decoding method decodes the memory management information for controlling and managing the reference picture stored in the memory, and stores the reference picture stored in the memory according to the decoded memory management information. In the case of moving from the short-term storage memory to the long-term storage memory, if a reference picture to be moved exists in the short-term storage memory, the reference picture is moved from the short-term storage memory to the long-term storage memory, and the reference of the moving object is stored. Picture Awards If it is not present in the short-term storage memory, the movement in the memory may not be performed.

이에 따라, 메모리 관리정보를 다수회 수신한 경우라도, 에러 처리하지 않고, 픽쳐를 바르게 복호화할 수 있다. Accordingly, even when the memory management information is received a plurality of times, the picture can be decoded correctly without error processing.

또한, 메모리 내에 보존되어 있는 다수의 참조 픽쳐로부터 선택한 참조 픽쳐를 참조하여 부호화하는 화상 부호화 방법으로서, 중요도가 부호화 대상 픽쳐 이상인 상기 메모리 내에 보존되어 있는 참조 픽쳐를 참조 픽쳐의 후보로서 부호화해도 된다. Further, as an image encoding method for encoding by referring to a reference picture selected from a plurality of reference pictures stored in the memory, a reference picture stored in the memory whose importance is equal to or higher than the encoding target picture may be encoded as a candidate of the reference picture.

이에 따라, 참조 가능한 픽쳐의 후보를 보다 적절하게 선택하여 부호화 효율 을 높게 할 수 있다. As a result, the coding efficiency can be improved by selecting the candidate of the referenceable picture more appropriately.

또한, 본 발명에 관한 화상 부호화 방법은 부호화 대상 픽쳐를 부호화하는 단계와, 상기 부호화 대상 픽쳐를 부호화한 후에 참조되지 않는 참조 픽쳐가 메모리 내에 있는지를 판단하는 단계와, 상기 참조되지 않는 참조 픽쳐가 있으면, 참조되지 않음으로써 불필요하게 되는 메모리 영역을 개방하는 코맨드로서, 부호화 데이터를 복호화하는 복호화 장치에 있어서 상기 부호화 대상 픽쳐를 복호화한 후에 상기 불필요하게 되는 메모리 영역을 개방하는 것을 나타내는 코맨드를 부호화하는 단계와, 상기 불필요하게 되는 메모리 영역을 개방하는 단계와, 상기 부호화 대상 픽쳐보다 후에 부호화되는 별도의 부호화 대상 픽쳐를 부호화할 때에, 상기 별도의 부호화 대상 픽쳐를 복호화하기 전에 상기 불필요하게 되는 메모리 영역을 개방하는 것을 나타내는 코맨드를 부호화하는 단계를 포함하는 것을 특징으로 한다. Further, the image encoding method according to the present invention includes the steps of encoding a picture to be encoded, determining whether a reference picture which is not referenced after encoding the picture to be encoded is in a memory, and if there is a reference picture that is not referred to. And a command for opening a memory area that becomes unnecessary by being referred to, wherein the decoding device for decoding coded data encodes a command that indicates opening the unnecessary memory area after decoding the picture to be encoded; Opening the unnecessary memory area and opening the unnecessary memory area before decoding the other coded picture when encoding a separate coded picture to be encoded after the coded picture. Indicating And encoding a command.

이에 따라, 불필요하게 되는 메모리 영역을 개방하는 것을 나타내는, 최초의 코맨드가 결락된 경우에 있어서도, 다음에 전송되는 코맨드가 픽쳐의 복호화전에 실행되므로, 코맨드의 실행의 지연을 적게 할 수 있다. As a result, even in the case where the first command indicating the opening of an unnecessary memory area is lost, the next command to be transmitted is executed before decoding the picture, so that the delay in executing the command can be reduced.

또한, 본 발명에 관한 화상 복호화 방법은 복호화 대상 픽쳐에 부수하는 메모리를 관리하는 메모리 관리정보를 복호화하는 단계와, 상기 메모리 관리정보가, 상기 복호화 대상 픽쳐를 복호화하기 전에 메모리를 관리하는 처리를 하는 것을 나타내는 복호화전(前) 용 코맨드인지 여부를 판단하는 제1 판단 단계와, 상기 제1 판단 단계에서 상기 메모리 관리정보가 상기 복호화전 용 코맨드라고 판단되었을 때, 메모리를 관리하는 처리가 완료되었는지를 판단하는 제2 판단 단계와, 상기 제 2 판단 단계에 있어서 메모리를 관리하는 처리가 완료되었다고 판단되었을 때, 상기 복호화 대상 픽쳐를 복호화하고, 상기 제2 판단 단계에 있어서 메모리를 관리하는 처리가 완료되지 않았다고 판단되었을 때, 상기 메모리 관리정보에 의거하여 메모리를 관리하는 처리를 행한 후에 상기 복호화 대상 픽쳐를 복호화하는 단계를 포함하는 것을 특징으로 한다. In addition, the image decoding method according to the present invention includes the steps of decoding memory management information for managing a memory accompanying a picture to be decoded, and processing for managing the memory before the memory management information decodes the decoded picture. A first judgment step of determining whether or not a pre-decryption command is indicated, and when the memory management information is determined as the pre-decoding command in the first decision step, whether or not a process for managing memory is completed. When it is determined that the second judging step of judging and the process of managing the memory in the second judging step are completed, the process of decoding the decoding target picture and managing the memory in the second judging step is not completed. Processing to manage the memory based on the memory management information when judged not to And decoding the decoding target picture after the operation.

이에 따라, 불필요해지는 메모리 영역을 개방하는 것을 나타내는, 최초의 코맨드가 결락된 경우에 있어서도, 다음에 전송되는 코맨드가 픽쳐의 복호화전에 실행되므로, 코맨드 실행의 지연을 적게 할 수 있다. As a result, even in the case where the first command indicating the opening of an unnecessary memory area is lost, the next command to be transmitted is executed before decoding the picture, so that the delay in command execution can be reduced.

또한, 본 발명에 관한 화상 부호화 방법은 부호화 대상 픽쳐를 부호화하는 단계와, 상기 부호화 대상 픽쳐를 부호화한 후에 메모리 내에 있는 참조 픽쳐가 모두 참조되지 않는 픽쳐인지 여부를 판단하는 판단 단계와, 상기 판단 단계에 있어서, 상기 메모리 내에 있는 참조 픽쳐가 모두 참조되지 않는 픽쳐라고 판단되었을 때, 상기 메모리 내에 있는 참조 픽쳐를 모두 삭제하는 명령인 초기화 코맨드를 부호화하는 단계와, 상기 메모리 내에 있는 참조 픽쳐를 모두 삭제하는 초기화 단계와, 상기 부호화 대상 픽쳐보다 후에 부호화되는 별도의 부호화 대상 픽쳐를 부호화할 때에, 상기 부호화 대상 픽쳐의 부호화시에 삭제된, 상기 부호화 대상 픽쳐보다 전에 상기 메모리 내에 보존된 전체 참조 픽쳐를 삭제의 대상으로 하는 부가 정보에 의거해, 메모리 내에 있는 참조 픽쳐를 삭제하는 것을 나타내는 명령인 초기화 재송 코맨드를 부호화하는 단계를 포함하는 것을 특징으로 한다. In addition, the image encoding method according to the present invention comprises the steps of: encoding a picture to be encoded, a step of determining whether all of the reference pictures in a memory are not referenced after encoding the picture to be encoded, and the determining step Encoding an initialization command that is a command for deleting all of the reference pictures in the memory when it is determined that all of the reference pictures in the memory are not referenced; and deleting all the reference pictures in the memory. In the initialization step, when encoding a separate encoding target picture that is encoded after the encoding target picture, all reference pictures stored in the memory before the encoding target picture, which are deleted at the time of encoding the encoding target picture, are deleted. In-memory based on the target additional information Indicating that deleting the reference picture is characterized in that it comprises a step for coding a command in the initialization resending command.

이에 따라, 초기화 코맨드가 복호화 장치에 전송될 때, 전송로 에러로 초기 화 코맨드가 결락된 경우라도, 초기화 재송 코맨드의 부가 정보에 따라서 정상으로 메모리 내의 초기화를 행할 수 있다. As a result, when the initialization command is transmitted to the decoding apparatus, even if the initialization command is missing due to a transmission path error, the initialization in the memory can be normally performed according to the additional information of the initialization retransmission command.

또한, 본 발명에 관한 화상 복호화 방법은 복호화 대상 픽쳐에 부수하는 메모리를 관리하는 메모리 관리정보를 복호화하는 단계와, 상기 복호화 대상 픽쳐를 복호화하는 단계와, 상기 메모리 관리정보에, 메모리 내에 있는 참조 픽쳐를 모두 삭제하는 명령인 초기화 코맨드가 있는지 여부를 판단하는 초기화 판단 단계와, 상기 초기화 판단 단계에 있어서 상기 메모리 관리정보에, 상기 초기화 코맨드가 있다고 판단되지 않았을 때, 상기 메모리 관리정보에, 상기 복호화 대상 픽쳐보다 전에 복호화된 별도의 복호화 대상 픽쳐를 복호화했을 때에 초기화하여 삭제해야되는, 상기 별도의 복호화 대상 픽쳐보다 전에 상기 메모리 내에 보존된 참조 픽쳐를 삭제하기 위해, 삭제의 대상을 나타내는 부가 정보에 따라서, 메모리 내에 있는 참조 픽쳐를 삭제하는 명령인 초기화 재송 코맨드가 있는지 여부를 판단하는 초기화 재송 판단 단계와, 상기 초기화 재송 판단 단계에 있어서, 상기 메모리 관리정보가 상기 초기화 재송 코맨드라고 판단되었을 때, 메모리 내에 있는 참조 픽쳐가 모두 삭제되어 있는지 여부를 판단하는 초기화 완료 판단 단계와, 상기 초기화 완료 판단 단계에 있어서, 메모리내에 있는 참조 픽쳐가 모두 삭제되어 있지 않다고 판단되었을 때, 상기 부가정보에 따라서 메모리 내에 있는 픽쳐를 삭제하는 삭제 단계를 포함하는 것을 특징으로 한다. In addition, the image decoding method according to the present invention includes the steps of decoding memory management information for managing a memory accompanying a decoding target picture, decoding the decoding target picture, and in the memory management information, a reference picture in a memory. An initialization determination step of determining whether there is an initialization command that is a command for deleting all of the data; and in the memory management information when the initialization command is not determined in the memory management information in the initialization determination step, in the memory management information, According to the additional information indicating the object to be deleted, in order to delete the reference picture stored in the memory before the separate decoding object picture, which must be initialized and deleted when the other decoding object picture decoded before the picture is decoded, Deleting the reference picture in memory An initialization retransmission determination step of determining whether or not there is an initial retransmission command; and in the initial retransmission determination step, whether all the reference pictures in the memory are deleted when the memory management information is determined to be the initial retransmission command; And an initialization completion determination step of determining, and a deletion step of deleting a picture in the memory according to the additional information when it is determined that all of the reference pictures in the memory are not deleted in the initialization completion determination step. It is done.

이에 따라, 초기화 코맨드가 복호화 장치에 전송될 때에, 전송로 에러로 초기화 코맨드가 결락된 경우라도, 초기화 재송 코맨드의 부가 정보에 따라서 정상으 로 메모리 내의 초기화를 행할 수 있다. Thus, even when the initialization command is missed due to a transmission path error when the initialization command is transmitted to the decoding apparatus, initialization in the memory can be normally performed according to additional information of the initialization retransmission command.

또한, 메모리 내에 보존되어 있는 다수의 참조 픽쳐로부터 선택한 픽쳐를 참조하여 슬라이스 단위로 부호화한 데이터 스트림이 기록된 기록 매체로서, 상기 메모리 내에 보존되어 있는 참조 픽쳐를 메모리로부터 제거하는 경우에, 제거하는 대상의 참조 픽쳐를 지정하는 정보를 적어도 2개의 슬라이스에 부수하여 부호화해도 된다. Also, a recording medium on which data streams encoded in slice units with reference to a selected picture from a plurality of reference pictures stored in the memory is recorded. When a reference picture stored in the memory is removed from the memory, the object to be removed is removed. The information designating the reference picture of may be attached to at least two slices and encoded.

이에 따라, 부호화가 슬라이스 단위로 행해지는 경우에 있어서, 복호화 장치에 전송될 때에 전송로 에러가 발생해도, 다수회 전송된, 메모리로부터 제거하는 대상의 참조 픽쳐를 지정하는 정보 중 어느 하나는 전송되어 복호된다고 생각되므로, 픽쳐를 슬라이스 단위로 바르게 복원할 수 있는 가능성이 높아진다. Accordingly, in the case where encoding is performed in units of slices, even if a transmission path error occurs when transmitted to the decoding apparatus, any one of information that designates a reference picture to be removed from the memory, which has been transmitted a plurality of times, is transmitted. Since it is considered to be decoded, the possibility of correctly reconstructing the picture in slice units increases.

또한, 메모리내에 보존되어 있는 다수의 참조 픽쳐로부터 선택한 픽쳐를 참조하여 슬라이스 단위로 부호화한 데이터 스트림이 기록된 기록매체로서, 상기 메모리 내에 보존되어 있는 참조 픽쳐를 메모리로부터 제거하는 경우에, 제거하는 대상의 참조 픽쳐를 지정하는 정보를 적어도 2개의 슬라이스에 부수하여 부호화하고, 또한 상기 슬라이스가 상기 제거하는 대상의 참조 픽쳐를 지정하는 정보를 갖는 것을 나타내는 정보를 상기 슬라이스에 부수하여 부호화하며, 상기 제거하는 대상의 참조 픽쳐를 지정하는 정보를 갖지 않는 슬라이스로, 상기 제거하는 대상의 참조 픽쳐를 지정하는 정보를 참조할 때, 상기 제거하는 대상의 참조 픽쳐를 지정하는 정보를 참조하는 것을 나타내는 정보를 부호화해도 된다. Also, a recording medium in which a data stream encoded in slice units is recorded by referring to a selected picture selected from a plurality of reference pictures stored in the memory, and a target picture to be removed when the reference picture stored in the memory is removed from the memory. Information encoding designating a reference picture of the data is appended to at least two slices, and the information indicating that the slice has information designating the reference picture of the object to be removed is encoded by attaching to the slice and removed. When referring to the information specifying the reference picture of the target to be removed and referencing the information specifying the reference picture of the target to be removed, the slice which does not have information for specifying the reference picture of the target may be encoded. do.

이에 따라, 상기 제거하는 대상의 픽쳐를 지정하는 정보를 갖지 않은 슬라이 스에서는 상기 정보의 부가를 생략할 수 있고, 부호화 효율을 높일 수 있다. As a result, the addition of the information can be omitted in a slice having no information for designating the picture to be removed, thereby improving the coding efficiency.

이상과 같이, 본 발명에 관한 화상 부호화 방법 및 화상 복호화 방법에 의하면, 전송로 에러로 일부의 메모리 관리정보가 소실되어도 바르게 복원 가능한 화상 부호화 방법 및 화상 복호화 방법과, 참조 가능한 참조 화상의 후보를 보다 적절하게 선택하여 부호화 효율을 높이는 화상 부호화 방법 및 화상 복호화 방법을 실현할 수 있어, 그 실용적 가치가 높다. As described above, according to the picture coding method and the picture decoding method according to the present invention, the picture coding method and the picture decoding method which can be correctly restored even if some memory management information is lost due to a transmission path error, and the candidates of the reference picture reference can be seen. It is possible to realize a picture coding method and a picture decoding method which are appropriately selected to increase the coding efficiency, and have a high practical value.

또한, 본 발명은 이러한 화상 부호화 방법 및 화상 복호화 방법으로서 실현할 수 있을 뿐만 아니라, 이러한 방법을 이용한 화상 부호화 장치 및 화상 복호화 장치로서 실현하거나, 화상 부호화 방법에 의해 부호화된 데이터 스트림이 기록된 기록 매체로서 실현하거나, 화상 부호화 방법 및 화상 복호화 방법에 있어서의 단계를 컴퓨터에 실행시키는 프로그램으로서 실현할 수도 있다. 그리고, 이와 같은 프로그램은 CD-ROM 등의 기록매체나 인터넷 등의 전송매체를 통해 전송할 수 있는 것은 말할 필요도 없다. In addition, the present invention can be realized as such an image encoding method and an image decoding method, and is realized as an image encoding apparatus and an image decoding apparatus using such a method, or as a recording medium on which a data stream encoded by an image encoding method is recorded. It can also be realized as a program that causes a computer to execute the steps in the picture coding method and the picture decoding method. It goes without saying that such a program can be transmitted through 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 includes the content of the previous Japanese patent application "patent application 2002-110424", "patent application 2002-190955", "patent application 2003-49711", and US provisional application "60/377656".

본 발명에 관한 화상 부호화 방법 및 화상 복호화 방법에 의하면, 전송로 에러로 일부의 메모리 관리정보가 소실되어도 바르게 복원 가능한 화상 부호화 방법 및 화상 복호화 방법과, 참조 가능한 참조 화상의 후보를 보다 적절하게 선택하여 부호화 효율을 높이는 화상 부호화 방법 및 화상 복호화 방법을 실현할 수 있어, 그 실용적 가치가 높다. According to the picture coding method and the picture decoding method according to the present invention, a picture coding method and a picture decoding method which can be correctly restored even when some memory management information is lost due to a transmission path error, and a candidate of a reference picture to be referred can be selected more appropriately. The picture coding method and the picture decoding method for improving the coding efficiency can be realized, and their practical value is high.

이하, 본 발명의 실시의 형태에 대해, 도면을 이용하여 설명한다. EMBODIMENT OF THE INVENTION Hereinafter, embodiment of this invention is described using drawing.

(실시의 형태 1) (Embodiment Mode 1)

우선, 실시의 형태 1에 대해 설명한다. First, Embodiment 1 is described.

도 5는 본 실시의 형태에 있어서의 화상 부호화 방법을 실현하기 위한 화상 부호화 장치의 구성을 도시하는 블록도이다. 5 is a block diagram showing the configuration of a picture coding apparatus for realizing the picture coding method according to the present embodiment.

화상 부호화 장치(100)는 메모리 정보 제어부(101)와, 단시간 보존 메모리 관리부(102)와, 장시간 보존 메모리 관리부(103)와, 비보존 메모리 관리 정보부(104)와, 관리정보 부호화부(105)와, 참조화상 선택부(106)와, 보존영역 지정부(107)와, 참조영역 지정부(108)와, 화상 메모리(109)와, 화상 복호화부(111)와, 화상 부호화부(110)와, 가변길이 부호화부(112)와, 카운터(113) 및 카운터(114) 등으로 구성된다. The picture coding apparatus 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, and a management information encoding unit 105. And a reference image selection unit 106, a storage area designation unit 107, a reference area designation unit 108, an image memory 109, an image decoding unit 111, and an image encoding unit 110. And a variable length encoder 112, a counter 113, a counter 114, and the like.

참조화상 선택부(106)는 외부에서 입력되는 중요도 지시신호(Pri) 및 픽쳐 타입 정보(PicType)에서 참조 화상의 후보를 선택하여, 메모리 정보 제어부(101)에 통지한다. The reference picture selection unit 106 selects a candidate of the reference picture from the external importance signal Pri and picture type information PicType, and notifies the memory information control unit 101.

메모리 정보 제어부(101)는 픽쳐 타입 정보(PicType)에 의해서 전방 및 후방중 어느 하나, 혹은 양쪽의 화상(픽쳐)이 참조 가능한지 여부를 판단하여, 참조영역 지정부(108)에 지령하고, 화상 메모리(109)로부터 대응하는 참조화상을 화상 부 호화부(110)에 출력한다. The memory information control unit 101 determines, by the picture type information (PicType), whether one or both pictures (pictures) can be referenced, and instructs the reference area designation unit 108 to determine whether the picture (picture) can be referred to. From 109, the corresponding reference image is output to the image encoder 110. FIG.

화상 부호화부(110)는 화상 메모리(109)로부터 출력되는 참조 화상을 참조하여 입력화상신호(Vin)를 부호화하고, 가변길이 부호화부(112)는 다시 가변길이 부호화하여 화상 부호화 스트림(VideoStr)을 출력한다. 화상 부호화부(110)의 출력은 또한, 화상 복호화부(111)에서 복호화되어 복호화 화상으로 되고, 화상 메모리(109)에 참조 화상으로서 격납된다. The image encoder 110 encodes the input image signal Vin with reference to the reference image output from the image memory 109, and the variable length encoder 112 performs variable length encoding again to decode the image encoded stream VideoStr. Output The output of the picture coding unit 110 is further decoded by the picture decoding unit 111 to be a decoded picture, and stored in the picture memory 109 as a reference picture.

이 때, 화상 메모리(109)에 있어서 복호화 화상이 격납 가능한 메모리 위치는 다음과 같이 지정된다. 메모리 정보 제어부(101)가 단시간 보존 메모리 관리부(102)에 조회하여, 단시간 메모리에서 화상이 제거된 메모리 위치를 특정하고, 보존영역 지정부(107)가 그 메모리 위치에 복호화 화상을 기록하도록, 화상 메모리(109)에 대해 지시를 보낸다. At this time, the memory location in which the decoded image can be stored in the image memory 109 is designated as follows. The memory information control unit 101 inquires of the short-term storage memory management unit 102 to specify the memory location from which the image is removed from the short-term memory, and the storage area designation unit 107 records the decoded image in the memory location. Instruction is sent to the memory 109.

단시간 보존 메모리 관리부(102)는 단시간 보존 메모리내의 불필요한 (참조되지 않는) 화상을 검출하여 제거하는 (메모리를 개방하는) 지령을 메모리 정보 제어 유닛부(101)에 통지한다. 또한, 장시간 보존 메모리 관리부(103)는 단시간 보존 메모리내의 화상을 장시간 보존 메모리로 이동하는 지령을 메모리 정보 제어부(101)에 통지한다. 이 불필요한 화상의 제거(메모리의 개방) 지령이나, 단시간 보존 메모리내의 화상을 장시간 보존 메모리로 이동하는 지령은 관리 정보 부호화부(105)에서 부호화되어, 메모리 관리정보 스트림(CtlStr)으로 된다. The short-term storage memory management unit 102 notifies the memory information control unit unit 101 of an instruction for detecting and removing unnecessary (unreferenced) images in the short-term storage memory. The long-term storage memory management unit 103 also notifies the memory information control unit 101 of a command for moving the image in the short-term storage memory to the long-term storage memory. The command for removing the unnecessary image (opening of the memory) or the command for moving the image in the short-term storage memory to the long-term storage memory are encoded by the management information encoding unit 105 to form a memory management information stream CtlStr.

한편, 전송로 에러에 의해, 메모리 관리정보 스트림(CtlStr)의 일부가 소실됨으로서 메모리 관리정보가 손상되는 것을 방지하기 위해서, 단시간 보존 메모리 용의 카운터(113) 및 장시간 보존 메모리용의 카운터(114)로, 불필요한 화상의 제거지령이나, 단시간 보존 메모리내의 화상을 장시간 보존 메모리로 이동하는 지령의 부호화 회수를 계측하여, 필요에 따라 상기 지령의 다수회의 전송을 가능하게 한다. On the other hand, the counter 113 for short-term storage memory and the counter 114 for long-term storage memory, in order to prevent the memory management information from being damaged by the loss of a part of the memory management information stream CtlStr due to the transmission path error. Thus, the number of times of removing the unnecessary images or the instruction for moving the images in the short-term storage memory to the long-term storage memory is measured, so that the transfer of the command multiple times is possible as necessary.

또한, 비보존 메모리 관리 정보부(104)는 중요도가 낮고 복호화되지 않은 화상에 부수하여, 불필요한 화상의 제거지령이나 단시간 보존 메모리내의 화상을 장시간 보존 메모리로 이동하는 지령이 부호화되었는지 여부를 관리하고, 중요도가 낮은 화상에 부수하여 상기 지령이 부호화된 경우는 보다 높은 중요도의 화상에 부수하여 다시 지령을 부호화하도록 메모리 정보 제어부(101)에 지시를 보낸다. In addition, the non-storage memory management information unit 104 manages whether or not an instruction for removing unnecessary images or a command for moving an image in the short-term storage memory to the long-term storage memory has been coded in accordance with a low importance and undecoded image. When the instruction is encoded in response to a low image, an instruction is sent to the memory information control unit 101 to accompany the image of higher importance and to encode the instruction again.

다음에, 본 발명의 실시의 형태 1에 있어서의 화상 부호화 방법에 대해서 설명한다. 도 6은 실시의 형태 1에 있어서의 화상 부호화 방법을 도시하는 플로우 챠트이고, 도 5에서 도시한 화상 부호화 장치(100)가 행하는 동작을 도시하고 있다. 또한, 도 6에 있어서 도 2(a)와 동작이 동일한 것에는 동일한 기호를 붙이고 있다. Next, the image coding method according to the first embodiment of the present invention will be described. FIG. 6 is a flowchart showing the picture coding method according to the first embodiment, and shows an operation performed by the picture coding device 100 shown in FIG. 5. 6, the same symbol is attached | subjected to the same thing as FIG. 2 (a).

도 6에 도시하는 화상 부호화 방법의 특징은 메모리내에 예측 부호화의 참조 화상으로서 불필요한 화상(픽쳐)이 존재하는 경우에, 그 화상이 보존되어 있는 메모리 영역을 개방하는 (그 화상을 제거하는) 메모리 관리정보의 코맨드를 반복하여 부호화하는 것이다.The characteristic of the picture coding method shown in Fig. 6 is that memory management which opens (removes the picture) a memory area in which the picture is stored when an unnecessary picture (picture) exists as a reference picture of predictive coding in the memory. The command of information is repeatedly encoded.

이와 같이, 메모리 관리정보의 코맨드를 반복하여 부호화함으로써, 한쪽의 메모리 관리정보의 코맨드가 전송로 에러로 소실되어도, 다른 한쪽의 메모리 관리 정보의 코맨드로부터 메모리 내에 보존되어 있는 화상의 관리정보를 복원할 수 있으므로, 전송로 에러가 있어도 화상을 바르게 복원할수 있는 가능성이 높아진다. By repeatedly encoding the commands of the memory management information in this way, even if the command of one of the memory management information is lost due to a transmission path error, the management information of the image stored in the memory can be restored from the command of the other memory management information. Therefore, even if there is a transmission path error, the possibility of correctly reconstructing the image increases.

도 6에 있어서, 우선, 입력 화상을 부호화한다(단계 100). 부호화 후에 메모리 내에서 불필요한 영역(이후의 부호화에 참조되지 않는 화상)을 조사하고(단계 101), 불필요한 메모리 영역이 있는지를 판정한다(단계102). 불필요한 메모리 영역이 있는 경우(단계 102의 Yes), 관리정보 부호화부(105)가 불필요한 메모리 영역을 개방하는 코맨드를 메모리 관리정보로서 부호화한다(단계 103). 그리고, 이 불필요한 메모리 영역을 개방한다(단계 104). 불필요한 메모리 영역이 없는 경우(단계 102의 No)는 단계 103 및 단계 104의 동작은 행하지 않는다. In Fig. 6, first, an input image is encoded (step 100). After encoding, unnecessary regions (images not referenced by subsequent encoding) are examined in the memory (step 101), and it is determined whether there are unnecessary memory regions (step 102). If there is an unnecessary memory area (Yes in step 102), the management information encoding unit 105 encodes a command for opening an unnecessary memory area as memory management information (step 103). This unnecessary memory area is then opened (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 accompanies the encoding of the immediately encoded image (the image before the encoding target), and determines whether or not the command for opening the unnecessary memory area is encoded as the memory management information (step 105). If the command is not coded (No in step 105), the processing ends, and if the command is coded (Yes in step 105), the management information encoding unit 105 opens the unnecessary memory area. The command is coded again as memory management information (step 106) to end the processing.

이와 같이, 직전의 화상의 부호화에서 불필요 메모리를 개방하는 (메모리 관리정보의) 코맨드가 부호화되면, 다시 메모리 관리정보의 코맨드가 부호화된다. 직전의 화상의 부호화에 부수시켜 부호화된 메모리 관리정보와, 다시 부호화된 메모리 관리정보는 각각 화상 부호화 장치에서 출력되어, 화상 복호화 장치에 전송되 어 복호화된다. In this way, when a command (of memory management information) that opens the unnecessary memory is encoded in the encoding of the immediately preceding image, the command of the memory management information is encoded again. The memory management information encoded in addition to the encoding of the immediately preceding image and the coded memory management information recoded are respectively output from the image encoding apparatus, transmitted to the image decoding apparatus, and decoded.

또, 단계 105에서 직전에 부호화된 화상의 부호화 신호에 부수하여, 불필요한 메모리 영역을 개방하는 코맨드가 부호화되어 있는 경우에, 다시 코맨드를 부호화한다고 했는데, 직전의 화상에 부수하여 있는 경우가 아니고, 몇 화상 전의 화상에 부수하여 있는 경우라도 되고, 또한 반복하여 상기 코맨드를 메모리 관리정보로서 부호화하고, 다수의 화상에 부수하여 전송시켜도 된다. In addition, in the case where a command for opening an unnecessary memory area is encoded in response to the coded signal of the image encoded immediately before in step 105, the command is coded again, but it is not accompanied by the previous image. The command may be accompanied by an image before the image, or may be repeatedly encoded as memory management information, and may be transmitted along with a plurality of images.

또한, 상기 불필요한 메모리 영역을 개방하는 코맨드를 메모리 관리정보로서 다수회 전송할 수 있으면 되므로, 그 코맨드를 다시 부호화하여 전송할 때에 반드시 화상의 부호화 신호에 부수시켜 전송할 필요는 없다. In addition, since the command for opening the unnecessary memory area can be transmitted a plurality of times as the memory management information, it is not necessary to necessarily transmit the coded signal of an image when encoding and transmitting the command again.

또한, 메모리 관리정보의 코맨드를 재송하는 경우에, 그 재송하는 코맨드가 부호화된 픽쳐와 같은 스트림에 있는 것은 아니고, 예를 들면 별도의 스트림으로서 전송하도록 해도 되고, 축적 미디어의 별도의 영역에 기록되어도 된다. In the case of retransmitting a command of memory management information, the retransmitted command may not be in the same stream as the encoded picture, but may be transmitted as a separate stream, for example, or may be recorded in a separate area of the storage medium. do.

이상과 같이 하여, 불필요한 메모리 영역을 개방하는 (메모리 관리정보의) 코맨드를 다수회 전송함으로써, 전송로 에러가 발생한 경우라도, 다수회 전송된 코맨드 중 어느 하나는 전송되어 복호된다고 생각되므로, 화상을 바르게 복원할 수 있는 가능성이 높아진다. As described above, by transmitting a command (of memory management information) that opens an unnecessary memory area a plurality of times, even if a transmission path error occurs, any one of the commands transmitted many times is considered to be transmitted and decoded. The chances of a correct restoration increase.

(실시의 형태 2) (Embodiment 2)

다음에, 본 발명의 실시의 형태 2에 대해 설명한다. Next, Embodiment 2 of this invention is demonstrated.

도 7은 실시의 형태 2에 있어서의 화상 복호화 방법을 실현하기 위한 화상 복호화 장치의 블록도이다. 7 is a block diagram of a picture decoding apparatus for realizing the picture decoding method according to the second embodiment.

화상 복호화 장치(200)는 메모리 정보 제어부(201)와, 단시간 보존 메모리 관리부(202)와, 장시간 보존 메모리 관리부(203)와, 관리정보 복호화부(205)와, 보존영역 지정부(207)와, 참조영역 지정부(208)와, 화상 메모리(209)와, 화상 복호화부(210)와, 가변 길이 복호화부(212) 등으로 구성된다. The picture decoding apparatus 200 includes 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, And a reference area designation unit 208, 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 determines, based on the picture type information (PicType), whether one or both of the front and rear images can be referred to the encoding target, and instructs the reference area designation unit 208. The corresponding reference picture is output from the picture memory 209 to the picture decoding unit 210.

가변길이 복호화부(212)는 부호화 스트림(VideoStr)을 복호화하고, 화상 복호화부(210)는 이를 다시 복호화하여, 복호 화상 신호(Vout)로서 출력하는 동시에 화상 메모리(209)에 참조 화상으로서 격납한다. The variable length decoding unit 212 decodes an encoded stream VideoStr, and the image decoding unit 210 decodes it again, outputs it as a decoded picture signal Vout, and stores it as a reference picture in the picture memory 209. .

이 때, 화상 메모리(209)에 있어서 복호화 화상이 격납 가능한 메모리 위치는 다음과 같이 지정된다. 메모리 정보 제어부(201)가 단시간 보존 메모리 관리부(202)에 조회하여, 화상이 제거된 메모리 위치를 특정하고, 보존영역 지정부(207)가 그 메모리 위치에 복호화 화상을 기록하도록, 화상 메모리(209)에 대해 지시를 낸다. At this time, the memory location in which the decoded image can be stored in the image memory 209 is specified as follows. The image memory 209 causes the memory information control unit 201 to inquire the short-term storage memory management unit 202 to specify the memory location from which the image is removed, and the storage area designation unit 207 records the decoded image at the memory location. Instruct)

관리정보 복호화부(205)는 메모리 관리정보 스트림(CtlStr)을 복호화하고, 메모리 정보 제어부(201)를 통하여, 단시간 보존 메모리내의 불필요한 (참조되지 않는) 화상의 정보를 단시간 보존 메모리 관리부(202)에 통지하고, 단시간 보존 메모리내의 화상을 장시간 보존 메모리로 이동하는 지령을 장시간 보존 메모리 관리 부(203)에 통지한다. The management information decoding unit 205 decodes the memory management information stream CtlStr and, via the memory information control unit 201, sends information of unnecessary (unreferenced) images in the short-term storage memory to the short-term storage memory management unit 202. The long-term storage memory management unit 203 notifies a command for moving the image in the short-term storage memory to the long-term storage memory.

다음에, 본 발명의 실시의 형태 2에 있어서의 화상 복호화 방법에 대해서 설명한다. 도 8은 실시의 형태 2에 있어서의 화상 복호화 방법을 도시하는 플로우 챠트로, 도 7에서 도시한 화상 복호화 장치(200)가 행하는 동작을 도시하고 있다. 또한, 도 8에 있어서 도 2(b)와 동작이 동일한 것은 동일한 기호를 붙이고 있다. Next, the image decoding method in Embodiment 2 of this invention is demonstrated. FIG. 8 is a flowchart showing an image decoding method according to the second embodiment, and illustrates an operation performed by the image decoding apparatus 200 shown in FIG. 7. In Fig. 8, the same operations as those in Fig. 2B are given the same symbols.

화상 부호화 장치가 불필요한 메모리 영역을 개방하는 코맨드를 다수회 전송한 경우에는, 전송로 에러로 코맨드가 소실되지 않는 한, 화상 복호화 장치는 다수회, 메모리내의 동일한 화상의 영역을 개방하는 코맨드를 수신하게 된다. 따라서, 이미 개방한 메모리 영역을 다시 개방하는 코맨드를 화상 복호화 장치가 수신한 경우라도 에러로서 처리를 하지 않고, 반대로 바르게 수신되어 있다고 판단하는 화상 복호화 방법을 실현하지 않으면 안된다. 본 실시의 형태에서는 이러한 화상 복호화 방법을 실현하고 있다. When the picture coding apparatus transmits a command for opening an unnecessary memory area many times, the picture decoding apparatus receives a command for opening a region of the same picture in the memory many times unless the command is lost due to a transmission path error. do. Therefore, even when the image decoding apparatus receives a command for reopening a memory area that has already been opened, the image decoding method must be implemented to determine that the received image is correctly received without processing as an error. In this embodiment, such a picture 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 from the coded signal (step 111). The memory information control unit 201 then determines whether there is a command for opening the memory in the decoded memory management information (step 112). If there is a command to open the memory (Yes in step 112), it is determined whether there is an image to be removed by the command or whether it is already open (deleted) (step 113). The process ends without processing, otherwise, the memory is opened (step 114) to end the process. On the other hand, when there is no memory open command (No in step 112), the operation of step 113 and step 114 is not performed, and the processing ends. Note that the steps 110 and 111 are not in the same order and may be replaced.

이상과 같은 동작에 의해, 실시의 형태 1의 화상 부호화 방법으로 메모리 내의 동일한 화상의 영역을 개방하는 코맨드를 다수회 부호화하여 전송하고, 화상 복호화 장치(200)가 이를 다수회 수신한 경우라도, 에러로서 처리하지 않으므로, 바르게 복호화할 수 있는 화상 복호화 방법을 실현할 수 있다. By the above operation, even if the command which opens the area | region of the same image in a memory is encoded and transmitted many times by the image coding method of Embodiment 1, and the image decoding apparatus 200 receives this many times, it is an error. Since the processing is not carried out as an example, an image decoding method that can be decoded correctly can be realized.

또한, 상기 불필요한 메모리 영역을 개방하는 코맨드는 메모리 관리정보로서 다수회 전송되어 있으면 되고, 이 코맨드를 다시 부호화하여 전송할 때에 반드시 화상의 부호화 신호에 부수시켜 전송되어 있을 필요는 없다. In addition, the command for opening the unnecessary memory area only needs to be transmitted a plurality of times as the memory management information, and it is not necessary to necessarily transmit the coded signal of an image when encoding and transmitting this command again.

또한, 메모리 관리정보의 코맨드를 재송하는 경우에, 그 재송하는 코맨드가, 부호화된 픽쳐와 같은 스트림에 있지 않고, 예를 들면 별도의 스트림으로서 전송하도록 해도 되고, 축적 미디어의 별도의 영역에 기록되어도 된다. When retransmitting the command of the memory management information, the retransmitted command may not be in the same stream as the coded picture, but may be transmitted as a separate stream, for example, or may be recorded in a separate area of the storage medium. do.

(실시의 형태 3) (Embodiment 3)

다음에, 실시의 형태 3에 있어서의 화상 부호화 방법에 대해서 설명한다. 도 9는 실시의 형태 3에 있어서의 화상 부호화 방법을 도시하는 플로우 챠트이고, 화상 부호화 장치(100)가 행하는 동작을 도시하고 있다. 도 9에 있어서 도 3(a)과 동작이 동일한 것은 동일한 기호를 붙이고 있다. Next, the image coding method according to the third embodiment will be described. FIG. 9 is a flowchart showing the picture coding method according to the third embodiment, and shows the operation performed by the picture coding device 100. FIG. In Fig. 9, the same operations as Fig. 3A are given the same symbols.

본 실시의 형태의 특징은 메모리내에서 단시간 보존 메모리로부터 장시간 보존 메모리로 이동해야 할 화상이 존재하는 경우에, 그 화상을 이동하는 메모리 관리정보의 코맨드를 반복하여 부호화하는 것이다. 메모리 관리정보의 코맨드를 반 복하여 부호화함으로써, 한쪽 메모리 관리정보의 코맨드가 전송로 에러로 소실되어도, 다른 한쪽 메모리 관리정보의 코맨드로부터 메모리내에 보존되어 있는 화상의 관리정보를 복원할 수 있으므로, 전송로 에러가 있어도 화상을 정확하게 복원할 수 있는 가능성이 높아진다. A feature of the present embodiment is that when there is an image to be moved from the short-term storage memory to the long-term storage memory in the memory, the command of the memory management information for moving the image is repeatedly encoded. By repeatedly coding the command of the memory management information, even if the command of one of the memory management information is lost due to a transmission path error, the management information of the image stored in the memory can be restored from the command of the other memory management information. Even if there is an error, the possibility of accurately reconstructing the image increases.

도 9에 있어서, 우선, 입력화상을 부호화한다(단계 120). 부호화후에 장시간 보존 메모리로 이동해야할 화상이 있는지를 조사한다(단계 121). 그리고, 메모리 정보 제어부(101)가 장시간 보존 메모리로 이동하는 화상이 있는지 여부를 판정한다(단계 122). 이동해야할 화상이 있으면(단계 122의 Yes), 관리정보 부호화부(105)는 어떻게 장시간 보존 메모리로 이동할지를 나타내는 코맨드를 메모리 관리정보로서 부호화한다(단계 123). 그리고, 그 코맨드대로 화상을 장시간 보존 메모리로 이동한다(단계 124). In Fig. 9, first, an input image is encoded (step 120). It is checked whether there is an image to be moved to the storage memory for a long time after the encoding (step 121). Then, the memory information control unit 101 determines whether there is an image moving 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 the memory management information (step 123). Then, the image is moved to the long-term storage memory as the command (step 124).

다음에, 메모리 정보 제어부(101)는 직전에 부호화한 화상(부호화 대상보다 전의 화상)의 부호화 신호에 부수하여 장시간 보존 메모리로 이동하는 코맨드를 메모리 관리정보로서 부호화하고 있는지 여부를 판정하고(단계 125), 부호화되어 있지 않으면(단계 125의 No) 처리를 종료하고, 부호화되어 있으면(단계 125의 Yes), 관리정보 부호화부(105)는 이 장시간 보존 메모리로 이동하는 코맨드를 다시 메모리 관리정보로서 부호화하여(단계 126), 처리를 종료한다. Next, the memory information control unit 101 determines whether or not the command that moves to the long-term storage memory in association with the coded signal of the immediately coded image (the image before the encoding target) is encoded as the memory management information (step 125). If it is not encoded (No in step 125), the process ends, and if it is encoded (Yes in step 125), the management information encoding unit 105 encodes the command to move to this long-term storage memory again as memory management information. (Step 126), the processing ends.

이와 같이, 직전의 화상의 부호화로 장시간 보존 메모리로 이동하는 (메모리 관리정보의) 코맨드가 부호화되면, 다시 메모리 관리정보의 코맨드가 부호화된다. 직전의 화상의 부호화에 부수시켜 부호화된 메모리 관리정보와, 다시 부호화된 메 모리 관리정보는 각각 화상 부호화 장치에서 출력되어, 화상 복호화 장치에 전송되어 복호화된다. In this way, when a command (of memory management information) moving to the long-term storage memory is encoded by encoding the immediately preceding image, the command of the memory management information is encoded again. The memory management information and the coded memory management information which have been encoded in addition to the encoding of the immediately preceding image are respectively output from the image encoding apparatus, transmitted to the image decoding apparatus, and decoded.

또, 단계 125에서 직전에 부호화한 화상의 부호화 신호에 부수하여 장시간 보존 메모리로 이동하는 코맨드가 부호화되어 있는 경우에 다시 코맨드를 부호화한다고 했는데, 직전의 화상에 부수하고 있는 경우가 아니라 몇 화상 전의 화상에 부수하고 있는 경우라도 되고, 또한, 반복하여, 상기 코맨드를 메모리 관리정보로서 부호화하여, 다수의 화상에 부수시켜도 된다. In addition, the command is coded again when a command moving to the storage memory for a long time in response to the coded signal of the image coded immediately before is coded in step 125. May be repeated, and the command may be repeatedly encoded as memory management information and attached to a plurality of images.

또한, 상기 장시간 보존 메모리로 이동하는 코맨드를 메모리 관리정보로서 다수회 전송할 수 있으면 되므로, 반드시 그 코맨드를 다시 부호화하여 전송할 때에 화상의 부호화 신호에 부수시켜 전송할 필요는 없다. In addition, since a command moving to the long-term storage memory can be transmitted a plurality of times as memory management information, it is not always necessary to accompany the coded signal of an image when transmitting the command again.

또한, 메모리 관리정보의 코맨드를 재송하는 경우에, 그 재송하는 코맨드가 부호화된 픽쳐와 같은 스트림에 있는 것이 아니라, 예를 들면 별도의 스트림으로서 전송하도록 해도 되고, 축적 미디어의 별도의 영역에 기록되어도 된다. In the case of retransmitting the command of the memory management information, the retransmitted command may not be in the same stream as the encoded picture but may be transmitted as a separate stream, for example, or may be recorded in a separate area of the storage medium. do.

이상과 같이 하여, 장시간 보존 메모리에 화상을 이동하는 코맨드를 다수회 부호화하여 전송함으로써, 전송로 에러가 발생한 경우라도, 다수회 전송된 코맨드중 어느 하나가 전송되어 복호된다고 생각되므로, 화상을 바르게 복원할 수 있는 가능성이 높아진다. By encoding and transmitting a command for moving an image to the long-term storage memory as described above many times, even if a transmission path error occurs, any one of the commands transmitted many times is considered to be transmitted and decoded, so that the image is correctly restored. The likelihood of doing so increases.

(실시의 형태 4) (Embodiment 4)

다음에, 실시의 형태 4의 화상 복호화 방법에 대해서 설명한다. Next, the image decoding method of the fourth embodiment will be described.

화상 부호화 장치가 장시간 보존 메모리로 이동하는 코맨드를 다수회 전송한 경우에는 전송로 에러로 코맨드가 소실되지 않는 한, 화상 복호화 장치는 단시간 보존 메모리내의 동일한 화상의 영역을 장시간 보존 메모리로 이동하는 코맨드를 다수회 수신하게 된다. 따라서, 이미 이동한 화상을 다시 이동하는 코맨드를 화상 복호화 장치가 수신한 경우라도 에러로서 처리를 하지 않고, 반대로 바르게 수신되어 있다고 판단하는 화상 복호화 방법을 실현하지 않으면 안된다. 본 실시의 형태에 있어서의 화상 복호화 방법의 특징은 이러한 화상 복호화 방법을 실현한 것이다. When the picture coding apparatus transmits a command for moving to the long-term storage memory a plurality of times, unless the command is lost due to a transmission path error, the picture decoding apparatus executes a command for moving the area of the same image in the short-term storage memory to the long-term storage memory. You will receive a number of times. Therefore, even when the image decoding apparatus receives a command for moving the image which has already been moved again, the image decoding method must be implemented to determine that the image decoding apparatus is correctly received without processing as an error. The feature of the picture decoding method in the present embodiment is such a picture decoding method.

도 10은 실시의 형태 4에 있어서의 화상 복호화 방법을 도시하는 플로우 챠트이고, 도 7에 도시하는 화상 복호화 장치(200)의 동작을 도시하고 있다. 도 10에 있어서 도 3(b)와 동작이 동일한 것은 동일한 기호를 붙이고 있다. FIG. 10 is a flowchart showing the image decoding method according to the fourth embodiment, and shows the operation of the image decoding apparatus 200 shown in FIG. 7. In Fig. 10, the same operations as Fig. 3B are given the same symbols.

도 10에 있어서, 우선, 관리정보 복호화부(205)가 메모리 관리정보를 복호화한다(단계 130). 그리고, 부호화 신호로부터 화상신호를 복호화한다(단계 131). 10, first, the management information decoding unit 205 decodes the memory management information (step 130). Then, the image signal is decoded from the coded signal (step 131).

그리고, 메모리 정보 제어부(201)가 복호화된 메모리 관리정보에 장시간 보존 메모리로 화상을 이동하는 코맨드가 있는지 여부를 판정한다(단계 132). 장시간 보존 메모리로 이동하는 코맨드가 있으면(단계 132의 Yes) 이 코맨드로 이동해야할 화상이 있는지, 혹은 이미 이동 완료(이동후에 제거 완료되므로 화상이 존재하지 않는다)인지를 판정하고(단계 133), 장시간 보존 메모리로 이동 완료이면(단계 133의 Yes) 아무 처리를 하지 않고 종료하며, 그렇지 않으면 장시간 보존 메모리로 이동하여 (단계 134) 처리를 종료한다. Then, the memory information control unit 201 determines whether or not the decoded memory management information contains a command for moving the image to the long-term storage memory (step 132). If there is a command to move to the long-term storage memory (Yes in step 132), it is determined whether there is an image to be moved to this command or whether the movement has already been completed (the image does not exist because it is removed after moving) (step 133). If the move to the storage memory is complete (Yes in step 133), the processing ends without any processing. Otherwise, the processing moves to the storage memory for a long time (step 134) to end the processing.

한편, 장시간 보존 메모리로 이동하는 코맨드가 없는 경우에는(단계 132의 No) 단계 133 및 단계 134의 동작은 행하지 않고 처리를 종료한다. 또, 단계 130과 단계 131은 순서가 동일하지 않고, 교체해도 상관없다. On the other hand, if there is no command to move to the storage memory for a long time (No in step 132), the operation of step 133 and step 134 is terminated without ending the processing. The steps 130 and 131 are not in the same order, and may be replaced.

이상과 같은 동작에 의해, 실시의 형태 3의 화상 부호화 방법으로, 장시간 보존 메모리에 화상을 이동하는 코맨드를 다수회 부호화하여 전송해도, 바르게 복호화할 수 있는 화상 복호화 방법을 실현할 수 있다. By the above operation, even if the command for moving an image to the long-term storage memory is encoded and transmitted many times, the image decoding method which can be decoded correctly can be realized by the image coding method of the third embodiment.

또, 상기 장시간 보존 메모리로 이동하는 코맨드가 메모리 관리정보로서 다수회 전송되어 있으면 되므로, 반드시 그 코맨드를 다시 부호화하여 전송할 때 화상의 부호화 신호에 부수시켜 전송할 필요는 없다. In addition, since the command moving to the long-term storage memory needs to be transmitted a plurality of times as the memory management information, it is not always necessary to accompany the coded signal of the image when the command is encoded and transmitted again.

또한, 메모리 관리정보의 코맨드를 재송하는 경우에, 그 재송하는 코맨드가 부호화된 픽쳐와 같은 스트림에 있지 않고, 예를 들면 별도의 스트림으로서 전송하도록 해도 되고, 축적 미디어의 별도의 영역에 기록되어도 된다. In the case of retransmitting the command of the memory management information, the retransmitted command may not be in the same stream as the encoded picture, but may be transmitted as a separate stream, for example, or may be recorded in a separate area of the storage medium. .

(실시의 형태 5) (Embodiment 5)

다음에, 본 실시의 형태에 있어서의 화상 부호화 방법에 대해 설명한다. 도 11은 실시의 형태 5에 있어서의 화상 부호화 방법을 도시하는 플로우 챠트이고, 도 5에서 도시한 화상 부호화 장치(100)의 동작을 도시하고 있다. 도 11에서, 도 6과 동작이 동일한 것은 동일한 기호를 붙이고 있다. Next, the image coding method in the present embodiment will be described. FIG. 11 is a flowchart showing the picture coding method according to the fifth embodiment, and shows the operation of the picture coding device 100 shown in FIG. In Fig. 11, the same operations as in Fig. 6 are given the same symbols.

도 11에 도시하는 본 실시의 형태의 특징은 메모리내에서 불필요한 화상이 존재하는 경우, 그 화상을 제거하는 메모리 관리정보의 코맨드를 반복하여 부호화하고, 적어도 1회는 메모리에 보존되는 중요 화면에 부수하여 전송하는 것이다. 메모리 관리정보의 코맨드를 반복하여 부호화하는 경우라도, 중요도가 높지 않은 화상에 부수하여 메모리 관리정보의 코맨드를 전송한 것에서는, 중요도가 높지 않은 화상이 모두 복호화되지 않은 경우에 메모리 관리정보의 코맨드는 취득할 수 없게 된다. The feature of this embodiment shown in Fig. 11 is that if an unnecessary image exists in the memory, the command of the memory management information for removing the image is repeatedly encoded, and at least once attached to an important screen stored in the memory. To transmit. Even when the command of the memory management information is encoded repeatedly, when the command of the memory management information is transmitted in conjunction with an image of non-high importance, the command of the memory management information is executed when all the images of non-high importance are decoded. It cannot be acquired.

예를 들면, 도 1(a)에 있어서, 픽쳐 번호 4의 화상은 픽쳐 번호 5의 화상을 부호화한 후는 불필요하게 되므로, 픽쳐 번호 5의 화상에 부수하여 픽쳐 번호 4의 화상이 있는 메모리 영역을 개방하는 코맨드를 부호화할 수 있다. For example, in Fig. 1 (a), since the picture of picture number 4 becomes unnecessary after the picture of picture number 5 is encoded, the memory area in which the picture of picture number 4 accompanies the picture of picture number 5 is located. Open commands can be encoded.

그러나, 이 픽쳐 번호 4의 화상이 있는 메모리 영역을 개방하는 코맨드를 픽쳐 번호 5의 화상에 부수하여 부호화하는 이외에, 픽쳐 번호 7의 화상에 부수하여 부호화한 것에서는, 모두 가장 중요도가 낮은(복호화하지 않은 경우에 화질 열화가 적은) B 픽쳐에 부수하여 상기 코맨드가 부호화되게 된다. 이들의 B 픽쳐는 복호화되지 않는 것이 있어서, 픽쳐 번호 4의 화상이 있는 메모리 영역을 개방하는 코맨드가 복호화되지 않게 되어, 메모리 내의 관리 정보를 바르게 재현할 수 없게 된다. 따라서, 적어도 1회는 중요도가 높고, 반드시 복호화되어, 메모리에 보존되는 화상에 부수하여 화상 영역을 개방하는 코맨드를 부호화하는 것이 필요하다. However, in addition to encoding and attaching a command for opening a memory area in which a picture of picture number 4 is located, the picture of picture number 7 is all the least important (not decoded). If not, the command is coded in addition to the B picture having a low image quality deterioration. Since these B pictures are not decoded, the command for opening the memory area in which the picture of picture number 4 is located is not decoded, and the management information in the memory cannot be correctly reproduced. Therefore, it is necessary to encode a command that opens the image region at least once in a high degree of importance and is necessarily decoded and accompanying the image stored in the memory.

도 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 regions (images not referred to by subsequent encoding) in the memory are examined (step 101) to determine whether there are unnecessary memory regions (step 102). If there is an unnecessary memory area (Yes in step 102), the management information encoding unit 105 encodes a command for opening an unnecessary memory area as memory management information (step 103). This unnecessary memory area is then opened (step 104). If there is no unnecessary memory area (No in step 102), the operations in steps 103 and 104 are not performed.

다음에, 메모리정보 제어부(101)는 과거에 부호화된, 불필요한 메모리영역을 개방하는 코맨드가 중요 화상(복호화되어 메모리에 보존되는)에 부수되어 부호화되어 있는지를 판정하고(단계 140), 중요 화상에 부수되어 부호화되어 있으면(단계 140의 Yes) 처리를 종료하고, 중요 화상에 부수되어 부호화되어 있지 않으면(단계 140의 No), 관리정보 부호화부(105)는 이 불필요한 메모리 영역을 개방하는 코맨드를 다시 메모리 관리정보로서 부호화하여(단계 141) 처리를 종료한다. Next, the memory information control unit 101 determines whether a command that opens an unnecessary memory area, which has been encoded in the past, is encoded by being accompanied by an important image (decoded and stored in the memory) (step 140). If it is attached and encoded (Yes in step 140), the process ends, and if it is attached to an important image and not encoded (No in step 140), the management information encoding unit 105 issues a command to open this unnecessary memory area again. The process is terminated by encoding as the memory management information (step 141).

이에 따라, 불필요한 메모리 영역을 개방하는 코맨드가 중요 화상에 부수되어 부호화된다. As a result, a command for opening an unnecessary memory area is encoded with an important image.

이상과 같이 하여, 복호화되어 메모리에 보존되는 중요 화상에 상기 코맨드가 부수되므로, 상기 코맨드가 복호되게 되어, 전송로 에러가 발생했을 시에 화상을 바르게 복원할 수 있는 가능성이 높아진다. As described above, since the command is appended to an important image decoded and stored in the memory, the command is decoded, so that the possibility of correctly reconstructing the image when a transmission path error occurs is increased.

또, 상기 불필요한 메모리 영역을 개방하는 코맨드를 메모리 관리정보로서 다수회 전송할 수 있으면 되고, 그 코맨드를 다시 부호화하여 전송할 때에 반드시 화상의 부호화 신호에 부수시켜 전송할 필요는 없다. In addition, the command for opening the unnecessary memory area can be transmitted as the memory management information a plurality of times. When the command is encoded and transmitted again, the command is not necessarily accompanied by the coded signal of the image.

또한, 메모리 관리정보의 코맨드를 재송하는 경우에, 그 재송하는 코맨드가, 부호화된 픽쳐와 같은 스트림에 있지 않고, 예를 들면 별도의 스트림으로서 전송하도록 해도 되고, 축적 미디어의 별도의 영역에 기록되어도 된다.When retransmitting the command of the memory management information, the retransmitted command may not be in the same stream as the coded picture, but may be transmitted as a separate stream, for example, or may be recorded in a separate area of the storage medium. do.

(실시의 형태 6) (Embodiment 6)

다음에, 본 실시의 형태의 화상 부호화 방법에 대해서 설명한다. 도 12는 실시의 형태 6에 있어서의 화상 부호화 방법을 도시하는 플로우 챠트이다. 도 12는 도 5에 도시하는 화상 부호화 장치(100)의 동작을 도시하고 있다. 도 12에 있어서, 도 9와 동작이 동일한 것은 동일한 기호를 붙이고 있다. Next, the image coding method of the present embodiment will be described. FIG. 12 is a flowchart showing the picture coding method according to the sixth embodiment. FIG. 12 shows the operation of the picture coding apparatus 100 shown in FIG. In Fig. 12, the same operations as Fig. 9 are given the same symbols.

도 12에 도시하는 본 실시의 형태의 특징은 장시간 보존 메모리로 화상을 이동하는 메모리 관리정보의 코맨드를 반복하여 부호화하고, 적어도 1회는 중요 화면(복호화되어 메모리에 보존되는)에 부수하여 전송하는 것이다. 장시간 보존 메모리에 화상을 이동하는 메모리 관리정보의 코맨드를 반복하여 부호화하는 경우라도, 중요도가 높지 않은 화상에 부수하여 메모리 관리정보의 코맨드를 전송한 것에서는, 중요도가 높지 않은 화상이 모두 복호화되지 않은 경우에, 메모리 관리정보의 코맨드를 취득할 수 없게 된다. The feature of this embodiment shown in FIG. 12 is that the command of the memory management information for moving the image to the long-term storage memory is repeatedly encoded, and transmitted at least once on an important screen (decoded and stored in the memory). will be. Even when the command of the memory management information for moving the image to the long-term storage memory is repeatedly encoded, when the command of the memory management information is transmitted in conjunction with an image of low importance, all the non-high importance images are not decoded. In this case, the command of the memory management information cannot be obtained.

도 12에 있어서, 우선 입력 화상을 부호화한다(단계 120). 부호화후에 장시간 보존 메모리로 이동해야 할 화상이 있는지를 조사하고(단계 121), 이동해야 할 화상이 있는지를 판정한다(단계 122). In Fig. 12, first, an input image is encoded (step 120). After encoding, it is checked whether there is an image to be moved to the storage memory for a long time (step 121), and it is determined whether there is an image to be moved (step 122).

이동해야 할 화상이 있으면(단계 122의 Yes), 관리정보 부호화부(105)가 어떻게 장시간 보존 메모리로 이동하는지를 나타내는 코맨드를 메모리 관리정보로서 부호화하고(단계 123), 이 코맨드대로 화상을 장시간 보존 메모리로 이동한다(단계 124). If there is an image to be moved (Yes in step 122), a command indicating how the management information encoding unit 105 moves to the long-term storage memory is encoded as the memory management information (step 123), and the image is stored for a long time according to this command. Go to step 124.

다음에, 메모리 정보 제어부(101)가, 과거에 부호화한 장시간 보존 메모리로 이동하는 코맨드가, 중요 화상(복호화되어 메모리에 보존되는)에 부수되어 부호화되어 있는지를 판정하고(단계 150), 중요 화상에 부수하여 있으면(단계 150의 Yes) 처리를 종료하고, 중요 화상에 부수되어 있지 않으면 (단계 150의 No), 관리정보 부호화부(105)가 그 장시간 보존 메모리로 이동하는 코맨드를 다시 메모리 관리정보로서 부호화하여 (단계 151), 처리를 종료한다. Next, the memory information control unit 101 determines whether the command moving to the long-term storage memory encoded in the past is accompanied by the important image (decoded and stored in the memory) and encoded (step 150). Is completed (Yes in step 150), the processing ends, and if it is not attached to the important image (No in step 150), the command for the management information encoding unit 105 to move to the long-term storage memory again is returned to the memory management information. Is encoded (step 151), and the process ends.

이에 따라, 장시간 보존 메모리에 화상을 이동하는 코맨드가 중요 화상에 부수하여 부호화된다. As a result, a command for moving an image in the long-term storage memory is encoded along with the important image.

이상과 같이 하여, 복호화되어 메모리에 보존되는 중요 화상에 상기 코맨드가 부수하기 때문에, 상기 코맨드가 복호화되게 되어, 전송로 에러가 발생했을 때에 화상을 바르게 복원할 수 있는 가능성이 높아진다. As described above, since the command accompanies the important image to be decoded and stored in the memory, the command is decoded, so that the possibility of correctly reconstructing the image when a transmission path error occurs is increased.

또, 상기 장시간 보존 메모리로 이동하는 코맨드가 메모리 관리정보로서 다수회 전송되어 있으면 되므로, 그 코맨드를 다시 부호화하여 전송할 때에 반드시 화상의 부호화 신호에 부수시켜 전송될 필요는 없다. In addition, since the command moving to the long-term storage memory needs to be transmitted a plurality of times as the memory management information, it is not always necessary to be accompanied by the coded signal of the image when the command is encoded and transmitted again.

또한, 메모리 관리정보의 코맨드를 재송하는 경우에, 그 재송하는 코맨드가, 부호화된 픽쳐와 동일한 스트림에 있지 않고, 예를 들면 별도의 스트림으로서 전송하도록 해도 되고, 축적 미디어의 별도의 영역에 기록되어도 된다. In the case of retransmitting the command of the memory management information, the retransmitted command may not be in the same stream as the encoded picture, but may be transmitted as a separate stream, for example, or may be recorded in a separate area of the storage medium. do.

(실시의 형태 7) (Embodiment 7)

실시의 형태 7에 있어서의 화상 부호화 방법에 대해 설명한다. The image coding method in the seventh embodiment will be described.

본 실시의 형태의 특징은 화상의 중요도에 따라 선택한 참조 화상을 참조하여 부호화를 행하는 화상 부호화 방법이다. A feature of this embodiment 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 the picture coding method according to the seventh embodiment of the present invention. FIG. 13 shows the operation performed by the picture coding apparatus 100 shown in FIG.

도 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 the I picture and the P picture is high, and the importance of the B picture is low. In addition, even with the same P picture, the importance of the P picture referenced from many images is high, and the importance of the P picture not very referenced is low.

다음에, 부호화 대상 화상과 동등 이상의 중요도의 화상을 메모리내의 참조 화상으로부터 선택하고, 참조 화상의 후보로 한다(단계 161). 예를 들면, B 픽쳐는 I 픽쳐 및 P 픽쳐를 참조할 수 있지만, P 픽쳐는 중요도가 낮은 P 픽쳐를 참조화상의 후보로부터 제외한다. Next, an image of equal importance or higher than the encoding target image is selected from the reference image in the memory to be a candidate of the reference image (step 161). For example, a B picture may refer to an I picture and a P picture, but the P picture excludes P pictures of low importance from candidates of the reference picture.

다음에 선택한 참조 화상의 후보를 나타내는 지시 정보(메모리 관리정보의 일종)를 부호화하고(단계 162), 선택한 참조 화상의 후보중에서 블록 단위로 적절한 참조 화상을 참조하여 부호화한다(단계 163). 또한, 단계 162와 단계 163은 순서가 동일하지 않고, 교체해도 상관없다. Next, the indication information (a kind of memory management information) indicating the candidate of the selected reference picture is encoded (step 162), and among the candidates of the selected reference picture is referred to and encoded with reference to an appropriate reference picture in block units (step 163). In addition, step 162 and step 163 are not the same in order, and may be replaced.

이와 같이 하여, 참조 화상의 후보 중에, 부호화 대상 화상의 중요도보다도 낮은 중요도의 화상을 포함시키지 않도록 하고 있다. In this way, the candidate of the reference image is not including an image having a lower importance than the importance of the encoding target image.

이상과 같이, 참조 화상의 후보중에, 부호화 대상 화상의 중요도보다도 낮은 중요도의 화상을 포함시키지 않으므로, 스케일러빌리티를 실현할 수 있는 스트림을 생성한 경우에 참조 불가능한 화상을 참조 화상의 후보로부터 제외할 수 있어, 부호화 효율이 향상된다. As described above, since the candidate of the reference picture does not include an image having a lower importance than that of the encoding target picture, an unreferenced picture can be excluded from the candidate of the reference picture when a stream capable of achieving scalability is generated. The coding efficiency is improved.

여기서, 상술한 바와 같이 설정된 화상의 중요도에 따라 행해지는 화상 부호 화 방법에 대해, 도 14를 이용하여 구체적으로 설명한다. Here, the picture encoding method performed according to the importance of the picture set as described above will be described in detail with reference to FIG.

도 14(a)는 각 프레임에 부여되는 번호(픽쳐(프레임) 번호)와, 각 프레임이 메모리 내에 보존될 때의 번호(보존 픽쳐(프레임) 번호)와, 각 프레임이 전송되는 순서를 나타내는 번호(전송 순서)의 관계를 도시하는 설명도이다. Fig. 14A shows a number (picture (frame) number) assigned to each frame, a number when each frame is stored in a memory (preservation picture (frame) number), and a number indicating the order in which each frame is transmitted. It is explanatory drawing which shows the relationship of (transmission order).

도 14(a)에 있어서, 픽쳐 번호 0의 I 픽쳐는 다른 픽쳐를 참조하지 않으므로 메모리에 보존되고, 보존 픽쳐 번호는 0으로 된다. 다음에 픽쳐 번호 0의 I 픽쳐를 참조하는 픽쳐 번호 2의 P 픽쳐가 메모리에 보존되므로 픽쳐 번호 2의 P 픽쳐에 관한 보존 픽쳐 번호가 1로 된다. 그리고 다음에, 픽쳐 번호 0의 I 픽쳐와 픽쳐 번호 2의 P 픽쳐를 참조하는 픽쳐 번호 1의 B 픽쳐가 메모리내에 보존되기 때문에, 픽쳐 번호 1의 B 픽쳐의 보존 픽쳐 번호가 2로 된다. 각 픽쳐가 전송되는 순서는 메모리에 보존되는 순서로 한다. 동일한 순서로 픽쳐 번호와 보존 픽쳐 번호와 전송 순서의 관계가 결정된다. In Fig. 14A, the I picture of picture number 0 is stored in the memory because it does not refer to other pictures, and the stored picture number is zero. Next, since the P picture of picture No. 2 referring to the I picture of picture number 0 is stored in the memory, the stored picture number for the P picture of picture number 2 is set to one. Then, since the B picture of picture number 1 which refers to the I picture of picture number 0 and the P picture of picture number 2 is stored in the memory, the save picture number of the B picture of picture number 1 becomes two. The order in which the pictures are transmitted is in the order in which they are stored in the memory. In the same order, the relationship between the picture number, the stored picture number, and the transmission order is determined.

다음에, 디코드(복호)하는 픽쳐 번호와, 메모리에 보존되어 있는 픽쳐 번호 및 삭제되는 픽쳐 번호의 관계의 일례에 대해 도 14(b)를 이용하여 설명한다. Next, an example of the relationship between the decoded (decoded) picture number, the picture number stored in the memory, and the picture number to be deleted will be described with reference to Fig. 14B.

도 14(b)는 디코드하는 픽쳐 번호(프레임 번호)와 보존되어 있는 픽쳐 번호(프레임 번호)와 삭제되는 픽쳐 번호(프레임 번호)의 관계를 도시하는 관계도이다. 또한, 여기서는 메모리에 보존할 수 있는 픽쳐의 최대 매수를 5로 한다. 메모리에는 전송 순서에 따라서 픽쳐가 보존되게 된다. Fig. 14B is a relation diagram showing the relationship between the decoded picture number (frame number), the stored picture number (frame number) and the deleted picture number (frame number). In this case, the maximum number of pictures that can be stored in the memory is five. Pictures are stored in the memory in the order of transfer.

또한, 예를 들면 픽쳐 번호가 4인 P 픽쳐가 디코드될 때에는, 픽쳐 번호가 4인 P 픽쳐의 보존 픽쳐 번호가 3이므로, 보존 픽쳐 번호가 0, 1, 2인 픽쳐가 메모 리 상에 보존되게 된다. 디코드하는 픽쳐 번호가 3인 B 픽쳐가 디코드될 때에는, 도 14(b)에 도시하는 바와 같이, 픽쳐 번호가 4, 1, 2, 0인 픽쳐가 보존되어 있다. 여기서, 픽쳐 번호 1의 B 픽쳐는 도 14(a)에 도시하는 바와 같이, 픽쳐 번호 3의 픽쳐를 복호화한 후는 어느 픽쳐로부터도 참조되는 일이 없으므로, 픽쳐 번호가 3인 픽쳐가 디코드된 시점에서 삭제된다. In addition, for example, when a P picture having a picture number of 4 is decoded, since a stored picture number of a P picture having a picture number of 4 is 3, a picture having 0, 1, or 2 stored picture numbers is stored on the memory. do. When the B picture whose picture number to be decoded is 3 is decoded, as shown in Fig. 14B, pictures having picture numbers of 4, 1, 2, and 0 are stored. Here, the picture B of picture number 1 is not referred to from any picture after decoding the picture of picture number 3, as shown in Fig. 14A, so that the picture having picture number 3 is decoded. Is deleted from.

마찬가지로, 디코드하는 픽쳐 번호가 5인 B 픽쳐가 디코드될 때에는, 도 14(b)에 도시하는 바와같이, 픽쳐 번호가 6, 3, 4, 2, 0인 픽쳐가 보존되어 있다. 여기서, 픽쳐 번호 3의 B 픽쳐는 픽쳐 번호 5의 픽쳐를 복호화한 후에는 어느 픽쳐로부터도 참조되는 일이 없으므로, 픽쳐 번호가 5인 B 픽쳐가 디코드된 시점에서 삭제된다. Similarly, when a B picture having a decoded picture number of 5 is decoded, as shown in Fig. 14B, pictures having picture numbers of 6, 3, 4, 2, and 0 are stored. Here, since the picture B of picture number 3 is not referred to from any picture after decoding the picture of picture number 5, the B picture with picture number 5 is deleted at the time when it is decoded.

또한, 디코드하는 픽쳐 번호가 8인 P 픽쳐가 디코드될 때에는, 도 14(b)에 도시하는 바와 같이, 픽쳐 번호가 5, 6, 4, 2, 0인 픽쳐가 보존되어 있다. 여기서 메모리에는 최대 5 프레임밖에 보존할 수 없으므로, 픽쳐 번호 8인 P 픽쳐를 후에 참조하기 위해서는 픽쳐 번호가 5, 6, 4, 2, 0중 어느 하나의 픽쳐를 삭제하여 픽쳐 번호 8인 P 픽쳐를 기억하는 메모리를 확보하지 않으면 안된다. 따라서, 도 14(b)에 있어서의 삭제하는 프레임의 선택 기준으로서, P 픽쳐의 디코드, 즉 짝수 번호의 픽쳐 번호의 디코드에 있어서는 시간적으로 가장 오래된 픽쳐, 즉 이 경우는 픽쳐 번호가 0인 I 픽쳐를 픽쳐 번호 8의 P 픽쳐를 디코드한 시점에서 삭제한다. In addition, when a P picture whose picture number to be decoded is 8 is decoded, as shown in Fig. 14B, pictures having picture numbers 5, 6, 4, 2, and 0 are stored. Since only up to five frames can be stored in the memory, in order to refer to the P picture with picture number 8 later, the P picture with picture number 8 is deleted by deleting any one of picture numbers 5, 6, 4, 2, and 0. You must secure memory to remember. Therefore, as the selection criterion for erasing a frame in Fig. 14B, in the decoding of the P picture, that is, the decoding of the even-numbered picture number, the picture that is the oldest in time, that is, the I picture whose picture number is 0 in this case, Is deleted at the time when the P picture of picture number 8 was decoded.

마찬가지로, 디코드하는 픽쳐 번호가 7인 B 픽쳐가 디코드될 때에는 도 14(b)에 도시하는 바와 같이, 픽쳐 번호가 8, 5, 6, 4, 2인 픽쳐가 보존되어 있다. 여기서, 픽쳐 번호 5의 B 픽쳐는 픽쳐 번호 7의 B 픽쳐를 복호화한 후는 어느 픽쳐로부터도 참조되는 일이 없으므로, 픽쳐 번호가 7인 B 픽쳐를 디코드한 시점에서 삭제된다. Similarly, when a B picture having a decoded picture number of 7 is decoded, as shown in Fig. 14B, pictures having picture numbers of 8, 5, 6, 4, and 2 are stored. Here, since the B picture of picture number 5 is not referenced from any picture after decoding the B picture of picture number 7, it is deleted at the time when the B picture with picture number 7 is decoded.

또한, 디코드하는 픽쳐 번호가 10인 P 픽쳐가 디코드될 때에는, 도 14(b)에 도시하는 바와같이, 픽쳐 번호가 7, 8, 6, 4, 2인 픽쳐가 보존되어 있다. 여기서, 메모리에는 최대 5 프레임 밖에 보존할 수 없으므로, 픽쳐 번호 10인 P 픽쳐를 후에 참조하기 위해서는 픽쳐 번호가 7, 8, 6, 4, 2중 어느 하나의 픽쳐를 삭제하여 픽쳐 번호 10의 픽쳐를 기억하는 메모리를 확보하지 않으면 안된다. 따라서, 도 14(b)에 있어서의 삭제하는 프레임의 선택 기준으로서, P 픽쳐의 디코드, 즉 짝수 번호의 픽쳐 번호인 픽쳐의 디코드에 있어서는, 시간적으로 가장 오래된 픽쳐 번호가 2인 픽쳐를 픽쳐 번호 10의 P 픽쳐를 디코드한 시점에서 삭제한다. When a P picture having a picture number of 10 decoded is decoded, as shown in Fig. 14B, pictures having picture numbers 7, 8, 6, 4, and 2 are stored. Since only 5 frames can be stored in the memory at a time, in order to refer to a P picture having picture number 10 later, the picture having picture number 10 is deleted by deleting any one of picture numbers 7, 8, 6, 4, and 2. You must secure memory to remember. Therefore, as the selection criteria of the frame to be deleted in Fig. 14B, in the decoding of the P picture, that is, the decoding of the picture which is the picture number of the even number, the picture having the oldest picture number is 2 as the picture number 10. The P picture is deleted at the time of decoding.

이와 같이 픽쳐가 삭제될 때에, 디코드되는 픽쳐의 부호화 신호에, 픽쳐를 삭제하기 위한 메모리 관리정보의 코맨드가 부호화되어 부수되어, 전송된다. When the picture is deleted in this manner, a command of the memory management information for deleting the picture is encoded and attached to the coded signal of the picture to be decoded and transmitted.

상기 도 14(b)에 도시한 예에서는 메모리 내에서 불필요한 화상(픽쳐)이 존재하고, 그 화상을 제거하는 메모리 관리정보의 코맨드를 1회 보내는 예에 대해서 기술했다. 이와 같이, 제거하는 메모리 관리정보의 코맨드를 1회만 보내면, B 픽쳐에 부수하여 보내진 메모리 관리정보의 코맨드를 실행할 수 없을 가능성이 있다. 왜냐하면, B 픽쳐는 P 픽쳐의 부호화·복호화에서 참조되는 화상으로서 이용될 가능성이 낮으므로, 충분한 기억 용량이나 전송 용량을 확보할 수 없는 경우에 B 픽 쳐의 데이터가 우선하여 파기될 가능성이 높고, 그 결과 B 픽쳐에 부수하여 보내진 메모리 관리정보의 코맨드를 실행할 수 없을 가능성이 있기 때문이다. In the example shown in Fig. 14B, an example is described in which an unnecessary picture (picture) exists in the memory and a command of memory management information for removing the picture is sent once. In this way, if the command of the memory management information to be removed is sent only once, there is a possibility that the command of the memory management information sent accompanying the B picture cannot be executed. Because the B picture is unlikely to be used as an image referred to in the encoding and decoding of the P picture, it is highly likely that the data of the B picture is preferentially discarded when sufficient storage capacity or transmission capacity cannot be secured. As a result, there is a possibility that the command of the memory management information sent to the B picture cannot be executed.

이 문제를 해결하기 위해, 화상을 제거하는 메모리 관리정보의 코맨드를 반복하여 부호화하여 전송하도록 한 예를 설명한다. 이하 도 14(c)에 대해 구체적으로 설명한다. To solve this problem, an example in which a command of memory management information for removing an image is repeatedly encoded and transmitted will be described. Hereinafter, FIG. 14 (c) will be described in detail.

도 14(c)는 디코드하는 픽쳐 번호(프레임 번호)와 보존되어 있는 픽쳐 번호(프레임 번호)와 삭제되는 픽쳐 번호(프레임 번호)의 다른 관계를 도시한 관계도이다. 도 14(c)에 있어서, 삭제되는 픽쳐 번호의 픽쳐를 삭제하는 코맨드가, 디코드하는 픽쳐 번호의 픽쳐의 부호화 신호에 부수하는 것을 나타낸다.Fig. 14C is a relation diagram showing another relationship between the decoded picture number (frame number), the stored picture number (frame number) and the deleted picture number (frame number). In Fig. 14C, the command for deleting the picture of the picture number to be deleted accompanies the coded signal of the picture of the 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. 14C, when a B picture having a picture number of 3 is decoded, a picture having picture numbers of 4, 1, 2, and 0 is stored. Here, the B picture with picture number 1 is not referenced from any picture after decoding the picture with picture number 3, as shown in Fig. 14A. Therefore, when the picture having picture number 3 is decoded, the B picture of picture number 1 is deleted, and a command of the memory management information for deleting is attached to the picture having picture number 3.

그러나, 픽쳐 번호 3인 픽쳐는 B 픽쳐이므로, I 픽쳐나 P 픽쳐와 비교해 화상 재현의 점에서 전술한 것과 마찬가지로 중요도가 낮고, 송신시에 데이터가 파기되기 쉽기 때문에 픽쳐 번호 3의 B 픽쳐에 부수하여 보내진 메모리 관리정보의 코맨드를 실행할 수 없을 가능성이 있다(도 25에 도시하는 바와같이 프레임이 보존되는 경우). However, since the picture with picture number 3 is a B picture, it is of lower importance as described above in terms of image reproduction compared to an I picture or a P picture, and data is easily destroyed at the time of transmission, thus accompanying the B picture of picture number 3 There is a possibility that the command of the sent memory management information cannot be executed (when the frame is saved as shown in FIG. 25).

그래서, 다음에 디코드하는, 픽쳐 번호 3의 B 픽쳐보다 화상 재현의 점에서 중요도가 높은 픽쳐 번호 6의 P 픽쳐에, 픽쳐 번호 3에 부수시킨 픽쳐 번호 1의 픽쳐를 삭제하는 것을 나타내는 메모리 관리정보의 코맨드를 부수시킨다(도 14(c) 참조). Therefore, the memory management information indicating that the picture of picture number 1, which is attached to picture number 3, is deleted from the P picture of picture number 6, which is more important in terms of image reproduction than the picture B of picture number 3, which is decoded next. Break the command (see Figure 14 (c)).

마찬가지로, 픽쳐 번호 8의 P 픽쳐에 픽쳐 번호 5의 B 픽쳐에 부수시킨 메모리 관리정보의 코맨드(픽쳐 번호 3의 픽쳐를 삭제하는 것을 나타내는)를 부수시키고, 픽쳐 번호 10의 P 픽쳐에 픽쳐 번호 7의 B 픽쳐에 부수시킨 메모리 관리정보의 코맨드(픽쳐 번호 5의 픽쳐를 삭제하는 것을 나타낸다)를 부수시킨다. 또, 픽쳐 번호 8의 픽쳐는 P 픽쳐이므로, 도 14(c)에 도시하는 바와 같이, 픽쳐 번호 7의 B 픽쳐에 픽쳐 번호 8의 픽쳐에 부수시킨 메모리 관리정보의 코맨드를 부수시키고 있지 않은데, 부수시켜도 된다. Similarly, a P picture of picture number 8 is accompanied by a command of memory management information (indicating that the picture of picture number 3 is deleted) attached to a B picture of picture number 5, and a picture of picture number 7 is assigned to a P picture of picture number 10. The command of the memory management information (shown to delete the picture of picture number 5) accompanying the B picture is appended. Since the picture of picture number 8 is a P picture, as shown in Fig. 14C, the B picture of picture number 7 does not accompany the command of memory management information attached to the picture of picture number 8, You can also do it.

이상, 도 14(c)에 도시하는 바와 같이, B 픽쳐에 최초에 부수시킨 메모리 관리정보의 코맨드와 동일한 메모리 관리정보의 코맨드를, B 픽쳐보다 화상 재현의 점에서 중요도가 높은 픽쳐이고, 최초에 메모리 관리정보의 코맨드를 부수시킨 B 픽쳐보다 후에 보존 또는 전송되는 픽쳐에, 반복 부수시켰다. 이에 따라, 최초로 메모리 관리정보의 코맨드가 부수된 B 픽쳐가 결락되어도, 메모리 관리정보의 코맨드를 정상으로 실행할 수 있다. As shown in Fig. 14 (c), the command of the memory management information that is the same as the command of the memory management information first attached to the B picture is a picture of higher importance in terms of image reproduction than the B picture. The picture to be stored or transmitted after the B picture that accompanied the command of the memory management information is repeatedly appended. Thus, even if the B picture in which the command of the memory management information is attached first is dropped, the command of the memory management information can be executed normally.

또, 도 14(c)를 이용하여 설명한 바와같이, B 픽쳐에 메모리 관리정보의 코맨드를 부수시키더라도, 다시 P 픽쳐에 반복 메모리 관리정보의 코맨드를 부수시키는 경우에, 설정된 중요도가 이용된다. 또, 중요도의 설정은 본 실시의 형태에 도 시한 것에 한정되지 않는다.As described with reference to Fig. 14 (c), even when a command of the memory management information is attached to the B picture, the set importance is used when the command of the repetitive memory management information is attached to the P picture again. In addition, setting of importance is not limited to what was shown to this embodiment.

또, 본 실시의 형태에서는 각 화상의 중요도에 따라, 각 화상을 보낼지 보내지 않을지를 정하고, 각 화상에 있어서의 중요도를, 상기 실시의 형태에 나타내는 메모리 관리정보와 같이 각 화상에 부수하여 부호화하는 것은 아니다. 따라서, 본 실시의 형태에서 부호화된 데이터의 복호화 처리는 종래의 방법과 다르지 않다. In the present embodiment, the importance of each image is determined according to the importance of each image, and the importance in each image is encoded along with each image as in the memory management information shown in the above embodiment. no. Therefore, the decoding process of the encoded data in this embodiment is not different from the conventional method.

(실시의 형태 8) (Embodiment 8)

다음에, 실시의 형태 8에 관해서 설명한다. Next, Embodiment 8 will be described.

본 실시의 형태의 특징은 메모리 내의 전체 화상(픽쳐)을 삭제하고, 메모리 영역의 초기화를 행하는 (메모리 관리정보의) 코맨드를 다수회 부호화하여 전송하는 것이다. A feature of the present embodiment is that the entire picture (picture) in the memory is deleted, and a command (of memory management information) for performing initialization of the memory area is encoded and transmitted many times.

상기 각 실시의 형태에서 도시한 메모리 관리정보는 도 15에 도시하는 것과 같은 코드 정보로서 부여된다. The memory management information shown in each of the above embodiments is given as code information as shown in FIG.

도 15는 메모리 관리정보의 코맨드를 도시하는 대응도이고, 코드 번호(Code)와, 코맨드의 내용(코맨드)과, 그 부가 정보(부가 정보)를 도시하고 있다. Fig. 15 is a correspondence diagram showing a command of the memory management information, which shows a code number (Code), the content of the command (command), and its additional information (additional information).

예를 들면, 단시간 보존 메모리의 불필요한 메모리 영역을 개방하는 코맨드(단시간 보존 메모리 개방)는 코드 정보(Code1)로서 부여되고, 개방하는 픽쳐 번호(프레임 번호)가 부가 정보로서 부가된다. For example, a command for opening an unnecessary memory area of the short-term storage memory (short-term storage memory opening) is given as code information Code1, and a picture number (frame number) to open is added as additional information.

또한, 코드 정보는 도 17에 도시하는 각 프레임의 헤더 정보로서 주어진다. In addition, code information is given as header information of each frame shown in FIG.

도 17은 각 픽쳐의 부호화 신호에 있어서의 헤더 정보와 프레임 데이터와의 관계를 도시하는 모식도이다. 도 17에 있어서, 각 부호화 신호는 후술하는 프레임(Frm12, Frm11, Frm14)의 부호화 신호를 나타내고 있다. 각 부호화 신호는 헤더 정보를 갖는 프레임 헤더와 화상의 부호화에 관한 프레임 데이터를 구비하고 있다. 예를 들면, 프레임(Frm12)의 부호화 신호는 프레임 헤더(Frm12Hdr)와, 각 데이터(MB12a, MB12b, MB12c, MB12d) 등으로 이루어지는 프레임 데이터를 구비하고 있다. 17 is a schematic diagram illustrating a relationship between header information and frame data in the coded signal of each picture. In FIG. 17, each coded signal represents a coded signal of frames Frm12, Frm11, and Frm14 described later. Each coded signal includes a frame header having header information and frame data relating to encoding of an image. For example, the coded signal of the frame Frm12 includes a frame header Frm12Hdr and frame data consisting of data MB12a, MB12b, MB12c, MB12d, and the like.

이 부호화 신호의 상세를 도 18의 모식도에 도시한다. The detail of this coded signal is shown in the schematic diagram of FIG.

도 18은 부호화 신호의 헤더 정보에 있어서의 메모리 관리정보의 코맨드를 도시하는 모식도이다. 18 is a schematic diagram showing a command of memory management information in header information of an encoded signal.

도 18에 도시하는 바와 같이, 프레임(FrmA)의 부호화 신호는 헤더 정보를 갖는 프레임 헤더(FrmAHdr)와, 각 데이터(MBa, MBb, MBc, MBd) 등으로 이루어지는 프레임 데이터를 구비하고 있다. 그리고, 코맨드의 코드 정보(CodeA)의 다음에 코드 정보(CodeA)의 부가 정보(AddA)가, 계속해서 코드 정보(CodeA)의 코맨드의 다음에 실행되어야 하는 코맨드의 코드 정보(CodeB), 코드 정보(CodeB)의 부가정보(AddB)가 프레임 헤더(FrmAHdr)에 부가된다. 부가정보가 없으면 코드 정보(CodeC)와 같이 코드 정보만이 부가된다. As shown in FIG. 18, the coded signal of frame FrmA is provided with the frame header FrmAHdr which has header information, and frame data which consists of each data MBa, MBb, MBc, MBd. Then, the additional information AddA of the code information CodeA after the code information CodeA of the command is followed by the code information CodeB of the command to be executed after the command of the code information CodeA and the code information. The additional information AddB of (CodeB) is added to the frame header FrmAHdr. If there is no additional information, only code information is added, such as code information CodeC.

다음에, 도 16에 코맨드 실행의 순서를 도시한다. Next, the procedure of command execution is shown in FIG.

도 16은 코맨드 실행순서를 도시하는 플로우 챠트이다. 16 is a flowchart showing the command execution procedure.

도 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 is completed (step C1). When the command is not acquired and the command is acquired (No in step C1), the acquired command is executed (step C2), and the operation returns to step C0 and the operation is repeated. On the other hand, if the command acquisition ends and the command is not acquired (Yes in step C1), the command execution processing ends. This procedure is performed for each frame. In addition, even when command information is sent in units of slices composed of a plurality of large blocks, the commands are executed in the same order as described above.

그런데, 상기 실시의 형태 1에서는 불필요한 화상을 제거하는 (메모리를 개방하는) 메모리 관리정보의 코맨드에 관해서 설명하였다. 또한, 실시의 형태 1에서는 불필요한 화상을 제거하는 메모리 관리정보의 코맨드를 반복하여 부호화함으로써, 한쪽 메모리 관리정보의 코맨드가 전송로 에러로 소실되어도, 다른 한쪽의 메모리 관리정보의 코맨드로부터 메모리 내에 보존되어 있는 화상의 관리 정보를 복원할 수 있어, 화상을 바르게 복원할 수 있는 가능성이 높아지는 것을 나타냈다. By the way, in Embodiment 1, the command of the memory management information (opening the memory) for removing unnecessary images has been described. In Embodiment 1, by repeatedly encoding a command of memory management information for removing an unnecessary image, even if a command of one memory management information is lost due to a transmission path error, it is stored in the memory from a command of the other memory management information. It has been shown that the management information of the existing image can be restored, and the possibility of correctly reconstructing the image increases.

여기서, 도 15에 도시하는 코드 정보 중, 메모리내의 모든 정보를 제거하는 초기화 코맨드(Code5)에 대해 검토한다. Here, among the code information shown in FIG. 15, the initialization command Code5 for removing all the information in the memory will be examined.

초기화 코맨드(Code5)가 한번만 보내어질 때, 이 초기화 코맨드 (Code5)가 전송로 에러로 소실되면, 원래 초기화한 후에 행하는 메모리 관리 등의 처리에 영향을 미친다. 따라서, 실시의 형태 1과 같이, 초기화 코맨드(Code5)를 반복하여 부호화하여 전송한 경우에 대해 도 19를 이용하여 설명한다. When the initialization command Code5 is sent only once, if this initialization command Code5 is lost due to a transmission path error, it affects processing such as memory management performed after the initial initialization. Therefore, as in the first embodiment, the case where the initialization command Code5 is repeatedly encoded and transmitted will be described with reference to FIG. 19.

도 19는 각 프레임에 부여되는 번호(픽쳐(프레임)번호)와, 각 프레임이 메모리내에 보존될 때의 번호(보존 픽쳐(프레임)번호)와, 각 프레임이 전송되는 순서를 도시하는 번호(전송 순서)의 관계를 도시하는 설명도이다. Fig. 19 shows a number (picture (frame) number) assigned to each frame, a number (storage picture (frame) number) when each frame is stored in memory, and a number (transmission) showing the order in which each frame is transmitted. It is explanatory drawing which shows the relationship of order).

이하, 도 19에 대해 구체적으로 설명한다. 우선, 픽쳐 번호 0의 I 픽쳐는 다른 픽쳐를 참조하지 않으므로 메모리에 보존되고, 보존 픽쳐 번호는 0으로 된다. 다음에 픽쳐 번호 0의 I 픽쳐를 참조하는 픽쳐 번호 2의 P 픽쳐가 메모리에 보존되므로 픽쳐 번호 2의 P 픽쳐에 대한 보존 픽쳐 번호가 1로 된다. 그리고, 픽쳐 번호 0의 I 픽쳐와 픽쳐 번호 2의 P 픽쳐를 참조하는 픽쳐 번호 1의 B 픽쳐가 메모리내에 보존되기 때문에, 픽쳐 번호 1의 B 픽쳐의 보존 픽쳐 번호가 2로 된다. 각 픽쳐가 전송되는 순서는 메모리에 보존된 순서로 한다. 동일한 순서로 픽쳐 번호와 보존 픽쳐 번호와 전송 순서의 관계가 결정된다. Hereinafter, FIG. 19 is demonstrated concretely. First, the I picture of picture number 0 is stored in the memory because it does not refer to other pictures, and the stored picture number is zero. 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 for the P picture of picture number 2 is set to 1. Then, since the B picture of picture number 1 which refers to the I picture of picture number 0 and the P picture of picture number 2 is stored in the memory, the save picture number of the B picture of picture number 1 becomes 2. The order in which the pictures are transmitted is in the order stored in the memory. In the same order, the relationship between the picture number, the stored picture number, and the transmission order is determined.

도 19에 도시하는 픽쳐 번호 12의 I 픽쳐를 부호화할 때에 도 15에 도시하는 초기화 코맨드(Code5)를 보내기로 한다. 픽쳐 번호 12의 I 픽쳐의 보존 픽쳐 번호는 11이므로, 이 초기화 코맨드(Code5)에 의해, 보존 픽쳐 번호가 10 이하인 픽쳐를 메모리내에서 모두 제거할 수 있다. When the I picture of picture number 12 shown in FIG. 19 is encoded, an initialization command Code5 shown in FIG. 15 is sent. Since the stored picture number of the I picture of picture number 12 is 11, this initialization command (Code5) allows all pictures having the stored picture number 10 or less to be removed from memory.

여기서, 초기화 코맨드(Code5)를 부호화하는 방법에 대해 도 20을 이용하여 설명한다. 도 20은 초기화 코맨드(Code5)를 부호화하는 방법을 도시하는 플로우 챠트이고, 도 5에 도시하는 화상 부호화 장치(100)가 행하는 동작을 도시하고 있다. Here, a method of encoding the initialization command Code5 will be described with reference to FIG. 20. FIG. 20 is a flowchart showing a method of encoding the initialization command Code5, and shows an operation performed by the image coding apparatus 100 shown in FIG.

우선, 입력 화상을 부호화한다(단계 A0). 부호화 후에 메모리내의 참조 가능한 모든 픽쳐가 불필요한지 여부를(이후의 부호화에서 어느 화상도 참조되지 않는지 여부)를 조사(초기화 조사)하고 (단계 A1), 메모리에 격납되어 있던 픽쳐가 이후 참조되지 않고 초기화한 쪽이 좋은지를 판정한다(단계 A2). First, the input image is encoded (step A0). After encoding (irrespective checking) whether all referenceable pictures in the memory are unnecessary (no image is referenced in subsequent encoding) (step A1), the pictures stored in the memory are initialized without being referenced later. It is determined whether one is good (step A2).

초기화한 쪽이 좋으면(단계 A2의 Yes), 메모리 영역을 초기화하는 초기화 코맨드(Code5)를 메모리 관리정보로서 부호화하고(단계 A3), 초기화를 행하여 (단계 A4), 처리를 종료한다. 한편, 초기화의 필요가 없는 경우(단계 A2의 No)는 단계 A3 및 단계 A4의 동작은 행하지 않고, 처리를 종료한다. If it is better to initialize (Yes in step A2), the initialization command Code5 for initializing the memory area is encoded as memory management information (step A3), and initialization is performed (step A4), and the processing ends. On the other hand, when there is no need for initialization (No in step A2), the operation of step A3 and step A4 is not performed, and the processing ends.

다음에 부호화된 초기화 코맨드(Code5)를 복호화하는 방법에 대해 도 21을 이용하여 설명한다. Next, a method of decoding the encoded initialization command Code5 will be described with reference to FIG.

도 21은 부호화된 초기화 코맨드(Code5)를 복호화하는 방법을 도시한 플로우 챠트로, 도 7에 도시하는 화상 복호화 장치(200)가 행하는 동작을 도시하고 있다. FIG. 21 is a flowchart showing a method of decoding an encoded initialization command Code5, and illustrates an operation performed by the image decoding device 200 shown in FIG.

우선, 메모리 관리정보를 복호화하고 (단계 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). Next, it is determined whether the decoded memory management information has an initialization command Code5 (step A12). If there is an initialization command Code5 (Yes in step A12), all pictures stored in the memory are removed and initialized. (Step A13), processing ends. At this time, however, the decoded image (in step A11) is not removed.

한편, 메모리 관리정보에 초기화 코맨드(Code5)가 없으면(단계 A12의 No), 처리를 종료한다. On the other hand, if there is no initialization command Code5 in the memory management information (No in step A12), the processing ends.

이하, 도 19를 이용하여 메모리의 초기화를 행하는 방법에 대해 구체적으로 설명한다. 도 19에 도시하는 픽쳐 번호 11의 B 픽쳐에, 픽쳐 번호 12의 I 픽쳐에 부여한 초기화 코맨드(Code5)와 동일한 초기화 코맨드(Code5)를 부여하기로 한다. Hereinafter, a method of initializing a memory will be described in detail with reference to FIG. 19. An initialization command Code5 identical to the initialization command Code5 assigned to the picture I of picture number 12 is assigned to the B picture of picture number 11 shown in FIG.

도 17에 도시하면, 프레임(Frm12)(픽쳐 번호 12)의 프레임 헤더(Frm12Hdr) 와, 프레임(Frm11)(픽쳐 번호 11)의 프레임 헤더(Frm11Hdr)에 초기화 코맨드(Code5)가 부여되게 된다. 초기화 코맨드(Code5)는 도 15에 도시하는 바와 같이 부가 정보를 갖지 않기 때문에, 복호화된 시점에서 메모리내에 보존되어 있는 픽쳐를 전부 제거하게 된다. In FIG. 17, the initialization command Code5 is provided 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 pictures stored in the memory at the time of decoding are removed.

따라서, 픽쳐 번호 12(보존 픽쳐 번호 11)의 I 픽쳐에 부여한 초기화 코맨드(Code5)가 전송로 에러로 소실되고, 픽쳐 번호 11(보존 픽쳐 번호 12)의 B 픽쳐에 부여한 초기화 코맨드(Code5)가 실행되면, 보존 픽쳐 번호 11 이전에 복호화된 픽쳐로 메모리에 보존되어 있는 픽쳐가 모두 제거되게 된다. 즉, 원래 제거되어서는 안되는 픽쳐 번호 12(보존 픽쳐 번호 11)의 I 픽쳐까지 제거되게 된다. Therefore, the initialization command Code5 assigned to the I picture of picture number 12 (preserved picture number 11) is lost due to a transmission error, and the initialization command Code5 assigned to the B picture of picture number 11 (preserved picture number 12) is executed. In this case, all pictures stored in the memory as pictures decoded before the stored picture number 11 are removed. That is, up to the I picture of picture number 12 (preserved picture number 11) that should not be originally removed.

이와 같이 픽쳐 번호 11의 B 픽쳐에, 픽쳐 번호 12의 I 픽쳐에 부여한 초기화 코맨드(Code5)와 동일한 초기화 코맨드(Code5)를 부여했을 때는 1매의 픽쳐(픽쳐 번호 12의 I 픽쳐)가 결락되게 된다. 한편, 픽쳐 번호 14(보존 픽쳐 번호 13)의 P픽쳐에, 픽쳐 번호 12(보존 픽쳐 번호 11)의 I 픽쳐에 부여한 초기화 코맨드(Code5)와 동일한 초기화 코맨드(Code5)를 부여하여, 픽쳐 번호 12의 I 픽쳐에 부여한 초기화 코맨드(Code5)가 전송로 에러로 소실되고, 픽쳐 번호 14의 P 픽쳐에 부여한 초기화 코맨드(Code5)가 실행되면, 2매의 픽쳐(픽쳐 번호 11의 B 픽쳐와 픽쳐 번호 12의 I 픽쳐)가 결락되게 된다. In this way, when the same initialization command (Code5) as the initialization command (Code5) assigned to the picture B of the picture number 11 is assigned to the I picture of the picture number 12, one picture (I picture of picture number 12) is lost. . On the other hand, to the P picture of picture number 14 (preserved picture number 13), the same initialization command (Code5) as that assigned to I picture of picture number 12 (preserved picture number 11) is assigned to code picture 12, and If the initialization command Code5 assigned to the I picture is lost due to a transmission error, and the initialization command Code5 assigned to the P picture of picture number 14 is executed, two pictures (B picture of picture number 11 and picture number 12) are executed. I picture) is eliminated.

또, 초기화 코맨드(Code5)를 반복하여 부호화하고, 최초에 보낸 초기화 코맨드(Code5)도, 계속해서 보낸 초기화 코맨드(Code5)도, 전송로 에러 없이 실행되는 경우에도, 상기와 같은 문제가 발생한다. 왜냐하면, 최초에 보낸 초기화 코맨 드(Code5)에 의해서 초기화되고, 또한 계속해서 보낸 초기화 코맨드(Code5)에 의해 다시 초기화되기 때문이다. The same problem occurs even when the initialization command Code5 is repeatedly encoded and the initialization command Code5 sent first and the initialization command Code5 sent continuously are also executed without a transmission path error. This is because it is initialized by the initializing command Code5 sent first, and again by the initializing command Code5 sent continuously.

이러한 메모리의 초기화에 있어서의 문제를 해결하기 위한 방법에 대해 설명한다. A method for solving the problem in the initialization of such a memory will be described.

도 22에 메모리의 초기화에 있어서의 문제를 해결하기 위해서 이용하는 메모리 관리정보의 코맨드를 도시한다. Fig. 22 shows a command of memory management information used to solve a problem in memory initialization.

도 15와 다른 점은 도 22에서는 새롭게 초기화 재송 코맨드(Code6)를 추가한 점이다. 또한, 이 초기화 재송 코맨드(Code6)는 부가 정보로서 초기화 픽쳐(프레임) 번호(메모리 영역을 초기화하는 초기화 코맨드(Code5)가 부수되는 프레임의 번호)를 갖는다. The difference from FIG. 15 is that in FIG. 22, a newly initialized retransmission command Code6 is added. In addition, this initialization retransmission command Code6 has an initialization picture (frame) number (number of frames accompanied by an initialization command Code5 for initializing a memory area) as additional information.

이하, 이 초기화 재송 코맨드(Code6)를 이용한 화상 부호화의 처리의 흐름에 대해 도 23을 이용하여 설명한다. Hereinafter, the flow of image coding processing using this initialization retransmission command Code6 will be described with reference to FIG. 23.

도 23은 초기화 재송 코맨드(Code6)를 이용한 화상 부호화 방법을 도시하는 플로우 챠트이고, 도 5에 도시하는 화상 부호화 장치(100)가 행하는 동작을 나타내고 있다. 도 23에 대해 도 20과 동일한 동작에는 동일한 부호를 붙이고 있다. FIG. 23 is a flowchart showing a picture coding method using the initialization retransmission command Code6, and shows the operation performed by the picture coding device 100 shown in FIG. In FIG. 23, the same reference numerals are assigned to the same operations as FIG. 20.

우선, 입력 화상을 부호화한다(단계 A0). 부호화후에 메모리내의 모든 픽쳐가 불필요한지 여부(이후의 부호화로 어느 화상도 참조되지 않는지 여부)를 조사(초기화 조사)한다(단계 A1). 메모리 정보 제어부(101)가 초기화가 필요한지를 판정하고(단계 A2), 초기화가 필요하면(단계 A2의 Yes), 관리정보 부호화부(105)가 메모리 영역을 초기화하는 초기화 코맨드(Code5)를 메모리 관리정보로서 부호화하 여(단계 A3), 초기화를 행한다(단계 A4). 초기화가 필요 없는 경우(단계 A2의 No)는 단계 A3 및 단계 A4의 동작은 행하지 않는다. First, the input image is encoded (step A0). After the encoding, whether or not all the pictures in the memory are unnecessary (no image is referred to by subsequent encoding) is checked (initializing irradiation) (step A1). The memory information control unit 101 determines whether initialization is necessary (step A2), and if initialization is required (Yes in step A2), the management information coding unit 105 manages an initialization command Code5 for initializing the memory area. It encodes as information (step A3) and performs initialization (step A4). If no initialization is necessary (No in step A2), the operations of step A3 and step A4 are not performed.

다음에, 메모리 정보 제어부(101)가 직전에 부호화한 화상(부호화 대상보다 전의 화상)의 부호화 신호에 부수하여 메모리 영역을 초기화하는 초기화 코맨드(Code5)를 메모리 관리정보로서 부호화하고 있는지 여부를 판정하고(단계 A30), 부호화하고 있으면(단계 A30의 Yes), 관리정보 부호화부(105)가, 그 메모리 영역을 초기화하는 초기화 재송 코맨드(Code6)를 메모리 관리정보로서 부호화하여(단계 A31), 처리를 종료한다. Next, it is determined whether or not the memory information control unit 101 encodes, as memory management information, the initialization command Code5 for accommodating the coded signal of the immediately coded image (the image before the encoding target) to initialize the memory area. (Step A30) If encoding is performed (Yes in step A30), the management information encoding unit 105 encodes the initialization retransmission command Code6 for initializing the memory area as the memory management information (step A31) to perform the processing. Quit.

또한, 직전에 부호화한 화상(부호화 대상보다 전의 화상)의 부호화 신호에 부수하여 메모리 영역을 초기화하는 초기화 코맨드(Code5)가 메모리 관리정보로서 부호화되어 있지 않으면(단계 A30의 No), 처리를 종료한다. If the initialization command Code5 for initializing the memory area accompanying the coded signal of the immediately coded image (the image before the encoding target) is not encoded as the memory management information (No in step A30), the processing ends. .

또, 도 23에 도시하는 방법에서는, 직전에 부호화한 화상의 부호화 신호에 부수하여 메모리 영역을 초기화하는 초기화 코맨드(Code5)가 부호화되어 있는 경우에, 다시 초기화 재송 코맨드(Code6)를 부호화한다고 했는데, 직전이 아니라 몇 화상전에 부호화한 화상의 부호화에 부수하여 메모리 영역을 초기화하는 초기화 코맨드(Code5)가 부호화되어 있는 경우에, 다시 초기화 재송 코맨드(Code6)를 부호화해도 되고, 또한 다수의 화상에 부수하여, 메모리 영역을 초기화하는 초기화 재송 코맨드(Code6)를 메모리 관리정보로서 반복 부호화해도 된다. In addition, in the method shown in FIG. 23, when the initialization command Code5 which initializes a memory area accompanying the coded signal of the image encoded just before is coded, it is supposed to code the initialization retransmission command Code6 again. When the initialization command Code5 for initializing the memory area is encoded in response to the encoding of the image encoded before a few images, not just before, the initialization retransmission command Code6 may be coded again, or in addition to a plurality of images. The initialization retransmission command Code6 for initializing the memory area may be repeatedly encoded as the memory management information.

구체적으로는 도 19에 도시하는 바와 같이 픽쳐 번호 12의 I 픽쳐의 부호화에 부수하여 초기화 코맨드(Code5)를 부호화하는 경우, 픽쳐 번호 11의 B 픽쳐의 부호화에 부수하여 초기화 재송 코맨드(Code6)를 부호화해도 되고, 또한 픽쳐 번호 14의 P 픽쳐의 부호화에 부수하여 초기화 재송 코맨드(Code6)를 부호화해도 된다. Specifically, as shown in FIG. 19, when the initialization command Code5 is encoded in accordance with the encoding of the I picture of picture number 12, the initialization retransmission command Code6 is encoded in addition to the encoding of the B picture of picture number 11. Alternatively, the initialization retransmission command Code6 may be encoded in addition to encoding of the P picture of picture number 14.

전자의 경우, 도 17에 도시하면, 프레임(Frm12)의 프레임 헤더(Frm12Hdr)에 초기화 코맨드(Code5)가 부여되고, 또한 프레임(Frm11)의 프레임 헤더(Frm11Hdr)에 초기화 재송 코맨드(Code6)가 부여된다, 또한, 후자의 경우, 프레임(Frm12)의 프레임 헤더(Frm12Hdr)에 초기화 코맨드(Code5)가 부여되고, 프레임(Frm14)의 프레임 헤더(Frm14Hdr)에 초기화 재송 코맨드(Code6)가 부여되게 된다. In the former case, as shown in FIG. 17, the initialization command Code5 is assigned to the frame header Frm12Hdr of the frame Frm12, and the initialization retransmission command Code6 is assigned to the frame header Frm11Hdr of the frame Frm11. In the latter case, the initialization command Code5 is assigned to the frame header Frm12Hdr of the frame Frm12, and the initialization retransmission command Code6 is provided to the frame header Frm14Hdr of the frame Frm14.

또한, 픽쳐 번호 11의 B 픽쳐의 부호화에 부수하여 초기화 재송 코맨드(Code6)를 부호화함과 동시에, 픽쳐 번호 14의 P 픽쳐의 부호화에도 부수하여 초기화 재송 코맨드(Code6)를 부호화하도록 해도 된다. 이 경우, 도 17에 도시하면, 프레임(Frm12)의 프레임 헤더(Frm12Hdr)에 초기화 코맨드(Code5)가 부여되고, 프레임(Frm11)의 프레임 헤더(Frm11Hdr)와, 프레임(Frm14)의 프레임 헤더(Frm14Hdr)에 초기화 재송 코맨드(Code6)가 부여된다. In addition, the initialization retransmission command Code6 may be coded in conjunction with the coding of the B picture of picture number 11, and the initialization retransmission command Code6 may be encoded in addition to the coding of the P picture of picture number 14. In this case, as shown in FIG. 17, the initialization command Code5 is attached to the frame header Frm12Hdr of the frame Frm12, the frame header Frm11Hdr of the frame Frm11, and the frame header Frm14Hdr of the frame Frm14. ) Is assigned an initialization retransmission command Code6.

다음에, 상기 초기화 재송 코맨드(Code6)가 부호화된 데이터를 복호화할 때의 처리에 대해 도 24를 이용하여 설명한다. 도 24는 부호화된 초기화 재송 코맨드(Code6)를 복호하는 방법을 도시하는 플로우 챠트이고, 도 7에 도시한 화상 복호화 장치(200)의 동작을 도시하고 있다. 도 24에 대해 도 21과 동일한 동작에는 동일한 부호를 붙이고 있다. Next, the process at the time of decoding the data which the said initialization retransmission command Code6 encoded is demonstrated using FIG. FIG. 24 is a flowchart showing a method of decoding the encoded initialization retransmission command Code6, and shows the operation of the picture decoding apparatus 200 shown in FIG. In Fig. 24, the same reference numerals are assigned to the same operations 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 from the coded signal (step A11).

복호화한 메모리 관리정보에 초기화 코맨드(Code5)가 있는지를 판정하고(단계 A12), 초기화 코맨드(Code5)가 있으면(단계 A12의 Yes), 메모리내의 픽쳐를 모두 제거하여 초기화하고(단계 A13), 초기화 코맨드(Code5)가 없으면(단계 A12의 No), 초기화를 행하지 않는다. It is determined whether the decoded memory management information has an initialization command (Code5) (step A12), and if there is an initialization command (Code5) (Yes in step A12), all pictures in the memory are removed and initialized (step A13). If there is no command Code5 (No in step A12), no initialization is performed.

다음에, 메모리 정보 제어부(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 determines whether the initialization retransmission command Code6 is present in the memory management information (step A40). If there is no initialization retransmission command Code6 (No in step A40), the process ends, and if there is an initialization retransmission command Code6 (Yes in step A40), it is checked whether or not initialization is completed (step A41). If the initialization is completed (Yes in step A41), the processing ends, and if it is not initialized (No in step A41), the initialization frame (initialization to initialize the memory area) is based on additional information of the initialization resend command (Code6). The preservation frame (frame stored in the reference picture memory at the time of encoding the initialization frame) before the frame where the command Code5 is attached is deleted, and the processing is terminated by setting the preservation memory size to 0 (step A42). do. If the long-term storage frame is not used, it is not necessary to set the long-term storage memory size to zero.

따라서, 도 19에 도시되는 픽쳐 번호 12의 픽쳐에 초기화 코맨드(Code5), 픽쳐 번호 14에 초기화 재송 코맨드(Code6)가 부수하여 부호화된 경우, 초기화 코맨드(Code5)가 전송로 에러로 소실되지 않은 경우는, 초기화 코맨드(Code5)에 의해, 초기화 코맨드(Code5)가 전송로 에러로 소실한 경우는 초기화 재송 코맨드(Code6)에 의해, 보존 픽쳐 번호가 10이하인 픽쳐로 메모리에 보존되어 있는 픽쳐가 모두 삭제되게 된다. Therefore, when the initialization command (Code5) and the initialization retransmission command (Code6) are attached to the picture of picture number 12 shown in FIG. 19 and encoded, the initialization command (Code5) is not lost due to transmission path error. When the initialization command Code5 is lost due to a transmission error by the initialization command Code5, all pictures stored in the memory are deleted by the initialization retransmission command Code6 with a picture having a stored picture number of 10 or less. Will be.

이와 같이, 초기화 코맨드(Code5)를 반복 부호화하여 전송할 때에, 2회째 이후는 부가 정보인 초기화 픽쳐 번호가 부가된 초기화 재송 코맨드(Code6)를 부호화하여 전송하기 때문에, 그 부가 정보에 따라서 초기화 프레임 이전의 보존 프레임(최초에 초기화 코맨드(Code5)가 부수하는 초기화 프레임의 부호화 시점에서 참조용 화상 메모리에 격납되어 있는 프레임)이 삭제되게 된다. 이 때문에, 필요한 화상(픽쳐)이 결락되는 상술한 문제를 해결할 수 있다. In this way, when the initialization command Code5 is repeatedly encoded and transmitted, since the second time or later, the initialization retransmission command Code6 to which the initialization picture number as additional information is added is encoded and transmitted. The storage frame (the frame stored in the reference picture memory at the time of encoding the initialization frame initially accompanied by the initialization command Code5) is deleted. For this reason, the above-mentioned problem that a required image (picture) is missing can be solved.

또한, 도 25와 같이 도 19와 다른 보존 픽쳐 번호를 붙이는 경우라도, 상기에서 설명한 초기화 재송 코맨드(Code6)는 유효하다. In addition, even when a storage picture number different from that in FIG. 19 is assigned as in FIG. 25, the initialization retransmission command Code6 described above is valid.

이하, 구체적으로 설명한다. Hereinafter, this will be described in detail.

도 25는 각 프레임에 부여되는 번호(픽쳐(프레임) 번호)와, 각 프레임이 메모리내에 보존될 때의 번호(보존 픽쳐(프레임) 번호)와, 각 프레임이 전송되는 순서를 도시하는 번호(전송 순서)에 있어서의 다른 관계를 도시하는 설명도이다. Fig. 25 is a number (picture (frame) number) assigned to each frame, a number when each frame is stored in a memory (preservation picture (frame) number), and a number (transmission) showing the order in which each frame is transmitted. It is explanatory drawing which shows the other relationship in order).

이들 번호를 붙이는 방법에 대해 설명한다. 우선, 픽쳐 번호 0의 I 픽쳐는 다른 픽쳐를 참조하지 않으므로 메모리에 보존되고, 보존 픽쳐 번호는 0으로 된다. 다음에 픽쳐 번호 0의 I 픽쳐를 참조하는 픽쳐 번호 2의 P 픽쳐가 메모리에 보존되기 때문에 픽쳐 번호 2의 P 픽쳐에 관한 보존 픽쳐 번호가 1로 된다. 그리고, 픽쳐 번호 0의 I 픽쳐와 픽쳐 번호 2의 P 픽쳐를 참조하는 픽쳐 번호 1의 B 픽쳐가 메모리내에 보존되는데, 이 B 픽쳐는 다른 픽쳐로부터 참조되는 일이 없으므로, 보존 픽쳐 번호는 직전에 보존된 픽쳐 번호 2의 P 픽쳐의 보존 픽쳐 번호와 마찬가지 로 1로 된다. 각 픽쳐가 전송되는 순서는 메모리에 보존된 순서로 한다. 동일한 순서로 픽쳐 번호와 보존 픽쳐 번호와 전송 순서의 관계가 결정된다. The method of attaching these numbers is demonstrated. First, the I picture of picture number 0 is stored in the memory because it does not refer to other pictures, and the stored picture number is zero. 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 for the P picture of picture number 2 is set to one. The picture I of picture number 0 and the picture B of picture number 1, which refer to the P picture of picture number 2, are stored in the memory. Since this B picture is not referred to from other pictures, the stored picture number is stored immediately before. It becomes 1 similarly to the stored picture number of the P picture of the completed picture number 2. The order in which the pictures are transmitted is in the order stored in the memory. In the same order, the relationship between the picture number, the stored picture number, and the transmission order is determined.

도 25에 도시하는 바와같이, 픽쳐 번호 12의 I 픽쳐를 부호화할 때에 도 15에 도시하는 초기화 코맨드(Code5)를 부수하여 보내기로 한다. 픽쳐 번호 12의 I 픽쳐의 보존 픽쳐 번호는 6이므로, 이 초기화 코맨드(Code5)에 의해, 보존 픽쳐 번호가 5이하의 픽쳐를 메모리내에서 모두 제거할 수 있다. As shown in FIG. 25, when the I picture of picture number 12 is encoded, the initialization command Code5 shown in FIG. 15 is sent along with it. Since the stored picture number of the I picture of picture number 12 is 6, this initialization command (Code5) enables the removal of all pictures having a stored picture number of 5 or less in the memory.

여기서, 초기화 코맨드(Code5)를 반복 부호화하는 경우, 구체적으로는 픽쳐 번호 14의 P 픽쳐에 픽쳐 번호 12의 I 픽쳐에 부여한 초기화 코맨드(Code5)와 동일한 초기화 코맨드(Code5)를 부여하는 경우에 대해 설명한다. Here, in the case where the initialization command Code5 is repeatedly encoded, a case where the same initialization command Code5 as the initialization command Code5 assigned to the I picture of picture number 12 is given to the P picture of picture number 14 is described. do.

초기화 코맨드(Code5)는 도 15에 도시하는 바와같이 부가 정보를 가지지 않으므로, 복호화된 시점에서 참조용 메모리 내에 보존되어 있는 픽쳐를 전부 제거하게 된다. 따라서, 픽쳐 번호 12(보존 픽쳐 번호 6)의 I 픽쳐에 부여한 초기화 코맨드(Code5)가 전송로 에러로 소실되고, 픽쳐 번호 14(보존 픽쳐 번호 7)의 P 픽쳐에 부여한 초기화 코맨드(Code5)가 실행되면, 보존 픽쳐 번호 6이하의 픽쳐로 메모리에 보존되어 있는 픽쳐가 모두 제거되게 된다. 즉, 원래 제거되어서는 안되는 픽쳐 번호 12(보존 픽쳐 번호 6)의 I 픽쳐까지 제거되게 된다. Since the initialization command Code5 does not have additional information as shown in FIG. 15, all pictures stored in the reference memory at the time of decoding are removed. Therefore, the initialization command Code5 assigned to the I picture of picture number 12 (preserved picture number 6) is lost due to a transmission error, and the initialization command Code5 assigned to the P picture of picture number 14 (preserved picture number 7) is executed. In this case, all the pictures stored in the memory are removed with pictures having the stored picture number 6 or less. That is, up to the I picture of picture number 12 (preserved picture number 6) that should not be originally removed.

그러나, 초기화 코맨드(Code5) 대신에 상기 초기화 재송 코맨드(Code6)를 픽쳐 번호 14의 P 픽쳐에 부수시킴으로써, 픽쳐 번호 12의 I 픽쳐에 부수한 초기화 코맨드(Code5)가 전송로 에러로 소실하지 않은 경우는 초기화 코맨드(Code5)에 의해, 초기화 코맨드(Code5)가 전송로 에러로 소실한 경우는 픽쳐 번호 14의 P 픽쳐 에 부수한 초기화 재송 코맨드(Code6)에 의해서, 보존 픽쳐 번호가 5이하의 픽쳐로 메모리에 보존되어 있는 픽쳐가 모두 삭제되게 된다. However, if the initialization command (Code5) accompanying the I picture of picture number 12 does not disappear due to transmission error by attaching the initialization retransmission command (Code6) to the P picture of picture number 14 instead of the initialization command (Code5). When the initialization command Code5 is lost due to a transmission error by the initialization command Code5, the storage picture number is 5 or less by the initialization retransmission command Code6 that accompanies the P picture of picture number 14. All pictures stored in the memory are deleted.

즉, 초기화 재송 코맨드(Code6)에는 부가 정보로서 초기화 프레임(이 경우, 픽쳐 번호 12) 번호가 부가되어 있으므로, 초기화 프레임 이전의 보존 프레임(초기화 프레임을 저장하는 시점에서 참조용 화상 메모리에 격납되어 있는 보존 픽쳐 번호가 5이하인 보존 프레임)이 삭제된다. That is, since an initialization frame (picture number 12 in this case) is added to the initialization retransmission command Code6 as additional information, it is stored in the reference picture memory at the time of storing the storage frame (initialization frame) before the initialization frame. A storage frame having a storage picture number 5 or less) is deleted.

이상과 같이, 부가 정보를 갖는 초기화 재송 코맨드(Code6)에 의해, 초기화 코맨드(Code5)가 전송로 에러로 결락된 경우라도 초기화를 정상으로 실행할 수 있는 가능성이 높아진다. 또한, 본 실시의 형태에서 도시한 초기화 재송 코맨드로, 부가 정보를 초기화 재송 코맨드가 부수된 픽쳐 번호로 한 것을 초기화 코맨드로서 대용하여, 도 22에 도시하는 Code5와 Code6를 1개의 코맨드로 실현하도록 해도 된다. 이는 초기화 정보의 재송을 위해 초기화 재송을 할 때에는, 초기화 코맨드가 부수된 프레임의 번호를 지정하기 위해, 해당 프레임을 재송하는 것과 동일한 픽쳐 번호는 이용되지 않기 때문이다. 이 때, 초기화 코맨드(Code5)는 무효로 해도 된다. As described above, the initialization retransmission command Code6 having additional information increases the possibility that the initialization can be executed normally even when the initialization command Code5 is lost due to a transmission path error. In addition, in the initialization retransmission command shown in the present embodiment, substituting the additional information to the picture number accompanied by the initialization retransmission command as the initialization command, Code5 and Code6 shown in FIG. 22 may be realized by one command. do. This is because, when retransmission is performed for retransmission of the initialization information, the same picture number as that of retransmission of the frame is not used to specify the number of the frame to which the initialization command is attached. At this time, the initialization command Code5 may be invalidated.

또, 이와 같이 1 코맨드로 상기 실시의 형태에서 나타낸 초기화 재송 코맨드와 초기화 코맨드(Code5)를 실현하는 경우, 상기 실시의 형태에서 나타낸 초기화 재송 코맨드에서는 이용되지 않는 특별한 값을 부가 정보로서 가진 초기화 재송 코맨드를 가지고, 최초에 보내는 초기화 코맨드(Code5)와 동일한 기능을 갖는 코맨드로 해도 된다. When the initialization retransmission command and the initialization command Code5 shown in the above embodiments are realized in one command in this manner, the initialization retransmission command having additional values as special information not used in the initialization retransmission command shown in the above embodiment. It may be a command having the same function as the initialization command Code5 to be sent first.

또한, 상기 각 실시의 형태에서 설명한 바와 같이, 불필요하게 된 메모리 영역을 개방하는 코맨드나 초기화 코맨드 등의 메모리 관리정보가 다시 전송될 때에, 도 17 및 도 18에 도시하는 바와 같이 화상의 부호화에 관한 프레임 데이터에 부가된 헤더 정보에 포함되어 전송되는 것이 아니라, 메모리 관리정보가 포함된 헤더 정보가 프레임 데이터와는 별도로 분리하여 전송되어도 된다. 즉, 재송하는 상술의 코맨드가 부호화된 픽쳐와 동일한 스트림에 있지 않고, 예를 들면 별도의 스트림으로서 전송하도록 해도 된다. 또한, 축적 미디어의 별도의 영역에 기록되어도 된다. In addition, as described in each of the above embodiments, when memory management information such as a command to open an unnecessary memory area or an initialization command is transmitted again, as shown in FIGS. Rather than being included in the header information added to the frame data and transmitted, the header information including the memory management information may be transmitted separately from the frame data. That is, the above-mentioned command to be retransmitted may not be in the same stream as the encoded picture, but may be transmitted as a separate stream, for example. It may also be recorded in a separate area of the storage medium.

또한, 본 실시의 형태에서는 초기화 코맨드를 재송할 때에 초기화 재송 코맨드에, 초기화 코맨드를 최초에 부수시킨 픽쳐의 픽쳐 번호(초기화 프레임 번호)를 부가 정보로서 부가시켰는데, 상술한 각 실시의 형태에서 나타낸, 개방하는 메모리 영역을 나타내는 코맨드나 단시간 보존 메모리로부터 장시간 보존 메모리로 이동하는 대상의 픽쳐를 지정하는 코맨드 등의 메모리 관리정보의 코맨드를 재송할 때에도, 최초에 그 코맨드를 부수시켜 전송한 부호화 대상 픽쳐의 픽쳐 번호(픽쳐를 특정하는 정보)를 파라미터로서 포함시켜 전송해도 되는 것은 당연하다. 이와 같이 함으로써, 어느 픽쳐를 전송할 때에 전송 에러가 발생했는지를 검출할 수 있다. In the present embodiment, when retransmitting an initialization command, a picture number (initialization frame number) of a picture that is first accompanied by an initialization command is added as additional information to the initialization retransmission command. When retransmitting a command of memory management information, such as a command indicating an open memory area or a command specifying a picture to be moved from the short-term storage memory to the long-term storage memory, the picture to be encoded is first transmitted with the command. Naturally, the picture number (information specifying the picture) may be transmitted as a parameter. By doing in this way, it is possible to detect which picture has transmitted when a transmission error occurs.

(실시의 형태 9) (Embodiment 9)

다음에, 실시의 형태 9에 있어서의 화상 부호화 방법 및 화상 복호화 방법에 대해서 설명한다. 본 실시의 형태의 특징은 메모리 관리정보를 다수회 전송할 때에, 2회째 이후에 전송된 메모리 관리정보에 의거하는 처리의 타이밍을 변경하는 것이다. Next, the picture coding method and the picture decoding method according to the ninth embodiment will be described. A feature of this embodiment is to change the timing of processing based on the memory management information transmitted after the second time when the memory management information is transmitted a plurality of times.

상기 실시의 형태에서 나타낸 메모리 관리정보를 반복 부호화한 데이터를 복호화할 때, 반복하여 보내진 메모리 관리정보의 처리를 하기 전에 반드시 메모리 관리정보를 부수시킨 화상신호를 복호화하고 있다. 구체예로서 실시의 형태 2에서 설명한, 불필요한 메모리 영역을 개방하는 코맨드를 다수회 전송한 경우에 대해 도 19를 이용하여 다시 설명한다. When decoding the data repeatedly encoded by the memory management information shown in the above embodiment, the image signal necessarily accompanied by the memory management information is decoded before processing the repeatedly sent memory management information. As a specific example, the case where the command for opening an unnecessary memory area described in Embodiment 2 is transmitted a plurality of times will be described again with reference to FIG. 19.

도 19에 도시한 픽쳐 번호 12의 픽쳐에 도 22에 도시하는 Code1의 코맨드를 부수시켜 부호화시키고, 또한 픽쳐 번호 11의 픽쳐에도 Code1의 코맨드를 부수시켜 부호화시키기로 한다. 이 때, 복호화는 도 8에 따라서 이루어진다. The picture of picture number 12 shown in FIG. 19 is encoded by appending the command of Code1 shown in FIG. 22, and the picture of picture number 11 is also accompanied by coding of command of Code1. At this time, decoding is performed in accordance with FIG.

우선, 픽쳐 번호 12의 픽쳐에 부수된 Code1이 복호화된다(단계 110). 다음에 픽쳐 번호 12의 픽쳐가 복호화된다(단계 111). 여기서, 본래 픽쳐 번호 12의 픽쳐에 부수되어 있어야 하는 Code1이 전송 도중에 결락되면(단계 112의 No), 이 프레임에 관한 처리가 종료한다. First, Code1 accompanying the picture of picture number 12 is decoded (step 110). Next, the picture of picture number 12 is decoded (step 111). Here, if Code1, which should accompany the picture of the original picture number 12, is lost in the middle of transmission (No in step 112), the processing relating to this frame ends.

전송 순서로 픽쳐 번호 12의 픽쳐의 다음에 복호화 처리되는 것은 픽쳐 번호 11의 픽쳐이다. The decoding process following the picture of picture number 12 in the transmission order is the picture of picture number 11.

우선, 픽쳐 번호 11의 픽쳐에 부수하여 부호화된 Code1이 복호화된다(단계 110). 다음에 픽쳐 번호 11의 픽쳐가 복호화된다(단계 111). 이 Code1이 전송 도중에 결락되지 않고 전송된 경우, 복호화된 메모리 관리정보에 메모리 개방의 코맨드인 Code1이 존재하므로(단계 112의 Yes), 다음 처리(단계 113)에 도달한다. First, Code1 coded accompanying the picture of picture number 11 is decoded (step 110). Next, the picture of picture number 11 is decoded (step 111). If this Code1 is transmitted without being lost in the middle of transmission, Code1, which is a command of memory opening, exists in the decoded memory management information (Yes in step 112), and the next processing (step 113) is reached.

여기서, 픽쳐 번호 11의 픽쳐가 복호화되기 전에 복호화된 픽쳐 번호 12의 픽쳐를 복호화했을 때에 메모리 개방이 이루어져 있지 않으므로(단계 113의 No), 메모리 개방처리가 이루어진다(단계 114). Here, since the memory is not opened when the decoded picture No. 12 is decoded before the picture of Picture No. 11 is decoded (No in step 113), the memory open process is performed (Step 114).

상기 구체예에서 도시한 바와 같이, 불필요한 메모리 영역을 개방하는 코맨드를 다수회 전송하는데 따라, 본래 최초의 코맨드 실행이 되지 않은 픽쳐(픽쳐 번호 12)에 대해 실행해야할 코맨드의 실행이, 후에 보내지는 픽쳐(픽쳐 번호 11)의 화상 신호의 복호화 처리후로 되어, 코맨드 실행의 지연이 발생한다. As shown in the above embodiment, as a command to open an unnecessary memory area is transmitted a number of times, the execution of a command to be executed for a picture (picture number 12) that was not originally executed in the first command is a picture sent later. After the decoding process of the picture signal (picture number 11), a delay in command execution occurs.

따라서, 본 실시의 형태에 있어서는, 상기 과제를 해결하기 위한 방법에 대해 도 26, 도 27 및 도 28을 이용하여 설명한다. Therefore, in this embodiment, the method for solving the said subject is demonstrated using FIG. 26, FIG. 27, and FIG.

도 26은 본 실시의 형태에서 이용하는 메모리 관리정보와 코맨드의 관계를 도시하는 대응도이다.Fig. 26 is a correspondence diagram showing the relationship between the memory management information and the commands used in the present embodiment.

도 26에 있어서, Code는 코맨드의 번호를, 코맨드는 코맨드의 내용을, 부가정보는 코맨드에 부가되는 부가정보를, 처리위치는 코맨드를 실행하는 타이밍을 도시하고 있다. In Fig. 26, Code indicates a command number, a command indicates the content of a command, additional information indicates additional information added to the command, and a processing position shows the timing of executing the command.

도 15와 다른 점은 도 26에서는 CodeA1으로부터 CodeA4까지를 화상의 복호화 처리후에 실행하는 코맨드로 하는 한편, CodeA1으로부터 CodeA4에 대응한 CodeA6로부터 CodeA9까지를 화상의 복호화 처리전에 실행하는 코맨드로 한 점이다. The difference from FIG. 15 is that in FIG. 26, CodeA1 to CodeA4 is a command to be executed after the decoding process of the image, while CodeA6 to CodeA9 corresponding to CodeA4 to CodeA4 is a command to be executed before the decoding process of the image.

그리고, 반복하여 메모리 관리정보를 보내는 경우, 최초에 부호화하는 메모리 관리정보의 코맨드를, 처리위치가 복호화후의(화상의 복호화 후에 실행하는) 코맨드(CodeA1에서 CodeA4)로 하고, 반복 (2회째 이후에) 부호화하는 코맨드를, 처리위치가 복호화전의(화상의 복호화 전에 실행하는) 코맨드(CodeA6로부터 CodeA9)로 한다. When the memory management information is repeatedly transmitted, the command of the memory management information to be encoded first is a command (the code executed from CodeA1 to CodeA4) after the decoding (which is executed after the decoding of the image), and the repetition (after the second time). ) The command to be encoded is a command (the code A6 to CodeA9) whose processing position is before decoding (to be executed before decoding of the image).

이에 따라, 최초에 보내진 메모리 관리정보가 결락된 경우라도, 원래 최초에 보내진 메모리 관리정보로 실행해야 할 코맨드가, 빠른 시기에 실행되어, 지연 등의 문제가 일어나기 어렵게 할 수 있다. As a result, even when the memory management information sent initially is lost, a command to be executed with the memory management information originally sent first is executed at an early time, which makes it difficult to cause a problem such as a delay.

이하, 도 26의 코맨드를 이용할 때의 처리 순서에 대해 도 27및 도 28을 이용하여 설명한다. Hereinafter, the processing sequence at the time of using the command of FIG. 26 is demonstrated using FIG. 27 and FIG.

도 27은 본 실시의 형태에 있어서의 화상 부호화 방법을 도시하는 플로우 챠트로, 도 5에 도시한 화상 부호화 장치(100)의 동작을 도시하고 있다. FIG. 27 is a flowchart showing the picture coding method according to the present embodiment, and shows the operation of the picture 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, an unnecessary area (image not referred to by subsequent encoding) is examined in the memory (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), a command for opening the unnecessary memory area is executed after decoding the image signal, so that the memory management information for decoding is encoded (step B3). The area is opened (step B4). On the other hand, when there is no unnecessary memory area (No in step B2), the operations of step B3 and step B4 are not performed.

다음에, 메모리 정보 제어부(101)가 직전에 부호화한 화상(부호화 대상보다 전의 화상)의 부호화에 부수하여 불필요한 메모리 영역을 개방하는 코맨드를 메모리 관리정보로서 부호화하고 있는지를 판정한다(단계 B30). 부호화하고 있지 않으면(단계 B30의 No) 처리를 종료하고, 부호화하고 있으면(단계 B30의 Yes), 관리정보 부호화부(105)가 그 불필요한 메모리 영역을 개방하는 코맨드를 화상신호의 복 호화의 전에 실행하는 것으로 하여 복호화전(前) 용 메모리 관리정보를 부호화하여 (단계 B31), 처리를 종료한다. Next, it is determined whether the memory information control unit 101 encodes a command for opening the unnecessary memory area as memory management information accompanying the encoding of the immediately encoded image (the image before the encoding target) (step B30). If it is not encoded (No in step B30), the process ends and if it is encoded (Yes in step B30), the management information encoding unit 105 executes a command to open the unnecessary memory area before decoding the image signal. In this case, the pre-decoding memory management information is encoded (step B31), and the processing ends.

또, 단계 B30에서 직전에 부호화한 화상의 부호화 신호에 부수하여, 불필요한 메모리 영역을 개방하는 코맨드가 부호화되어 있는 경우에, 다시 코맨드를 부호화한다고 했는데, 직전의 화상에 부수하고 있는 경우가 아니라, 몇 화상전의 화상에 부수하고 있는 경우라도 되고, 또한, 상기 코맨드를 반복하여 메모리 관리정보로서 부호화하고, 다수의 화상에 부수하여 전송시켜도 된다. In addition, when the command accompanying the coded signal of the image encoded before in step B30 and the command to open an unnecessary memory area is encoded, the command is coded again, but it is not accompanied by the previous image. It may be accompanied by the image before an image, and the said command may be repeatedly encoded as memory management information, and may be attached to many images and transmitted.

다음에 도 27의 순서에 따라서 부호화된 데이터를 복호화하는 순서에 대해 도 28과 도 19를 이용하여 설명한다. Next, the procedure for decoding the data encoded according to the procedure of FIG. 27 will be described with reference to FIGS. 28 and 19.

도 28은 본 실시의 형태에 있어서의 화상 복호화 방법을 도시하는 플로우 챠트로, 도 7에서 도시한 화상 복호화 장치(200)가 행하는 동작을 도시하고 있다. FIG. 28 is a flowchart showing an image decoding method according to the present embodiment, and illustrates an operation performed by the image decoding apparatus 200 shown in FIG. 7.

이하의 설명에 있어서, 도 19에서는 픽쳐 번호 12의 픽쳐에 도 26에 도시하는 CodeA1의 코맨드가 부수하여 부호화되어 있고, 또한 픽쳐 번호 11의 픽쳐에 CodeA6의 코맨드를 부수시켜 부호화되어 있는 것으로 한다. 도 17에 도시하면, 픽쳐 번호 12의 프레임(Frm12)의 프레임 헤더(Frm12Hdr)에 CodeA1가 부여되고, 픽쳐 번호 11의 프레임(Frm11)의 프레임 헤더(Frm11Hdr)에 CodeA6가 부여되게 된다. In the following description, it is assumed that in Fig. 19, a picture of picture No. 12 is coded by being accompanied by a command of CodeA1 shown in Fig. 26, and coded by attaching a command of CodeA6 to a picture of picture No. 11. In FIG. 17, CodeA1 is assigned to the frame header Frm12Hdr of the frame Frm12 of the picture number 12, and CodeA6 is assigned to the frame header Frm11Hdr of the frame Frm11 of the picture number 11.

또한, 화상 복호화 장치에서는 전송로 에러로 코맨드가 소실되지 않는 한, 다수회 메모리 내의 동일한 화상의 영역을 개방하는 코맨드가 수신되게 된다. 따라서, 화상 복호화 장치가 행하는 화상 복호화 방법에서는 이미 개방한 화상을 다시 개방하는 코맨드를 수신한 경우라도 에러로서 처리를 하지 않고, 반대로 바르게 수신되어 있는 것으로 판단하지 않으면 안된다. In addition, in the picture decoding apparatus, a command for opening an area of the same picture in the memory is received as long as the command is not lost due to a transmission path error. Therefore, in the picture decoding method performed by the picture decoding apparatus, even when a command for reopening an already opened picture is received, the image decoding method must determine that the received picture is correctly received.

우선, 픽쳐 번호 12의 픽쳐에 관한 복호화 처리에 대해 설명한다. First, the decoding process regarding the picture of picture number 12 is demonstrated.

도 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 before decoding (step B7). Since the memory management information CodeA1 is post-decoding memory management information (No in step B7), the picture signal of picture number 12 is decoded. As described above, since the memory management information CodeA1 is the memory management information after decoding (Yes in step B9), the memory is opened (step B11), and the processing relating to the memory management information of the picture of picture number 12 ends. do.

한편, 메모리 관리정보의 CodeA1가 결락되어 있을 때, 단계 B7에서 복호화전 용 메모리 관리정보라고 판단되지 않고(단계 B7의 No), 또한, 단계 B9에 있어서도 복호화후 용 메모리 관리정보라고 판단되지 않고(단계 B9의 No), 픽쳐 번호 12의 화상 신호의 복호화만이 이루어지고(단계 B6), 픽쳐 번호 12의 메모리 관리정보에 관한 처리는 종료한다.On the other hand, when CodeA1 of the memory management information is missing, it is not determined as the memory management information before decoding in step B7 (No in step B7), and also in step B9, it is not determined as the memory management information after decoding ( No) in step B9), only the decoding of the picture signal of picture number 12 is performed (step B6), and the processing relating to the memory management information of picture number 12 ends.

다음에, 픽쳐 번호 11의 프레임에 관한 복호화 처리에 대해 도 28을 이용하여 설명한다. Next, the decoding process regarding the frame of picture number 11 is demonstrated using FIG.

우선, 픽쳐 번호 11의 메모리 관리정보를 복호화하고(단계 B5), 이 메모리 관리정보가 복호화전 용 메모리 관리정보인지를 조사한다(단계 B7). 여기서 CodeA6은 복호화전 용 메모리 관리정보이므로(단계 B7의 Yes), 메모리가 개방 완료인지를 조사한다(단계 B8). 픽쳐 번호 12의 처리에 있어서, CodeA1가 실행되어 있 으면 메모리 개방 완료이므로(단계 B8의 Yes), 메모리 개방처리(단계 B10)를 행하지 않고, 픽쳐 번호 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 this memory management information is dedicated memory management information for decoding (step B7). Since CodeA6 is memory management information for decryption only (Yes in step B7), it is checked whether the memory is complete (step B8). In the process of picture number 12, if CodeA1 is executed, the memory is released (Yes in step B8), so that the image signal of picture number 11 is decoded without performing the memory open process (step B10) (step B6). . Then, it is determined whether the memory management information is for decoding (step B9). Since CodeA6 is memory management information before decoding (No in step B9), the processing relating to the memory management information of the picture of picture number 11 ends.

그러나, 전송 과정에서의 패킷의 결락 등으로 픽쳐 번호 12의 메모리 관리정보가 결락되고, 픽쳐 번호 12에 관한 처리에 있어서, 메모리 개방이 이루어져 있지 않으면, 픽쳐 번호 11에 관한 처리에 있어서, 메모리 개방 완료가 아니라고 판정되고(단계 B8의 No), 다음 단계에서 메모리 개방된다(단계 B10). 메모리 개방된 후, 픽쳐 번호 11의 화상 신호는 복호화된다(단계 B6). 그리고, CodeA6은 복호화전 용 메모리 관리정보이므로(단계 B9의 No), 픽쳐 번호 11의 픽쳐의 메모리 관리정보에 관한 처리는 종료한다. However, if the memory management information of picture No. 12 is lost due to a missing packet in the transfer process, and the memory is not opened in the process relating to picture number 12, the memory is completed in the process relating to picture number 11. Is determined (No in step B8), and the memory is released in the next step (step B10). After the memory is released, the picture signal of picture number 11 is decoded (step B6). Since CodeA6 is memory management information before decoding (No in step B9), the processing relating to the memory management information of the picture of picture number 11 ends.

이와 같이 재송분에 대해서는 화상 신호의 복호화보다 전에 코맨드가 실행되도록 함으로써, 최초에 보낸 코맨드가 결락되어도, 코맨드의 실행의 지연을 적게 할 수 있다. In this way, the retransmission can be executed before the decoding of the image signal, so that even if the first sent command is lost, the execution delay of the command can be reduced.

또, 구체예로서 메모리 관리정보가 CodeA1과 CodeA6인 경우에 대해 설명했는데, CodeA2과 CodeA7를 이용하는 경우라도 동일한 처리로 실현 가능하고, CodeA3와 CodeA8, CodeA4와 CodeA9를 이용하는 경우라도 동일한 처리로 실현 가능하다. As a specific example, the case where the memory management information is CodeA1 and CodeA6 has been explained. Even when CodeA2 and CodeA7 are used, the same processing can be realized and the same processing can be realized even when CodeA3 and CodeA8, CodeA4 and CodeA9 are used. .

또한, 도 26에 도시하는 초기화 코맨드 CodeA5를 복호화후 용 메모리 관리정보로 하고, 도 22에 도시하는 초기화 재송 코맨드(Code6)를 복호화전 용 메모리 관 리정보로 하여, 각각을 쌍으로 사용하는 것도 가능하다.It is also possible to use the initialization command CodeA5 shown in FIG. 26 as post-decryption memory management information, and to use each pair in pairs using the initialization retransmission command Code6 shown in FIG. 22 as memory management information before decoding. Do.

또한, 1프레임에 1개의 복호화후 용 메모리 관리정보와 다수의 복호화전 용 메모리 관리정보가 헤더 정보로서 부여되어 있는 경우, 다수의 복호화전 용 메모리 관리정보가 복호화후 용 메모리 관리정보보다 먼저 처리되도록 하면 된다. In addition, when one post-decoding memory management information and a plurality of decoding-only memory management information are provided as header information in one frame, the plurality of decoding-only memory management information are processed before the memory management information after decoding. Just do it.

즉, 도 17에 도시하는 헤더 정보의 선두쪽에 복호화전 용 메모리 관리정보를 부여하여 부호화하도록 하면 된다. In other words, the decoding management memory may be provided at the head of the header information shown in FIG. 17 and encoded.

또한, 도 29(a)와 도 29(b)에 도시하는 명령의 조합에 의해, 메모리 관리정보가 복호전용 관리정보인지 복호화후 용 관리정보인지를 별도의 정보로 하여, 상기 실시의 형태에 도시한 코맨드를 실현해도 된다. The combination of the instructions shown in Figs. 29A and 29B shows whether the memory management information is the decoding management information or the decoding management information as other information, and is shown in the above embodiment. You may realize one command.

도 29(a)는 코맨드의 내용과 부가정보를 도시하는 대응도이다. 도29(b)는 코맨드의 실행 타이밍(처리 위치)을 도시하는 대응도이다. Fig. 29A is a correspondence diagram showing the contents of the command and the additional information. Fig. 29B is a correspondence diagram showing the execution timing (processing position) of the command.

도 30은 부호화 신호의 헤더 정보에 있어서의 메모리 관리정보의 코맨드를 도시하는 모식도이다. 30 is a schematic diagram showing a command 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, frame data such as MBa and MBb, and the frame header FrmBHdr has header information and code information CodeD.

이 때, 예를 들면 도 30에 도시하는 바와 같이, 프레임(FrmB)의 프레임 헤더(FrmBHdr)를 선두로부터 코맨드의 코드 정보(CodeD), 처리위치를 나타내는 FlagD, 코맨드의 부가정보를 나타내는 부가정보(AddD)로 하면 된다. 부가정보가 없는 경우는 도 30에 도시하는 바와 같이 코맨드의 CodeE, 처리위치를 나타내는 FlagE가 프레임 헤더(FrmBHdr)에 부가되면 된다. 코맨드를 나타내는 Code의 직후에 부가정보를 나타내는 Add로 하지 않고 처리위치를 나타내는 Flag로 함으로써, 도 28에 도시하는 단계 B7이나 단계 B9의 처리를 최적화할 수 있다. At this time, for example, as shown in Fig. 30, the frame header FrmBHdr of the frame FrmB is displayed from the head with the code information CodeD of the command, the FlagD indicating the processing position, and the additional information indicating the additional information of the command. AddD). If there is no additional information, as shown in Fig. 30, CodeE of a command and FlagE indicating a processing position may be added to the frame header FrmBHdr. By immediately setting the Flag indicating the processing position instead of Add indicating additional information immediately after the code indicating the command, the processing in Step B7 and Step B9 shown in FIG. 28 can be optimized.

또한, 코맨드의 실행 타이밍이 화상 신호의 복호전과 복호후 중 어느 쪽인지를 구별하기 위해서, 코맨드의 처리 위치를 나타내는 새로운 코맨드를 이용하여, 그 처리위치를 나타내는 코맨드의 프레임 헤더에서의 위치보다 전에 위치하는 코맨드는 복호화후에 실시, 그 처리위치를 나타내는 코맨드의 프레임 헤더에서의 위치보다 후에 위치하는 코맨드는 복호화전에 실시하도록 해도 된다. 이에 따라, 다수 코맨드가 있을 때에, 각각의 코맨드의 실행 타이밍(처리 위치)을 1개의 코맨드로 나타낼 수 있고, 코맨드마다 처리위치를 나타내는 Flag를 송부하는 경우에 비교해 송부 정보가 감소하고, 부호화 효율이 향상된다. In addition, in order to distinguish whether the command execution timing is before or after the decoding of the image signal, a position before the position in the frame header of the command indicating the processing position is used, using a new command indicating the processing position of the command. Commands to be executed may be performed after decoding, and commands placed after the position in the frame header of the command indicating the processing position may be performed before decoding. As a result, when there are a large number of commands, the execution timing (processing position) of each command can be represented by one command, and the sending information is reduced compared to the case of sending a flag indicating the processing position for each command, and the coding efficiency is improved. Is improved.

구체예를 도 31을 이용하여 설명한다. A specific example will be described with reference to FIG. 31.

도 31은 다른 부호화 신호의 헤더 정보에 있어서의 메모리 관리정보의 코맨드를 나타내는 모식도이다. Fig. 31 is a schematic diagram showing a command 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 a frame header FrmCHdr and frame data such as MBa and MBb, and the frame header FrmCHdr is header information. The command (dif), the command (CodeG), the additional information (AddG), and the command (CodeH) are located.

그리고, 처리위치를 나타내는 코맨드(dif)가 프레임 헤더(FrmCHdr)에 있는지 여부가 판별되고, 처리 위치를 나타내는 코맨드(dif)보다 전에 있는 코맨드(CodeF) 는 프레임(FrmC)의 복호화후에 실행되고, 코맨드(dif)보다 후에 있는 코맨드(CodeG)나 코맨드(CodeH)는 프레임(FrmC)의 복호화전에 실행되도록 해도 좋다. 이 경우, 처리위치를 나타내는 코맨드(dif)가 없으면, 프레임 헤더(FrmCHdr) 내의 모든 코맨드는 프레임(FrmC)의 복호화 처리후에 실행되게 된다. Then, it is determined whether or not the command dif indicating the processing position is in the frame header FrmCHdr, and the command CodeF before the command dif indicating the processing position is executed after decoding the frame FrmC. The command CodeG or the command CodeH which is after (dif) may be executed before decoding of the frame FrmC. In this case, if there is no command dif indicating the processing position, all the commands in the frame header FrmCHdr are executed after the decoding process of the frame FrmC.

또한, 상기 각 실시의 형태에서 설명한 바와 같이, 불필요하게 된 메모리 영역을 개방하는 코맨드나 초기화 코맨드 등의 메모리 관리정보가 다시 전송될 때, 화상의 부호화 신호에 부가된 헤더 정보에 포함되어 전송되지 않고, 메모리 관리정보가 포함된 헤더 정보가 화상의 부호화 신호와는 별도로 분리되어 전송되어도 된다. 즉, 재송하는 상술의 코맨드가, 부호화된 픽쳐와 동일한 스트림에 있지 않고, 예를 들면 별도의 스트림으로서 전송하도록 해도 된다. 또한, 축적 미디어의 별도의 영역에 기록되어도 된다. In addition, as described in each of the above embodiments, when memory management information such as a command to open an unnecessary memory area or an initialization command is transmitted again, it is not included in the header information added to the coded signal of the image and transmitted. The header information including the memory management information may be transmitted separately from the coded signal of the image. That is, the above-mentioned command to be retransmitted may not be in the same stream as the encoded picture, but may be transmitted as a separate stream, for example. It may also be recorded in a separate area of the storage medium.

(실시의 형태 10) (Embodiment 10)

다음에, 본 발명의 실시의 형태 10에 대해 설명한다. Next, Embodiment 10 of the present invention will be described.

본 실시의 형태에서는 상기 각 실시의 형태와 부호화를 행하는 단위가 다르다. 즉, 상기 실시의 형태 1에서 불필요한 메모리 영역을 개방하는 코맨드를 다수회 전송할 때, 상기 코맨드에 상당하는 도 5에 도시되는 메모리 관리정보 스트림(CtlStr)과 화상 부호화 스트림(VideoStr)은 화상(픽쳐) 단위로 부호화되어 있지만, 본 실시의 형태에서는 도 32에 도시하는 스트림 구조와 같이 1프레임을 슬라이스 단위로 부호화해도 된다. In this embodiment, the unit which performs encoding differs from each said embodiment. That is, in the first embodiment, when a command for opening an unnecessary memory area is transmitted a plurality of times, the memory management information stream CtlStr and the picture coding stream VideoStr shown in FIG. 5 corresponding to the command are displayed as pictures (pictures). Although encoded in units, in the present embodiment, one frame may be encoded in units of slices as in the stream structure shown in FIG.

슬라이스 단위로 부호화한다는 것은 도 32의 프레임 1의 슬라이스 1이 헤더 1-1, CtlStr1, VideoStr1-1을 가지고, 프레임 1의 슬라이스 2가 헤더1-2, CtlStr1, VideoStr1-2를 가지도록, 각 프레임이 갖는 슬라이스마다 헤더, 메모리 관리정보 스트림(CtlStr), 화상 부호화 스트림(VideoStr)을 부호화하는 것이다. 화상 부호화 장치로 부호화후, 화상 부호화 장치는 데이터 스트림을 출력한다. 또, 슬라이스는 동기 복귀 단위이고, 한개 또는 다수의 블록으로 이루어지는 띠형상의 영역이며, 다수의 슬라이스로부터 픽쳐가 구성된다. 또한, 픽쳐는 1매의 화상에 대응하는 기본적 부호화 단위이고, 블록은 부호화·복호화의 기본 단위이다. Encoding in slice units means that each frame has slice 1 of frame 1 having headers 1-1, CtlStr1, and VideoStr1-1, and slice 2 of frame 1 having headers 1-2, CtlStr1, and VideoStr1-2. The header, the memory management information stream CtlStr, and the picture coding stream VideoStr are encoded for each slice. After encoding by the picture coding apparatus, the picture coding apparatus outputs a data stream. A slice is a synchronization return unit, and is a band-shaped area composed of one or a plurality of blocks, and a picture is formed from a plurality of slices. The picture is a basic coding unit corresponding to one image, and the block is a basic unit of coding and decoding.

또한, 상기와 같이 메모리 관리정보 스트림(CtlStr)을 다수회 전송할 때의 내용은 동일 프레임내에서 동일의 정보로 한다. 동일의 정보로 함으로써, 이 메모리 관리정보 스트림(CtlStr)의 슬라이스 단위에서의 부가를 생략할 수 있다. 예를 들면, 슬라이스의 헤더에 다수회의 전송이 해당 슬라이스에서는 생략되어 있는지 여부를 나타내는 정보를 부가하고, 상기 코맨드를 다수회 전송하는 것이 해당 슬라이스에서 생략되어 있을 때에는 「0」을, 상기 코맨드가 해당 슬라이스에서 전송될 때(생략되어 있지 않을 때)에는 「1」을 부가한다. 구체적으로 도 33(a)에 일례를 나타내고, 이하 설명한다. 프레임 1에 있어서의 슬라이스 1부터 슬라이스 3에 있어서의 헤더 및 화상 부호화 스트림(VideoStr)은 각각 다르다. 한편, 슬라이스 1 및 슬라이스 2에서는 동일한 메모리 관리정보 스트림(CtlStr1)을 가지고, 동일 프레임에 있어서의 다수의 슬라이스에서 동일한 메모리 관리정보 스트림(CtlStr1)이 부호화되어 있는 것을 나타내는 정보 「1」을 슬라이스 1 및 슬라이스 2가 각각 갖는다. 또한, 슬라이스 3은 메모리 관리정보 스트림(CtlStr1)을 생략하고 있는 것 을 나타내는 정보 「0」을 가진다. 이에 따라, 다수회 전송하는 것이 해당 슬라이스에서 생략되어 있을 때에는, 선두 슬라이스 등, 상기 「1」이 도시되어 있는 슬라이스에 있어서의 메모리 관리정보 스트림(CtlStr)을 참조함으로써, 메모리 관리정보 스트림(CtlStr)의 부가를 생략할 수 있고, 비트수를 줄이는 것이 가능해진다. As described above, the contents when the memory management information stream CtlStr is transmitted a plurality of times are the same information in the same frame. By using the same information, addition of the memory management information stream CtlStr in the slice unit can be omitted. For example, information indicating whether a plurality of transmissions are omitted in the slice is added to the header of the slice, and "0" is indicated when the command is transmitted a plurality of times and is omitted in the slice. When transmitted in a slice (when not omitted), "1" is added. Specifically, an example is shown in FIG. 33A and will be described below. The header and the picture coding stream (VideoStr) in slice 1 to slice 3 in frame 1 are different. On the other hand, slice 1 and slice 2 have the same memory management information stream (CtlStr1), and information "1" indicating that the same memory management information stream (CtlStr1) is encoded in a plurality of slices in the same frame is slice 1 and Slice 2 has each. Slice 3 also has information " 0 " indicating that the memory management information stream CtlStr1 is omitted. Accordingly, when transmission of a plurality of times is omitted from the slice, the memory management information stream CtlStr is referred to by referring to the memory management information stream CtlStr in the slice in which "1" is shown, such as the head slice. Can be omitted, and the number of bits can be reduced.

즉, 상술한 메모리 관리정보 스트림(CtlStr1)을 생략하는 것을 나타내는 정보「0」는 제거할 대상의 픽쳐를 지정하는 정보를 갖지 않는 슬라이스(슬라이스 3)로, 제거할 대상의 픽쳐를 지정하는 정보를 참조할 때, 제거할 대상의 픽쳐를 지정하는 정보를 참조하는 것을 나타내는 정보이다. That is, the information " 0 " indicating that the above-mentioned memory management information stream CtlStr1 is omitted is a slice (slice 3) having no information specifying the picture to be removed, and information for specifying the picture to be removed. When referencing, it is information indicating that referring to information specifying a picture of a target to be removed is referred.

이러한 메모리 관리정보 스트림(CtlStr)의 부가를 생략 가능하게 하는 방법은 전송 과정에서 메모리 관리정보 스트림(CtlStr)이 다수회 결락될 가능성이 적으므로 유효하다. The method of omitting such addition of the memory management information stream CtlStr is effective because it is unlikely that the memory management information stream CtlStr is missed many times during the transmission process.

또한, 메모리 관리정보 스트림(CtlStr)의 유무가 메모리 관리정보 스트림(CtlStr)이 생략되어 있는 것을 나타내는 정보없이 판별될 수 있는 경우, 도 33(b)와 같이 이를 생략해도 된다. 예를 들면 메모리 관리정보 스트림(CtlStr)의 선두가 화상 부호화 스트림(VideoStr)의 선두와 구별될 수 있는 경우에는 도 33(b)와 같이 메모리 관리정보 스트림(CtlStr1)이 부호화되어 있는지 여부를 나타내는 정보가 있는지 여부의 판별을, 각 슬라이스에 있어서의 선두에서 소정의 위치에 소정의 정보가 있는지 여부로 확인할 수 있다.If the presence or absence of the memory management information stream CtlStr can be determined without information indicating that the memory management information stream CtlStr is omitted, this may be omitted as shown in Fig. 33 (b). For example, when the head of the memory management information stream CtlStr can be distinguished from the head of the picture coding stream VideoStr, information indicating whether or not the memory management information stream CtlStr1 is encoded as shown in FIG. 33 (b). It is possible to confirm whether the predetermined information exists at a predetermined position from the head of each slice.

이러한 메모리 관리정보 스트림(CtlStr)의 부가를 생략 가능하게 하는 방법은 메모리 관리정보 스트림(CtlStr)을 부호화하는 회수를 삭감하고, 비트수를 줄이 는 것에 효과적이다.This method of omitting the addition of the memory management information stream CtlStr is effective in reducing the number of times of encoding the memory management information stream CtlStr and reducing the number of bits.

이상, 부호화에 대해 설명했는데 마찬가지로 1프레임의 복호화를 슬라이스 단위로 할 수 있다. 상기 실시의 형태 2에 있어서 불필요한 메모리 영역을 개방하는 코맨드를 다수회 전송할 때, 도 7에 도시하는 화상 복호화 장치(200)에 있어서는 상기 코맨드에 상당하는 도 32에 도시되는 관리정보 스트림(CtlStr)과 화상 부호화 스트림(VideoStr)을 가지는 스트림 구조를 분리하고, 각각을 화상(픽쳐) 단위로 입력하는데, 각각을 슬라이스 단위로 입력해도 된다.As described above, encoding has been described. Similarly, decoding of one frame can be performed in units of slices. In the second embodiment, when a command for opening an unnecessary memory area is transmitted a plurality of times, the picture decoding apparatus 200 shown in FIG. 7 and the management information stream CtlStr shown in FIG. 32 corresponding to the command are used. A stream structure having a picture coded stream (VideoStr) is separated, and each is input in picture (picture) units, and each may be input in slice units.

또한, 다른 실시의 형태에 있어서의 부호화·복호화에 있어서도 마찬가지로 1 프레임을 슬라이스 단위로 부호화·복호화해도 된다. In the encoding and decoding according to another embodiment, one frame may be encoded and decoded in units of slices.

또한, 상기 실시의 형태 1로부터 실시의 형태 10까지 도시한 부호화 방법·복호화 방법은 휴대전화나 카 네비게이션 시스템 등의 이동체 통신기기나 디지털 비디오 카메라나 디지털 스틸 카메라 등의 촬영 기기에 LSI 등의 반도체에 의해서 설치하는 것이 가능하다. 또한, 설치 형식으로는 부호화기·복호화기를 양쪽 모두 가지는 송수신형의 단말 이외에, 부호화기만의 송신 단말, 복호화기만의 수신 단말의 3가지를 생각할 수 있다. The encoding method and the decoding method shown in the first to the tenth embodiments described above are used in mobile communication devices such as mobile phones and car navigation systems, and in photographic devices such as digital video cameras and digital still cameras. It is possible to install by. In addition, as an installation form, three types of transmitter-only terminal and encoder-only receiving terminal other than the transmitter-and-receiver-type terminal which have both an encoder and a decoder can be considered.

(실시의 형태 11) (Embodiment 11)

다음에, 본 발명의 실시의 형태 11에 대해서 설명한다. Next, Embodiment 11 of this invention is demonstrated.

본 실시의 형태에서는 실시의 형태 1로부터 실시의 형태 10에 나타낸 화상 부호화 방법 또는 화상 복호화 방법의 구성을 실현하기 위한 프로그램을, 플렉서블 디스크 등의 기억매체에 기록하도록 함으로써, 상기 실시의 형태에서 도시한 처리 를, 독립된 컴퓨터 시스템에서 간단하게 실시하는 것이 가능해진다. In the present embodiment, a program for realizing the configuration of the picture coding method or the picture decoding method shown in the first to the tenth embodiments is recorded in a storage medium such as a flexible disk, thereby showing in the above-described embodiments. The processing can be easily performed by an independent computer system.

도 34는 상기 실시의 형태 1의 화상 부호화 방법 또는 화상 복호화 방법을 격납한 플렉서블 디스크를 이용하여, 컴퓨터 시스템에 의해 실시하는 경우의 설명도이다. FIG. 34 is an explanatory diagram in the case of performing by a computer system using a flexible disk which stores the picture coding method or the picture decoding method of the first embodiment. FIG.

도 34(b)는 플렉서블 디스크의 정면에서 본 외관, 단면 구조 및 플렉서블 디스크를 나타내고, 도 34(a)는 기록매체 본체인 플렉서블 디스크의 물리 포맷의 예를 나타내고 있다. 플렉서블 디스크(FD1)는 케이스(F) 내에 내장되고, 이 디스크의 표면에는 동심원상으로 외주로부터 내주로 향해 다수의 트랙(Tr)이 형성되며, 각 트랙은 각도 방향으로 16개의 섹터(Se)로 분할되어 있다. 따라서, 상기 프로그램을 격납한 플렉서블 디스크에서는 상기 플렉서블 디스크(FD1)상에 할당된 영역에, 상기 프로그램으로서의 화상 부호화 방법이 기록되어 있다. Fig. 34 (b) shows the external appearance, the cross-sectional structure and the flexible disk as seen from the front of the flexible disk, and Fig. 34 (a) shows an example of the physical format of the flexible disk as the main body of the recording medium. The flexible disk FD1 is embedded in the case F, and on the surface of the disk, a plurality of tracks Tr are formed concentrically from the outer circumference to the inner circumference, each track being divided into 16 sectors Se in the angular direction. It is divided. Therefore, in the flexible disk which stores the said program, the image coding method as the said program is recorded in the area | region allocated on the said flexible disk FD1.

또한, 도 34(c)는 플렉서블 디스크(FD1)로 상기 프로그램의 기록 재생을 행하기 위한 구성을 도시한다. 상기 프로그램을 플렉서블 디스크(FD1)에 기록하는 경우는 컴퓨터 시스템(Cs)에서 상기 프로그램으로서의 화상 부호화 방법 또는 화상 복호화 방법을 플렉서블 디스크 드라이브(FDD)를 통해 기입한다. 또한, 플렉서블 디스크(FD1) 내의 프로그램에 의해 상기 화상 부호화 방법을 컴퓨터 시스템중에 구축하는 경우는 플렉서블 디스크 드라이브(FDD)에 의해 프로그램을 플렉서블 디스크(FD1)로부터 읽어내, 컴퓨터 시스템(Cs)에 전송한다. 34C shows a configuration for recording and reproducing the program on the flexible disk FD1. When the program is recorded on the flexible disk FD1, the computer system Cs writes the image coding method or the image decoding method as the program through the flexible disk drive FDD. When the image coding method is constructed in the computer system by the program in the flexible disk FD1, the program is read from the flexible disk FD1 by the flexible disk drive FDD and transferred to the computer system Cs. .

또, 상기 설명에서는 기록 매체로서 플렉서블 디스크를 이용하여 설명을 했는데, 광 디스크를 이용해도 마찬가지로 행할 수 있다. 또한, 기록 매체는 이에 한정되지 않고, IC card, ROM 카셋 등, 프로그램을 기록할 수 있는 것이면 마찬가지로 실시할 수 있다. In the above description, a flexible disk is used as the recording medium, but the optical disk can be used in the same manner. In addition, the recording medium is not limited thereto, and the recording medium can be similarly implemented as long as it can record a program such as an IC card, a ROM cassette, and the like.

또한, 상기 실시의 형태에 도시한 화상 부호화 방법·화상 복호화 방법은 휴대 전화나 카 네비게이션 시스템 등의 이동체 통신기기나 디지털 비디오 카메라나 디지털 스틸 카메라(digital steel camera) 등의 촬영 기기에 LSI 등의 반도체에 의해서 설치하는 것이 가능하다. 또한, 설치 형식으로서는, 부호화기·복호화기를 양쪽 모두 가지는 송수신형의 단말 이외에, 부호화기만의 송신 단말, 복호화기만의 수신 단말의 3가지를 생각할 수 있다. In addition, the image coding method and the image decoding method shown in the above-described embodiments include a mobile communication device such as a mobile phone or a car navigation system, a semiconductor such as an LSI, and a recording device such as a digital video camera or a digital steel camera. It is possible to install by. In addition, as an installation form, three types of transmitter-only terminal and encoder-only receiving terminal other than the transmitter / receiver-type terminal which have both an encoder and a decoder can be considered.

여기서, 상기 실시의 형태 1로부터 실시의 형태 10에 나타낸 화상 부호화 방법이나 화상 복호화 방법의 응용예와 이를 이용한 시스템을 설명한다. Here, application examples of the picture coding method and the picture decoding method shown in the first to the tenth embodiments and a system using the same will be described.

도 35는 컨텐츠 전송 서비스를 실현하는 컨텐츠 공급 시스템(ex100)의 전체 구성을 도시하는 블록도이다. 통신 서비스의 제공 영역을 소망의 크기로 분할하고, 각 셀 내에 각각 고정 무선국인 기지국(ex107∼ex110)이 설치되어 있다. 35 is a block diagram showing an overall configuration of a content supply system ex100 that realizes a content delivery service. The area for providing communication service is divided into cells of desired size, and base stations ex107 to ex110 which are fixed wireless stations are provided in respective cells.

이 컨텐츠 공급 시스템(ex100)은 예를 들면, 인터넷(ex101)에 인터넷 서비스 공급자(ex102), 전화망(ex104) 및 기지국(ex107∼ex110)을 통해 컴퓨터(ex111), PDA(personal digital assistant)(ex112), 카메라(ex113), 휴대 전화(ex114), 카메라 부착 휴대전화(ex115) 등의 각 기기가 접속된다. The content supply system ex100 is, for example, a computer ex111, a PDA (personal digital assistant) ex112 via the Internet service provider ex102, a telephone network ex104, and base stations ex107 to ex110 on the Internet ex101. ), Camera ex113, mobile phone ex114, mobile phone ex115 and the like are connected to each device.

그러나, 컨텐츠 공급 시스템(ex100)은 도 35와 같은 조합에 한정되지 않고, 어느 하나를 조합시켜 접속하도록 해도 된다. 또한, 고정 무선국인 기지국(ex107∼ex110)을 통하지 않고, 각 기기가 전화망(ex104)에 직접 접속되어도 된다. However, the content supply system ex100 is not limited to the combination as shown in Fig. 35, and may be connected in any combination. Further, 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 video such as a digital video camera. In addition, the cellular phone is a PDC (Personal Digital Communications), CDMA (Code Division Multiple Access), W-CDMA (Wideband-Code Division Multiple Access), or GSM (Global System for Mobile Communications) GSM, or PHS (Personal Handyphone System) or the like may be any.

또한, 스트리밍 서버(ex103)는 카메라(ex113)로부터 기지국(ex109), 전화망(ex104)을 통해 접속되어 있고, 카메라(ex113)를 이용하여 사용자가 송신하는 부호화 처리된 데이터에 의거한 라이브 전송 등이 가능하게 된다. 촬영한 데이터의 부호화 처리는 카메라(ex113)로 행하거나, 데이터의 송신처리를 하는 서버 등으로 행해도 된다. 또한, 카메라(ex116)로 촬영한 동화상 데이터는 컴퓨터(ex111)를 통해 스트리밍 서버(ex103)에 송신되어도 된다. 카메라(ex116)는 디지털 카메라 등의 정지화상, 동화상이 촬영 가능한 기기이다. 이 경우, 동화상 데이터의 부호화는 카메라(ex116)로 행하거나 컴퓨터(ex111)로 행하거나 어느쪽이라도 된다. 또한, 부호화 처리는 컴퓨터(ex111)나 카메라(ex116)가 갖는 LSI(ex117)에서 처리하게 된다. 또, 화상 부호화·복호화용의 소프트웨어를 컴퓨터(ex111) 등으로 판독 가능한 기록매체인 어떠한 축적 미디어(CD-ROM, 플렉서블 디스크, 하드 디스크 등)에 조합해도 된다. 또한, 카메라 부착 휴대전화(ex115)로 동화상 데이터를 송신해도 된다. 이 때의 동화상 데이터는 휴대전화(ex115)가 갖는 LSI에서 부호화 처리된 데이터이다. The streaming server ex103 is connected from the camera ex113 via the base station ex109 and the telephone network ex104, and live transmission based on the encoded data transmitted by the user using the camera ex113 is performed. It becomes possible. The encoding process of the photographed data may be performed by the camera ex113, or may be performed by a server or the like which performs the data transmission process. The moving picture data shot by the camera ex116 may be transmitted to the streaming server ex103 via the computer ex111. The camera ex116 is a device capable of capturing still images and moving images such as digital cameras. In this case, the encoding of the moving image data may be performed by the camera ex116 or by the computer ex111. The encoding process is performed by the LSI ex117 included in the computer ex111 or the camera ex116. In addition, image encoding and decoding software may be combined with any storage medium (CD-ROM, flexible disk, hard disk, etc.) that is a recording medium that can be read by a computer ex111 or the like. Further, the moving picture data may be transmitted to the cellular phone ex115 with the camera. The moving picture data at this time is data encoded by the LSI included in the cellular phone ex115.

이 컨텐츠 공급 시스템(ex100)에서는 사용자가 카메라(ex113), 카메 라(ex116) 등으로 촬영하고 있는 컨텐츠(예컨대, 음악 라이브를 촬영한 영상 등)를 상기 실시의 형태와 마찬가지로 부호화 처리하여 스트리밍 서버(ex103)에 송신하는 한편, 스트리밍 서버(ex103)는 요구가 있는 클라이언트에 대해 상기 컨텐츠 데이터를 스트림 전송한다. 클라이언트로서는 상기 부호화 처리된 데이터를 복호화 하는 것이 가능한, 컴퓨터(ex111), PDA(ex112), 카메라(ex113), 휴대전화(ex114) 등이 있다. 이와 같이 함으로써 컨텐츠 공급 시스템(ex100)은, 부호화된 데이터를 클라이언트에서 수신하여 재생할 수 있고, 또한 클라이언트에 리얼 타임으로 수신하여 복호화하고, 재생함으로써, 개인 방송도 실현 가능하게 되는 시스템이다.In the content supply system ex100, the content (e.g., video taken of music live, etc.) shot by the user of the camera ex113, the camera ex116, etc. is encoded and processed in the same manner as in the above-described embodiment. ex103), the streaming server ex103 streams the content data to the client on request. Examples of the client include a computer ex111, a PDA ex112, a camera ex113, a mobile phone ex114, and the like, capable of decoding the encoded data. In this manner, the content supply system ex100 can receive and reproduce the encoded data at the client, and can receive and decode and reproduce the encoded data in real time at the client, thereby realizing personal broadcasting.

이 시스템을 구성하는 각 기기의 부호화, 복호화에는 상기 각 실시의 형태에서 도시한 화상 부호화 방법 혹은 화상 복호화 방법을 이용하도록 하면 된다. What is necessary is just to use the image coding method or the image decoding method which were shown in said each embodiment for encoding and decoding of each apparatus which comprises this system.

그 일례로서 휴대 전화에 대해 설명한다. As an example, a mobile phone will be described.

도 36은 상기 실시의 형태에서 설명한 화상 부호화 방법과 화상 복호화 방법을 이용한 휴대 전화(ex115)를 도시하는 도면이다. 휴대 전화(ex115)는 기지국(ex110)과의 사이에서 전파를 송수신하기 위한 안테나(ex201), CCD 카메라 등의 영상, 정지화상을 찍는 것이 가능한 카메라부(ex203), 카메라부(ex203)로 촬영한 영상, 안테나(ex201)로 수신한 영상 등이 복호화된 데이터를 표시하는 액정 디스플레이 등의 표시부(ex202), 조작 키(ex204)군으로 구성되는 본체부, 음성 출력을 하기 위한 스피커 등의 음성 출력부(ex208), 음성 입력을 하기 위한 마이크 등의 음성 입력부(ex205), 촬영한 동화상 또는 정지화상의 데이터, 수신한 메일의 데이터, 동화상의 데이터 또는 정지화상의 데이터 등, 부호화된 데이터 또는 복호화된 데이 터를 보존하기 위한 기록 미디어(ex207), 휴대 전화(ex115)에 기록 미디어(ex207)를 장착 가능하게 하기 위한 슬롯부(ex206)를 가지고 있다. 기록 미디어(ex207)는 SD 카드 등의 플라스틱 케이스 내에 개서나 소거가 가능한 불휘발성 메모리인 EEPROM(Electrically Erasable and Programmable Read Only Memory)의 일종인 플래시 메모리 소자를 격납한 것이다. Fig. 36 is a diagram showing the cell phone ex115 using the picture coding method and the picture decoding method explained in the above embodiments. The cellular phone ex115 photographed by an antenna ex201 for transmitting and receiving radio waves between the base station ex110, an image such as a CCD camera, a camera unit ex203 capable of taking still images, and a camera unit ex203. A display unit ex202 such as a liquid crystal display for displaying decoded data such as an image, an image received by the antenna ex201, a main body composed of a group of operation keys ex204, and an audio output unit such as a speaker for audio output (ex208) Encoded data or decoded data such as a voice input unit ex205 such as a microphone for voice input, data of a captured moving image or still image, data of a received mail, data of a moving image or still image The recording medium ex207 for storing the data and the slot ex206 for allowing the recording medium ex207 to be mounted on the cellular phone ex115 are provided. The recording medium ex207 stores a flash memory device which is a kind of electrically erasable and programmable read only memory (EEPROM), which is a nonvolatile memory that can be rewritten or erased in a plastic case such as an SD card.

또한, 휴대 전화(ex115)에 대해 도 37을 이용하여 설명한다. 휴대 전화(ex115)는 표시부(ex202) 및 조작 키(ex204)를 구비한 본체부의 각 부를 통괄적으로 제어하도록 이루어진 주제어부(ex311)에 대해, 전원 회로부(ex310), 조작입력 제어부(ex304), 화상 부호화부(ex312), 카메라 인터페이스부(ex303), LCD(Liquid Crystal Display) 제어부(ex302), 화상 복호화부(ex309), 다중 분리부(ex308), 기록 재생부(ex307), 변복조 회로부(ex306) 및 음성 처리부(ex305)가 동기 버스(ex313)를 통해 상호 접속되어 있다. The mobile telephone ex115 will be described with reference to FIG. 37. The cellular phone ex115 controls the main control unit ex311 configured to collectively control the respective units of the main body unit including the display unit ex202 and the operation key ex204, and includes a power supply circuit unit ex310, an operation input control unit ex304, An image coding unit ex312, a camera interface unit ex303, an LCD (Liquid Crystal Display) control unit ex302, an image decoding unit ex309, a multiple separation unit ex308, a recording / reproducing unit ex307, a modulation / demodulation circuit unit ex306 ) And the voice processing unit ex305 are interconnected via a synchronization bus ex313.

전원 회로부(ex310)는 사용자의 조작에 의해 종화(終話) 및 전원 키가 온 상태로 되면, 배터리 팩으로부터 각 부에 대해 전력을 공급함으로써 카메라가 부착된 디지털 휴대전화(ex115)를 동작 가능한 상태로 기동한다. The power supply circuit unit ex310 is operable to operate the digital cellular phone ex115 with the camera by supplying power to each unit from the battery pack when the terminal and power key are turned on by a user's operation. Start up with.

휴대전화(ex115)는 CPU, ROM 및 RAM 등으로 이루어지는 주제어부(ex311)의 제어에 따라서, 음성통화 모드시에 음성 입력부(ex205)에서 집음(集音)한 음성신호를 음성 처리부(ex305)에 의해서 디지털 음성 데이터로 변환하여, 이를 변복조 회로부(ex306)에서 스펙트럼 확산 처리하여, 송수신 회로부(ex301)에서 디지털 아날로그 변환처리 및 주파수 변환처리를 실시한 후에 안테나(ex201)를 통해 송신한다. 또한 휴대 전화기(ex115)는 음성 통화 모드시에 안테나(ex201)로 수신한 수신 데이터를 증폭시켜 주파수 변환처리 및 아날로그 디지털 변환처리를 실시하고, 변복조 회로부(ex306)에서 스펙트럼 역확산 처리하여, 음성 처리부(ex305)에 의해서 아날로그 음성 데이터로 변환한 후, 이를 음성 출력부(ex208)를 통해 출력한다. The cellular phone ex115 controls the voice processing unit ex305 to collect the voice signal collected by the voice input unit ex205 in the voice call mode under the control of the main controller ex311 including the CPU, ROM, and RAM. The digital audio data is converted into digital voice data, and the spectrum demodulation process is performed by the demodulation and demodulation circuit unit ex306, and then transmitted through the antenna ex201 after the digital analog conversion process and the frequency conversion process are performed by the transmission and reception circuit unit ex301. In addition, the mobile phone ex115 amplifies the received data received by the antenna ex201 in the voice call mode, performs frequency conversion processing and analog-digital conversion processing, and performs a spectrum despreading process by the demodulation circuit unit ex306, thereby processing the voice processing unit. After conversion to analog voice data by ex305, it is output through the voice output unit ex208.

또한, 데이터 통신 모드시에 전자 메일을 송신하는 경우, 본체부의 조작 키(ex204)의 조작에 의해서 입력된 전자 메일의 텍스트 데이터는 조작 입력 제어부(ex304)를 통해 주제어부(ex311)에 송출된다. 주제어부(ex311)는 텍스트 데이터를 변복조 회로부(ex306)에서 스펙트럼 확산 처리하여, 송수신 회로부(ex301)에서 디지털 아날로그 변환처리 및 주파수 변환처리를 실시한 후에 안테나(ex201)를 통해 기지국(ex110)으로 송신한다. When the electronic mail is transmitted in the data communication mode, the text data of the electronic mail input by the operation of the operation key ex204 of the main body is sent to the main control unit ex311 via the operation input control unit ex304. The main control unit ex311 performs spectrum spread processing on the text demodulation circuit unit ex306, performs digital analog conversion processing and frequency conversion processing on the transmission / reception circuit unit ex301, and then transmits the text data to the base station ex110 through the antenna ex201. .

데이터 통신 모드시에 화상 데이터를 송신하는 경우, 카메라부(ex203)로 촬영된 화상 데이터를 카메라 인터페이스부(ex303)를 통해 화상 부호화부(ex312)에 공급한다. 또한, 화상 데이터를 송신하지 않는 경우에는, 카메라부(ex203)로 촬영한 화상 데이터를 카메라 인터페이스부(ex303) 및 LCD 제어부(ex302)를 통해 표시부(ex202)에 직접 표시하는 것도 가능하다. When image data is transmitted in the data communication mode, the image data shot by the camera unit ex203 is supplied to the image coding unit ex312 via the camera interface unit ex303. When the image data is not transmitted, it is also possible to display the image data shot by the camera unit ex203 directly on the display unit ex202 via the camera interface unit ex303 and the LCD control unit ex302.

화상 부호화부(ex312)는 본원 발명에서 설명한 화상 부호화 장치를 구비한 구성이고, 카메라부(ex203)로부터 공급된 화상 데이터를 상기 실시의 형태에서 도시한 화상 부호화 장치에 이용한 부호화 방법에 의해서 압축 부호화함으로써 부호화 화상 데이터로 변환하여, 이를 다중 분리부(ex308)에 송출한다. 또한, 이 때 동시에 휴대 전화기(ex115)는 카메라부(ex203)로 촬영 중에 음성 입력부(ex205)에 서 집음한 음성을 음성 처리부(ex305)를 통해 디지털의 음성 데이터로서 다중 분리부(ex308)에 송출한다. The picture coding unit ex312 is configured to include the picture coding device described in the present invention, by compressing and coding the picture data supplied from the camera unit ex203 by the coding method used in the picture coding device shown in the above embodiment. The data is converted into coded image data, and sent to the multiple separation unit ex308. At this time, the mobile phone ex115 simultaneously transmits the voices collected by the voice input unit ex205 while shooting with the camera unit ex203 as digital voice data to the multiplexing unit ex308 via the voice processing unit ex305. do.

다중 분리부(ex308)는 화상 부호화부(ex312)로부터 공급된 부호화 화상 데이터와 음성 처리부(ex305)로부터 공급된 음성 데이터를 소정의 방식으로 다중화하여, 그 결과 얻어지는 다중화 데이터를 변복조 회로부(ex306)에서 스펙트럼 확산 처리하고, 송수신 회로부(ex301)에서 디지털 아날로그 변환처리 및 주파수 변환처리를 실시한 후에 안테나(ex201)를 통해 송신한다. The multiplexer ex308 multiplexes the encoded image data supplied from the image encoder ex312 and the audio data supplied from the voice processor ex305 in a predetermined manner, and the resulting multiplexed data is subjected to the demodulation and demodulation circuit ex306. After spread spectrum processing, the transmission / reception circuit unit ex301 performs digital analog conversion processing and frequency conversion processing, and then transmits the data through the antenna ex201.

데이터 통신 모드시에 홈 페이지 등에 링크된 동화상 파일의 데이터를 수신하는 경우, 안테나(ex201)를 통해 기지국(ex110)으로부터 수신한 수신 데이터를 변복조 회로부(ex306)에서 스펙트럼 역확산 처리하고, 그 결과 얻어지는 다중화 데이터를 다중 분리부(ex308)에 송출한다. In the case of receiving the data of the moving picture file linked to the home page or the like in the data communication mode, the demodulation circuit section ex306 performs the spectrum despreading process on the received data received from the base station ex110 via the antenna ex201, and as a result is obtained. The multiplexed data is sent to the multiple separation unit ex308.

또한, 안테나(ex201)를 통해 수신된 다중화 데이터를 복호화하기 위해서 다중 분리부(ex308)는 다중화 데이터를 분리함으로써 화상 데이터의 비트 스트림과 음성 데이터의 비트 스트림으로 나누고, 동기 버스(ex313)를 통해 해당 부호화 화상 데이터를 화상 복호화부(ex309)에 공급하는 동시에 해당 음성 데이터를 음성 처리부(ex305)에 공급한다. In addition, in order to decode the multiplexed data received through the antenna ex201, the multiplexer ex308 divides the multiplexed data into a bit stream of image data and a bit stream of audio data, and the corresponding data is separated through a sync bus ex313. The coded image data is supplied to the picture decoding unit ex309, and the voice data is supplied to the voice processing unit ex305.

다음에, 화상 복호화부(ex309)는 본원 발명에서 설명한 화상 복호화 장치를 구비한 구성이고, 화상 데이터의 비트 스트림을 상기 실시의 형태에서 도시한 부호화 방법에 대응한 복호화 방법으로 복호함으로써 재생 동화상 데이터를 생성하고, 이를 LCD 제어부(ex302)를 통해 표시부(ex202)에 공급하고, 이에 따라, 예를 들면 홈 페이지에 링크된 동화상 파일에 포함되는 동화상 데이터가 표시된다. 이 때 동시에 음성 처리부(ex305)는 음성 데이터를 아날로그 음성 데이터로 변환한 후, 이를 음성 출력부(ex208)에 공급하고, 이에 따라, 예를 들면 홈 페이지에 링크된 동화상 파일에 포함되는 음성 데이터가 재생된다. Next, the picture decoding unit ex309 includes the picture decoding apparatus described in the present invention, and decodes the reproduced moving picture data by decoding the bit stream of the picture data with a decoding method corresponding to the coding method shown in the above embodiments. It generates and supplies it to the display unit ex202 via the LCD control unit ex302, whereby, for example, moving image data included in the moving image file linked to the home page is displayed. At the same time, the voice processing unit ex305 converts the voice data into analog voice data, and then supplies the voice data to the voice output unit ex208. Accordingly, for example, the voice data contained in the moving picture file linked to the home page is stored. 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) 등의 표시장치에 동화상을 재생하는 것도 가능하다. In addition, the present invention is not limited to the example of the system. Recently, digital broadcasting by satellites and terrestrial waves has been a hot topic, and as shown in FIG. 38, the digital broadcasting system also includes at least an image encoding apparatus or an image decoding apparatus in the above embodiments. Any one of them can be combined. More specifically, a bit stream of video information is transmitted from a broadcasting station ex409 to a communication or broadcast satellite ex410 via radio waves. The broadcast satellite ex410, which has received this, transmits a radio wave for broadcasting, and receives the radio wave through an antenna ex406 of a home having a satellite broadcasting receiving facility, thereby receiving a television (receiver) ex401 or a set top box (STB) ex407. A device such as a device decodes a bit stream and reproduces it. The picture decoding apparatus shown in the above-described embodiments can also be provided in the reproducing apparatus ex403 which reads and decodes the bit stream recorded on the storage medium ex402 such as a CD or DVD as a recording medium. In this case, the reproduced video signal is displayed on the monitor ex404. In addition, a configuration in which an image decoding device is provided in a set-top box ex407 connected to a cable ex405 for cable television or an antenna ex406 for satellite / terrestrial broadcasting, and reproduces it on the monitor ex408 of the television is also conceivable. have. At this time, the picture decoding apparatus may be combined in the television, not in the set top box. Further, a signal ex412 having an antenna ex411 is used to receive a signal from a satellite ex410, a base station ex107, or the like to reproduce a moving image on a display device such as car navigation ex413 included in the car ex412. It is also possible.

또한, 화상 신호를 상기 실시의 형태에서 나타낸 화상 부호화 장치로 부호화하여, 기록 매체에 기록하는 것도 가능하다. 구체예로서는 DVD 디스크(ex421)에 화상 신호를 기록하는 DVD 레코더나, 하드 디스크에 기록하는 디스크 레코더 등의 레코더(ex420)가 있다. 또한 SD 카드(ex422)에 기록하는 것도 가능하다. 레코더(ex420)가 상기 실시의 형태에서 도시한 화상 복호화 장치를 구비하고 있으면, DVD 디스크(ex421)나 SD 카드(ex422)에 기록한 화상 신호를 재생하여, 모니터(ex408)에서 표시할 수 있다. It is also possible to encode an image signal with the image encoding device shown in the above embodiment and to record it on a recording medium. As a specific example, there is a recorder ex420 such as a DVD recorder for recording image signals on a DVD disk ex421 or a disk recorder for recording them on a hard disk. It is also possible to record to the SD card ex422. If the recorder ex420 includes the picture decoding apparatus shown in the above embodiments, the picture signals recorded on the DVD disk ex421 or the SD card ex422 can be reproduced and displayed on the monitor ex408.

또한, 카 네비게이션(ex413)의 구성은 예를 들면 도 37에 도시하는 구성 중, 카메라부(ex203)와 카메라 인터페이스부(ex303), 화상 부호화부(ex312)를 제외한 구성을 생각할 수 있고, 동일한 것으로 컴퓨터(ex111)나 텔레비전(수신기)(ex401) 등으로도 생각할 수 있다.In addition, the structure of the car navigation ex413 can be considered the same except the camera part ex203, the camera interface part ex303, and the image coding part ex312 among the structures shown in FIG. 37, for example. It may also be considered as a computer ex111, a television (receiver) ex401, or the like.

또한, 상기 휴대 전화(ex114) 등의 단말은 부호화기·복호화기를 양쪽 모두 가지는 송수신형의 단말 이외에, 부호화기만의 송신 단말, 복호화기만의 수신 단말의 3가지로 설치형식을 생각할 수 있다. In addition, the terminal such as the mobile phone ex114 can be conceived of three types of installation, in addition to a transmitting / receiving terminal having both an encoder and a decoder, a transmitting terminal only for an encoder and a receiving terminal for a decoder only.

이와 같이, 상기 실시의 형태에서 도시한 화상 부호화 방법 혹은 화상 복호화 방법을 상술한 것 중 어떠한 기기·시스템에 이용하는 것이 가능하고, 그렇게 함으로써, 상기 실시의 형태에서 설명한 효과를 얻을 수 있다. In this manner, the picture coding method or the picture decoding method shown in the above embodiment can be used for any of the above-described devices and systems, and thereby the effects described in the above embodiments can be obtained.

본 발명은 이러한 상기 실시의 형태에 한정되는 것이 아니라, 본 발명의 범 위를 일탈하지 않고 다양한 변형 또는 수정이 가능하다. The present invention is not limited to the above embodiment, and various modifications or changes are possible without departing from the scope of the present invention.

본 발명에 관한 화상 부호화 장치는 통신 기능을 구비하는 퍼스널 컴퓨터, PDA, 디지털 방송의 방송국 및 휴대 전화기 등에 구비되는 화상 부호화 장치로서 유용하다. The picture coding apparatus according to the present invention is useful as a picture coding apparatus provided in a personal computer having a communication function, a PDA, a broadcasting station for digital broadcasting, a mobile phone, and the like.

또한, 본 발명에 관한 화상 복호화 장치는 통신 기능을 구비하는 퍼스널 컴퓨터, PDA, 디지털 방송을 수신하는 STB 및 휴대 전화기 등에 구비되는 화상 복호화 장치로서 유용하다. The picture decoding apparatus according to the present invention is also useful as a picture decoding apparatus included in a personal computer having a communication function, a PDA, an STB for receiving digital broadcasting, a mobile phone, and the like.

도 1(a)은 메모리에 보존된 다수의 참조 화상으로부터 선택한 화상을 참조하여 부호화하는 화상 부호화의 설명도이고, 도 1(b)는 화상이 보존되는 메모리의 구성을 도시하는 구성도이다. Fig.1 (a) is explanatory drawing of the image coding which encodes with reference to the image selected from the many reference image stored in the memory, and Fig.1 (b) is a block diagram which shows the structure of the memory in which an image is saved.

도 2(a)는 종래의 화상 부호화 방법을 도시하는 플로우 챠트이고, 도 2(b)는 종래의 화상 복호화 방법을 도시하는 플로우 챠트이다. Fig. 2A is a flowchart showing a conventional picture coding method, and Fig. 2B is a flowchart showing a conventional picture decoding method.

도 3(a)은 종래의 화상 부호화 방법을 도시하는 다른 플로우 챠트이고, 도 3(b)은 종래의 화상 복호화 방법을 도시하는 다른 플로우 챠트이다. Fig. 3A is another flow chart showing the conventional picture coding method, and Fig. 3B is another flow chart showing the conventional picture decoding method.

도 4(a)는 종래의 화상 부호화 방법을 도시하는 또 다른 플로우 챠트이고, 도 4(b)는 종래의 화상 복호화 방법을 도시하는 또 다른 플로우 챠트이다. Fig. 4A is another flowchart showing the conventional picture coding method, and Fig. 4B is another flowchart showing the conventional picture decoding method.

도 5는 본 발명의 화상 부호화 장치의 구성을 도시하는 블록도이다. 5 is a block diagram showing the configuration of the picture coding apparatus of the present invention.

도 6은 본 발명의 실시의 형태 1에 있어서의 화상 부호화 방법을 도시하는 플로우 챠트이다.Fig. 6 is a flowchart showing the picture coding method according to the first embodiment of the present invention.

도 7은 본 발명의 화상 복호화 장치의 구성을 도시하는 블록도이다. 7 is a block diagram showing the configuration of the picture decoding apparatus of the present invention.

도 8은 본 발명의 실시의 형태 2에 있어서의 화상 복호화 방법을 도시하는 플로우 챠트이다.8 is a flowchart showing an image decoding method according to the second embodiment of the present invention.

도 9는 본 발명의 실시의 형태 3에 있어서의 화상 부호화 방법을 도시하는 플로우 챠트이다. Fig. 9 is a flowchart showing the picture coding method according to the third embodiment of the present invention.

도 10은 본 발명의 실시의 형태 4에 있어서의 화상 복호화 방법을 도시하는 플로우 챠트이다. 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 the picture coding method according to the fifth embodiment of the present invention.

도 12는 본 발명의 실시의 형태 6에 있어서의 화상 부호화 방법을 도시하는 플로우 챠트이다. Fig. 12 is a flowchart showing the picture coding method according to the sixth embodiment of the present invention.

도 13은 본 발명의 실시의 형태 7에 있어서의 화상 부호화 방법을 도시하는 플로우 챠트이다. Fig. 13 is a flowchart showing the picture coding method according to the seventh embodiment of the present invention.

도 14(a)는 화상의 픽쳐 번호와 보존 픽쳐 번호와 전송 순서의 관계를 도시하는 설명도이고, 도 14(b)는 다코드하는 픽쳐 번호와 보존되어 있는 픽쳐 번호와 삭제되는 픽쳐 번호와의 관계를 도시하는 관계도이고, 도 14(c)는 디코드하는 픽쳐 번호와 보존되어 있는 픽쳐 번호와 삭제되는 픽쳐 번호와의 다른 관계를 도시하는 관계도이다. Fig. 14A is an explanatory diagram showing a relationship between a picture number, a stored picture number, and a transmission order of an image, and Fig. 14B shows a picture number to be coded, a stored picture number, and a picture number to be deleted. Fig. 14 (c) is a relationship diagram showing another relationship between a picture number to be decoded, a stored picture number and a picture number to be deleted.

도 15는 본 발명에 있어서의 메모리 관리정보의 코맨드를 도시하는 대응도이다. Fig. 15 is a corresponding diagram showing a command of memory management information in the present invention.

도 16은 본 발명의 실시의 형태 8에 있어서의 코맨드 실행순서를 도시하는 플로우 챠트이다. Fig. 16 is a flowchart showing the command execution procedure in the eighth embodiment of the present invention.

도 17은 각 픽쳐의 부호화 신호에 있어서의 헤더 정보와 프레임 데이터와의 관계를 도시하는 모식도이다. 17 is a schematic diagram illustrating a relationship between header information and frame data in the coded signal of each picture.

도 18은 부호화 신호의 헤더 정보에 있어서의 메모리 관리정보의 코맨드를 도시하는 모식도이다. 18 is a schematic diagram showing a command of memory management information in header information of an encoded signal.

도 19는 각 화상의 픽쳐 번호와 보존 픽쳐 번호와 전송 순서의 관계를 도시 하는 설명도이다. 19 is an explanatory diagram showing a relationship between a picture number, a stored picture number, and a transmission order of each image.

도 20은 초기화 코맨드를 부호화하는 방법을 도시하는 플로우 챠트이다. 20 is a flowchart showing a method of encoding an initialization command.

도 21은 부호화된 초기화 코맨드를 복호하는 방법을 도시하는 플로우 챠트이다.21 is a flowchart showing a method of decoding an encoded initialization command.

도 22는 본 발명의 실시의 형태 8에 이용하는 메모리 관리정보의 코맨드를 도시하는 대응도이다. Fig. 22 is a correspondence diagram showing a command 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 flowchart showing a method of decoding the encoded initialization retransmission command in the present invention.

도 25는 각 화상의 픽쳐 번호와 보존 픽쳐 번호와 전송 순서의 다른 관계를 도시하는 설명도이다. 25 is an explanatory diagram showing another relationship between a picture number, a stored picture number, and a transmission order of each image.

도 26은 본 발명의 실시의 형태 9에서 이용하는 메모리 관리 정보의 코맨드를 도시하는 대응도이다. Fig. 26 is a correspondence diagram showing a command of memory management information used in Embodiment 9 of the present invention.

도 27은 본 발명의 실시의 형태 9에 있어서의 화상 부호화 방법을 도시하는 플로우 챠트이다. Fig. 27 is a flowchart showing the picture coding method according to the ninth embodiment of the present invention.

도 28은 본 발명의 실시의 형태 9에 있어서의 화상 복호화 방법을 도시하는 플로우 챠트이다.Fig. 28 is a flowchart showing the image decoding method in the ninth embodiment of the present invention.

도 29(a)는 코맨드의 내용과 부가 정보를 도시하는 대응도이고, 도 29(b)는 코맨드의 실행 타이밍을 도시하는 대응도이다. FIG. 29A is a correspondence diagram showing the contents of the command and the additional information, and FIG. 29B is a correspondence diagram showing the execution timing of the command.

도 30은 부호화 신호의 헤더 정보에 있어서의 메모리 관리정보의 코맨드를 도시하는 모식도이다. 30 is a schematic diagram showing a command of memory management information in header information of an encoded signal.

도 31은 다른 부호화 신호의 헤더 정보에 있어서의 메모리 관리정보의 코맨드를 도시하는 모식도이다. FIG. 31 is a schematic diagram showing a command of memory management information in header information of another coded signal. FIG.

도 32는 슬라이스 단위로 부호화한 데이터 스트림 구조를 도시하는 모식도이다. 32 is a schematic diagram illustrating a data stream structure encoded in slice units.

도 33(a)(b) 모두 슬라이스 단위로 부호화한 데이터 스트림 구조를 도시하는 모식도이다. 33A and 33B are schematic diagrams showing a data stream structure coded in slice units.

도 34(a)(b)(c)는 모두 본 발명의 실시의 형태 1로부터 실시의 형태 10의 화상 부호화 방법 및 화상 복호화 방법을 컴퓨터 시스템에 의해 실현하기 위한 프로그램을 격납하기 위한 기억 매체에 대한 설명도이다. 34 (a), (b), and (c) all show a storage medium for storing a program for realizing, by a computer system, the picture coding method and the picture decoding method of the first to the tenth embodiments of the present invention. It is explanatory drawing.

도 35는 본 발명에 관한 화상 부호화 방법 및 화상 복호화 방법이 이용되는 컴퓨터 공급 시스템의 전체 구성을 도시하는 블록도이다. 35 is a block diagram showing an overall configuration of a computer supply system in which the picture coding method and the picture decoding method according to the present invention are used.

도 36은 본 발명에 관한 화상 부호화 방법 및 화상 복호화 방법이 이용되는 휴대 전화의 일례를 도시하는 외관도이다. 36 is an external view showing an example of a mobile telephone in which the picture coding method and the picture decoding method according to the present invention are used.

도 37은 동 휴대 전화의 구성을 도시하는 블록도이다. 37 is a block diagram showing the structure of the mobile telephone.

도 38은 본 발명에 관한 화상 부호화 방법 및 화상 복호화 방법이 이용되는 디지털 방송용 시스템의 구성을 도시하는 구성도이다. 38 is a block diagram showing the configuration of a system for digital broadcasting in which the picture coding method and the picture decoding method according to the present invention are used.

Claims (6)

음성신호를 부호화한 음성 데이터와, 복호된 픽쳐를 참조 픽쳐로서 유지하는 메모리를 관리하는 메모리 관리 정보를 부호화한 정보와, 부호화 픽쳐를 포함하는 데이터 스트림을 생성하는 데이터 스트림 생성 방법으로서,A data stream generation method for generating a data stream comprising encoded audio data, encoded information of memory management information for managing a memory holding a decoded picture as a reference picture, and an encoded picture, 부호화 대상 픽쳐를 부호화하는 제1의 부호화 단계와,A first encoding step of encoding a picture to be encoded, 메모리 관리 정보를, 상기 부호화된 부호화 대상 픽쳐에 부수시켜 부호화하는 제2의 부호화 단계와,A second encoding step of attaching and encoding memory management information to the encoded encoding target picture; 상기 부호화 대상 픽쳐보다, 복호 순서가 뒤인 I픽쳐, 또는, P픽쳐를 부호화하는 제3의 부호화 단계와,A third encoding step of encoding the I picture or the P picture whose decoding order is later than the picture to be encoded; 상기 메모리 관리 정보를 다시, 상기 I픽쳐, 또는, P픽쳐에 부수시켜 부호화하는 제4의 부호화 단계와,A fourth encoding step of appending the memory management information to the I picture or the P picture and encoding the same; 음성신호를 부호화하는 제5의 부호화 단계를 가지는 것을 특징으로 하는 데이터 스트림 생성 방법. And a fifth encoding step of encoding the audio signal. 음성신호를 부호화한 음성데이터와, 복호된 픽쳐를 참조 픽쳐로서 유지하는 메모리를 관리하는 메모리 관리 정보를 부호화한 정보와, 부호화 픽쳐를 포함하는 데이터 스트림을 생성하는 데이터 스트림 생성 장치로서,A data stream generating device for generating a data stream comprising encoded audio data, encoded information of memory management information for managing a memory for holding a decoded picture as a reference picture, and an encoded picture. 부호화 대상 픽쳐를 부호화하는 제1의 부호화 수단과,First encoding means for encoding a picture to be encoded, 메모리 관리 정보를, 상기 부호화된 부호화 대상 픽쳐에 부수시켜 부호화하는 제2의 부호화 수단과,Second encoding means for appending and encoding memory management information to the encoded encoding target picture; 상기 부호화 대상 픽쳐보다, 복호 순서가 뒤인 I픽쳐, 또는, P픽쳐를 부호화하는 제3의 부호화 수단과,Third encoding means for encoding an I picture or a P picture having a decoding order after the encoding target picture; 상기 메모리 관리 정보를 다시, 상기 I픽쳐, 또는, P픽쳐에 부수시켜 부호화하는 제4의 부호화 수단과,Fourth encoding means for appending the memory management information to the I picture or the P picture and encoding the same; 음성신호를 부호화하는 제5의 부호화 수단을 구비하는 것을 특징으로 하는 데이터 스트림 생성 장치.And fifth encoding means for encoding the audio signal. 청구항 1에 기재된 데이터 스트림 생성 방법에 의해 생성된 데이터 스트림을 복호하는 데이터 스트림 복호화 방법으로서,A data stream decoding method for decoding a data stream generated by the data stream generating method according to claim 1, 상기 음성데이터를 복호하는 음성복호화 단계와,A voice decoding step of decoding the voice data; 부호화된 상기 메모리 관리 정보를 복호하는 메모리 관리 정보 복호 단계와,A memory management information decoding step of decoding the encoded memory management information; 복호화 대상 픽쳐를 복호하는 픽쳐 복호 단계와,A picture decoding step of decoding the decoded picture; 상기 메모리 관리 정보에 기초하여, 메모리에 보존되어 있는 참조 픽쳐를 관리하는 관리 단계를 포함하고,A management step of managing a reference picture stored in a memory based on the memory management information, 상기 복호화 대상 픽쳐보다, 복호 순서가 뒤인 I픽쳐, 또는, P픽쳐를 복호하는 경우에,When decoding an I picture or a P picture whose decoding order is later than the picture to be decoded, 상기 메모리 관리 정보 복호 단계에서, 상기 복호화 대상 픽쳐에 부수시켜 부호화되어 있던 메모리 관리 정보와 동일한 내용의 메모리 관리 정보를 복호하고,In the memory management information decoding step, the memory management information having the same content as the memory management information that is accompanied by the decoding target picture and encoded is decoded. 상기 픽쳐 복호 단계에서, 상기 I픽쳐, 또는, P픽쳐를 복호하고,In the picture decoding step, the I picture or the P picture is decoded. 상기 관리 단계에서, 상기 메모리 관리 정보에 기초하여, 메모리에 보존되어 있는 참조 픽쳐를 관리하는 것을 특징으로 하는 데이터 스트림 복호화 방법.And in said managing step, managing reference pictures stored in a memory based on said memory management information. 청구항 2에 기재된 데이터 스트림 생성 장치에 의해 생성된 데이터 스트림을 복호하는 데이터 스트림 복호화 장치로서,A data stream decoding device for decoding a data stream generated by the data stream generating device according to claim 2, 상기 음성 데이터를 복호하는 음성 복호화 수단과,Speech decoding means for decoding the speech data; 부호화된 상기 메모리 관리 정보를 복호하는 메모리 관리 정보 복호 수단과,Memory management information decoding means for decoding the encoded memory management information; 복호화 대상 픽쳐를 복호하는 픽쳐 복호 수단과,Picture decoding means for decoding the picture to be decoded; 상기 메모리 관리 정보에 기초하여, 메모리에 보존되어 있는 참조 픽쳐를 관리하는 관리 수단을 구비하고,Management means for managing a reference picture stored in the memory based on the memory management information; 상기 복호화 대상 픽쳐보다, 복호 순서가 뒤인 I픽쳐, 또는, P픽쳐를 복호하는 경우에,When decoding an I picture or a P picture whose decoding order is later than the picture to be decoded, 상기 메모리 관리 정보 복호 수단에서, 상기 복호화 대상 픽쳐에 부수시켜 부호화되어 있던 메모리 관리 정보와 동일한 내용의 메모리 관리 정보를 복호하고,The memory management information decoding means decodes memory management information having the same content as that of the memory management information that has been encoded with the decoding target picture; 상기 픽쳐 복호 수단에서, 상기 I픽쳐, 또는, P픽쳐를 복호하고,The picture decoding means decodes the I picture or the P picture, 상기 관리 수단에서, 상기 메모리 관리 정보에 기초하여, 메모리에 보존되어 있는 참조 픽쳐를 관리하는 것을 특징으로 하는 데이터 스트림 복호화 장치.And said management means manages the reference pictures stored in the memory based on the memory management information. 음성 신호를 부호화한 음성 데이터와, 복호된 픽쳐를 참조 픽쳐로서 유지하는 메모리를 관리하는 메모리 관리 정보를 부호화한 정보와, 부호화 픽쳐를 포함하는 데이터 스트림을 기록 매체에 기록하는 기록 방법으로서,    A recording method for recording a data stream comprising encoded audio data, encoded information of memory management information for managing a memory for holding a decoded picture as a reference picture, and a data stream including the encoded picture, the recording medium comprising: 부호화 대상 픽쳐를 부호화하는 제1의 부호화 단계와,   A first encoding step of encoding a picture to be encoded, 메모리 관리 정보를, 상기 부호화된 부호화 대상 픽쳐에 부수시켜 부호화하는 제2의 부호화 단계와,   A second encoding step of attaching and encoding memory management information to the encoded encoding target picture; 상기 부호화 대상 픽쳐보다, 복호 순서가 뒤인 I픽쳐, 또는, P픽쳐를 부호화하는 제3의 부호화 단계와,   A third encoding step of encoding the I picture or the P picture whose decoding order is later than the picture to be encoded; 상기 메모리 관리 정보를 다시, 상기 I픽쳐, 또는, P픽쳐에 부수시켜 부호화하는 제4의 부호화 단계와,   A fourth encoding step of appending the memory management information to the I picture or the P picture and encoding the same; 음성 신호를 부호화하는 제5의 부호화 단계와,    A fifth encoding step of encoding the speech signal, 상기 제1 내지 제5의 부호화 단계에 의해 생성된 데이터 스트림을 기록 매체에 기록하는 기록 단계를 가지는 것을 특징으로 하는 기록 방법.   And a recording step of recording the data stream generated by the first to fifth encoding steps on a recording medium. 음성 신호를 부호화한 음성 데이터와, 복호된 픽쳐를 참조 픽쳐로서 유지하는 메모리를 관리하는 메모리 관리 정보를 부호화한 정보와, 부호화 픽쳐를 포함하는 데이터 스트림을 기록 매체에 기록하는 기록 장치로서,A recording apparatus for recording a data stream including encoded audio data, encoded information of memory management information for managing a memory for holding a decoded picture as a reference picture, and a data stream including the encoded picture, comprising: 부호화 대상 픽쳐를 부호화하는 제1의 부호화 수단과,First encoding means for encoding a picture to be encoded, 메모리 관리 정보를, 상기 부호화된 부호화 대상 픽쳐에 부수시켜 부호화하는 제2의 부호화 수단과,Second encoding means for appending and encoding memory management information to the encoded encoding target picture; 상기 부호화 대상 픽쳐보다, 복호 순서가 뒤인 I픽쳐, 또는, P픽쳐를 부호화하는 제3의 부호화 수단과,Third encoding means for encoding an I picture or a P picture having a decoding order after the encoding target picture; 상기 메모리 관리 정보를 다시, 상기 I픽쳐, 또는, P픽쳐에 부수시켜 부호화하는 제4의 부호화 수단과,Fourth encoding means for appending the memory management information to the I picture or the P picture and encoding the same; 음성 신호를 부호화하는 제5의 부호화 수단과,Fifth encoding means for encoding an audio signal, 상기 제1 내지 제5의 부호화 수단에 의해 생성된 데이터 스트림을 기록 매체에 기록하는 기록 수단을 구비하는 것을 특징으로 하는 기록 장치.And recording means for recording the data stream generated by the first to fifth encoding means on a recording medium.
KR1020097018213A 2002-04-12 2003-04-10 Video encoding method and video decoding method KR100962814B1 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
JPJP-P-2002-110424 2002-04-12
US37765602P 2002-05-06 2002-05-06
US60/377,656 2002-05-06
JPJP-P-2002-190955 2002-06-28
JPJP-P-2003-049711 2003-02-26
JP0388677 2003-04-10

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR20037013055A Division KR100942344B1 (en) 2002-04-12 2003-04-10 Video encoding method and video decoding method

Publications (2)

Publication Number Publication Date
KR20090110927A KR20090110927A (en) 2009-10-23
KR100962814B1 true KR100962814B1 (en) 2010-06-10

Family

ID=41553902

Family Applications (5)

Application Number Title Priority Date Filing Date
KR1020097018215A KR100962813B1 (en) 2002-04-12 2003-04-10 Video encoding method and video decoding method
KR1020097018216A KR100995434B1 (en) 2002-04-12 2003-04-10 Video encoding method and video decoding method
KR1020097018214A KR100962815B1 (en) 2002-04-12 2003-04-10 Video encoding method and video decoding method
KR1020097018213A KR100962814B1 (en) 2002-04-12 2003-04-10 Video encoding method and video decoding method
KR1020097018217A KR100993388B1 (en) 2002-04-12 2003-04-10 Video encoding method and video decoding method

Family Applications Before (3)

Application Number Title Priority Date Filing Date
KR1020097018215A KR100962813B1 (en) 2002-04-12 2003-04-10 Video encoding method and video decoding method
KR1020097018216A KR100995434B1 (en) 2002-04-12 2003-04-10 Video encoding method and video decoding method
KR1020097018214A KR100962815B1 (en) 2002-04-12 2003-04-10 Video encoding method and video decoding method

Family Applications After (1)

Application Number Title Priority Date Filing Date
KR1020097018217A KR100993388B1 (en) 2002-04-12 2003-04-10 Video encoding method and video decoding method

Country Status (1)

Country Link
KR (5) KR100962813B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
KR100993388B1 (en) 2010-11-10
KR100962815B1 (en) 2010-06-10
KR20090112743A (en) 2009-10-28
KR20090110927A (en) 2009-10-23
KR20090111866A (en) 2009-10-27
KR100995434B1 (en) 2010-11-18
KR20090110364A (en) 2009-10-21
KR20090110365A (en) 2009-10-21
KR100962813B1 (en) 2010-06-10

Similar Documents

Publication Publication Date Title
KR100985634B1 (en) Video encoding method and video decoding method
JP5256243B2 (en) Image decoding method, image decoding apparatus and program
KR100962814B1 (en) Video encoding method and video decoding method
JP2004289808A (en) Image coding method and image decoding method
JP5530408B2 (en) Image encoding method, image encoding apparatus, and recording medium
BRPI0318797B1 (en) Image coding method and apparatus

Legal Events

Date Code Title Description
A107 Divisional application of patent
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20130520

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20140522

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20150430

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20160517

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20170522

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20180529

Year of fee payment: 9