JP2000261812A - Image coder and decoder - Google Patents

Image coder and decoder

Info

Publication number
JP2000261812A
JP2000261812A JP6594999A JP6594999A JP2000261812A JP 2000261812 A JP2000261812 A JP 2000261812A JP 6594999 A JP6594999 A JP 6594999A JP 6594999 A JP6594999 A JP 6594999A JP 2000261812 A JP2000261812 A JP 2000261812A
Authority
JP
Japan
Prior art keywords
encoding
coding
decoding
image
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6594999A
Other languages
Japanese (ja)
Inventor
Shinji Shishido
信次 宍戸
Shunichi Kimura
俊一 木村
Kenichi Kawachi
賢一 河内
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP6594999A priority Critical patent/JP2000261812A/en
Publication of JP2000261812A publication Critical patent/JP2000261812A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent a throughput from being lowered even when a coding method encoding a picture through the use of code information of a just preceding block or other coding method is selected. SOLUTION: A block processing means 1 segments a block picture 8 being a coding object from input picture data 7 and outputs the result. A coding changeover means 2 selects a reversible coding means 3 or an irreversible coding means 5 adaptively and outputs changeover identification information 10 to a code data multiplexer means 6. A coding dependence information calculation means 4 calculates coding dependence information 12 required for coding by the reversible coding means 3 or the irreversible coding means 5 and outputs the information 12 to the code data multiplexer means 6. The code data multiplexer means 6 multiplexes the coding system identification information 10, the coding dependence information 12, reversible code data 11 or irreversible code data 13 to configure output code data 14.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像データの特性
に応じて符号化方式を切り換える画像符号化装置および
復号装置に関し、とくに、PDL(ページ記述言語)画
像データに適した符号化方式と自然画像データに適した
画像符号化方式とを切り換え、しかも切り換えに伴う符
号化効率の低下を抑えるようにしたものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image encoding apparatus and a decoding apparatus for switching an encoding method according to the characteristics of image data, and more particularly to an encoding method suitable for PDL (page description language) image data and a decoding method. This is to switch between an image encoding method suitable for image data and to suppress a decrease in encoding efficiency due to the switching.

【0002】[0002]

【従来の技術】(1)PDL画像向け可逆符号化方式 特開平9−224253号公報は、複数の予測符号化ユ
ニット(例えば描画方向を予測する)を設け、予測が注
目画素に一致した予測符号化ユニットの識別子を符号デ
ータとして出力する技術を開示している。この画像符号
化技術(描画方向予測符号化方式)は、オペイク・モデ
ルで記述されたPDL画像では同一画素値が連続する確
率が極めて高いことを利用して、PDL画像を効率よく
可逆符号化する。しかし、自然画像は同一画素値が連続
し難いため、自然画像を効率よく符号化できない。
2. Description of the Related Art (1) Reversible coding method for PDL images JP-A-9-224253 discloses a method in which a plurality of predictive coding units (for example, for predicting a drawing direction) are provided, and a predictive code whose prediction matches a target pixel is provided. A technique for outputting an identifier of a conversion unit as code data is disclosed. This image coding technology (drawing direction prediction coding method) efficiently losslessly codes a PDL image described in an opaque model by utilizing the fact that the probability of the same pixel value continuing is extremely high. . However, since the same pixel value is hardly continuous in the natural image, the natural image cannot be efficiently encoded.

【0003】(2)自然画像向け非可逆符号化方式 JPEG(Joint photographic C
oding Experts Group)において標
準化されたJPEGベースライン(Baseline)
符号化方式(以下、単にJPEG方式とよぶ)は、自然
画像を効率よく符号化する。JPEG方式は、ディジタ
ル化された入力画像データを離散コサイン変換(以下、
DCT変換)し、変換後の係数(以下、DCT係数)を
量子化して量子化インデックスを作成し、量子化インデ
ックスをエントロピー符号化することによって画像デー
タを符号化する。一般に自然画像は低周波数成分の電力
が大きく、高周波数成分の電力が小さい。一方、PDL
画像は自然画像に比べて高周波数成分の電力が大きいた
め、JPEG方式でPDL画像を符号化するとエッジが
劣化する。劣化を小さくするためにはDCT係数の量子
化レベルを細かくして冗長成分の除去を少なくすればよ
いが、符号化効率は低下する。
(2) Lossy coding method for natural images JPEG (Joint photographic C)
JPEG Baseline (Baseline) standardized in the Oding Experts Group
The encoding method (hereinafter, simply referred to as JPEG method) efficiently encodes a natural image. The JPEG method uses a discrete cosine transform (hereinafter, referred to as digital cosine transform) of digitized input image data.
DCT transformation), quantizes the transformed coefficient (hereinafter, DCT coefficient) to create a quantization index, and encodes the image data by entropy-encoding the quantization index. In general, the power of a low frequency component is large and the power of a high frequency component is small in a natural image. On the other hand, PDL
Since an image has higher power of high-frequency components than a natural image, encoding a PDL image by the JPEG method deteriorates edges. In order to reduce the deterioration, the quantization level of the DCT coefficient may be reduced to reduce the removal of the redundant component, but the coding efficiency is reduced.

【0004】(3)PDL/自然混在画像向け符号化方
式 PDL画像と自然画像が混在する画像を符号化する場合
は、上記2つの方式を組み合せばよい。例えば、特開平
7−212601号公報のように、マトリクス単位で処
理可能な2つ以上の符号化方式を有し、符号化単位毎に
画像に適した符号化方式を適用する従来例がある。
(3) Encoding method for PDL / natural mixed image When encoding an image in which a PDL image and a natural image are mixed, the above two methods may be combined. For example, as in JP-A-7-212601, there is a conventional example in which there are two or more encoding systems that can be processed in matrix units, and an encoding system suitable for an image is applied for each encoding unit.

【0005】(4)符号化切り換え方式 図18を用いて、符号化単位毎に符号化方式を切り換え
る従来例を説明する。図18において、入力信号は変倍
部1701において変倍処理が施され、次に像域分離部
1702において、文字情報のように輝度変化の大きい
部分(文字部)と写真のように輝度変化の小さい部分
(写真部)に分離される。分離された結果は判定信号と
して出力される。文字部のデータは補間部1703を介
して2値化部1704に送られ、この2値化部1704
において2値化され、圧縮部(A)1705で可逆符号
化される。また、写真部のデータは中間調処理部170
6において誤差拡散方などの疑似中間調処理により処理
された後、圧縮部(B)1707でマトリクスを用いた
JPEG方式などの圧縮処理が施される。注目マトリク
スが写真部と判定されると右に隣接するマトリクスを次
の注目マトリクスとする。JPEG方式では8×8画素
のブロックをマトリクスとする。各ブロックの8×8個
の画素データは、2次元DCT変換により8×8個のD
CT係数に変換され、64個のDCT係数は各係数ごと
に量子化ステップサイズを定めた量子化テーブルを用い
て、係数ごとに異なるステップサイズで量子化される。
量子化されたDCT係数の直流成分(以下、DC係数)
は直前に符号化したブロックとのDC係数の差分が求め
られ、DC差分がグループ化される。このグループ化に
よりDC差分はグループ番号とDC差分値を示す付加ビ
ットに分けられ、グループ番号はハフマン符号化、DC
差分は算術符号化によって符号化される。DCT係数の
交流成分(以下、AC係数)はジグザグスキャンによっ
て1次元に並び直され、連続する0の係数はランレング
ス符号化、0以外のAC係数はグループ化されてハフマ
ン符号化される。
(4) Coding switching method A conventional example of switching the coding method for each coding unit will be described with reference to FIG. In FIG. 18, an input signal is subjected to a scaling process in a scaling unit 1701, and then, in an image area separation unit 1702, a portion having a large change in luminance (character portion) such as character information and a portion having a large change in luminance such as a photograph It is separated into small parts (photographs). The separated result is output as a determination signal. The data of the character part is sent to the binarization unit 1704 via the interpolation unit 1703, and the binarization unit 1704
, And losslessly encoded by the compression unit (A) 1705. Further, the data of the photograph part is stored in the halftone processing part 170.
After being processed by pseudo halftone processing such as an error diffusion method in 6, the compression unit (B) 1707 performs compression processing such as JPEG using a matrix. When the attention matrix is determined to be a photograph portion, the matrix adjacent to the right is set as the next attention matrix. In the JPEG system, a block of 8 × 8 pixels is used as a matrix. The 8 × 8 pixel data of each block is converted into 8 × 8 D data by two-dimensional DCT.
The DCT coefficients are converted into CT coefficients, and the 64 DCT coefficients are quantized with a different step size for each coefficient by using a quantization table that defines a quantization step size for each coefficient.
DC component of quantized DCT coefficient (hereinafter, DC coefficient)
Is obtained by calculating the difference between the DC coefficient and the immediately preceding block, and the DC differences are grouped. By this grouping, the DC difference is divided into a group number and an additional bit indicating a DC difference value.
The difference is encoded by arithmetic coding. AC components of DCT coefficients (hereinafter, AC coefficients) are rearranged one-dimensionally by zigzag scanning. Coefficients of continuous 0 are run-length encoded, and AC coefficients other than 0 are grouped and Huffman encoded.

【0006】判定信号は圧縮部(C)1708に送られ
圧縮される。
[0006] The decision signal is sent to a compression section (C) 1708 and compressed.

【0007】圧縮部(A)1705、圧縮部(B)17
07、圧縮部(C)1708で圧縮されたデータは記憶
部1709に記憶される。
The compression section (A) 1705 and the compression section (B) 17
07, the data compressed by the compression unit (C) 1708 is stored in the storage unit 1709.

【0008】記憶部1709に記憶されたデータは画像
のプリント処理等のために読み出され復号される。すな
わち、圧縮部(A)1705、圧縮部(B)1707、
圧縮部(C)1708にそれぞれ対応した伸張部(A)
1710、伸張部(B)1711、伸張部(C)171
2を用いてデータを復号し、この後、合成部1713で
合成して元の画像とする。
[0008] The data stored in the storage unit 1709 is read and decoded for image print processing and the like. That is, the compression unit (A) 1705, the compression unit (B) 1707,
Expansion unit (A) corresponding to compression unit (C) 1708
1710, extension part (B) 1711, extension part (C) 171
2, the data is decoded, and then the image is synthesized by the synthesizing unit 1713 to obtain the original image.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、直前ブ
ロックの符号化情報に依存するJPEG方式のような符
号化方式と他の符号化方式とを切り換えて符号データを
構成する場合、符号化対象ブロックと直前ブロックとが
異なる符号化方式で符号化されていると、符号化依存情
報として適切な値を参照できず、符号化効率の低下を招
くという問題がある。
However, when the coding data is configured by switching between a coding method such as the JPEG method depending on the coding information of the immediately preceding block and another coding method, the coding target block is If the immediately preceding block is encoded by a different encoding method, an appropriate value cannot be referred to as the encoding-dependent information, which causes a problem of lowering the encoding efficiency.

【0010】図15から図17を用いて、JPEG方式
と可逆符号化方式の切り換えにおける符号化効率の低下
を説明する。図15は、連続する3つのブロックをJP
EG方式で符号化する場合のDC係数の例である。図1
6と図17は、JPEG方式と可逆符号化方式を切り換
えて符号化する符号化において、符号化切換え時にDC
係数を固定値とする例である。図15から図17におい
て、#はブロックの番号を示す。例えば、#Nブロック
はN番目の符号化対象ブロックである。図16と図17
は、#N−1ブロックはJPEG方式で符号化して、#
Nブロックは可逆符号化に切り換えて符号化し、さら
に、#N+1ブロックでJPEG方式に切り換えて符号
化する。図16はDC係数の固定値を0とする例、図1
7はDC係数の固定値を255とする例である。
Referring to FIGS. 15 to 17, a description will be given of a decrease in coding efficiency when switching between the JPEG method and the lossless coding method. FIG. 15 shows three consecutive blocks as JP
It is an example of a DC coefficient in the case of encoding by the EG method. FIG.
6 and FIG. 17 are diagrams showing coding in which switching is performed between the JPEG method and the lossless coding method, and the DC
This is an example in which the coefficient is a fixed value. In FIGS. 15 to 17, # indicates a block number. For example, the #N block is the N-th block to be encoded. 16 and 17
Is that the # N-1 block is encoded by the JPEG method,
The N blocks are switched to lossless encoding and encoded, and the # N + 1 blocks are switched to JPEG and encoded. FIG. 16 shows an example in which the fixed value of the DC coefficient is 0, FIG.
7 is an example in which the fixed value of the DC coefficient is 255.

【0011】図15に示すように3つのブロックをJP
EG方式で符号化する場合、それぞれのブロック間にお
けるDC差分は、#N−1ブロックと#Nブロックで
は、60−54=6、#Nブロックと#N+1ブロック
では、102−60=42となる。従って、DC係数の
符号化における図11のDC差分のグループ化表によ
り、#N−1ブロックと#NブロックのDC差分は、グ
ループ番号3でグループ化されて3ビットの付加ビット
が付加される。また、#Nブロックと#N+1ブロック
のDC差分は、グループ番号6でグループ化され付加ビ
ットは6ビットとなる。従って、この3つのブロックに
おけるDC係数の符号化では、3+6=9ビットが付加
される。
[0011] As shown in FIG.
When coding by the EG method, the DC difference between the respective blocks is 60−54 = 6 for the # N−1 block and the #N block, and is 102−60 = 42 for the #N block and the # N + 1 block. . Therefore, according to the DC difference grouping table of FIG. 11 in the coding of the DC coefficient, the DC differences between the # N-1 block and the #N block are grouped by the group number 3 and three additional bits are added. . The DC difference between the #N block and the # N + 1 block is grouped by a group number 6, and the additional bits are 6 bits. Accordingly, 3 + 6 = 9 bits are added in the coding of the DC coefficient in these three blocks.

【0012】これに対して、図16のように符号化切換
え時のDC値として固定値0を使用する場合、それぞれ
のブロック間でDC差分は、#N−1ブロックと#Nブ
ロックでは、0−54=−54、#Nブロックと#N+
1ブロックでは、102−0=102となる。図11の
DC差分のグループ化表により、#N−1ブロックと#
NブロックのDC差分はグループ番号6でグループ化さ
れて6ビットの付加ビットが付加される。また、#Nブ
ロックと#N+1ブロックのDC差分はグループ番号7
となり付加ビットは7ビットとなる。従って、この3つ
のブロックにおけるDC係数の符号化では、6+7=1
3ビットが付加される。従って、図15の符号化を切り
換えない場合に対して、符号化を切り換える図16の例
では、13−9=4ビット分だけ付加ビットが多くな
る。
On the other hand, when a fixed value 0 is used as a DC value at the time of coding switching as shown in FIG. 16, the DC difference between the blocks is 0 for the # N-1 block and the #N block. −54 = −54, #N block and # N +
In one block, 102-0 = 102. According to the DC difference grouping table of FIG.
The DC differences of the N blocks are grouped by a group number 6, and 6 additional bits are added. The DC difference between the #N block and the # N + 1 block is the group number 7
And the additional bits are 7 bits. Therefore, in the coding of the DC coefficient in these three blocks, 6 + 7 = 1
Three bits are added. Therefore, in the example of FIG. 16 in which the coding is switched, the additional bits are increased by 13−9 = 4 bits in contrast to the case of not switching the coding in FIG.

【0013】また、図17のように符号化切換え時のD
C値として固定値を255とした場合は、#N−1ブロ
ックと#Nブロックでは、255−54=201、#N
ブロックと#N+1ブロックでは、102−255=−
153となる。従って、#N−1ブロックと#Nブロッ
クのDC差分はグループ番号8でグループ化され付加ビ
ットは8ビットとなる、また、#Nブロックと#N+1
ブロックのDC差分は、グループ番号8で付加ビット8
となる。従って、この3つのブロックにおけるDC係数
の符号化では、8+8=16ビットが付加される。この
符号化を切り換える例では、図15の符号化を切り換え
ない場合に対して、16−9=7ビット分だけ付加ビッ
トが多くなる。
Also, as shown in FIG.
When the fixed value is set to 255 as the C value, 255-54 = 201 and #N for the # N-1 block and the #N block.
For the block and the # N + 1 block, 102-255 =-
153. Accordingly, the DC difference between the # N-1 block and the #N block is grouped by the group number 8, and the additional bits are 8 bits.
The DC difference of the block is represented by group number 8 and additional bits 8
Becomes Accordingly, 8 + 8 = 16 bits are added in the coding of the DC coefficient in these three blocks. In the example in which the coding is switched, the number of additional bits is increased by 16-9 = 7 bits as compared with the case where the coding in FIG. 15 is not switched.

【0014】以上で説明したとおり、ブロック間でDC
値の差分を符号化するJPEG方式のように、符号化情
報が直前ブロックに依存する符号化方式と、他の符号化
方式とを切り換えて符号データを構成する場合、符号化
切り換え時に直前ブロックの符号化情報が参照できなく
なるため、符号化効率が低下する。
As described above, DC between blocks
When coding data is configured by switching between a coding method in which coding information depends on the immediately preceding block and another coding method, such as a JPEG method for coding a difference between values, when coding is switched, Since coding information cannot be referred to, coding efficiency is reduced.

【0015】本発明が解決しようとする課題は、符号化
方式の切り換えにおいて符号化効率が低下しないように
することである。
A problem to be solved by the present invention is to prevent the coding efficiency from being reduced when the coding system is switched.

【0016】[0016]

【課題を解決するための手段】本発明によれば、上述の
課題を解決するために、ブロック単位で符号化を行い、
かつ隣接するブロックの符号同士が依存する第1の符号
化手法と上記第1の符号化手法と異なる第2の符号化手
法とにより入力画像データを出力符号データに変換する
画像符号化装置に、入力画像データをブロックに分割す
るブロック化手段と、上記入力画像データを上記第1の
符号化手法でブロック単位で符号化する第1の符号化手
段と、上記入力画像データを上記第2の符号化手法でブ
ロック単位で符号化する第2の符号化手段と、上記第1
の符号化手段による符号化と上記第2の符号化手段によ
る符号化とを択一的に切り換える符号化切り換え手段
と、上記第1の符号化を行わないときに、上記第1の符
号化手段が符号化に用いる符号化依存情報を生成する手
段と、上記第2の符号化手段が出力した符号と、上記符
号化依存情報とを多重化して出力符号を構成する多重化
手段とを設け、さらに、上記第1の符号化手段が、符号
化を再開したときに上記符号化依存情報を用いて符号化
を行うようにしている。
According to the present invention, in order to solve the above-mentioned problems, encoding is performed in units of blocks,
And an image encoding device that converts input image data into output encoded data by a first encoding method in which codes of adjacent blocks depend on each other and a second encoding method different from the first encoding method. Blocking means for dividing the input image data into blocks; first encoding means for encoding the input image data in block units using the first encoding method; and Second encoding means for encoding in block units by the encoding method,
Encoding switching means for selectively switching between the encoding by the encoding means and the encoding by the second encoding means, and the first encoding means when the first encoding is not performed. Means for generating encoding-dependent information used for encoding, and multiplexing means for multiplexing the code output by the second encoding means and the encoding-dependent information to form an output code, Further, the first encoding means performs the encoding using the encoding-dependent information when the encoding is restarted.

【0017】この構成においては、第1の符号化を行わ
ないときにも、すなわち第2の符号化を行っているとき
にも、第1の符号化の依存情報を生成するようにしてい
るので、第1の符号化が再開されたときにこの依存情報
を用いて効率よく符号化を行える。また、依存情報を第
2の符号とともに復号側に送るので、第1の復号を再開
したときにも確実に復号を行える。
In this configuration, even when the first encoding is not performed, that is, when the second encoding is performed, the dependency information of the first encoding is generated. When the first encoding is restarted, encoding can be performed efficiently using this dependency information. Further, since the dependency information is sent to the decoding side together with the second code, the decoding can be reliably performed even when the first decoding is restarted.

【0018】また、この構成において、上記第1の符号
化手法および上記第2の符号化手法の一を非可逆符号化
手法とし、他方を可逆符号化手法とすることができる。
Further, in this configuration, one of the first encoding method and the second encoding method may be a lossy encoding method, and the other may be a lossless encoding method.

【0019】また、上記第1の符号化手法を、画像デー
タの直流成分の依存性を利用して符号化するものとする
ことができる。また、上記第1の符号化手法をJPEG
ベースライン符号化手法とすることができる。第1の符
号化で自然画像を符号化し、第2の符号化でPDL画像
を符号化するようにしてもよい。
Further, the above-mentioned first encoding method may be such that encoding is performed by utilizing the dependence of the DC component of image data. Further, the first encoding method is JPEG
It can be a baseline coding technique. A natural image may be encoded in the first encoding, and a PDL image may be encoded in the second encoding.

【0020】また、第2の符号化手法もブロック間依存
情報を必要とする場合には、同様に、対応するブロック
間依存情報を、第1の符号化のときに多重化する。
If the second encoding method also requires inter-block dependence information, the corresponding inter-block dependence information is similarly multiplexed at the time of the first encoding.

【0021】また、本発明によれば、上述の課題を解決
するために、出力符号を復号する復号装置に、上記第1
の符号化手段で符号化された符号を復号する第1の復号
手段と、上記第2の符号化手段で符号化された符号を復
号する第2の復号手段と、上記多重化手段で多重化され
た第2の符号化手法の符号と上記第1の符号化手法の符
号化依存情報とを分離する手段と、上記第1の復号手段
で復号して得た画像情報と上記第2の復号手段で復号し
て得た画像情報とを合成する手段とを設け、上記第1の
復号手段による復号が再開されたときに上記符号化依存
情報を利用して上記第1の符号化手法の符号を復号する
ようにしている。
According to the present invention, in order to solve the above-mentioned problems, a decoding device for decoding an output code is provided with the first device.
First decoding means for decoding the code coded by the coding means, second decoding means for decoding the code coded by the second coding means, and multiplexing by the multiplexing means. Means for separating the encoded code of the second encoding technique and the encoding-dependent information of the first encoding technique, image information obtained by decoding by the first decoding means, and the second decoding Means for synthesizing image information obtained by decoding by the means, and a code of the first coding method using the coding dependence information when decoding by the first decoding means is restarted. Is to be decrypted.

【0022】この構成においても、冗長的に送られてき
た符号化依存情報を用いて効率よく復号を行える。
Also in this configuration, decoding can be efficiently performed using the encoding-dependent information sent redundantly.

【0023】[0023]

【発明の実施の形態】以下、本発明を詳細に説明する。
まず、本発明の原理的の構成例について説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail.
First, an example of the principle configuration of the present invention will be described.

【0024】図1は、本発明の画像符号化装置の原理的
な構成例を示しており、この図において、画像符号化装
置はブロック化手段1、符号化切り換え手段2、可逆符
号化3、符号化依存情報算出手段4、非可逆符号化手段
5および符号データ多重化手段6を含んで構成されてい
る。
FIG. 1 shows an example of the basic configuration of an image encoding apparatus according to the present invention. In this figure, the image encoding apparatus comprises a blocking unit 1, an encoding switching unit 2, a lossless encoding 3, It is configured to include an encoding-dependent information calculating unit 4, an irreversible encoding unit 5, and a code data multiplexing unit 6.

【0025】ブロック化手段1は、入力画像データ7を
受け取って、符号化対象のブロック画像8を切り出して
出力するものである。符号化切り換え手段2は、ブロッ
ク画像8を符号化する手段として、可逆符号化手段3、
もしくは、非可逆符号化手段5のいずれかを選択して切
り換え、符号化対象画像9を可逆符号化手段3、非可逆
符号化手段5、符号化依存情報算出手段4に出力し、さ
らに、切り換え識別情報10を符号データ多重化手段6
に出力するものである。
The blocking means 1 receives the input image data 7, cuts out the block image 8 to be coded, and outputs it. The encoding switching means 2 includes a lossless encoding means 3 as means for encoding the block image 8,
Alternatively, any one of the irreversible encoding means 5 is selected and switched, and the encoding target image 9 is output to the lossless encoding means 3, the irreversible encoding means 5, and the encoding-dependent information calculating means 4, and further switched. The identification information 10 is transmitted to the code data multiplexing means 6
Is output to

【0026】可逆符号化手段3は、特開平9−2242
53号公報で提案された描画方向予測符号化方式などに
より、PDL画像を効率よく符号化するものである。符
号化依存情報算出手段4は、可逆符号化手段3、およ
び、非可逆符号化手段5において、符号化に必要な符号
化依存情報12を算出して、符号データ多重化手段6に
出力するものである。非可逆符号化手段5は、JPEG
方式などの自然画像を効率よく符号化するものである。
The lossless encoding means 3 is disclosed in Japanese Unexamined Patent Publication No. 9-2242.
In this technique, a PDL image is efficiently encoded by a drawing direction predictive encoding method proposed in Japanese Patent Publication No. 53-53. The encoding-dependent information calculating means 4 calculates the encoding-dependent information 12 necessary for encoding in the lossless encoding means 3 and the irreversible encoding means 5 and outputs the information to the encoded data multiplexing means 6. It is. The irreversible encoding means 5 uses JPEG
It encodes a natural image such as a method efficiently.

【0027】符号データ多重化手段6は、符号化切り換
え手段2で選択された符号化方式を識別する符号化方式
識別情報10と、符号化依存情報算出手段5で算出され
た符号化依存情報12と、可逆符号化手段3の可逆符号
データ11、もしくは、非可逆符号化手段5の非可逆符
号データ13とを多重化して出力符号データ14を構成
するものである。
The code data multiplexing means 6 includes coding method identification information 10 for identifying the coding method selected by the coding switching means 2 and coding dependency information 12 calculated by the coding dependency information calculating means 5. And lossless code data 11 of the lossless encoding means 3 or lossy code data 13 of the lossy encoding means 5 to multiplex to form output code data 14.

【0028】つぎに、図1のほかに図2および図3をも
参照して、本発明の動作を説明する。図1は先に述べた
ように本発明の構成図であり、図2は本発明の動作フロ
ー図である。図3は符号化切り換え時の動作例である。
Next, the operation of the present invention will be described with reference to FIGS. 2 and 3 in addition to FIG. FIG. 1 is a block diagram of the present invention as described above, and FIG. 2 is an operation flowchart of the present invention. FIG. 3 shows an operation example at the time of encoding switching.

【0029】[ステップS1]:ブロック化手段は入力
画像7をブロック画像8に分割する。ステップS2に進
む。 [ステップS2]:符号化対象のブロックを初期化ない
し更新する。ステップS3に進む。 [ステップS3]:符号化対象画像9がPDL画像の特
性を有するかどうかを判別する。PDL画像の特性を有
していればステップS4に進み、そうでなければステッ
プS7に進む。 [ステップS4]:可逆符号化手段3が、符号化対象画
像9を可逆符号化して可逆符号データ11を出力する。
ステップS5に進む。 [ステップS5]:符号化依存情報算出手段4が、非可
逆符号化のブロック間符号化依存情報12を出力する。
ステップS6へ進む。 [ステップS6]:符号データ多重化手段6が、可逆符
号データ11と符号化依存情報12と符号化方式識別情
報10とを多重化して出力符号データ14を出力する。
ステップS10へ進む。 [ステップS7]:非可逆符号化手段5が、符号化対象
画像9を非可逆符号化して非可逆符号データを出力す
る。ステップS8へ進む。 [ステップS8]:符号化依存情報算出手段4が、可逆
符号化のブロック間依存情報12を算出する。ステップ
S9へ進む。 [ステップS9]:非可逆符号データ13と符号化依存
情報12と符号化方式識別情報10を多重化して出力符
号データ14を出力する。ステップS10へ進む。 [ステップS10]:全ブロックを処理したかどうかを
判別する。処理し終えていればルーチン処理を終了す
る。処理し終えていなければステップS2へ戻る。
[Step S1]: The blocking unit divides the input image 7 into block images 8. Proceed to step S2. [Step S2]: Initialize or update the block to be encoded. Proceed to step S3. [Step S3]: It is determined whether the encoding target image 9 has the characteristics of a PDL image. If it has the characteristics of the PDL image, the process proceeds to step S4; otherwise, the process proceeds to step S7. [Step S4]: The lossless encoding unit 3 losslessly encodes the encoding target image 9 and outputs lossless encoded data 11.
Proceed to step S5. [Step S5]: The encoding dependence information calculation means 4 outputs the inter-block encoding dependence information 12 of the lossy encoding.
Proceed to step S6. [Step S6]: The code data multiplexing unit 6 multiplexes the lossless code data 11, the coding dependency information 12, and the coding method identification information 10, and outputs output code data 14.
Proceed to step S10. [Step S7]: The irreversible encoding unit 5 irreversibly encodes the encoding target image 9 and outputs irreversible encoded data. Proceed to step S8. [Step S8]: The encoding dependency information calculation means 4 calculates the inter-block dependency information 12 of the lossless coding. Proceed to step S9. [Step S9]: The output code data 14 is output by multiplexing the irreversible code data 13, the coding dependency information 12, and the coding method identification information 10. Proceed to step S10. [Step S10]: It is determined whether or not all blocks have been processed. If the processing has been completed, the routine processing ends. If the processing has not been completed, the process returns to step S2.

【0030】以上の説明では、可逆符号化および非可逆
符号化の双方で符号化依存情報を用いる場合について説
明したが、一方が符号化依存情報を用いない場合には、
その一方に関し、符号化依存情報を算出する必要がな
い。
In the above description, the case where the encoding dependent information is used in both the lossless encoding and the irreversible encoding has been described. However, when one of them does not use the encoding dependent information,
For one of them, there is no need to calculate the encoding dependency information.

【0031】図3に示すように、N−1番目のブロック
が可逆符号化手段3で符号化され、N番目ブロックが非
可逆符号化手段5に切り換わった場合、N−1番目のブ
ロックの出力符号データ14には非可逆符号化手段5に
おけるブロック間の符号化依存情報12が含まれている
ため、可逆符号化手段から非可逆符号化手段に切り換わ
った場合においてもN−1番目とN番目のブロック間の
非可逆符号化依存情報を参照して非可逆符号化できる。
As shown in FIG. 3, when the (N-1) th block is encoded by the lossless encoding means 3 and the Nth block is switched to the lossy encoding means 5, Since the output coded data 14 includes the coding-dependent information 12 between the blocks in the irreversible coding means 5, even when switching from the lossless coding means to the irreversible coding means, the output code data is N-1th. The lossy encoding can be performed with reference to the lossy encoding dependent information between the Nth blocks.

【0032】つぎに本発明の復号装置について説明す
る。図4において、復号装置は符号切り換え手段21、
可逆復号手段22、非可逆復号手段23、符号化依存情
報抽出手段24および画像合成手段25を含んで構成さ
れている。切り換え手段21は符号化方式識別情報を符
号から抽出し、この符号化方式識別情報に基づいて符号
を可逆復号手段22または非可逆復号手段23に送る。
符号化依存情報抽出手段24は符号化依存情報を符号か
ら抽出する。可逆復号手段22または非可逆復号手段2
3は符号を復号する。符号方式が切り替わったときに
は、可逆復号手段22または非可逆復号手段23は符号
化依存情報を用いて復号を行う。復号結果は画像合成手
段22に送られ最終的な画像に合成される。
Next, the decoding apparatus of the present invention will be described. In FIG. 4, the decoding device includes code switching means 21,
It includes a lossless decoding unit 22, an irreversible decoding unit 23, an encoding-dependent information extracting unit 24, and an image synthesizing unit 25. The switching unit 21 extracts the encoding system identification information from the code, and sends the code to the lossless decoding unit 22 or the irreversible decoding unit 23 based on the encoding system identification information.
The encoding-dependent information extracting means 24 extracts the encoding-dependent information from the code. Lossless decoding means 22 or lossy decoding means 2
3 decodes the code. When the encoding system is switched, the lossless decoding unit 22 or the irreversible decoding unit 23 performs decoding using the encoding-dependent information. The decoding result is sent to the image synthesizing means 22 and synthesized into a final image.

【0033】[0033]

【実施例】つぎに本発明の具体的な実施例について説明
する。
Next, specific embodiments of the present invention will be described.

【0034】図5は、この実施例の画像符号化装置に構
成を全体として示しており、この図において、画像符号
化装置は、ブロック化回路101、PDL/自然画像識
別回路201、適応予測可逆符号化回路301、DC係
数符号化回路401、DCT変換回路501、DCT係
数量子化回路502、AC係数符号化回路503、およ
び符号データ多重化回路601を含んで構成されてい
る。
FIG. 5 shows the overall configuration of the image encoding apparatus of this embodiment. In this figure, the image encoding apparatus comprises a blocking circuit 101, a PDL / natural image discriminating circuit 201, an adaptive predictive lossless circuit. It is configured to include an encoding circuit 301, a DC coefficient encoding circuit 401, a DCT conversion circuit 501, a DCT coefficient quantization circuit 502, an AC coefficient encoding circuit 503, and a code data multiplexing circuit 601.

【0035】ブロック化回路101は、ラスタ・スキャ
ン順に1画素づつ入力される入力画像データ701を8
×8画素のブロック単位の画像に構成してブロック画像
801として出力するものである。PDL/自然画像識
別回路201は、ブロック画像801の周波数特性や画
素連結数から、画素値が局所的に変動する自然画像、も
しくは、同一画素が連続するPDL画像であるかを識別
するものである。適応予測可逆符号化回路301は、特
開平9−224253号公報の描画方向予測符号化方式
で可逆符号化を行うものである。すなわち、符号化対象
画素と画素値が一致する近傍画素を予測し、予測が的中
した予測器の順位、もしくは、予測誤差を符号化シンボ
ルとして、符号化シンボルの統計的偏りを利用してデー
タ量を圧縮するものである。
The blocking circuit 101 converts the input image data 701 input one pixel at a time in the raster scan
The image is configured as a block unit image of × 8 pixels and output as a block image 801. The PDL / natural image identification circuit 201 identifies whether the pixel image is a natural image in which pixel values fluctuate locally or a PDL image in which the same pixels are continuous based on the frequency characteristics and the number of connected pixels of the block image 801. . The adaptive predictive lossless encoding circuit 301 performs lossless encoding by a drawing direction predictive encoding method described in Japanese Patent Application Laid-Open No. 9-224253. That is, predicting the neighboring pixel whose pixel value matches the pixel value to be coded, and using the statistical bias of the coded symbol using the rank of the predictor that has been predicted correctly or the prediction error as the coded symbol. It compresses the quantity.

【0036】DC係数符号化回路401は、JPEG方
式におけるDCT変換のDC係数のブロック間差分情報
を符号化し、ブロック間符号データ1202を構成する
ものである。DCT変換回路501は、符号化対象画像
901をDCT係数1301に変換するものであり、D
CT係数量子化回路502は、DCT係数1301を所
定の量子化テーブルに基づいて量子化するものであり、
AC係数符号化回路503はJPEG方式におけるDC
T変換のAC係数を符号化するものである。
The DC coefficient encoding circuit 401 encodes the inter-block difference information of the DC coefficient of the DCT transform in the JPEG system to form inter-block coded data 1202. The DCT transform circuit 501 transforms the encoding target image 901 into a DCT coefficient 1301.
The CT coefficient quantization circuit 502 quantizes the DCT coefficient 1301 based on a predetermined quantization table.
The AC coefficient encoding circuit 503 uses DC in the JPEG system.
It encodes the AC coefficient of the T conversion.

【0037】符号データ多重化回路601は、切り換え
識別信号1001により、可逆符号データ1101もし
くは可逆符号データ1303を選択して、ブロック間符
号データ1202と多重化して、出力符号データ140
1を出力するものである。
The code data multiplexing circuit 601 selects the reversible code data 1101 or the reversible code data 1303 based on the switching identification signal 1001 and multiplexes it with the inter-block code data 1202, and outputs the output code data 1401.
1 is output.

【0038】つぎに実施例の動作を、図6〜図13をも
用いて説明する。
Next, the operation of the embodiment will be described with reference to FIGS.

【0039】まず、ブロック化回路101は、入力画像
データ701を図6に示すフロー処理により8×8画素
のブロックに分割し、ブロック画像801としてPDL
/自然画像識別回路201に出力する。図6で示す動作
は図6の記載内容から容易に理解できるのでとくに説明
は行わない。
First, the blocking circuit 101 divides the input image data 701 into 8 × 8 pixel blocks by the flow processing shown in FIG.
/ Output to the natural image identification circuit 201. The operation shown in FIG. 6 can be easily understood from the contents described in FIG. 6 and will not be particularly described.

【0040】PDL/自然画像識別回路201は、ブロ
ック画像801を符号化対象画像901として適応予測
可逆符号化回路301とDCT変換回路501に出力す
るとともに、図7に示すフロー処理によってブロック画
像801がPDL画像であるか自然画像であるかを判定
し、その結果を切り換え識別信号1001として符号デ
ータ多重化回路601に出力する。図7で示す動作は図
7の記載内容から容易に理解できるのでとくに説明は行
わない。
The PDL / natural image discriminating circuit 201 outputs the block image 801 as an encoding target image 901 to the adaptive predictive lossless encoding circuit 301 and the DCT transform circuit 501, and the block image 801 is subjected to the flow processing shown in FIG. It is determined whether the image is a PDL image or a natural image, and the result is output to the code data multiplexing circuit 601 as a switching identification signal 1001. The operation shown in FIG. 7 can be easily understood from the description content of FIG. 7, and therefore will not be particularly described.

【0041】適応予測可逆符号化回路301は、符号化
対象画素と画素値が一致する近傍画素を予測し、予測が
的中した予測器の順位、もしくは、予測誤差を符号化シ
ンボルとして、符号化シンボルの統計的偏りを利用して
データ量を圧縮して可逆符号データ1101を構成し、
符号データ多重化回路601に出力する。
The adaptive predictive lossless coding circuit 301 predicts a neighboring pixel whose pixel value matches that of the pixel to be coded, and uses the rank of the predictor that has achieved prediction or the prediction error as a coded symbol. The data amount is compressed using the statistical bias of the symbols to form the lossless code data 1101,
Output to the code data multiplexing circuit 601.

【0042】DCT変換回路501は、符号化対象画像
901を図8と図9に示す2次元DCT変換により8×
8個のDCT係数1301に変換してDCT係数量子化
回路502に出力する。
The DCT transform circuit 501 transforms the image 901 to be encoded into an 8 × by the two-dimensional DCT transform shown in FIGS.
The signal is converted into eight DCT coefficients 1301 and output to the DCT coefficient quantization circuit 502.

【0043】DCT係数量子化回路502は、DCT係
数1301を各係数ごとに量子化ステップサイズを定め
た所定の量子化テーブルを用いて量子化する。さらに量
子化した係数のうち直流成分であるDC係数1201を
DC係数符号化回路401へ出力し、それ以外のAC係
数1302をAC係数符号化回路503へ出力する。
The DCT coefficient quantization circuit 502 quantizes the DCT coefficient 1301 using a predetermined quantization table that defines a quantization step size for each coefficient. Further, of the quantized coefficients, the DC coefficient 1201 that is a DC component is output to the DC coefficient encoding circuit 401, and the other AC coefficients 1302 are output to the AC coefficient encoding circuit 503.

【0044】DC係数符号化回路401は、図10に示
すように、ブロック遅延ユニット401aと加算器40
1bによってブロック間のDC差分を求め、グループ化
ユニット401cによって図11の表に従ってDC差分
をグループ化する。さらにグループ化されたDC差分を
グループ番号とDC差分の値を示す付加ビットに対応づ
け、グループ番号を1次元ハフマン符号化ユニット40
1dおよびDC符号テーブル401eによって1次元ハ
フマン符号化し、付加ビットをつけて、DC符号として
出力する。
As shown in FIG. 10, the DC coefficient encoding circuit 401 includes a block delay unit 401a and an adder 40.
1b, the DC difference between the blocks is obtained, and the grouping unit 401c groups the DC differences according to the table of FIG. Further, the grouped DC differences are associated with the group number and additional bits indicating the value of the DC difference, and the group number is assigned to the one-dimensional Huffman coding unit 40.
One-dimensional Huffman coding is performed by 1d and the DC code table 401e, and an additional bit is added to output the data as a DC code.

【0045】AC係数符号化回路503は、図12に示
すように、2次元に配置されたAC係数をジグザグスキ
ャン・ユニット503aによって1次元に並び換え、各
係数が0かどうかを判定する。0の場合、連続するラン
の長さを多ランレングスカウント・ユニット503bに
よりカウントする。0でない場合はグループ化ユニット
503cにより図13の表に従ってグループ化する。グ
ループ化されたAC係数をグループ番号とAC係数の値
を示す付加ビットに対応づけ、ラン長とグループ番号と
を二次元ハフマン符号化ユニット503dおよびAC符
号テーブル503eにより2次元ハフマン符号化し、付
加ビットをつけて、AC符号として出力する。
The AC coefficient encoding circuit 503 rearranges the two-dimensionally arranged AC coefficients into one dimension by the zigzag scan unit 503a as shown in FIG. 12, and determines whether each coefficient is 0 or not. If it is 0, the length of a continuous run is counted by the multi-run length counting unit 503b. If it is not 0, grouping is performed by the grouping unit 503c according to the table in FIG. The grouped AC coefficients are associated with a group number and an additional bit indicating the value of the AC coefficient, and the run length and the group number are two-dimensionally Huffman-coded by the two-dimensional Huffman coding unit 503d and the AC code table 503e. And output as an AC code.

【0046】符号データ多重化回路601は、切り換え
識別信号1001がPDL画像を示す場合は、可逆符号
データ1101とブロック間符号データ1202を多重
化して出力符号データ1401を構成する。したがっ
て、直前のブロックが可逆符号符号化方式で符号化され
て次のブロックで非可逆符号化方式に切り換えられた場
合においても、非可逆符号化方式のブロック間のDC差
分情報は出力符号データ1401に保持されているた
め、可逆符号化ブロックと非可逆符号化ブロックとの間
で非可逆符号化に関するDC差分情報を参照して非可逆
符号化できる。
When the switching identification signal 1001 indicates a PDL image, the code data multiplexing circuit 601 forms output code data 1401 by multiplexing the lossless code data 1101 and the inter-block code data 1202. Therefore, even when the immediately preceding block is encoded by the lossless encoding method and the next block is switched to the irreversible encoding method, the DC difference information between the blocks of the irreversible encoding method is output code data 1401. , Lossless coding can be performed between the lossless coding block and the lossy coding block with reference to DC difference information regarding lossy coding.

【0047】さらに、符号データ多重化回路601は、
切り換え識別信号1001が自然画像を示す場合は、非
可逆符号データとブロック間符号データ1202を多重
化して出力符号データ1401を構成する。このように
すると、可逆符号化方式にブロック間依存情報が必要な
場合にも効率よく符号化を行える。もちろん、可逆符号
化方式がブロック間依存情報を必要としない場合には、
非可逆データのみを出力し可逆符号化用にブロック間符
号データを多重化する必要がない。
Further, the code data multiplexing circuit 601
When the switching identification signal 1001 indicates a natural image, irreversible code data and inter-block code data 1202 are multiplexed to form output code data 1401. In this manner, efficient coding can be performed even when interblock dependent information is required for the lossless coding method. Of course, if the lossless encoding method does not require inter-block dependency information,
There is no need to output only irreversible data and multiplex inter-block coded data for lossless encoding.

【0048】なお、復号装置は符号装置の逆の動作を行
うものであり、すでに、図4において概略的に説明して
あるのでとくに具体的な構成を説明しない。
It should be noted that the decoding device performs the reverse operation of the coding device, and has not been described in detail since it has already been schematically described in FIG.

【0049】以上で説明したように、この実施例によれ
ば、ブロック間でDC値の差分を符号化するJPEG方
式のように符号化情報が直前ブロックに依存する非可逆
符号化方式と可逆符号化方式を切り換えて符号データを
構成する画像符号化方式において、ブロック間の符号化
依存情報を多重化して出力符号データを構成し、符号化
切り換え時に出力符号データの符号化依存情報を参照し
て符号化するようにしているため、隣接するブロックで
符号化方式が切り換わった場合でも符号化効率が低下し
ない。
As described above, according to this embodiment, the lossy coding method in which the coding information depends on the immediately preceding block, such as the JPEG method for coding the DC value difference between blocks, and the lossless coding method In an image coding method in which code data is formed by switching coding methods, coding dependent information between blocks is multiplexed to form output code data, and when coding is switched, reference is made to the coding dependent information of the output code data. Since the encoding is performed, the encoding efficiency does not decrease even when the encoding method is switched between adjacent blocks.

【0050】例えば、図14に示すように#Nブロック
が可逆符号化方式で符号化された場合に、JPEG方式
のDC係数を参照して#Nブロック用にこのDC係数を
多重化した出力符号データを構成する。この例では、#
N+1のブロックで、可逆符号化方式からJPEG方式
の符号化に切り替わるが、切り替わる前においても、J
PEG方式のDC係数そのものが#Nのブロックの出力
符号データに保持されているので、JPEG方式のDC
係数は符号化が切り換わらない場合と同じ効率で符号化
できる。
For example, as shown in FIG. 14, when the #N block is coded by the lossless coding method, an output code obtained by multiplexing the DC coefficient for the #N block with reference to the DC coefficient of the JPEG method. Organize the data. In this example, #
In the (N + 1) -th block, the switching from the lossless encoding method to the JPEG encoding method is performed.
Since the DC coefficient itself of the PEG method is held in the output code data of the block #N, the DC coefficient of the JPEG method is used.
Coefficients can be encoded with the same efficiency as if the encoding were not switched.

【0051】なお、上述の説明では、可逆符号化と非可
逆符号化とを切り換えて用いる例について説明したが、
本発明は、このような構成に限定されるものではなく、
要するに、2つ以上の符号化手段があり、これらを切り
換えて用い、しかもその符号化手段の少なくとも1つが
符号化依存情報を用いている場合には、他の符号手段の
符号化時にその依存情報を多重化するようにするもので
ある。もちろん、依存情報を常に保存するのでなく、そ
の他の効率上のファクタを加味して選択的に保存するよ
うにしてもよい。
In the above description, an example has been described in which lossless coding and irreversible coding are switched and used.
The present invention is not limited to such a configuration,
In short, when there are two or more encoding units, these are switched and used, and when at least one of the encoding units uses the encoding dependence information, the dependence information is encoded when the other encoding units are encoded. Are multiplexed. Of course, the dependency information may not be always stored, but may be selectively stored in consideration of other efficiency factors.

【0052】[0052]

【発明の効果】以上説明したように、本発明によれば、
複数の符号化方式を用い、しかも、少なくとも1つの符
号化方式がブロック間で依存情報を有する場合でも、符
号化方式の切り換えにより符号化効率が落ちることがな
い。
As described above, according to the present invention,
Even when a plurality of coding methods are used and at least one coding method has dependency information between blocks, the coding efficiency is not reduced by switching the coding method.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の画像符号化装置の原理的な構成例を
示すブロック図である。
FIG. 1 is a block diagram illustrating an example of a principle configuration of an image encoding device according to the present invention.

【図2】 本発明の動作を説明するフローチャートであ
る。
FIG. 2 is a flowchart illustrating the operation of the present invention.

【図3】 符号化切り換え時の動作例を説明する図であ
る。
FIG. 3 is a diagram illustrating an operation example at the time of encoding switching.

【図4】 本発明の復号装置の原理的な構成例を示すブ
ロック図である。
FIG. 4 is a block diagram illustrating an example of a basic configuration of a decoding device according to the present invention.

【図5】 本発明の具体的な構成例を示すブロック図で
ある。
FIG. 5 is a block diagram showing a specific configuration example of the present invention.

【図6】 図5のブロック化回路101の処理を示すフ
ローチャートである。
FIG. 6 is a flowchart showing the processing of the blocking circuit 101 of FIG.

【図7】 図5のPDL/自然画像識別回路201の処
理を示すフローチャートである。
FIG. 7 is a flowchart showing processing of the PDL / natural image identification circuit 201 in FIG. 5;

【図8】 図5のDCT変換回路501における2次元
DCT変換の例を示す図である。
8 is a diagram illustrating an example of two-dimensional DCT transform in the DCT transform circuit 501 of FIG.

【図9】 図5のDCT変換回路501の変換係数ブロ
ック内のDC係数とAC係数の例を示す図である。
9 is a diagram illustrating an example of DC coefficients and AC coefficients in a transform coefficient block of the DCT transform circuit 501 of FIG.

【図10】 図5のDC係数符号化回路401の構成例
を示すブロック図である。
10 is a block diagram illustrating a configuration example of a DC coefficient encoding circuit 401 in FIG.

【図11】 図5のDC係数符号化回路401における
DC差分のグループ化の例を示す図である。
11 is a diagram illustrating an example of grouping of DC differences in the DC coefficient encoding circuit 401 in FIG.

【図12】 図5のAC係数符号化回路503の構成例
を示すブロック図である。
12 is a block diagram illustrating a configuration example of an AC coefficient encoding circuit 503 in FIG.

【図13】 図5のAC係数符号化回路503における
AC係数のグループ化の例を示す図である。
13 is a diagram illustrating an example of grouping of AC coefficients in the AC coefficient encoding circuit 503 in FIG. 5;

【図14】 符号化切り換えにおいてDC係数を参照す
る例を説明する図である。
FIG. 14 is a diagram illustrating an example in which a DC coefficient is referred to in coding switching.

【図15】 JPEG方式で符号化する場合のDC係数
の例を示す図である。
FIG. 15 is a diagram illustrating an example of a DC coefficient when encoding is performed by the JPEG method.

【図16】 符号化切り換えにおいてDC係数を固定値
0とする例を示す図である。
FIG. 16 is a diagram illustrating an example in which a DC coefficient is set to a fixed value 0 in encoding switching.

【図17】 符号化切り換えにおいてDC係数を固定値
255とする例を示す図である。
FIG. 17 is a diagram illustrating an example in which a DC coefficient is set to a fixed value 255 in encoding switching.

【図18】 従来例の構成を示すブロック図である。FIG. 18 is a block diagram showing a configuration of a conventional example.

【符号の説明】[Explanation of symbols]

1 ブロック化手段 2 符号化切り換え手段 3 可逆符号化手段 4 符号化依存情報算出手段 5 非可逆符号化手段 6 符号データ多重化手段 7 入力画像データ 8 ブロック画像 9 符号化対象画像 10 切り換え識別情報 11 可逆符号データ 12 符号化依存情報 13 非可逆符号データ 14 出力符号データ 101 ブロック化回路 201 PDL/自然画像識別回路 301 適応予測可逆符号化回路 401 DC係数符号化回路 501 DCT変換回路 502 DCT係数量子化回路 503 AC係数符号化回路 601 符号データ多重化回路 701 入力画像データ 801 ブロック画像 901 符号化対象画像 1001 切り換え識別信号 1101 可逆符号データ 1201 DC係数 1202 ブロック間依存符号データ 1301 DCT係数 1302 AC係数 1303 非可逆符号データ 1401 出力符号データ DESCRIPTION OF SYMBOLS 1 Blocking means 2 Encoding switching means 3 Lossless encoding means 4 Encoding dependent information calculating means 5 Lossy encoding means 6 Code data multiplexing means 7 Input image data 8 Block image 9 Encoding target image 10 Switching identification information 11 Lossless code data 12 Coding dependency information 13 Lossy code data 14 Output code data 101 Blocking circuit 201 PDL / natural image discriminating circuit 301 Adaptive predictive lossless coding circuit 401 DC coefficient coding circuit 501 DCT transform circuit 502 DCT coefficient quantization Circuit 503 AC coefficient encoding circuit 601 Code data multiplexing circuit 701 Input image data 801 Block image 901 Image to be encoded 1001 Switching identification signal 1101 Reversible code data 1201 DC coefficient 1202 Inter-block dependent code data 1301 DCT coefficient 1 02 AC coefficients 1303 lossy encoding data 1401 output coded data

───────────────────────────────────────────────────── フロントページの続き (72)発明者 河内 賢一 神奈川県足柄上郡中井町境430 グリーン テクなかい 富士ゼロックス株式会社内 Fターム(参考) 5C059 KK01 MA00 ME01 PP18 RC11 RC12 SS28 TA17 TB08 TC01 TC24 TC27 TC42 TD01 TD09 UA02 UA05 5C078 BA21 BA42 CA02 DA01 DA02 5J064 AA02 BA08 BA16 BB05 BB11 BB13 BD06 BD07  ────────────────────────────────────────────────── ─── Continued on the front page (72) Inventor Kenichi Kawachi 430 Sakai Nakaicho, Ashigara-gun, Kanagawa Prefecture Green Tech Inside Fuji Xerox Co., Ltd. F-term (reference) 5C059 KK01 MA00 ME01 PP18 RC11 RC12 SS28 TA17 TB08 TC01 TC24 TC27 TC42 TD01 TD09 UA02 UA05 5C078 BA21 BA42 CA02 DA01 DA02 5J064 AA02 BA08 BA16 BB05 BB11 BB13 BD06 BD07

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 ブロック単位で符号化を行い、かつ隣接
するブロックの符号同士が依存する第1の符号化手法と
上記第1の符号化手法と異なる第2の符号化手法とによ
り入力画像データを出力符号データに変換する画像符号
化装置において、 入力画像データをブロックに分割するブロック化手段
と、 上記入力画像データを上記第1の符号化手法でブロック
単位で符号化する第1の符号化手段と、 上記入力画像データを上記第2の符号化手法でブロック
単位で符号化する第2の符号化手段と、 上記第1の符号化手段による符号化と上記第2の符号化
手段による符号化とを択一的に切り換える符号化切り換
え手段と、 上記第1の符号化を行わないときに、上記第1の符号化
手段が符号化に用いる符号化依存情報を生成する手段
と、 上記第2の符号化手段が出力した符号と、上記符号化依
存情報とを多重化して出力符号を構成する多重化手段と
を有し、 さらに、上記第1の符号化手段は、符号化を再開したと
きに上記符号化依存情報を用いて符号化を行うことを特
徴とする画像符号化装置。
1. An input image data is encoded by a first encoding method in which encoding is performed on a block basis and codes of adjacent blocks depend on each other, and a second encoding method different from the first encoding method. An image coding apparatus for converting input image data into output code data, comprising: blocking means for dividing input image data into blocks; and first coding for coding the input image data in block units using the first coding method. Means, second encoding means for encoding the input image data in block units by the second encoding method, encoding by the first encoding means, and encoding by the second encoding means Encoding switching means for selectively switching between encoding and encoding; and means for generating encoding-dependent information used by the first encoding means for encoding when the first encoding is not performed; 2 sign Multiplexing means for multiplexing the code output by the encoding means and the encoding-dependent information to form an output code. Further, the first encoding means is configured to An image encoding device, wherein encoding is performed using the encoding-dependent information.
【請求項2】 上記第1の符号化手法および上記第2の
符号化手法の一方は非可逆符号化手法であり、他方は可
逆符号化手法である請求項1記載の画像符号化装置。
2. The image coding apparatus according to claim 1, wherein one of the first coding method and the second coding method is a lossy coding method, and the other is a lossless coding method.
【請求項3】 上記第1の符号化手法は、画像データの
直流成分の依存性を利用して符号化する請求項1または
2記載の画像符号化装置。
3. The image encoding apparatus according to claim 1, wherein said first encoding method performs encoding by utilizing a DC component dependency of image data.
【請求項4】 上記第1の符号化手法はJPEGベース
ライン符号化手法である請求項3記載の画像符号化装
置。
4. The image encoding apparatus according to claim 3, wherein said first encoding method is a JPEG baseline encoding method.
【請求項5】 上記第2の符号化手法も、隣接するブロ
ックの符号同士が依存する符号化手法とする請求項1、
2、3または4記載の画像符号化装置。
5. The coding method according to claim 1, wherein the second coding method is also a coding method in which codes of adjacent blocks depend on each other.
5. The image coding apparatus according to 2, 3, or 4.
【請求項6】 請求項1の画像符号化装置から出力され
た出力符号を復号する復号装置において、 上記第1の符号化手段で符号化された符号を復号する第
1の復号手段と、 上記第2の符号化手段で符号化された符号を復号する第
2の復号手段と、 上記多重化手段で多重化された第2の符号化手法の符号
と上記第1の符号化手法の符号化依存情報とを分離する
手段と、 上記第1の復号手段で復号して得た画像情報と上記第2
の復号手段で復号して得た画像情報とを合成する手段と
を有し、 上記第1の復号手段による復号が再開されたときに上記
符号化依存情報を利用して上記第1の符号化手法の符号
を復号することを特徴とする復号装置。
6. A decoding device for decoding an output code output from the image encoding device according to claim 1, wherein: a first decoding unit for decoding a code encoded by the first encoding unit; Second decoding means for decoding the code coded by the second coding means, code of the second coding method multiplexed by the multiplexing means, and coding of the first coding method Means for separating dependent information, image information obtained by decoding by the first decoding means,
Means for synthesizing image information obtained by decoding by the decoding means, and when the decoding by the first decoding means is restarted, the first encoding is performed by using the encoding-dependent information. A decoding device for decoding a method code.
JP6594999A 1999-03-12 1999-03-12 Image coder and decoder Pending JP2000261812A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6594999A JP2000261812A (en) 1999-03-12 1999-03-12 Image coder and decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6594999A JP2000261812A (en) 1999-03-12 1999-03-12 Image coder and decoder

Publications (1)

Publication Number Publication Date
JP2000261812A true JP2000261812A (en) 2000-09-22

Family

ID=13301749

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6594999A Pending JP2000261812A (en) 1999-03-12 1999-03-12 Image coder and decoder

Country Status (1)

Country Link
JP (1) JP2000261812A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003058974A1 (en) * 2002-01-07 2003-07-17 Mitsubishi Denki Kabushiki Kaisha Moving picture coding apparatus and moving picture decoding apparatus
US7298914B2 (en) 2002-05-23 2007-11-20 Fuji Xerox Co., Ltd. Image processing device, method and recording medium for compressing image data using repeatability of data patterns
CN116032294A (en) * 2023-02-23 2023-04-28 山东安之捷科技有限公司 Intelligent processing method for atmosphere monitoring data

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003058974A1 (en) * 2002-01-07 2003-07-17 Mitsubishi Denki Kabushiki Kaisha Moving picture coding apparatus and moving picture decoding apparatus
KR100767557B1 (en) * 2002-01-07 2007-10-17 미쓰비시덴키 가부시키가이샤 Moving picture coding apparatus and moving picture decoding apparatus
US7298914B2 (en) 2002-05-23 2007-11-20 Fuji Xerox Co., Ltd. Image processing device, method and recording medium for compressing image data using repeatability of data patterns
US7477791B2 (en) 2002-05-23 2009-01-13 Fuji Xerox Co., Ltd. Image processing device, method and recording medium for compressing image data
CN116032294A (en) * 2023-02-23 2023-04-28 山东安之捷科技有限公司 Intelligent processing method for atmosphere monitoring data

Similar Documents

Publication Publication Date Title
US7454071B2 (en) System and method for using pattern vectors for video and image coding and decoding
US8126053B2 (en) Image encoding/decoding method and apparatus
KR100530681B1 (en) How to send and receive coded video images
US20060067582A1 (en) Progressive JPEG decoding system
JP3087835B2 (en) Image encoding method and apparatus and image decoding method and apparatus
JP3466163B2 (en) Image decoding apparatus and image decoding method
JPH06237448A (en) Variable length coder and decoder
EP0635807B1 (en) Coding apparatus for image compression
JPH10224795A (en) Moving image coding method, decoding method, coder and decoder
JP2000261812A (en) Image coder and decoder
US20130279818A1 (en) Image encoding apparatus and method, image decoding apparatus and method, and non-transitory computer readable medium
JPH04343576A (en) Highly efficient coding and decoding method
JPH11331852A (en) Reversible coding method and reversible coder
JPH05151349A (en) Image data compressing method and encoding circuit
JP2003333347A (en) Compression method and decompression method for binary image data, and compression apparatus and decompression apparatus for binary image data
JPH06113291A (en) Picture coder and decoder
JP3796354B2 (en) Image coding method
JPH0556270A (en) Reverse quantizing method and image data restoring device
JP2002290743A (en) Image information coding method, coding apparatus, digital copying machine, digital facsimile machine, and digital filing apparatus
JPH10163880A (en) Data decoder
JP3852237B2 (en) Image processing device
JP2798767B2 (en) Image data compression method
JP2571274B2 (en) Code data storage / readout method
JPH09200536A (en) Coder and decoder
JPH11331844A (en) Fixed length block encoder and decoder